/* =========================================================
   KHIFA — Premium Home & Lifestyle Store
   ========================================================= */

@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,700&family=Outfit:wght@300;400;500;600;700&display=swap");

:root {
  --ink: #14201c;
  --ink-soft: #3d4f47;
  --muted: #6b7c74;

  --paper: #f3f6f4;
  --paper-2: #e7eee9;
  --surface: #ffffff;

  --forest: #1a4d3e;
  --forest-deep: #0f3329;

  --sage: #5c8f78;
  --mint: #a8d5c0;

  --brass: #b8956c;
  --brass-light: #d4b896;

  --coral: #c45c48;

  --green-2: #256b56;
  --gold-dark: #a07d52;
  --pink-light: #fde8e4;
  --mint-light: #d5ebe0;
  --green-light: #1f5c4a;
  --green-alt: #3a6b4f;

  --bg-top: #eef3f0;
  --bg-bottom: #e8efe9;

  --border: rgba(20, 32, 28, 0.1);
  --line: rgba(20, 32, 28, 0.1);
  --shadow: 0 12px 40px rgba(15, 51, 41, 0.12);

  --radius: 14px;
  --radius-sm: 10px;
  --nav-h: 72px;
  --topbar-h: 36px;
  --sidebar-w: 260px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Outfit", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(168, 213, 192, 0.35), transparent 50%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(184, 149, 108, 0.18), transparent 45%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--paper) 40%, var(--bg-bottom) 100%);
  min-height: 100vh;
  line-height: 1.55;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
ul { list-style: none; margin: 0; padding: 0; }

.container {
  width: min(1220px, calc(100% - 2rem));
  margin-inline: auto;
}

/* —— Top bar —— */
.topbar {
  height: var(--topbar-h);
  background: var(--forest-deep);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: nowrap;
  overflow: hidden;
}
.topbar a { color: var(--brass-light); }
.topbar__left,
.topbar__right {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* —— Header / Nav —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(243, 246, 244, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  height: var(--nav-h);
}
.site-header .container {
  height: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.25rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex-shrink: 0;
}
.logo__img {
  height: 52px;
  width: auto;
  max-width: min(220px, 52vw);
  object-fit: contain;
  display: block;
}
.logo--footer .logo__img {
  height: 64px;
}
.logo__mark {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--forest);
  letter-spacing: -0.02em;
}
.logo__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brass);
  display: inline-block;
  margin-left: 2px;
  transform: translateY(-2px);
}

.header-search {
  display: flex;
  align-items: stretch;
  max-width: 480px;
  width: 100%;
  margin-inline: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(15, 51, 41, 0.04);
  min-width: 0;
}
.header-search input {
  flex: 1;
  border: 0;
  outline: 0;
  padding: 0.7rem 1.1rem;
  background: transparent;
  min-width: 0;
}
.header-search button {
  border: 0;
  background: var(--forest);
  color: #fff;
  padding: 0 1.25rem;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s var(--ease);
  flex-shrink: 0;
}
.header-search button:hover { background: var(--forest-deep); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}
.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.9rem;
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
  white-space: nowrap;
}
.icon-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--coral);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* Category strip — overflow fixed + subcategory dropdowns */
.cat-strip {
  background: var(--forest);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 95;
  overflow: visible;
}
.cat-strip__inner {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  min-height: 48px;
  height: auto;
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: thin;
  scrollbar-color: var(--sage) transparent;
  -webkit-overflow-scrolling: touch;
  padding: 0.15rem 0;
}
.cat-strip__inner::-webkit-scrollbar { height: 4px; }
.cat-strip__inner::-webkit-scrollbar-thumb {
  background: var(--sage);
  border-radius: 4px;
}
[data-top-cats] {
  display: contents;
}
.cat-strip > .container > a,
.cat-strip__label {
  flex: 0 0 auto;
  padding: 0.55rem 1rem;
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
  border-radius: 8px;
  transition: background 0.2s;
}
.cat-strip > .container > a:hover { background: rgba(255, 255, 255, 0.12); }
.cat-strip__label {
  color: var(--brass-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.72rem;
}

/* Nav subcategory dropdown */
.nav-drop {
  position: relative;
  flex: 0 0 auto;
}
.nav-drop__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 1rem;
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
  border-radius: 8px;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}
.nav-drop__btn:hover,
.nav-drop.is-open .nav-drop__btn,
.nav-drop:hover .nav-drop__btn {
  background: rgba(255, 255, 255, 0.12);
}
.nav-drop__caret {
  font-size: 0.7rem;
  opacity: 0.85;
  transition: transform 0.2s;
}
.nav-drop.is-open .nav-drop__caret,
.nav-drop:hover .nav-drop__caret {
  transform: rotate(180deg);
}
.nav-drop__menu {
  position: fixed;
  top: 0;
  left: 0;
  min-width: 280px;
  max-width: min(340px, 90vw);
  background: var(--surface);
  color: var(--ink);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(15, 51, 41, 0.22);
  border: 1px solid var(--border);
  padding: 0.4rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  z-index: 300;
  max-height: min(70vh, 480px);
  overflow-y: auto;
}
.nav-drop:hover .nav-drop__menu,
.nav-drop:focus-within .nav-drop__menu,
.nav-drop.is-open .nav-drop__menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.nav-drop__link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-soft);
  white-space: normal;
  line-height: 1.35;
  transition: background 0.15s, color 0.15s;
}
.nav-drop__thumb {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--paper-2);
}
.nav-drop__link:hover {
  background: var(--mint-light);
  color: var(--forest);
}
.nav-drop__link--all {
  color: var(--forest);
  font-weight: 600;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0.25rem;
  border-radius: 8px 8px 0 0;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  border: 0;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s, background 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: linear-gradient(135deg, var(--forest) 0%, var(--green-2) 100%);
  color: #fff;
  box-shadow: 0 8px 24px rgba(26, 77, 62, 0.3);
}
.btn--primary:hover { box-shadow: 0 12px 28px rgba(26, 77, 62, 0.4); }
.btn--ghost {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  color: #fff;
}
.btn--outline {
  background: var(--surface);
  border: 1.5px solid var(--line);
  color: var(--forest);
}
.btn--sm {
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
  width: 100%;
}
.btn--brass {
  background: linear-gradient(135deg, var(--brass) 0%, var(--gold-dark) 100%);
  color: #fff;
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: min(78vh, 640px);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-color: var(--forest-deep);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1.04);
  animation: heroZoom 18s var(--ease) infinite alternate;
}
@keyframes heroZoom {
  from { transform: scale(1.04); }
  to { transform: scale(1.1); }
}
.hero__content {
  padding: 4.5rem 0 3.5rem;
  color: #fff;
  max-width: 560px;
}
.hero__brand {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.2rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  animation: fadeUp 0.8s var(--ease) both;
}
.hero__brand span { color: var(--brass-light); }
.hero p {
  font-size: 1.1rem;
  opacity: 0.92;
  margin: 0 0 1.75rem;
  max-width: 38ch;
  font-weight: 300;
  animation: fadeUp 0.8s 0.12s var(--ease) both;
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: fadeUp 0.8s 0.22s var(--ease) both;
}
.hero__subs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.5rem;
  max-width: 640px;
  animation: fadeUp 0.8s 0.32s var(--ease) both;
}
.hero-sub {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem 0.35rem 0.35rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 500;
  backdrop-filter: blur(8px);
  transition: background 0.2s, transform 0.2s var(--ease), border-color 0.2s;
}
.hero-sub:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(184, 149, 108, 0.55);
  transform: translateY(-2px);
}
.hero-sub img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* —— Sections —— */
.section {
  padding: 3.5rem 0;
}
.section__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}
.section__head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0;
  letter-spacing: -0.02em;
  color: var(--forest-deep);
}
.section__head p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  max-width: 42ch;
}
.section__link {
  color: var(--forest);
  font-weight: 600;
  white-space: nowrap;
}
.section__link:hover { color: var(--brass); }

/* Category tiles */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}
.cat-tile {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  min-height: 220px;
  box-shadow: var(--shadow);
  isolation: isolate;
}
.cat-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.cat-tile:hover img { transform: scale(1.08); }
.cat-tile__overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.25rem;
  background: linear-gradient(transparent, rgba(15, 51, 41, 0.92));
  color: #fff;
}
.cat-tile__overlay h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
}
.cat-tile__overlay p {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  opacity: 0.8;
}
.cat-tile__subs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.65rem;
}
.cat-tile__chip {
  font-size: 0.68rem;
  font-weight: 500;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* —— Layout with sidebar —— */
.shop-layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  gap: 1.5rem;
  padding: 2rem 0 3.5rem;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 56px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: 0 4px 20px rgba(15, 51, 41, 0.05);
  max-height: calc(100vh - var(--nav-h) - 80px);
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.sidebar h3 {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  flex-shrink: 0;
}
.side-cats {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
  flex: 1;
  padding-right: 0.25rem;
  scrollbar-width: thin;
  scrollbar-color: var(--mint) transparent;
}
.side-cats::-webkit-scrollbar { width: 5px; }
.side-cats::-webkit-scrollbar-thumb {
  background: var(--mint);
  border-radius: 4px;
}
.side-cat {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.92rem;
  transition: background 0.2s, color 0.2s;
  min-width: 0;
}
.side-cat span:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.side-cat:hover,
.side-cat.is-active {
  background: var(--paper-2);
  color: var(--forest);
}
.side-cat__icon { font-size: 1.1rem; }
.side-cat__count {
  font-size: 0.75rem;
  background: var(--paper);
  color: var(--muted);
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  flex-shrink: 0;
}
.side-cat-row {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}
.side-cat-row .side-cat {
  flex: 1;
  min-width: 0;
}
.side-toggle {
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.75rem;
  transition: transform 0.2s, background 0.2s, color 0.2s;
}
.side-toggle:hover {
  background: var(--paper-2);
  color: var(--forest);
}
.side-group.is-open .side-toggle {
  transform: rotate(180deg);
  color: var(--forest);
}

.shop-main { min-width: 0; }

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.toolbar select {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.45rem 0.7rem;
  background: var(--paper);
  color: var(--ink);
}
.page-intro h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0 0 0.35rem;
  color: var(--forest-deep);
}
.page-intro p { margin: 0 0 1.25rem; color: var(--muted); }

/* Product grid — equal height cards */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.15rem;
  align-items: stretch;
}
.product-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  min-height: 0;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, border-color 0.25s;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(92, 143, 120, 0.35);
}
.product-card__media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  background: linear-gradient(160deg, var(--paper-2), var(--mint-light));
  overflow: hidden;
  flex-shrink: 0;
}
.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.product-card:hover .product-card__media img { transform: scale(1.05); }
.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  background: var(--forest);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.55rem;
  border-radius: 6px;
}
.badge--sale {
  left: auto;
  right: 10px;
  background: var(--coral);
}
.product-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0.95rem 1rem 1.05rem;
  gap: 0.3rem;
  min-height: 0;
}
.product-card__cat {
  margin: 0;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sage);
  font-weight: 600;
}
.product-card__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  min-height: 2.7em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card__title a:hover { color: var(--forest); }
.product-card__price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin: 0.15rem 0 0.55rem;
}
.product-card__price strong {
  font-size: 1.05rem;
  color: var(--forest-deep);
}
.product-card__price s {
  color: var(--muted);
  font-size: 0.85rem;
}
.product-card__form { margin-top: auto; }
.product-card .btn { width: 100%; }
.product-card__media {
  background: linear-gradient(160deg, var(--paper-2), var(--mint-light));
}
.product-card:hover {
  border-color: rgba(92, 143, 120, 0.35);
}

/* Product detail */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  padding: 2rem 0 1rem;
  align-items: start;
}
.product-detail__media {
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  background: var(--paper-2);
  aspect-ratio: 1;
  box-shadow: var(--shadow);
}
.product-detail__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-detail__info h1 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin: 0.5rem 0 0.75rem;
  line-height: 1.15;
}
.product-detail__cat {
  color: var(--sage);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.pd-price {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin: 1rem 0;
}
.pd-price strong {
  font-size: 1.75rem;
  color: var(--forest);
}
.pd-price s { color: var(--muted); font-size: 1.1rem; }
.pd-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin: 1.5rem 0;
}
.qty-field {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface);
}
.qty-field input {
  width: 52px;
  border: 0;
  text-align: center;
  padding: 0.7rem 0;
  outline: 0;
}
.pd-meta {
  color: var(--muted);
  font-size: 0.92rem;
}
.pd-meta strong { color: var(--sage); }

/* Cart */
.cart-page { padding: 2rem 0 3.5rem; }
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 1.5rem;
  align-items: start;
}
.cart-table {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.cart-row {
  display: grid;
  grid-template-columns: 88px 1fr auto auto auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid var(--line);
}
.cart-row:last-child { border-bottom: 0; }
.cart-row__img {
  width: 88px;
  height: 88px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--paper-2);
}
.cart-row__img img { width: 100%; height: 100%; object-fit: cover; }
.cart-row__info p { margin: 0.25rem 0 0; color: var(--muted); }
.qty-ctrl {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--paper);
  border-radius: 999px;
  padding: 0.2rem;
}
.qty-ctrl button {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: var(--surface);
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--forest);
}
.qty-ctrl span { min-width: 1.5rem; text-align: center; font-weight: 600; }
.cart-row__line { font-weight: 700; color: var(--forest-deep); min-width: 5.5rem; text-align: right; }
.cart-row__remove {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--paper-2);
  cursor: pointer;
  font-size: 1.25rem;
  color: var(--muted);
}
.cart-row__remove:hover { background: #fde8e4; color: var(--coral); }

.cart-summary {
  background: var(--forest-deep);
  color: #fff;
  border-radius: var(--radius);
  padding: 1.5rem;
  position: sticky;
  top: calc(var(--nav-h) + 56px);
}
.cart-summary h3 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
}
.cart-summary__row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.65rem;
  opacity: 0.9;
}
.cart-summary__row--total {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 0.85rem;
  margin-top: 0.85rem;
  font-size: 1.15rem;
  font-weight: 700;
  opacity: 1;
}
.cart-summary .btn { width: 100%; margin-top: 1rem; }

.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--muted);
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px dashed var(--line);
}
.empty-state h2 {
  font-family: var(--font-display);
  color: var(--forest-deep);
  margin: 0 0 0.5rem;
}
.empty-state--cart { padding: 4rem 1.5rem; }

/* Features / trust */
.trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.trust-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.2rem;
  text-align: center;
  transition: transform 0.25s var(--ease);
}
.trust-card:hover { transform: translateY(-3px); }
.trust-card__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 0.85rem;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--mint), #d5ebe0);
  display: grid;
  place-items: center;
  font-size: 1.35rem;
}
.trust-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  color: var(--forest-deep);
}
.trust-card p { margin: 0; font-size: 0.88rem; color: var(--muted); }

/* Promo band */
.promo {
  margin: 1rem 0 0;
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  background:
    linear-gradient(120deg, var(--forest-deep) 0%, #1f5c4a 55%, #3a6b4f 100%);
  color: #fff;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  min-height: 280px;
}
.promo__copy {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.promo__copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 0.75rem;
}
.promo__copy p { margin: 0 0 1.25rem; opacity: 0.9; max-width: 36ch; }
.promo__visual {
  background-color: var(--forest);
  background-position: center;
  background-size: cover;
}

/* About / Contact / content pages */
.content-page {
  padding: 0 0 4rem;
  max-width: none;
}
.content-page > .container { max-width: 1100px; }
.content-page h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--forest-deep);
  margin: 0 0 1rem;
}
.content-page p { color: var(--ink-soft); }

.page-hero {
  position: relative;
  min-height: 280px;
  display: grid;
  align-items: end;
  padding: 3.5rem 0 2.5rem;
  margin-bottom: 2.5rem;
  overflow: hidden;
  color: #fff;
}
.page-hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(15, 51, 41, 0.92) 0%, rgba(26, 77, 62, 0.78) 55%, rgba(15, 51, 41, 0.55) 100%),
    url("https://images.unsplash.com/photo-1616486338812-3dadae4b4ace?w=1600&q=80") center/cover;
  transform: scale(1.02);
  animation: pageHeroIn 1.1s var(--ease) both;
}
.page-hero--contact .page-hero__bg {
  background:
    linear-gradient(115deg, rgba(15, 51, 41, 0.92) 0%, rgba(26, 77, 62, 0.75) 50%, rgba(184, 149, 108, 0.35) 100%),
    url("https://images.unsplash.com/photo-1556911220-bff31c987cd9?w=1600&q=80") center/cover;
}
.page-hero .container {
  position: relative;
  z-index: 1;
}
.page-hero__eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-light);
  margin-bottom: 0.65rem;
  opacity: 0;
  animation: fadeUp 0.7s var(--ease) 0.15s both;
}
.page-hero h1 {
  color: #fff;
  margin: 0 0 0.75rem;
  max-width: 16ch;
  opacity: 0;
  animation: fadeUp 0.75s var(--ease) 0.25s both;
}
.page-hero__lead {
  margin: 0;
  max-width: 42ch;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 300;
  opacity: 0;
  animation: fadeUp 0.75s var(--ease) 0.38s both;
}
@keyframes pageHeroIn {
  from { transform: scale(1.08); opacity: 0.6; }
  to { transform: scale(1.02); opacity: 1; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.about-story {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 3rem;
}
.about-story__copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--forest-deep);
  margin: 0 0 1rem;
}
.about-story__copy p {
  margin: 0 0 1rem;
  font-size: 1.02rem;
}
.about-story__visual {
  position: relative;
  min-height: 320px;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  background:
    url("https://images.unsplash.com/photo-1586023492125-27b2c045efd7?w=900&q=80") center/cover;
  box-shadow: var(--shadow);
}
.about-story__visual::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background: linear-gradient(transparent, rgba(15, 51, 41, 0.55));
}

.dept-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin: 1.5rem 0 2.5rem;
}
.dept-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1rem 1.35rem;
  text-align: center;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.25s;
}
.dept-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(92, 143, 120, 0.45);
}
.dept-card__icon {
  font-size: 1.75rem;
  line-height: 1;
  margin-bottom: 0.65rem;
}
.dept-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  color: var(--forest-deep);
  font-family: var(--font-display);
}
.dept-card p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
}

.about-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  padding: 1.75rem 2rem;
  border-radius: var(--radius);
  background:
    linear-gradient(120deg, var(--paper-2), rgba(168, 213, 192, 0.35));
  border: 1px solid var(--line);
}
.about-cta p {
  margin: 0;
  flex: 1;
  min-width: 200px;
  color: var(--ink-soft);
  font-weight: 500;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: start;
  margin-top: 0.5rem;
}
.contact-info {
  display: grid;
  gap: 1rem;
}
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  transition: border-color 0.25s, box-shadow 0.3s var(--ease);
}
.contact-card:hover {
  border-color: rgba(92, 143, 120, 0.4);
  box-shadow: 0 8px 28px rgba(15, 51, 41, 0.08);
}
.contact-card__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.4rem;
}
.contact-card a,
.contact-card strong {
  color: var(--forest-deep);
  font-weight: 600;
  font-size: 1.05rem;
}
.contact-card p {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}
.contact-form-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  padding: 1.75rem 1.85rem 2rem;
  box-shadow: 0 16px 48px rgba(15, 51, 41, 0.08);
}
.contact-form-panel h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--forest-deep);
  margin: 0 0 0.35rem;
}
.contact-form-panel > p {
  margin: 0 0 1.35rem;
  font-size: 0.95rem;
}
.contact-form {
  display: grid;
  gap: 0.9rem;
}
.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}
.contact-form label {
  display: grid;
  gap: 0.4rem;
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  background: var(--paper);
  outline: 0;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  width: 100%;
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: var(--sage);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(92, 143, 120, 0.2);
}
.contact-form .btn { justify-self: start; margin-top: 0.25rem; }

@media (max-width: 900px) {
  .about-story,
  .contact-layout { grid-template-columns: 1fr; }
  .dept-grid { grid-template-columns: repeat(3, 1fr); }
  .about-story__visual { min-height: 240px; }
}
@media (max-width: 640px) {
  .dept-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-form .form-row { grid-template-columns: 1fr; }
  .page-hero { min-height: 220px; padding: 2.5rem 0 2rem; }
}

/* Footer */
.site-footer {
  background: var(--forest-deep);
  color: rgba(255, 255, 255, 0.82);
  padding: 3rem 0 1.5rem;
  margin-top: 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}
.site-footer .logo__mark { color: #fff; }
.site-footer h4 {
  margin: 0 0 0.85rem;
  color: var(--brass-light);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.site-footer a {
  display: block;
  padding: 0.25rem 0;
  opacity: 0.85;
  transition: opacity 0.2s, color 0.2s;
}
.site-footer a:hover { opacity: 1; color: var(--brass-light); }
.footer-brand p { max-width: 32ch; font-weight: 300; line-height: 1.6; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.85rem;
  opacity: 0.7;
}

/* Overlay + drawers */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 51, 41, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: 0.25s;
  z-index: 200;
}
body.nav-open .overlay,
body.cart-drawer-open .overlay {
  opacity: 1;
  visibility: visible;
}
.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: min(300px, 88vw);
  height: 100%;
  background: var(--surface);
  z-index: 210;
  transform: translateX(-105%);
  transition: transform 0.3s var(--ease);
  padding: 1.5rem;
  overflow-y: auto;
}
body.nav-open .mobile-drawer { transform: translateX(0); }
.mobile-drawer > a,
.mobile-drawer > .logo {
  display: block;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}
.mobile-drawer > .logo {
  border-bottom: 0;
  margin-bottom: 0.5rem;
  padding-top: 0;
}
[data-mobile-cats] {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin: 0.5rem 0;
  padding: 0.35rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.mobile-drop__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.75rem 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 600;
  color: var(--forest-deep);
  cursor: pointer;
  text-align: left;
}
.mobile-drop__caret {
  font-size: 0.75rem;
  opacity: 0.7;
  transition: transform 0.2s;
}
.mobile-drop.is-open .mobile-drop__caret {
  transform: rotate(180deg);
}
.mobile-drop__menu {
  display: none;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0 0 0.5rem 0.75rem;
  margin-bottom: 0.25rem;
  border-left: 2px solid var(--paper-2);
}
.mobile-drop.is-open .mobile-drop__menu {
  display: flex;
}
.mobile-drop__link {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-soft);
  border-bottom: 0 !important;
}
.mobile-drop__thumb {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--paper-2);
}
.mobile-drop__link:hover {
  background: var(--mint-light);
  color: var(--forest);
}
.mobile-drop__link--all {
  color: var(--forest);
  font-weight: 600;
}
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(360px, 92vw);
  height: 100%;
  background: var(--surface);
  z-index: 210;
  transform: translateX(105%);
  transition: transform 0.3s var(--ease);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}
body.cart-drawer-open .cart-drawer { transform: translateX(0); }
.cart-drawer__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid var(--line);
}
.cart-drawer__head h3 {
  margin: 0;
  font-family: var(--font-display);
}
.cart-drawer__list {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}
.drawer-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  align-items: center;
}
.drawer-item img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
}
.drawer-item p { margin: 0.2rem 0 0; color: var(--muted); font-size: 0.88rem; }
.drawer-empty { color: var(--muted); text-align: center; padding: 2rem 1rem; }
.cart-drawer__foot {
  padding: 1.15rem;
  border-top: 1px solid var(--line);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--forest-deep);
  color: #fff;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-weight: 500;
  z-index: 300;
  box-shadow: var(--shadow);
  transition: transform 0.35s var(--ease);
  white-space: nowrap;
}
.toast.is-show { transform: translateX(-50%) translateY(0); }

.reveal {
  opacity: 0;
  transform: translateY(16px);
}
.reveal.is-in {
  animation: fadeUp 0.7s var(--ease) both;
}

/* —— Sub-categories —— */
.breadcrumb {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 1.25rem 0 0.75rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.breadcrumb a { color: var(--forest); font-weight: 500; }
.breadcrumb a:hover { color: var(--brass); }

.sub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.sub-tile {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: transform 0.2s var(--ease), border-color 0.2s, box-shadow 0.2s;
  min-height: 0;
}
.sub-tile:hover {
  transform: translateY(-2px);
  border-color: var(--sage);
  box-shadow: var(--shadow);
}
.sub-tile__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--paper-2);
}
.sub-tile__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s var(--ease);
}
.sub-tile:hover .sub-tile__media img { transform: scale(1.06); }
.sub-tile__body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.85rem 1rem;
}
.sub-tile strong {
  font-size: 0.95rem;
  color: var(--forest-deep);
}
.sub-tile span {
  font-size: 0.8rem;
  color: var(--muted);
}

.side-group { margin-bottom: 0.15rem; }
.side-subs {
  display: none;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.15rem 0 0.35rem 0.5rem;
  margin-left: 0.5rem;
  border-left: 2px solid var(--paper-2);
}
.side-group.is-open .side-subs { display: flex; }
.side-sub {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  font-size: 0.82rem;
  color: var(--ink-soft);
  min-width: 0;
}
.side-sub span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.side-sub:hover,
.side-sub.is-active {
  background: var(--paper-2);
  color: var(--forest);
  font-weight: 600;
}

.pd-path {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.35rem;
}
.pd-path a {
  color: var(--sage);
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.pd-path .sep { color: var(--muted); font-size: 0.75rem; }

/* —— Checkout —— */
.checkout-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 1.5rem;
  align-items: start;
  padding-bottom: 3rem;
}
.checkout-form,
.checkout-summary {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.checkout-form h2,
.checkout-summary h2 {
  font-family: var(--font-display);
  margin: 0 0 1.1rem;
  font-size: 1.35rem;
  color: var(--forest-deep);
}
.checkout-form .field {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
  font-weight: 500;
  font-size: 0.9rem;
}
.checkout-form input,
.checkout-form select,
.checkout-form textarea {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  background: var(--paper);
  outline: 0;
}
.checkout-form input:focus,
.checkout-form select:focus,
.checkout-form textarea:focus {
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(92, 143, 120, 0.2);
}
.pay-options {
  display: grid;
  gap: 0.5rem;
  margin: 0.5rem 0 1rem;
}
.pay-options label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  font-weight: 500;
}
.pay-options label:has(input:checked) {
  border-color: var(--forest);
  background: var(--paper-2);
}
.checkout-line {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
}
.checkout-line:last-of-type { border-bottom: 0; }
.checkout-line img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
}
.checkout-line p {
  margin: 0.2rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.checkout-total {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--forest-deep);
}

/* —— FAQ —— */
.faq-list {
  display: grid;
  gap: 0.65rem;
  margin-top: 1.5rem;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.faq-item button {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 1rem 1.15rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--forest-deep);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}
.faq-item button::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--sage);
  flex-shrink: 0;
}
.faq-item.is-open button::after { content: "−"; }
.faq-item__body {
  display: none;
  padding: 0 1.15rem 1.1rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.faq-item.is-open .faq-item__body { display: block; }

/* —— Responsive —— */
@media (max-width: 1100px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .trust { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .shop-layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: relative;
    top: 0;
    max-height: none;
  }
  .side-cats {
    display: flex;
    flex-direction: column;
    max-height: 320px;
  }
  .product-detail { grid-template-columns: 1fr; }
  .cart-layout,
  .checkout-layout { grid-template-columns: 1fr; }
  .promo { grid-template-columns: 1fr; }
  .promo__visual { min-height: 180px; }
  .header-search { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header .container {
    grid-template-columns: auto 1fr auto;
  }
}

@media (max-width: 640px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .trust { grid-template-columns: 1fr; }
  .cart-row {
    grid-template-columns: 72px 1fr;
    grid-template-areas:
      "img info"
      "img qty"
      "img line"
      "img remove";
  }
  .cart-row__img { grid-area: img; width: 72px; height: 72px; }
  .cart-row__info { grid-area: info; }
  .qty-ctrl { grid-area: qty; justify-self: start; }
  .cart-row__line { grid-area: line; text-align: left; }
  .cart-row__remove { grid-area: remove; justify-self: start; }
  .icon-btn__label { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { min-height: 70vh; }
  .logo__img { height: 44px; }
}

/* —— Brand polish: hero + chips + forms —— */
.hero__tag { display: none; }
.hero__subs { display: none !important; }

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.chip {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.chip:hover,
.chip.is-active {
  background: var(--forest);
  border-color: var(--forest);
  color: #fff;
}

.flash-toast--success { background: var(--forest); }
.flash-toast--error { background: var(--coral); }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  margin-bottom: 1.25rem;
}
.form-grid label,
.form-grid .field,
.checkout-form .field {
  display: grid;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.form-grid .full { grid-column: 1 / -1; }
.form-grid input,
.form-grid textarea,
.checkout-form input,
.checkout-form textarea,
.field input,
.field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  outline: 0;
}
.form-grid input:focus,
.form-grid textarea:focus,
.checkout-form input:focus,
.checkout-form textarea:focus {
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(92, 143, 120, 0.2);
}
.radio-card {
  display: flex !important;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-weight: 600;
  background: var(--surface);
  grid-template-columns: none !important;
}
.pay-options { margin-top: 0.5rem; }

.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.5rem;
  align-items: start;
}
.contact-info { display: grid; gap: 0.85rem; }
.contact-form-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: 0 4px 20px rgba(15, 51, 41, 0.05);
}

.page-hero__bg {
  background-position: center;
  background-size: cover;
}

.section .btn--ghost,
.page-intro .btn--ghost,
.empty-state .btn--ghost {
  border-color: var(--line);
  color: var(--ink);
}
.section .btn--ghost:hover,
.empty-state .btn--ghost:hover {
  background: var(--paper-2);
}

@media (max-width: 900px) {
  .contact-layout,
  .form-grid,
  .about-story { grid-template-columns: 1fr; }
  .dept-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .dept-grid { grid-template-columns: 1fr; }
}

/* Order success */
.success-box {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.75rem 1.5rem;
  max-width: 560px;
  margin: 0 auto;
  box-shadow: var(--shadow);
}
.success-box h1,
.success-box h2 {
  font-family: var(--font-display);
  color: var(--forest-deep);
  margin: 0 0 0.65rem;
}
.success-box p { color: var(--ink-soft); margin: 0.35rem 0; }
.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--forest), var(--green-2));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 auto 1.1rem;
  box-shadow: 0 10px 24px rgba(26, 77, 62, 0.28);
}
.success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  margin: 1.5rem 0 1rem;
}

/* Mobile drawer search */
.mobile-search {
  display: flex;
  gap: 0.35rem;
  margin: 0.35rem 0 0.85rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.mobile-search input {
  flex: 1;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  outline: 0;
  min-width: 0;
}
.mobile-search input::placeholder { color: rgba(255, 255, 255, 0.55); }
.mobile-search button {
  border: 0;
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  background: var(--brass);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.btn--outline {
  background: var(--surface);
  border: 1.5px solid var(--line);
  color: var(--forest);
}
.btn--outline:hover {
  border-color: var(--forest);
  background: var(--mint-light);
}


