/* ==========================================================================
   Zaraz Boutique - storefront design system
   Palette: cream, Turkish teal, antique gold, warm blush
   ========================================================================== */

:root {
  --cream: #fbf8f3;
  --cream-deep: #f4ede1;
  --cream-shade: #ece2d2;
  --brand: #0f6d7d;
  --brand-deep: #0a4d5a;
  --brand-soft: #2e8b99;
  --accent: #cfa93f;
  --accent-light: #e8d29a;
  --accent-deep: #8a6c1c;
  --blush: #e6a08a;
  --blush-soft: #f6e3db;
  --ink: #1f2a2c;
  --ink-soft: #55666a;
  --ink-faint: #66777b;
  --line: #e3dccd;
  --white: #ffffff;
  --success: #2f7a55;
  --success-soft: #e5f3ea;
  --warn: #b4761f;
  --warn-soft: #fdf1dd;
  --danger: #a8322f;
  --danger-soft: #fbe8e7;

  --font-display: 'Playfair Display', 'Times New Roman', serif;
  --font-body: 'Jost', 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container: 1240px;
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(10, 77, 90, 0.06);
  --shadow: 0 10px 30px rgba(10, 77, 90, 0.09);
  --shadow-lg: 0 24px 60px rgba(10, 77, 90, 0.16);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

body.no-scroll { overflow: hidden; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: var(--brand-deep);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

p { margin: 0 0 1rem; }
a { color: var(--brand); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--accent-deep); }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container-wide { max-width: 1440px; }
.section { padding: 72px 0; }
.section-tight { padding: 44px 0; }
.text-center { text-align: center; }
.muted { color: var(--ink-soft); }
.small { font-size: 0.875rem; }
.hidden { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ------------------------------ typography bits --------------------------- */

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-deep);
  font-weight: 500;
  margin-bottom: 10px;
  display: block;
}

.section-head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.section-head p { color: var(--ink-soft); margin: 0; }
.section-head.left { margin-left: 0; text-align: left; }

.title-rule {
  width: 64px; height: 2px; margin: 14px auto 0;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.section-head.left .title-rule { margin-left: 0; }

/* --------------------------------- buttons -------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 28px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
  background: transparent;
  color: inherit;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary { background: var(--brand); color: var(--cream); }
.btn-primary:hover:not(:disabled) { background: var(--brand-deep); color: var(--accent-light); transform: translateY(-2px); box-shadow: var(--shadow); }

.btn-gold { background: linear-gradient(135deg, var(--accent), var(--accent-deep)); color: var(--brand-deep); }
.btn-gold:hover:not(:disabled) { transform: translateY(-2px); box-shadow: var(--shadow); }

.btn-outline { border-color: var(--brand); color: var(--brand); background: transparent; }
.btn-outline:hover:not(:disabled) { background: var(--brand); color: var(--cream); }

.btn-ghost { border-color: var(--line); color: var(--ink-soft); }
.btn-ghost:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover:not(:disabled) { background: #8d2624; }

.btn-sm { padding: 8px 16px; font-size: 0.72rem; }
.btn-lg { padding: 16px 38px; font-size: 0.88rem; }
.btn-block { width: 100%; }

/* --------------------------------- header --------------------------------- */

.announce {
  background: var(--brand-deep); color: var(--accent-light);
  font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase;
  text-align: center; padding: 9px 16px;
}

.site-header {
  position: sticky; top: 0; z-index: 60;
  border-bottom: 1px solid var(--line);
}
/* The frosted background lives on a pseudo-element rather than the header
   itself: `backdrop-filter` on the header would make it the containing block
   for `position: fixed` descendants, trapping the mobile nav panel inside the
   header bar (so it could not span the screen or scroll). */
.site-header::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: rgba(251, 248, 243, 0.94);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.header-inner {
  display: flex; align-items: center; gap: 22px;
  min-height: var(--header-h);
  /* Above the nav backdrop (z-index 1) so the bar, brand and controls are never
     dimmed or blurred while the mobile menu is open. */
  position: relative; z-index: 2;
}

.brand { display: flex; flex-direction: column; line-height: 1; margin-right: auto; }
.brand-name {
  font-family: var(--font-display); font-style: italic; font-weight: 700;
  font-size: 1.7rem; color: var(--brand); letter-spacing: -0.02em;
}
.brand-tag { font-size: 0.6rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--accent-deep); margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 9px 14px; font-size: 0.86rem; font-weight: 400;
  color: var(--ink-soft); border-radius: var(--radius-sm); position: relative;
}
.nav a::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px;
  height: 1px; background: var(--accent); transform: scaleX(0);
  transition: transform 0.25s var(--ease);
}
.nav a:hover { color: var(--brand); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.nav a.active { color: var(--brand); font-weight: 500; }

.header-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%; border: none; background: transparent;
  color: var(--brand); cursor: pointer; transition: background 0.2s var(--ease);
}
.icon-btn:hover { background: var(--cream-deep); }
.icon-btn svg { width: 21px; height: 21px; }
.icon-btn .badge {
  position: absolute; top: 4px; right: 3px; min-width: 18px; height: 18px; padding: 0 4px;
  background: var(--brand); color: var(--cream); border-radius: 9px;
  font-size: 0.64rem; font-weight: 600; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-body);
}
.icon-btn .badge:empty, .icon-btn .badge[data-count="0"] { display: none; }

.nav-toggle { display: none; }
.nav-close { display: none; }
.nav-backdrop {
  /* Lives INSIDE .site-header so it shares the header's stacking context: the
     header's z-index:60 makes it a stacking context, so a sibling backdrop would
     paint over the whole header (menu included) and blur it. Within the header
     the order is backdrop(1) < header-inner(2), so the bar, brand and menu stay
     crisp above the dim layer. */
  position: fixed; inset: 0; z-index: 1;
  background: rgba(31, 42, 44, 0.5);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  opacity: 0; pointer-events: none; transition: opacity 0.3s var(--ease);
}
.nav-backdrop.open { opacity: 1; pointer-events: auto; }

/* --------------------------------- hero ----------------------------------- */

.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(115deg, var(--brand-deep) 0%, var(--brand) 46%, var(--brand-soft) 100%);
  color: var(--cream);
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 82% 22%, rgba(207, 169, 63, 0.34), transparent 46%),
    radial-gradient(circle at 12% 88%, rgba(230, 160, 138, 0.22), transparent 52%);
}
.hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center;
  /* Vertical padding only. The shorthand would reset .container's side padding
     to 0 and push the copy flush against the viewport edge. */
  padding-block: 78px 84px;
}
.hero-copy h1 { color: var(--cream); margin-bottom: 18px; }
.hero-copy h1 em { font-style: italic; color: var(--accent-light); }
.hero-copy p { color: rgba(251, 248, 243, 0.86); font-size: 1.06rem; max-width: 480px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .btn-outline { border-color: rgba(251, 248, 243, 0.55); color: var(--cream); }
.hero .btn-outline:hover { background: var(--cream); color: var(--brand); border-color: var(--cream); }

.hero-stats { display: flex; gap: 34px; margin-top: 42px; flex-wrap: wrap; }
.hero-stat strong { display: block; font-family: var(--font-display); font-size: 1.7rem; color: var(--accent-light); }
.hero-stat span { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(251, 248, 243, 0.72); }

.hero-visual { position: relative; }
.hero-visual img {
  /* height:auto is required: the img carries a height="1125" attribute, whose
     presentational hint is a definite height that would win over aspect-ratio
     and leave the banner 1125px tall on a phone. */
  width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
}
.hero-badge {
  position: absolute; left: -18px; bottom: 34px;
  background: var(--cream); color: var(--brand);
  padding: 16px 22px; border-radius: var(--radius);
  box-shadow: var(--shadow); border-left: 3px solid var(--accent);
}
.hero-badge strong { display: block; font-family: var(--font-display); font-size: 1.35rem; }
.hero-badge span { font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); }

/* ------------------------------- value strip ------------------------------ */

.value-strip { background: var(--cream-deep); border-block: 1px solid var(--line); }
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 28px 0; }
.value-item { display: flex; gap: 14px; align-items: center; }
.value-item svg { width: 26px; height: 26px; color: var(--accent-deep); flex-shrink: 0; }
.value-item strong { display: block; font-size: 0.9rem; color: var(--brand-deep); font-weight: 500; }
.value-item span { font-size: 0.78rem; color: var(--ink-faint); }

/* ------------------------------ category cards ---------------------------- */

.category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 22px; }
.category-card {
  position: relative; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 3 / 4; display: block; box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.category-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.category-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.category-card:hover img { transform: scale(1.07); }
.category-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10, 77, 90, 0.82) 8%, rgba(10, 77, 90, 0.12) 62%);
}
.category-card-body { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 20px 18px; color: var(--cream); }
.category-card-body h3 { color: var(--cream); font-size: 1.15rem; margin-bottom: 2px; }
.category-card-body span { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-light); }

/* ------------------------------ product cards ----------------------------- */

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 28px; }
.product-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
  animation: rise 0.5s var(--ease) both;
}
.product-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: var(--accent-light); }

@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

.product-media { position: relative; overflow: hidden; background: var(--cream-deep); aspect-ratio: 4 / 5; display: block; }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.65s var(--ease); }
.product-card:hover .product-media img { transform: scale(1.06); }

.product-tags { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.tag {
  font-size: 0.62rem; letter-spacing: 0.13em; text-transform: uppercase; font-weight: 500;
  padding: 5px 10px; border-radius: 3px; background: var(--brand); color: var(--cream);
}
.tag-gold { background: var(--accent); color: var(--brand-deep); }
.tag-rose { background: var(--blush); color: var(--brand-deep); }
.tag-muted { background: var(--ink-faint); color: #fff; }

.wish-btn {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255, 255, 255, 0.9); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(-6px); transition: all 0.3s var(--ease);
}
.product-card:hover .wish-btn { opacity: 1; transform: translateY(0); }
.wish-btn svg { width: 17px; height: 17px; }
.wish-btn.on { color: var(--danger); }

.quick-add {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2;
  opacity: 0; transform: translateY(10px); transition: all 0.3s var(--ease);
}
.product-card:hover .quick-add { opacity: 1; transform: translateY(0); }

.product-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.product-cat { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-deep); }
.product-name { font-family: var(--font-display); font-size: 1.03rem; line-height: 1.35; color: var(--brand-deep); margin: 0; }
.product-name a { color: inherit; }
.product-rating { display: flex; align-items: center; gap: 6px; font-size: 0.76rem; color: var(--ink-faint); }
.stars { color: var(--accent); letter-spacing: 1px; }
.product-price { display: flex; align-items: baseline; gap: 9px; margin-top: auto; padding-top: 6px; }
.price-now { font-size: 1.16rem; font-weight: 500; color: var(--brand); }
.price-was { font-size: 0.85rem; color: var(--ink-faint); text-decoration: line-through; }
.price-off { font-size: 0.72rem; color: var(--success); font-weight: 500; }
.stock-line { font-size: 0.76rem; }
.stock-in { color: var(--success); }
.stock-low { color: var(--warn); }
.stock-out { color: var(--danger); }

/* ------------------------------- shop layout ------------------------------ */

.shop-layout { display: grid; grid-template-columns: 250px 1fr; gap: 36px; align-items: start; }
.filters {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; position: sticky; top: calc(var(--header-h) + 20px);
}
.filter-group + .filter-group { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.filter-group h4 { font-family: var(--font-body); font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 12px; }
.filter-list li { margin-bottom: 7px; }
.filter-list label { display: flex; align-items: center; gap: 9px; font-size: 0.88rem; color: var(--ink-soft); cursor: pointer; }
.filter-list input[type="checkbox"], .filter-list input[type="radio"] { accent-color: var(--brand); width: 15px; height: 15px; }
.filter-list label:hover { color: var(--brand); }
.filter-list .count { margin-left: auto; font-size: 0.74rem; color: var(--ink-faint); }

.shop-toolbar {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding-bottom: 20px; margin-bottom: 26px; border-bottom: 1px solid var(--line);
}
.shop-toolbar .result-count { font-size: 0.86rem; color: var(--ink-soft); margin-right: auto; }
.select {
  appearance: none; padding: 10px 36px 10px 14px; font-family: var(--font-body); font-size: 0.84rem;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); color: var(--ink);
  cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f6d7d' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center; background-size: 15px;
}
.select:focus { outline: 2px solid var(--accent-light); outline-offset: 1px; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--white);
  font-size: 0.8rem; color: var(--ink-soft); cursor: pointer; transition: all 0.2s var(--ease);
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.active { background: var(--brand); border-color: var(--brand); color: var(--cream); }
.chip .sub { color: var(--accent-light); }
.chip.active .sub { color: var(--accent-light); }

/* --------------------------------- forms ---------------------------------- */

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 7px; }
.field .req { color: var(--danger); }
.input, .textarea, .select-full {
  width: 100%; padding: 12px 14px; font-family: var(--font-body); font-size: 0.94rem;
  color: var(--ink); background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.input:focus, .textarea:focus, .select-full:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(207, 169, 63, 0.16);
}
.input::placeholder, .textarea::placeholder { color: var(--ink-faint); }
.textarea { min-height: 118px; resize: vertical; }
.field-error { color: var(--danger); font-size: 0.78rem; margin-top: 5px; display: none; }
.field.invalid .input, .field.invalid .textarea, .field.invalid .select-full { border-color: var(--danger); }
.field.invalid .field-error { display: block; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.check { display: flex; align-items: flex-start; gap: 10px; font-size: 0.88rem; color: var(--ink-soft); cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--brand); width: 16px; height: 16px; }

/* --------------------------------- panels --------------------------------- */

.panel {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm);
}
.panel + .panel { margin-top: 22px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.panel-head h3 { margin: 0; }

.auth-wrap { max-width: 460px; margin: 0 auto; padding: 56px 0; }
.auth-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 38px; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 1.85rem; margin-bottom: 6px; }
.auth-card > p { color: var(--ink-soft); font-size: 0.92rem; }
.auth-switch { text-align: center; margin-top: 20px; font-size: 0.9rem; color: var(--ink-soft); }

/* ------------------------------- product page ----------------------------- */

.product-detail { display: grid; grid-template-columns: 1.05fr 1fr; gap: 52px; align-items: start; }
.gallery { display: flex; flex-direction: column; gap: 14px; }
.gallery-main {
  border-radius: var(--radius); overflow: hidden; background: var(--cream-deep);
  aspect-ratio: 4 / 5; box-shadow: var(--shadow-sm);
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 12px; flex-wrap: wrap; }
.gallery-thumbs button {
  width: 78px; height: 96px; padding: 0; border: 2px solid var(--line); border-radius: var(--radius-sm);
  overflow: hidden; cursor: pointer; background: var(--cream-deep); transition: border-color 0.2s var(--ease);
}
.gallery-thumbs button.active { border-color: var(--accent); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.detail-price { display: flex; align-items: baseline; gap: 12px; margin: 16px 0; }
.detail-price .price-now { font-size: 1.85rem; }
.detail-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; margin: 20px 0; padding: 20px 0; border-block: 1px solid var(--line); font-size: 0.88rem; }
.detail-meta dt { color: var(--ink-faint); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 2px; }
.detail-meta dd { margin: 0; color: var(--ink); }

.option-group { margin-bottom: 20px; }
.option-group > span { display: block; font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 10px; }
.option-row { display: flex; gap: 10px; flex-wrap: wrap; }
.option {
  padding: 9px 18px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--white); font-size: 0.86rem; color: var(--ink-soft); cursor: pointer;
  transition: all 0.2s var(--ease);
}
.option:hover { border-color: var(--brand); color: var(--brand); }
.option.active { background: var(--brand); border-color: var(--brand); color: var(--cream); }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); overflow: hidden; }
.qty button {
  width: 42px; height: 44px; border: none; background: transparent; cursor: pointer;
  font-size: 1.1rem; color: var(--brand); transition: background 0.2s var(--ease);
}
.qty button:hover:not(:disabled) { background: var(--cream-deep); }
.qty button:disabled { color: var(--ink-faint); cursor: not-allowed; }
.qty input {
  width: 52px; height: 44px; border: none; text-align: center; font-family: var(--font-body);
  font-size: 0.96rem; color: var(--ink); background: transparent;
}
.qty input:focus { outline: none; }

.buy-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 26px; }
.detail-notes { margin-top: 24px; display: grid; gap: 10px; }
.detail-note { display: flex; gap: 10px; align-items: center; font-size: 0.85rem; color: var(--ink-soft); }
.detail-note svg { width: 17px; height: 17px; color: var(--accent-deep); flex-shrink: 0; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 24px; flex-wrap: wrap; }
.tab {
  padding: 12px 20px; border: none; background: transparent; cursor: pointer;
  font-family: var(--font-body); font-size: 0.84rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-faint); border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tab.active { color: var(--brand); border-bottom-color: var(--accent); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ---------------------------------- cart ---------------------------------- */

.cart-layout { display: grid; grid-template-columns: 1fr 350px; gap: 34px; align-items: start; }
.cart-line {
  display: grid; grid-template-columns: 96px 1fr auto; gap: 18px; padding: 20px 0;
  border-bottom: 1px solid var(--line); align-items: center;
}
.cart-line:first-child { padding-top: 0; }
.cart-line img { width: 96px; height: 120px; object-fit: cover; border-radius: var(--radius-sm); }
.cart-line-name { font-family: var(--font-display); font-size: 1.05rem; color: var(--brand-deep); margin-bottom: 4px; }
.cart-line-name a { color: inherit; }
.cart-line-variant { font-size: 0.8rem; color: var(--ink-faint); margin-bottom: 10px; }
.cart-line-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.link-btn { background: none; border: none; padding: 0; font-family: var(--font-body); font-size: 0.8rem; color: var(--ink-faint); cursor: pointer; text-decoration: underline; }
.link-btn:hover { color: var(--danger); }
.cart-line-total { text-align: right; font-size: 1.05rem; font-weight: 500; color: var(--brand); white-space: nowrap; }

.summary { position: sticky; top: calc(var(--header-h) + 20px); }
.summary-row { display: flex; justify-content: space-between; gap: 12px; font-size: 0.92rem; color: var(--ink-soft); padding: 9px 0; }
.summary-row.total { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 16px; font-size: 1.18rem; color: var(--brand-deep); font-weight: 500; }
.summary-row .free { color: var(--success); }
.summary-note { font-size: 0.78rem; color: var(--ink-faint); margin-top: 12px; }

/* -------------------------------- checkout -------------------------------- */

.checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 34px; align-items: start; }
.address-list { display: grid; gap: 14px; }
.address-card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: var(--white);
  cursor: pointer; transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease); position: relative;
}
.address-card:hover { border-color: var(--accent-light); }
.address-card.selected { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(15, 109, 125, 0.1); }
.address-card .addr-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.address-card strong { color: var(--brand-deep); }
.address-card .default-pill { font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; background: var(--accent); color: var(--brand-deep); padding: 3px 8px; border-radius: 3px; }
.address-card p { margin: 0; font-size: 0.88rem; color: var(--ink-soft); }
.address-card .addr-actions { margin-top: 12px; display: flex; gap: 12px; }

.pay-methods { display: grid; gap: 12px; }
.pay-method {
  display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); cursor: pointer;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.pay-method:hover { border-color: var(--accent-light); }
.pay-method.selected { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(15, 109, 125, 0.1); }
.pay-method input { margin-top: 4px; accent-color: var(--brand); }
.pay-method strong { display: block; color: var(--brand-deep); font-weight: 500; }
.pay-method span { font-size: 0.84rem; color: var(--ink-soft); }

.steps { display: flex; align-items: center; gap: 10px; margin-bottom: 30px; flex-wrap: wrap; }
.step { display: flex; align-items: center; gap: 9px; font-size: 0.82rem; color: var(--ink-faint); }
.step-num {
  width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; font-size: 0.76rem;
}
.step.active { color: var(--brand); }
.step.active .step-num { background: var(--brand); border-color: var(--brand); color: var(--cream); }
.step-sep { width: 30px; height: 1px; background: var(--line); }

/* ------------------------------ confirmation ------------------------------ */

.confirm-hero { text-align: center; padding: 48px 0 12px; }
.confirm-icon {
  width: 78px; height: 78px; margin: 0 auto 22px; border-radius: 50%;
  background: var(--success-soft); color: var(--success);
  display: flex; align-items: center; justify-content: center;
}
.confirm-icon svg { width: 38px; height: 38px; }
.order-ref {
  display: inline-block; font-family: var(--font-body); letter-spacing: 0.12em;
  background: var(--cream-deep); border: 1px dashed var(--accent); color: var(--brand);
  padding: 9px 18px; border-radius: var(--radius-sm); font-size: 0.9rem; margin: 8px 0 22px;
}

.timeline { display: grid; gap: 0; }
.tl-item { display: grid; grid-template-columns: 26px 1fr; gap: 14px; padding-bottom: 22px; position: relative; }
.tl-item::before { content: ''; position: absolute; left: 12px; top: 26px; bottom: 0; width: 1px; background: var(--line); }
.tl-item:last-child { padding-bottom: 0; }
.tl-item:last-child::before { display: none; }
.tl-dot { width: 25px; height: 25px; border-radius: 50%; border: 2px solid var(--line); background: var(--white); display: flex; align-items: center; justify-content: center; }
.tl-item.done .tl-dot { background: var(--brand); border-color: var(--brand); color: var(--cream); }
.tl-item.done .tl-dot svg { width: 13px; height: 13px; }
.tl-status { font-weight: 500; color: var(--brand-deep); }
.tl-time { font-size: 0.78rem; color: var(--ink-faint); }
.tl-note { font-size: 0.85rem; color: var(--ink-soft); }

/* --------------------------------- status --------------------------------- */

.status {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px;
  border-radius: 999px; font-size: 0.74rem; font-weight: 500; letter-spacing: 0.04em;
  background: var(--cream-deep); color: var(--ink-soft); white-space: nowrap;
}
.status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-Pending { background: var(--warn-soft); color: var(--warn); }
.status-Confirmed { background: #e8eefb; color: #3558a8; }
.status-Processing { background: #eae4fb; color: #5b3fa8; }
.status-Shipped, .status-Out-for-Delivery { background: #e2f0fb; color: #1f6c9c; }
.status-Delivered { background: var(--success-soft); color: var(--success); }
.status-Cancelled, .status-Returned { background: var(--danger-soft); color: var(--danger); }
.status-Paid { background: var(--success-soft); color: var(--success); }
.status-Failed { background: var(--danger-soft); color: var(--danger); }
.status-Refunded { background: #eee7fb; color: #6b46b8; }

/* --------------------------------- tables --------------------------------- */

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
table { width: 100%; border-collapse: collapse; font-size: 0.88rem; min-width: 640px; }
thead th {
  text-align: left; padding: 14px 16px; font-family: var(--font-body); font-weight: 500;
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint);
  background: var(--cream-deep); border-bottom: 1px solid var(--line); white-space: nowrap;
}
tbody td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: rgba(244, 237, 225, 0.4); }
.table-thumb { width: 46px; height: 58px; object-fit: cover; border-radius: var(--radius-sm); }
.table-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* -------------------------------- pagination ------------------------------ */

.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
.pagination button {
  min-width: 40px; height: 40px; padding: 0 12px; border: 1px solid var(--line);
  background: var(--white); border-radius: var(--radius-sm); cursor: pointer;
  font-family: var(--font-body); font-size: 0.88rem; color: var(--ink-soft);
  transition: all 0.2s var(--ease);
}
.pagination button:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); }
.pagination button.active { background: var(--brand); border-color: var(--brand); color: var(--cream); }
.pagination button:disabled { opacity: 0.4; cursor: not-allowed; }

/* --------------------------------- states --------------------------------- */

.empty-state { text-align: center; padding: 66px 24px; }
.empty-state svg { width: 54px; height: 54px; color: var(--line); margin-bottom: 18px; }
.empty-state h3 { margin-bottom: 8px; }
.empty-state p { color: var(--ink-soft); margin-bottom: 22px; }

.skeleton { background: linear-gradient(90deg, var(--cream-deep) 25%, var(--cream-shade) 50%, var(--cream-deep) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--radius-sm); }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.skeleton-card { height: 340px; }
.skeleton-line { height: 13px; margin-bottom: 9px; }

.spinner {
  width: 18px; height: 18px; border: 2px solid rgba(251, 248, 243, 0.4);
  border-top-color: var(--cream); border-radius: 50%; animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.spinner-dark { border-color: rgba(15, 109, 125, 0.25); border-top-color: var(--brand); }

/* --------------------------------- toasts --------------------------------- */

.toast-stack { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: flex; flex-direction: column; gap: 10px; max-width: 340px; }
.toast {
  background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--brand);
  border-radius: var(--radius-sm); padding: 14px 18px; box-shadow: var(--shadow);
  font-size: 0.88rem; color: var(--ink); animation: slideIn 0.3s var(--ease);
}
.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }
.toast.info { border-left-color: var(--accent); }
@keyframes slideIn { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }

/* -------------------------------- newsletter ------------------------------ */

.newsletter {
  background: linear-gradient(115deg, var(--brand-deep), var(--brand-soft));
  color: var(--cream); border-radius: var(--radius-lg); padding: 52px 44px;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 34px; align-items: center;
}
.newsletter h2 { color: var(--cream); margin-bottom: 8px; }
.newsletter p { color: rgba(251, 248, 243, 0.82); margin: 0; }
.newsletter-form { display: flex; gap: 10px; }
.newsletter-form .input { background: rgba(251, 248, 243, 0.95); border-color: transparent; }
.newsletter-form .btn { background: var(--accent); color: var(--brand-deep); }

/* --------------------------------- footer --------------------------------- */

.site-footer { background: var(--brand-deep); color: rgba(251, 248, 243, 0.74); margin-top: 70px; padding-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 36px; padding-bottom: 44px; }
.site-footer h4 { color: var(--cream); font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer .brand-name { color: var(--accent-light); }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: rgba(251, 248, 243, 0.74); font-size: 0.9rem; }
.site-footer a:hover { color: var(--accent-light); }
.footer-about p { font-size: 0.9rem; margin: 16px 0; max-width: 320px; }
.socials { display: flex; gap: 10px; }
.socials a {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(251, 248, 243, 0.24);
  display: flex; align-items: center; justify-content: center; transition: all 0.25s var(--ease);
}
.socials a:hover { background: var(--accent); border-color: var(--accent); color: var(--brand-deep); }
.socials svg { width: 17px; height: 17px; }
.footer-bottom {
  border-top: 1px solid rgba(251, 248, 243, 0.14); padding: 22px 0;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 0.82rem;
}

/* --------------------------------- drawer --------------------------------- */

.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(31, 42, 44, 0.5); backdrop-filter: blur(3px);
  opacity: 0; pointer-events: none; transition: opacity 0.3s var(--ease); z-index: 90;
}
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 92vw); z-index: 100;
  background: var(--cream); box-shadow: var(--shadow-lg); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform 0.36s var(--ease);
}
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { margin: 0; }
.drawer-body { flex: 1; overflow-y: auto; padding: 22px 24px; }
.drawer-foot { padding: 22px 24px; border-top: 1px solid var(--line); background: var(--white); }
.drawer-line { display: grid; grid-template-columns: 74px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.drawer-line img { width: 74px; height: 92px; object-fit: cover; border-radius: var(--radius-sm); }

/* -------------------------------- utilities ------------------------------- */

.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 0.8rem; color: var(--ink-faint); padding: 22px 0; flex-wrap: wrap; }
.breadcrumb a { color: var(--ink-faint); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb .sep { opacity: 0.5; }

.alert { padding: 14px 18px; border-radius: var(--radius-sm); font-size: 0.88rem; margin-bottom: 18px; border: 1px solid transparent; }
.alert-error { background: var(--danger-soft); color: var(--danger); border-color: rgba(168, 50, 47, 0.2); }
.alert-success { background: var(--success-soft); color: var(--success); border-color: rgba(47, 122, 85, 0.2); }
.alert-info { background: var(--cream-deep); color: var(--ink-soft); border-color: var(--line); }

.split { display: grid; grid-template-columns: 220px 1fr; gap: 34px; align-items: start; }
/* Two-column variants. The ratio lives here (not in inline styles) so the
   breakpoints below can collapse them; a fixed track in an inline style would
   win over the media query and force horizontal scrolling on phones. */
.split-sidebar { grid-template-columns: minmax(0, 1fr) 380px; }
.split-even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.product-grid-fit { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.account-nav { display: grid; gap: 4px; }
.account-nav button {
  text-align: left; padding: 12px 16px; border: none; background: transparent; cursor: pointer;
  font-family: var(--font-body); font-size: 0.92rem; color: var(--ink-soft); border-radius: var(--radius-sm);
  border-left: 2px solid transparent; transition: all 0.2s var(--ease);
}
.account-nav button:hover { background: var(--cream-deep); color: var(--brand); }
.account-nav button.active { background: var(--cream-deep); color: var(--brand); border-left-color: var(--accent); font-weight: 500; }

.order-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); margin-bottom: 16px; overflow: hidden; }
.order-card-head { display: flex; align-items: center; gap: 14px; padding: 16px 20px; background: var(--cream-deep); flex-wrap: wrap; }
.order-card-head .order-no { font-family: var(--font-body); font-weight: 500; color: var(--brand-deep); letter-spacing: 0.04em; }
.order-card-head .spacer { margin-left: auto; }
.order-card-body { padding: 18px 20px; }
.order-thumbs { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.order-thumbs img { width: 58px; height: 72px; object-fit: cover; border-radius: var(--radius-sm); }
.order-card-foot { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid var(--line); }

@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; padding-block: 54px 62px; }
  .hero-visual { max-width: 460px; }
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .shop-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .product-detail { grid-template-columns: 1fr; gap: 34px; }
  .split { grid-template-columns: 1fr; }
  .split-sidebar, .split-even { grid-template-columns: minmax(0, 1fr); }
  .newsletter { grid-template-columns: 1fr; padding: 38px 26px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav {
    position: fixed; top: 0; left: 0; bottom: 0; width: min(300px, 84vw); z-index: 100;
    background: var(--cream); flex-direction: column; align-items: stretch; gap: 0;
    /* Links start below the header row so they never sit behind the brand or the
       header controls; the panel background itself still covers the header. */
    padding: calc(var(--header-h) + 74px) 22px 26px; box-shadow: var(--shadow-lg);
    overflow-y: auto; overscroll-behavior: contain;
    /* Keeps the off-screen panel out of the tab order once it has slid away. */
    visibility: hidden;
    transition: transform 0.34s var(--ease), visibility 0s linear 0.34s;
  }
  .nav.open { transform: translateX(0); visibility: visible; transition: transform 0.34s var(--ease), visibility 0s; }
  .nav a { padding: 14px 10px; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav a::after { display: none; }
  .nav-toggle { display: inline-flex; order: -1; }
  .nav-close {
    display: inline-flex; position: absolute; top: calc(var(--header-h) + 18px); right: 16px;
  }
  .brand-name { font-size: 1.45rem; }
  .brand-tag { display: none; }
  .section { padding: 52px 0; }
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .detail-meta { grid-template-columns: 1fr; }
  .cart-line { grid-template-columns: 78px 1fr; }
  .cart-line img { width: 78px; height: 98px; }
  .cart-line-total { grid-column: 2; text-align: left; }
  .newsletter-form { flex-direction: column; }
  .toast-stack { left: 16px; right: 16px; max-width: none; }
}

@media (max-width: 560px) {
  .value-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 300px; margin-inline: auto; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .product-body { padding: 13px 13px 15px; }
  .product-name { font-size: 0.94rem; }
  .price-now { font-size: 1rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .quick-add, .wish-btn { opacity: 1; transform: none; }
  .quick-add { position: static; padding: 0 13px 15px; }
  .quick-add .btn { width: 100%; }
  .btn { padding: 12px 20px; }
  .panel, .auth-card { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
