/* =================================================================
   EleXus Carpet — Demo styles
   Palette: warm dark bg, gold accent, cream text
   ================================================================= */

:root {
  --bg:        #11100e;   /* deep warm dark */
  --bg-alt:    #1a1815;   /* slightly lighter panel */
  --gold:      #c9a14a;   /* accent */
  --gold-soft: #e0c684;   /* hover/light gold */
  --cream:     #f6f1e7;   /* primary text */
  --beige:     #b6ac99;   /* secondary text */
  --line:      rgba(201,161,74,.18);
  --shadow:    0 20px 45px rgba(0,0,0,.45);
  --radius:    14px;
  --maxw:      1180px;
  --header-h:  72px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 110px; }

body {
  font-family: 'Jost', system-ui, sans-serif;
  background: var(--bg);
  color: var(--cream);
  line-height: 1.6;
  font-weight: 400; /* 400 reads clearer than 300 on dark, esp. for o'/g' */
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* Keyboard accessibility: visible focus ring (mouse clicks stay clean) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.chip:focus-visible,
.swatch:focus-visible,
.pd-thumb:focus-visible {
  outline: 2px solid var(--gold-soft);
  outline-offset: 2px;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 { font-family: 'Cormorant Garamond', serif; font-weight: 600; line-height: 1.15; }

.accent { color: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 50px;
  font-family: 'Jost', sans-serif;
  font-size: .92rem;
  font-weight: 500;
  letter-spacing: .04em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn--gold { background: var(--gold); color: #1a1408; box-shadow: 0 8px 22px rgba(201,161,74,.28); }
.btn--gold:hover { background: var(--gold-soft); box-shadow: 0 12px 28px rgba(201,161,74,.4); }

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

.btn--ghost { background: transparent; border-color: var(--line); color: var(--beige); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); transform: none; }

.btn--lg { padding: 15px 34px; font-size: 1rem; }
.btn--block { width: 100%; }

/* ---------- Demo banner ---------- */
.demo-banner {
  background: var(--gold);
  color: #1a1408;
  text-align: center;
  font-size: .8rem;
  letter-spacing: .03em;
  padding: 7px 16px;
  font-weight: 500;
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(17,16,14,.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: background .3s ease;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--cream);
}
.logo__x { color: var(--gold); }
.logo--sm { font-size: 1.4rem; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav__link {
  font-size: .92rem;
  letter-spacing: .03em;
  color: var(--cream);
  position: relative;
  transition: color .2s ease;
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1.5px;
  background: var(--gold);
  transition: width .25s ease;
}
.nav__link:hover { color: var(--gold); }
.nav__link:hover::after { width: 100%; }
.nav__cta { margin-left: 6px; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  width: 26px; height: 2px;
  background: var(--cream);
  transition: transform .3s ease, opacity .3s ease;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(100vh - 110px);
  display: flex;
  align-items: center;
  /* CLIENT: replace this Unsplash background with a real interior photo */
  background: url('https://images.unsplash.com/photo-1571508601891-ca5e7a713859?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(17,16,14,.92) 0%, rgba(17,16,14,.62) 55%, rgba(17,16,14,.4) 100%);
}
.hero__content { position: relative; z-index: 2; max-width: 720px; padding-top: 40px; padding-bottom: 60px; }
.hero__eyebrow {
  color: var(--gold);
  letter-spacing: .22em;
  text-transform: uppercase;
  font-size: .82rem;
  margin-bottom: 18px;
}
.hero__title { font-size: clamp(2.4rem, 6vw, 4.4rem); letter-spacing: .01em; margin-bottom: 22px; }
.hero__subtitle { font-size: 1.12rem; color: var(--beige); max-width: 560px; margin-bottom: 36px; }
.hero__buttons { display: flex; flex-wrap: wrap; gap: 16px; }
.hero__scroll {
  position: absolute;
  bottom: 24px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--beige);
  font-size: .78rem;
  letter-spacing: .12em;
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,8px); } }

/* ---------- Stats strip ---------- */
.stats { background: var(--bg-alt); border-block: 1px solid var(--line); }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
}
.stat { padding: 38px 16px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat__num { display: block; font-family: 'Cormorant Garamond', serif; font-size: 2.7rem; font-weight: 700; color: var(--gold); }
.stat__num--text { font-size: 2.4rem; }
.stat__label { color: var(--beige); letter-spacing: .04em; font-size: .95rem; }

/* ---------- Generic section ---------- */
.section { padding: 96px 0; }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section__eyebrow { color: var(--gold); letter-spacing: .2em; text-transform: uppercase; font-size: .8rem; margin-bottom: 12px; }
.section__title { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 14px; }
.section__lead { color: var(--beige); }

/* ---------- Filters ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 22px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 44px;
}
.filters__group { display: flex; flex-direction: column; gap: 8px; min-width: 160px; flex: 1; }
.filters__label { font-size: .82rem; color: var(--beige); letter-spacing: .04em; }
.filters__select {
  background: var(--bg);
  color: var(--cream);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font-family: 'Jost', sans-serif;
  font-size: .92rem;
  cursor: pointer;
}
.filters__select:focus { border-color: var(--gold); }
.filters__range { accent-color: var(--gold); cursor: pointer; }
#price-output { color: var(--gold); font-weight: 500; }

/* ---------- Products grid ---------- */
.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.product-card {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
  border-color: var(--gold);
}
/* 4/3 landscape suits rugs better than portrait; bg shows while loading */
.product-card__media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--bg); }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-card:hover .product-card__media img { transform: scale(1.07); }
.product-card__tag {
  position: absolute; top: 12px; left: 12px;
  background: var(--gold);
  color: #1a1408;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
  padding: 4px 11px;
  border-radius: 50px;
}
.product-card__tag--sale { background: #b5483a; color: #fff; }
.product-card__body { padding: 18px 18px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-card__name { font-size: 1.25rem; }
.product-card__name a { transition: color .2s ease; }
.product-card__name a:hover { color: var(--gold); }
.product-card__meta { color: var(--beige); font-size: .85rem; }
/* so'm price is primary */
.product-card__price { color: var(--gold); font-size: 1.15rem; font-family: 'Cormorant Garamond', serif; font-weight: 700; margin-top: 6px; }
/* margin-top:auto pins the button to the card bottom so buttons align across a row */
.product-card__btn { margin-top: auto; }

.products__empty {
  text-align: center;
  color: var(--beige);
  font-size: 1.3rem;
  font-family: 'Cormorant Garamond', serif;
  padding: 60px 0;
}

/* ---------- Features ---------- */
.features { background: var(--bg-alt); }
.features__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 26px;
  text-align: center;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--gold); }
.feature-card__icon { font-size: 2.6rem; margin-bottom: 16px; }
.feature-card__title { font-size: 1.4rem; margin-bottom: 10px; }
.feature-card__text { color: var(--beige); font-size: .94rem; }

/* ---------- Reviews ---------- */
.reviews__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review-card {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform .3s ease, box-shadow .3s ease;
}
.review-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.review-card__stars { color: var(--gold); letter-spacing: .15em; margin-bottom: 14px; }
.review-card__text { color: var(--cream); font-style: italic; margin-bottom: 22px; }
.review-card__author { display: flex; align-items: center; gap: 12px; }
.review-card__avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--gold);
  color: #1a1408;
  display: grid; place-items: center;
  font-weight: 600;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
}
.review-card__city { display: block; color: var(--beige); font-size: .82rem; }

/* ---------- About ---------- */
.about__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about__media img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; }
.about__text .section__title { text-align: left; }
.about__text p { color: var(--beige); margin-bottom: 16px; }
.about__list { margin: 8px 0 28px; display: flex; flex-direction: column; gap: 10px; }
.about__list li { position: relative; padding-left: 26px; color: var(--cream); }
.about__list li::before { content: '✦'; position: absolute; left: 0; color: var(--gold); }

/* ---------- Contact ---------- */
.contact { background: var(--bg-alt); }
.contact__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact__info .section__title { text-align: left; }
.contact__lead { color: var(--beige); margin-bottom: 22px; }
.contact__phone {
  display: inline-block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 26px;
}
.contact__details { display: flex; flex-direction: column; gap: 10px; color: var(--beige); }
.contact__details strong { color: var(--cream); }

.contact__form {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-row { display: flex; flex-direction: column; gap: 7px; }
.form-row label { font-size: .85rem; color: var(--beige); letter-spacing: .03em; }
.form-row input, .form-row textarea {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--cream);
  font-family: 'Jost', sans-serif;
  font-size: .95rem;
  resize: vertical;
}
.form-row input:focus, .form-row textarea:focus { border-color: var(--gold); }
.form-row input::placeholder, .form-row textarea::placeholder { color: #8a8170; }
.form-success { color: var(--gold-soft); text-align: center; font-size: .95rem; }

/* ---------- Footer ---------- */
.footer { background: var(--bg); border-top: 1px solid var(--line); padding-top: 56px; }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer__brand p { color: var(--beige); margin-top: 14px; max-width: 320px; }
.footer__col h4 { color: var(--cream); font-size: 1.2rem; margin-bottom: 16px; }
.footer__col a, .footer__col span { display: block; color: var(--beige); font-size: .92rem; margin-bottom: 9px; transition: color .2s ease; }
.footer__col a:hover { color: var(--gold); }
.footer__bottom { border-top: 1px solid var(--line); padding: 20px 0; }
.footer__bottom .container { display: flex; justify-content: space-between; align-items: center; color: var(--beige); font-size: .85rem; }
.footer__demo { color: var(--gold); }

/* =================================================================
   RESPONSIVE
   ================================================================= */
@media (max-width: 1024px) {
  .products { grid-template-columns: repeat(3, 1fr); }
  .features__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  /* Mobile nav */
  .hamburger { display: flex; }
  .nav {
    position: fixed;
    /* top & height are set precisely by JS from the header's real bottom
       (handles the demo banner being present, scrolled away, or wrapped) */
    top: var(--header-h);
    right: 0;
    width: min(78%, 320px);
    height: calc(100dvh - var(--header-h));
    background: var(--bg-alt);
    border-left: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 30px 28px;
    transform: translateX(100%);
    transition: transform .35s ease;
    box-shadow: var(--shadow);
  }
  .nav.is-open { transform: translateX(0); }
  .nav__link { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav__cta { width: 100%; margin: 14px 0 0; }

  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: none; }
  .stat:nth-child(odd) { border-left: none; }
  .stat:nth-child(even) { border-left: 1px solid var(--line); }

  .products { grid-template-columns: repeat(2, 1fr); }
  .reviews__grid { grid-template-columns: 1fr; }
  .about__inner, .contact__inner { grid-template-columns: 1fr; gap: 36px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 540px) {
  .section { padding: 64px 0; }
  .products { grid-template-columns: 1fr 1fr; gap: 16px; }
  .features__grid { grid-template-columns: 1fr; }
  .filters__group { min-width: 100%; }
  .hero__buttons { flex-direction: column; }
  .hero__buttons .btn { width: 100%; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__bottom .container { flex-direction: column; gap: 8px; }
  .product-card__name { font-size: 1.1rem; }
}

/* =================================================================
   ADD-ONS: visualizer, ornament, chips/swatches, modal, FAB, reveal
   ================================================================= */

/* ---------- Scroll-reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Oriental ornament divider ---------- */
.ornament { display: flex; align-items: center; justify-content: center; gap: 18px; max-width: 420px; margin: 0 auto; padding: 8px 24px; }
.ornament__line { height: 1px; flex: 1; background: linear-gradient(90deg, transparent, var(--gold)); }
.ornament__line:last-child { background: linear-gradient(90deg, var(--gold), transparent); }
.ornament__mark { color: var(--gold); font-size: 1.1rem; }

/* ---------- Before / After visualizer ---------- */
.ba {
  position: relative;
  max-width: 940px;
  margin: 0 auto;
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  user-select: none;
  cursor: ew-resize;
}
.ba__img { position: absolute; inset: 0; background: var(--bg-alt); }
.ba__img img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
/* the "before" layer is clipped from the right by JS (--pos) */
.ba__img--before { clip-path: inset(0 0 0 var(--pos, 50%)); }
.ba__badge {
  position: absolute; top: 16px;
  background: rgba(17,16,14,.78);
  color: var(--cream);
  font-size: .76rem;
  letter-spacing: .05em;
  padding: 5px 12px;
  border-radius: 50px;
  border: 1px solid var(--line);
}
.ba__badge--after  { left: 16px; }
.ba__badge--before { right: 16px; }
.ba__handle {
  position: absolute; top: 0; bottom: 0;
  left: var(--pos, 50%);
  width: 2px;
  background: var(--gold);
  transform: translateX(-50%);
  pointer-events: none;
}
.ba__grip {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--gold);
  color: #1a1408;
  display: grid; place-items: center;
  font-weight: 700;
  letter-spacing: -1px;
  box-shadow: 0 4px 14px rgba(0,0,0,.4);
}

/* ---------- Material chips ---------- */
.filters { flex-direction: column; align-items: stretch; gap: 22px; }
.filters__chips-row { display: flex; flex-wrap: wrap; gap: 30px; }
.filters__group--chips { flex: 1; min-width: 220px; }
.filters__controls { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 22px; border-top: 1px solid var(--line); padding-top: 22px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--beige);
  border-radius: 50px;
  padding: 8px 18px;
  font-family: 'Jost', sans-serif;
  font-size: .88rem;
  letter-spacing: .03em;
  cursor: pointer;
  transition: all .2s ease;
}
.chip:hover { border-color: var(--gold); color: var(--cream); }
.chip.is-active { background: var(--gold); border-color: var(--gold); color: #1a1408; font-weight: 500; }

/* ---------- Color swatches ---------- */
.swatches { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.swatch {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--sw, #555);
  border: 2px solid transparent;
  box-shadow: 0 0 0 1px var(--line);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
  padding: 0;
}
.swatch:hover { transform: scale(1.12); }
.swatch.is-active { box-shadow: 0 0 0 2px var(--gold); transform: scale(1.12); }
.swatch--all {
  width: auto; height: 34px;
  border-radius: 50px;
  background: var(--bg);
  color: var(--beige);
  font-family: 'Jost', sans-serif;
  font-size: .82rem;
  padding: 0 14px;
}
.swatch--all.is-active { box-shadow: 0 0 0 2px var(--gold); color: var(--gold); }

/* Card price block: so'm is primary (Uzbek buyers), USD is secondary */
.product-card__price-uzs { color: var(--beige); font-size: .82rem; margin-top: 0; }

/* ---------- Floating action buttons ---------- */
.fab { position: fixed; right: 22px; bottom: 22px; z-index: 150; display: flex; flex-direction: column; gap: 12px; }
.fab__btn {
  width: 54px; height: 54px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: #fff;
  box-shadow: 0 8px 22px rgba(0,0,0,.4);
  transition: transform .25s ease, box-shadow .25s ease;
}
.fab__btn:hover { transform: translateY(-3px) scale(1.05); }
.fab__btn--tg { background: #2aabee; }
.fab__btn--call { background: var(--gold); color: #1a1408; animation: pulse 2.4s infinite; }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(201,161,74,.5); }
  70%  { box-shadow: 0 0 0 16px rgba(201,161,74,0); }
  100% { box-shadow: 0 0 0 0 rgba(201,161,74,0); }
}

/* ---------- Responsive for add-ons ---------- */
@media (max-width: 820px) {
  .ba { aspect-ratio: 4/3; }
  .fab__btn { width: 50px; height: 50px; }
}

/* =================================================================
   MULTI-PAGE: nav active state, page hero, breadcrumb, CTA banner,
   pagination, product detail page
   ================================================================= */

/* Active nav link */
.nav__link.is-current { color: var(--gold); }
.nav__link.is-current::after { width: 100%; }

/* Page hero (inner pages) */
.page-hero { background: var(--bg-alt); border-bottom: 1px solid var(--line); padding: 54px 0 46px; }
.page-hero__title { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 10px; }
.page-hero__lead { color: var(--beige); max-width: 640px; }

/* Breadcrumb */
.breadcrumb { color: var(--beige); font-size: .85rem; letter-spacing: .03em; margin-bottom: 16px; }
.breadcrumb a { color: var(--beige); transition: color .2s ease; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { margin: 0 8px; color: #6f685a; }

/* Section CTA (center button under a grid) */
.section__cta { text-align: center; margin-top: 46px; }

/* CTA banner */
.cta-banner {
  background: linear-gradient(120deg, #1f1b14, #14130f);
  border-block: 1px solid var(--line);
  padding: 56px 0;
}
.cta-banner__inner { display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap; }
.cta-banner__title { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 6px; }
.cta-banner__text { color: var(--beige); }

/* Catalog result count */
.catalog__count { color: var(--beige); font-size: .9rem; margin-bottom: 20px; }

/* Pagination */
.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 46px; flex-wrap: wrap; }
.pagination__btn {
  min-width: 42px; height: 42px;
  padding: 0 12px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  color: var(--cream);
  border-radius: 8px;
  font-family: 'Jost', sans-serif;
  font-size: .95rem;
  cursor: pointer;
  transition: all .2s ease;
}
.pagination__btn:hover:not(:disabled) { border-color: var(--gold); color: var(--gold); }
.pagination__btn.is-active { background: var(--gold); border-color: var(--gold); color: #1a1408; font-weight: 600; }
.pagination__btn:disabled { opacity: .35; cursor: default; }

/* ---------- Product detail page ---------- */
.product-page { padding-top: 40px; }
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 8px; }

.product-detail__main { position: relative; aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--bg-alt); }
.product-detail__main img { width: 100%; height: 100%; object-fit: cover; }
.product-detail__main .product-card__tag { top: 14px; left: 14px; }

.product-detail__thumbs { display: flex; gap: 12px; margin-top: 14px; }
.pd-thumb {
  width: 84px; aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  background: none;
  padding: 0;
  cursor: pointer;
  transition: border-color .2s ease;
}
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumb.is-active { border-color: var(--gold); }

.product-detail__name { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 12px; }
.product-detail__price-block { display: flex; align-items: baseline; gap: 14px; margin-bottom: 20px; }
.product-detail__price { color: var(--gold); font-family: 'Cormorant Garamond', serif; font-size: 2.2rem; font-weight: 700; }
.product-detail__price-uzs { color: var(--beige); }
.product-detail__desc { color: var(--beige); margin-bottom: 24px; }

.product-detail__specs { border-top: 1px solid var(--line); margin-bottom: 24px; }
.product-detail__specs li { display: flex; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid var(--line); }
.product-detail__specs span { color: var(--beige); }
.product-detail__specs strong { color: var(--cream); font-weight: 500; }

.product-detail__perks { display: flex; flex-direction: column; gap: 9px; margin-bottom: 28px; }
.product-detail__perks li { color: var(--cream); font-size: .95rem; }

.product-detail__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.not-found { text-align: center; padding: 70px 0; display: flex; flex-direction: column; align-items: center; gap: 18px; }

@media (max-width: 820px) {
  .product-detail { grid-template-columns: 1fr; gap: 28px; }
  .cta-banner__inner { flex-direction: column; align-items: flex-start; }
}

/* =================================================================
   Graceful image fallback — if any photo fails to load, the broken
   icon is hidden and a subtle branded placeholder shows instead.
   Triggered by js/components.js adding .media--fallback to the parent.
   ================================================================= */
.media--fallback { position: relative; background: linear-gradient(135deg, #211c14, #14130f); }
.media--fallback::after {
  content: 'ELEXUS';
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: var(--gold);
  font-family: 'Cormorant Garamond', serif;
  letter-spacing: .3em;
  font-size: 1.1rem;
  opacity: .45;
}

/* Keep the floating buttons from sitting on top of footer text on phones */
@media (max-width: 540px) {
  .footer__bottom .container { padding-right: 76px; }
}
