/* Pear Concept Store — storefront styles */
:root {
  --bg: #fbf8f3;
  --surface: #ffffff;
  --soft: #f4eee5;
  --soft-2: #ede5d9;
  --ink: #2a2521;
  --ink-2: #4a423c;
  --muted: #837970;
  --line: #e7dfd3;
  --accent: #5f7350;        /* pear green */
  --accent-ink: #ffffff;
  --accent-soft: #e6ebdd;
  --sale: #b8603f;
  --sale-soft: #f6e3d9;
  --ok: #4c7a4f;
  --danger: #b3453a;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(42, 37, 33, .05), 0 8px 24px rgba(42, 37, 33, .06);
  --shadow-lg: 0 24px 60px rgba(42, 37, 33, .18);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1320px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(30px, 4vw, 46px); }
h2 { font-size: clamp(24px, 2.8vw, 34px); }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.eyebrow { font: 600 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ---------- buttons & forms ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1px solid var(--ink);
  background: var(--ink); color: #fff; font-weight: 600; font-size: 15px; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .1s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-accent { background: var(--accent); border-color: var(--accent); }
.btn-accent:hover { background: #4d5f40; border-color: #4d5f40; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface); color: var(--ink); border-color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light:hover { background: var(--ink); border-color: var(--ink); }
.btn-block { width: 100%; }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.link { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.link:hover { text-decoration-color: currentColor; }
.linkbtn { background: none; border: 0; padding: 0; cursor: pointer; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; font-size: 14px; }

.field { margin-bottom: 16px; }
.field label, .label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field .help { font-size: 13px; color: var(--muted); margin-top: 4px; }
.field .error, .errorlist { color: var(--danger); font-size: 13px; margin: 4px 0 0; padding: 0; list-style: none; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=search],
select, textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-sm); outline: none; transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--ink-2); box-shadow: 0 0 0 3px rgba(95, 115, 80, .15); }
.field.has-error input, .field.has-error select { border-color: var(--danger); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent); flex: none; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid-3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 0 16px; }
@media (max-width: 560px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* ---------- header ---------- */
.announce { background: var(--ink); color: #f3ede4; font-size: 13px; text-align: center; padding: 9px 16px; letter-spacing: .02em; }
.header { position: sticky; top: 0; z-index: 40; background: rgba(251, 248, 243, .97); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 76px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 24px; font-weight: 500; letter-spacing: -.02em; white-space: nowrap; }
.logo svg { width: 30px; height: 30px; flex: none; }
.logo small { display: block; font: 600 9.5px/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.nav { display: flex; gap: 4px; margin-inline-start: 12px; }
.nav > li { list-style: none; position: relative; }
.nav > li > a { display: block; padding: 10px 14px; font-weight: 500; font-size: 15px; border-radius: 999px; }
.nav > li > a:hover, .nav > li:focus-within > a { background: var(--soft); color: var(--ink); }
.nav a.sale { color: var(--sale); }
.nav ul { margin: 0; padding: 0; }
.mega {
  position: absolute; top: calc(100% + 8px); inset-inline-start: -8px; min-width: 520px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 24px; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 20px 28px;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s ease;
}
.mega::before { content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.nav > li:hover .mega, .nav > li:focus-within .mega { opacity: 1; visibility: visible; transform: none; }
.mega h4 { font: 600 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.mega h4 a:hover { color: var(--accent); }
.mega li { list-style: none; }
.mega li a { display: block; padding: 4px 0; font-size: 15px; }
.mega .all { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 14px; font-weight: 600; font-size: 14px; }
.header-tools { margin-inline-start: auto; display: flex; align-items: center; gap: 4px; }
.search { position: relative; }
.search input { min-height: 42px; width: 240px; padding-inline-start: 40px; border-radius: 999px; background: var(--soft); border-color: transparent; font-size: 15px; }
.search input:focus { background: #fff; }
.search svg { position: absolute; inset-inline-start: 14px; top: 50%; transform: translateY(-50%); width: 17px; color: var(--muted); pointer-events: none; }
.icon-btn { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; background: none; border: 0; cursor: pointer; }
.icon-btn:hover { background: var(--soft); color: var(--ink); }
.icon-btn svg { width: 22px; height: 22px; }
.badge-count { position: absolute; top: 3px; inset-inline-end: 1px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.badge-count[data-count="0"] { display: none; }
.menu-toggle { display: none; }
@media (max-width: 1080px) { .search input { width: 180px; } .nav > li > a { padding: 10px 10px; } }
@media (max-width: 920px) {
  .nav, .search { display: none; }
  .menu-toggle { display: grid; }
  .header-inner { height: 64px; gap: 8px; }
  .logo { font-size: 21px; }
}

/* mobile menu */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(42, 37, 33, .4); z-index: 60; opacity: 0; visibility: hidden; transition: .25s; }
.drawer { position: fixed; top: 0; bottom: 0; width: min(420px, 92vw); background: var(--bg); z-index: 61; display: flex; flex-direction: column; transition: transform .3s cubic-bezier(.2, .8, .2, 1); box-shadow: var(--shadow-lg); }
.drawer.right { right: 0; transform: translateX(100%); }
.drawer.left { left: 0; transform: translateX(-100%); }
.drawer.open { transform: none; }
.drawer.open + .drawer-backdrop, .drawer-backdrop.show { opacity: 1; visibility: visible; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { margin: 0; font-size: 22px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 22px 22px; }
.drawer-foot { border-top: 1px solid var(--line); padding: 18px 22px; background: var(--surface); }
.mobile-nav details { border-bottom: 1px solid var(--line); }
.mobile-nav summary, .mobile-nav > a { display: flex; justify-content: space-between; padding: 15px 0; font-weight: 600; cursor: pointer; list-style: none; }
.mobile-nav > a { border-bottom: 1px solid var(--line); }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav summary::after { content: "+"; font-weight: 400; font-size: 20px; line-height: 1; }
.mobile-nav details[open] summary::after { content: "–"; }
.mobile-nav details a { display: block; padding: 7px 0 7px 12px; color: var(--ink-2); }
.mobile-nav details div { padding-bottom: 12px; }
.mobile-search { margin: 16px 0; }

/* ---------- messages ---------- */
.toasts { position: fixed; top: 92px; inset-inline-end: 20px; z-index: 80; display: flex; flex-direction: column; gap: 10px; max-width: min(420px, calc(100vw - 32px)); }
.toast { background: var(--ink); color: #fff; padding: 14px 18px; border-radius: 12px; box-shadow: var(--shadow-lg); font-size: 15px; display: flex; gap: 12px; align-items: flex-start; animation: toast-in .3s ease; }
.toast.error { background: var(--danger); }
.toast.success { background: var(--accent); }
.toast button { margin-inline-start: auto; background: none; border: 0; color: inherit; cursor: pointer; font-size: 18px; line-height: 1; opacity: .7; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- hero & home ---------- */
.hero { position: relative; overflow: hidden; background: var(--soft); }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 48px; min-height: 560px; padding-top: 48px; padding-bottom: 48px; }
.hero h1 { font-size: clamp(38px, 5.4vw, 68px); font-weight: 400; line-height: 1.02; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero p.lead { font-size: 18px; color: var(--ink-2); max-width: 470px; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-art { position: relative; height: 480px; }
.hero-art .frame { position: absolute; border-radius: 220px 220px 20px 20px; overflow: hidden; background: var(--soft-2); box-shadow: var(--shadow); }
.hero-art .frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-art .f1 { width: 58%; height: 100%; right: 4%; top: 0; }
.hero-art .f2 { width: 40%; height: 62%; left: 0; bottom: 0; border-radius: 20px 20px 160px 160px; border: 8px solid var(--soft); }
.hero-art .blob { position: absolute; width: 150px; height: 150px; border-radius: 50%; background: var(--accent-soft); top: 20px; left: 12%; }
.hero-stamp { position: absolute; right: 0; bottom: 30px; background: var(--bg); border-radius: 999px; padding: 12px 18px; box-shadow: var(--shadow); font-size: 14px; display: flex; gap: 10px; align-items: center; }
.hero-stamp b { font-family: var(--serif); font-size: 22px; font-weight: 500; }
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; min-height: 0; gap: 32px; }
  .hero-art { height: 340px; }
}

.usps { border-bottom: 1px solid var(--line); background: var(--bg); }
.usps .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-top: 20px; padding-bottom: 20px; }
.usp { display: flex; gap: 12px; align-items: center; font-size: 14px; color: var(--ink-2); }
.usp svg { width: 26px; height: 26px; color: var(--accent); flex: none; }
.usp b { display: block; color: var(--ink); font-size: 15px; }
@media (max-width: 860px) { .usps .wrap { grid-template-columns: 1fr 1fr; } }

.section { padding: clamp(48px, 7vw, 88px) 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.section-head h2 { margin: 0; }
.section-head a { font-weight: 600; font-size: 15px; white-space: nowrap; }

.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tile { position: relative; display: block; aspect-ratio: 3/4; border-radius: var(--radius); overflow: hidden; background: var(--soft-2); isolation: isolate; }
.tile img, .tile .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.tile:hover img { transform: scale(1.04); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(30, 25, 20, .55)); z-index: 1; }
.tile-label { position: absolute; inset-inline: 20px; bottom: 18px; z-index: 2; color: #fff; }
.tile-label h3 { color: #fff; font-size: 26px; margin: 0 0 2px; }
.tile-label span { font-size: 14px; opacity: .9; }
.tile:hover { color: #fff; }
@media (max-width: 860px) { .tiles { grid-template-columns: 1fr 1fr; } }

.story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.story-img { aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden; background: var(--soft-2); }
.story-img img { width: 100%; height: 100%; object-fit: cover; }
.story p { color: var(--ink-2); font-size: 17px; }
@media (max-width: 760px) { .story { grid-template-columns: 1fr; } }

.brand-strip { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.brand-chip { padding: 12px 22px; border: 1px solid var(--line); border-radius: 999px; font-family: var(--serif); font-size: 18px; background: var(--surface); transition: .2s; }
.brand-chip:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-2px); }

.newsletter { background: var(--accent); color: #fff; border-radius: 22px; padding: clamp(32px, 5vw, 56px); display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; }
.newsletter h2 { color: #fff; margin-bottom: 8px; }
.newsletter p { margin: 0; opacity: .9; }
.newsletter form { display: flex; gap: 8px; }
.newsletter input { border: 0; border-radius: 999px; padding-inline-start: 20px; }
.newsletter .btn { background: var(--ink); border-color: var(--ink); flex: none; }
@media (max-width: 760px) { .newsletter { grid-template-columns: 1fr; } .newsletter form { flex-direction: column; } }

/* ---------- product grid & card ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px 20px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1080px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .grid, .grid.cols-3 { grid-template-columns: 1fr 1fr; gap: 24px 12px; } }
.card { display: flex; flex-direction: column; position: relative; }
.card-media { position: relative; display: block; aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden; background: var(--soft); }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .35s ease, transform .6s ease; }
.card-media img.hover { opacity: 0; }
.card:hover .card-media img.hover { opacity: 1; }
.card:hover .card-media img { transform: scale(1.03); }
.card-badges { position: absolute; top: 12px; inset-inline-start: 12px; display: flex; gap: 6px; z-index: 2; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .02em; background: #fff; color: var(--ink); }
.pill.sale { background: var(--sale); color: #fff; }
.pill.soldout { background: var(--ink); color: #fff; }
.pill.new { background: var(--accent-soft); color: var(--accent); }
.card-body { padding: 14px 2px 0; }
.card-brand { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.card-title { font-size: 16px; font-weight: 500; line-height: 1.35; margin-bottom: 2px; }
.card-color { font-size: 14px; color: var(--muted); }
.card-price { margin-top: 6px; font-weight: 600; display: flex; gap: 8px; align-items: baseline; }
.price-old { color: var(--muted); text-decoration: line-through; font-weight: 400; font-size: .9em; }
.price-sale { color: var(--sale); }
.card-sizes { font-size: 12.5px; color: var(--muted); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card.is-soldout .card-media > *:not(.card-badges) { opacity: .6; }

/* placeholder for products without photo */
.ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px; padding: 18px; background: var(--ph, var(--soft)); color: rgba(42, 37, 33, .55); }
.ph::before { content: ""; position: absolute; inset: 10px; border: 1px dashed rgba(42, 37, 33, .14); border-radius: 10px; }
.ph svg { width: 42px; height: 42px; opacity: .55; }
.ph .ph-brand { font: 600 11px/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.ph .ph-name { font-family: var(--serif); font-size: 18px; color: rgba(42, 37, 33, .7); line-height: 1.2; }

/* ---------- listing ---------- */
.page-head { padding: 36px 0 24px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.crumbs a:hover { color: var(--ink); }
.crumbs span[aria-hidden] { opacity: .5; }
.page-head p { color: var(--ink-2); max-width: 680px; }
.subcats { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; background: var(--surface); }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.listing { display: grid; grid-template-columns: 250px 1fr; gap: 40px; padding-bottom: 80px; }
.filters { position: sticky; top: 100px; align-self: start; max-height: calc(100vh - 120px); overflow-y: auto; padding-inline-end: 6px; }
.filter-group { border-bottom: 1px solid var(--line); padding: 16px 0; }
.filter-group:first-child { padding-top: 0; }
.filter-group h4 { font: 600 13px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px; }
.filter-list a { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 15px; color: var(--ink-2); }
.filter-list a::before { content: ""; width: 17px; height: 17px; border: 1.5px solid #c9bfb2; border-radius: 5px; flex: none; background: #fff; }
.filter-list a.on::before { background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2.4'%3E%3Cpath d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E") center/12px no-repeat; border-color: var(--accent); }
.filter-list a.radio::before { border-radius: 50%; }
.size-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.size-grid a { min-width: 46px; padding: 7px 10px; text-align: center; border: 1px solid var(--line); border-radius: 8px; font-size: 13.5px; background: #fff; }
.size-grid a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.size-grid a:hover { border-color: var(--ink); }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }
.toolbar .count { color: var(--muted); font-size: 15px; }
.toolbar select { width: auto; min-height: 42px; border-radius: 999px; padding: 0 38px 0 16px; }
.filter-toggle { display: none; }
.filter-toggle svg { width: 18px; height: 18px; }
.empty { text-align: center; padding: 70px 20px; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); }
.empty svg { width: 48px; height: 48px; color: var(--muted); margin: 0 auto 14px; }
@media (max-width: 920px) {
  .listing { grid-template-columns: 1fr; }
  .filters { display: none; position: static; max-height: none; }
  .filters.open { display: block; }
  .filter-toggle { display: inline-flex; }
}

.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 48px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 42px; height: 42px; display: grid; place-items: center; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 15px; }
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }
.pagination .gap { border: 0; background: none; }

/* ---------- product detail ---------- */
.pdp { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); padding: 12px 0 72px; }
.gallery { display: grid; grid-template-columns: 76px 1fr; gap: 14px; align-self: start; position: sticky; top: 100px; }
.gallery.single { grid-template-columns: 1fr; }
.thumbs { display: flex; flex-direction: column; gap: 10px; }
.thumbs button { padding: 0; border: 1.5px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; aspect-ratio: 4/5; background: var(--soft); }
.thumbs button.active { border-color: var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.main-photo { position: relative; aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden; background: var(--soft); cursor: zoom-in; }
.main-photo img { width: 100%; height: 100%; object-fit: cover; }
.main-photo .ph .ph-name { font-size: 28px; }
.main-photo .ph svg { width: 64px; height: 64px; }
.pdp-info .card-brand { font-size: 13px; }
.pdp-info h1 { font-size: clamp(30px, 3.4vw, 42px); margin-bottom: 6px; }
.pdp-price { font-size: 24px; font-weight: 600; margin: 14px 0 6px; display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.pdp-price .pill { position: relative; top: -3px; }
.vat-note { font-size: 13px; color: var(--muted); margin-bottom: 24px; }
.opt-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.opt-head .label { margin: 0; }
.sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin-bottom: 8px; }
.sizes label { position: relative; }
.sizes input { position: absolute; opacity: 0; pointer-events: none; }
.sizes span { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 52px; padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; font-size: 14.5px; font-weight: 500; text-align: center; line-height: 1.2; transition: .15s; }
.sizes span small { font-size: 11px; font-weight: 500; color: var(--sale); margin-top: 2px; }
.sizes label:hover span { border-color: var(--ink); }
.sizes input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.sizes input:checked + span small { color: #f6d2c2; }
.sizes input:disabled + span { color: #b9afa4; background: var(--soft); text-decoration: line-through; cursor: not-allowed; border-style: dashed; }
.sizes input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.stock-line { font-size: 14px; min-height: 22px; margin: 8px 0 18px; display: flex; align-items: center; gap: 8px; }
.stock-line .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.stock-line.low .dot { background: #d49a2a; }
.stock-line.out .dot { background: var(--danger); }
.buy-row { display: flex; gap: 10px; }
.qty { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: #fff; height: 48px; }
.qty button { width: 40px; height: 100%; border: 0; background: none; cursor: pointer; font-size: 18px; color: var(--ink-2); }
.qty input { width: 36px; min-height: 0; height: 100%; border: 0; text-align: center; padding: 0; background: none; -moz-appearance: textfield; box-shadow: none !important; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.buy-row .btn { flex: 1; }
.perks { margin: 24px 0; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); display: grid; gap: 10px; font-size: 14.5px; }
.perks div { display: flex; gap: 10px; align-items: center; }
.perks svg { width: 20px; height: 20px; color: var(--accent); flex: none; }
.accordion details { border-top: 1px solid var(--line); }
.accordion details:last-child { border-bottom: 1px solid var(--line); }
.accordion summary { padding: 18px 0; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font-size: 22px; font-weight: 300; line-height: 1; }
.accordion details[open] summary::after { content: "–"; }
.accordion .content { padding-bottom: 18px; color: var(--ink-2); font-size: 15.5px; }
.specs { width: 100%; border-collapse: collapse; font-size: 15px; }
.specs th { text-align: start; font-weight: 500; color: var(--muted); width: 40%; padding: 6px 0; }
.specs td { padding: 6px 0; }
.preview-bar { background: #fff4d6; border: 1px solid #ecd9a0; color: #6b5510; padding: 12px 16px; border-radius: 10px; margin-top: 16px; font-size: 14px; }
@media (max-width: 860px) {
  .pdp { grid-template-columns: 1fr; }
  .gallery { position: static; grid-template-columns: 1fr; }
  .thumbs { flex-direction: row; order: 2; overflow-x: auto; }
  .thumbs button { width: 66px; flex: none; }
}
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(20, 17, 15, .92); display: none; align-items: center; justify-content: center; padding: 20px; cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 100%; max-width: 100%; object-fit: contain; border-radius: 8px; }

/* ---------- cart ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: start; padding-bottom: 80px; }
@media (max-width: 920px) { .cart-layout { grid-template-columns: 1fr; } }
.line { display: grid; grid-template-columns: 96px 1fr auto; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: start; }
.line-img { position: relative; aspect-ratio: 4/5; border-radius: 10px; overflow: hidden; background: var(--soft); }
.line-img img { width: 100%; height: 100%; object-fit: cover; }
.line-img .ph svg, .line-img .ph .ph-name, .line-img .ph .ph-brand { display: none; }
.line-img .ph::before { inset: 5px; }
.line-title { font-weight: 500; }
.line-meta { font-size: 14px; color: var(--muted); }
.line-actions { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.line-actions .qty { height: 38px; }
.line-actions .qty button { width: 32px; }
.line-price { text-align: end; font-weight: 600; white-space: nowrap; }
.drawer .line { grid-template-columns: 72px 1fr auto; padding: 14px 0; }
.summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: sticky; top: 100px; }
.summary h3 { font-size: 22px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 15px; }
.sum-row.total { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 16px; font-size: 18px; font-weight: 700; }
.sum-row.discount { color: var(--accent); }
.free-ship { background: var(--soft); border-radius: 12px; padding: 12px 14px; font-size: 14px; margin-bottom: 16px; }
.free-ship .bar { height: 6px; background: #fff; border-radius: 99px; margin-top: 8px; overflow: hidden; }
.free-ship .bar span { display: block; height: 100%; background: var(--accent); border-radius: 99px; transition: width .4s; }
.promo { display: flex; gap: 8px; margin-top: 16px; }
.promo input { min-height: 44px; text-transform: uppercase; }
.promo .btn { min-height: 44px; }
.pay-icons { display: flex; gap: 6px; justify-content: center; margin-top: 14px; flex-wrap: wrap; }
.pay-icons span { font-size: 11px; font-weight: 700; padding: 4px 8px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink-2); background: #fff; letter-spacing: .02em; }

/* ---------- checkout ---------- */
.checkout-head { border-bottom: 1px solid var(--line); background: var(--surface); }
.checkout-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.steps { display: flex; gap: 8px; font-size: 14px; color: var(--muted); align-items: center; }
.steps b { color: var(--ink); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 3vw, 28px); margin-bottom: 18px; }
.panel h2 { font-size: 22px; display: flex; align-items: center; gap: 10px; }
.panel h2 .num { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; font: 700 14px/28px var(--sans); text-align: center; }
.choices { display: grid; gap: 10px; }
.choice { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; transition: .15s; background: #fff; }
.choice:hover { border-color: var(--ink-2); }
.choice input { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; flex: none; }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent) inset; }
.choice .c-main { flex: 1; }
.choice .c-main b { display: block; font-weight: 600; }
.choice .c-main span { font-size: 14px; color: var(--muted); }
.choice .c-price { font-weight: 600; }
.address-fields[hidden] { display: none; }
.mini-lines .line { grid-template-columns: 56px 1fr auto; padding: 10px 0; }
.mini-lines .line-img { border-radius: 8px; }
.qty-badge { position: absolute; top: -6px; inset-inline-end: -6px; background: var(--muted); color: #fff; width: 20px; height: 20px; border-radius: 50%; font-size: 11px; font-weight: 700; display: grid; place-items: center; z-index: 2; }
.mini-lines .line-img { overflow: visible; }
.mini-lines .line-img > img, .mini-lines .line-img > .ph { border-radius: 8px; overflow: hidden; }

/* ---------- order / account / pages ---------- */
.narrow { max-width: 760px; margin: 0 auto; }
.success-mark { width: 64px; height: 64px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 18px; }
.success-mark svg { width: 32px; height: 32px; }
.status-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--soft); }
.status-chip.ok { background: #e2eedd; color: #3d6a3f; }
.status-chip.info { background: #e1e9f1; color: #34597a; }
.status-chip.warn { background: #faedd0; color: #7b5a12; }
.status-chip.muted { background: #ece8e3; color: #6d645c; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 600px) { .kv { grid-template-columns: 1fr; } }
.bank-box { background: var(--soft); border-radius: 12px; padding: 18px 20px; }
.bank-box dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 0; }
.bank-box dt { color: var(--muted); }
.bank-box dd { margin: 0; font-weight: 600; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th { text-align: start; font-size: 13px; font-weight: 600; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); }
.table td { padding: 14px 12px; border-bottom: 1px solid var(--line); }
.account-grid { display: grid; grid-template-columns: 240px 1fr; gap: 40px; padding-bottom: 80px; }
.account-nav a { display: block; padding: 11px 14px; border-radius: 10px; font-weight: 500; }
.account-nav a.active, .account-nav a:hover { background: var(--soft); color: var(--ink); }
@media (max-width: 760px) { .account-grid { grid-template-columns: 1fr; } }
.auth-card { max-width: 460px; margin: 48px auto 80px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: clamp(24px, 4vw, 40px); }
.prose { font-size: 17px; color: var(--ink-2); max-width: 720px; }
.prose h2, .prose h3 { color: var(--ink); margin-top: 1.4em; }
.prose a { color: var(--accent); text-decoration: underline; }
.prose table { border-collapse: collapse; width: 100%; margin: 1em 0; font-size: 15px; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: start; }
.prose th { color: var(--ink); }
.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.brand-card { display: flex; flex-direction: column; justify-content: space-between; min-height: 150px; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: .2s; }
.brand-card:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow); }
.brand-card h3 { font-size: 24px; margin: 0; }
.brand-card span { font-size: 14px; color: var(--muted); }

/* ---------- footer ---------- */
.footer { background: #2a2521; color: #d9d0c5; margin-top: 40px; padding: 64px 0 28px; font-size: 15px; }
.footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer h4 { color: #fff; font: 600 13px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer .logo { color: #fff; margin-bottom: 14px; }
.footer .logo small { color: #a89d91; }
.footer-bottom { border-top: 1px solid #423a34; margin-top: 48px; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: #a89d91; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* demo payment */
.paybox { max-width: 440px; margin: 60px auto; background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden; }
.paybox-head { background: #cc0066; color: #fff; padding: 22px 26px; }
.paybox-head b { font-size: 22px; }
.paybox-body { padding: 26px; }
.demo-note { font-size: 13px; background: #fff4d6; color: #6b5510; padding: 10px 12px; border-radius: 8px; margin-bottom: 18px; }

/* ---- Languages: switcher and right-to-left (Arabic) ---- */
.lang-switch { position: relative; }
.lang-switch summary { list-style: none; display: flex; align-items: center; gap: 5px; min-height: 42px; padding: 0 10px; border-radius: 999px; cursor: pointer; font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--ink-2); }
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary:hover, .lang-switch[open] summary { background: var(--soft); }
.lang-switch summary svg { width: 18px; height: 18px; }
.lang-switch ul { position: absolute; top: calc(100% + 6px); inset-inline-end: 0; z-index: 60; min-width: 160px; margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.lang-switch a { display: block; padding: 8px 12px; border-radius: 7px; font-size: 15px; }
.lang-switch a:hover { background: var(--soft); }
.lang-switch a[aria-current] { font-weight: 600; color: var(--accent); }

[dir="rtl"] { --serif: "Noto Naskh Arabic", "Fraunces", Georgia, serif; --sans: "IBM Plex Sans Arabic", "DM Sans", system-ui, "Segoe UI", sans-serif; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4 { letter-spacing: 0; }
[dir="rtl"] input[type="email"], [dir="rtl"] input[type="tel"] { direction: ltr; }
[dir="rtl"] .drawer.right { right: auto; left: 0; transform: translateX(-100%); }
[dir="rtl"] .drawer.left { left: auto; right: 0; transform: translateX(100%); }
[dir="rtl"] .drawer.open { transform: none; }

/* ---- Contact card ---- */
.contact-list { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; }
.contact-list dt { color: var(--muted); }
.contact-list dd { margin: 0; }
[dir="rtl"] .contact-list dd[dir="ltr"] { text-align: end; }
