:root{--brand:#1559d0;--brand-dark:#0e378d;--ink:#18263c;--muted:#65748a;--line:#e5eaf2;--soft:#f5f8fc;--bs-primary:#1559d0}*{box-sizing:border-box}body{margin:0;color:var(--ink);background:#fff;font-family:Inter,'Plus Jakarta Sans',system-ui,-apple-system,'Segoe UI',sans-serif;font-size:14px;line-height:1.6}a{text-decoration:none;color:inherit}a:hover{color:var(--brand)}img{max-width:100%;display:block}button{cursor:pointer}.wrap{width:min(100% - 48px,1320px);margin:auto;min-width:0}.topline{background:#f3f7fd;color:#64758c;font-size:12px;padding:6px 0}.site-header{background:#fff;border-bottom:1px solid var(--line);position:sticky;top:-31px;z-index:100}.header-main{display:flex;align-items:center;gap:27px;padding:18px 0}.brand{display:flex;gap:10px;align-items:center;font-size:22px;font-weight:800;letter-spacing:-.8px;white-space:nowrap;color:var(--brand-dark)}.brand small{display:block;font-size:9px;letter-spacing:2px;line-height:1.2;color:var(--muted)}.brand img{max-width:200px;max-height:50px;object-fit:contain}.brand-mark{display:grid;place-items:center;width:43px;height:43px;border-radius:12px;background:var(--brand);color:#fff;font-size:24px}.search{display:flex;flex:1;min-width:0;border:1px solid #cbd8ed;border-radius:9px;overflow:hidden;background:#f9fbff;height:44px}.search input{min-width:0;flex:1;border:0;padding:0 14px;background:transparent;outline:none}.search button{border:0;background:var(--brand);color:white;padding:0 19px;display:flex;align-items:center;gap:7px}.header-actions,.auth-links{display:flex;align-items:center;gap:14px}.icon-link{position:relative;font-size:22px;color:#3b526f}.cart-badge{position:absolute;right:-7px;top:-3px;background:#ef5b42;border:2px solid white;color:white;border-radius:20px;font-size:9px;min-width:18px;text-align:center}.navline{border-top:1px solid #eff2f7}.navline .wrap{display:flex;align-items:center;gap:29px;overflow:auto;scrollbar-width:none}.navline a{white-space:nowrap;padding:11px 0;font-weight:550;font-size:13px}.navline a:hover{color:var(--brand)}.main-content{padding:23px 0 45px;min-height:58vh}.hero-grid{display:grid;grid-template-columns:2fr 1fr;gap:14px;min-width:0}.hero-main{min-width:0;border-radius:15px;overflow:hidden;background:#e9f2ff}.hero-slide{height:344px;display:flex;align-items:center;position:relative;background:radial-gradient(circle at 87% 25%,#448df3 0,transparent 36%),linear-gradient(115deg,#0d327c,#165aca 72%,#5aa0fa);color:white;padding:40px;overflow:hidden}.hero-slide:after{content:'</>';font-weight:800;font-size:clamp(80px,14vw,200px);position:absolute;right:7%;bottom:0;opacity:.12;pointer-events:none}.hero-slide h1{font-size:clamp(26px,3.4vw,48px);line-height:1.12;font-weight:800;max-width:550px;letter-spacing:-1.5px;margin:14px 0}.hero-slide p{max-width:430px;color:#e3edff}.hero-slide a{position:relative;z-index:1}.hero-img{height:344px;width:100%;object-fit:cover}.promo-stack{display:grid;grid-template-rows:repeat(4,1fr);gap:9px;min-width:0}.promo-tile{position:relative;display:flex;align-items:center;gap:13px;border-radius:10px;padding:11px 16px;background:#edf4ff;overflow:hidden;color:#194786;min-height:70px}.promo-tile:nth-child(2){background:#eaf9f4;color:#11654c}.promo-tile:nth-child(3){background:#fff1e8;color:#9c4515}.promo-tile:nth-child(4){background:#f2ecff;color:#5935a0}.promo-tile i{font-size:24px}.promo-tile strong{display:block;font-size:16px}.promo-tile small{font-size:12px}.promo-tile.banner-photo{padding:0}.promo-tile img{width:100%;height:100%;max-height:79px;object-fit:cover}.section{margin-top:26px}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px}.section-heading h2{font-size:21px;font-weight:750;letter-spacing:-.4px;margin:0}.section-heading a{color:var(--brand);font-weight:650;white-space:nowrap}.category-row{display:flex;gap:12px;overflow-x:auto;scrollbar-width:none;padding:4px 0}.category-chip{flex:0 0 92px;text-align:center;font-size:12px;font-weight:550;line-height:1.35}.category-chip i{width:55px;height:55px;margin:0 auto 7px;display:grid;place-items:center;background:#edf4ff;color:var(--brand);font-size:25px;border-radius:15px}.product-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:13px}.product-card{border:1px solid var(--line);border-radius:12px;overflow:hidden;min-width:0;background:white;transition:transform .16s,box-shadow .16s}.product-card:hover{transform:translateY(-3px);box-shadow:0 8px 24px #18335e12}.product-img{position:relative;display:block;aspect-ratio:1.16;background:#eef4fc;overflow:hidden}.product-img img{width:100%;height:100%;object-fit:cover}.discount{position:absolute;top:9px;left:9px;background:#f45340;color:white;font-size:11px;font-weight:700;padding:3px 7px;border-radius:5px}.product-info{padding:10px 11px 12px}.product-label{display:flex;justify-content:space-between;align-items:center;color:#1762bb;font-size:11px}.product-label span{background:#eaf3ff;padding:2px 6px;border-radius:4px}.wish{background:none;border:0;color:#64748b;padding:0 2px}.product-info small{color:var(--muted);font-size:11px}.product-title{font-weight:650;line-height:1.35;height:2.7em;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;margin:4px 0 7px}.price{color:#e34a35;font-size:18px;font-weight:800;letter-spacing:-.5px}.old-price{font-size:11px;color:#8895a5}.product-meta{font-size:10px;color:#64748b;line-height:1.4}.star{color:#ef9b21}.stock-label{color:#137b55;font-size:11px;margin-top:5px}.empty-state{grid-column:1/-1;background:#f8faff;border:1px dashed #dce6f5;border-radius:12px;text-align:center;padding:23px;color:var(--muted);display:flex;flex-direction:column;align-items:center}.empty-state i{font-size:27px;color:#8ea7cb}.empty-state strong{color:#405574}.site-footer{border-top:1px solid var(--line);background:#f6f8fc;padding:32px 0 15px}.footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:30px}.footer-grid a{display:block;font-size:13px;color:var(--muted);margin:5px 0}.footer-grid p{color:var(--muted)}.copyright{border-top:1px solid var(--line);padding-top:12px;margin-top:18px;color:var(--muted);font-size:12px}.mobile-nav{display:none}.btn-primary{background:var(--brand);border-color:var(--brand)}.btn-outline-primary{color:var(--brand);border-color:var(--brand)}.btn{border-radius:8px;font-weight:600}.panel{border:1px solid var(--line);border-radius:14px;padding:22px;background:white;margin-bottom:15px;min-width:0}.panel h2,.panel h3{font-weight:700}.form-control,.form-select{border-radius:8px;padding:10px 12px;font-size:14px}.form-label{font-weight:600}.auth-box{max-width:480px;margin:20px auto}.split{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(0,1fr);gap:20px;align-items:start}.detail-gallery{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.detail-gallery img{aspect-ratio:1;object-fit:cover;border-radius:8px;cursor:pointer}.detail-main{width:100%;max-height:480px;aspect-ratio:1.3;object-fit:contain;background:#f5f8fc;border-radius:12px;margin-bottom:10px}.breadcrumb-text{color:var(--muted);font-size:13px;margin:0 0 15px}.store-toast{position:fixed;right:20px;bottom:20px;z-index:2000;max-width:90vw;background:#183253;color:white;padding:12px 18px;border-radius:10px;opacity:0;pointer-events:none;transition:opacity .2s}.store-toast.show{opacity:1}.cart-line{display:grid;grid-template-columns:20px 76px minmax(0,1fr) 85px auto;gap:12px;align-items:center;padding:14px 0;border-bottom:1px solid var(--line)}.cart-line img{width:76px;height:76px;object-fit:cover;border-radius:8px}.table-responsive{min-width:0}.text-break{overflow-wrap:anywhere}.admin-shell{display:grid;grid-template-columns:235px minmax(0,1fr);min-height:100vh;background:#f2f5fa}.admin-sidebar{background:#132641;color:#d3e2f6;padding:20px 14px;position:sticky;top:0;max-height:100vh;overflow:auto}.admin-sidebar a{display:block;color:inherit;padding:8px 10px;border-radius:7px;font-size:13px}.admin-sidebar a.active,.admin-sidebar a:hover{background:#244870;color:white}.admin-sidebar small{display:block;color:#8ba7c9;padding:14px 10px 3px;text-transform:uppercase;letter-spacing:1px}.admin-main{padding:22px;min-width:0}.admin-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px;gap:8px}.admin-top h1{font-size:24px;margin:0;font-weight:750}.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px}.metric{background:#fff;border:1px solid var(--line);padding:16px;border-radius:12px}.metric strong{font-size:24px;display:block;overflow-wrap:anywhere}.metric small{color:var(--muted)}.admin-dark .admin-shell{background:#101827;color:#e4ebf7}.admin-dark .panel,.admin-dark .metric{background:#19273c;color:#e4ebf7;border-color:#33445e}.admin-dark .table{color:#e4ebf7}.admin-collapsed .admin-shell{grid-template-columns:0 minmax(0,1fr)}.admin-collapsed .admin-sidebar{visibility:hidden;padding:0}.bar-chart{display:flex;height:140px;align-items:end;gap:8px;border-bottom:1px solid var(--line);padding:10px}.bar-chart div{flex:1;background:var(--brand);min-height:2px;border-radius:5px 5px 0 0}.admin-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.admin-form-grid .full{grid-column:1/-1}pre{white-space:pre-wrap;overflow-wrap:anywhere} @media(max-width:1100px){.product-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.header-main{gap:15px}.navline .wrap{gap:19px}.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:767px){body{padding-bottom:65px;font-size:13px}.wrap{width:calc(100% - 24px)}.site-header{top:0}.topline,.navline,.desktop-only{display:none!important}.header-main{gap:9px;padding:10px 0}.brand{font-size:0;gap:0}.brand small{display:none}.brand-mark{width:34px;height:34px;font-size:19px;border-radius:9px}.brand img{max-width:70px;max-height:34px}.search{height:36px}.search input{font-size:12px;padding:0 9px}.search button{padding:0 10px}.search button span{display:none}.header-actions{gap:11px}.icon-link{font-size:19px}.main-content{padding:12px 0 25px}.hero-grid{grid-template-columns:1fr;gap:9px}.hero-slide,.hero-img{height:190px}.hero-slide{padding:20px}.hero-slide h1{font-size:27px;max-width:90%;margin:8px 0;letter-spacing:-.8px}.hero-slide p{font-size:12px;line-height:1.4;margin-bottom:10px;max-width:85%}.hero-slide .btn{font-size:11px;padding:5px 10px}.hero-slide:after{font-size:90px}.promo-stack{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,1fr);gap:7px}.promo-tile{padding:9px;gap:7px;min-height:60px}.promo-tile i{font-size:18px}.promo-tile strong{font-size:12px}.promo-tile small{font-size:10px}.section{margin-top:20px}.section-heading h2{font-size:17px}.section-heading a{font-size:12px}.category-chip{flex-basis:72px;font-size:11px}.category-chip i{width:45px;height:45px;font-size:21px}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.product-grid.horizontal{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;padding-bottom:5px}.horizontal .product-card{flex:0 0 43%;scroll-snap-align:start}.product-info{padding:8px}.product-title{font-size:12px}.price{font-size:16px}.mobile-nav{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:150;justify-content:space-around;background:#fff;border-top:1px solid var(--line);padding:8px 0 calc(6px + env(safe-area-inset-bottom));box-shadow:0 -5px 20px #1c36600a}.mobile-nav a{display:flex;flex-direction:column;align-items:center;font-size:10px;gap:2px;color:#405574;min-width:50px}.mobile-nav i{font-size:19px;color:var(--brand)}.footer-grid{grid-template-columns:1fr;gap:14px}.split{grid-template-columns:1fr;gap:10px}.panel{padding:14px}.cart-line{grid-template-columns:16px 42px minmax(0,1fr) 53px auto;gap:6px}.cart-line img{width:50px;height:50px}.store-toast{bottom:78px}.admin-shell{grid-template-columns:1fr}.admin-sidebar{position:static;max-height:240px}.admin-main{padding:12px}.admin-collapsed .admin-shell{grid-template-columns:1fr}.admin-collapsed .admin-sidebar{display:none}.admin-form-grid{grid-template-columns:1fr}.metric strong{font-size:18px}.admin-top h1{font-size:19px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
/* Keep the default text banner fully visible even at 320px. */
@media(max-width:767px){.hero-slide{height:auto;min-height:205px;padding:17px 19px}.hero-slide h1{font-size:clamp(23px,6.7vw,27px);max-width:100%}.hero-slide p{max-width:100%}.hero-img{height:190px}.hero-slide .badge{font-size:10px}.promo-tile picture{width:100%;display:block}.product-card .product-meta{overflow-wrap:anywhere}}
@media(max-width:359px){.hero-slide{padding:14px}.cart-line{grid-template-columns:15px 35px minmax(0,1fr) 48px auto}.cart-line img{width:35px;height:35px}.cart-line input.form-control{padding:5px}.promo-tile{padding:8px 5px}}
@keyframes pulse-loading{0%,100%{opacity:1}50%{opacity:.48}}button:disabled:not([type=submit]){animation:pulse-loading 1.3s ease-in-out infinite}@media(prefers-reduced-motion:reduce){button:disabled{animation:none!important}}
