/* Benhamlaoui Optic — storefront styles */
:root {
  --black: #111111;
  --ink: #1d1d1f;
  --gray: #6b6b70;
  --line: #e7e7ea;
  --soft: #f6f6f7;
  --gold: #c9a45c;
  --gold-dark: #b08c45;
  --red: #d92d2d;
  --green: #1f9d55;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(0, 0, 0, .07);
  --font: 'Tajawal', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --latin: 'Montserrat', 'Tajawal', sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body, main { overflow-x: clip; }
body { font-family: var(--font); color: var(--ink); background: #fff; line-height: 1.6; font-size: 15px; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.container.narrow { max-width: 760px; }
.muted { color: var(--gray); }
.small { font-size: 13px; }
.center { text-align: center; }
.ic { flex-shrink: 0; }
.hp { position: absolute !important; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; overflow: hidden; clip-path: inset(50%); pointer-events: none; }
[hidden] { display: none !important; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 20px; border-radius: 6px; font-weight: 700; font-size: 14px; border: 1px solid transparent; transition: .2s; white-space: nowrap; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-dark { background: var(--black); color: #fff; }
.btn-dark:hover:not(:disabled) { background: #333; }
.btn-gold { background: var(--gold); color: #1b1407; }
.btn-gold:hover:not(:disabled) { background: var(--gold-dark); }
.btn-light { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-light:hover { border-color: var(--ink); }
.btn-lg { padding: 13px 28px; font-size: 16px; border-radius: 30px; }
.btn-block { width: 100%; }
.icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; color: var(--ink); transition: .2s; }
.icon-btn:hover { background: var(--soft); }
.badge { position: absolute; top: 2px; left: 0; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--black); color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }

/* ---------- Topbar ---------- */
.topbar { background: var(--black); color: #e8e8e8; font-size: 13px; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 38px; }
.tb-item { display: inline-flex; align-items: center; gap: 7px; }
.tb-item b { font-weight: 500; }
.tb-social { display: flex; gap: 14px; }
.tb-social a:hover { color: var(--gold); }

/* ---------- Header ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 88px; }
.logo { display: flex; flex-direction: column; align-items: center; line-height: 1; color: var(--black); flex-shrink: 0; }
.logo img { max-height: 60px; width: auto; }
.logo-glasses { width: 64px; height: 20px; margin-bottom: 5px; }
.logo-text { font-family: var(--latin); font-weight: 600; font-size: 17px; letter-spacing: 2px; white-space: nowrap; }
.logo-text em { font-style: normal; color: var(--gold); }
.logo-tag { font-family: var(--latin); font-size: 8px; letter-spacing: 3.5px; color: var(--gray); margin-top: 5px; }
.main-nav { display: flex; align-items: center; gap: 22px; margin-inline-start: 8px; }
.main-nav > a, .has-drop > a { display: inline-flex; align-items: center; gap: 4px; font-weight: 500; padding: 30px 0; position: relative; white-space: nowrap; }
.main-nav a.active { color: var(--gold-dark); font-weight: 700; }
.main-nav > a.active::after, .has-drop > a.active::after { content: ''; position: absolute; bottom: 24px; right: 0; left: 0; height: 2px; background: var(--gold); }
.main-nav > a:hover, .has-drop > a:hover { color: var(--gold-dark); }
.has-drop { position: relative; }
.dropdown { position: absolute; top: 100%; right: -16px; background: #fff; min-width: 220px; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s; }
.dropdown a { display: block; padding: 9px 12px; border-radius: 6px; font-size: 14px; }
.dropdown a:hover { background: var(--soft); color: var(--gold-dark); }
.dropdown-cols { display: grid; grid-template-columns: 1fr 1fr; min-width: 320px; }
.has-drop:hover .dropdown, .has-drop:focus-within .dropdown { opacity: 1; visibility: visible; transform: none; }
.nav-head, .only-mobile, .main-nav > a.only-mobile, .menu-toggle, .search-toggle { display: none; }
.header-actions { display: flex; align-items: center; gap: 2px; margin-inline-start: auto; }
.search-box { display: flex; align-items: center; background: var(--soft); border-radius: 24px; overflow: hidden; margin-inline-end: 10px; flex-shrink: 0; }
.search-box input { border: 0; background: transparent; padding: 10px 16px; width: 170px; outline: none; font-size: 14px; }
.search-box button { background: var(--black); color: #fff; width: 48px; height: 42px; display: flex; align-items: center; justify-content: center; border-radius: 24px; }
.nav-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 90; opacity: 0; visibility: hidden; transition: .25s; }
.nav-overlay.show { opacity: 1; visibility: visible; }
.nav-open .site-header { z-index: 95; }
.filters.open { z-index: 100; }

/* ---------- Toast ---------- */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 30px); background: var(--black); color: #fff; padding: 12px 22px; border-radius: 8px; font-weight: 500; z-index: 200; opacity: 0; visibility: hidden; transition: .3s; max-width: calc(100% - 32px); text-align: center; }
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toast.error { background: var(--red); }
.toast a { color: var(--gold); text-decoration: underline; margin-inline-start: 8px; }

/* ---------- Hero ---------- */
.hero { position: relative; height: 460px; overflow: hidden; background: #1a1a1a; }
.slide { position: absolute; inset: 0; background: radial-gradient(circle at 25% 50%, #4b5159 0%, #22252a 45%, #0e0f11 100%); background-size: cover; background-position: center; opacity: 0; visibility: hidden; transition: opacity .8s, visibility .8s; display: flex; align-items: center; }
.slide.active { opacity: 1; visibility: visible; }
.slide[style*="background-image"]::before { content: ''; position: absolute; inset: 0; background: linear-gradient(270deg, rgba(0, 0, 0, .75) 0%, rgba(0, 0, 0, .35) 50%, rgba(0, 0, 0, 0) 80%); }
.slide-art { position: absolute; left: 6%; top: 50%; width: 46%; max-width: 560px; transform: translateY(-50%) rotate(-6deg); filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .6)); }
.slide-content { position: relative; color: #fff; }
.slide-content { padding-inline: 70px; }
.slide-content > * { max-width: 560px; }
.slide-kicker { display: block; font-size: 30px; color: var(--gold); font-weight: 500; margin-bottom: 6px; }
.slide h1 { font-size: 46px; font-weight: 800; line-height: 1.3; margin-bottom: 16px; }
.slide p { font-size: 19px; color: #e6e6e6; margin-bottom: 26px; }
.slide.active .slide-content > * { animation: rise .8s both; }
.slide.active .slide-content > *:nth-child(2) { animation-delay: .1s; }
.slide.active .slide-content > *:nth-child(3) { animation-delay: .2s; }
.slide.active .slide-content > *:nth-child(4) { animation-delay: .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.hero-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .8); color: #fff; display: flex; align-items: center; justify-content: center; z-index: 3; transition: .2s; }
.hero-nav:hover { background: rgba(255, 255, 255, .15); }
.hero-nav.prev { right: 36px; }
.hero-nav.next { left: 36px; }
.hero-dots { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 3; }
.hero-dots button { width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid #fff; transition: .2s; }
.hero-dots button.active { background: #fff; }

/* ---------- Brands ---------- */
.brands-strip { border-bottom: 1px solid var(--line); }
.brands-wrap { display: flex; align-items: center; gap: 10px; }
.brands-track { display: flex; gap: 12px; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; flex: 1; }
.brands-track::-webkit-scrollbar { display: none; }
.brand-item { flex: 0 0 auto; min-width: 140px; padding: 30px 14px; text-align: center; font-family: var(--latin); font-weight: 700; font-size: 20px; letter-spacing: 1px; color: #222; opacity: .8; transition: .2s; text-transform: uppercase; }
.brand-item:hover { opacity: 1; color: var(--gold-dark); }
.strip-nav { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; color: var(--ink); border-radius: 50%; }
.strip-nav:hover { background: var(--soft); }

/* ---------- Features ---------- */
.features { background: var(--soft); }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.feature { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 26px 12px; }
.feature + .feature { border-inline-start: 1px solid var(--line); }
.feature strong { display: block; font-size: 15px; }
.feature span { font-size: 13px; color: var(--gray); }

/* ---------- Sections ---------- */
.section { padding: 26px 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.section-head h2 { font-size: 24px; font-weight: 800; position: relative; padding-bottom: 6px; }
.section-head h2::after { content: ''; position: absolute; bottom: 0; right: 0; width: 60%; height: 3px; background: var(--gold); border-radius: 2px; }
.see-all { display: inline-flex; align-items: center; gap: 4px; font-weight: 500; font-size: 14px; }
.see-all:hover { color: var(--gold-dark); }

/* ---------- Category cards ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat-card { position: relative; height: 134px; border-radius: 8px; overflow: hidden; background-size: cover; background-position: center; display: flex; align-items: flex-end; padding: 16px 18px; color: #fff; box-shadow: var(--shadow); transition: transform .3s; }
.cat-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .65), rgba(0, 0, 0, 0) 65%); }
.cat-card:hover { transform: translateY(-4px); }
.cat-art { position: absolute; top: 12px; left: 50%; width: 72%; transform: translateX(-50%) rotate(-4deg); filter: drop-shadow(0 12px 16px rgba(0, 0, 0, .5)); transition: .4s; }
.cat-card:hover .cat-art { transform: translateX(-50%) rotate(0) scale(1.05); }
.cat-title { position: relative; font-size: 19px; font-weight: 700; }
.cat-go { position: relative; margin-inline-start: auto; width: 30px; height: 30px; border: 1.5px solid #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; }

/* ---------- Product cards ---------- */
.products-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.products-grid.grid-4 { grid-template-columns: repeat(4, 1fr); }
.product-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 12px; display: flex; flex-direction: column; transition: .25s; }
.product-card:hover { box-shadow: var(--shadow); border-color: transparent; }
.wish-btn { position: absolute; top: 10px; right: 10px; z-index: 2; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: #444; transition: .2s; }
.wish-btn:hover { background: var(--soft); }
.wish-btn.active, .wish-btn-lg.active { color: var(--red); }
.wish-btn.active svg, .wish-btn-lg.active svg { fill: currentColor; }
.p-badge { position: absolute; top: 12px; left: 12px; z-index: 2; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 4px; }
.p-badge.sale { background: var(--gold-dark); }
.p-badge.out { background: #777; }
.p-img { display: block; aspect-ratio: 5 / 3; margin: 26px 0 8px; }
.p-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .35s; }
.product-card:hover .p-img img { transform: scale(1.06); }
.p-info { text-align: center; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.p-brand { font-family: var(--latin); font-weight: 700; font-size: 13px; }
.p-name { font-size: 13px; color: var(--gray); line-height: 1.4; }
.p-name:hover { color: var(--ink); }
.p-model { font-size: 12px; color: #999; font-family: var(--latin); }
.p-colors { display: flex; justify-content: center; gap: 5px; margin: 4px 0; }
.dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .15); box-shadow: inset 0 0 0 2px #fff; vertical-align: middle; }
.p-price { font-weight: 800; font-size: 17px; margin: 4px 0 10px; margin-top: auto; }
.p-price del { font-size: 12px; color: #999; font-weight: 400; display: block; }
.product-card .btn { padding: 8px 10px; font-size: 13px; }

/* ---------- Promo ---------- */
.promo { position: relative; overflow: hidden; border-radius: 8px; background: linear-gradient(90deg, #2a1f18 0%, #0d0d0d 55%, #1b1b1b 100%); background-size: cover; background-position: center; color: #fff; display: flex; align-items: center; justify-content: center; gap: 48px; padding: 22px 30px; min-height: 120px; }
.promo-art { position: absolute; width: 230px; filter: drop-shadow(0 16px 20px rgba(0, 0, 0, .6)); }
.promo-art-a { right: 4%; top: 50%; transform: translateY(-50%) rotate(8deg); }
.promo-art-b { left: 4%; top: 50%; transform: translateY(-50%) rotate(-10deg); }
.promo-content { position: relative; text-align: center; }
.promo-kicker { color: #ddd; font-size: 14px; }
.promo h2 { font-size: 32px; font-weight: 800; }
.promo p { color: #e2e2e2; }
.promo .btn { position: relative; border-radius: 30px; }

/* ---------- Trust bar & footer ---------- */
.trust-bar { border-top: 1px solid var(--line); margin-top: 20px; }
.trust-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-inner > div { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 20px 8px; font-weight: 500; font-size: 14px; }
.trust-inner > div + div { border-inline-start: 1px solid var(--line); }
.site-footer { background: var(--black); color: #cfcfcf; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 32px; padding: 44px 16px 30px; }
.f-col { display: flex; flex-direction: column; gap: 9px; font-size: 14px; }
.f-col h3 { color: #fff; font-family: var(--latin); letter-spacing: 1px; font-size: 20px; }
.f-col h4 { color: #fff; font-size: 16px; margin-bottom: 4px; }
.f-col a, .f-col span { display: inline-flex; align-items: center; gap: 8px; }
.f-col a:hover { color: var(--gold); }
.f-social { display: flex; gap: 10px; margin-top: 6px; }
.f-social a { width: 36px; height: 36px; border: 1px solid #333; border-radius: 50%; justify-content: center; }
.footer-bottom { border-top: 1px solid #262626; padding: 16px 0; font-size: 13px; text-align: center; color: #999; }
.wa-float { position: fixed; bottom: 22px; left: 22px; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(0, 0, 0, .25); z-index: 60; }

/* ---------- Page head ---------- */
.page-head { background: var(--soft); padding: 26px 0; }
.page-head.slim { padding: 14px 0; }
.page-head h1 { font-size: 28px; font-weight: 800; }
.breadcrumb { font-size: 13px; color: var(--gray); margin-bottom: 4px; }
.breadcrumb a:hover { color: var(--gold-dark); }

/* ---------- Shop ---------- */
.shop-layout { display: grid; grid-template-columns: 250px 1fr; gap: 28px; align-items: start; }
.filters { border: 1px solid var(--line); border-radius: 10px; padding: 18px; position: sticky; top: 110px; }
.filters-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: 16px; }
.filters form { display: flex; flex-direction: column; gap: 10px; }
.f-group { border-bottom: 1px solid var(--line); padding-bottom: 12px; display: flex; flex-direction: column; gap: 6px; }
.f-group h4 { font-size: 14px; margin-bottom: 2px; }
.f-group label { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.f-group input[type=radio], .f-group input[type=checkbox] { accent-color: var(--black); width: 16px; height: 16px; }
.price-range { display: flex; gap: 8px; }
select, input[type=text], input[type=tel], input[type=number], input[type=email], input[type=search], input[type=password], textarea { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; background: #fff; outline: none; transition: border .2s; }
select:focus, input:focus, textarea:focus { border-color: var(--ink); }
.shop-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.sort-form select { width: auto; }
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 28px; }
.pagination a { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 8px; }
.pagination a.active { background: var(--black); color: #fff; border-color: var(--black); }
.empty-state { text-align: center; padding: 60px 16px; display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--gray); }
.empty-state h3 { color: var(--ink); font-size: 20px; }

/* ---------- Product page ---------- */
.product-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 44px; align-items: start; }
.gallery { position: sticky; top: 110px; }
.gallery-main { position: relative; border: 1px solid var(--line); border-radius: 12px; aspect-ratio: 5 / 3.4; display: flex; align-items: center; justify-content: center; padding: 20px; background: #fff; }
.gallery-main img { max-height: 100%; object-fit: contain; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery-thumbs button { width: 84px; height: 60px; border: 1px solid var(--line); border-radius: 8px; padding: 4px; background: #fff; }
.gallery-thumbs button.active { border-color: var(--black); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.pi-brand { font-family: var(--latin); font-weight: 700; color: var(--gold-dark); letter-spacing: 1px; }
.product-info h1 { font-size: 30px; font-weight: 800; line-height: 1.3; margin: 4px 0; }
.pi-model { color: var(--gray); font-size: 14px; }
.pi-price { font-size: 28px; font-weight: 800; margin: 12px 0 4px; }
.pi-price del { font-size: 16px; color: #999; font-weight: 400; }
.pi-stock { color: var(--green); font-weight: 500; font-size: 14px; }
.pi-stock.out { color: var(--red); }
.pi-form { margin: 20px 0; display: flex; flex-direction: column; gap: 14px; }
.pi-colors .lbl { display: block; margin-bottom: 8px; font-size: 14px; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch { cursor: pointer; }
.swatch input { position: absolute; opacity: 0; pointer-events: none; }
.swatch span { display: block; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .15); box-shadow: inset 0 0 0 3px #fff; outline: 2px solid transparent; outline-offset: 2px; transition: .15s; }
.swatch input:checked + span { outline-color: var(--black); }
.swatch input:focus-visible + span { outline-color: var(--gold); }
.pi-actions { display: flex; gap: 10px; align-items: center; }
.pi-actions .btn-lg { flex: 1; }
.wish-btn-lg { border: 1px solid var(--line); width: 50px; height: 50px; }
.qty { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 30px; overflow: hidden; height: 50px; }
.qty button { width: 38px; height: 100%; font-size: 20px; }
.qty button:hover { background: var(--soft); }
.qty input { width: 44px; border: 0; text-align: center; padding: 0; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty-sm { height: 38px; }
.qty-sm button { width: 32px; }
.qty-sm input { width: 36px; }
.form-error { background: #fdecec; color: var(--red); padding: 10px 14px; border-radius: 8px; font-size: 14px; }
.pi-perks { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 16px; background: var(--soft); border-radius: 10px; }
.pi-perks li { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.pi-desc { margin-top: 22px; }
.pi-desc h3 { font-size: 18px; margin-bottom: 6px; }
.pi-desc p { color: #444; }
.specs { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 14px; }
.specs th, .specs td { text-align: right; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.specs th { width: 35%; color: var(--gray); font-weight: 500; }

/* ---------- Cart & checkout ---------- */
.cart-layout, .checkout-layout { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; }
.cart-items { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.cart-item { width: 100%; display: grid; grid-template-columns: 110px 1fr auto auto auto; align-items: center; gap: 18px; border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; }
.ci-img img { width: 110px; aspect-ratio: 5/3; object-fit: contain; }
.ci-info { display: flex; flex-direction: column; gap: 2px; }
.ci-name { font-weight: 700; }
.ci-color { font-size: 13px; color: var(--gray); display: inline-flex; gap: 6px; align-items: center; }
.ci-price { font-size: 14px; color: var(--gray); }
.ci-total { min-width: 100px; text-align: left; }
.ci-remove:hover { color: var(--red); }
.summary { border: 1px solid var(--line); border-radius: 12px; padding: 20px; position: sticky; top: 110px; display: flex; flex-direction: column; gap: 12px; }
.summary h3 { font-size: 18px; }
.sum-row { display: flex; justify-content: space-between; font-size: 15px; }
.sum-row.total { border-top: 1px solid var(--line); padding-top: 12px; font-size: 18px; }
.free-note { background: #fff8e8; color: #8a6414; padding: 9px 12px; border-radius: 8px; font-size: 13px; display: flex; align-items: center; gap: 6px; }
.free-note.ok { background: #e8f7ef; color: var(--green); }
.sum-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 10px; align-items: center; font-size: 13px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.sum-item img { width: 64px; aspect-ratio: 5/3; object-fit: contain; }
.sum-item div { display: flex; flex-direction: column; }
.card { border: 1px solid var(--line); border-radius: 12px; padding: 24px; background: #fff; }
.card + .card { margin-top: 18px; }
.checkout-form, .contact-form, .track-form { position: relative; display: flex; flex-direction: column; gap: 14px; }
.checkout-form h3 { font-size: 20px; }
.checkout-form label, .contact-form label, .track-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.delivery-types { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dt { cursor: pointer; }
.dt input { position: absolute; opacity: 0; }
.dt span { display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); border-radius: 10px; padding: 14px; font-size: 14px; flex-wrap: wrap; }
.dt b { margin-inline-start: auto; color: var(--gold-dark); }
.dt input:checked + span { border-color: var(--black); background: var(--soft); }
.alert { padding: 12px 16px; border-radius: 8px; font-size: 14px; }
.alert-error { background: #fdecec; color: #a61b1b; }
.alert-success { background: #e8f7ef; color: #13693a; }
.success-card { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.success-icon { width: 76px; height: 76px; border-radius: 50%; background: #e8f7ef; color: var(--green); display: flex; align-items: center; justify-content: center; }
.success-card h1 { font-size: 26px; }
.order-table { width: 100%; border-collapse: collapse; font-size: 14px; text-align: right; }
.order-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); }
.order-table td:last-child { text-align: left; white-space: nowrap; }
.order-table tr.total td { font-weight: 800; font-size: 16px; border-bottom: 0; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.status-pill { display: inline-block; font-size: 12px; padding: 3px 10px; border-radius: 20px; background: #eee; vertical-align: middle; margin-inline-start: 8px; }
.st-new { background: #e8f0fe; color: #1a56db; }
.st-confirmed { background: #fff4d6; color: #8a6414; }
.st-shipped { background: #efe8fe; color: #6b3fd4; }
.st-delivered { background: #e8f7ef; color: var(--green); }
.st-cancelled, .st-returned { background: #fdecec; color: var(--red); }
.steps { list-style: none; display: flex; margin: 20px 0; counter-reset: s; }
.steps li { flex: 1; text-align: center; font-size: 13px; color: var(--gray); position: relative; padding-top: 38px; }
.steps li::before { counter-increment: s; content: counter(s); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 30px; height: 30px; border-radius: 50%; background: #eee; display: flex; align-items: center; justify-content: center; font-weight: 700; z-index: 1; }
.steps li + li::after { content: ''; position: absolute; top: 14px; right: 50%; width: 100%; height: 2px; background: #eee; }
.steps li.done { color: var(--ink); font-weight: 700; }
.steps li.done::before { background: var(--black); color: #fff; }
.steps li.done + li.done::after { background: var(--black); }

/* ---------- About / contact ---------- */
.about-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.about-text h2 { font-family: var(--latin); font-size: 26px; margin-bottom: 12px; }
.about-text p { margin-bottom: 12px; color: #444; font-size: 16px; }
.about-text .owner { color: var(--ink); }
.about-art { background: radial-gradient(circle, #3a3f46, #0f1012); border-radius: 16px; padding: 50px 30px; }
.info-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; }
.info-cards .card { margin: 0; }
.info-cards h3 { display: flex; gap: 8px; align-items: center; font-size: 17px; margin-bottom: 8px; }
.info-cards p { color: #555; font-size: 14px; }
.contact-layout { display: grid; grid-template-columns: 1fr 1.3fr; gap: 36px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.contact-info h2 { font-size: 24px; }
.ci-line { display: flex; gap: 10px; align-items: center; font-size: 16px; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .products-grid { grid-template-columns: repeat(4, 1fr); }
  .search-box input { width: 120px; }
  .main-nav { gap: 14px; }
  .header-inner { gap: 16px; }
}
@media (max-width: 1200px) {
  .menu-toggle, .search-toggle { display: inline-flex; }
  .search-box { display: none; position: absolute; top: 100%; right: 0; left: 0; margin: 0; border-radius: 0; padding: 10px 16px; background: #fff; border-bottom: 1px solid var(--line); }
  .search-box.open { display: flex; }
  .search-box input { width: 100%; background: var(--soft); }
  .search-box input { border-radius: 0 24px 24px 0; }
  .search-box button { border-radius: 24px 0 0 24px; }
  .header-inner { min-height: 70px; gap: 10px; position: relative; }
  .logo { margin-inline-end: auto; }
  .header-actions { margin: 0; }
  .main-nav { position: fixed; top: 0; right: 0; bottom: 0; width: 300px; max-width: 85%; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 0 0 20px; z-index: 100; transform: translateX(100%); transition: transform .3s; overflow-y: auto; margin: 0; }
  .main-nav.open { transform: none; }
  .nav-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
  .main-nav > a, .has-drop > a { padding: 14px 18px; border-bottom: 1px solid var(--line); justify-content: space-between; width: 100%; }
  .main-nav > a.active::after, .has-drop > a.active::after { display: none; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 12px 8px; display: none; min-width: 0; background: var(--soft); border-radius: 0; }
  .dropdown-cols { grid-template-columns: 1fr 1fr; min-width: 0; }
  .has-drop.open .dropdown { display: block; }
  .has-drop.open .dropdown-cols { display: grid; }
  .only-mobile, .main-nav > a.only-mobile { display: flex; }
}
@media (max-width: 1024px) {
  .hero { height: 400px; }
  .slide h1 { font-size: 34px; }
  .slide-kicker { font-size: 22px; }
  .slide p { font-size: 16px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid, .products-grid.grid-4 { grid-template-columns: repeat(3, 1fr); }
  .shop-layout { grid-template-columns: 1fr; }
  .filters { position: fixed; top: 0; bottom: 0; right: 0; width: 300px; max-width: 88%; z-index: 100; background: #fff; border-radius: 0; overflow-y: auto; transform: translateX(100%); transition: transform .3s; }
  .filters.open { transform: none; }
  .product-layout, .cart-layout, .checkout-layout, .about-layout, .contact-layout { grid-template-columns: 1fr; }
  .gallery, .summary { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .info-cards { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .hide-sm { display: none !important; }
  .topbar-inner { justify-content: center; }
  .tb-social { display: none; }
  .features-grid, .trust-inner { grid-template-columns: repeat(2, 1fr); }
  .feature { justify-content: flex-start; padding: 16px 8px; gap: 10px; }
  .feature:nth-child(3) { border-inline-start: 0; }
  .feature { border-top: 1px solid var(--line); }
  .trust-inner > div { font-size: 13px; padding: 14px 6px; }
  .trust-inner > div:nth-child(3) { border-inline-start: 0; }
  .hero { height: 380px; }
  .slide-art { width: 80%; left: 10%; top: 26%; opacity: .35; }
  .slide h1 { font-size: 28px; }
  .hero-nav { display: none; }
  .slide-content { padding-inline: 16px; }
  .products-grid, .products-grid.grid-4 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .product-card { padding: 8px; }
  .promo { flex-direction: column; gap: 12px; text-align: center; padding: 26px 16px; }
  .promo-art { opacity: .3; }
  .promo h2 { font-size: 26px; }
  .cart-item { grid-template-columns: 80px 1fr auto; grid-template-areas: 'img info rm' 'img qty total'; gap: 8px 12px; }
  .ci-img { grid-area: img; } .ci-img img { width: 80px; }
  .ci-info { grid-area: info; } .qty-sm { grid-area: qty; justify-self: start; }
  .ci-total { grid-area: total; } .ci-remove { grid-area: rm; }
  .form-row, .delivery-types { grid-template-columns: 1fr; }
  .pi-perks { grid-template-columns: 1fr; }
  .pi-actions { flex-wrap: wrap; }
  .pi-actions .btn-lg { flex: 1 1 100%; order: 3; padding: 13px 16px; }
  .product-layout { gap: 20px; }
  .product-layout > * { min-width: 0; }
  .product-info h1 { font-size: 24px; }
  .page-head h1 { font-size: 22px; }
  .brand-item { min-width: 110px; font-size: 16px; padding: 22px 8px; }
  .strip-nav { display: none; }
}
@media (max-width: 480px) {
  .hide-xs { display: none !important; }
  .cat-card { height: 110px; }
  .cat-title { font-size: 14px; line-height: 1.3; }
  .cat-card { padding: 12px; }
  .cat-go { width: 26px; height: 26px; }
  .footer-grid { grid-template-columns: 1fr; }
  .logo-text { font-size: 14px; letter-spacing: 2px; }
  .logo-glasses { width: 50px; }
  .icon-btn { width: 38px; height: 38px; }
  .card { padding: 18px; }
}
