:root{
    --bg:#111;
    --panel:#1c1c1c;
    --card:#222;
    --muted:#bdbdbd;
    --text:#fff;
    --brand:#F2B705;
    --brand-2:#ffd54a;
    --danger:#ff6b6b;
    --radius:12px;
    --container:1200px;
}

*{box-sizing:border-box}
html,body{overflow-x:hidden}
body{
    margin:0;
    font-family:Arial,sans-serif;
    background:var(--bg);
    color:var(--text);
    line-height:1.5;
}

a{color:inherit}
.container{
    width:min(100% - 24px, var(--container));
    margin:0 auto;
}

.site-header{
    position:sticky;
    top:0;
    z-index:1000;
    background:rgba(28,28,28,.96);
    backdrop-filter:blur(8px);
    border-bottom:1px solid rgba(255,255,255,.06);
}

.header-inner{
    width:min(100% - 24px, var(--container));
    min-height:64px;
    margin:0 auto;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:10px 0;
}

.brand{
    text-decoration:none;
    color:var(--text);
    font-weight:700;
    font-size:20px;
    letter-spacing:.2px;
}

.header-nav{
    display:flex;
    flex-wrap:wrap;
    justify-content:flex-end;
    gap:8px;
}

.header-nav a{
    text-decoration:none;
    color:var(--brand);
    padding:8px 10px;
    border-radius:8px;
    font-size:14px;
}

.header-nav a:hover{
    background:rgba(242,183,5,.12);
}

.cart-badge{
    display:inline-flex;
    min-width:20px;
    height:20px;
    padding:0 6px;
    align-items:center;
    justify-content:center;
    border-radius:999px;
    background:var(--brand);
    color:#111;
    font-size:12px;
    font-weight:bold;
    margin-left:4px;
}

.main{
    padding:24px 0 40px;
}

h1,h2,h3,p{margin-top:0}
h1{font-size:clamp(28px, 5vw, 42px); line-height:1.1}
h2{font-size:clamp(22px, 4vw, 30px)}

.eyebrow{
    color:var(--brand);
    font-weight:bold;
    text-transform:uppercase;
    letter-spacing:.08em;
    font-size:12px;
}

.hero{
    text-align:center;
    padding:36px 0 14px;
}

.hero-text{
    max-width:680px;
    margin:0 auto 18px;
    color:var(--muted);
}

.hero-actions{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    justify-content:center;
}

.btn{
    background:var(--brand);
    color:#111;
    text-decoration:none;
    border:none;
    border-radius:10px;
    padding:11px 16px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    font-weight:bold;
    cursor:pointer;
}

.btn:hover{background:var(--brand-2)}
.btn-secondary{
    background:transparent;
    color:var(--brand);
    border:1px solid rgba(242,183,5,.4);
}
.btn-secondary:hover{
    background:rgba(242,183,5,.12);
}
.btn-small{
    padding:9px 12px;
    font-size:14px;
}
.btn-active{
    background:#fff;
    color:#111;
}
.btn-disabled{
    background:#555;
    color:#ddd;
    cursor:not-allowed;
}

.section-head{
    display:flex;
    align-items:end;
    justify-content:space-between;
    gap:12px;
    margin:28px 0 16px;
}

.text-link{
    color:var(--brand);
    text-decoration:none;
}

.card{
    background:var(--card);
    padding:18px;
    border-radius:var(--radius);
    box-shadow:0 8px 24px rgba(0,0,0,.18);
}

.grid{
    display:grid;
    gap:16px;
}

.articles-grid{
    grid-template-columns:1fr;
}

.thumb-placeholder,
.product-card-image,
.store-card-image,
.product-image-placeholder{
    background:#181818;
    border-radius:10px;
    color:#8f8f8f;
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
}

.thumb-placeholder{height:160px; margin-bottom:12px}
.product-card-image{height:120px; margin-bottom:12px}
.store-card-image{height:180px}
.product-image-placeholder{min-height:340px; padding:20px}

.article-card h3{
    margin-bottom:8px;
}

.ticker{
    background:#000;
    overflow:hidden;
    white-space:nowrap;
    border-radius:10px;
    margin:18px 0 6px;
    padding:10px 0;
}

.ticker-track{
    display:inline-flex;
    gap:30px;
    padding-left:100%;
    animation:ticker 20s linear infinite;
}

@keyframes ticker{
    0%{transform:translateX(0)}
    100%{transform:translateX(-100%)}
}

.products{
    display:flex;
    gap:12px;
    overflow-x:auto;
    padding-bottom:4px;
    scroll-snap-type:x proximity;
}
.products::-webkit-scrollbar{height:8px}
.products::-webkit-scrollbar-thumb{background:#333;border-radius:999px}

.product-card{
    min-width:220px;
    max-width:220px;
    background:var(--card);
    padding:14px;
    border-radius:var(--radius);
    scroll-snap-align:start;
    box-shadow:0 8px 24px rgba(0,0,0,.18);
}
.product-card h3{
    font-size:17px;
    margin-bottom:6px;
}

.price, .product-price{
    color:var(--brand);
    font-weight:bold;
}
.product-price{
    font-size:30px;
    margin-bottom:10px;
}

.muted, .product-stock{
    color:var(--muted);
}

.card-actions{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-top:12px;
}

.search-bar{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-bottom:20px;
}
.search-bar input,
.checkout-form input{
    flex:1;
    min-width:220px;
    padding:12px;
    border:none;
    border-radius:10px;
    outline:none;
}

.store-grid{
    display:grid;
    grid-template-columns:1fr;
    gap:16px;
}
.store-card{
    background:var(--card);
    border-radius:var(--radius);
    overflow:hidden;
    box-shadow:0 8px 24px rgba(0,0,0,.18);
}
.store-card-body{
    padding:16px;
}

.product-page{
    display:grid;
    grid-template-columns:1fr;
    gap:18px;
}
.product-gallery,.product-info{
    background:var(--card);
    border-radius:var(--radius);
    padding:20px;
}
.product-badge{
    display:inline-block;
    background:var(--brand);
    color:#111;
    padding:6px 10px;
    border-radius:999px;
    font-size:12px;
    font-weight:bold;
    margin-bottom:10px;
}
.product-description{
    color:#eee;
    margin:18px 0 22px;
}

.article-single{
    max-width:860px;
    margin:0 auto;
}
.article-content{
    margin:18px 0;
}
.video-frame{
    position:relative;
    width:100%;
    padding-top:56.25%;
    margin:18px 0;
    border-radius:12px;
    overflow:hidden;
    background:#000;
}
.video-frame iframe{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    border:0;
}

.cart-item{
    background:var(--card);
    padding:16px;
    border-radius:var(--radius);
    margin-bottom:14px;
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    justify-content:space-between;
    gap:14px;
}
.cart-controls{
    display:flex;
    align-items:center;
    gap:10px;
}
.cart-controls a{
    background:var(--brand);
    color:#111;
    text-decoration:none;
    padding:6px 11px;
    border-radius:8px;
    font-weight:bold;
}
.cart-remove a{
    color:var(--danger);
    text-decoration:none;
}
.cart-total{
    margin-top:16px;
}

.checkout-grid{
    display:grid;
    grid-template-columns:1fr;
    gap:16px;
}
.checkout-form{
    display:flex;
    flex-direction:column;
    gap:10px;
}
.checkout-line{
    display:flex;
    justify-content:space-between;
    gap:10px;
    margin-bottom:10px;
}
.total-line{
    font-size:20px;
}
.error-box{
    border:1px solid rgba(255,107,107,.35);
}
.thank-you{
    max-width:700px;
    margin:0 auto;
    text-align:center;
}

.pagination{
    margin-top:22px;
    display:flex;
    flex-wrap:wrap;
    gap:8px;
}

@media (max-width: 640px){
    .header-inner{
        flex-direction:column;
        align-items:flex-start;
    }
    .header-nav{
        width:100%;
        justify-content:space-between;
    }
    .main{
        padding-top:8px;
    }
}

@media (min-width: 768px){
    .articles-grid,
    .store-grid{
        grid-template-columns:repeat(3, 1fr);
    }
    .checkout-grid{
        grid-template-columns:1.1fr .9fr;
    }
}

@media (min-width: 920px){
    .product-page{
        grid-template-columns:1.1fr 1fr;
        align-items:start;
    }
}
