/* ═══════════════════════════════════════════════
   IZA Boutique — style.css
   Font: Cormorant Garamond (display) + Jost (body)
   Palette: warm ivory, gold, deep terracotta
   ═══════════════════════════════════════════════ */

/* ── RESET & TOKENS ────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --ivory: #faf7f2;
  --ivory-dark: #f0ebe0;
  --gold: #c4965a;
  --gold-light: #e8c99a;
  --gold-dark: #9c7040;
  --terracotta: #a0522d;
  --deep: #46061f;
  --mid: #45372a;
  --light-text: #7a6c5e;
  --white: #ffffff;
  --wa-green: #25D366;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Jost', system-ui, sans-serif;

  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 18px;
  --radius-xl: 28px;

  --shadow-card: 0 2px 16px rgba(28, 20, 16, 0.08);
  --shadow-hover: 0 8px 36px rgba(28, 20, 16, 0.16);

  --nav-h: 68px;
  --section-pad: clamp(3rem, 6vw, 4rem);
  --grid-gap: 24px;
  --max-w: 1280px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--ivory);
  color: var(--deep);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

img {
  display: block;
  width: 100%;
  object-fit: cover;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ── UTILITY ───────────────────────────────── */
.section {
  padding: var(--section-pad) clamp(1rem, 4vw, 3rem);
  max-width: var(--max-w);
  margin: 0 auto;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.section-header {
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.section-header p {
  font-size: 1rem;
  color: var(--light-text);
  font-weight: 400;
}

/* ── BUTTONS ───────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all 0.25s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--deep);
  color: var(--ivory-dark);
  border: 1.5px solid var(--deep);
}

.btn-primary:hover {
  background: var(--mid);
  border-color: var(--mid);
}

.btn-outline {
  background: transparent;
  color: var(--deep);
  border: 1.5px solid var(--deep);
}

.btn-outline:hover {
  background: var(--deep);
  color: var(--ivory);
}

.btn-whatsapp {
  background: var(--wa-green);
  color: #fff;
  border: none;
  border-radius: 4px;
}

.btn-whatsapp:hover {
  background: #1da851;
}

.btn-lg {
  width: 100%;
  justify-content: center;
  padding: 16px 30px;
  font-size: 14px;
}

/* ── NAVBAR ────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1rem, 4vw, 3rem);
  background: rgba(250, 247, 242, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(196, 150, 90, 0.2);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--deep);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mid);
  font-weight: 500;
  position: relative;
  padding-bottom: 3px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a:hover {
  color: var(--deep);
}

.nav-links a:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--deep);
  transition: 0.3s;
}

.nav-drawer {
  display: none;
  flex-direction: column;
  gap: 0;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: var(--ivory);
  border-bottom: 1px solid var(--ivory-dark);
  z-index: 999;
  padding: 0.5rem 0;
}

.nav-drawer a {
  padding: 14px clamp(1rem, 4vw, 3rem);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid);
  border-bottom: 1px solid var(--ivory-dark);
}

.nav-drawer.open {
  display: flex;
}

/* ── HERO ──────────────────────────────────── */
.hero {
  min-height: calc(92vh - var(--nav-h));
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: var(--section-pad) clamp(1rem, 4vw, 3rem);
  background: var(--ivory);
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url(../../IZABoutique/images/home-bg.jpg);
  background-size: cover;
  background-attachment: fixed;
  /* background-image:
    radial-gradient(circle at 70% 40%, rgba(196, 150, 90, 0.12) 0%, transparent 60%),
    repeating-linear-gradient(45deg,
      transparent 0, transparent 24px,
      rgba(196, 150, 90, 0.045) 24px, rgba(196, 150, 90, 0.045) 25px); */
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
}

.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--deep);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 5;
  font-size: clamp(3.5rem, 8vw, 6.75rem);
  line-height: 1.05;
  color: var(--deep);
  margin-bottom: 1.5rem;
}

.hero-title em {
  font-style: italic;
  color: var(--gold-dark);
}

.hero-sub {
  font-size: 1rem;
  color: var(--mid);
  font-weight: 400;
  max-width: 420px;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.hero-side-text {
  position: absolute;
  right: 3rem;
  bottom: 3rem;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--light-dark);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

/* ── MARQUEE ───────────────────────────────── */
.marquee-strip {
  background: var(--deep);
  color: var(--gold-light);
  overflow: hidden;
  white-space: nowrap;
  padding: 14px 0;
}

.marquee-inner {
  display: inline-flex;
  gap: 0;
  animation: marquee 28s linear infinite;
}

.marquee-inner span {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0 20px;
}

.marquee-inner .dot {
  padding: 0;
  color: var(--gold);
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* ── CATEGORIES GRID ───────────────────────── */
.categories-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--grid-gap);
  align-items: start;
}

.cat-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  cursor: pointer;
}

.cat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.cat-card-img-wrap {
  aspect-ratio: 3/4;
  overflow: hidden;
}

.cat-card--tall .cat-card-img-wrap {
  aspect-ratio: 3/5;
}

.cat-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.cat-card:hover .cat-card-img-wrap img {
  transform: scale(1.04);
}

.cat-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.cat-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.cat-card-body p {
  font-size: 0.85rem;
  color: var(--light-text);
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.cat-link {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent, var(--gold-dark));
  font-weight: 500;
}

/* ── PRODUCT GRID ──────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--grid-gap);
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.product-card-img {
  aspect-ratio: 3/4;
  overflow: hidden;
  position: relative;
}

.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-card-img img {
  transform: scale(1.06);
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--deep);
  color: var(--ivory-dark);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
  font-family: var(--font-body);
  font-weight: 500;
}

.product-card-body {
  position: relative;
  padding: 1rem 1.25rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.product-card-id {
  font-size: 10px;
  color: var(--light-text);
  letter-spacing: 0.12em;
  font-weight: 500;
}

.product-card-name {
  font-family: var(--font-display);
  font-size: 1.135rem;
  font-weight: 600;
  line-height: 1.3;
  flex: 1;
}

.product-card-price {
  position: absolute;
  top: -10px; 
  right: 1rem;
  font-size: 1.125rem;
  color: var(--gold-dark);
  font-weight: 500;
  margin-top: 4px;
  background-color: var(--gold-light);
  padding: 0.015rem 0.75rem;
  transition: transform 0.3s ease;
  border-radius: 0.25rem;
}

.product-card:hover .product-card-price {
  transform: scale(1.1);
  color: var(--deep);
}

.product-card-wa {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 10px;
  background: var(--wa-green);
  color: #fff;
  border-radius: 4px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  transition: background 0.2s;
}

.product-card-wa:hover {
  background: #1da851;
}

/* ── ABOUT STRIP ───────────────────────────── */
.about-section {
    background: var(--ivory-dark);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    margin-top: 3rem;
}

.about-img-stack {
    position: relative;
    height: 500px;
}

.about-img-main {
    position: absolute;
    width: 75%;
    height: 80%;
    top: 0;
    left: 0;
    background: var(--rose-light);
    overflow: hidden;
}

.about-img-accent {
    position: absolute;
    width: 50%;
    height: 50%;
    bottom: 0;
    right: 0;
    background: var(--deep);
    overflow: hidden;
}

.about-text .section-label {
  color: var(--gold);
}
.about-text .section-title {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 600;
}
.about-desc {
    font-size: 1.1rem;
    line-height: 1.5;
    color: var(--mid);
    margin-top: 1.5rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border);
}

.stat-num {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--mid);
    font-weight: 600;
}

.stat-label {
    font-family: var(--font-ui);
    font-size: 0.62rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--mid);
    margin-top: 0.2rem;
}

.about-strip {
  background: var(--deep);
  color: var(--ivory);
  padding: var(--section-pad) clamp(1rem, 4vw, 3rem);
}

.about-strip-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.about-item {
  text-align: center;
}

.about-icon {
  font-size: 18px;
  color: var(--gold);
  display: block;
  margin-bottom: 1rem;
}

.about-item h4 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.about-item p {
  font-size: 1rem;
  color: rgba(250, 247, 242, 0.65);
  line-height: 1.6;
  font-weight: 300;
}


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

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .about-img-stack {
        height: 350px;
    }
}


/* ── CONTACT SECTION ───────────────────────── */
.contact-section {
  padding: var(--section-pad) clamp(1rem, 4vw, 3rem);
  max-width: var(--max-w);
  margin: 0 auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}

.contact-info h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  margin-bottom: 1.25rem;
  line-height: 1.15;
}

.contact-info h2 em {
  font-style: italic;
  color: var(--gold-dark);
}

.contact-desc {
  font-size: 1rem;
  color: var(--mid);
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.contact-card {
  background: var(--ivory-dark);
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem;
  line-height: 2;
}

.contact-card h4 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 0;
  line-height: normal;
}

.contact-card h5 {
  margin-bottom: 1rem;
  font-weight: 400;
}

.contact-card p {
  font-size: 1rem;
  color: var(--mid);
}

/* ── CATEGORY PAGE HERO ────────────────────── */
.cat-hero {
  background: var(--deep);
  color: var(--ivory);
  padding: clamp(3rem, 6vw, 5rem) clamp(1rem, 4vw, 3rem) clamp(2rem, 4vw, 3rem);
  position: relative;
  overflow: hidden;
}

.cat-hero::after {
  content: '';
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 10rem);
  color: rgba(250, 247, 242, 0.05);
  letter-spacing: 0.1em;
  pointer-events: none;
}

.cat-hero-content {
  max-width: var(--max-w);
  margin: 0 auto;
}

.breadcrumb {
  font-size: 12px;
  color: rgba(250, 247, 242, 0.5);
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
  display: inline-block;
  transition: color 0.2s;
}

.breadcrumb:hover {
  color: var(--gold-light);
}

.cat-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.cat-hero p {
  font-size: 1rem;
  color: rgba(250, 247, 242, 0.6);
  font-weight: 400;
}

/* ── FILTER BAR ────────────────────────────── */
.filter-bar {
  background: var(--ivory-dark);
  border-bottom: 1px solid rgba(196, 150, 90, 0.2);
  padding: 14px clamp(1rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--light-text);
}

.filter-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pill {
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid rgba(196, 150, 90, 0.35);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--mid);
  background: transparent;
  transition: all 0.2s;
}

.pill:hover,
.pill.active {
  background: var(--deep);
  color: var(--ivory-dark);
  border-color: var(--deep);
}

.result-count {
  font-size: 12px;
  color: var(--light-text);
}


/* ── FEATURED SECTION ──────────────────────── */
.featured-section {
  background: var(--ivory-dark);
  padding: var(--section-pad) clamp(1rem, 4vw, 3rem);
}

.featured-section .section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

/* ── FOOTER ────────────────────────────────── */
.footer {
  background: var(--deep);
  color: rgba(250, 247, 242, 0.4);
  padding: 2.5rem clamp(1rem, 4vw, 3rem);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  text-align: center;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  color: rgba(250, 247, 242, 0.7);
  margin-bottom: 0.5rem;
}

.footer-copy {
  font-size: 12px;
}

/* ── RESPONSIVE ────────────────────────────── */
@media (max-width: 900px) {
  .categories-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-strip-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero-side-text {
    display: none;
  }
}

@media (max-width: 620px) {
  .hero-bg-pattern {
    background-position: bottom;
    background-attachment: scroll;
    background-repeat: no-repeat;
  }
  .categories-grid {
    grid-template-columns: 1fr;
  }

  .modal-grid {
    grid-template-columns: 1fr;
  }

  .modal-img-wrap {
    aspect-ratio: 4/3;
  }

  .modal-img-wrap img {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }

  .modal-body {
    padding: 1.5rem 1.25rem;
  }

  .hero-title {
    font-size: clamp(2.75rem, 18vw, 5rem);
    font-weight: 500;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
  }
}

/* ── LOADING SKELETON ──────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--ivory-dark) 25%, #ede8e0 50%, var(--ivory-dark) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius-md);
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.skeleton-card {
  height: 380px;
}

/* ═══════════════════════════════════════════════
   CAROUSEL — product card mini-carousel
   ═══════════════════════════════════════════════ */
.product-card-img {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
}

.pc-carousel {
  position: absolute;
  inset: 0;
}

.pc-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.pc-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.pc-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.pc-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Prev / Next arrows */
.pc-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  background: rgba(28, 20, 16, 0.55);
  color: #faf7f2;
  border: none;
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 4;
  opacity: 0;
  transition: opacity 0.2s, background 0.2s;
}

.pc-prev {
  left: 8px;
}

.pc-next {
  right: 8px;
}

.product-card:hover .pc-arrow {
  opacity: 1;
}

.pc-arrow:hover {
  background: rgba(28, 20, 16, 0.85);
}

/* Dots */
.pc-dots {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 5px;
  z-index: 4;
}

.pc-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(250, 247, 242, 0.5);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  border: none;
}

.pc-dot.active {
  background: #faf7f2;
  transform: scale(1.3);
}

/* Count badge */
.pc-count {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 10px;
  letter-spacing: 0.08em;
  background: rgba(28, 20, 16, 0.55);
  color: #faf7f2;
  padding: 3px 8px;
  border-radius: 20px;
  z-index: 4;
  opacity: 0;
  transition: opacity 0.2s;
}

.product-card:hover .pc-count {
  opacity: 1;
}

/* ═══════════════════════════════════════════════
   MODAL — full carousel with thumbnails
   ═══════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(28, 20, 16, 0.72);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.open {
  display: flex;
}

.modal {
  background: var(--ivory);
  border-radius: var(--radius-lg);
  max-width: 920px;
  width: 100%;
  max-height: 94vh;
  overflow-y: auto;
  position: relative;
  animation: slideUp 0.28s ease;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Modal image side ── */
.modal-media {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  overflow: hidden;
  background: var(--ivory-dark);
  position: relative;
}

.modal-main-img-wrap {
  position: relative;
  flex: 1;
  min-height: 340px;
  overflow: hidden;
}

.modal-main-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.15s ease;
}

.modal-img-fade {
  opacity: 0 !important;
}

/* Modal arrows */
.modal-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  background: rgba(28, 20, 16, 0.55);
  color: #faf7f2;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: background 0.2s;
}

.modal-nav-arrow:hover {
  background: rgba(28, 20, 16, 0.88);
}

#modalPrev {
  left: 12px;
}

#modalNext {
  right: 12px;
}

/* Modal counter */
#modalCounter {
  position: absolute;
  bottom: 14px;
  right: 14px;
  font-size: 11px;
  letter-spacing: 0.08em;
  background: rgba(28, 20, 16, 0.6);
  color: #faf7f2;
  padding: 4px 10px;
  border-radius: 20px;
  z-index: 5;
}

/* Thumbnail strip */
.modal-thumbs {
  display: flex;
  gap: 6px;
  padding: 10px 12px;
  overflow-x: auto;
  background: var(--ivory-dark);
  scrollbar-width: thin;
}

.modal-thumbs::-webkit-scrollbar {
  height: 3px;
}

.modal-thumbs::-webkit-scrollbar-thumb {
  background: var(--gold-light);
  border-radius: 2px;
}

.modal-thumb {
  flex-shrink: 0;
  width: 56px;
  height: 72px;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.15s;
  background: var(--ivory-dark);
}

.modal-thumb:hover {
  transform: scale(1.06);
}

.modal-thumb.active {
  border-color: var(--gold);
}

.modal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Modal info side ── */
.modal-body {
  padding: 2.5rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ivory-dark);
  color: var(--mid);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  border: none;
  cursor: pointer;
}

.modal-close:hover {
  background: var(--deep);
  color: var(--ivory);
}

.modal-img-count-pill {
  display: inline-block;
  width: fit-content;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--ivory-dark);
  color: var(--light-text);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 0.25rem;
}

.modal-id {
  font-size: 10px;
  color: var(--light-text);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.modal-name {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.2;
}

.modal-type {
  font-size: 11px;
  color: var(--gold-dark);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.modal-price {
  font-size: 2rem;
  color: var(--deep);
  font-weight: 500;
}

.modal-desc {
  font-size: 1rem;
  color: var(--mid);
  line-height: 1.6;
  font-weight: 400;
  flex: 1;
}

.modal-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.tag {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
  background: var(--ivory-dark);
  color: var(--mid);
}

.modal-badge {
  position: absolute;
  top: 14px;
  left: 14px;
}

/* Keyboard hint */
.modal-keyboard-hint {
  font-size: 0.8rem;
  color: var(--light-text);
  margin-top: auto;
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid var(--ivory-dark);
}

/* ── Responsive modal ── */
@media (max-width: 680px) {
  .modal {
    grid-template-columns: 1fr;
    max-height: 96vh;
  }

  .modal-media {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }

  .modal-main-img-wrap {
    min-height: 260px;
  }

  .modal-body {
    padding: 1.5rem 1.25rem;
  }
}

/* ═══════════════════════════════════════════════
   SIZE CHIPS — product card
   ═══════════════════════════════════════════════ */
.card-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 6px 0 2px;
}

.card-size-chip {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border-radius: 3px;
  border: 1px solid var(--ivory-dark);
  background: var(--ivory-dark);
  color: var(--mid);
  cursor: pointer;
  transition: all 0.18s;
  font-family: var(--font-body);
}

.card-size-chip:hover {
  background: var(--deep);
  color: var(--ivory);
  border-color: var(--deep);
}

/* ═══════════════════════════════════════════════
   SIZE SELECTOR — modal
   ═══════════════════════════════════════════════ */
.modal-size-section {
  margin: 0.5rem 0 0.25rem;
  padding: 1rem;
  background: var(--ivory-dark);
  border-radius: var(--radius-md);
}

.modal-size-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--light-text);
  margin-bottom: 0.6rem;
  font-weight: 500;
}

.modal-size-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.modal-size-btn {
  min-width: 44px;
  padding: 7px 12px;
  border: 1.5px solid var(--border, #e0d8cc);
  border-radius: 4px;
  background: var(--white);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--mid);
  cursor: pointer;
  transition: all 0.18s;
}

.modal-size-btn:hover {
  border-color: var(--deep);
  color: var(--deep);
}

.modal-size-btn.selected {
  background: var(--deep);
  color: var(--ivory-dark);
  border-color: var(--deep);
}

.modal-size-hint {
  font-size: 11px;
  color: var(--gold-dark);
  margin-top: 0.6rem;
}