:root{
    --black:#050505;
    --ink:#141414;
    --muted:#6b7280;
    --line:#e5e7eb;
    --paper:#ffffff;
    --soft:#f5f5f5;
    --success:#0f8a4b;
}

*{box-sizing:border-box}

body{
    margin:0;
    background:var(--paper);
    color:var(--ink);
    font-family:Arial,Helvetica,sans-serif;
}

a{text-decoration:none}

.store-body{background:#fff}

.site-header{
    background:#fff;
    border-bottom:1px solid var(--line);
    position:sticky;
    top:0;
    z-index:20;
}

.main-nav{
    min-height:82px;
    display:grid;
    grid-template-columns:auto auto minmax(240px,1fr) auto;
    gap:24px;
    align-items:center;
}

.menu-toggle{
    position:absolute;
    opacity:0;
    pointer-events:none;
}

.hamburger-btn{
    width:44px;
    height:44px;
    border:1px solid var(--line);
    border-radius:8px;
    background:#fff;
    color:#111;
    display:none;
    align-items:center;
    justify-content:center;
    cursor:pointer;
}

.hamburger-btn.inverse{
    background:#111;
    color:#fff;
    border-color:rgba(255,255,255,.22);
}

.menu-overlay{
    display:none;
}

.store-menu-panel{
    display:contents;
}

.mobile-panel-head,
.sidebar-mobile-head{
    display:none;
}

.mobile-menu-actions{
    display:none;
}

.brand-mark{
    color:var(--black);
    display:inline-flex;
    align-items:center;
    gap:10px;
    font-size:22px;
    font-weight:800;
    letter-spacing:0;
}

.brand-mark span{
    width:38px;
    height:38px;
    background:var(--black);
    color:#fff;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius:8px;
    font-size:14px;
}

.nav-links{
    display:flex;
    align-items:center;
    gap:20px;
}

.nav-links a{
    color:#1f2937;
    font-weight:700;
    font-size:14px;
}

.search-form{
    display:flex;
    height:46px;
    border:1px solid var(--line);
    border-radius:8px;
    overflow:hidden;
    background:#fff;
}

.search-form input{
    border:0;
    outline:0;
    width:100%;
    padding:0 15px;
}

.search-form button{
    width:52px;
    border:0;
    background:#111;
    color:#fff;
}

.nav-actions{
    display:flex;
    align-items:center;
    gap:10px;
}

.icon-link,
.cart-pill{
    width:46px;
    height:46px;
    border:1px solid var(--line);
    border-radius:8px;
    color:#111;
    display:flex;
    align-items:center;
    justify-content:center;
}

.cart-pill{
    gap:7px;
    width:auto;
    padding:0 14px;
    background:#111;
    color:#fff;
    border-color:#111;
}

.cart-pill span{
    min-width:22px;
    height:22px;
    border-radius:999px;
    background:#fff;
    color:#111;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    font-size:12px;
    font-weight:800;
}

.site-main{padding:36px 0 70px}

.hero-section{
    min-height:560px;
    background:#070707;
    color:#fff;
    border-radius:8px;
    padding:54px;
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(280px,420px);
    gap:38px;
    align-items:end;
}

.eyebrow{
    display:inline-block;
    color:#777;
    font-size:12px;
    text-transform:uppercase;
    font-weight:800;
    letter-spacing:1px;
    margin-bottom:14px;
}

.hero-section .eyebrow{color:#cfcfcf}

.hero-copy h1,
.page-hero h1{
    font-size:clamp(42px,7vw,88px);
    line-height:1;
    margin:0 0 18px;
    font-weight:900;
}

.hero-copy p,
.page-hero p{
    max-width:620px;
    color:#d1d5db;
    font-size:18px;
    margin-bottom:28px;
}

.hero-actions{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
}

.hero-product{
    background:#fff;
    color:#111;
    border-radius:8px;
    padding:30px;
    min-height:270px;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
}

.hero-product i{
    font-size:88px;
}

.hero-product span{
    font-weight:800;
    font-size:22px;
}

.category-strip{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    border:1px solid var(--line);
    border-radius:8px;
    overflow:hidden;
    margin:24px 0 58px;
}

.category-strip a{
    min-height:118px;
    color:#111;
    display:flex;
    flex-direction:column;
    gap:12px;
    align-items:center;
    justify-content:center;
    border-right:1px solid var(--line);
    font-weight:800;
}

.category-strip a:last-child{border-right:0}
.category-strip i{font-size:28px}

.section-heading,
.page-hero{
    margin-bottom:28px;
}

.section-heading h2,
.page-hero h1{
    color:#111;
}

.section-heading h2{
    font-size:42px;
    font-weight:900;
    margin:0;
}

.page-hero{
    background:#f7f7f7;
    border:1px solid var(--line);
    border-radius:8px;
    padding:42px;
}

.page-hero.compact{padding:30px}
.page-hero p{color:#4b5563;margin-bottom:0}

.trust-band{
    margin-top:58px;
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:1px;
    background:var(--line);
    border:1px solid var(--line);
    border-radius:8px;
    overflow:hidden;
}

.trust-band div{
    background:#fff;
    padding:26px;
}

.trust-band strong,
.trust-band span{
    display:block;
}

.trust-band span{color:var(--muted);margin-top:6px}

.sidebar{
    position:sticky;
    top:106px;
}

.sidebar-box{
    border:1px solid var(--line);
    border-radius:8px;
    padding:22px;
    margin-bottom:18px;
    background:#fff;
}

.sidebar-box h4{
    font-size:16px;
    font-weight:900;
    margin-bottom:18px;
}

.sidebar-box ul{
    padding:0;
    margin:0;
    list-style:none;
}

.sidebar-box li{margin-bottom:10px}

.sidebar-box a{
    color:#333;
    display:flex;
    justify-content:space-between;
    padding:8px 0;
    border-bottom:1px solid #f0f0f0;
}

.sidebar-box a:hover{color:#000;font-weight:800}

.shop-toolbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:18px;
    padding:16px 18px;
    border:1px solid var(--line);
    border-radius:8px;
    margin-bottom:22px;
}

.shop-toolbar span{
    display:block;
    color:var(--muted);
    font-size:13px;
}

.shop-toolbar strong{font-size:20px}

.product-card{
    height:100%;
    background:#fff;
    border:1px solid var(--line);
    border-radius:8px;
    overflow:hidden;
    position:relative;
    transition:transform .2s ease, box-shadow .2s ease;
}

.product-card:hover{
    transform:translateY(-4px);
    box-shadow:0 20px 45px rgba(0,0,0,.08);
}

.product-card img{
    width:100%;
    height:235px;
    object-fit:cover;
    background:#f6f6f6;
}

.sale{
    position:absolute;
    top:14px;
    left:14px;
    background:#111;
    color:#fff;
    padding:6px 10px;
    border-radius:8px;
    font-size:12px;
    font-weight:800;
}

.product-content{
    padding:18px;
}

.product-content h5{
    font-size:18px;
    font-weight:900;
    margin:0 0 8px;
}

.product-content p{
    color:var(--muted);
    font-size:14px;
    min-height:42px;
    max-height:62px;
    overflow:hidden;
    margin-bottom:14px;
}

.price{
    color:#111;
    font-size:22px;
    font-weight:900;
}

.price del{
    color:#999;
    font-size:14px;
    margin-left:8px;
    font-weight:600;
}

.product-content .button{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
    margin-top:16px;
}

.product-content .button a{
    background:#111;
    color:#fff;
    border:1px solid #111;
    border-radius:8px;
    padding:11px 10px;
    text-align:center;
    font-weight:800;
    font-size:13px;
}

.product-content .button a:last-child{
    background:#fff;
    color:#111;
}

.empty-state{
    background:#fff;
    border:1px dashed #aaa;
    border-radius:8px;
    color:var(--muted);
    padding:35px;
    text-align:center;
}

.product-detail{
    display:grid;
    grid-template-columns:minmax(0,1.08fr) minmax(320px,.92fr);
    gap:34px;
    align-items:start;
}

.detail-gallery,
.detail-copy,
.cart-shell,
.cart-summary{
    background:#fff;
    border:1px solid var(--line);
    border-radius:8px;
    padding:24px;
}

.main-image{position:relative}

.main-image img{
    width:100%;
    height:520px;
    object-fit:cover;
    border-radius:8px;
    background:#f4f4f4;
}

.related-images{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:14px;
    margin-top:14px;
}

.related-images img{
    width:100%;
    height:170px;
    object-fit:cover;
    border-radius:8px;
}

.detail-copy{
    position:sticky;
    top:106px;
}

.detail-copy h1{
    font-size:46px;
    font-weight:900;
    margin:0 0 18px;
}

.detail-copy p{
    color:#4b5563;
    font-size:17px;
    line-height:1.7;
}

.detail-price{font-size:34px;margin:22px 0}

.detail-actions{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
}

.product-promises{
    margin-top:26px;
    display:grid;
    gap:12px;
    color:#333;
}

.product-promises span{
    display:flex;
    align-items:center;
    gap:10px;
}

.cart-layout{
    display:grid;
    grid-template-columns:minmax(0,1fr) 360px;
    gap:24px;
    align-items:start;
}

.cart-item{
    display:grid;
    grid-template-columns:96px minmax(0,1fr) 96px 120px 44px;
    gap:16px;
    align-items:center;
    padding:18px 0;
    border-bottom:1px solid var(--line);
}

.cart-item:first-of-type{padding-top:0}
.cart-item:last-of-type{border-bottom:0}

.cart-item img{
    width:96px;
    height:96px;
    object-fit:cover;
    border-radius:8px;
    background:#f6f6f6;
}

.cart-item h3{
    font-size:17px;
    font-weight:900;
    margin:0 0 6px;
}

.cart-item span{color:var(--muted)}
.cart-item input{height:44px}

.icon-remove{
    width:40px;
    height:40px;
    border:1px solid var(--line);
    background:#fff;
    border-radius:8px;
}

.cart-summary{
    position:sticky;
    top:106px;
}

.cart-summary > span{
    color:var(--muted);
    font-weight:800;
    text-transform:uppercase;
    font-size:12px;
}

.cart-summary div{
    display:flex;
    justify-content:space-between;
    gap:16px;
    margin-top:18px;
}

.cart-summary p{margin:0;color:var(--muted)}
.cart-summary .btn{margin-top:12px}
.summary-total strong{font-size:24px}

.about-grid{
    display:grid;
    grid-template-columns:1.3fr 1fr 1fr;
    gap:18px;
}

.about-grid > div{
    border:1px solid var(--line);
    border-radius:8px;
    padding:26px;
}

.about-grid h2{
    font-size:36px;
    font-weight:900;
}

.about-card strong,
.about-card span{
    display:block;
}

.about-card strong{font-size:22px;margin-bottom:10px}
.about-card span,.about-grid p{color:var(--muted);line-height:1.7}

.payment-option{
    height:100%;
    background:#fff;
    border:1px solid var(--line);
    border-radius:8px;
    padding:30px;
}

.payment-option i{
    color:#111;
    font-size:42px;
    margin-bottom:18px;
}

/* Auth and customer dashboard */
.auth-body{
    min-height:100vh;
    background:#070707;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:28px;
}

.auth-shell{
    width:min(980px,100%);
    min-height:620px;
    background:#fff;
    border-radius:8px;
    overflow:hidden;
    display:grid;
    grid-template-columns:.95fr 1.05fr;
}

.auth-shell.wide{
    width:min(1120px,100%);
}

.auth-panel{
    background:#0b0b0b;
    color:#fff;
    padding:38px;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
}

.auth-panel .brand-mark{
    color:#fff;
}

.auth-panel .brand-mark span{
    background:#fff;
    color:#111;
}

.auth-copy h1{
    font-size:54px;
    font-weight:900;
    line-height:1;
    margin:0 0 18px;
}

.auth-copy p{
    color:#d1d5db;
    font-size:17px;
    line-height:1.7;
    margin:0;
}

.auth-card{
    padding:44px;
    align-self:center;
}

.auth-card h2{
    font-size:34px;
    font-weight:900;
    margin-bottom:24px;
}

.auth-card label,
.user-form label{
    font-weight:800;
    font-size:13px;
}

.auth-card .form-control,
.user-form .form-control{
    min-height:48px;
    border-radius:8px;
    border-color:var(--line);
}

.auth-switch{
    text-align:center;
    color:var(--muted);
    margin:18px 0 0;
}

.auth-switch a{
    color:#111;
    font-weight:900;
}

.user-shell .admin-sidebar{
    background:#080808;
}

.user-panel .admin-stats{
    grid-template-columns:repeat(3,minmax(0,1fr));
}

.panel-title{
    font-size:28px;
    font-weight:900;
    margin-bottom:20px;
}

.dashboard-table{
    border-color:var(--line);
}

.dashboard-table thead th{
    background:#111;
    color:#fff;
    border-color:#111;
}

.user-form{
    max-width:720px;
}

.user-form img{
    width:72px;
    height:72px;
    border-radius:8px;
    object-fit:cover;
    border:1px solid var(--line);
}

.site-footer{
    background:#070707;
    color:#fff;
    padding:48px 0;
}

.footer-grid{
    display:grid;
    grid-template-columns:1.5fr repeat(3,1fr);
    gap:30px;
}

.footer-brand{color:#fff;margin-bottom:14px}
.footer-brand span{background:#fff;color:#111}
.site-footer p{color:#bdbdbd;margin:12px 0}
.site-footer h5{font-size:15px;font-weight:900;margin-bottom:14px}
.site-footer a{display:block;color:#d1d5db;margin-bottom:9px}

/* Admin */
.admin-body{
    background:#f4f4f4;
    overflow:auto;
}

.admin-shell{
    display:grid;
    grid-template-columns:280px minmax(0,1fr);
    min-height:100vh;
}

.admin-sidebar{
    background:#070707;
    color:#fff;
    padding:24px;
    position:sticky;
    top:0;
    height:100vh;
    overflow:auto;
}

.admin-logo{
    display:flex;
    align-items:center;
    gap:10px;
    color:#fff;
    font-size:22px;
    font-weight:900;
    margin-bottom:28px;
}

.admin-logo span{
    width:38px;
    height:38px;
    border-radius:8px;
    background:#fff;
    color:#111;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:14px;
}

.admin-profile{
    display:flex;
    gap:12px;
    align-items:center;
    border:1px solid rgba(255,255,255,.14);
    border-radius:8px;
    padding:14px;
    margin-bottom:24px;
}

.admin-profile img{
    width:52px;
    height:52px;
    border-radius:50%;
    object-fit:cover;
}

.admin-profile h5{margin:0;font-size:15px}
.admin-profile span{color:#a3a3a3;font-size:12px}

.admin-menu{
    list-style:none;
    margin:0;
    padding:0;
}

.admin-menu li{margin-bottom:8px}

.admin-menu a{
    color:#d4d4d4;
    display:flex;
    gap:12px;
    align-items:center;
    padding:12px;
    border-radius:8px;
    font-weight:700;
}

.admin-menu a:hover,
.admin-menu a.active{
    background:#fff;
    color:#111;
}

.admin-content{
    min-width:0;
    min-height:100vh;
    overflow:visible;
}

.admin-topbar{
    height:78px;
    background:#fff;
    border-bottom:1px solid var(--line);
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:18px;
    padding:0 28px;
    position:sticky;
    top:0;
    z-index:10;
}

.dashboard-hamburger{
    flex:0 0 auto;
}

.admin-kicker{
    color:#777;
    font-size:12px;
    font-weight:900;
    text-transform:uppercase;
}

.admin-topbar h1{
    margin:2px 0 0;
    font-size:24px;
    font-weight:900;
}

.admin-main{
    padding:28px;
}

.admin-panel{
    background:#fff;
    border:1px solid var(--line);
    border-radius:8px;
    padding:24px;
    min-height:calc(100vh - 134px);
    overflow:visible;
}

.admin-stats{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:16px;
    margin-bottom:24px;
}

.admin-stat{
    border:1px solid var(--line);
    border-radius:8px;
    padding:20px;
    background:#fafafa;
}

.admin-stat span{
    color:#777;
    display:block;
    font-weight:900;
    text-transform:uppercase;
    font-size:12px;
}

.admin-stat strong{
    display:block;
    font-size:38px;
    margin-top:8px;
}

.admin-welcome{
    border-radius:8px;
    background:#070707;
    color:#fff;
    padding:30px;
}

.admin-welcome p{color:#cfcfcf;margin:0}

.max-width{max-width:1116px;margin:30px auto}
.admin-file-btns{list-style:none;display:flex;flex-wrap:wrap;justify-content:center;gap:20px}

@media(max-width:1100px){
    .main-nav{grid-template-columns:auto 1fr auto auto}
    .store-hamburger{display:flex}
    .store-menu-panel{
        position:fixed;
        top:0;
        left:0;
        width:min(330px,86vw);
        height:100vh;
        background:#fff;
        border-right:1px solid var(--line);
        padding:22px;
        z-index:50;
        transform:translateX(-105%);
        transition:transform .25s ease;
        display:block;
        overflow:auto;
    }
    .menu-toggle:checked ~ .store-menu-panel{
        transform:translateX(0);
    }
    .menu-toggle:checked ~ .menu-overlay{
        display:block;
        position:fixed;
        inset:0;
        background:rgba(0,0,0,.55);
        z-index:45;
        cursor:pointer;
    }
    .mobile-panel-head{
        display:flex;
        align-items:center;
        justify-content:space-between;
        gap:16px;
        margin-bottom:28px;
    }
    .store-menu-panel .nav-links{
        display:grid;
        gap:8px;
        margin-bottom:18px;
    }
    .store-menu-panel .nav-links a{
        font-size:18px;
        padding:12px 0;
        border-bottom:1px solid var(--line);
    }
    .store-menu-panel .search-form{
        width:100%;
    }
    .mobile-menu-actions{
        display:grid;
        gap:10px;
        margin-top:18px;
    }
    .mobile-menu-actions a{
        min-height:52px;
        border:1px solid var(--line);
        border-radius:8px;
        color:#111;
        display:flex;
        align-items:center;
        gap:12px;
        padding:0 14px;
        font-weight:900;
    }
    .mobile-menu-actions i{
        width:22px;
        text-align:center;
    }
    .mobile-menu-actions strong{
        margin-left:auto;
        min-width:24px;
        height:24px;
        border-radius:999px;
        background:#111;
        color:#fff;
        display:inline-flex;
        align-items:center;
        justify-content:center;
        font-size:12px;
    }
    .hero-section,.cart-layout,.product-detail{grid-template-columns:1fr}
    .detail-copy,.cart-summary,.sidebar{position:static}
    .auth-shell{grid-template-columns:1fr}
    .auth-panel{min-height:290px}
    .admin-shell{
        display:block;
    }
    .admin-sidebar{
        position:fixed;
        top:0;
        left:0;
        width:min(330px,86vw);
        height:100vh;
        z-index:60;
        transform:translateX(-105%);
        transition:transform .25s ease;
    }
    .admin-shell .menu-toggle:checked ~ .admin-sidebar{
        transform:translateX(0);
    }
    .admin-shell .menu-toggle:checked ~ .menu-overlay{
        display:block;
        position:fixed;
        inset:0;
        background:rgba(0,0,0,.55);
        z-index:55;
        cursor:pointer;
    }
    .sidebar-mobile-head{
        display:flex;
        justify-content:space-between;
        align-items:center;
        gap:16px;
        margin-bottom:22px;
    }
    .admin-sidebar > .admin-logo{
        display:none;
    }
    .dashboard-hamburger{
        display:flex;
    }
    .admin-content{
        height:auto;
        min-height:100vh;
        overflow:visible;
    }
    .admin-topbar{
        min-height:78px;
        height:auto;
    }
    .admin-panel{
        min-height:auto;
    }
}

@media(max-width:767px){
    .site-main{padding-top:20px}
    .hero-section,.page-hero{padding:26px}
    .nav-actions{display:none;}
    .main-nav {grid-template-columns: 1fr 1fr;justify-content: end;}
    .category-strip,.trust-band,.footer-grid,.about-grid,.admin-stats{grid-template-columns:1fr}
    .category-strip a{border-right:0;border-bottom:1px solid var(--line)}
    .cart-item{grid-template-columns:76px 1fr;align-items:start}
    .cart-item img{width:76px;height:76px}
    .cart-item input,.cart-item strong,.icon-remove{grid-column:2}
    .admin-topbar{
        position:sticky;
        min-height:78px;
        height:auto;
        padding:16px;
        align-items:center;
    }
    .admin-main{
        padding:16px;
    }
    .admin-panel{
        padding:18px;
        min-height:auto;
    }
    .auth-body{padding:14px}
    .auth-card{padding:28px}
    .auth-panel{padding:28px}
    .auth-copy h1{font-size:38px}
    .user-panel .admin-stats{grid-template-columns:1fr}
}
