*{box-sizing:border-box}html,body{margin:0;padding:0}body{font-family:Arial,Helvetica,sans-serif;background:#f5f7fb;color:#151923}a{text-decoration:none;color:inherit}
:root{--purple:#4c1d95;--purple2:#6d28d9;--light:#f0eaff;--border:#e7e9ef;--muted:#6b7280}
.topbar{background:linear-gradient(90deg,#3b167d,#4c1d95);color:#fff;font-size:13px}.topinner{max-width:1380px;margin:auto;padding:7px 22px;display:flex;justify-content:space-between;gap:20px}.topinner div{display:flex;gap:24px}
header{background:#fff;border-bottom:1px solid var(--border);position:relative;z-index:20}.mainnav{max-width:1380px;margin:auto;padding:13px 22px;display:flex;align-items:center;gap:34px}
.brand{display:flex;align-items:center;gap:6px;color:var(--purple);min-width:245px}.brand .cart-logo{font-size:37px}.brand b{display:block;font-size:29px;line-height:1}.brand small{display:block;color:#111;font-size:13px;margin-top:4px}
.search{display:flex;flex:1;max-width:610px;height:42px}.search input{flex:1;min-width:0;border:1px solid var(--border);border-right:0;border-radius:9px 0 0 9px;padding:0 14px;font-size:14px}.search button{width:48px;border:0;border-radius:0 9px 9px 0;background:var(--purple);color:#fff;font-size:25px;cursor:pointer}
.nav-actions{display:flex;align-items:center;gap:21px;font-size:14px;white-space:nowrap}.nav-actions a:hover,.nav-actions .active{color:var(--purple);font-weight:700}.nav-actions .active{border-bottom:2px solid var(--purple);padding-bottom:11px;margin-bottom:-13px}
.home{max-width:1380px;margin:auto;padding:0 22px 30px}.hero-layout{display:grid;grid-template-columns:240px 1fr;gap:10px;margin-top:10px}
.category-menu{background:#fff;border-radius:8px;overflow:hidden;box-shadow:0 3px 14px #0000000b;height:max-content}.cat-head{background:linear-gradient(90deg,#3f1688,#4c1d95);color:#fff;font-weight:700;padding:14px 16px}.category-menu a{display:flex;justify-content:space-between;align-items:center;padding:11px 15px;border-bottom:1px solid #f0f0f3;font-size:14px}.category-menu a:hover{color:var(--purple);background:#faf8ff}.category-menu b{font-size:19px;color:#777}
.slider{height:315px;position:relative;overflow:hidden;border-radius:9px;background:#e9e1ff}.slide{position:absolute;inset:0;display:flex;align-items:center;padding:30px 60px;background:#e9e1ff center/cover no-repeat;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .5s}.slide.active{opacity:1;visibility:visible;pointer-events:auto;z-index:1}.slide-content{max-width:500px}.eyebrow{font-weight:800;color:var(--purple);letter-spacing:1.5px;font-size:13px}.slide h1{font-size:43px;line-height:1.06;margin:9px 0 12px}.slide h1 em{font-style:normal;color:var(--purple)}.slide p{font-size:16px;line-height:1.45;color:#3f4350;margin:0 0 10px}.btn{display:inline-block;background:var(--purple);color:#fff;padding:11px 18px;border-radius:8px;font-weight:700}.slider-arrow{position:absolute;z-index:5;top:50%;transform:translateY(-50%);border:0;background:#fff;color:#222;border-radius:50%;width:38px;height:38px;font-size:29px;cursor:pointer;box-shadow:0 2px 10px #0002}.slider-arrow.prev{left:12px}.slider-arrow.next{right:12px}.dots{position:absolute;z-index:6;bottom:12px;left:0;right:0;text-align:center}.dots button{width:9px;height:9px;border:0;border-radius:50%;padding:0;margin:0 3px;background:#bbb}.dots button.active{background:var(--purple);transform:scale(1.25)}
.ticker{height:40px;background:#fff;border:1px solid var(--border);border-radius:8px;margin-top:10px;display:flex;align-items:center;overflow:hidden}.ticker-label{background:#ef2347;color:#fff;font-weight:700;padding:11px 18px;white-space:nowrap}.ticker-track{flex:1;overflow:hidden;white-space:nowrap;padding:0 18px}.ticker-track a{font-size:13px;margin-right:12px}.ticker-track a:hover{color:var(--purple)}.ticker-arrows{padding:0 14px;white-space:nowrap}
.benefits{display:grid;grid-template-columns:repeat(4,1fr);background:#fff;border:1px solid var(--border);border-radius:9px;margin-top:10px}.benefits>div{display:flex;align-items:center;gap:15px;padding:16px 26px;border-right:1px solid #edf0f4}.benefits>div:last-child{border:0}.benefits b{font-size:29px;color:var(--purple)}.benefits strong,.benefits small{display:block}.benefits small{font-size:12px;color:var(--muted);margin-top:3px}
.section{margin-top:24px}.section-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.section-heading h2{font-size:21px;margin:0}.section-heading a{font-size:13px;color:var(--purple);font-weight:700}
.category-cards{display:grid;grid-template-columns:repeat(6,1fr);gap:10px}.category-card{background:#fff;border:1px solid #edf0f4;border-radius:10px;padding:13px 7px;text-align:center;transition:.2s}.category-card:hover{transform:translateY(-2px);box-shadow:0 8px 20px #0001}.category-icon{height:57px;font-size:39px;display:flex;align-items:center;justify-content:center}.category-card strong{font-size:13px;display:block;margin-top:5px}
.products-wrap{position:relative}.product-row{display:flex;gap:10px;overflow-x:auto;scroll-behavior:smooth;scrollbar-width:none;padding:2px}.product-row::-webkit-scrollbar{display:none}.product-card{flex:0 0 185px;background:#fff;border:1px solid #edf0f4;border-radius:10px;padding:11px;position:relative}.product-image{height:145px;background:#f7f7f9;border-radius:8px;display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden}.product-image img{width:100%;height:100%;object-fit:contain}.product-image>span{font-weight:800;color:#aaa}.product-image label{position:absolute;left:7px;top:7px;background:var(--purple);color:#fff;border-radius:4px;padding:4px 6px;font-size:10px;font-weight:800}.heart{position:absolute;right:7px;top:6px;border:0;background:#fff;border-radius:50%;font-size:21px;cursor:pointer}.product-card small{display:block;color:#888;font-size:11px;margin-top:9px}.product-card h3{font-size:13px;line-height:1.3;margin:5px 0;height:34px;overflow:hidden}.product-price{font-weight:800;font-size:15px;color:#169447}.stars{font-size:12px;color:#f5a400;margin-top:5px}.stars span{color:#888}.product-link{display:inline-block;color:var(--purple);font-size:11px;font-weight:700;margin-top:6px}.product-arrow{position:absolute;z-index:4;top:45%;transform:translateY(-50%);width:36px;height:36px;border:0;border-radius:50%;background:#fff;box-shadow:0 3px 14px #0002;font-size:26px;cursor:pointer}.product-arrow.left{left:-17px}.product-arrow.right{right:-17px}
footer{background:#101a29;color:#d6dbe3;margin-top:28px;padding:38px max(22px,calc((100% - 1380px)/2)) 0}.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1.3fr;gap:45px}.footer-brand{font-size:25px;font-weight:900;color:#fff}.footer-brand .cart-logo{font-size:30px}.footer-brand small{display:block;font-size:12px;font-weight:400;margin-left:40px;margin-top:-2px}.footer-grid p{font-size:13px;line-height:1.6;color:#b8c0cc}.footer-grid h3{color:#fff;font-size:15px}.footer-grid>a,.footer-grid>div>a{display:block;color:#b8c0cc;font-size:13px;margin:9px 0}.footer-grid a:hover{color:#fff}.socials{display:flex;gap:9px;margin-top:14px}.socials a{width:30px!important;height:30px;background:#26354b;border-radius:50%;display:flex!important;align-items:center;justify-content:center;color:#fff!important;margin:0!important}.footer-bottom{border-top:1px solid #263142;margin-top:30px;padding:17px 0;text-align:center;color:#98a2b1;font-size:12px}

.admin{display:flex;min-height:100vh}.admin aside{width:235px;background:#17151f;color:#ddd;padding:22px;display:flex;flex-direction:column;gap:5px}.admin aside a{padding:12px;border-radius:8px}.admin aside a:hover,.admin aside .active{background:#292934;color:#fff}.adminbrand{font-size:25px;font-weight:900;color:#fff;margin-bottom:20px}.adminmain{flex:1;padding:30px}.panel{background:#fff;border-radius:14px;padding:18px;margin:14px 0;box-shadow:0 5px 24px #0001}.stats{display:grid;grid-template-columns:repeat(6,1fr);gap:14px;margin:25px 0}.stats div{background:#fff;padding:18px;border-radius:14px}.stats small{display:block;color:#777}.stats b{font-size:23px;display:block;margin-top:8px}table{width:100%;border-collapse:collapse}th,td{text-align:left;padding:12px;border-bottom:1px solid #eee}.inlineform{display:flex;flex-wrap:wrap;gap:10px}.content-form{display:grid;gap:13px}.content-form label{display:grid;gap:6px;font-weight:600}.danger{background:#fee;color:#900}.slide-list{margin-top:20px}.slide-item{display:flex;justify-content:space-between;gap:20px;align-items:center;border:1px solid #eee;padding:14px;border-radius:10px;margin:8px 0}.slide-item small{display:block;color:#777;margin-top:5px}.mini{display:inline-flex;gap:6px;margin-left:5px}
@media(max-width:1150px){.mainnav{gap:18px}.brand{min-width:210px}.brand b{font-size:25px}.nav-actions{gap:12px}.nav-actions .account span,.nav-actions a:nth-last-child(2) span{display:none}.hero-layout{grid-template-columns:210px 1fr}.benefits>div{padding:14px 15px}.category-cards{grid-template-columns:repeat(5,1fr)}}
@media(max-width:850px){.topinner>div{display:none}.mainnav{flex-wrap:wrap}.search{order:2;flex-basis:100%;max-width:none}.nav-actions{margin-left:auto}.hero-layout{grid-template-columns:1fr}.category-menu{display:none}.slider{height:330px}.benefits{grid-template-columns:repeat(2,1fr)}.benefits>div:nth-child(2){border-right:0}.benefits>div:nth-child(-n+2){border-bottom:1px solid #edf0f4}.category-cards{grid-template-columns:repeat(4,1fr)}.footer-grid{grid-template-columns:1fr 1fr}.stats{grid-template-columns:repeat(3,1fr)}}
@media(max-width:600px){.topinner{justify-content:center}.mainnav{padding:11px 14px}.brand{min-width:auto}.brand b{font-size:22px}.brand .cart-logo{font-size:29px}.brand small{font-size:10px}.nav-actions{width:100%;justify-content:space-between;order:3;font-size:13px;overflow:auto;padding-top:3px}.nav-actions .account span,.nav-actions a:nth-last-child(2) span{display:inline}.nav-actions .active{padding-bottom:6px;margin-bottom:-8px}.home{padding:0 10px}.slider{height:310px}.slide{padding:25px}.slide h1{font-size:32px}.slide p{font-size:14px}.ticker{margin-top:8px}.benefits{grid-template-columns:1fr 1fr}.benefits>div{padding:12px 9px;gap:8px}.benefits b{font-size:22px}.benefits strong{font-size:12px}.benefits small{font-size:10px}.category-cards{grid-template-columns:repeat(3,1fr)}.section-heading h2{font-size:19px}.product-card{flex-basis:165px}.footer-grid{grid-template-columns:1fr}.admin{display:block}.admin aside{width:100%;flex-direction:row;overflow:auto}.adminmain{padding:15px}.stats{grid-template-columns:repeat(2,1fr)}table{display:block;overflow:auto;white-space:nowrap}}

.success{background:#dcfce7;color:#166534;padding:11px;border-radius:8px}.login-logo{font-size:31px;font-weight:900;color:var(--purple);display:flex;align-items:center;gap:6px}.login-help{font-size:12px;color:#777;margin-top:14px;line-height:1.5}

/* Shared public pages */
.page{min-height:500px}.breadcrumb{font-size:13px;color:#777;padding:18px 0}.breadcrumb span{margin:0 8px;color:#aaa}.breadcrumb a{color:var(--purple)}
.page-title{display:flex;justify-content:space-between;align-items:end;margin:5px 0 25px}.page-title h1{font-size:34px;margin:5px 0}.page-title p{color:#687080}.result-count{color:#777;font-size:13px}.catalog-layout{display:grid;grid-template-columns:220px 1fr;gap:22px}.filter-card{background:#fff;border:1px solid var(--border);border-radius:12px;height:max-content;padding:15px}.filter-card h3{margin:3px 0 12px}.filter-card a{display:block;padding:10px 9px;border-radius:7px;font-size:14px;color:#555}.filter-card a.selected,.filter-card a:hover{background:#f0eaff;color:var(--purple);font-weight:700}.toolbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px;color:#777;font-size:13px}.toolbar select{padding:8px 10px}.product-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.catalog-card{min-width:0}.catalog-card .product-image{height:210px}.empty-state{text-align:center;background:#fff;border:1px solid var(--border);border-radius:14px;padding:65px 20px}.empty-state>div{font-size:52px}.empty-state h2{margin:10px 0 5px}.empty-state p{color:#777}
.product-detail{background:#fff;border-radius:15px;border:1px solid var(--border);padding:30px;display:grid;grid-template-columns:1fr 1fr;gap:55px}.detail-image{height:510px;border-radius:12px;background:#f7f7f9;display:flex;align-items:center;justify-content:center;overflow:hidden}.detail-image img{width:100%;height:100%;object-fit:contain}.detail-image span{font-size:30px;font-weight:900;color:#bbb}.detail-info{padding:15px 5px}.category-label{color:var(--purple);font-weight:700}.detail-info h1{font-size:34px;line-height:1.15;margin:9px 0}.stars.big{margin:10px 0}.price{font-size:35px;font-weight:900;color:#151923;margin:14px 0}.description{color:#5e6674;line-height:1.7}.stock{font-size:13px;color:#d33;margin:15px 0}.stock.in{color:#169447}.buy{font-size:16px;padding:14px 25px}.disabled{opacity:.5}.detail-points{display:flex;gap:10px;flex-wrap:wrap;margin-top:25px}.detail-points span{background:#f6f7fb;padding:10px 12px;border-radius:8px;font-size:12px}
.cart-layout{display:grid;grid-template-columns:1fr 330px;gap:25px}.cart-item{background:#fff;border:1px solid var(--border);border-radius:12px;padding:13px;display:grid;grid-template-columns:90px 1fr 90px 120px;gap:18px;align-items:center;margin-bottom:10px}.cart-thumb{height:80px;background:#f7f7f9;border-radius:8px;display:flex;align-items:center;justify-content:center;font-size:28px;overflow:hidden}.cart-thumb img{width:100%;height:100%;object-fit:contain}.cart-info h3{font-size:15px;margin:0 0 6px}.cart-info small{color:#888}.remove{display:block;color:#d33;font-size:12px;margin-top:10px}.qty{font-size:13px;color:#666}.summary{background:#fff;border:1px solid var(--border);border-radius:12px;padding:22px;height:max-content}.summary h2{margin-top:0;font-size:20px}.summary>div{display:flex;justify-content:space-between;margin:14px 0}.summary hr{border:0;border-top:1px solid #eee}.summary .grand{font-size:18px}.checkout-btn{width:100%;text-align:center;margin:12px 0}.continue{display:block;text-align:center;color:var(--purple);font-size:13px;margin-top:10px}
.checkout-layout{display:grid;grid-template-columns:1fr 330px;gap:25px}.checkout-form h2{margin-top:0}.field-row{display:grid;grid-template-columns:1fr 1fr;gap:15px}.checkout-form label,.contact-form label{display:grid;gap:6px;font-weight:700;font-size:13px}.checkout-form input,.checkout-form textarea,.checkout-form select,.contact-form input,.contact-form textarea{width:100%;padding:12px;border:1px solid #ddd;border-radius:8px;margin-bottom:12px}.checkout-form textarea,.contact-form textarea{min-height:110px;resize:vertical}
.info-hero{background:linear-gradient(120deg,#efe7ff,#fff);border-radius:15px;padding:55px 65px;border:1px solid #e8ddff}.info-hero h1{font-size:44px;margin:10px 0}.info-hero em{font-style:normal;color:var(--purple)}.info-hero p{max-width:760px;line-height:1.7;color:#555}.info-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:20px}.info-grid .panel{padding:28px}.info-icon{font-size:34px}
.contact-layout{display:grid;grid-template-columns:350px 1fr;gap:22px}.contact-info{padding:25px}.contact-info h2{margin-top:0}.contact-info b{color:var(--purple)}.contact-info p{color:#666;margin-top:5px}.contact-form{display:grid;gap:2px}
.cart-badge{background:#ef2347;color:#fff;border-radius:50%;font-size:10px;min-width:17px;height:17px;display:inline-flex;align-items:center;justify-content:center;margin-left:-5px;margin-top:-12px}
@media(max-width:950px){.product-grid{grid-template-columns:repeat(3,1fr)}.catalog-layout{grid-template-columns:180px 1fr}.cart-layout,.checkout-layout{grid-template-columns:1fr}.product-detail{grid-template-columns:1fr;gap:25px}.detail-image{height:420px}.info-grid{grid-template-columns:1fr 1fr}.contact-layout{grid-template-columns:1fr}.footer-grid{grid-template-columns:1fr 1fr}}
@media(max-width:650px){.page-title{align-items:flex-start;gap:8px;flex-direction:column}.catalog-layout{grid-template-columns:1fr}.filter-card{display:none}.product-grid{grid-template-columns:repeat(2,1fr);gap:10px}.catalog-card .product-image{height:170px}.product-detail{padding:15px}.detail-image{height:320px}.detail-info h1{font-size:27px}.cart-item{grid-template-columns:70px 1fr;gap:10px}.cart-item>.qty,.cart-item>strong{grid-column:2}.field-row{grid-template-columns:1fr}.info-hero{padding:30px 22px}.info-hero h1{font-size:33px}.info-grid{grid-template-columns:1fr}.topinner{font-size:11px}.topinner>div{display:none}}


/* V14 PRODUCTS PAGE ALIGNMENT RECOVERY */
body{margin:0!important;font-family:Arial,Helvetica,sans-serif!important;background:#f5f7fb!important;color:#151923!important}
.page{max-width:1380px!important;min-height:500px!important;margin:0 auto!important;padding:0 22px 45px!important}
.page .breadcrumb{display:flex!important;align-items:center!important;gap:8px!important;padding:18px 0 10px!important;font-size:13px!important;color:#777!important}
.page .breadcrumb span{margin:0!important;color:#aaa!important}
.page-title{display:flex!important;justify-content:space-between!important;align-items:flex-end!important;gap:20px!important;margin:5px 0 24px!important}
.page-title h1{font-size:36px!important;line-height:1.15!important;margin:5px 0!important;font-weight:800!important}
.page-title p{margin:0!important;color:#687080!important}
.page-title .eyebrow{display:block!important;font-size:12px!important;color:#4c1d95!important;font-weight:800!important;letter-spacing:1.2px!important}
.result-count{font-size:13px!important;color:#6b7280!important;white-space:nowrap!important;padding-bottom:6px!important}
.catalog-layout{display:grid!important;grid-template-columns:235px minmax(0,1fr)!important;gap:24px!important;align-items:start!important}
.filter-card{display:flex!important;flex-direction:column!important;background:#fff!important;border:1px solid #e7e9ef!important;border-radius:12px!important;padding:16px!important;height:max-content!important;box-shadow:0 4px 18px rgba(0,0,0,.05)!important}
.filter-card h3{font-size:16px!important;margin:2px 0 12px!important}
.filter-card a{display:block!important;padding:10px 10px!important;border-radius:7px!important;color:#555!important;font-size:14px!important}
.filter-card a.selected,.filter-card a:hover{background:#f0eaff!important;color:#4c1d95!important;font-weight:700!important}
.catalog-layout>section{min-width:0!important}
.toolbar{display:flex!important;justify-content:space-between!important;align-items:center!important;background:#fff!important;border:1px solid #e7e9ef!important;border-radius:10px!important;padding:10px 14px!important;margin-bottom:14px!important;color:#6b7280!important;font-size:13px!important}
.toolbar select{padding:8px 10px!important;border:1px solid #ddd!important;border-radius:7px!important;background:#fff!important}
.product-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:16px!important}
.product-grid .product-card{min-width:0!important;background:#fff!important;border:1px solid #e7e9ef!important;border-radius:12px!important;padding:11px!important;box-shadow:0 4px 18px rgba(0,0,0,.04)!important}
.product-grid .product-image{height:205px!important;width:100%!important;background:#f7f7f9!important;border-radius:9px!important;display:flex!important;align-items:center!important;justify-content:center!important;position:relative!important;overflow:hidden!important}
.product-grid .product-image img{width:100%!important;height:100%!important;object-fit:contain!important}
.product-grid .product-card h3{font-size:14px!important;line-height:1.35!important;height:38px!important;overflow:hidden!important;margin:6px 0!important}
.product-grid .product-card small{display:block!important;color:#888!important;font-size:11px!important;margin-top:9px!important}
.product-grid .product-price{font-size:17px!important;font-weight:800!important;color:#168a42!important;margin-top:4px!important}
.product-grid .stars{font-size:12px!important;color:#f4a300!important;margin:5px 0!important}
.product-grid .stars span{color:#888!important}
.product-grid .product-card .btn{display:block!important;width:100%!important;text-align:center!important;margin-top:8px!important;padding:10px 8px!important}
.product-grid .product-image label{position:absolute!important;left:7px!important;top:7px!important;background:#4c1d95!important;color:#fff!important;border-radius:4px!important;padding:4px 7px!important;font-size:10px!important;font-weight:800!important}
.product-grid .heart{position:absolute!important;right:7px!important;top:5px!important;border:0!important;background:#fff!important;border-radius:50%!important;font-size:21px!important;cursor:pointer!important}
.empty-state{background:#fff!important;border:1px solid #e7e9ef!important;border-radius:14px!important;text-align:center!important;padding:70px 20px!important;box-shadow:0 4px 18px rgba(0,0,0,.04)!important}
.empty-state>div{font-size:48px!important}.empty-state h2{margin:10px 0 5px!important}.empty-state p{color:#777!important;margin-bottom:18px!important}
@media(max-width:1050px){.product-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}.catalog-layout{grid-template-columns:210px minmax(0,1fr)!important}}
@media(max-width:750px){.catalog-layout{grid-template-columns:1fr!important}.filter-card{display:none!important}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.page{padding:0 14px 35px!important}.page-title{align-items:flex-start!important;flex-direction:column!important}.result-count{padding:0!important}.toolbar{gap:10px}}
@media(max-width:480px){.product-grid{grid-template-columns:1fr 1fr!important;gap:10px!important}.product-grid .product-image{height:165px!important}.page-title h1{font-size:30px!important}}

/* V15 admin product gallery */
.success{background:#dcfce7;color:#166534;padding:11px 14px;border-radius:8px;margin:12px 0}
.product-admin-form{display:grid;gap:16px}.admin-field-grid{display:grid;grid-template-columns:repeat(3,minmax(150px,1fr));gap:12px}.admin-field-grid label,.product-admin-form>label{display:grid;gap:6px;font-size:13px;font-weight:700}.admin-field-grid input,.admin-field-grid select,.product-admin-form textarea{width:100%;padding:10px;border:1px solid #ddd;border-radius:7px}.product-admin-form textarea{min-height:80px;resize:vertical}
.product-images-admin{border:1px dashed #cfc7e8;background:#fbfaff;padding:16px;border-radius:10px}.product-images-admin h3{margin:0 0 12px}.product-images-admin h3 small{display:block;font-size:11px;color:#777;font-weight:400;margin-top:4px}
.image-upload-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:10px}.image-upload-box{position:relative;min-height:150px;border:1px dashed #bdb5d4;background:#fff;border-radius:9px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;text-align:center;overflow:hidden;cursor:pointer;padding:10px}.image-upload-box:hover{border-color:#4c1d95;background:#faf8ff}.image-upload-box input{position:absolute;inset:0;opacity:0;cursor:pointer}.image-upload-box .slot-number{position:absolute;top:7px;left:7px;width:22px;height:22px;border-radius:50%;background:#4c1d95;color:#fff;font-size:11px;display:flex;align-items:center;justify-content:center}.upload-icon{font-size:30px;color:#4c1d95}.image-upload-box strong{font-size:12px}.image-upload-box small{font-size:10px;color:#888}.image-upload-box img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;background:#fff}.image-upload-box.has-image:after{content:"Change";position:absolute;bottom:0;left:0;right:0;padding:6px;background:#4c1d95dd;color:#fff;font-size:10px}
.url-fallback{font-size:12px;color:#777;margin:12px 0 0}.url-fallback input{margin-left:8px;width:min(450px,70%);padding:8px;border:1px solid #ddd;border-radius:7px}.check-label{display:flex!important;align-items:center;gap:8px!important;font-weight:600!important}.check-label input{width:auto!important}
.admin-table-wrap{overflow:auto}.admin-thumb-row{display:flex;gap:4px}.admin-thumb-row img{width:38px;height:38px;object-fit:cover;border-radius:5px;border:1px solid #ddd}
@media(max-width:900px){.admin-field-grid{grid-template-columns:repeat(2,1fr)}.image-upload-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:600px){.admin-field-grid{grid-template-columns:1fr}.image-upload-grid{grid-template-columns:repeat(2,1fr)}.url-fallback input{display:block;margin:7px 0 0;width:100%}}

.product-gallery-thumbs{display:flex;gap:8px;margin-top:10px;flex-wrap:wrap}.product-gallery-thumbs button{width:70px;height:70px;padding:3px;border:2px solid transparent;border-radius:7px;background:#fff;cursor:pointer}.product-gallery-thumbs button.selected{border-color:#4c1d95}.product-gallery-thumbs img{width:100%;height:100%;object-fit:contain;border-radius:4px}

/* V16 admin products form alignment */
.product-admin-form .admin-field-grid{display:grid!important;grid-template-columns:repeat(3,minmax(180px,1fr))!important;gap:14px!important;width:100%!important}
.product-admin-form .admin-field-grid label{display:flex!important;flex-direction:column!important;gap:6px!important;font-size:13px!important;font-weight:700!important}
.product-admin-form .admin-field-grid input,.product-admin-form .admin-field-grid select{width:100%!important;min-height:40px!important;padding:9px 10px!important;border:1px solid #d8dbe2!important;border-radius:7px!important;background:#fff!important}
.product-admin-form>label:not(.check-label){display:flex!important;flex-direction:column!important;gap:6px!important}
.product-images-admin{width:100%!important}.image-upload-grid{display:grid!important;grid-template-columns:repeat(5,minmax(120px,1fr))!important;gap:12px!important}
.image-upload-box{min-width:0!important;min-height:155px!important}
.product-admin-form .check-label{display:flex!important;flex-direction:row!important;align-items:center!important;gap:8px!important;width:max-content!important}
.product-admin-form .check-label input{width:16px!important;height:16px!important}
.product-admin-form .btn{width:max-content!important}
.admin-table-wrap{width:100%!important}
.admin-table-wrap table{min-width:900px!important}
@media(max-width:1000px){.product-admin-form .admin-field-grid{grid-template-columns:repeat(2,minmax(180px,1fr))!important}.image-upload-grid{grid-template-columns:repeat(3,minmax(120px,1fr))!important}}
@media(max-width:650px){.product-admin-form .admin-field-grid{grid-template-columns:1fr!important}.image-upload-grid{grid-template-columns:repeat(2,minmax(120px,1fr))!important}}

/* V17: product image hover zoom */
.product-image{overflow:hidden!important}
.product-image img{transition:transform .35s ease!important;transform-origin:center center!important}
.product-card:hover .product-image img{transform:scale(1.18)!important}
.product-card:hover .product-image{box-shadow:inset 0 0 0 1px rgba(76,29,149,.12)!important}
.detail-image{overflow:hidden!important}
.detail-image img{transition:transform .35s ease!important;transform-origin:center center!important}
.detail-image:hover img{transform:scale(1.12)!important}
/* Don't zoom the image on touch devices where hover is not available. */
@media (hover:none){.product-card:hover .product-image img,.detail-image:hover img{transform:none!important}}

/* V18: polished Account / Backend Login page */
.login{width:min(460px,calc(100% - 32px));margin:70px auto;background:#fff;border:1px solid #e7e9ef;border-radius:18px;padding:34px 36px 30px;box-shadow:0 14px 45px rgba(20,20,35,.10)}
.login-logo{font-size:32px!important;font-weight:900!important;color:var(--purple)!important;display:flex!important;align-items:center!important;gap:8px!important;margin-bottom:6px}
.login-logo .cart-logo{font-size:38px;line-height:1}
.login>p:not(.login-help){font-size:15px;color:#555;margin:0 0 18px}
.login .error{background:#fee2e2;color:#b91c1c;border-radius:8px;padding:11px 13px;margin-bottom:12px;font-size:13px}
.login form{display:grid;gap:12px}
.login form input{width:100%;height:45px;padding:0 13px;border:1px solid #d9dce4;border-radius:8px;background:#fff;font-size:14px;outline:none}
.login form input:focus{border-color:var(--purple);box-shadow:0 0 0 3px #4c1d9515}
.login form .btn{width:100%;height:45px;border:0;cursor:pointer;font-size:15px;background:var(--purple)}
.login form .btn:hover{background:var(--purple2)}
.login-help{font-size:12px;color:#777;margin-top:16px;line-height:1.6;text-align:center}
.login-help a{color:var(--purple);font-weight:700}
@media(max-width:600px){.login{margin:35px auto;padding:27px 22px}.login-logo{font-size:28px!important}}

/* V19: backend maintenance controls */
.admin-form-row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.admin-form-row input,.admin-form-row select{min-height:40px;padding:9px 11px;border:1px solid #d9dce4;border-radius:7px}.admin-field-grid{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));gap:12px}.admin-field-grid input,.admin-field-grid select{min-height:40px;padding:9px 10px;border:1px solid #d9dce4;border-radius:7px}.admin-field-grid .btn{width:max-content}.inline{display:inline-flex!important;margin-left:5px}.danger{background:#fee2e2;color:#b91c1c;border:1px solid #fecaca;padding:8px 10px;border-radius:7px;cursor:pointer}.btn.small{padding:8px 11px;font-size:12px}.btn.secondary{background:#e8eaf0;color:#333}.admin-table-wrap table input,.admin-table-wrap table select{max-width:180px;padding:7px;border:1px solid #ddd;border-radius:6px}.gateway-grid{display:grid;grid-template-columns:repeat(2,minmax(300px,1fr));gap:16px}.gateway-card{border:1px solid #e4e6ec;border-radius:12px;padding:18px;background:#fff;display:grid;gap:10px}.gateway-card label{font-size:12px;font-weight:700;display:grid;gap:5px}.gateway-card input,.gateway-card select{min-height:38px;padding:8px;border:1px solid #d9dce4;border-radius:7px}.gateway-code{font-size:11px;color:#777;background:#f5f6f9;padding:5px 8px;width:max-content;border-radius:5px}.gateway-row{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px}.readonly{background:#f1f2f5;padding:9px;border-radius:7px;text-align:center;color:#777;font-size:12px}
@media(max-width:900px){.admin-field-grid{grid-template-columns:repeat(2,1fr)}.gateway-grid{grid-template-columns:1fr}}
@media(max-width:600px){.adminmain{padding:18px}.admin aside{width:190px}.admin-field-grid{grid-template-columns:1fr}.gateway-row{grid-template-columns:1fr}.admin-form-row>*{width:100%}}

/* V20: clickable product images */
.product-image-link{display:block;width:100%;height:100%;text-decoration:none;color:inherit;overflow:hidden;border-radius:inherit}
.product-image-link img{display:block;width:100%;height:100%;object-fit:cover}
.admin-thumb-row a{display:block;line-height:0}
.admin-thumb-row img{cursor:pointer}

/* V21: order shipment maintenance and ordered-product view */
.shipping-form{align-items:center;gap:4px}.shipping-input{width:90px!important;min-width:90px!important;padding:7px!important}.orders-table{min-width:1250px}.back-link{font-size:13px;color:var(--purple);text-decoration:none}.top .status-pill{background:#eee8ff;color:var(--purple);padding:8px 12px;border-radius:20px;font-size:12px;font-weight:700}.order-detail-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(280px,1fr);gap:16px}.ordered-products{display:grid;gap:10px}.ordered-product{display:grid;grid-template-columns:72px 1fr auto;gap:14px;align-items:center;padding:12px;border:1px solid #e5e7eb;border-radius:10px}.ordered-product img,.no-product-image{width:72px;height:72px;object-fit:cover;border-radius:8px;background:#f3f4f6}.ordered-product img{display:block}.no-product-image{display:grid;place-items:center;font-size:10px;color:#666}.ordered-product-info{display:grid;gap:4px}.ordered-product-info small,.ordered-product-info span{color:#666;font-size:12px}.order-summary-admin{height:max-content}.order-summary-admin>div{display:flex;justify-content:space-between;padding:9px 0;border-bottom:1px solid #eee}.order-summary-admin .grand{font-size:18px;border:0}.customer-order-info{grid-column:1/-1}
@media(max-width:800px){.order-detail-grid{grid-template-columns:1fr}.customer-order-info{grid-column:auto}.ordered-product{grid-template-columns:58px 1fr}.ordered-product>strong{grid-column:2}.ordered-product img,.no-product-image{width:58px;height:58px}}

/* V22: site content and successful checkout alignment */
.success-page{min-height:520px;display:flex;align-items:center;justify-content:center;padding-top:45px;padding-bottom:55px}
.success-card{width:min(680px,100%);background:#fff;border:1px solid var(--border);border-radius:18px;padding:44px 42px;text-align:center;box-shadow:0 10px 35px rgba(15,23,42,.08)}
.success-icon{width:72px;height:72px;margin:0 auto 18px;border-radius:50%;background:#dcfce7;color:#15803d;display:grid;place-items:center;font-size:42px;font-weight:800}
.success-card .eyebrow{display:block;font-size:12px}
.success-card h1{font-size:32px;line-height:1.2;margin:10px 0 10px}
.success-lead{max-width:540px;margin:0 auto;color:#667085;line-height:1.65;font-size:14px}
.order-number-box{margin:25px auto 20px;padding:16px 20px;border:1px dashed #cfc4ea;background:#faf8ff;border-radius:10px;display:grid;gap:5px}
.order-number-box span{font-size:12px;color:#777}.order-number-box strong{font-size:21px;letter-spacing:.5px;color:var(--purple)}
.success-actions{display:flex;justify-content:center;align-items:center;gap:18px;flex-wrap:wrap}.success-actions .continue{margin:0;display:inline-block}
.success-note{margin-top:27px;padding:15px;text-align:left;background:#f7f8fb;border-radius:10px;display:flex;gap:12px;align-items:flex-start}.success-note>span{font-size:20px}.success-note b,.success-note small{display:block}.success-note small{color:#687080;font-size:12px;line-height:1.5;margin-top:3px}
@media(max-width:600px){.success-page{padding:25px 12px 40px;min-height:480px}.success-card{padding:32px 18px}.success-card h1{font-size:27px}.success-icon{width:62px;height:62px;font-size:35px}.success-actions{flex-direction:column;gap:8px}.success-actions .btn{width:100%}}
/* Site Content admin layout */
.admin .content-form input,.admin .content-form textarea,.admin .content-form select{width:100%;padding:10px;border:1px solid #ddd;border-radius:7px}.admin .content-form{max-width:100%}

/* V23: clickable top-bar actions */
.topbar-links{display:flex!important;align-items:center!important;gap:0!important}
.topbar-links a{color:#fff!important;padding:7px 16px!important;border-left:1px solid rgba(255,255,255,.18)!important;font-size:13px!important;white-space:nowrap!important;transition:background .2s ease!important}
.topbar-links a:last-child{border-right:1px solid rgba(255,255,255,.18)!important}
.topbar-links a:hover{background:rgba(255,255,255,.12)!important}
@media(max-width:850px){.topbar-links{width:100%!important;overflow-x:auto!important;justify-content:flex-start!important}.topbar-links a{padding:7px 11px!important;font-size:12px!important}}
/* V24: Dashboard and Reports charts */
.chart-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:16px 0}.chart-panel{min-width:0}.chart-panel.wide{grid-column:1/-1}.chart-panel canvas{display:block;width:100%!important;height:300px!important}.panel-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:10px}.panel-head h2{margin:0}.panel-head span{font-size:12px;color:var(--muted)}.report-filter form{display:flex;align-items:end;gap:12px;flex-wrap:wrap}.report-filter label{display:grid;gap:5px;font-size:12px;font-weight:700}.report-filter input{min-height:40px;padding:8px 10px;border:1px solid #d9dce4;border-radius:7px}.report-filter .btn{border:0;cursor:pointer}.report-stats{margin-bottom:16px}.reports-grid .chart-panel canvas{height:320px!important}
@media(max-width:900px){.chart-grid{grid-template-columns:1fr}.chart-panel.wide{grid-column:auto}.adminmain{overflow-x:hidden}}
@media(max-width:600px){.chart-panel canvas,.reports-grid .chart-panel canvas{height:260px!important}.report-filter form>*{width:100%}.report-filter .btn{display:block;text-align:center}}

/* V25: fixed chart containers + P&L */
.chart-panel{overflow:hidden!important}.chart-box{position:relative;width:100%;height:300px;min-height:300px;overflow:hidden}.chart-panel>.chart-box canvas,.chart-panel>canvas{display:block!important;width:100%!important;height:300px!important;max-height:300px!important}
.reports-grid .chart-box{height:320px;min-height:320px}.reports-grid .chart-box canvas{height:320px!important;max-height:320px!important}
.pnl-mini{grid-template-columns:repeat(2,minmax(180px,260px))!important;margin-top:0!important}.pnl-report-stats{grid-template-columns:repeat(2,minmax(180px,260px))!important;margin-top:0!important}
.pnl-report{border-left:4px solid var(--purple)!important}.pnl-table{display:grid;gap:0;max-width:700px}.pnl-table>div{display:flex;justify-content:space-between;padding:13px 4px;border-bottom:1px solid #eee}.pnl-table .pnl-profit{font-size:18px;font-weight:800;background:#faf8ff;padding-left:10px;padding-right:10px;border-radius:7px}.report-note{font-size:12px;color:#777;line-height:1.6;max-width:850px;margin-bottom:0}
@media(max-width:900px){.chart-box,.chart-panel>canvas{height:280px;min-height:280px}.chart-panel>.chart-box canvas,.chart-panel>canvas{height:280px!important;max-height:280px!important}.reports-grid .chart-box{height:300px;min-height:300px}.reports-grid .chart-box canvas{height:300px!important;max-height:300px!important}}
@media(max-width:600px){.pnl-mini,.pnl-report-stats{grid-template-columns:1fr 1fr!important}.chart-box,.chart-panel>canvas{height:250px;min-height:250px}.chart-panel>.chart-box canvas,.chart-panel>canvas{height:250px!important;max-height:250px!important}.reports-grid .chart-box{height:270px;min-height:270px}.reports-grid .chart-box canvas{height:270px!important;max-height:270px!important}}

/* V26: HARD FIX FOR SALES & PURCHASE TREND CHART GROWTH
   Chart.js must resize against a fixed-height parent, never the canvas itself. */
.trend-panel{min-height:0!important;overflow:hidden!important}
.trend-chart-box{
  position:relative!important;
  width:100%!important;
  height:300px!important;
  min-height:300px!important;
  max-height:300px!important;
  overflow:hidden!important;
  flex:none!important;
}
.reports-trend-box{
  height:320px!important;
  min-height:320px!important;
  max-height:320px!important;
}
.trend-chart-box canvas{
  position:absolute!important;
  inset:0!important;
  display:block!important;
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  max-height:none!important;
  margin:0!important;
}
@media(max-width:900px){
  .trend-chart-box{
    height:280px!important;
    min-height:280px!important;
    max-height:280px!important;
  }
  .reports-trend-box{
    height:300px!important;
    min-height:300px!important;
    max-height:300px!important;
  }
}
@media(max-width:600px){
  .trend-chart-box{
    height:250px!important;
    min-height:250px!important;
    max-height:250px!important;
  }
  .reports-trend-box{
    height:270px!important;
    min-height:270px!important;
    max-height:270px!important;
  }
}

/* V27: FIX ALL DASHBOARD/REPORTS CHARTS - NEVER LET CANVAS HEIGHT DRIVE PANEL HEIGHT */
.dashboard-chart-box,.report-chart-box{
  position:relative!important;
  display:block!important;
  width:100%!important;
  height:300px!important;
  min-height:300px!important;
  max-height:300px!important;
  overflow:hidden!important;
  flex:none!important;
}
.dashboard-chart-box canvas,.report-chart-box canvas{
  position:absolute!important;
  top:0!important;
  left:0!important;
  right:0!important;
  bottom:0!important;
  width:100%!important;
  height:100%!important;
  min-width:0!important;
  min-height:0!important;
  max-width:none!important;
  max-height:none!important;
  display:block!important;
}
.report-chart-box{height:320px!important;min-height:320px!important;max-height:320px!important}
.trend-chart-box,.reports-trend-box{height:300px!important;min-height:300px!important;max-height:300px!important}
.reports-trend-box{height:320px!important;min-height:320px!important;max-height:320px!important}
@media(max-width:900px){
 .dashboard-chart-box{height:280px!important;min-height:280px!important;max-height:280px!important}
 .report-chart-box{height:300px!important;min-height:300px!important;max-height:300px!important}
 .trend-chart-box{height:280px!important;min-height:280px!important;max-height:280px!important}
 .reports-trend-box{height:300px!important;min-height:300px!important;max-height:300px!important}
}
@media(max-width:600px){
 .dashboard-chart-box{height:250px!important;min-height:250px!important;max-height:250px!important}
 .report-chart-box{height:270px!important;min-height:270px!important;max-height:270px!important}
 .trend-chart-box{height:250px!important;min-height:250px!important;max-height:250px!important}
 .reports-trend-box{height:270px!important;min-height:270px!important;max-height:270px!important}
}

/* V28: RESPONSIVE ADMIN DASHBOARD & REPORTS
   Cards, chart panels, filters and tables adapt cleanly to desktop/tablet/mobile. */
html,body{max-width:100%;overflow-x:hidden}
body.admin{display:flex;min-width:0}
body.admin>aside{flex:0 0 220px;box-sizing:border-box}
body.admin>.adminmain{min-width:0;width:calc(100% - 220px);box-sizing:border-box;overflow-x:hidden}
.adminmain .top,.adminmain .panel,.adminmain .chart-grid,.adminmain .stats{max-width:100%;box-sizing:border-box}
.adminmain .stats>div{min-width:0;box-sizing:border-box}
.adminmain .panel{min-width:0}
.adminmain .panel-head{min-width:0}
.adminmain .panel-head h2{min-width:0;overflow-wrap:anywhere}
.adminmain .panel-head span{min-width:0;overflow-wrap:anywhere}
.chart-grid{width:100%;min-width:0}
.dashboard-chart-box,.report-chart-box,.trend-chart-box,.reports-trend-box{width:100%!important;max-width:100%!important;box-sizing:border-box!important}
.report-filter{width:100%;box-sizing:border-box}
.report-filter form{max-width:100%}
.report-filter label{min-width:0}
.report-filter input{box-sizing:border-box;max-width:100%}
.adminmain table{display:block;width:100%;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
.adminmain .pnl-table{width:100%;max-width:700px;box-sizing:border-box}
.adminmain .pnl-table>div{min-width:0;gap:12px;flex-wrap:wrap}

/* Large tablets / smaller laptops */
@media (max-width:1100px){
  body.admin>aside{flex-basis:200px}
  body.admin>.adminmain{width:calc(100% - 200px);padding:22px}
  .stats{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .chart-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .chart-panel.wide{grid-column:1/-1}
}

/* Tablets */
@media (max-width:800px){
  body.admin{display:flex;flex-direction:column}
  body.admin>aside{
    width:100%!important;
    flex:0 0 auto;
    height:auto!important;
    min-height:0!important;
    position:relative!important;
    display:flex!important;
    flex-direction:row!important;
    align-items:center;
    gap:4px;
    padding:10px!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    white-space:nowrap;
    box-sizing:border-box;
  }
  body.admin>aside .adminbrand{
    flex:0 0 auto;
    margin:0 14px 0 4px;
  }
  body.admin>aside a{
    flex:0 0 auto;
    padding:10px 12px!important;
    margin:0!important;
    border-radius:8px;
  }
  body.admin>.adminmain{
    width:100%;
    max-width:100%;
    padding:20px!important;
  }
  .adminmain .top h1{font-size:30px}
  .stats{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
  .chart-grid{grid-template-columns:1fr!important;gap:12px!important}
  .chart-panel.wide{grid-column:auto!important}
  .panel{padding:16px!important}
}

/* Phones */
@media (max-width:520px){
  body.admin>aside{padding:8px 6px!important}
  body.admin>aside .adminbrand{font-size:18px!important;margin-right:8px}
  body.admin>aside a{font-size:13px!important;padding:9px 10px!important}
  body.admin>.adminmain{padding:12px!important}
  .adminmain .top h1{font-size:25px!important;margin:0 0 6px}
  .adminmain .top span{font-size:12px}
  .stats{grid-template-columns:1fr!important;gap:10px!important;margin:16px 0!important}
  .stats div{padding:14px!important}
  .stats b{font-size:21px!important}
  .pnl-mini,.pnl-report-stats{grid-template-columns:1fr!important}
  .panel{padding:13px!important;border-radius:12px!important}
  .panel-head{align-items:flex-start!important;flex-direction:column!important;gap:4px!important}
  .panel-head h2{font-size:20px!important}
  .panel-head span{font-size:11px!important}
  .report-filter form{display:grid!important;grid-template-columns:1fr!important;gap:10px!important}
  .report-filter form>*{width:100%!important;min-width:0!important}
  .adminmain .pnl-table>div{justify-content:space-between}
}

/* Very small phones: keep charts readable without forcing page width */
@media (max-width:360px){
  body.admin>.adminmain{padding:9px!important}
  body.admin>aside a{font-size:12px!important;padding:8px!important}
  .adminmain .top h1{font-size:22px!important}
  .panel-head h2{font-size:18px!important}
}

/* V29: final responsive chart sizing */
@media (min-width:1200px){
  .dashboard-chart-box,.report-chart-box{height:320px!important;min-height:320px!important;max-height:320px!important}
  .trend-chart-box{height:300px!important;min-height:300px!important;max-height:300px!important}
  .reports-trend-box{height:320px!important;min-height:320px!important;max-height:320px!important}
}

/* V30: clickable dashboard items */
.dashboard-clickable-stats>a{
  display:block;
  background:#fff;
  color:inherit;
  padding:18px;
  border-radius:14px;
  text-decoration:none;
  min-width:0;
  box-sizing:border-box;
  transition:transform .18s ease,box-shadow .18s ease,background .18s ease;
}
.dashboard-clickable-stats>a:hover{
  transform:translateY(-2px);
  box-shadow:0 8px 22px rgba(15,23,42,.10);
  background:#fcfaff;
}
.dashboard-clickable-stats>a small{display:block;color:#777}
.dashboard-clickable-stats>a b{font-size:23px;display:block;margin-top:8px}
.dashboard-clickable-stats>a span{display:block;color:var(--purple);font-size:11px;font-weight:700;margin-top:8px}
.dashboard-chart-link{cursor:pointer;transition:box-shadow .18s ease,transform .18s ease}
.dashboard-chart-link:hover{transform:translateY(-1px);box-shadow:0 8px 24px rgba(15,23,42,.10)}
.dashboard-summary-panel{overflow:hidden}
@media(max-width:520px){
 .dashboard-clickable-stats>a{padding:14px}
 .dashboard-clickable-stats>a b{font-size:21px}
}

/* V32: MOBILE-FIRST PUBLIC HEADER */
.mobile-menu-btn{display:none;border:0;background:var(--purple);color:#fff;width:42px;height:42px;border-radius:9px;font-size:23px;cursor:pointer;flex:0 0 42px}
@media(max-width:1050px){
  .mainnav{gap:16px;padding-left:16px;padding-right:16px}
  .brand{min-width:210px}
  .brand b{font-size:25px}
  .nav-actions{gap:13px}
}
@media(max-width:800px){
  .topinner{padding:7px 14px;font-size:11px}
  .topbar-links{display:none!important}
  .mainnav{
    position:relative;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 42px;
    grid-template-areas:"brand menu" "search search";
    gap:10px;
    padding:12px 14px;
  }
  .brand{grid-area:brand;min-width:0;max-width:100%;gap:6px}
  .brand .cart-logo{font-size:34px}
  .brand b{font-size:25px}
  .brand small{font-size:11px}
  .search{grid-area:search;width:100%;max-width:none;height:44px}
  .search input{font-size:14px}
  .search button{width:52px}
  .mobile-menu-btn{display:block;grid-area:menu;justify-self:end}
  .nav-actions{
    position:absolute;
    top:100%;
    left:0;
    right:0;
    z-index:100;
    display:none;
    flex-direction:column;
    align-items:stretch;
    gap:0;
    background:#fff;
    border-top:1px solid var(--border);
    box-shadow:0 10px 24px #0002;
    padding:7px 14px 12px;
    white-space:normal;
  }
  .nav-actions.mobile-open{display:flex}
  .nav-actions a{
    display:flex;
    align-items:center;
    min-height:44px;
    padding:10px 12px;
    border-bottom:1px solid #f0f1f4;
    font-size:15px;
  }
  .nav-actions a:last-child{border-bottom:0}
  .nav-actions .active{
    border-bottom:1px solid #f0f1f4;
    margin:0;
    padding-bottom:10px;
  }
  .home{padding-left:14px;padding-right:14px}
  .hero-layout{grid-template-columns:1fr}
  .category-menu{display:none}
  .slider{height:300px}
  .slide{padding:28px 48px}
  .slide h1{font-size:35px}
  .benefits{grid-template-columns:repeat(2,1fr)}
  .benefits>div{padding:14px 16px}
  .category-cards{grid-template-columns:repeat(3,1fr)}
  .footer-grid{grid-template-columns:1fr 1fr;gap:25px}
}
@media(max-width:520px){
  .mainnav{padding:10px 12px}
  .brand .cart-logo{font-size:30px}
  .brand b{font-size:22px}
  .brand small{font-size:10px}
  .search{height:42px}
  .slider{height:340px}
  .slide{padding:30px 42px;align-items:center}
  .slide h1{font-size:36px;line-height:1.02}
  .slide p{font-size:15px}
  .slider-arrow{width:42px;height:42px}
  .slider-arrow.prev{left:8px}.slider-arrow.next{right:8px}
  .benefits{grid-template-columns:1fr 1fr}
  .benefits>div{gap:8px;padding:13px 10px}
  .benefits b{font-size:23px}
  .benefits strong{font-size:13px}
  .benefits small{font-size:10px}
  .category-cards{grid-template-columns:repeat(2,1fr)}
  .footer-grid{grid-template-columns:1fr}
}


/* V33 MOBILE NAVIGATION FIX
   At <=800px the desktop navigation is completely hidden until the hamburger
   is pressed. This rule intentionally uses !important so no earlier desktop
   declaration can override the mobile state.
*/
@media screen and (max-width:800px){
  .mainnav{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) 44px !important;
    grid-template-areas:
      "brand menu"
      "search search" !important;
    align-items:center !important;
    gap:10px !important;
    padding:12px 14px !important;
  }
  .mainnav > .brand{grid-area:brand !important;min-width:0 !important;width:auto !important;}
  .mainnav > .search{grid-area:search !important;width:100% !important;max-width:none !important;}
  .mainnav > .mobile-menu-btn{
    grid-area:menu !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    justify-self:end !important;
    width:44px !important;
    height:44px !important;
    padding:0 !important;
    font-size:23px !important;
    line-height:1 !important;
  }
  .mainnav > .nav-actions{
    position:absolute !important;
    display:none !important;
    top:100% !important;
    left:0 !important;
    right:0 !important;
    width:100% !important;
    margin:0 !important;
    padding:6px 14px 12px !important;
    flex-direction:column !important;
    align-items:stretch !important;
    gap:0 !important;
    background:#fff !important;
    border-top:1px solid var(--border) !important;
    box-shadow:0 10px 24px #0002 !important;
    white-space:normal !important;
  }
  .mainnav > .nav-actions.mobile-open{
    display:flex !important;
  }
  .mainnav > .nav-actions a{
    display:flex !important;
    align-items:center !important;
    width:100% !important;
    min-height:46px !important;
    padding:11px 12px !important;
    margin:0 !important;
    border-bottom:1px solid #f0f1f4 !important;
    font-size:15px !important;
  }
  .mainnav > .nav-actions .active{
    padding-bottom:11px !important;
    margin:0 !important;
    border-bottom:1px solid #f0f1f4 !important;
  }
}
@media screen and (max-width:520px){
  .mainnav{padding:10px 12px !important;}
  .mainnav > .mobile-menu-btn{width:42px !important;height:42px !important;}
}

.shipping-preview{display:flex;flex-wrap:wrap;gap:8px 16px;align-items:center;padding:12px 14px;margin:12px 0;background:#f7f4ff;border:1px solid #e6dcff;border-radius:10px}.shipping-preview small{width:100%;color:#666}.shipping-rate-form{display:grid;grid-template-columns:repeat(3,minmax(150px,1fr));gap:14px}.shipping-rate-form .btn{align-self:end;height:42px}@media(max-width:800px){.shipping-rate-form{grid-template-columns:1fr}}

.company-location-form{grid-template-columns:repeat(3,minmax(180px,1fr));align-items:end}.company-location-form .btn{height:42px}.map-help{font-size:12px;color:#666;margin-top:10px}.checkout-map-section{margin-top:14px;border:1px solid var(--border);border-radius:12px;padding:12px;background:#fff}.map-heading{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:10px}.map-heading small{display:block;color:#777;margin-top:4px;font-weight:400}.map-location-btn{border:1px solid #ddd;background:#f7f4ff;color:var(--purple);border-radius:8px;padding:9px 12px;cursor:pointer;font-weight:700}.checkout-map{height:360px;border-radius:10px;overflow:hidden}.map-distance{margin-top:10px;padding:10px 12px;background:#f7f4ff;border-radius:8px;color:#333}.map-distance small{display:block;color:#777;margin-top:3px}
@media(max-width:800px){.company-location-form{grid-template-columns:1fr}.map-heading{align-items:flex-start;flex-direction:column}.checkout-map{height:300px}}

.checkout-map{height:360px!important;min-height:280px;width:100%;display:block;background:#e9eef5;z-index:1}
.checkout-map .leaflet-container{height:100%;width:100%;font:inherit}
.checkout-map-section{position:relative;overflow:hidden}
.map-heading{position:relative;z-index:2}
@media(max-width:700px){
 .checkout-map{height:300px!important;min-height:260px}
 .checkout-map-section{padding:10px}
 .map-heading{flex-direction:column;align-items:stretch}
 .map-location-btn{width:100%}
}

/* Order tracking */
.status-stack{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.shipment-pill{background:#efe6ff}
.tracking-number{font-size:13px;font-weight:600}
.shipment-status-form{display:flex;flex-wrap:wrap;gap:5px;align-items:center}
.shipment-status-form select,.shipment-status-form input{min-width:120px;max-width:180px;padding:7px;border:1px solid #d8dce5;border-radius:6px}
.track-search{max-width:900px;margin-bottom:20px}
.track-form{display:grid;grid-template-columns:1fr 1fr auto;gap:12px;align-items:end}
.track-form label{display:flex;flex-direction:column;gap:6px;font-weight:600}
.track-form input{padding:12px;border:1px solid #d8dce5;border-radius:8px}
.track-result{max-width:1100px}
.track-result-head{display:flex;justify-content:space-between;gap:15px;align-items:flex-start}
.tracking-status-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:22px 0}
.tracking-status-card{padding:16px;border:1px solid #e1e5ec;border-radius:10px;background:#fafbfe}
.tracking-status-card span{display:block;font-size:13px;color:#667085;margin-bottom:6px}
.tracking-status-card strong{font-size:17px}
.track-timeline{margin-top:26px;padding-top:6px}
.timeline{display:grid;grid-template-columns:repeat(8,1fr);gap:4px;margin-top:18px}
.timeline-step{position:relative;text-align:center;min-width:0}
.timeline-step:before{content:"";position:absolute;top:14px;left:-50%;right:50%;height:2px;background:#dfe3ea;z-index:0}
.timeline-step:first-child:before{display:none}
.timeline-dot{position:relative;z-index:1;display:inline-flex;width:28px;height:28px;border-radius:50%;align-items:center;justify-content:center;background:#e6e9ef;color:#697386;font-size:12px}
.timeline-step.done .timeline-dot{background:#5f20c9;color:#fff}
.timeline-step.active .timeline-dot{box-shadow:0 0 0 4px #eadcff}
.timeline-step b{display:block;font-size:12px;margin-top:7px}
.timeline-step small{display:block;color:#5f20c9;margin-top:3px}
.track-items{margin-top:30px}
.track-item{display:grid;grid-template-columns:110px 1fr auto;gap:15px;align-items:center;padding:13px 0;border-top:1px solid #e6e8ed}
.track-item div{display:flex;flex-direction:column;gap:4px}
.track-item small{color:#667085}
@media(max-width:850px){
 .track-form{grid-template-columns:1fr}
 .tracking-status-grid{grid-template-columns:repeat(2,1fr)}
 .timeline{display:block}
 .timeline-step{display:flex;text-align:left;gap:10px;padding:8px 0}
 .timeline-step:before{left:13px;top:-4px;bottom:50%;width:2px;height:auto;right:auto}
 .timeline-step:first-child:before{display:none}
 .timeline-dot{flex:0 0 28px}
 .timeline-step b{margin-top:5px}
 .shipment-status-form{flex-direction:column;align-items:stretch}
 .shipment-status-form select,.shipment-status-form input{max-width:none;width:100%}
}
@media(max-width:520px){
 .tracking-status-grid{grid-template-columns:1fr}
 .track-result-head{flex-direction:column}
 .track-item{grid-template-columns:1fr}
}

/* Seller account summary */
.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.card{padding:18px;border:1px solid #e5e7eb;border-radius:14px;background:#fff;box-shadow:0 4px 14px rgba(0,0,0,.05)}.card b{display:block;color:#667085;font-size:13px;margin-bottom:7px}.card strong{font-size:24px}@media(max-width:700px){.cards{grid-template-columns:1fr}}
