/* ==========================================================================
   COLOURDIAM — luxury diamond & fine jewelry
   Fonts: Playfair Display (serif) + Jost (sans)
   ========================================================================== */

:root {
  --ink: #141414;
  --ink-soft: #2a2a2a;
  --gold: #b78a3f;
  --gold-soft: #d9b878;
  --cream: #faf7f2;
  --cream-2: #f3eee6;
  --white: #ffffff;
  --gray: #6f6a63;
  --line: rgba(20, 20, 20, 0.12);
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Jost', 'Helvetica Neue', Arial, sans-serif;
  --shadow: 0 20px 50px rgba(20, 20, 20, 0.12);
  --radius: 4px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
select { font-family: inherit; }
h1, h2, h3, h4, .serif { font-family: var(--serif); font-weight: 500; }

.container { width: min(1240px, 92%); margin: 0 auto; }
.center { text-align: center; margin-top: 2rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.95rem 2.2rem;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  text-align: center;
}
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--gold); color: #fff; border-color: var(--gold); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--gold); }
.btn--gold { background: var(--gold); color: #fff; }
.btn--gold:hover { background: var(--ink); }
.btn--outline { border: 1px solid var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--block { width: 100%; }
.btn--sm { padding: 0.65rem 1.3rem; }

/* ---------- Section headers ---------- */
.section { padding: 5.5rem 0; }
.section--alt { background: var(--cream); }
.section--dark { background: var(--ink); }
.section__eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
  margin-bottom: 0.7rem;
}
.section--dark .section__eyebrow { color: var(--gold-soft); }
.section__title {
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  text-align: center;
  margin-bottom: 1.1rem;
  letter-spacing: 0.01em;
}
.section__title--light { color: #fff; }
.section__lede {
  text-align: center;
  color: var(--gray);
  max-width: 620px;
  margin: 0 auto 2.5rem;
  font-weight: 300;
  font-size: 1rem;
}
.link { font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; position: relative; padding-bottom: 3px; }
.link::after { content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: currentColor; transform: scaleX(0.4); transform-origin: left; transition: transform 0.3s ease; }
.link:hover::after { transform: scaleX(1); }
.link--gold { color: var(--gold-soft); }
.link--dark { color: var(--ink); }

/* ---------- Trust bar ---------- */
.trustbar { background: var(--ink); color: #d9d4cb; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; }
.trustbar__inner {
  width: min(1240px, 92%); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.55rem 0;
}
.trustbar__item { display: inline-flex; align-items: center; gap: 0.4rem; }
.trustbar__item:not(:last-child)::after { content: '·'; margin-left: 0.9rem; color: var(--gold); }
.trustbar__right { display: flex; gap: 1.4rem; align-items: center; }
.trustbar__consult { color: var(--gold-soft); }
.trustbar__phone { color: #d9d4cb; }

/* ---------- Announcement ---------- */
.announce { background: linear-gradient(90deg, #1c1c1c, #3a2c14, #1c1c1c); color: #fff; }
.announce__inner {
  width: min(1240px, 92%); margin: 0 auto;
  display: flex; align-items: center; justify-content: center; gap: 1.5rem;
  padding: 0.55rem 2rem; position: relative;
}
.announce__label { font-family: var(--serif); font-size: 1.05rem; letter-spacing: 0.04em; }
.announce__timer { display: flex; align-items: center; gap: 0.4rem; }
.t-box { display: inline-flex; align-items: baseline; gap: 0.3rem; }
.t-box b { font-family: var(--sans); font-size: 1rem; color: var(--gold-soft); font-weight: 600; min-width: 1.7rem; text-align: center; }
.t-box span { font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; color: #cfc9be; }
.t-sep { color: var(--gold-soft); font-weight: 600; }
.announce__close { position: absolute; right: 1rem; color: #fff; font-size: 1rem; opacity: 0.7; }
.announce__close:hover { opacity: 1; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s ease;
}
.header.scrolled { box-shadow: 0 8px 30px rgba(20, 20, 20, 0.08); }
.header__inner {
  width: min(1400px, 94%); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.05rem 0;
}
.logo { font-family: var(--serif); font-size: 1.5rem; letter-spacing: 0.22em; font-weight: 700; color: var(--ink); white-space: nowrap; }
.logo span { color: var(--gold); font-weight: 500; }
.nav { display: flex; gap: 2rem; }
.nav__link { font-size: 0.76rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500; color: var(--ink); position: relative; padding: 0.3rem 0; }
.nav__link::after { content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: var(--gold); transform: scaleX(0); transition: transform 0.3s ease; }
.nav__link:hover::after { transform: scaleX(1); }
.header__actions { display: flex; align-items: center; gap: 0.4rem; }
.icon-btn { position: relative; width: 42px; height: 42px; display: grid; place-items: center; color: var(--ink); border-radius: 50%; transition: background 0.2s ease; }
.icon-btn:hover { background: var(--cream-2); }
.icon-btn svg { width: 21px; height: 21px; }
.badge {
  position: absolute; top: 4px; right: 2px;
  min-width: 17px; height: 17px; padding: 0 4px;
  background: var(--gold); color: #fff; border-radius: 50%;
  font-size: 0.62rem; font-weight: 600;
  display: grid; place-items: center;
}
.hamburger { display: none; flex-direction: column; gap: 5px; width: 40px; height: 40px; justify-content: center; align-items: center; }
.hamburger span { width: 22px; height: 1.6px; background: var(--ink); transition: all 0.3s; }

/* ---------- Hero ---------- */
.hero { position: relative; height: 78vh; min-height: 520px; overflow: hidden; background: #111; }
.hero__slides { height: 100%; }
.hero__slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.2s ease, transform 7s ease;
  transform: scale(1.08);
  display: flex; align-items: center;
}
.hero__slide.active { opacity: 1; transform: scale(1); }
.hero__slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,10,10,0.65) 0%, rgba(10,10,10,0.25) 55%, rgba(10,10,10,0.05) 100%); }
.hero__content { position: relative; z-index: 2; width: min(1240px, 92%); margin: 0 auto; color: #fff; max-width: 640px; }
.hero__eyebrow { font-size: 0.72rem; letter-spacing: 0.34em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 1rem; }
.hero__title { font-size: clamp(2.4rem, 5vw, 4.1rem); line-height: 1.08; margin-bottom: 1.2rem; }
.hero__sub { font-size: 1.05rem; font-weight: 300; max-width: 460px; margin-bottom: 2rem; color: #eee; }
.hero__nav {
  position: absolute; bottom: 2.4rem; left: 50%; transform: translateX(-50%); z-index: 3;
  display: flex; align-items: center; gap: 1.4rem;
}
.hero__arrow {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.6); color: #fff;
  font-size: 1.6rem; line-height: 1;
  display: grid; place-items: center;
  transition: all 0.3s ease; background: rgba(0,0,0,0.15);
}
.hero__arrow:hover { background: var(--gold); border-color: var(--gold); }
.hero__dots { display: flex; gap: 0.6rem; }
.hero__dots button { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.4); transition: all 0.3s ease; }
.hero__dots button.on { background: var(--gold-soft); transform: scale(1.25); }

/* ---------- Category grid ---------- */
.catgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.catcard { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4/3; display: block; }
.catcard img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; }
.catcard:hover img { transform: scale(1.07); }
.catcard::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,10,10,0.55), transparent 60%); }
.catcard__label {
  position: absolute; left: 1.3rem; bottom: 1.1rem; z-index: 2;
  color: #fff; font-family: var(--serif); font-size: 1.35rem; letter-spacing: 0.04em;
}

/* ---------- Filters ---------- */
.filters { display: flex; flex-direction: column; gap: 1.1rem; margin-bottom: 2rem; }
.filters__chips { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; }
.chip {
  padding: 0.5rem 1.15rem; border: 1px solid var(--line); border-radius: 40px;
  font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray);
  transition: all 0.25s ease; background: #fff;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.filters__controls { display: flex; justify-content: center; gap: 0.8rem; flex-wrap: wrap; align-items: center; }
.select {
  padding: 0.6rem 1rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; font-size: 0.8rem; color: var(--ink); min-width: 170px;
}
.select:focus { outline: 1px solid var(--gold); }
.catalog-status { text-align: center; font-size: 0.82rem; color: var(--gray); margin-bottom: 1.6rem; letter-spacing: 0.05em; }

/* ---------- Product grid ---------- */
.prodgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  animation: fadeUp 0.5s ease both;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.card__media { position: relative; aspect-ratio: 1/1; background: var(--cream); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.card:hover .card__media img { transform: scale(1.05); }
.card__badge {
  position: absolute; top: 0.8rem; left: 0.8rem; z-index: 2;
  background: var(--ink); color: #fff; font-size: 0.6rem; letter-spacing: 0.14em;
  text-transform: uppercase; padding: 0.28rem 0.6rem; border-radius: 2px;
}
.card__quick {
  position: absolute; bottom: 0.8rem; left: 50%; transform: translate(-50%, 12px);
  background: rgba(255,255,255,0.94); color: var(--ink);
  font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500;
  padding: 0.55rem 1.2rem; border-radius: 40px; opacity: 0; transition: all 0.3s ease;
  border: 1px solid var(--line); white-space: nowrap;
}
.card:hover .card__quick { opacity: 1; transform: translate(-50%, 0); }
.card__heart {
  position: absolute; top: 0.7rem; right: 0.7rem; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.9);
  display: grid; place-items: center; color: var(--ink); transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.card__heart svg { width: 18px; height: 18px; }
.card__heart.on { color: #fff; background: var(--gold); }
.card__body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: 0.35rem; flex: 1; }
.card__cat { font-size: 0.64rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.card__name { font-family: var(--serif); font-size: 0.98rem; line-height: 1.35; min-height: 2.6em; }
.card__meta { font-size: 0.78rem; color: var(--gray); font-weight: 300; }
.card__row { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 0.6rem; }
.card__price { font-family: var(--serif); font-size: 1.15rem; }
.card__add {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; transition: all 0.25s ease; color: var(--ink);
}
.card__add:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.card__add svg { width: 15px; height: 15px; }

/* ---------- Collections ---------- */
.coll-track-wrap { overflow: hidden; width: min(1240px, 92%); margin: 0 auto; }
.coll-track { display: flex; gap: 1.2rem; transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.collcard {
  flex: 0 0 30%; min-width: 300px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.collcard img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.collcard__body { padding: 1.2rem 1.3rem 1.4rem; }
.collcard__body h3 { font-size: 1.25rem; margin-bottom: 0.4rem; }
.collcard__body p { font-size: 0.86rem; color: var(--gray); font-weight: 300; margin-bottom: 0.9rem; }
.coll-arrow {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); color: var(--ink);
  font-size: 1.5rem; margin: 0 0.5rem; transition: all 0.25s ease; background: #fff;
}
.coll-arrow:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Split diamonds / gemstones ---------- */
.section--split { padding: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; }
.split__panel { padding: 4.5rem 5%; }
.split__panel--dark { background: var(--ink); color: #fff; }
.split__panel--light { background: var(--cream); }
.split__title { font-size: 1.7rem; margin-bottom: 0.8rem; }
.split__text { color: var(--gray); font-weight: 300; margin-bottom: 1.4rem; }
.split__panel--dark .split__text { color: #b9b4aa; }
.split__links { display: flex; flex-wrap: wrap; gap: 0.8rem 1.6rem; }

/* ---------- Settings ---------- */
.setgrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.2rem; }
.setcard { text-align: center; }
.setcard img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: var(--radius); margin-bottom: 0.8rem; }
.setcard h4 { font-size: 0.92rem; margin-bottom: 0.4rem; }

/* ---------- Education ---------- */
.edugrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.educard { text-align: center; padding: 2rem 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: all 0.3s ease; }
.educard:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.educard__icon {
  width: 74px; height: 74px; border-radius: 50%; margin: 0 auto 1.1rem;
  display: grid; place-items: center;
  color: #fff; font-family: var(--serif); font-size: 2rem;
}
.educard h4 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.educard p { font-size: 0.86rem; color: var(--gray); font-weight: 300; }

/* ---------- Banners ---------- */
.banners { display: grid; grid-template-columns: 1fr 1fr; }
.banner { background-size: cover; background-position: center; position: relative; min-height: 400px; display: flex; align-items: flex-end; }
.banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,10,10,0.6), rgba(10,10,10,0.05)); }
.banner__inner { position: relative; z-index: 2; padding: 2.4rem; color: #fff; }
.banner__title { font-size: 1.7rem; margin-bottom: 0.5rem; }
.banner__text { font-weight: 300; color: #eee; max-width: 380px; margin-bottom: 1.3rem; font-size: 0.95rem; }

/* ---------- Testimonials ---------- */
.testi { display: flex; align-items: center; gap: 1.2rem; margin-top: 1rem; }
.testi__viewport { flex: 1; overflow: hidden; }
.testi__track { display: flex; transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.testi__slide { flex: 0 0 100%; text-align: center; padding: 1rem 8%; }
.testi__slide blockquote { font-family: var(--serif); font-style: italic; font-size: clamp(1.05rem, 2vw, 1.4rem); line-height: 1.7; color: #eae6dd; margin-bottom: 1.2rem; }
.testi__slide figcaption { font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-soft); }

/* ---------- Commitment ---------- */
.commit { padding: 5rem 0; background: var(--cream-2); }
.commit__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 2.5rem; }
.commit__item { text-align: center; }
.commit__icon {
  width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 1.1rem;
  background: var(--ink); color: var(--gold-soft);
  display: grid; place-items: center;
}
.commit__icon svg { width: 32px; height: 32px; }
.commit__item h4 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.commit__item p { font-size: 0.87rem; color: var(--gray); font-weight: 300; max-width: 300px; margin: 0 auto; }

/* ---------- Newsletter ---------- */
.newsletter { padding: 4.5rem 0; background: linear-gradient(120deg, #1c1c1c, #2c2417); color: #fff; text-align: center; }
.newsletter__title { font-size: 1.9rem; margin-bottom: 0.6rem; }
.newsletter__text { color: #cfc9be; font-weight: 300; max-width: 520px; margin: 0 auto 1.8rem; }
.newsletter__form { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; max-width: 520px; margin: 0 auto; }
.newsletter__input {
  flex: 1; min-width: 260px; padding: 0.95rem 1.2rem;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.25); color: #fff;
  font-family: inherit; font-size: 0.92rem; border-radius: var(--radius);
}
.newsletter__input::placeholder { color: #9a948a; }
.newsletter__input:focus { outline: 1px solid var(--gold-soft); }
.newsletter__ok { margin-top: 1.1rem; color: var(--gold-soft); letter-spacing: 0.04em; }

/* ---------- Footer ---------- */
.footer { background: #101010; color: #b9b4aa; padding: 4rem 0 2rem; font-size: 0.88rem; font-weight: 300; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; }
.logo--footer { color: #fff; font-size: 1.3rem; margin-bottom: 1rem; display: inline-block; }
.footer__about { margin-bottom: 1.3rem; max-width: 300px; }
.footer__social { display: flex; gap: 0.8rem; }
.footer__social a {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2);
  display: grid; place-items: center; transition: all 0.25s ease;
}
.footer__social a:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
.footer__social svg { width: 17px; height: 17px; }
.footer__title { color: #fff; font-size: 0.85rem; letter-spacing: 0.16em; text-transform: uppercase; font-family: var(--sans); font-weight: 500; margin-bottom: 1.1rem; }
.footer__list { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer__list a:hover { color: var(--gold-soft); }
.footer__feed { margin-top: 1.2rem; font-size: 0.76rem; color: var(--gold-soft); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.08); margin-top: 2.5rem; padding-top: 1.5rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.78rem; color: #7d786f; }
.footer__bottom a { color: var(--gold-soft); }

/* ---------- Overlays ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(12, 12, 12, 0.55); backdrop-filter: blur(3px);
  display: none; align-items: center; justify-content: center;
}
.overlay.open { display: flex; animation: fadeIn 0.25s ease; }
.overlay__close { position: absolute; top: 1.1rem; right: 1.3rem; font-size: 1.8rem; color: var(--ink); line-height: 1; z-index: 3; transition: transform 0.25s; }
.overlay__close:hover { transform: rotate(90deg); }
.search { background: #fff; width: min(680px, 92%); padding: 3rem 2.2rem 2.4rem; border-radius: var(--radius); position: relative; }
.search__title { text-align: center; font-size: 1.5rem; margin-bottom: 1.4rem; }
.search__box { display: flex; gap: 0.7rem; }
.search__input { flex: 1; padding: 0.95rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); font-family: inherit; font-size: 0.95rem; }
.search__input:focus { outline: 1px solid var(--gold); }
.search__results { margin-top: 1.4rem; max-height: 46vh; overflow-y: auto; display: flex; flex-direction: column; gap: 0.6rem; }
.search__result { display: flex; gap: 0.9rem; align-items: center; padding: 0.6rem; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; transition: background 0.2s; }
.search__result:hover { background: var(--cream); }
.search__result img { width: 52px; height: 52px; object-fit: cover; border-radius: 4px; }
.search__result .sr-name { font-family: var(--serif); font-size: 0.92rem; }
.search__result .sr-price { color: var(--gold); font-size: 0.85rem; margin-left: auto; white-space: nowrap; }

/* Drawers */
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 100;
  width: min(430px, 100%); background: #fff;
  display: flex; flex-direction: column;
  transform: translateX(105%); transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.drawer.open { transform: translateX(0); }
.drawer__header { display: flex; align-items: center; justify-content: space-between; padding: 1.3rem 1.5rem; border-bottom: 1px solid var(--line); }
.drawer__header h3 { font-size: 1.15rem; }
.drawer__header .overlay__close { position: static; }
.drawer__body { flex: 1; overflow-y: auto; padding: 1.2rem 1.5rem; }
.drawer__empty { text-align: center; color: var(--gray); padding: 2.5rem 1rem; }
.drawer__footer { padding: 1.2rem 1.5rem; border-top: 1px solid var(--line); background: var(--cream); }
.drawer__total { display: flex; justify-content: space-between; font-family: var(--serif); font-size: 1.1rem; margin-bottom: 0.9rem; }
.drawer__fine { font-size: 0.72rem; color: var(--gray); text-align: center; margin-top: 0.7rem; }
.cart-item { display: flex; gap: 0.9rem; padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
.cart-item img { width: 64px; height: 64px; object-fit: cover; border-radius: 4px; }
.cart-item__name { font-family: var(--serif); font-size: 0.9rem; line-height: 1.3; }
.cart-item__meta { font-size: 0.75rem; color: var(--gray); }
.cart-item__price { color: var(--gold); font-size: 0.92rem; margin-top: 0.2rem; }
.cart-item__remove { margin-left: auto; color: var(--gray); font-size: 0.8rem; align-self: flex-start; }
.cart-item__remove:hover { color: #c0392b; }

/* Modal */
.modal { background: #fff; width: min(440px, 92%); padding: 2.6rem 2.2rem; border-radius: var(--radius); position: relative; text-align: center; }
.modal__title { font-size: 1.5rem; margin-bottom: 0.5rem; }
.modal__text { color: var(--gray); font-weight: 300; margin-bottom: 1.4rem; font-size: 0.9rem; }
.modal__input { width: 100%; padding: 0.9rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); font-family: inherit; font-size: 0.92rem; margin-bottom: 0.8rem; }
.modal__input:focus { outline: 1px solid var(--gold); }
.modal__fine { font-size: 0.78rem; color: var(--gray); margin-top: 1rem; }
.modal__fine a { color: var(--gold); }
.modal__divider { display: flex; align-items: center; gap: 0.8rem; margin: 1.3rem 0; color: var(--gray); font-size: 0.68rem; letter-spacing: 0.25em; text-transform: uppercase; }
.modal__divider::before, .modal__divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.modal__status { font-size: 0.8rem; margin-top: 0.9rem; font-weight: 300; }
.modal__status.is-ok { color: #2e7d32; }
.modal__status.is-error { color: #c0392b; }
.bio-icon { width: 18px; height: 18px; margin-right: 0.55rem; vertical-align: -3px; }
#bioBtn { display: inline-flex; align-items: center; justify-content: center; }
#bioBtn[disabled] { opacity: 0.55; cursor: not-allowed; }
.modal--gift { text-align: center; }
.modal--gift::before {
  content: '\2726'; display: block; font-size: 2.4rem; color: var(--gold);
  margin-bottom: 0.4rem;
}

/* Quick view */
.qv { background: #fff; width: min(920px, 94%); max-height: 90vh; overflow-y: auto; border-radius: var(--radius); position: relative; display: grid; grid-template-columns: 1fr 1fr; }
.qv__media { background: var(--cream); display: grid; place-items: center; padding: 2rem; }
.qv__media img { max-height: 460px; width: 100%; object-fit: contain; }
.qv__body { padding: 2.4rem 2.2rem; }
.qv__cat { font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.qv__name { font-size: 1.45rem; line-height: 1.3; margin: 0.4rem 0 0.8rem; }
.qv__price { font-family: var(--serif); font-size: 1.7rem; margin-bottom: 1.1rem; }
.qv__specs { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.2rem; }
.qv__spec { border: 1px solid var(--line); border-radius: 30px; padding: 0.35rem 0.9rem; font-size: 0.75rem; letter-spacing: 0.05em; }
.qv__desc { font-size: 0.9rem; color: var(--gray); font-weight: 300; margin-bottom: 1.4rem; }
.qv__highlights { list-style: none; margin-bottom: 1.4rem; }
.qv__highlights li { font-size: 0.85rem; padding: 0.3rem 0; display: flex; gap: 0.5rem; }
.qv__highlights li::before { content: '\2713'; color: var(--gold); }
.qv__actions { display: flex; gap: 0.7rem; }
.qv__actions .btn { flex: 1; }
.qv__actions .btn--heart { flex: 0 0 auto; width: 48px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); }
.qv__actions .btn--heart.on { background: var(--gold); color: #fff; border-color: var(--gold); }
.qv__footer { font-size: 0.72rem; color: var(--gray); margin-top: 1.2rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.qv__cert { margin-top: 1rem; padding: 0.9rem; background: var(--cream); border-radius: var(--radius); font-size: 0.8rem; }
.qv__cert b { color: var(--ink); }

/* Mobile nav */
.mnav {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 100; width: min(320px, 85%);
  background: #fff; padding: 3rem 2rem; display: flex; flex-direction: column; gap: 1.1rem;
  transform: translateX(-105%); transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.mnav.open { transform: translateX(0); }
.mnav .overlay__close { position: static; align-self: flex-end; }
.mnav__link { font-size: 0.95rem; letter-spacing: 0.12em; text-transform: uppercase; padding: 0.6rem 0; border-bottom: 1px solid var(--line); }

/* Backdrop + toast */
.backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(12,12,12,0.5); opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.backdrop.open { opacity: 1; pointer-events: auto; }
.toast {
  position: fixed; bottom: 2rem; left: 50%; transform: translate(-50%, 20px); z-index: 200;
  background: var(--ink); color: #fff; padding: 0.85rem 1.6rem; border-radius: 40px;
  font-size: 0.85rem; letter-spacing: 0.05em; opacity: 0; transition: all 0.35s ease; pointer-events: none;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25); white-space: nowrap;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- CD Agent chat ---------- */
.chat-launcher {
  position: fixed; bottom: 1.4rem; right: 1.4rem; z-index: 120;
  display: flex; align-items: center; gap: 0.55rem;
  background: var(--gold); color: #fff; border-radius: 50px;
  padding: 0.85rem 1.4rem; box-shadow: var(--shadow);
  font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500;
  transition: background 0.3s, transform 0.2s;
}
.chat-launcher:hover { background: var(--ink); transform: translateY(-2px); }
.chat-launcher__icon { width: 20px; height: 20px; }
.chat-launcher__label { line-height: 1; }
.chat-launcher__dot {
  position: absolute; top: -4px; right: -4px; width: 12px; height: 12px;
  background: #d64545; border: 2px solid #fff; border-radius: 50%;
}
.chat {
  position: fixed; bottom: 1.4rem; right: 1.4rem; z-index: 121;
  width: min(400px, calc(100vw - 1.8rem)); height: min(560px, calc(100vh - 6rem));
  background: #fff; border-radius: 14px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; overflow: hidden;
  transform: translateY(16px) scale(0.98); opacity: 0; pointer-events: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.chat.open { transform: translateY(0) scale(1); opacity: 1; pointer-events: auto; }
.chat__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 1.3rem; background: var(--ink); color: #fff;
}
.chat__header .overlay__close { position: static; color: #fff; }
.chat__title { font-size: 1.05rem; letter-spacing: 0.06em; }
.chat__status { font-size: 0.72rem; color: var(--gold-soft); letter-spacing: 0.04em; }
.chat__body { flex: 1; overflow-y: auto; padding: 1.1rem 1.2rem; display: flex; flex-direction: column; gap: 0.8rem; background: var(--cream); }
.chat__empty { text-align: center; color: var(--gray); margin: auto; font-size: 0.88rem; }
.chat__msg { max-width: 82%; display: flex; flex-direction: column; gap: 0.2rem; }
.chat__msg--agent { align-self: flex-start; }
.chat__msg--user { align-self: flex-end; align-items: flex-end; }
.chat__meta { font-size: 0.64rem; letter-spacing: 0.05em; color: var(--gray); text-transform: uppercase; }
.chat__msg--user .chat__meta { color: var(--gold); }
.chat__text {
  padding: 0.7rem 0.95rem; font-size: 0.9rem; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word;
}
.chat__msg--agent .chat__text { background: #fff; border: 1px solid var(--line); border-radius: 4px 14px 14px 14px; }
.chat__msg--user .chat__text { background: var(--gold); color: #fff; border-radius: 14px 4px 14px 14px; }
.chat__form { display: flex; gap: 0.6rem; padding: 0.9rem 1rem; border-top: 1px solid var(--line); background: #fff; }
.chat__input {
  flex: 1; padding: 0.75rem 1rem; border: 1px solid var(--line); border-radius: 40px;
  font-family: inherit; font-size: 0.92rem;
}
.chat__input:focus { outline: 1px solid var(--gold); }
.chat__send { padding: 0.7rem 1.4rem; border-radius: 40px; white-space: nowrap; }
.chat__fine { padding: 0.55rem 1.2rem; background: var(--cream-2); color: var(--gray); font-size: 0.7rem; letter-spacing: 0.03em; text-align: center; }

/* ---------- Animations ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .prodgrid { grid-template-columns: repeat(3, 1fr); }
  .setgrid { grid-template-columns: repeat(3, 1fr); }
  .edugrid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .hamburger { display: flex; }
  .trustbar__item:not(:first-child) { display: none; }
  .trustbar__right { display: none; }
  .catgrid { grid-template-columns: repeat(2, 1fr); }
  .split, .banners { grid-template-columns: 1fr; }
  .commit__grid { grid-template-columns: 1fr; }
  .qv { grid-template-columns: 1fr; }
  .prodgrid { grid-template-columns: repeat(2, 1fr); }
  .hero { height: 66vh; min-height: 480px; }

  /* compact touch header */
  .header__inner { padding: 0.7rem 0; gap: 0.4rem; }
  .logo { font-size: 1.2rem; letter-spacing: 0.16em; flex: 1; text-align: center; white-space: nowrap; }
  .icon-btn { width: 38px; height: 38px; }
  .icon-btn svg { width: 19px; height: 19px; }
  .hamburger { width: 36px; height: 36px; }
  .badge { top: 2px; right: 0; min-width: 15px; height: 15px; font-size: 0.56rem; }
}
@media (max-width: 640px) {
  /* announcement bar wraps gracefully on narrow screens */
  .announce__inner { flex-wrap: wrap; gap: 0.4rem 0.9rem; padding: 0.5rem 2.4rem 0.5rem 1rem; text-align: center; justify-content: center; }
  .announce__label { font-size: 0.92rem; }
  .t-box b { font-size: 0.9rem; min-width: 1.35rem; }
  .t-box span { font-size: 0.52rem; }
  .t-sep { margin: 0 -0.15rem; }

  /* banners slim down on mobile */
  .banner { min-height: 320px; }
  .banner__inner { padding: 1.6rem 1.3rem; }
  .banner__title { font-size: 1.4rem; }

  /* footer stacks into a single column */
  .footer { padding: 3rem 0 1.6rem; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer__bottom { flex-direction: column; justify-content: center; text-align: center; gap: 0.4rem; }
}
@media (max-width: 540px) {
  .prodgrid { grid-template-columns: repeat(2, 1fr); gap: 0.7rem; }
  .card__body { padding: 0.7rem 0.75rem 0.9rem; gap: 0.3rem; }
  .card__name { font-size: 0.86rem; min-height: 2.5em; }
  .card__cat { font-size: 0.56rem; letter-spacing: 0.14em; }
  .card__meta { font-size: 0.68rem; }
  .card__price { font-size: 1rem; }
  .card__badge { font-size: 0.52rem; padding: 0.22rem 0.5rem; top: 0.5rem; left: 0.5rem; }
  .card__heart { width: 32px; height: 32px; top: 0.45rem; right: 0.45rem; }
  .card__heart svg { width: 16px; height: 16px; }
  .card__quick { font-size: 0.6rem; padding: 0.45rem 0.9rem; }
  .card__add { width: 30px; height: 30px; }
  .card__add svg { width: 13px; height: 13px; }
  .setgrid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .setcard h4 { font-size: 0.82rem; }
  .filters__controls { flex-direction: column; align-items: stretch; }
  .select { width: 100%; }
  .section { padding: 3.6rem 0; }
  .qv__body { padding: 1.6rem 1.2rem 2rem; }
  .qv__media { padding: 1rem; }
  .qv__media img { max-height: 320px; }
}
@media (max-width: 380px) {
  .prodgrid { gap: 0.55rem; }
  .card__name { font-size: 0.8rem; }
  .card__price { font-size: 0.92rem; }
  .header__actions { gap: 0.1rem; }
  .icon-btn { width: 34px; height: 34px; }
  .logo { font-size: 1.05rem; letter-spacing: 0.12em; }
}

/* Touch devices: always reveal the Quick View button + comfortable targets */
@media (hover: none) and (pointer: coarse) {
  .card__quick { opacity: 1; transform: translate(-50%, 0); }
  .card__heart, .card__quick, .card__add { min-width: 40px; min-height: 40px; }
}
