:root {
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --brand-soft: #eff6ff;
  --navy: #0f172a;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --green: #16a34a;
  --red: #dc2626;
  --amber: #d97706;
  --line: #e2e8f0;
  --surface: #ffffff;
  --page: #f8fafc;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05), 0 6px 18px rgba(15, 23, 42, .04);
  --shadow: 0 20px 50px rgba(15, 23, 42, .11);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: light; }
body { margin: 0; min-width: 320px; background: var(--page); color: var(--slate-900); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
body.no-scroll { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; transform: none !important; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.025em; }
p { color: var(--slate-600); }
code { padding: .14rem .38rem; border-radius: 6px; background: var(--slate-100); font-size: .88em; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid rgba(37, 99, 235, .36); outline-offset: 3px; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.narrow { max-width: 860px; }
.center { text-align: center; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 1000; padding: 10px 14px; border-radius: 10px; background: #fff; color: var(--navy); box-shadow: var(--shadow); }
.skip-link:focus { top: 12px; }

.boot { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 12px; }
.spinner { width: 34px; height: 34px; border: 3px solid var(--slate-200); border-top-color: var(--brand); border-radius: 50%; animation: spin .75s linear infinite; }
.spinner.small { display: inline-block; width: 16px; height: 16px; border-width: 2px; vertical-align: middle; }
.skeleton { border-radius: var(--radius); background: linear-gradient(90deg, #e9eef5 25%, #f8fafc 45%, #e9eef5 65%); background-size: 240% 100%; animation: shimmer 1.4s infinite; }
.admin-skeleton { min-height: 520px; }

.btn { min-height: 46px; padding: 11px 17px; border: 1px solid transparent; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 750; font-size: 14px; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease; }
.btn svg, .icon-btn svg, .close-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover:not(:disabled) { transform: translateY(-2px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 24px rgba(37, 99, 235, .24); }
.btn-primary:hover:not(:disabled) { background: var(--brand-dark); box-shadow: 0 14px 30px rgba(37, 99, 235, .3); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-outline { background: #fff; color: var(--slate-800); border-color: var(--line); }
.btn-outline:hover:not(:disabled) { border-color: #bfdbfe; background: var(--brand-soft); color: var(--brand-dark); }
.btn-ghost { border-color: rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .07); color: #fff; }
.btn-danger { background: #fff1f2; color: #be123c; border-color: #fecdd3; }
.btn-success { background: #ecfdf5; color: #15803d; border-color: #bbf7d0; }
.btn-sm { min-height: 35px; padding: 7px 10px; border-radius: 10px; font-size: 12px; }
.btn-block { width: 100%; margin-top: 10px; }
.icon-only { flex: 0 0 46px !important; padding: 10px; }
.icon-btn, .close-btn { width: 42px; height: 42px; padding: 0; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--slate-700); position: relative; }
.icon-btn:hover, .close-btn:hover { color: var(--brand); border-color: #bfdbfe; background: var(--brand-soft); }
.count { position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px; padding: 0 5px; display: grid; place-items: center; border: 2px solid #fff; border-radius: 999px; background: var(--brand); color: #fff; font-size: 10px; font-weight: 800; }
.link-arrow, .link-button { border: 0; background: none; color: var(--brand); font-weight: 750; }

.input, .select, .textarea { width: 100%; min-height: 46px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--slate-900); outline: none; transition: border-color .2s, box-shadow .2s; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(37, 99, 235, .1); }
.textarea { min-height: 126px; resize: vertical; }
.textarea.small { min-height: 88px; }
.field { display: grid; align-content: start; gap: 7px; }
.field label, fieldset legend { color: var(--slate-700); font-size: 13px; font-weight: 750; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.form-error { padding: 12px 14px; border: 1px solid #fecaca; border-radius: 12px; background: #fef2f2; color: #991b1b; font-size: 14px; }
.notice { padding: 13px 15px; border: 1px solid #bfdbfe; border-radius: 12px; background: #eff6ff; color: #1e40af; font-size: 13px; }
.notice.error { border-color: #fecaca; background: #fef2f2; color: #991b1b; }
.check-row { display: flex; align-items: flex-start; gap: 9px; color: var(--slate-600); font-size: 14px; }
.check-row input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--brand); }
.choice-grid { margin: 0; padding: 0; border: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.choice-card { min-height: 74px; padding: 14px; display: flex; align-items: flex-start; gap: 10px; border: 1px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; }
.choice-card:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 3px rgba(37, 99, 235, .08); }
.choice-card input { margin-top: 4px; accent-color: var(--brand); }
.choice-card span { display: grid; }
.choice-card small { color: var(--slate-500); }

.announcement { background: var(--navy); color: var(--slate-300); font-size: 12px; }
.announcement .container { min-height: 32px; display: flex; align-items: center; justify-content: center; gap: clamp(16px, 5vw, 64px); }
.header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(226, 232, 240, .9); background: rgba(255, 255, 255, .94); backdrop-filter: blur(18px); }
.header-main { min-height: 76px; display: flex; align-items: center; gap: 32px; }
.logo { width: 190px; flex: none; }
.logo img { width: 100%; height: auto; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { padding: 9px 11px; border-radius: 10px; color: var(--slate-600); font-size: 14px; font-weight: 700; }
.nav a:hover, .nav a.active { background: var(--brand-soft); color: var(--brand); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.mobile-menu-btn { display: none; }
.category-nav { border-top: 1px solid var(--slate-100); }
.category-nav .container { min-height: 42px; display: flex; align-items: center; gap: 26px; overflow-x: auto; scrollbar-width: none; }
.category-nav a { flex: none; display: flex; align-items: center; gap: 7px; color: var(--slate-600); font-size: 13px; font-weight: 700; }
.category-nav a:hover { color: var(--brand); }

.hero { min-height: 610px; position: relative; overflow: hidden; display: grid; align-items: center; color: #fff; background: radial-gradient(circle at 78% 20%, rgba(37, 99, 235, .34), transparent 28%), linear-gradient(125deg, #08111f, #0f172a 55%, #172554); }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .15; background-image: linear-gradient(rgba(255, 255, 255, .1) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .1) 1px, transparent 1px); background-size: 52px 52px; mask-image: linear-gradient(to right, transparent, black); }
.hero-glow { position: absolute; width: 520px; height: 520px; right: -140px; top: -210px; border-radius: 50%; background: #2563eb; filter: blur(120px); opacity: .16; }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 38px; }
.hero-copy { padding: 86px 0; }
.eyebrow, .section-kicker { display: inline-flex; align-items: center; color: var(--brand); font-size: 11px; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.hero .eyebrow { padding: 7px 11px; border: 1px solid rgba(147, 197, 253, .25); border-radius: 999px; background: rgba(37, 99, 235, .14); color: #bfdbfe; }
.section-kicker.light { color: #93c5fd; }
.hero h1 { max-width: 700px; margin: 20px 0; color: #fff; font-size: clamp(40px, 5.2vw, 68px); letter-spacing: -.052em; }
.hero p { max-width: 610px; color: var(--slate-300); font-size: 18px; }
.hero-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-trust { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 18px; color: var(--slate-300); font-size: 12px; font-weight: 650; }
.hero-visual { position: relative; min-height: 470px; display: grid; place-items: center; }
.hero-visual::before { content: ""; position: absolute; width: 82%; aspect-ratio: 1; border: 1px solid rgba(147, 197, 253, .2); border-radius: 50%; box-shadow: inset 0 0 80px rgba(37, 99, 235, .16); }
.hero-visual img { width: min(100%, 610px); max-height: 520px; object-fit: contain; position: relative; filter: drop-shadow(0 34px 48px rgba(0, 0, 0, .35)); }

.section { padding: 76px 0; }
.section-white { background: #fff; }
.section-head, .promo-head { margin-bottom: 28px; display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.section-head.compact { margin-bottom: 8px; }
.section-head h2, .promo-head h2 { margin: 7px 0 0; font-size: clamp(29px, 3.6vw, 42px); }
.section-head p, .promo-head p { margin: 8px 0 0; max-width: 600px; }
.promo-head { padding: 32px; border-radius: 24px; color: #fff; background: linear-gradient(125deg, #0f172a, #1e3a8a); }
.promo-head h2 { color: #fff; }
.promo-head p { color: #bfdbfe; }
.category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.category-card { min-height: 105px; padding: 19px; display: flex; align-items: center; gap: 14px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow-sm); transition: transform .2s, border-color .2s, box-shadow .2s; }
.category-card:hover { transform: translateY(-4px); border-color: #bfdbfe; box-shadow: var(--shadow); }
.category-icon { width: 54px; height: 54px; flex: none; display: grid; place-items: center; border-radius: 15px; background: var(--brand-soft); font-size: 25px; }
.category-card span:last-child { display: grid; gap: 4px; }
.category-card small { color: var(--slate-500); font-size: 12px; line-height: 1.35; }

.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.product-card { min-width: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow-sm); transition: transform .24s, border-color .24s, box-shadow .24s; }
.product-card:hover { transform: translateY(-5px); border-color: #bfdbfe; box-shadow: var(--shadow); }
.product-media { aspect-ratio: 1.18 / 1; position: relative; overflow: hidden; display: block; background: linear-gradient(145deg, #fff, var(--slate-100)); }
.product-media img { width: 100%; height: 100%; object-fit: contain; padding: 14px; transition: transform .3s; }
.product-card:hover .product-media img { transform: scale(1.045); }
.badge-row { position: absolute; top: 11px; left: 11px; z-index: 2; display: flex; flex-wrap: wrap; gap: 6px; }
.badge { padding: 5px 8px; border-radius: 999px; background: #fff; color: var(--slate-800); box-shadow: var(--shadow-sm); font-size: 10px; font-weight: 850; text-transform: uppercase; }
.badge.sale { background: #fff1f2; color: #be123c; }
.badge.new { background: #dbeafe; color: #1d4ed8; }
.product-body { padding: 17px; display: flex; flex: 1; flex-direction: column; gap: 8px; }
.product-brand { min-height: 16px; color: var(--brand); font-size: 10px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.product-title { min-height: 44px; color: var(--slate-900); font-size: 15px; font-weight: 780; line-height: 1.42; }
.rating { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.stars { color: #f59e0b; letter-spacing: 1px; }
.rating > span:last-child { color: var(--slate-500); }
.price-row { display: flex; align-items: baseline; gap: 8px; }
.price { font-size: 20px; font-weight: 850; letter-spacing: -.03em; }
.old-price { color: var(--slate-400); font-size: 12px; text-decoration: line-through; }
.card-actions { margin-top: auto; padding-top: 5px; display: flex; gap: 8px; }
.card-actions .btn-primary { flex: 1; }

.benefits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.benefit { padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.benefit > span { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; background: var(--brand-soft); font-size: 21px; }
.benefit strong { display: block; margin: 13px 0 4px; }
.benefit p { margin: 0; font-size: 13px; }
.brands-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.brand-pill { min-height: 82px; padding: 16px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 16px; background: #fff; color: var(--slate-600); font-size: 18px; font-weight: 850; }
.brand-pill:hover { border-color: #bfdbfe; color: var(--brand); }
.brand-pill img { max-width: 130px; max-height: 48px; object-fit: contain; }
.reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.review-card { padding: 23px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow-sm); }
.review-card p { min-height: 68px; }
.review-author { display: flex; align-items: center; gap: 11px; }
.avatar { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 850; }
.newsletter { padding: 36px; display: flex; align-items: center; justify-content: space-between; gap: 28px; border-radius: 24px; color: #fff; background: radial-gradient(circle at 90% 0, rgba(37, 99, 235, .5), transparent 38%), var(--navy); }
.newsletter h2 { margin: 7px 0; }
.newsletter p { margin: 0; color: var(--slate-300); }
.newsletter-form { width: min(100%, 480px); display: flex; gap: 8px; }

.page-hero { padding: 52px 0; border-bottom: 1px solid var(--line); background: radial-gradient(circle at 90% 20%, #dbeafe, transparent 30%), linear-gradient(130deg, #fff, #f8fafc); }
.page-hero h1 { margin: 8px 0; font-size: clamp(32px, 4vw, 48px); }
.page-hero p { max-width: 680px; margin: 0; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 7px; color: var(--slate-500); font-size: 12px; }
.breadcrumbs a:hover { color: var(--brand); }
.page-shell { padding: 44px 0 78px; }
.empty-state { padding: 64px 20px; border: 1px dashed var(--slate-300); border-radius: 20px; background: #fff; text-align: center; }
.empty-state.compact { padding: 38px 14px; }
.empty-icon { color: var(--brand); font-size: 45px; font-weight: 850; }
.empty-state h2, .empty-state h3 { margin: 8px 0; }
.empty-state p { margin: 4px auto 0; max-width: 520px; }

.shop-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 26px; }
.filter-card { align-self: start; padding: 18px; position: sticky; top: 132px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.filter-group { padding: 15px 0; border-bottom: 1px solid var(--line); }
.filter-group:first-child { padding-top: 0; }
.filter-group h3 { margin: 0 0 11px; font-size: 14px; }
.filter-group output { display: block; margin-top: 7px; color: var(--brand); font-size: 13px; font-weight: 750; }
.filter-group input[type="range"] { width: 100%; accent-color: var(--brand); }
.shop-toolbar { margin-bottom: 18px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.shop-toolbar > div { display: flex; align-items: center; gap: 10px; }
.sort-label { display: flex; align-items: center; gap: 8px; color: var(--slate-500); font-size: 13px; }
.sort-label .select { width: auto; min-width: 170px; }
.mobile-filter { display: none; }
.listing-grid .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pagination { margin-top: 30px; display: flex; justify-content: center; gap: 7px; }
.pagination button { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 11px; background: #fff; color: var(--slate-700); font-weight: 750; }
.pagination button.active { border-color: var(--brand); background: var(--brand); color: #fff; }
.brand-directory { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.brand-card { padding: 25px; border: 1px solid var(--line); border-radius: 19px; background: #fff; box-shadow: var(--shadow-sm); }
.brand-card:hover { transform: translateY(-4px); border-color: #bfdbfe; box-shadow: var(--shadow); }
.brand-card img { height: 64px; object-fit: contain; object-position: left center; }
.brand-card h2 { margin: 18px 0 7px; }
.brand-card p { min-height: 48px; }
.brand-card > span:last-child { color: var(--brand); font-weight: 750; }
.brand-monogram { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 17px; background: var(--brand-soft); color: var(--brand); font-size: 20px; font-weight: 850; }

.product-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 44px; }
.gallery-main { width: 100%; padding: 0; aspect-ratio: 1.18 / 1; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: #fff; cursor: zoom-in; }
.gallery-main img { width: 100%; height: 100%; padding: 18px; object-fit: contain; }
.thumbs { margin-top: 10px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; }
.thumb { aspect-ratio: 1.16 / 1; padding: 4px; overflow: hidden; border: 2px solid transparent; border-radius: 12px; background: #fff; }
.thumb.active { border-color: var(--brand); }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.product-info h1 { margin: 8px 0 13px; font-size: clamp(32px, 4vw, 48px); }
.detail-price { margin: 18px 0; font-size: 34px; font-weight: 850; }
.detail-price s { margin-left: 8px; color: var(--slate-400); font-size: 17px; font-weight: 500; }
.stock { padding: 6px 10px; display: inline-flex; border-radius: 999px; background: #dcfce7; color: #166534; font-size: 12px; font-weight: 800; }
.stock.out { background: #fee2e2; color: #991b1b; }
.qty-row { margin: 22px 0; display: flex; align-items: center; gap: 12px; }
.qty { width: max-content; display: flex; align-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.qty button { width: 40px; height: 43px; border: 0; background: #fff; color: var(--slate-700); font-size: 18px; }
.qty button:hover { background: var(--brand-soft); color: var(--brand); }
.qty span { width: 43px; display: grid; place-items: center; font-weight: 800; }
.trust-list { display: grid; gap: 8px; color: var(--slate-600); font-size: 14px; }
.tabs { margin-top: 46px; }
.tab-buttons { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); }
.tab-buttons button { padding: 12px 15px; border: 0; border-bottom: 3px solid transparent; background: none; color: var(--slate-500); font-weight: 750; white-space: nowrap; }
.tab-buttons button.active { border-bottom-color: var(--brand); color: var(--brand); }
.tab-panel { padding: 24px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 18px 18px; background: #fff; }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td { padding: 11px; border-bottom: 1px solid var(--line); text-align: left; }
.spec-table th { width: 34%; color: var(--slate-700); }
.review-line { padding: 14px 0; border-bottom: 1px solid var(--line); }
.review-line strong { display: block; margin-top: 4px; }
.review-line p { margin: 4px 0; }
.review-form { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.modal-product-image { width: 100%; max-height: 70vh; object-fit: contain; }

.card { padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow-sm); }
.cart-layout, .checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: 24px; align-items: start; }
.cart-summary, .checkout-summary { position: sticky; top: 132px; }
.cart-item { padding: 17px 0; display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; align-items: center; gap: 17px; border-bottom: 1px solid var(--line); }
.cart-item > img { width: 110px; height: 90px; padding: 5px; object-fit: contain; border-radius: 13px; background: var(--slate-50); }
.cart-item > div { display: grid; gap: 6px; }
.cart-item small, .mini-item small, .table td small { display: block; color: var(--slate-500); }
.cart-item .qty { margin-top: 5px; }
.cart-line-total { justify-items: end; }
.coupon-row { margin: 15px 0 10px; display: flex; gap: 7px; }
.coupon-applied { margin-bottom: 10px; padding: 9px 11px; display: flex; justify-content: space-between; border-radius: 10px; background: #ecfdf5; color: #166534; font-size: 13px; font-weight: 750; }
.coupon-applied button { border: 0; background: none; color: #be123c; font-weight: 750; }
.summary-row { padding: 8px 0; display: flex; justify-content: space-between; gap: 16px; }
.summary-row.total { margin-top: 8px; padding-top: 15px; border-top: 1px solid var(--line); font-size: 18px; font-weight: 850; }
.mini-item { padding: 11px 0; display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 11px; border-bottom: 1px solid var(--line); font-size: 13px; }
.mini-item img { width: 64px; height: 56px; padding: 3px; object-fit: contain; border-radius: 10px; background: var(--slate-50); }
.delivery-note, .secure-note { padding: 10px; border-radius: 10px; background: var(--slate-50); font-size: 12px; }
.secure-note { background: var(--brand-soft); color: #1e40af; }
.consent { padding-top: 5px; }
.success-page { min-height: 70vh; display: grid; align-items: center; }
.success-card { max-width: 720px; margin: auto; padding: 45px; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: var(--shadow); text-align: center; }
.success-icon { width: 74px; height: 74px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 50%; background: #dcfce7; color: #15803d; font-size: 34px; font-weight: 850; }
.order-number { width: max-content; max-width: 100%; margin: 13px auto 20px; padding: 11px 16px; border: 1px dashed #93c5fd; border-radius: 12px; background: var(--brand-soft); color: #1e40af; font-size: 20px; font-weight: 850; letter-spacing: .04em; }
.receipt-grid { margin: 22px 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.receipt-grid div { padding: 15px; display: grid; border-radius: 13px; background: var(--slate-50); }
.receipt-grid span { color: var(--slate-500); font-size: 12px; }
.success-actions { display: flex; justify-content: center; gap: 10px; }
.contact-layout, .story-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); gap: 24px; }
.contact-card { padding: 30px; border-radius: 20px; color: #fff; background: linear-gradient(145deg, #0f172a, #1e3a8a); }
.contact-card h2 { font-size: 35px; }
.contact-card p, .contact-card a { color: #cbd5e1; }
.values-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.values-grid .card p { margin-bottom: 0; font-size: 13px; }
.faq-list { display: grid; gap: 10px; }
.faq-item { overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.faq-q { width: 100%; padding: 17px 19px; display: flex; justify-content: space-between; border: 0; background: #fff; color: var(--slate-900); text-align: left; font-weight: 800; }
.faq-q:hover { color: var(--brand); }
.faq-a { display: none; padding: 0 19px 17px; }
.faq-a p { margin: 0; }
.faq-item.open .faq-a { display: block; }
.policy-card { padding: 34px; }

.search-overlay, .drawer, .modal { position: fixed; inset: 0; z-index: 200; opacity: 0; pointer-events: none; transition: opacity .2s; }
.search-overlay.open, .drawer.open, .modal.open { opacity: 1; pointer-events: auto; }
.backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .62); backdrop-filter: blur(3px); }
.search-box { width: min(760px, calc(100% - 28px)); margin: 80px auto; padding: 20px; position: relative; border-radius: 21px; background: #fff; box-shadow: 0 32px 90px rgba(15, 23, 42, .3); }
.search-input-wrap { display: flex; gap: 8px; }
.search-suggestions { padding-top: 17px; }
.suggestion-tags { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 7px; }
.tag { padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--slate-600); font-size: 12px; }
.tag:hover { border-color: #bfdbfe; color: var(--brand); }
.drawer-panel { width: min(430px, 93vw); height: 100%; position: absolute; top: 0; right: 0; display: flex; flex-direction: column; background: #fff; transform: translateX(100%); transition: transform .25s; }
.drawer.open .drawer-panel { transform: translateX(0); }
.drawer-head, .modal-head { min-height: 68px; padding: 15px 18px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.drawer-body { padding: 17px; overflow-y: auto; flex: 1; }
.drawer-foot { padding: 17px; border-top: 1px solid var(--line); }
.mobile-links { display: grid; align-content: start; gap: 5px; }
.mobile-links a { padding: 12px; border-radius: 11px; color: var(--slate-700); font-weight: 750; }
.mobile-links a:hover { background: var(--brand-soft); color: var(--brand); }
.modal-card { width: min(700px, calc(100% - 28px)); max-height: 90vh; margin: 5vh auto; position: relative; overflow: auto; border-radius: 20px; background: #fff; box-shadow: 0 32px 90px rgba(15, 23, 42, .34); }
.modal-card.modal-wide { width: min(940px, calc(100% - 28px)); }
.modal-body { padding: 20px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; }
.toast-stack { position: fixed; right: 18px; bottom: 18px; z-index: 300; display: grid; gap: 8px; }
.toast { min-width: 270px; max-width: min(430px, calc(100vw - 36px)); padding: 13px 15px; border-radius: 12px; background: var(--navy); color: #fff; box-shadow: var(--shadow); animation: toastIn .22s; }
.toast.success { background: #166534; }
.toast.error { background: #991b1b; }
.whatsapp { width: 55px; height: 55px; position: fixed; right: 20px; bottom: 86px; z-index: 45; display: grid; place-items: center; border-radius: 50%; background: #22c55e; color: #fff; box-shadow: 0 12px 30px rgba(34, 197, 94, .35); font-weight: 850; }

.footer { padding: 60px 0 22px; background: #0b1220; color: var(--slate-300); }
.footer-grid { display: grid; grid-template-columns: 1.35fr repeat(3, 1fr); gap: 36px; }
.footer-logo { width: 190px; filter: brightness(0) invert(1); }
.footer p { margin: 8px 0; color: var(--slate-400); font-size: 14px; }
.footer h3 { margin-top: 0; color: #fff; font-size: 15px; }
.footer a { margin: 8px 0; display: block; color: var(--slate-400); font-size: 13px; }
.footer a:hover { color: #fff; }
.footer-bottom { margin-top: 34px; padding-top: 18px; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid #1e293b; color: var(--slate-500); font-size: 12px; }

.config-page { min-height: 100vh; padding: 30px; display: grid; place-items: center; background: radial-gradient(circle at 80% 10%, #dbeafe, transparent 35%), var(--slate-50); }
.config-card { width: min(650px, 100%); padding: 38px; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: var(--shadow); }
.config-card img { margin-bottom: 26px; }
.config-card h1 { font-size: clamp(30px, 5vw, 44px); }
.config-card .btn { margin: 14px 8px 0 0; }

.login-page { min-height: 100vh; display: grid; grid-template-columns: 1.08fr .92fr; background: #fff; }
.login-visual { min-height: 100vh; padding: 60px; position: relative; overflow: hidden; display: grid; align-items: center; color: #fff; background: radial-gradient(circle at 80% 20%, rgba(37, 99, 235, .45), transparent 28%), linear-gradient(140deg, #08111f, #172554); }
.login-visual::before { content: ""; position: absolute; inset: 0; opacity: .12; background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px); background-size: 50px 50px; }
.login-visual-inner { position: relative; z-index: 1; max-width: 660px; }
.login-visual img { margin-bottom: 70px; filter: brightness(0) invert(1); }
.login-visual h1 { margin: 18px 0; font-size: clamp(42px, 5vw, 64px); }
.login-visual p { color: var(--slate-300); font-size: 18px; }
.login-points { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 17px; color: #bfdbfe; font-size: 13px; }
.login-panel { padding: 35px; display: grid; place-items: center; }
.login-card { width: min(440px, 100%); }
.login-card h1 { margin: 8px 0; font-size: 40px; }
.login-card form { margin-top: 24px; }
.back-link { display: inline-block; margin-bottom: 38px; color: var(--slate-500); font-size: 13px; font-weight: 700; }
.security-caption { margin-top: 18px; text-align: center; font-size: 12px; }

.admin-shell { min-height: 100vh; display: grid; grid-template-columns: 260px minmax(0, 1fr); background: var(--slate-100); }
.admin-sidebar { height: 100vh; padding: 20px 17px; position: sticky; top: 0; overflow-y: auto; color: var(--slate-300); background: var(--navy); }
.admin-logo { width: 180px; margin: 4px 8px 24px; display: block; }
.admin-logo img { width: 100%; filter: brightness(0) invert(1); }
.admin-profile { margin-bottom: 18px; padding: 12px; display: flex; align-items: center; gap: 10px; border: 1px solid #243244; border-radius: 13px; background: rgba(255, 255, 255, .035); }
.admin-profile > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: var(--brand); color: #fff; font-weight: 850; }
.admin-profile div { min-width: 0; display: grid; }
.admin-profile strong { overflow: hidden; color: #fff; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.admin-profile small { color: var(--slate-400); font-size: 10px; text-transform: uppercase; }
.admin-nav { display: grid; gap: 4px; }
.admin-nav button { width: 100%; min-height: 42px; padding: 9px 11px; display: flex; align-items: center; gap: 10px; border: 0; border-radius: 11px; background: transparent; color: var(--slate-400); text-align: left; font-size: 13px; font-weight: 680; }
.admin-nav button > span { width: 22px; text-align: center; }
.admin-nav button:hover, .admin-nav button.active { background: #1e293b; color: #fff; }
.admin-nav button.active { background: var(--brand); box-shadow: 0 8px 22px rgba(37, 99, 235, .25); }
.btn-sidebar { width: 100%; margin-top: 22px; border-color: #334155; background: transparent; color: var(--slate-300); }
.admin-main { min-width: 0; }
.admin-top { min-height: 76px; padding: 0 26px; position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .95); backdrop-filter: blur(16px); }
.admin-title-wrap, .admin-top-actions { display: flex; align-items: center; gap: 10px; }
.admin-top h1 { margin: 0; font-size: 20px; }
.admin-top p { margin: 1px 0 0; font-size: 11px; }
.admin-content { padding: 26px; }
.admin-section-head { align-items: center; }
.admin-stack { display: grid; gap: 24px; }
.admin-stack h3 { margin: 0 0 10px; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.kpi { min-height: 118px; padding: 18px; display: flex; align-items: center; gap: 14px; border: 1px solid var(--line); border-radius: 17px; background: #fff; box-shadow: var(--shadow-sm); }
.kpi-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; font-size: 12px; font-weight: 850; }
.kpi-icon.blue { background: #dbeafe; color: #1d4ed8; }.kpi-icon.green { background: #dcfce7; color: #15803d; }.kpi-icon.violet { background: #ede9fe; color: #7c3aed; }.kpi-icon.amber { background: #fef3c7; color: #b45309; }
.kpi div { min-width: 0; display: grid; }
.kpi div span { color: var(--slate-500); font-size: 11px; font-weight: 700; }
.kpi strong { overflow: hidden; font-size: 22px; text-overflow: ellipsis; white-space: nowrap; }
.admin-grid { margin-top: 16px; display: grid; grid-template-columns: 1.3fr .7fr; gap: 16px; }
.card-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-title h2, .card-title h3 { margin: 0; font-size: 18px; }
.card-title p { margin: 3px 0 0; font-size: 11px; }
.card-title > span { padding: 5px 8px; border-radius: 999px; background: var(--slate-100); color: var(--slate-600); font-size: 10px; font-weight: 750; }
.chart { height: 240px; padding: 30px 4px 20px; display: flex; align-items: end; gap: 9px; }
.bar-wrap { height: 100%; flex: 1; display: flex; flex-direction: column; justify-content: end; align-items: center; gap: 7px; }
.bar { width: min(30px, 68%); min-height: 4px; border-radius: 7px 7px 3px 3px; background: linear-gradient(#3b82f6, #1d4ed8); }
.bar-wrap > span { color: var(--slate-500); font-size: 10px; }
.low-stock { padding: 11px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); }
.low-stock div { min-width: 0; display: grid; }
.low-stock strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.low-stock small { color: var(--slate-500); font-size: 10px; }
.low-stock b { min-width: 30px; padding: 5px; border-radius: 8px; background: #fef3c7; color: #92400e; text-align: center; }
.danger-text { background: #fee2e2 !important; color: #991b1b !important; }
.latest-orders { margin-top: 16px; }
.order-card { width: 100%; padding: 13px 6px; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 14px; border: 0; border-bottom: 1px solid var(--line); background: #fff; text-align: left; }
.order-card:hover { background: var(--slate-50); }
.order-card > div { display: grid; }
.order-card span:not(.status-badge) { color: var(--slate-500); font-size: 11px; }
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow-sm); }
.table { width: 100%; min-width: 840px; border-collapse: collapse; }
.table th, .table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; font-size: 12px; }
.table th { background: var(--slate-50); color: var(--slate-500); font-size: 10px; letter-spacing: .05em; text-transform: uppercase; }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: #fbfdff; }
.table td > strong { display: block; }
.table td small { max-width: 260px; margin-top: 2px; }
.table tr.unread td { background: #eff6ff; }
.table-empty { padding: 30px; color: var(--slate-500); text-align: center; }
.table-product { display: flex; align-items: center; gap: 10px; }
.table-product img { width: 56px; height: 48px; padding: 3px; object-fit: contain; border-radius: 9px; background: var(--slate-50); }
.table-product div { min-width: 0; }
.message-cell { max-width: 300px; white-space: normal; }
.stock-count { min-width: 31px; padding: 5px 7px; display: inline-grid; place-items: center; border-radius: 8px; background: #dcfce7; color: #166534; font-weight: 800; }
.stock-count.low { background: #fef3c7; color: #92400e; }
.admin-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.read-only { color: var(--slate-400); font-size: 11px; }
.status-badge { width: max-content; padding: 5px 8px; display: inline-flex; border-radius: 999px; background: var(--slate-100); color: var(--slate-600); font-size: 10px; font-weight: 800; text-transform: capitalize; }
.status-pending, .status-new { background: #fef3c7; color: #92400e; }.status-confirmed, .status-read { background: #dbeafe; color: #1e40af; }.status-shipped, .status-manager { background: #e0e7ff; color: #4338ca; }.status-delivered, .status-approved, .status-active, .status-handled { background: #dcfce7; color: #166534; }.status-refused, .status-cancelled, .status-hidden, .status-inactive { background: #fee2e2; color: #991b1b; }.status-super_admin { background: #ede9fe; color: #6d28d9; }.status-support { background: #e0f2fe; color: #0369a1; }
.order-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.detail-list { margin: 0; display: grid; }
.detail-list div { padding: 7px 0; display: grid; grid-template-columns: 100px 1fr; gap: 10px; border-bottom: 1px solid var(--line); }
.detail-list dt { color: var(--slate-500); font-size: 11px; }.detail-list dd { margin: 0; font-size: 13px; font-weight: 650; }
.order-items { margin-bottom: 20px; display: grid; gap: 7px; }
.order-items article { padding: 9px; display: grid; grid-template-columns: 68px 1fr auto; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 12px; }
.order-items img { width: 68px; height: 58px; object-fit: contain; border-radius: 9px; background: var(--slate-50); }
.order-items div { display: grid; }.order-items small { color: var(--slate-500); }
.upload-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.upload-progress { margin-top: 4px; position: relative; overflow: hidden; height: 30px; border-radius: 8px; background: var(--slate-100); }
.upload-progress span { position: absolute; inset: 0; width: 45%; background: linear-gradient(90deg, #bfdbfe, #2563eb); animation: upload 1.2s infinite alternate; }
.upload-progress small { position: relative; z-index: 1; height: 100%; display: grid; place-items: center; color: var(--navy); font-weight: 750; }
.upload-progress[data-state="complete"] span { width: 100%; background: #86efac; animation: none; }
.multi-select { min-height: 135px; }
.choice-list { display: flex; flex-wrap: wrap; gap: 14px; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.settings-grid > .btn { width: max-content; }

.mobile-only { display: none; }
@media (max-width: 1080px) {
  .nav { display: none; }
  .mobile-menu-btn { display: inline-grid; }
  .hero-grid { grid-template-columns: 1fr 420px; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .listing-grid .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .hero { min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding: 68px 0 24px; }
  .hero-visual { min-height: 340px; }
  .hero-visual img { max-height: 340px; }
  .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shop-layout { grid-template-columns: 1fr; }
  .desktop-filters { display: none; }
  .mobile-filter { display: inline-flex; }
  .product-detail { grid-template-columns: 1fr; }
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .cart-summary, .checkout-summary { position: static; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { width: 270px; position: fixed; left: 0; top: 0; z-index: 100; transform: translateX(-100%); transition: transform .2s; }
  .admin-sidebar.open { transform: translateX(0); }
  .mobile-only { display: inline-grid; }
  .admin-grid { grid-template-columns: 1fr; }
  .settings-grid { grid-template-columns: 1fr; }
  .login-page { grid-template-columns: 1fr; }
  .login-visual { display: none; }
}

@media (max-width: 680px) {
  .container { width: min(100% - 24px, 1180px); }
  .announcement .container { justify-content: flex-start; overflow: hidden; white-space: nowrap; }
  .announcement span:nth-child(n+2) { display: none; }
  .header-main { min-height: 66px; gap: 10px; }
  .logo { width: 152px; }
  .desktop-action { display: none; }
  .category-nav { display: none; }
  .hero-copy { padding-top: 54px; }
  .hero h1 { font-size: 39px; }
  .hero p { font-size: 16px; }
  .hero-visual { min-height: 280px; }
  .hero-visual img { max-height: 290px; }
  .section { padding: 52px 0; }
  .section-head, .promo-head { align-items: flex-start; flex-direction: column; }
  .promo-head { padding: 24px; }
  .category-grid, .product-grid, .listing-grid .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .category-card { min-height: 0; padding: 14px; align-items: flex-start; flex-direction: column; }
  .category-icon { width: 44px; height: 44px; }
  .product-body { padding: 12px; }
  .product-title { min-height: 42px; font-size: 13px; }
  .price { font-size: 16px; }
  .old-price { display: none; }
  .card-actions .btn { min-height: 40px; padding: 8px; font-size: 11px; }
  .icon-only { flex-basis: 40px !important; }
  .benefits, .reviews, .brand-directory { grid-template-columns: 1fr; }
  .brands-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .newsletter { padding: 25px; align-items: stretch; flex-direction: column; }
  .newsletter-form { display: grid; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 25px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; }
  .form-grid, .choice-grid { grid-template-columns: 1fr; }
  .shop-toolbar { align-items: stretch; flex-direction: column; }
  .sort-label { justify-content: space-between; }
  .sort-label .select { flex: 1; min-width: 0; }
  .cart-item { grid-template-columns: 78px minmax(0, 1fr); gap: 11px; }
  .cart-item > img { width: 78px; height: 70px; }
  .cart-line-total { grid-column: 2; justify-items: start; }
  .success-card { padding: 30px 20px; }
  .success-actions { flex-direction: column; }
  .contact-layout, .story-grid, .values-grid { grid-template-columns: 1fr; }
  .search-box { margin: 16px auto; }
  .search-input-wrap { display: grid; grid-template-columns: 1fr auto; }
  .search-input-wrap .input { grid-column: 1 / -1; }
  .modal-card { margin: 2vh auto; max-height: 96vh; }
  .toast-stack { right: 10px; bottom: 10px; }
  .admin-top { min-height: 68px; padding: 0 12px; }
  .admin-top p, #refreshAdmin { display: none; }
  .admin-content { padding: 12px; }
  .kpi-grid { grid-template-columns: 1fr; }
  .admin-section-head { align-items: stretch; }
  .order-card { grid-template-columns: minmax(0, 1fr) auto; }
  .order-card .status-badge { grid-column: 1 / -1; }
  .order-detail-grid, .upload-row { grid-template-columns: 1fr; }
  .login-panel { padding: 22px; }
  .back-link { margin-bottom: 26px; }
  .config-page { padding: 14px; }
  .config-card { padding: 25px; }
}

@media (max-width: 410px) {
  .product-grid, .listing-grid .product-grid { grid-template-columns: 1fr; }
  .product-media { aspect-ratio: 1.35 / 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { to { background-position: -240% 0; } }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } }
@keyframes upload { from { transform: translateX(-40%); } to { transform: translateX(170%); } }
