/* ============================================================
   Direct From Factory — prototype stylesheet
   ============================================================ */

:root {
  --navy: #0f1b2d;
  --navy-2: #16273f;
  --ink: #16202e;
  --muted: #64748b;
  --line: #e4e8ee;
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --brand: #f2660c;
  --brand-dark: #d4550a;
  --brand-soft: #fff2e8;
  --green: #12885a;
  --red: #d92d20;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 8px 24px rgba(16, 24, 40, .06);
  --shadow-lg: 0 12px 40px rgba(16, 24, 40, .14);
  --maxw: 1240px;
  --header-h: 64px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; overflow-x: hidden; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  font-size: 15px;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, select { font: inherit; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 18px; }

/* ---------- Announcement bar ---------- */
.topbar {
  background: var(--navy);
  color: #cbd5e1;
  font-size: 12.5px;
  letter-spacing: .2px;
}
.topbar .wrap {
  display: flex; align-items: center; justify-content: center; gap: 22px;
  height: 34px; overflow: hidden; white-space: nowrap;
}
.topbar b { color: #fff; font-weight: 600; }
.topbar span.sep { opacity: .35; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: flex; align-items: center; gap: 14px; height: var(--header-h);
}

.logo { display: flex; align-items: center; gap: 10px; min-width: 0; }
.logo-mark {
  width: 38px; height: 38px; border-radius: 10px; flex: none;
  background: linear-gradient(140deg, var(--brand), #ff9142);
  display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 15px; letter-spacing: -.5px;
  box-shadow: 0 4px 12px rgba(242,102,12,.32);
}
.logo-text { line-height: 1.05; min-width: 0; }
.logo-text .l1 {
  font-weight: 800; font-size: 15.5px; letter-spacing: -.3px; color: var(--navy);
  display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.logo-text .l2 { font-size: 9.5px; letter-spacing: 2.1px; text-transform: uppercase; color: var(--brand); font-weight: 700; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav a {
  padding: 8px 12px; border-radius: 8px; font-size: 14px; font-weight: 500; color: #33415c;
}
.nav a:hover { background: var(--bg-soft); color: var(--brand); }
.nav a.active { color: var(--brand); font-weight: 600; }

.search-box { flex: 1; position: relative; max-width: 420px; margin-left: auto; }
.search-box input {
  width: 100%; height: 40px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--bg-soft); padding: 0 40px 0 16px; outline: none; font-size: 14px;
}
.search-box input:focus { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px var(--brand-soft); }
.search-box .ico { position: absolute; right: 13px; top: 11px; color: var(--muted); pointer-events: none; }

.header-actions { display: flex; align-items: center; gap: 6px; flex: none; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid transparent;
  background: transparent; display: grid; place-items: center; position: relative; color: #33415c;
}
.icon-btn:hover { background: var(--bg-soft); color: var(--brand); }
.cart-count {
  position: absolute; top: 3px; right: 3px; min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 999px; background: var(--brand); color: #fff; font-size: 10.5px; font-weight: 700;
  display: grid; place-items: center; border: 2px solid #fff;
}
.cart-count[hidden] { display: none; }
.burger { display: none; }

/* ---------- Mobile drawer ---------- */
.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(15,27,45,.5); z-index: 90;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; left: 0; bottom: 0; width: 282px; max-width: 84vw; background: #fff;
  z-index: 100; transform: translateX(-100%); transition: transform .25s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column; overflow-y: auto;
}
.drawer.open { transform: none; visibility: visible; }
.drawer:not(.open) { visibility: hidden; }
.drawer-head { padding: 16px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.drawer nav { padding: 10px; }
.drawer nav a {
  display: block; padding: 12px 14px; border-radius: 10px; font-weight: 500; font-size: 15px;
}
.drawer nav a:hover, .drawer nav a.active { background: var(--brand-soft); color: var(--brand); }
.drawer .grp-title {
  padding: 16px 14px 6px; font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--muted); font-weight: 700;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 10px; border: 1px solid transparent;
  font-weight: 600; font-size: 14.5px; background: var(--bg-soft); color: var(--ink);
  transition: transform .06s, background .15s, box-shadow .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 4px 14px rgba(242,102,12,.28); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-2); }
.btn-outline { background: #fff; border-color: var(--line); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.btn-block { width: 100%; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13.5px; border-radius: 8px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(115deg, var(--navy) 0%, #1d3557 55%, #29507a 100%);
  color: #fff; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -140px; top: -140px; width: 460px; height: 460px;
  border-radius: 50%; background: radial-gradient(circle, rgba(242,102,12,.38), transparent 66%);
}
.hero-inner {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 34px; align-items: center;
  padding: 56px 0 60px; position: relative; z-index: 1;
}
.hero .pill {
  display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2); padding: 6px 14px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .3px; margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(30px, 4.4vw, 50px); line-height: 1.08; margin: 0 0 14px;
  letter-spacing: -1.4px; font-weight: 800;
}
.hero h1 em { font-style: normal; color: #ffab63; }
.hero p { font-size: 16px; color: #c6d4e6; max-width: 480px; margin: 0 0 26px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 30px; margin-top: 34px; flex-wrap: wrap; }
.hero-stats .n { font-size: 22px; font-weight: 800; color: #fff; }
.hero-stats .t { font-size: 12px; color: #9fb3cd; letter-spacing: .4px; }

.hero-art { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; padding: 26px 0; }
.hero-art .tile {
  background: rgba(255,255,255,.94); border-radius: var(--radius-lg); padding: 14px;
  box-shadow: var(--shadow-lg);
}
.hero-art .tile img.pmedia,
.hero-art .tile svg { border-radius: 10px; aspect-ratio: 1/1; object-fit: cover; width: 100%; }
.cat-card .art img.pmedia { width: 66px; height: 66px; object-fit: cover; border-radius: 10px; }
.hero-art .tile:nth-child(2) { transform: translateY(22px); }
.hero-art .tile:nth-child(3) { transform: translateY(-22px); }
.hero-art .tile .cap { font-size: 12px; font-weight: 700; color: var(--navy); margin-top: 6px; }
.hero-art .tile .pr { font-size: 12px; color: var(--brand); font-weight: 700; }

/* ---------- Trust strip ---------- */
.trust { border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.trust-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 18px 0;
}
.trust-item { display: flex; gap: 11px; align-items: center; }
.trust-item .ic {
  width: 38px; height: 38px; border-radius: 10px; background: #fff; border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--brand); flex: none;
}
.trust-item .t1 { font-weight: 700; font-size: 13.5px; }
.trust-item .t2 { font-size: 12px; color: var(--muted); }

/* ---------- Sections ---------- */
section.block { padding: 52px 0; }
section.block.soft { background: var(--bg-soft); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.sec-head h2 { margin: 0; font-size: clamp(21px, 2.6vw, 28px); letter-spacing: -.7px; font-weight: 800; color: var(--navy); }
.sec-head p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.sec-head a.more { font-weight: 600; color: var(--brand); font-size: 14px; white-space: nowrap; }

/* ---------- Category cards ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.cat-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 10px; text-align: center; transition: .18s; display: block;
}
.cat-card:hover { border-color: var(--brand); transform: translateY(-3px); box-shadow: var(--shadow); }
.cat-card .art { height: 66px; display: grid; place-items: center; margin-bottom: 8px; }
.cat-card .nm { font-weight: 700; font-size: 13.5px; color: var(--navy); }
.cat-card .ct { font-size: 11.5px; color: var(--muted); }

/* ---------- Product grid / card ---------- */
.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.prod-grid.five { grid-template-columns: repeat(5, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column; transition: .18s; position: relative;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: #d7dde6; }
.card-media {
  position: relative; background: var(--bg-soft); aspect-ratio: 1 / 1;
  display: grid; place-items: center; overflow: hidden;
}
.card-media svg { width: 82%; height: 82%; transition: transform .3s; }
.card-media img.pmedia { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.card:hover .card-media svg,
.card:hover .card-media img.pmedia { transform: scale(1.06); }
.badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 5px; align-items: flex-start; }
.badge {
  font-size: 10.5px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase;
  padding: 4px 8px; border-radius: 6px; color: #fff; background: var(--navy);
}
.badge.off { background: var(--brand); }
.badge.new { background: var(--green); }
.badge.low { background: var(--red); }
.wish {
  position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,.94); border: 1px solid var(--line); display: grid; place-items: center;
  color: #94a3b8; z-index: 2;
}
.wish:hover { color: var(--red); }
.wish.on { color: var(--red); }
.wish.on svg { fill: currentColor; }

.card-body { padding: 12px 13px 14px; display: flex; flex-direction: column; flex: 1; }
.card-brand { font-size: 11px; letter-spacing: .9px; text-transform: uppercase; color: var(--brand); font-weight: 800; }
.card-title {
  font-size: 13.8px; font-weight: 600; margin: 3px 0 6px; line-height: 1.35; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 37px;
}
.rating { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--muted); margin-bottom: 8px; }
.stars { color: #f0a500; letter-spacing: -.5px; font-size: 12px; }
.price-row { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; margin-top: auto; }
.price { font-size: 17px; font-weight: 800; color: var(--navy); }
.mrp { font-size: 12.5px; color: #9aa5b4; text-decoration: line-through; }
.off { font-size: 12px; font-weight: 800; color: var(--green); }
.swatches { display: flex; gap: 5px; margin-top: 9px; align-items: center; }
.sw {
  width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(0,0,0,.16);
  box-shadow: inset 0 0 0 2px #fff;
}
.sw.more { font-size: 10.5px; color: var(--muted); border: none; box-shadow: none; width: auto; }
.card-cta { margin-top: 11px; display: flex; gap: 7px; }
.card-cta .btn { white-space: nowrap; padding: 0 10px; min-width: 0; }

/* ---------- Catalog layout ---------- */
.catalog { display: grid; grid-template-columns: 244px 1fr; gap: 26px; padding: 26px 0 60px; align-items: start; }
.filters {
  position: sticky; top: calc(var(--header-h) + 14px);
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; overflow: hidden;
}
.filters-head { padding: 14px 16px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.filters-head b { font-size: 14.5px; }
.filters-head button { background: none; border: none; color: var(--brand); font-size: 12.5px; font-weight: 700; padding: 0; }
.fgroup { border-bottom: 1px solid var(--line); padding: 14px 16px; }
.fgroup:last-child { border-bottom: none; }
.fgroup > h4 {
  margin: 0 0 10px; font-size: 11.5px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); font-weight: 800;
}
.fopt { display: flex; align-items: center; gap: 9px; padding: 5px 0; font-size: 13.5px; cursor: pointer; }
.fopt input { width: 15px; height: 15px; accent-color: var(--brand); flex: none; }
.fopt .cnt { margin-left: auto; font-size: 11.5px; color: #9aa5b4; }
.color-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.color-opt {
  width: 27px; height: 27px; border-radius: 50%; border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--line); cursor: pointer; position: relative;
}
.color-opt.sel { box-shadow: 0 0 0 2px var(--brand); }
.size-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.size-chip {
  min-width: 38px; height: 32px; padding: 0 9px; border: 1px solid var(--line); border-radius: 7px;
  background: #fff; font-size: 12.5px; font-weight: 600; display: grid; place-items: center;
}
.size-chip.sel { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.range-row { display: flex; align-items: center; gap: 8px; }
.range-row input[type=range] { width: 100%; accent-color: var(--brand); }
.range-val { font-size: 12.5px; color: var(--muted); margin-top: 6px; }

.toolbar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 0 0 16px; border-bottom: 1px solid var(--line); margin-bottom: 20px;
}
.toolbar .count { font-size: 13.5px; color: var(--muted); }
.toolbar .count b { color: var(--ink); }
.toolbar .spacer { margin-left: auto; }
.select {
  height: 38px; border: 1px solid var(--line); border-radius: 9px; padding: 0 32px 0 12px;
  background: #fff url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='3'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 11px center;
  -webkit-appearance: none; appearance: none; font-size: 13.5px; font-weight: 500;
}
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; background: var(--brand-soft); color: var(--brand-dark);
  border: 1px solid #ffd9bd; border-radius: 999px; padding: 5px 10px; font-size: 12.5px; font-weight: 600;
}
.chip button { background: none; border: none; color: inherit; padding: 0; line-height: 1; font-size: 14px; }
.filter-toggle { display: none; }

.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty h3 { color: var(--ink); margin: 14px 0 6px; }

/* ---------- Breadcrumb ---------- */
.crumb { font-size: 12.5px; color: var(--muted); padding: 16px 0 0; display: flex; gap: 7px; flex-wrap: wrap; }
.crumb a:hover { color: var(--brand); }
.crumb .cur { color: var(--ink); font-weight: 600; }

/* ---------- Product detail ---------- */
.pdp { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; padding: 22px 0 56px; align-items: start; }
.gallery { position: sticky; top: calc(var(--header-h) + 16px); }
.gal-main {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-lg);
  aspect-ratio: 1/1; display: grid; place-items: center; overflow: hidden; position: relative;
}
.gal-main svg { width: 78%; height: 78%; }
.gal-main img.pmedia { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.gal-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.gal-thumb {
  background: var(--bg-soft); border: 1.5px solid var(--line); border-radius: 10px; aspect-ratio: 1/1;
  display: grid; place-items: center; padding: 6px; overflow: hidden;
}
.gal-thumb.sel { border-color: var(--brand); }
.gal-thumb { overflow: hidden; }
.gal-thumb svg { width: 100%; height: 100%; }
.gal-thumb { padding: 0; }
.gal-thumb img.pmedia { width: 100%; height: 100%; object-fit: cover; }

.pdp-brand {
  font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--brand); font-weight: 800;
}
.pdp h1 { font-size: clamp(22px, 3vw, 30px); margin: 6px 0 10px; letter-spacing: -.7px; line-height: 1.2; font-weight: 800; color: var(--navy); }
.pdp-rating { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); margin-bottom: 16px; flex-wrap: wrap; }
.pdp-rating .pill-r { background: var(--green); color: #fff; padding: 2px 8px; border-radius: 6px; font-weight: 700; font-size: 12.5px; }
.pdp-price { display: flex; align-items: baseline; gap: 11px; flex-wrap: wrap; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pdp-price .p { font-size: 30px; font-weight: 800; color: var(--navy); letter-spacing: -1px; }
.pdp-price .m { font-size: 16px; color: #9aa5b4; text-decoration: line-through; }
.pdp-price .o { font-size: 15px; font-weight: 800; color: var(--green); }
.tax-note { font-size: 12px; color: var(--muted); margin-top: 6px; }

.opt-block { padding: 18px 0; border-bottom: 1px solid var(--line); }
.opt-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 11px; }
.opt-head .lbl { font-size: 13px; font-weight: 700; letter-spacing: .3px; }
.opt-head .val { font-size: 13px; color: var(--muted); }
.opt-head a { font-size: 12.5px; color: var(--brand); font-weight: 600; }
.color-row { display: flex; gap: 11px; flex-wrap: wrap; }
.color-pick {
  width: 40px; height: 40px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1.5px var(--line);
  cursor: pointer; transition: .15s; position: relative;
}
.color-pick:hover { transform: scale(1.07); }
.color-pick.sel { box-shadow: 0 0 0 2.5px var(--brand); }
.size-row { display: flex; gap: 9px; flex-wrap: wrap; }
.size-pick {
  min-width: 52px; height: 44px; padding: 0 13px; border: 1.5px solid var(--line); border-radius: 9px;
  background: #fff; font-weight: 600; font-size: 14px; display: grid; place-items: center; position: relative;
}
.size-pick:hover { border-color: var(--navy); }
.size-pick.sel { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); }
.size-pick.oos { color: #c3cad4; background: var(--bg-soft); cursor: not-allowed; overflow: hidden; }
.size-pick.oos::after {
  content: ""; position: absolute; left: -6px; right: -6px; top: 50%;
  border-top: 1px solid #dde3ea; transform: rotate(-16deg);
}
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 9px; overflow: hidden; }
.qty button { width: 40px; height: 42px; background: #fff; border: none; font-size: 18px; color: var(--ink); }
.qty button:hover { background: var(--bg-soft); color: var(--brand); }
.qty span { width: 46px; text-align: center; font-weight: 700; }

.buy-row { display: flex; gap: 12px; padding: 20px 0; flex-wrap: wrap; }
.buy-row .btn { flex: 1; min-width: 160px; height: 50px; font-size: 15px; }

.stock-line { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--green); }
.stock-line.low { color: var(--red); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

.usp-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 18px 0; }
.usp { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; }
.usp .ic { color: var(--brand); flex: none; margin-top: 1px; }
.usp b { display: block; font-size: 13px; }
.usp span { color: var(--muted); font-size: 12px; }

.accordion { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-btn {
  width: 100%; background: none; border: none; padding: 16px 0; display: flex;
  justify-content: space-between; align-items: center; font-weight: 700; font-size: 14.5px; text-align: left;
}
.acc-btn .arw { transition: transform .2s; color: var(--muted); }
.acc-item.open .acc-btn .arw { transform: rotate(180deg); }
.acc-body { display: none; padding: 0 0 18px; font-size: 13.5px; color: #45536a; }
.acc-item.open .acc-body { display: block; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.spec-table td { padding: 8px 0; border-bottom: 1px solid var(--bg-soft); vertical-align: top; }
.spec-table td:first-child { color: var(--muted); width: 42%; }
.spec-table td:last-child { font-weight: 600; }
.acc-body ul { margin: 0; padding-left: 18px; }
.acc-body li { margin-bottom: 6px; }

/* ---------- Cart ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 350px; gap: 26px; padding: 24px 0 60px; align-items: start; }
.cart-list { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; }
.cart-item { display: grid; grid-template-columns: 96px 1fr auto; gap: 14px; padding: 16px; border-bottom: 1px solid var(--line); }
.cart-item:last-child { border-bottom: none; }
.cart-thumb { background: var(--bg-soft); border-radius: 10px; aspect-ratio: 1/1; display: grid; place-items: center; padding: 8px; }
.cart-thumb svg { width: 100%; height: 100%; }
.cart-thumb { padding: 0; overflow: hidden; }
.cart-thumb img.pmedia { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.ci-title { font-weight: 600; font-size: 14.5px; margin-bottom: 4px; }
.ci-meta { font-size: 12.5px; color: var(--muted); display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.ci-meta .sw-mini { width: 12px; height: 12px; border-radius: 50%; display: inline-block; vertical-align: -1px; margin-right: 5px; border: 1px solid rgba(0,0,0,.15); }
.ci-actions { display: flex; gap: 14px; align-items: center; }
.link-btn { background: none; border: none; color: var(--muted); font-size: 12.5px; font-weight: 600; padding: 0; }
.link-btn:hover { color: var(--red); }
.ci-price { text-align: right; font-weight: 800; font-size: 16px; white-space: nowrap; }
.ci-price .m { display: block; font-size: 12px; color: #9aa5b4; text-decoration: line-through; font-weight: 500; }

.summary { border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; padding: 18px; position: sticky; top: calc(var(--header-h) + 14px); }
.summary h3 { margin: 0 0 14px; font-size: 16px; }
.sum-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; }
.sum-row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; font-size: 17px; font-weight: 800; }
.sum-row .g { color: var(--green); font-weight: 600; }
.coupon { display: flex; gap: 8px; margin: 14px 0; }
.coupon input { flex: 1; height: 40px; border: 1px solid var(--line); border-radius: 9px; padding: 0 12px; outline: none; }
.coupon input:focus { border-color: var(--brand); }
.save-note { background: #eafaf1; color: #0d6b46; border-radius: 9px; padding: 10px 12px; font-size: 13px; font-weight: 600; margin-top: 12px; }

/* ---------- Toast ---------- */
.toast-wrap { position: fixed; right: 18px; bottom: 18px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--navy); color: #fff; padding: 12px 16px; border-radius: 11px; box-shadow: var(--shadow-lg);
  font-size: 13.5px; font-weight: 500; display: flex; align-items: center; gap: 10px; max-width: 320px;
  animation: slideup .25s cubic-bezier(.4,0,.2,1);
}
.toast .ok { color: #4ade80; flex: none; }
@keyframes slideup { from { opacity: 0; transform: translateY(14px); } }

/* ---------- Modal ---------- */
.modal-back {
  position: fixed; inset: 0; background: rgba(15,27,45,.62); z-index: 150;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-back.open { display: flex; }
.modal {
  background: #fff; border-radius: 20px; max-width: 430px; width: 100%; padding: 34px 30px;
  text-align: center; box-shadow: var(--shadow-lg); animation: pop .22s cubic-bezier(.34,1.4,.64,1);
}
@keyframes pop { from { opacity: 0; transform: scale(.93); } }
.modal .emo {
  width: 74px; height: 74px; border-radius: 50%; background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center; margin: 0 auto 18px;
}
.modal h3 { margin: 0 0 10px; font-size: 22px; letter-spacing: -.5px; color: var(--navy); }
.modal p { margin: 0 0 22px; color: var(--muted); font-size: 14.5px; }
.modal .btn { width: 100%; }
.modal .fine { font-size: 12px; color: #9aa5b4; margin-top: 14px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #94a8c1; margin-top: 20px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; padding: 46px 0 32px; }
.site-footer h4 { color: #fff; font-size: 13px; letter-spacing: 1.1px; text-transform: uppercase; margin: 0 0 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; font-size: 13.5px; }
.site-footer a:hover { color: var(--brand); }
.foot-about p { font-size: 13.5px; line-height: 1.65; max-width: 320px; margin: 14px 0 18px; }
.pay-row { display: flex; gap: 8px; flex-wrap: wrap; }
.pay {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 6px;
  padding: 5px 9px; font-size: 11px; font-weight: 700; color: #cbd5e1;
}
.foot-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding: 16px 0; display: flex;
  justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12.5px;
}
.proto-note {
  background: rgba(242,102,12,.14); border: 1px solid rgba(242,102,12,.3); color: #ffb37a;
  border-radius: 8px; padding: 4px 10px; font-size: 11.5px; font-weight: 600;
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .prod-grid, .prod-grid.five { grid-template-columns: repeat(3, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
}

@media (max-width: 900px) {
  .nav { display: none; }
  .burger { display: grid; }
  .hero-inner { grid-template-columns: 1fr; padding: 40px 0 44px; }
  .hero-art { max-width: 420px; }
  .pdp { grid-template-columns: 1fr; gap: 26px; }
  .gallery { position: static; }
  .cart-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .trust-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .catalog { grid-template-columns: 1fr; }
  .filters {
    position: fixed; top: 0; right: 0; bottom: 0; left: auto; width: 320px; max-width: 88vw;
    z-index: 120; border-radius: 0; transform: translateX(100%); transition: transform .25s;
    overflow-y: auto; border: none;
  }
  .filters.open { transform: none; visibility: visible; }
  .filters:not(.open) { visibility: hidden; }
  .filter-toggle { display: inline-flex; }
  .filters-apply { display: block; padding: 14px 16px; border-top: 1px solid var(--line); }
}

@media (max-width: 720px) {
  :root { --header-h: 60px; }
  .card-cta { flex-direction: column; }
  .card-cta .btn { width: 100%; }
  .header-row { gap: 9px; }
  .icon-btn { width: 36px; height: 36px; }
  .logo-mark { width: 34px; height: 34px; font-size: 13px; border-radius: 9px; }
  .logo-text .l1 { font-size: 13px; }
  .logo-text .l2 { display: none; }
  .header-actions { gap: 1px; }
  .header-actions [aria-label="Account"] { display: none; }
  .topbar .wrap > *:nth-child(n+5) { display: none; }
  .search-box { display: none; }
  .search-box.mobile-show {
    display: block; position: absolute; left: 12px; right: 12px; top: 100%; max-width: none;
    background: #fff; padding: 10px 0 12px; z-index: 5;
  }
  .site-header .header-row { position: relative; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .prod-grid, .prod-grid.five { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .topbar .wrap { justify-content: flex-start; gap: 14px; font-size: 11.5px; }
  section.block { padding: 34px 0; }
  .usp-list { grid-template-columns: 1fr; }
  .gal-thumbs { grid-template-columns: repeat(4, 1fr); }
  .cart-item { grid-template-columns: 76px 1fr; }
  .ci-price { grid-column: 2; text-align: left; }
  .foot-grid { grid-template-columns: 1fr; padding: 32px 0 24px; }
  .toast-wrap { left: 14px; right: 14px; bottom: 14px; }
  .toast { max-width: none; }
  .card-title { font-size: 13px; min-width: 0; }
  .buy-row .btn { min-width: 100%; }
}

@media (max-width: 420px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { gap: 20px; }
}

/* ---------- Credits page ---------- */
.credit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.credit {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff;
  display: flex; flex-direction: column;
}
.credit img { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: var(--bg-soft); }
.credit .cbody { padding: 11px 12px; font-size: 12.5px; }
.credit .cbody b { display: block; font-size: 13px; margin-bottom: 4px; line-height: 1.3; }
.credit .cbody span { color: var(--muted); display: block; line-height: 1.5; }
.credit .cbody a { color: var(--brand); font-weight: 600; }
.lic { display: inline-block; margin-top: 6px; padding: 2px 7px; border-radius: 5px;
       background: var(--bg-soft); font-size: 11px; font-weight: 700; color: #45536a; }

.photo-credit { font-size: 11.5px; color: #94a3b8; margin-top: 10px; line-height: 1.5; }
.photo-credit a { color: #64748b; text-decoration: underline; }
.photo-credit a:hover { color: var(--brand); }
