/* ============================================
   CLOUDLESS — Premium Meditation Mat E-commerce
   Aesthetic: Euro Clean Girl Streetwear × Japanese Warm Minimalism
   ============================================ */

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

:root {
  --bg: #F5F0EB;
  --bg-light: #FAF7F3;
  --text: #2C2824;
  --text-light: #6B6560;
  --sand: #C4B5A1;
  --clay: #B5927B;
  --sage: #A3A88E;
  --cream: #FAF7F3;
  --border: rgba(44, 40, 36, 0.12);
  --border-dark: rgba(44, 40, 36, 0.25);

  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-body: 'DM Sans', 'Helvetica Neue', sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --nav-height: 60px;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  overflow-x: hidden;
}

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

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

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

input {
  font-family: inherit;
  border: none;
  outline: none;
  background: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- REVEAL ANIMATIONS --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* stagger children */
.reveal-stagger > .reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger > .reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal-stagger > .reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal-stagger > .reveal:nth-child(5) { transition-delay: 0.4s; }
.reveal-stagger > .reveal:nth-child(6) { transition-delay: 0.5s; }
.reveal-stagger > .reveal:nth-child(7) { transition-delay: 0.6s; }
.reveal-stagger > .reveal:nth-child(8) { transition-delay: 0.7s; }

/* ============================================
   NAV
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  z-index: 1000;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.nav--scrolled {
  background: rgba(245, 240, 235, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--cream);
  transition: color 0.4s ease;
}

.nav--scrolled .nav__logo {
  color: var(--text);
}

.nav__menu {
  width: 28px;
  height: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.nav__menu span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--cream);
  transition: background 0.4s ease, transform 0.3s ease, opacity 0.3s ease;
  border-radius: 1px;
}

.nav--scrolled .nav__menu span {
  background: var(--text);
}

.nav__menu.active span:first-child {
  transform: translateY(9px) rotate(45deg);
}

.nav__menu.active span:last-child {
  transform: translateY(-9px) rotate(-45deg);
}

.nav__cart {
  position: relative;
  color: var(--cream);
  transition: color 0.4s ease;
}

.nav--scrolled .nav__cart {
  color: var(--text);
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -8px;
  font-size: 10px;
  font-weight: 500;
  background: var(--clay);
  color: white;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.3s ease, transform 0.3s var(--ease-out);
}

.cart-count.visible {
  opacity: 1;
  transform: scale(1);
}

/* ============================================
   MOBILE MENU
   ============================================ */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background: var(--bg);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease-out);
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.mobile-menu__link {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text);
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.6s var(--ease-out), opacity 0.6s var(--ease-out), color 0.2s ease;
}

.mobile-menu.open .mobile-menu__link {
  transform: translateY(0);
  opacity: 1;
}

.mobile-menu.open .mobile-menu__link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.open .mobile-menu__link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.open .mobile-menu__link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.open .mobile-menu__link:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu.open .mobile-menu__link:nth-child(5) { transition-delay: 0.3s; }

.mobile-menu__link:hover {
  color: var(--clay);
}

/* ============================================
   CART DRAWER
   ============================================ */
.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(44, 40, 36, 0.3);
  z-index: 1001;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.cart-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 400px;
  max-width: 90vw;
  height: 100%;
  background: var(--bg-light);
  z-index: 1002;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.5s var(--ease-out);
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  border-bottom: 1px solid var(--border);
}

.cart-drawer__header h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.cart-drawer__close {
  color: var(--text-light);
  transition: color 0.2s ease;
}

.cart-drawer__close:hover {
  color: var(--text);
}

.cart-drawer__items {
  flex: 1;
  overflow-y: auto;
  padding: 20px 28px;
}

.cart-empty {
  color: var(--text-light);
  font-size: 14px;
  text-align: center;
  padding-top: 60px;
}

.cart-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  animation: cartItemIn 0.4s var(--ease-out) both;
}

@keyframes cartItemIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

.cart-item__details {
  flex: 1;
}

.cart-item__name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 2px;
}

.cart-item__price {
  font-size: 14px;
  color: var(--text-light);
}

.cart-item__qty {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.cart-item__qty button {
  width: 26px;
  height: 26px;
  border: 1px solid var(--border-dark);
  border-radius: 50%;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.cart-item__qty button:hover {
  background: var(--sand);
  border-color: var(--sand);
  color: white;
}

.cart-item__qty span {
  font-size: 14px;
  min-width: 16px;
  text-align: center;
}

.cart-drawer__footer {
  padding: 24px 28px;
  border-top: 1px solid var(--border);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 20px;
}

.cart-shipping {
  text-align: center;
  font-size: 12px;
  color: var(--text-light);
  margin-top: 12px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 14px 36px;
  border-radius: 0;
  transition: all 0.35s var(--ease-out);
  cursor: pointer;
}

.btn--outline-light {
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.btn--outline-light:hover {
  background: #FFFFFF;
  color: var(--text);
  border-color: #FFFFFF;
}

.btn--primary {
  background: var(--text);
  color: var(--cream);
  border: 1px solid var(--text);
}

.btn--primary:hover {
  background: transparent;
  color: var(--text);
}

.btn--full {
  width: 100%;
}

.btn--add {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 10px 24px;
  border: 1px solid var(--border-dark);
  color: var(--text);
  background: transparent;
  transition: all 0.35s var(--ease-out);
  margin-top: 14px;
  width: 100%;
}

.btn--add:hover {
  background: var(--text);
  color: var(--cream);
  border-color: var(--text);
}

.btn--add.added {
  background: var(--sage);
  border-color: var(--sage);
  color: white;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  height: 100vh;
  height: 100dvh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(44, 40, 36, 0.30);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--cream);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(56px, 12vw, 140px);
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1;
  margin-bottom: 12px;
  text-shadow: 0 2px 60px rgba(0,0,0,0.3), 0 0 120px rgba(0,0,0,0.15);
  color: #FFFFFF;
}

.hero__tagline {
  font-family: var(--font-body);
  font-size: clamp(13px, 1.6vw, 16px);
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: lowercase;
  opacity: 0.95;
  margin-bottom: 40px;
  text-shadow: 0 1px 20px rgba(0,0,0,0.2);
  color: #FFFFFF;
}

.hero__cta {
  display: inline-flex;
}

.hero__scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.hero__scroll-hint span {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(250,247,243,0.6), transparent);
  animation: scrollHint 2s ease-in-out infinite;
}

@keyframes scrollHint {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.4; transform: scaleY(0.5); transform-origin: top; }
}

/* ============================================
   BRAND STATEMENT
   ============================================ */
.brand {
  padding: 120px 0;
  background: var(--bg-light);
}

.brand__inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.brand__jp {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 300;
  color: var(--sand);
  margin-bottom: 32px;
  line-height: 1;
}

.brand__statement {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 400;
  line-height: 1.65;
  color: var(--text);
  letter-spacing: 0.01em;
}

.brand__statement em {
  font-style: italic;
  color: var(--clay);
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 400;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.section-subtitle {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  color: var(--text-light);
}

/* ============================================
   PRODUCTS
   ============================================ */
.products {
  padding: 100px 0 120px;
  background: var(--bg);
}

.products__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.product-card {
  background: var(--bg-light);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.product-card__img {
  aspect-ratio: 4/5;
  overflow: hidden;
}

.product-card__img img {
  transition: transform 0.8s var(--ease-out), opacity 0.6s ease;
}

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

.product-card__info {
  padding: 20px 24px 28px;
}

.product-card__name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}

.product-card__desc {
  font-size: 13px;
  color: var(--text-light);
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}

.product-card__price {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ============================================
   COLOR STORY
   ============================================ */
.colors {
  padding: 100px 0;
  background: var(--bg-light);
  overflow: hidden;
}

.colors__scroll {
  margin-top: 8px;
  margin-bottom: 56px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.colors__scroll::-webkit-scrollbar {
  display: none;
}

.colors__track {
  display: flex;
  gap: 0;
  padding: 0 24px;
  min-width: max-content;
}

.color-card {
  flex: 0 0 auto;
  width: 240px;
  text-align: center;
  cursor: default;
  transition: transform 0.4s var(--ease-out);
}

.color-card:hover {
  transform: translateY(-4px);
}

.color-card__swatch {
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--border);
  margin-bottom: 20px;
}

.color-card__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.color-card__jp {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 300;
  line-height: 1.2;
}

.color-card__name {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.color-card__en {
  font-size: 12px;
  color: var(--text-light);
  letter-spacing: 0.06em;
}

.colors__image {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

.colors__image img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* ============================================
   EDITORIAL
   ============================================ */
.editorial {
  position: relative;
  height: 80vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.editorial__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.editorial__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(44, 40, 36, 0.35);
}

.editorial__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
}

.editorial__quote {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.5vw, 48px);
  font-weight: 300;
  font-style: italic;
  color: var(--cream);
  line-height: 1.5;
  letter-spacing: 0.02em;
}

/* ============================================
   MATERIALS
   ============================================ */
.materials {
  padding: 100px 0 120px;
  background: var(--bg);
}

.materials__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.material-card {
  text-align: center;
  padding: 36px 20px;
}

.material-card__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 20px;
  color: var(--clay);
}

.material-card__icon svg {
  width: 100%;
  height: 100%;
}

.material-card__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 10px;
}

.material-card__text {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-light);
}

/* ============================================
   PRESS
   ============================================ */
.press {
  padding: 64px 0;
  background: var(--bg-light);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.press .container {
  text-align: center;
}

.press__label {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 24px;
}

.press__logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.press__logo {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  font-style: italic;
  color: var(--text-light);
  letter-spacing: 0.04em;
}

.press__divider {
  width: 1px;
  height: 20px;
  background: var(--border-dark);
}

/* ============================================
   EMAIL SIGNUP
   ============================================ */
.signup {
  padding: 100px 0;
  background: var(--bg);
}

.signup__inner {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}

.signup__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 38px);
  font-weight: 400;
  letter-spacing: 0.03em;
  margin-bottom: 10px;
}

.signup__text {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 32px;
  letter-spacing: 0.02em;
}

.signup__form {
  display: flex;
  gap: 0;
  border: 1px solid var(--border-dark);
}

.signup__input {
  flex: 1;
  padding: 16px 20px;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--text);
  background: transparent;
}

.signup__input::placeholder {
  color: var(--sand);
}

.signup__btn {
  border: none;
  border-left: 1px solid var(--border-dark);
  padding: 16px 32px;
}

.signup__success {
  font-family: var(--font-display);
  font-size: 16px;
  font-style: italic;
  color: var(--sage);
  margin-top: 20px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s var(--ease-out);
}

.signup__success.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 72px 0 32px;
  background: var(--text);
  color: var(--cream);
}

.footer__top {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 56px;
}

.footer__logo {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.12em;
  margin-bottom: 6px;
}

.footer__tagline {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: lowercase;
  opacity: 0.5;
}

.footer__links {
  display: flex;
  gap: 64px;
}

.footer__col h4 {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.5;
  margin-bottom: 16px;
}

.footer__col a {
  display: block;
  font-size: 14px;
  opacity: 0.7;
  margin-bottom: 10px;
  transition: opacity 0.2s ease;
}

.footer__col a:hover {
  opacity: 1;
}

.footer__social {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.footer__social a {
  opacity: 0.5;
  transition: opacity 0.2s ease;
}

.footer__social a:hover {
  opacity: 1;
}

.footer__bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(250, 247, 243, 0.1);
  text-align: center;
}

.footer__bottom p {
  font-size: 12px;
  opacity: 0.35;
  letter-spacing: 0.04em;
}

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

@media (max-width: 900px) {
  .products__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .materials__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .footer__top {
    flex-direction: column;
    gap: 36px;
  }

  .footer__links {
    gap: 48px;
  }
}

@media (max-width: 680px) {
  :root {
    --nav-height: 56px;
  }

  .products__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .product-card__img {
    aspect-ratio: 5/4;
  }

  .hero__title {
    letter-spacing: 0.08em;
  }

  .brand {
    padding: 80px 0;
  }

  .brand__jp {
    font-size: 48px;
    margin-bottom: 24px;
  }

  .products {
    padding: 80px 0;
  }

  .colors {
    padding: 80px 0;
  }

  .color-card {
    width: 180px;
  }

  .editorial {
    height: 60vh;
    min-height: 400px;
  }

  .materials {
    padding: 80px 0;
  }

  .materials__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .material-card {
    padding: 24px 16px;
  }

  .press__logos {
    gap: 20px;
  }

  .press__divider {
    display: none;
  }

  .press__logo {
    font-size: 16px;
  }

  .signup {
    padding: 80px 0;
  }

  .signup__form {
    flex-direction: column;
  }

  .signup__btn {
    border-left: none;
    border-top: 1px solid var(--border-dark);
  }

  .footer__links {
    gap: 36px;
  }

  .section-header {
    margin-bottom: 40px;
  }
}

/* ============================================
   PRODUCT DETAIL MODAL
   ============================================ */
.pdp-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(44, 40, 36, 0.45);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.pdp-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.pdp-modal {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 960px;
  height: 100%;
  background: var(--bg-light);
  z-index: 2001;
  transform: translateX(100%);
  transition: transform 0.55s var(--ease-out);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.pdp-modal.open {
  transform: translateX(0);
}

.pdp-modal__close {
  position: absolute;
  top: 20px;
  right: 24px;
  z-index: 10;
  color: var(--text-light);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s ease, color 0.2s ease;
}

.pdp-modal__close:hover {
  background: var(--border);
  color: var(--text);
}

.pdp-modal__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100%;
}

/* --- Gallery --- */
.pdp-gallery {
  position: relative;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px;
  overflow: hidden;
}

.pdp-gallery__main {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
  touch-action: pan-y;
}

.pdp-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.35s ease;
}

.pdp-gallery__main img.fading {
  opacity: 0;
}

.pdp-gallery__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.pdp-gallery__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-dark);
  border: none;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
  padding: 0;
}

.pdp-gallery__dot.active {
  background: var(--text);
  transform: scale(1.3);
}

.pdp-gallery__dot:hover {
  background: var(--text-light);
}

/* --- Detail Panel --- */
.pdp-detail {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 48px;
}

.pdp-detail__name {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 400;
  letter-spacing: 0.03em;
  margin-bottom: 12px;
}

.pdp-detail__desc {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
  max-width: 380px;
}

.pdp-detail__price {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 32px;
}

.pdp-detail__colors {
  margin-bottom: 36px;
}

.pdp-detail__colors-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 12px;
}

.pdp-detail__swatches {
  display: flex;
  gap: 12px;
  margin-bottom: 8px;
}

.pdp-swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.25s ease, transform 0.25s ease;
  box-shadow: inset 0 0 0 1px var(--border-dark);
  padding: 0;
}

.pdp-swatch:hover {
  transform: scale(1.1);
}

.pdp-swatch.active {
  border-color: var(--text);
}

.pdp-detail__color-name {
  font-size: 12px;
  color: var(--text-light);
  letter-spacing: 0.04em;
}

.pdp-detail__add {
  margin-top: 8px;
}

.pdp-detail__add.added {
  background: var(--sage);
  border-color: var(--sage);
  color: white;
}

/* --- PDP Responsive --- */
@media (max-width: 768px) {
  .pdp-modal {
    max-width: 100%;
  }

  .pdp-modal__inner {
    grid-template-columns: 1fr;
  }

  .pdp-gallery {
    padding: 24px 20px;
    min-height: auto;
  }

  .pdp-gallery__main {
    aspect-ratio: 4/5;
  }

  .pdp-detail {
    padding: 32px 24px 48px;
  }

  .pdp-modal__close {
    top: 12px;
    right: 12px;
    background: rgba(245, 240, 235, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
}

/* ============================================
   FAQ MODAL
   ============================================ */
.faq-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(44, 40, 36, 0.45);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.faq-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.faq-modal {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 640px;
  height: 100%;
  background: var(--bg-light);
  z-index: 2001;
  transform: translateX(100%);
  transition: transform 0.55s var(--ease-out);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.faq-modal.open {
  transform: translateX(0);
}

.faq-modal__close {
  position: absolute;
  top: 20px;
  right: 24px;
  z-index: 10;
  color: var(--text-light);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s ease, color 0.2s ease;
}

.faq-modal__close:hover {
  background: var(--border);
  color: var(--text);
}

.faq-modal__inner {
  padding: 72px 48px 48px;
}

.faq-modal__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 400;
  letter-spacing: 0.03em;
  margin-bottom: 8px;
}

.faq-modal__subtitle {
  font-size: 13px;
  color: var(--text-light);
  letter-spacing: 0.06em;
  margin-bottom: 48px;
}

.faq-list {
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-top: 1px solid var(--border);
}

.faq-item:last-child {
  border-bottom: 1px solid var(--border);
}

.faq-item__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-align: left;
  color: var(--text);
  cursor: pointer;
  transition: color 0.2s ease;
}

.faq-item__question:hover {
  color: var(--clay);
}

.faq-item__question svg {
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-out);
  color: var(--text-light);
}

.faq-item.open .faq-item__question svg {
  transform: rotate(180deg);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out), padding 0.4s var(--ease-out);
}

.faq-item.open .faq-item__answer {
  max-height: 300px;
}

.faq-item__answer p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-light);
  padding-bottom: 22px;
  max-width: 520px;
}

@media (max-width: 768px) {
  .faq-modal {
    max-width: 100%;
  }

  .faq-modal__inner {
    padding: 64px 24px 48px;
  }

  .faq-item__question {
    font-size: 16px;
  }
}
