*{box-sizing:border-box}body{margin:0;font-family:Arial,Helvetica,sans-serif;background:#f4f1ec;color:#202020}.wrap{width:min(1220px,92%);margin:auto}.site-header{background:#171717;color:white;position:sticky;top:0;z-index:10}.nav{display:flex;align-items:center;justify-content:space-between;padding:18px 0}.brand{font-size:28px;font-weight:800;text-decoration:none;color:white;letter-spacing:-1px}.brand span{color:#d68b2a}.nav nav a{color:white;text-decoration:none;margin-left:18px;font-size:14px}.hero{padding:76px 0;background:linear-gradient(135deg,#181818,#463726);color:white}.hero h1{font-size:56px;line-height:1;margin:0 0 16px}.hero p{font-size:20px;max-width:720px;color:#eee}.btn{display:inline-block;background:#d68b2a;color:#111;text-decoration:none;font-weight:700;padding:12px 18px;border-radius:999px;border:0;cursor:pointer}.btn.dark{background:#111;color:white}.btn.danger{background:#9b1c1c;color:white}.section{padding:42px 0}.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.crm-grid{display:grid;grid-template-columns:260px 1fr;min-height:100vh}.sidebar{background:#151515;color:white;padding:24px}.sidebar a{display:block;color:white;text-decoration:none;padding:10px 0;border-bottom:1px solid rgba(255,255,255,.1)}.sidebar .small{color:#aaa;font-size:12px}.admin-main{padding:28px}.stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.stat{background:white;border-radius:18px;padding:20px;box-shadow:0 8px 24px rgba(0,0,0,.07)}.card{background:white;border-radius:22px;overflow:hidden;box-shadow:0 8px 24px rgba(0,0,0,.08)}.card-img{height:230px;background:#ddd;display:flex;align-items:center;justify-content:center;font-size:48px;overflow:hidden}.card-img img{width:100%;height:100%;object-fit:cover}.card-body{padding:22px}.tag{font-size:12px;text-transform:uppercase;letter-spacing:.12em;color:#8b6a3a}.price{font-size:22px;font-weight:800;margin:10px 0}.muted{color:#666}.product-layout{display:grid;grid-template-columns:1fr 1fr;gap:36px}.product-image{background:white;border-radius:28px;min-height:420px;display:flex;align-items:center;justify-content:center;font-size:90px;box-shadow:0 8px 24px rgba(0,0,0,.08);overflow:hidden}.product-image img{width:100%;height:100%;object-fit:cover}.gallery{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:12px}.gallery-item{height:105px;background:white;border-radius:14px;overflow:hidden;display:flex;align-items:center;justify-content:center;box-shadow:0 5px 16px rgba(0,0,0,.06)}.gallery-item img{width:100%;height:100%;object-fit:cover}.thumb{width:70px;height:70px;object-fit:cover;border-radius:12px;background:#eee}.current-img{max-width:160px;height:auto;border-radius:12px;display:block;margin:6px 0 12px}input,textarea,select{width:100%;padding:12px;border:1px solid #ccc;border-radius:10px;margin:6px 0 14px;background:white}input[type=file]{background:#fafafa}table{width:100%;border-collapse:collapse;background:white;border-radius:14px;overflow:hidden}th,td{padding:12px;border-bottom:1px solid #eee;text-align:left;vertical-align:top}.notice{background:#fff7e8;border:1px solid #e0bc76;padding:16px;border-radius:14px;margin:16px 0}.adminbar{background:#111;color:white;padding:14px}.adminbar a{color:white;margin-right:16px}.site-footer{background:#191919;color:white;padding:38px 0;margin-top:40px}.footer-grid{display:flex;justify-content:space-between}.footer-grid a{color:#f3c177}.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}.pill{display:inline-block;background:#eee;border-radius:999px;padding:5px 10px;font-size:12px}.pill.green{background:#e5f8e8}.pill.orange{background:#fff1dc}@media(max-width:900px){.grid,.product-layout,.crm-grid,.stat-grid,.form-grid{grid-template-columns:1fr}.hero h1{font-size:40px}.nav{display:block}.nav nav{margin-top:12px}.nav nav a{margin-left:0;margin-right:12px}.sidebar{position:static}}

/* Global saving progress overlay */
.save-progress-overlay{
    position:fixed;
    inset:0;
    background:rgba(20,20,20,.72);
    z-index:99999;
    display:none;
    align-items:center;
    justify-content:center;
    padding:24px;
}
.save-progress-box{
    width:min(460px,92vw);
    background:white;
    border-radius:22px;
    padding:28px;
    box-shadow:0 20px 60px rgba(0,0,0,.28);
    text-align:left;
}
.save-progress-title{
    font-size:22px;
    font-weight:800;
    margin:0 0 8px;
}
.save-progress-text{
    color:#555;
    margin:0 0 18px;
}
.save-progress-track{
    width:100%;
    height:14px;
    background:#eee;
    border-radius:999px;
    overflow:hidden;
}
.save-progress-bar{
    height:100%;
    width:0%;
    background:#d68b2a;
    border-radius:999px;
    transition:width .2s linear;
}
.save-progress-percent{
    margin-top:10px;
    font-weight:700;
    color:#222;
}
body.is-saving{
    cursor:progress;
}
body.is-saving button,
body.is-saving input,
body.is-saving select,
body.is-saving textarea,
body.is-saving a.btn{
    pointer-events:none;
}

.gallery-item.is-selected{
    outline:3px solid #d68b2a;
    outline-offset:3px;
}
.product-gallery-thumb{
    cursor:pointer;
}

.compact-dashboard{
    background:white;
    border-radius:18px;
    box-shadow:0 8px 24px rgba(0,0,0,.07);
    display:grid;
    grid-template-columns:repeat(4,1fr);
    overflow:hidden;
    max-width:820px;
}
.compact-dashboard a{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    padding:18px 22px;
    color:#202020;
    text-decoration:none;
    border-right:1px solid #eee;
}
.compact-dashboard a:last-child{
    border-right:0;
}
.compact-dashboard strong{
    font-size:15px;
}
.compact-dashboard span{
    font-size:24px;
    font-weight:800;
    color:#d68b2a;
}
@media(max-width:900px){
    .compact-dashboard{
        grid-template-columns:1fr 1fr;
        max-width:100%;
    }
    .compact-dashboard a{
        border-bottom:1px solid #eee;
    }
}


.role-dashboard-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:18px;
    margin-top:28px;
    max-width:980px;
}
.role-dashboard-card{
    display:block;
    background:white;
    color:#202020;
    text-decoration:none;
    border-radius:18px;
    padding:22px;
    box-shadow:0 8px 24px rgba(0,0,0,.07);
}
.role-dashboard-card strong{
    display:block;
    font-size:18px;
    margin-bottom:10px;
}
.role-dashboard-card span{
    color:#666;
    font-size:14px;
}
.compact-dashboard-three{
    grid-template-columns:repeat(3,1fr);
}
@media(max-width:900px){
    .role-dashboard-grid{
        grid-template-columns:1fr;
        max-width:100%;
    }
    .compact-dashboard-three{
        grid-template-columns:1fr;
    }
}

/* Mobile-only product-first homepage */
.mobile-home{display:none}
@media(max-width:760px){
    body{background:#f4f1ec;padding-bottom:66px}
    .desktop-home{display:none}
    .mobile-home{display:block}
    .site-header{display:none}
    .site-footer{display:none}
    .mobile-store-hero{padding:24px 18px 18px;background:#171717;color:white;border-bottom-left-radius:28px;border-bottom-right-radius:28px}
    .mobile-kicker{color:#d68b2a;font-size:13px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;margin-bottom:12px}
    .mobile-store-hero h1{margin:0;font-size:34px;line-height:1.02;letter-spacing:-1.2px}
    .mobile-store-hero p{margin:10px 0 18px;color:#e6e0d8;font-size:15px}
    .mobile-main-btn{display:inline-block;background:#d68b2a;color:#111;text-decoration:none;font-weight:800;padding:12px 18px;border-radius:999px}
    .mobile-product-section{padding:20px 14px 18px}
    .mobile-section-title{display:flex;align-items:center;justify-content:space-between;margin:0 4px 14px}
    .mobile-section-title h2{margin:0;font-size:24px;letter-spacing:-.4px}
    .mobile-section-title a{color:#8b5d16;font-weight:800;text-decoration:none}
    .mobile-product-list{display:grid;grid-template-columns:1fr;gap:14px}
    .mobile-product-card{display:grid;grid-template-columns:128px 1fr;gap:14px;background:white;color:#202020;text-decoration:none;border-radius:22px;overflow:hidden;box-shadow:0 8px 24px rgba(0,0,0,.08);min-height:142px}
    .mobile-product-img{background:#e7e1d8;display:flex;align-items:center;justify-content:center;min-height:142px;overflow:hidden}
    .mobile-product-img img{width:100%;height:100%;object-fit:cover}
    .mobile-product-img span{font-size:44px}
    .mobile-product-info{padding:14px 14px 12px 0;display:flex;flex-direction:column;min-width:0}
    .mobile-product-category{font-size:10px;color:#8b6a3a;letter-spacing:.12em;text-transform:uppercase;font-weight:800;margin-bottom:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
    .mobile-product-info h3{margin:0;font-size:18px;line-height:1.1;letter-spacing:-.25px}
    .mobile-product-info p{margin:7px 0 8px;color:#666;font-size:13px;line-height:1.25;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
    .mobile-product-bottom{margin-top:auto;display:flex;align-items:center;justify-content:space-between;gap:10px}
    .mobile-product-bottom strong{font-size:17px}
    .mobile-product-bottom span{background:#171717;color:white;border-radius:999px;padding:7px 11px;font-size:12px;font-weight:800}
    .mobile-bottom-nav{position:fixed;left:10px;right:10px;bottom:10px;z-index:50;background:#171717;border-radius:999px;display:grid;grid-template-columns:repeat(3,1fr);box-shadow:0 12px 34px rgba(0,0,0,.25);overflow:hidden}
    .mobile-bottom-nav a{color:white;text-decoration:none;text-align:center;padding:14px 8px;font-size:13px;font-weight:800}
    .mobile-bottom-nav a:nth-child(2){color:#d68b2a}
}

/* Fixed public footer */
body{
    padding-bottom:118px;
}
.fixed-site-footer{
    position:fixed;
    left:0;
    right:0;
    bottom:0;
    z-index:40;
    margin-top:0;
    padding:20px 0;
}
.fixed-site-footer p{
    margin:6px 0 0;
}
@media(max-width:760px){
    body{
        padding-bottom:66px;
    }
    .fixed-site-footer{
        display:none;
    }
}


/* Home page hero banner only */
.home-hero-banner{
    background:
        linear-gradient(90deg, rgba(23,23,23,.86), rgba(23,23,23,.58), rgba(23,23,23,.18)),
        url('/images/hero-banner.jpg') center center / cover no-repeat !important;
    min-height:380px;
    display:flex;
    align-items:center;
}
.home-hero-banner .wrap{
    position:relative;
    z-index:1;
}
.mobile-home-hero-banner{
    background:
        linear-gradient(180deg, rgba(23,23,23,.82), rgba(23,23,23,.70)),
        url('/images/hero-banner.jpg') center center / cover no-repeat !important;
}


/* Homepage V15 redesign */
.story-section{
    background:#fff;
}
.story-wrap{
    display:grid;
    grid-template-columns:0.8fr 1.2fr;
    gap:42px;
    align-items:start;
}
.story-wrap h2{
    font-size:42px;
    line-height:1.05;
    margin:10px 0 0;
    letter-spacing:-1px;
}
.story-wrap p{
    font-size:18px;
    line-height:1.55;
    color:#444;
    margin-top:0;
}
.process-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:18px;
}
.process-grid div,
.info-card{
    background:white;
    border-radius:22px;
    padding:24px;
    box-shadow:0 8px 24px rgba(0,0,0,.07);
}
.process-grid strong{
    display:block;
    font-size:20px;
    margin-bottom:10px;
}
.process-grid span{
    color:#555;
    line-height:1.45;
}
.info-card h3{
    margin-top:0;
    font-size:24px;
}
.info-card p{
    color:#555;
    line-height:1.5;
}
.mobile-story{
    margin:8px 14px 18px;
    background:white;
    border-radius:24px;
    padding:20px;
    box-shadow:0 8px 24px rgba(0,0,0,.08);
}
.mobile-story h2{
    margin:0 0 8px;
    font-size:24px;
}
.mobile-story p{
    color:#555;
    line-height:1.4;
    margin:0 0 14px;
}
.mobile-mini-grid{
    display:grid;
    grid-template-columns:1fr;
    gap:10px;
}
.mobile-mini-grid div{
    background:#f4f1ec;
    border-radius:16px;
    padding:12px;
}
.mobile-mini-grid strong{
    display:block;
    font-size:15px;
}
.mobile-mini-grid span{
    color:#666;
    font-size:13px;
}
@media(max-width:900px){
    .story-wrap,
    .process-grid{
        grid-template-columns:1fr;
    }
}

/* Customer portal login page */
.customer-login-body{margin:0;min-height:100vh;padding:0;background:#171717}
.customer-login-page{min-height:100vh;position:relative;display:flex;align-items:center;justify-content:center;padding:42px 22px;background:linear-gradient(90deg,rgba(18,18,18,.82),rgba(18,18,18,.46),rgba(18,18,18,.76)),url('/images/hero-banner.jpg') center center/cover no-repeat}
.customer-login-overlay{position:absolute;inset:0;background:radial-gradient(circle at center,rgba(255,255,255,.10),rgba(0,0,0,.22));pointer-events:none}
.customer-login-card{position:relative;z-index:1;width:min(480px,100%);background:rgba(255,255,255,.94);backdrop-filter:blur(14px);border-radius:30px;padding:34px;box-shadow:0 28px 80px rgba(0,0,0,.34)}
.customer-login-brand{display:inline-block;color:#171717;text-decoration:none;font-size:30px;font-weight:900;letter-spacing:-1px;margin-bottom:26px}
.customer-login-brand span{color:#d68b2a}
.customer-login-kicker{color:#8b6a3a;text-transform:uppercase;letter-spacing:.16em;font-size:12px;font-weight:900;margin-bottom:10px}
.customer-login-card h1{margin:0 0 12px;font-size:42px;line-height:1;letter-spacing:-1.5px}
.customer-login-card p{margin:0 0 24px;color:#555;font-size:16px;line-height:1.45}
.customer-login-form label{font-weight:800;font-size:14px}
.customer-login-form input{font-size:16px;padding:15px;border-radius:14px}
.customer-login-form .btn{width:100%;text-align:center;font-size:16px;padding:15px 18px}
.customer-login-help{margin-top:18px;background:#fff7e8;border:1px solid #e0bc76;border-radius:18px;padding:14px;color:#333;font-size:14px;line-height:1.4}
.customer-login-links{display:flex;justify-content:space-between;gap:12px;margin-top:20px}
.customer-login-links a{color:#8b5d16;font-weight:800;text-decoration:none;font-size:14px}
@media(max-width:900px){
.customer-login-page{padding:34px 18px;align-items:flex-end;background:linear-gradient(180deg,rgba(18,18,18,.35),rgba(18,18,18,.86)),url('/images/hero-banner.jpg') center center/cover no-repeat}
.customer-login-card{padding:28px;border-radius:26px}
.customer-login-card h1{font-size:36px}
}
@media(max-width:520px){
.customer-login-page{padding:18px 14px}
.customer-login-card{padding:22px;border-radius:24px}
.customer-login-brand{font-size:26px;margin-bottom:20px}
.customer-login-card h1{font-size:32px}
.customer-login-card p{font-size:14px}
.customer-login-links{display:block}
.customer-login-links a{display:block;margin-top:12px}
}

/* Customer orders portal page */
.customer-orders-body{
    margin:0;
    min-height:100vh;
    padding:0;
    background:#171717;
}
.customer-orders-page{
    min-height:100vh;
    position:relative;
    padding:34px 22px;
    background:
        linear-gradient(90deg, rgba(18,18,18,.86), rgba(18,18,18,.50), rgba(18,18,18,.80)),
        url('/images/hero-banner.jpg') center center / cover no-repeat fixed;
}
.customer-orders-overlay{
    position:absolute;
    inset:0;
    background:radial-gradient(circle at center, rgba(255,255,255,.10), rgba(0,0,0,.28));
    pointer-events:none;
}
.customer-orders-shell{
    position:relative;
    z-index:1;
    width:min(1180px, 100%);
    margin:0 auto;
}
.customer-orders-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    margin-bottom:32px;
}
.customer-orders-actions{
    display:flex;
    gap:12px;
}
.customer-orders-actions a{
    color:white;
    text-decoration:none;
    font-weight:800;
    background:rgba(255,255,255,.14);
    border:1px solid rgba(255,255,255,.18);
    padding:10px 14px;
    border-radius:999px;
}
.customer-orders-header .customer-login-brand{
    color:white;
    margin-bottom:0;
}
.customer-orders-hero{
    background:rgba(255,255,255,.94);
    backdrop-filter:blur(14px);
    border-radius:30px;
    padding:30px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:24px;
    box-shadow:0 28px 80px rgba(0,0,0,.30);
    margin-bottom:22px;
}
.customer-orders-hero h1{
    margin:0 0 8px;
    font-size:44px;
    letter-spacing:-1.3px;
    line-height:1;
}
.customer-orders-hero p{
    margin:0;
    color:#555;
}
.customer-order-list{
    display:grid;
    gap:18px;
}
.customer-order-card,
.customer-empty-orders{
    background:rgba(255,255,255,.94);
    backdrop-filter:blur(14px);
    border-radius:28px;
    padding:24px;
    box-shadow:0 18px 54px rgba(0,0,0,.24);
}
.customer-empty-orders h2{
    margin-top:0;
    font-size:32px;
}
.customer-order-top{
    display:flex;
    justify-content:space-between;
    gap:18px;
    align-items:flex-start;
    border-bottom:1px solid #ece7df;
    padding-bottom:18px;
    margin-bottom:18px;
}
.customer-order-label,
.customer-order-total span,
.customer-order-grid span{
    display:block;
    color:#8b6a3a;
    font-size:11px;
    text-transform:uppercase;
    font-weight:900;
    letter-spacing:.12em;
    margin-bottom:6px;
}
.customer-order-top h2{
    margin:0;
    font-size:26px;
    letter-spacing:-.5px;
}
.customer-order-total{
    text-align:right;
}
.customer-order-total strong{
    font-size:28px;
}
.customer-order-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:14px;
}
.customer-order-grid div{
    background:#f4f1ec;
    border-radius:18px;
    padding:14px;
}
.customer-order-grid strong{
    display:block;
    font-size:15px;
}
.customer-order-note{
    margin-top:16px;
    background:#fff7e8;
    border:1px solid #e0bc76;
    border-radius:18px;
    padding:14px;
}
.customer-order-note p{
    margin:0;
    color:#333;
    line-height:1.4;
}
@media(max-width:900px){
    .customer-orders-page{
        padding:22px 16px;
        background:
            linear-gradient(180deg, rgba(18,18,18,.48), rgba(18,18,18,.92)),
            url('/images/hero-banner.jpg') center center / cover no-repeat fixed;
    }
    .customer-orders-header{
        display:block;
    }
    .customer-orders-actions{
        margin-top:16px;
    }
    .customer-orders-hero{
        display:block;
        padding:24px;
    }
    .customer-orders-hero .btn{
        margin-top:18px;
    }
    .customer-order-grid{
        grid-template-columns:1fr 1fr;
    }
}
@media(max-width:560px){
    .customer-orders-page{
        padding:16px 12px;
    }
    .customer-orders-hero h1{
        font-size:34px;
    }
    .customer-order-top{
        display:block;
    }
    .customer-order-total{
        text-align:left;
        margin-top:14px;
    }
    .customer-order-grid{
        grid-template-columns:1fr;
    }
    .customer-orders-actions{
        display:grid;
        grid-template-columns:1fr 1fr;
    }
    .customer-orders-actions a{
        text-align:center;
        font-size:13px;
    }
}

/* Customer order product details and cancellation */
.customer-portal-notice{
    background:rgba(255,247,232,.96);
    backdrop-filter:blur(10px);
    margin-bottom:18px;
}
.customer-order-products{
    display:grid;
    gap:12px;
    margin:0 0 18px;
}
.customer-order-product{
    display:grid;
    grid-template-columns:84px 1fr;
    gap:14px;
    align-items:center;
    background:#f8f5ef;
    border-radius:18px;
    padding:10px;
}
.customer-order-product-img{
    width:84px;
    height:84px;
    border-radius:14px;
    background:#e7e1d8;
    overflow:hidden;
    display:flex;
    align-items:center;
    justify-content:center;
}
.customer-order-product-img img{
    width:100%;
    height:100%;
    object-fit:cover;
}
.customer-order-product-img span{
    font-size:32px;
}
.customer-order-product-info strong{
    display:block;
    font-size:17px;
    margin-bottom:5px;
}
.customer-order-product-info span{
    display:block;
    color:#666;
    font-size:14px;
    margin-bottom:7px;
}
.customer-order-product-info a{
    color:#8b5d16;
    font-weight:800;
    text-decoration:none;
    font-size:14px;
}
.customer-order-footer{
    margin-top:16px;
    display:flex;
    justify-content:flex-end;
}
.customer-order-footer form{
    margin:0;
}
.customer-cancel-locked{
    display:inline-block;
    background:#eee;
    color:#555;
    border-radius:999px;
    padding:10px 14px;
    font-weight:800;
    font-size:13px;
}
@media(max-width:560px){
    .customer-order-product{
        grid-template-columns:72px 1fr;
    }
    .customer-order-product-img{
        width:72px;
        height:72px;
    }
    .customer-order-footer{
        justify-content:stretch;
    }
    .customer-order-footer .btn,
    .customer-order-footer form{
        width:100%;
    }
}

/* Checkout V20 */
.checkout-page{
    padding:58px 0 90px;
}
.checkout-wrap h1{
    font-size:42px;
    letter-spacing:-1px;
}
.checkout-layout{
    display:grid;
    grid-template-columns:1fr 430px;
    gap:24px;
    align-items:start;
}
.checkout-card,
.checkout-summary-card,
.checkout-success-card{
    background:white;
    border-radius:28px;
    padding:28px;
    box-shadow:0 12px 34px rgba(0,0,0,.08);
}
.returning-customer-box{
    background:#fff7e8;
    border:1px solid #e0bc76;
    border-radius:22px;
    padding:20px;
    margin-bottom:22px;
}
.returning-customer-box h2{
    margin:6px 0 8px;
    font-size:28px;
}
.returning-customer-box p{
    margin:0 0 14px;
    color:#555;
}
.saved-detail{
    background:rgba(255,255,255,.75);
    border-radius:14px;
    padding:12px;
    margin-top:10px;
}
.saved-detail strong{
    display:block;
    font-size:12px;
    color:#8b6a3a;
    text-transform:uppercase;
    letter-spacing:.12em;
    margin-bottom:5px;
}
.saved-detail span{
    color:#333;
}
.checkbox-line{
    display:flex;
    gap:10px;
    align-items:flex-start;
    font-weight:800;
    margin:12px 0 16px;
}
.checkbox-line input{
    width:auto;
    margin-top:3px;
}
.checkout-detail-fields.is-returning{
    display:none;
}
.checkout-main-button{
    width:100%;
    margin-top:8px;
    padding:15px 18px;
}
.checkout-summary-card{
    position:sticky;
    top:98px;
}
.checkout-summary-card h2{
    margin-top:0;
}
.checkout-items{
    display:grid;
    gap:10px;
    margin-bottom:22px;
}
.checkout-item{
    background:#f4f1ec;
    border-radius:16px;
    padding:12px;
}
.checkout-item strong{
    display:block;
}
.checkout-item span{
    color:#666;
    font-size:14px;
}
.checkout-totals{
    border-top:1px solid #eee;
    padding-top:16px;
}
.checkout-totals div{
    display:flex;
    justify-content:space-between;
    padding:8px 0;
}
.checkout-total-line{
    border-top:1px solid #eee;
    margin-top:8px;
    padding-top:14px !important;
    font-size:20px;
}
.checkout-payment-note{
    margin-top:18px;
    background:#fff7e8;
    border:1px solid #e0bc76;
    border-radius:18px;
    padding:14px;
}
.checkout-payment-note p{
    margin:6px 0 0;
    color:#555;
    line-height:1.4;
}
.checkout-actions{
    display:flex;
    gap:12px;
    flex-wrap:wrap;
}
@media(max-width:900px){
    .checkout-page{
        padding:32px 0 90px;
    }
    .checkout-layout{
        grid-template-columns:1fr;
    }
    .checkout-summary-card{
        position:static;
    }
}
@media(max-width:560px){
    .checkout-wrap h1{
        font-size:34px;
    }
    .checkout-card,
    .checkout-summary-card,
    .checkout-success-card{
        padding:22px;
        border-radius:24px;
    }
}

/* Admin Orders V21 */
.admin-order-filterbar{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin:0 0 22px;
}
.admin-order-filterbar a{
    display:inline-flex;
    gap:8px;
    align-items:center;
    background:white;
    color:#202020;
    text-decoration:none;
    border-radius:999px;
    padding:10px 14px;
    font-weight:800;
    box-shadow:0 5px 16px rgba(0,0,0,.06);
}
.admin-order-filterbar a.active{
    background:#171717;
    color:white;
}
.admin-order-filterbar strong{
    color:#d68b2a;
}
.admin-orders-list{
    display:grid;
    gap:14px;
}
.admin-order-card{
    background:white;
    border-radius:20px;
    box-shadow:0 8px 24px rgba(0,0,0,.07);
    overflow:hidden;
}
.admin-order-main{
    display:grid;
    grid-template-columns:1.2fr 1.6fr .8fr 1fr 1.1fr 1fr 1.4fr;
    gap:12px;
    align-items:center;
    padding:16px;
}
.admin-order-main span{
    display:block;
    color:#8b6a3a;
    font-size:10px;
    text-transform:uppercase;
    font-weight:900;
    letter-spacing:.12em;
    margin-bottom:5px;
}
.admin-order-main strong{
    display:block;
    font-size:14px;
}
.admin-order-main small{
    display:block;
    color:#666;
    font-size:12px;
    margin-top:3px;
}
.admin-order-actions{
    display:flex;
    gap:8px;
    justify-content:flex-end;
}
.admin-order-actions .btn{
    padding:9px 12px;
    font-size:13px;
}
.admin-order-items{
    display:none;
    border-top:1px solid #eee;
    padding:14px;
    background:#faf8f4;
}
.admin-order-items.is-open{
    display:block;
}
.admin-order-item-img{
    width:58px;
    height:58px;
    border-radius:12px;
    background:#e7e1d8;
    overflow:hidden;
    display:flex;
    align-items:center;
    justify-content:center;
}
.admin-order-item-img img{
    width:100%;
    height:100%;
    object-fit:cover;
}
.admin-order-item-img span{
    font-size:24px;
}
.admin-order-edit-form{
    background:white;
    border-radius:22px;
    padding:22px;
    margin-top:26px;
    box-shadow:0 8px 24px rgba(0,0,0,.07);
}
.admin-status-shortcuts{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin:10px 0 18px;
}
.admin-status-shortcuts button{
    border:0;
    background:#eee;
    border-radius:999px;
    padding:9px 12px;
    font-weight:800;
    cursor:pointer;
}
@media(max-width:1150px){
    .admin-order-main{
        grid-template-columns:1fr 1fr 1fr;
    }
    .admin-order-actions{
        justify-content:flex-start;
    }
}
@media(max-width:700px){
    .admin-order-main{
        grid-template-columns:1fr;
    }
    .admin-order-actions{
        display:grid;
        grid-template-columns:1fr 1fr;
    }
}

/* Reports V22 */
.report-tabs{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin:0 0 22px;
}
.report-tabs a{
    background:white;
    color:#202020;
    text-decoration:none;
    border-radius:999px;
    padding:10px 14px;
    font-weight:800;
    box-shadow:0 5px 16px rgba(0,0,0,.06);
}
.report-tabs a.active{
    background:#171717;
    color:white;
}
.report-kpi-grid{
    display:grid;
    grid-template-columns:repeat(6,1fr);
    gap:12px;
    margin-bottom:26px;
}
.report-kpi-grid div{
    background:white;
    border-radius:18px;
    padding:18px;
    box-shadow:0 8px 24px rgba(0,0,0,.07);
}
.report-kpi-grid span{
    display:block;
    color:#8b6a3a;
    text-transform:uppercase;
    letter-spacing:.12em;
    font-size:10px;
    font-weight:900;
    margin-bottom:8px;
}
.report-kpi-grid strong{
    display:block;
    font-size:24px;
}
@media(max-width:1100px){
    .report-kpi-grid{grid-template-columns:repeat(3,1fr);}
}
@media(max-width:700px){
    .report-kpi-grid{grid-template-columns:1fr 1fr;}
}

/* User Rights V23 */
.role-selector-form{
    background:white;
    border-radius:22px;
    padding:20px;
    box-shadow:0 8px 24px rgba(0,0,0,.07);
    max-width:560px;
    margin-bottom:20px;
}
.role-selector-form label{
    font-weight:900;
}
.role-selector-form select{
    font-size:16px;
    font-weight:800;
}
.role-summary-card{
    display:grid;
    grid-template-columns:1.4fr 1fr .6fr;
    gap:16px;
    background:white;
    border-radius:22px;
    padding:22px;
    box-shadow:0 8px 24px rgba(0,0,0,.07);
    margin-bottom:22px;
    align-items:center;
}
.role-summary-card h2{
    margin:6px 0;
}
.role-summary-card p{
    margin:0;
    color:#555;
}
.role-summary-card span{
    display:block;
    color:#8b6a3a;
    text-transform:uppercase;
    letter-spacing:.12em;
    font-size:10px;
    font-weight:900;
    margin-bottom:6px;
}
.superuser-lock-card{
    background:#171717;
    color:white;
    border-radius:24px;
    padding:26px;
    box-shadow:0 8px 24px rgba(0,0,0,.18);
}
.superuser-lock-card h2{
    margin-top:0;
}
.rights-table th,
.rights-table td{
    vertical-align:middle;
}
.rights-description{
    color:#555;
    font-size:13px;
    line-height:1.35;
    max-width:420px;
}
@media(max-width:900px){
    .role-summary-card{
        grid-template-columns:1fr;
    }
    .rights-table{
        font-size:13px;
    }
}

/* Checkout buyer choice V25 */
.buyer-choice-box{background:#fff7e8;border:1px solid #e0bc76;border-radius:22px;padding:20px;margin-bottom:18px}
.buyer-choice-box h2{margin:6px 0 14px;font-size:26px}
.buyer-choice-actions{display:flex;flex-wrap:wrap;gap:10px}
.existing-buyer-lookup,.checkout-order-form{display:none}
.existing-buyer-lookup.is-open,.checkout-order-form.is-open{display:block}
.existing-buyer-lookup{background:#f4f1ec;border-radius:20px;padding:18px;margin-bottom:18px}
.existing-buyer-lookup .btn{width:100%}
@media(max-width:560px){.buyer-choice-actions{display:grid;grid-template-columns:1fr}}

/* Checkout structured address V26 */
.checkout-detail-fields h2{
    font-size:22px;
    margin:24px 0 12px;
    border-top:1px solid #eee;
    padding-top:18px;
}
.checkout-detail-fields h2:first-child{
    border-top:0;
    padding-top:0;
    margin-top:0;
}
.admin-order-address-block{
    background:#fff;
    border-radius:16px;
    padding:16px;
    margin-top:14px;
    border:1px solid #eee;
}
.admin-order-address-block h3{
    margin:0 0 8px;
}
.admin-order-address-block p{
    margin:0;
    color:#444;
    line-height:1.45;
}
.customer-delivery-address-card{
    margin-top:16px;
    background:#f8f5ef;
    border-radius:18px;
    padding:14px;
}
.customer-delivery-address-card strong{
    display:block;
    color:#8b6a3a;
    text-transform:uppercase;
    letter-spacing:.12em;
    font-size:11px;
    margin-bottom:8px;
}
.customer-delivery-address-card p{
    margin:0;
    color:#333;
    line-height:1.45;
}
