/* ==========================================================================
   Tibetan Rugs — Static Site Theme
   Design system upgraded to a more refined, "noble & elegant" palette:
   original #1e2663 / #cba466 / #f6efe4  ->  deep ink violet / antique
   champagne gold / warm ivory.
   ========================================================================== */

/* ---------- 1. Tokens ---------------------------------------------------- */
:root {
  /* Core ink — deeper and richer than the original royal blue */
  --ink: #2b2440;
  --ink-deep: #1d1830;
  --ink-soft: #3d3457;
  --ink-muted: #554a6e;

  /* Antique champagne gold — muted, expensive-looking */
  --gold: #a8813f;
  --gold-light: #c9ae7e;
  --gold-deep: #8a6b33;
  --gold-wash: rgba(168, 129, 63, 0.12);

  /* Ivory family */
  --ivory: #f8f4ec;
  --ivory-2: #f0e9dc;
  --ivory-3: #e3d9c6;
  --paper: #fdfbf6;

  /* Text */
  --text: #3a3446;
  --text-soft: #6f6880;
  --text-faint: #9a93a6;
  --on-dark: #f4efe6;
  --on-dark-soft: #cfc7bb;

  /* Lines */
  --line: rgba(43, 36, 64, 0.16);
  --line-soft: rgba(43, 36, 64, 0.09);
  --line-dark: rgba(244, 239, 230, 0.22);

  /* Typography */
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Outfit", "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --container: 1440px;
  --gutter: 40px;
  --header-h: 92px;

  --shadow-soft: 0 2px 22px rgba(29, 24, 48, 0.06);
  --shadow-lift: 0 18px 46px rgba(29, 24, 48, 0.13);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 2. Reset ------------------------------------------------------ */
*,
*::before,
*::after { box-sizing: border-box; }

/* On the index page the bar sits above a full-bleed hero, so it must not
   stick — otherwise it would cover the overlay header. */
html {
  scroll-padding-top: 20px;
}

/* The overlay header is absolutely positioned at the very top of the page,
   so it has to clear the announcement bar or it hides behind it. */
.template-index .header--overlay { top: var(--announcement-h, 42px); }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  /* The off-canvas drawers (mobile menu, cart) are parked outside the
     viewport; without this the page can be nudged sideways on small
     screens. */
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-family: var(--serif); font-weight: 500; }
p { margin: 0 0 1em; }
input, select, textarea { font: inherit; color: inherit; }

main { flex: 1 0 auto; }

::selection { background: var(--gold-wash); color: var(--ink); }

/* ---------- 3. Layout helpers -------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 4. Announcement bar ------------------------------------------ */
.announcement {
  background: var(--ink-deep);
  color: var(--on-dark);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-align: center;
  padding: 11px 20px;
  position: relative;
  z-index: 60;
}
.announcement span { opacity: 0.9; }
.announcement .announcement__divider { opacity: 0.4; margin: 0 14px; }

/* ---------- 5. Header ---------------------------------------------------- */
/* Inner-page header keeps the original site's deep bar treatment so the
   cream logo stays legible — the index page uses the transparent overlay.
   Once the page scrolls, the bar sticks to the top so the currency and
   search controls stay reachable. */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink-deep);
  border-bottom: 1px solid var(--line-dark);
}
.header--overlay {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid rgba(244, 239, 230, 0.28);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: var(--header-h);
  padding-top: 18px;
  padding-bottom: 18px;
}

.header__logo img { width: 215px; height: auto; }

.header__right { display: flex; align-items: center; gap: 26px; }

.nav__list { display: flex; align-items: center; gap: 30px; }

.nav__link {
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: 0.09em;
  color: var(--ink);
  position: relative;
  padding: 6px 0;
  transition: color 0.25s var(--ease);
  white-space: nowrap;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 2px;
  width: 0; height: 1px;
  background: var(--gold);
  transform: translateX(-50%);
  transition: width 0.3s var(--ease);
}
.nav__link:hover { color: var(--gold-deep); }
.nav__link:hover::after { width: 100%; }

/* Dropdown */
.nav__item--has-dropdown { position: relative; }
.nav__caret {
  display: inline-block;
  margin-left: 7px;
  width: 7px; height: 7px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  opacity: 0.6;
}

.dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 232px;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-lift);
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0.28s;
  z-index: 40;
}
.nav__item--has-dropdown:hover .dropdown,
.nav__item--has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown__link {
  display: block;
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.09em;
  color: var(--ink);
  padding: 8px 26px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.dropdown__link:hover { color: var(--gold-deep); background: var(--ivory-2); }

/* Header utility icons */
.header__tools { display: flex; align-items: center; gap: 20px; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  color: var(--ink);
  transition: color 0.25s var(--ease);
}
.icon-btn:hover { color: var(--gold-deep); }
.icon-btn svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 1.35; }

/* Currency selector */
.currency { position: relative; }
.currency__toggle {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
}
.currency__toggle:hover { color: var(--gold-deep); }
.currency__menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 210px;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-lift);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0.28s;
  z-index: 40;
}
.currency:hover .currency__menu,
.currency:focus-within .currency__menu,
.currency.is-open .currency__menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.currency__option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 22px;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--text-soft);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.currency__option:hover { color: var(--ink); background: var(--ivory-2); }
.currency__option.is-active { color: var(--gold-deep); }
.flag { width: 20px; height: 14px; border-radius: 2px; display: inline-block; flex: none; }

/* Overlay header (on hero) recolouring */
.header .nav__link,
.header .icon-btn,
.header .currency__toggle { color: var(--on-dark); }
.header .nav__link:hover,
.header .icon-btn:hover,
.header .currency__toggle:hover { color: var(--gold-light); }
.header .nav__link::after { background: var(--gold-light); }
.header .dropdown { background: var(--paper); }
.header .dropdown__link { color: var(--ink); }
.header .dropdown__link:hover { color: var(--gold-deep); }
.header .currency__menu { background: var(--paper); }
.header .currency__option { color: var(--text-soft); }
.header .currency__option:hover { color: var(--ink); }
.header .currency__option.is-active { color: var(--gold-deep); }
.header .header__burger span { background: var(--on-dark); }

/* ---------- 6. Mobile header --------------------------------------------- */
.header__burger { display: none; }
.header__mobile { display: none; }

/* ---------- 7. Hero ------------------------------------------------------ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--ink-deep) url("../img/hero.png") center center / cover no-repeat;
}.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(29, 24, 48, 0.55) 0%, rgba(29, 24, 48, 0.38) 45%, rgba(29, 24, 48, 0.62) 100%);
}
.hero__inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 140px 20px 120px;
  transform: translateY(-4%);
}
.hero__title {
  color: #fff;
  font-size: clamp(30px, 4.4vw, 46px);
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1.28;
  max-width: 820px;
  margin: 0 auto;
}
.hero__ornament { width: 118px; margin: 26px auto 30px; opacity: 0.95; }
.hero__ornament img { width: 100%; height: auto; }

.hero__scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  transition: transform 0.4s var(--ease);
}
.hero__scroll:hover { transform: translateX(-50%) scale(1.16); }
.hero__scroll img { width: 22px; height: auto; }

/* ---------- 8. Buttons ---------------------------------------------------- */
.roc-button {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--gold-light);
  min-height: 48px;
  min-width: 172px;
  transition: 0.3s var(--ease);
  cursor: pointer;
  white-space: nowrap;
}
.roc-button a,
.roc-button button {
  background: transparent;
  color: var(--on-dark);
  padding: 0 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: 0.3s var(--ease);
}
.roc-button:hover { border-color: var(--gold-light); }
.roc-button:hover a,
.roc-button:hover button { background: var(--gold); color: #fff; }

.roc-button--dark { border-color: var(--ink); }
.roc-button--dark a,
.roc-button--dark button { color: var(--ink); }
.roc-button--dark:hover { border-color: var(--gold); }
.roc-button--dark:hover a,
.roc-button--dark:hover button { background: var(--gold); color: #fff; }

.roc-button--light { border-color: var(--ivory-3); }
.roc-button--light a,
.roc-button--light button { background: transparent; color: var(--ink); }
.roc-button--light:hover { border-color: var(--gold); }
.roc-button--light:hover a,
.roc-button--light:hover button { background: var(--gold); color: #fff; }

/* ---------- 9. Intro section --------------------------------------------- */
.intro {
  background-color: var(--ivory);
  background-image: url("../img/flower-bg.svg"), url("../img/flower-bg-flipped.svg");
  background-repeat: no-repeat;
  background-position: top right, top left;
  background-size: 50vw;
  padding: 110px 0;
  text-align: center;
}
.intro__text {
  font-size: 19px;
  line-height: 1.95;
  color: var(--ink);
  letter-spacing: 0.03em;
  max-width: 860px;
  margin: 0 auto;
}
.intro__divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 46px;
}
.intro__divider span {
  height: 1px;
  width: 34%;
  max-width: 300px;
  background: linear-gradient(90deg, transparent, var(--line));
}
.intro__divider span:last-child { background: linear-gradient(90deg, var(--line), transparent); }
.intro__divider i {
  width: 6px; height: 6px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
  display: block;
}

/* ---------- 10. Section heading ------------------------------------------ */
.section-head { text-align: center; margin-bottom: 54px; }
.section-head__eyebrow {
  font-size: 11px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 16px;
}
.section-head__title {
  font-size: clamp(34px, 4.6vw, 56px);
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--ink);
  line-height: 1.15;
}
.section-head__sub {
  font-family: var(--serif);
  font-size: 19px;
  color: var(--text-soft);
  max-width: 720px;
  margin: 18px auto 0;
  line-height: 1.8;
}

/* ---------- 11. Product card --------------------------------------------- */
.product-card { position: relative; }
.product-card__image-wrap {
  position: relative;
  display: block;
  background: var(--ivory-2);
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border: 1px solid var(--line-soft);
}
.product-card__image {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-card__image img {
  width: 100%; height: 100%;
  object-fit: contain;
  transition: transform 0.85s var(--ease);
}
.product-card:hover .product-card__image img { transform: scale(1.055); }

.product-card__label {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 2;
}
.badge {
  display: inline-block;
  min-width: 50px;
  line-height: 26px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  padding: 0 12px;
  white-space: nowrap;
}
.badge--available { background: var(--ink); color: var(--on-dark); }
.badge--sold { background: var(--gold); color: #fff; }

.product-card__quick {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  transform: translateY(101%);
  opacity: 0;
  transition: 0.42s var(--ease);
}
.product-card:hover .product-card__quick { transform: translateY(0); opacity: 1; }
.product-card__quick a {
  display: block;
  background: rgba(29, 24, 48, 0.93);
  color: var(--on-dark);
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: center;
  padding: 13px 0;
  transition: background 0.3s var(--ease);
}
.product-card__quick a:hover { background: var(--gold); }

.product-card__body { padding: 20px 6px 0; text-align: center; }
.product-card__name {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--ink);
  margin-bottom: 6px;
}
.product-card__name a { transition: color 0.25s var(--ease); }
.product-card__name a:hover { color: var(--gold-deep); }
.product-card__price {
  font-size: 14px;
  letter-spacing: 0.06em;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 4px;
}
.product-card__sku {
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--text-faint);
}

/* Placeholder slots the owner fills in later */
.placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%; height: 100%;
  padding: 18px;
  text-align: center;
  color: var(--text-faint);
  background:
    repeating-linear-gradient(45deg, rgba(43, 36, 64, 0.028) 0 12px, transparent 12px 24px),
    var(--ivory-2);
}
.placeholder svg { width: 34px; height: 34px; stroke: var(--gold); fill: none; stroke-width: 1; opacity: 0.75; }
.placeholder__label {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1.6;
}
.placeholder--name {
  display: inline-block;
  color: var(--text-faint);
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 0.14em;
  font-style: italic;
}
.product-card__name .placeholder--name { font-size: 22px; }

/* ---------- 12. Carousel ------------------------------------------------- */
.carousel {
  position: relative;
  /* The arrow buttons sit outside the row; clipping them here keeps them
     from widening the document while leaving the row width untouched. */
  overflow: hidden;
}
.carousel__viewport { overflow: hidden; }
.carousel__track {
  display: flex;
  gap: 34px;
  transition: transform 0.65s var(--ease);
  will-change: transform;
}
/* Widths are computed against the gap count so the row fills exactly. */
.carousel__slide { flex: 0 0 calc((100% - 102px) / 4); }
.carousel__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  transition: 0.3s var(--ease);
  z-index: 5;
  box-shadow: 0 8px 24px rgba(29, 24, 48, 0.18);
}
.carousel__nav:hover { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
/* Arrows sit just outside the row but inside the section, so they never
   widen the document. */
.carousel__nav--prev { left: -23px; }
.carousel__nav--next { right: -23px; }
.carousel__nav svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.4; }
.carousel__nav[disabled] { opacity: 0.35; pointer-events: none; }

.carousel__dots { display: flex; justify-content: center; gap: 9px; margin-top: 40px; }
.carousel__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ivory-3);
  transition: 0.3s var(--ease);
}
.carousel__dot.is-active { background: var(--gold); transform: scale(1.35); }

/* ---------- 13. Collection section --------------------------------------- */
.collection { padding: 96px 0 110px; }
.collection__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 46px 34px;
}
.collection__footer { text-align: center; margin-top: 66px; }

/* ---------- 14. Who we are ------------------------------------------------ */
.about {
  background-color: var(--ivory);
  padding: 70px 0 80px;
}
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.about__title {
  font-size: clamp(34px, 4.2vw, 56px);
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--ink);
  margin-bottom: 26px;
}
.about__block { margin-bottom: 34px; }
.about__block:last-child { margin-bottom: 0; }
.about__subtitle {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--ink);
  margin-bottom: 12px;
}
.about__text {
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.05em;
  color: var(--ink);
  opacity: 0.88;
}
.about__figure { position: relative; }
.about__figure img { width: 100%; height: auto; display: block; }
.about__figure::after {
  content: "";
  position: absolute;
  inset: 26px -26px -26px 26px;
  border: 1px solid var(--gold-light);
  opacity: 0.5;
  z-index: -1;
}
/* The gold offset frame deliberately bleeds 26px past the image. On the
   single-column layout the figure reaches the container edge, so the frame
   would widen the page — pull the figure in to leave room for it. */
@media (max-width: 991px) {
  .about__grid .about__figure {
    max-width: calc(460px - 26px);
    margin-left: auto;
    margin-right: 26px;
  }
}

/* ---------- 15. Footer --------------------------------------------------- */
.footer {
  background: var(--ink-deep);
  padding: 62px 0 52px;
  margin-top: 0;
}
.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.footer__logo img { width: 215px; height: auto; margin: 0 auto; }
.footer__tagline {
  color: var(--on-dark-soft);
  font-size: 15px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 18px 0 15px;
}
.footer__brand img { width: 168px; height: auto; margin: 0 auto; opacity: 0.92; }
.footer__contact {
  display: flex;
  justify-content: space-around;
  gap: 60px;
  margin-top: 38px;
  width: 100%;
  flex-wrap: wrap;
}
.footer__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--on-dark);
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: 0.04em;
  text-align: left;
  line-height: 1.55;
}
.footer__item svg { width: 15px; height: 15px; margin-top: 4px; stroke: var(--gold-light); fill: none; stroke-width: 1.4; flex: none; }
.footer__item a { transition: color 0.25s var(--ease); }
.footer__item a:hover { color: var(--gold-light); }
.footer__bottom {
  margin-top: 44px;
  padding-top: 26px;
  border-top: 1px solid var(--line-dark);
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  color: rgba(244, 239, 230, 0.5);
  font-size: 12px;
  letter-spacing: 0.1em;
}
.footer__links { display: flex; gap: 26px; flex-wrap: wrap; }
.footer__links a { transition: color 0.25s var(--ease); }
.footer__links a:hover { color: var(--gold-light); }

/* ---------- 16. Search overlay ------------------------------------------- */
.search-panel {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(29, 24, 48, 0.55);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.32s var(--ease), visibility 0.32s;
}
.search-panel.is-open { opacity: 1; visibility: visible; }
.search-panel__box {
  background: var(--paper);
  padding: 54px 30px 58px;
  transform: translateY(-26px);
  transition: transform 0.36s var(--ease);
  box-shadow: var(--shadow-lift);
}
.search-panel.is-open .search-panel__box { transform: translateY(0); }
.search-panel__inner { max-width: 760px; margin: 0 auto; }
.search-panel__close {
  position: absolute;
  top: 22px; right: 28px;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
}
.search-panel__close svg { width: 17px; height: 17px; stroke: currentColor; stroke-width: 1.4; fill: none; }
.search-panel__title {
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 20px;
}
.search-form { display: flex; border-bottom: 1px solid var(--ink); }
.search-form input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 12px 0;
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.search-form input::placeholder { color: var(--text-faint); }
.search-form button {
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  padding-left: 20px;
  transition: color 0.25s var(--ease);
}
.search-form button:hover { color: var(--gold-deep); }

/* ---------- 17. Cart drawer ---------------------------------------------- */
.cart-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 430px;
  max-width: 92vw;
  background: var(--paper);
  z-index: 95;
  transform: translateX(102%);
  transition: transform 0.42s var(--ease);
  display: flex;
  flex-direction: column;
  box-shadow: -20px 0 60px rgba(29, 24, 48, 0.18);
}
.cart-drawer.is-open { transform: translateX(0); }
.cart-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 30px;
  border-bottom: 1px solid var(--line-soft);
}
.cart-drawer__title {
  font-size: 15px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink);
}
.cart-drawer__close svg { width: 17px; height: 17px; stroke: var(--ink); stroke-width: 1.4; fill: none; }
.cart-drawer__body { flex: 1; overflow-y: auto; padding: 26px 30px; }
.cart-drawer__empty { text-align: center; padding: 60px 0; color: var(--text-faint); font-family: var(--serif); font-size: 17px; }
.cart-drawer__foot { padding: 22px 30px 30px; border-top: 1px solid var(--line-soft); }
.cart-line { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
.cart-line__thumb { width: 76px; height: 100px; flex: none; background: var(--ivory-2); border: 1px solid var(--line-soft); overflow: hidden; }
.cart-line__thumb img { width: 100%; height: 100%; object-fit: contain; }
.cart-line__name { font-family: var(--serif); font-size: 16px; color: var(--ink); }
.cart-line__price { font-size: 13px; color: var(--text-soft); margin-top: 4px; }
.cart-line__remove { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); margin-top: 8px; }
.cart-line__remove:hover { color: var(--gold-deep); }
.cart-total { display: flex; justify-content: space-between; font-family: var(--serif); font-size: 19px; color: var(--ink); margin-bottom: 18px; }
.cart-progress { font-size: 12px; letter-spacing: 0.08em; color: var(--text-soft); margin-bottom: 16px; }
.cart-progress__bar { height: 2px; background: var(--ivory-3); margin-top: 8px; }
.cart-progress__bar i { display: block; height: 100%; background: var(--gold); transition: width 0.4s var(--ease); }
.cart-count {
  position: absolute;
  top: -5px; right: -7px;
  min-width: 17px; height: 17px;
  border-radius: 9px;
  background: var(--gold);
  color: #fff;
  font-size: 10px;
  line-height: 17px;
  text-align: center;
  font-weight: 600;
}
.cart-btn { position: relative; }

/* Overlay veil */
.veil {
  position: fixed;
  inset: 0;
  background: rgba(29, 24, 48, 0.5);
  z-index: 80;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.32s var(--ease), visibility 0.32s;
}
.veil.is-open { opacity: 1; visibility: visible; }

/* ---------- 18. Breadcrumb / page head ---------------------------------- */
.page-head {
  background: var(--ivory-2);
  border-bottom: 1px solid var(--line-soft);
  padding: 46px 0 44px;
  text-align: center;
}
.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  margin-bottom: 14px;
}
.breadcrumb a { transition: color 0.25s var(--ease); }
.breadcrumb a:hover { color: var(--gold-deep); }
.page-head__title {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
}

/* ---------- 19. Collection page toolbar ----------------------------------- */
.shop-layout {
  display: grid;
  grid-template-columns: 268px 1fr;
  gap: 46px;
  padding: 56px 0 96px;
}
.filters { position: sticky; top: 24px; align-self: start; }
.filter-group { padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid var(--line-soft); }
.filter-group:last-child { border-bottom: 0; }
.filter-group__title {
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 14px;
}
.filter-list li { margin-bottom: 9px; }
.filter-list label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--text-soft);
  cursor: pointer;
  transition: color 0.2s var(--ease);
}
.filter-list label:hover { color: var(--ink); }
.filter-list input { accent-color: var(--gold); width: 15px; height: 15px; cursor: pointer; }
.filter-list .count { margin-left: auto; font-size: 12px; color: var(--text-faint); }

.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 22px;
  margin-bottom: 34px;
  border-bottom: 1px solid var(--line-soft);
}
.shop-toolbar__count { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-soft); }
.shop-toolbar select {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 9px 34px 9px 14px;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--ink);
  cursor: pointer;
}
.shop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 46px 30px; }
.shop-empty { text-align: center; padding: 70px 0; color: var(--text-faint); font-family: var(--serif); font-size: 19px; }

/* ---------- 20. Product detail ------------------------------------------- */
.product {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 70px;
  padding: 60px 0 90px;
  align-items: start;
}
.product__gallery { position: sticky; top: 24px; }
.product__main-image {
  background: var(--ivory-2);
  border: 1px solid var(--line-soft);
  aspect-ratio: 2 / 3;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.product__main-image img { width: 100%; height: 100%; object-fit: contain; }
.product__thumbs { display: flex; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.product__thumb {
  width: 84px; height: 108px;
  border: 1px solid var(--line-soft);
  background: var(--ivory-2);
  overflow: hidden;
  opacity: 0.62;
  transition: 0.25s var(--ease);
}
.product__thumb.is-active, .product__thumb:hover { opacity: 1; border-color: var(--gold); }
.product__thumb img { width: 100%; height: 100%; object-fit: contain; }

.product__vendor {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 12px;
}
.product__title {
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin-bottom: 12px;
}
.product__sku-row { font-size: 14px; letter-spacing: 0.08em; color: var(--text-soft); margin-bottom: 18px; }
.product__price {
  font-size: 25px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin-bottom: 8px;
}
.product__unit { font-size: 13px; color: var(--text-faint); margin-bottom: 26px; }
.product__attrs { border-top: 1px solid var(--line-soft); margin-bottom: 26px; }
.product__attr {
  display: flex;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
}
.product__attr dt { width: 86px; flex: none; color: var(--text-faint); letter-spacing: 0.1em; text-transform: uppercase; font-size: 12px; padding-top: 2px; }
.product__attr dd { margin: 0; color: var(--ink); letter-spacing: 0.04em; }
.product__desc-title {
  font-size: 15px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 12px;
  padding-top: 6px;
}
.product__desc { font-size: 15px; line-height: 1.9; color: var(--text); }
.product__desc ul { margin: 16px 0 0; padding-left: 18px; list-style: disc; }
.product__desc li { margin-bottom: 7px; }
.product__desc strong { color: var(--ink); font-weight: 500; }
.product__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.product__qty { display: flex; align-items: center; border: 1px solid var(--line); }
.product__qty button { width: 40px; height: 46px; color: var(--ink); font-size: 17px; }
.product__qty input { width: 46px; height: 46px; text-align: center; border: 0; background: transparent; font-size: 15px; }

/* ---------- 21. Contact page --------------------------------------------- */
.contact { padding: 70px 0 100px; }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: start; }
.contact__title { font-size: clamp(32px, 3.8vw, 48px); color: var(--ink); margin-bottom: 30px; }
.contact__block { margin-bottom: 30px; }
.contact__label {
  font-size: 12px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 10px;
}
.contact__value { font-family: var(--serif); font-size: 18px; letter-spacing: 0.04em; color: var(--ink); line-height: 1.7; }
.contact__value a { transition: color 0.25s var(--ease); }
.contact__value a:hover { color: var(--gold-deep); }
.form-field { margin-bottom: 20px; }
.form-field label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 8px;
}
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  background: transparent;
  border: 1px solid var(--line);
  padding: 13px 15px;
  font-size: 15px;
  letter-spacing: 0.03em;
  color: var(--ink);
  transition: border-color 0.25s var(--ease);
}
.form-field input:focus,
.form-field textarea:focus { outline: none; border-color: var(--gold); }
.form-field textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: 13px; color: var(--text-faint); margin-top: 14px; }

/* ---------- 22. About page ---------------------------------------------- */
.about-page { padding: 70px 0 100px; }
.about-page__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 66px; align-items: center; }
.about-page__figure { position: relative; }
.about-page__figure img { width: 100%; }
.about-page__figure::after {
  content: "";
  position: absolute;
  inset: 24px -24px -24px 24px;
  border: 1px solid var(--gold-light);
  opacity: 0.5;
  z-index: -1;
}

/* ---------- 23. Toast ---------------------------------------------------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  transform: translate(-50%, 20px);
  background: var(--ink);
  color: var(--on-dark);
  padding: 14px 26px;
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.08em;
  opacity: 0;
  visibility: hidden;
  transition: 0.35s var(--ease);
  z-index: 120;
  box-shadow: var(--shadow-lift);
}
.toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* ---------- 24. Responsive ------------------------------------------------ */
@media (max-width: 1280px) {
  .carousel__nav--prev { left: 4px; }
  .carousel__nav--next { right: 4px; }
}

@media (max-width: 1100px) {
  :root { --gutter: 30px; }
  .carousel__slide { flex: 0 0 calc((100% - 68px) / 3); }
  .collection__grid { grid-template-columns: repeat(3, 1fr); }
  .shop-layout { grid-template-columns: 1fr; gap: 32px; }
  .filters { position: static; }
  .shop-grid { grid-template-columns: repeat(3, 1fr); }
  .about__grid { gap: 44px; }
  .product { gap: 44px; }
}

@media (max-width: 991px) {
  /* Hide the desktop nav in the bar, but keep the one inside the
     off-canvas drawer visible. */
  .header__inner > .header__right .nav { display: none; }
  .header__burger {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 30px; height: 30px;
  }
  .header__burger span { display: block; height: 1.5px; width: 100%; background: currentColor; transition: 0.3s var(--ease); }
  .header--overlay .header__burger span { background: var(--on-dark); }
  .header__burger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .header__burger.is-open span:nth-child(2) { opacity: 0; }
  .header__burger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  .header__right .currency { display: none; }
  .header__right .icon-btn--search { display: none; }

  .header__mobile {
    display: block;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 320px;
    max-width: 86vw;
    background: var(--paper);
    z-index: 96;
    /* Parked off-canvas to the left. Keeping it visible but out of the
       document flow would let it stretch the page sideways, so it is
       hidden until the burger opens it. */
    visibility: hidden;
    transform: translateX(-102%);
    transition: transform 0.4s var(--ease), visibility 0.4s var(--ease);
    padding: 30px 26px;
    overflow-y: auto;
    box-shadow: 20px 0 60px rgba(29, 24, 48, 0.18);
  }
  .header__mobile.is-open { transform: translateX(0); visibility: visible; }
  .header__mobile .nav__list { flex-direction: column; align-items: flex-start; gap: 0; }
  .header__mobile .nav__list li { width: 100%; border-bottom: 1px solid var(--line-soft); }
  .header__mobile .nav__link { display: block; padding: 15px 0; font-size: 17px; }
  .header__mobile .dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: 0;
    padding: 0 0 12px 16px;
    background: transparent;
    display: none;
  }
  .header__mobile .nav__item--has-dropdown.is-open .dropdown { display: block; }
  .header__mobile .dropdown__link { padding: 7px 0; font-size: 15px; }

  .about__grid { grid-template-columns: 1fr; }
  .about__figure { order: -1; max-width: 460px; margin: 0 auto; }
  .contact__grid { grid-template-columns: 1fr; gap: 44px; }
  .about-page__grid { grid-template-columns: 1fr; }
  .product { grid-template-columns: 1fr; }
  .product__gallery { position: static; max-width: 460px; margin: 0 auto; width: 100%; }
  .shop-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  :root { --gutter: 22px; --header-h: 74px; }
  body { font-size: 15px; }
  .header__logo img { width: 168px; }
  .carousel__slide { flex: 0 0 calc((100% - 34px) / 2); }
  .collection__grid { grid-template-columns: repeat(2, 1fr); gap: 36px 20px; }
  .shop-grid { grid-template-columns: repeat(2, 1fr); gap: 36px 18px; }
  .intro { padding: 66px 0; background-size: auto, 90vw; }
  .intro__text { font-size: 16px; line-height: 1.85; }
  .collection { padding: 64px 0 76px; }
  .product-card__name { font-size: 18px; }
  .product-card__name .placeholder--name { font-size: 18px; }
  .product-card__price { font-size: 13px; }
  .footer { padding: 46px 0 38px; }
  .footer__contact { flex-direction: column; align-items: center; gap: 18px; }
  .hero__inner { transform: translateY(-8%); }
  .section-head { margin-bottom: 38px; }
  .product { padding: 36px 0 64px; }
  .carousel__nav { display: none; }
}

@media (max-width: 480px) {
  .collection__grid, .shop-grid { grid-template-columns: 1fr; }
  .carousel__slide { flex: 0 0 100%; }
}

/* ---------- 25. Print ---------------------------------------------------- */
@media print {
  .header, .footer, .carousel__nav, .hero__scroll { display: none; }
  body { background: #fff; }
}
