/* =============================================
   VIDA BEST — SHARED STYLES
   ============================================= */

:root {
  --black:       #0A0A0A;
  --black-soft:  #1A1A1A;
  --black-card:  #141414;
  --cream:       #FAF8F3;
  --cream-dim:   #B8B0A4;
  --warm-white:  #FFFCF7;
  --gold:        #C09A45;
  --gold-warm:   #D4A855;
  --gold-bright: #E5C46A;
  --terracotta:  #C87D5F;
  --sage:        #9BA88D;

  --ff-display: 'Lora', Georgia, serif;
  --ff-body:    'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;

  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--black);
  color: var(--cream);
  font-family: var(--ff-body);
  overflow-x: hidden;
  line-height: 1.6;
  font-weight: 400;
}

img {
  display: block;
  max-width: 100%;
}

button {
  cursor: pointer;
  font-family: inherit;
}

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

/* =============================================
   NAVIGATION
   ============================================= */
#nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 52px;
  transition: background 0.4s, box-shadow 0.4s;
}

#nav.scrolled {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 0 rgba(192, 154, 69, 0.1);
}

.nav-logo img {
  height: 48px;
  width: auto;
  transition: opacity 0.3s;
}

.nav-logo img:hover {
  opacity: 0.7;
}

.nav-cart {
  background: none;
  border: none;
  color: var(--cream-dim);
  display: flex;
  align-items: center;
  gap: 9px;
  transition: color 0.3s;
  position: relative;
}

.nav-cart:hover {
  color: var(--cream);
}

.nav-cart svg {
  width: 20px;
  height: 20px;
}

.cart-badge {
  position: absolute;
  top: -7px;
  right: -10px;
  background: var(--gold);
  color: var(--black);
  font-size: 9px;
  font-weight: 700;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.25s, transform 0.25s;
}

.cart-badge.show {
  opacity: 1;
  transform: scale(1);
}

/* =============================================
   HERO
   ============================================= */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  text-align: center;
  background: url('../images/banner.hero.cool.png') center 50%/cover no-repeat;
  padding-bottom: 120px;
  will-change: background-position;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.4) 0%, rgba(10, 10, 10, 0.85) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.hero-logo img {
  height: 96px;
  width: auto;
  opacity: 0;
  animation: fadeInUp 1s var(--ease-out) 0.3s forwards;
  filter: brightness(0) invert(1);
}

.hero-tagline {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--cream-dim);
  opacity: 0;
  animation: fadeInUp 1s var(--ease-out) 0.5s forwards;
}

.scroll-cue {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  animation: fadeIn 1s ease 1.5s forwards;
}

.scroll-cue span {
  font-size: 8.5px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--cream-dim);
  font-weight: 600;
}

.scroll-cue-line {
  width: 1px;
  height: 38px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollDrop 2.2s ease infinite;
}

/* =============================================
   PRODUCT GRID
   ============================================= */
#collection {
  padding: 100px 52px;
  max-width: 1400px;
  margin: 0 auto;
}

.section-head {
  text-align: center;
  margin-bottom: 72px;
}

.section-head .label {
  font-size: 9.5px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
  font-weight: 600;
}

.section-head h2 {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--cream);
}

.section-head h2 em {
  font-style: italic;
  color: var(--gold-bright);
}

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

.p-card {
  background: var(--black-card);
  border: 1px solid rgba(192, 154, 69, 0.15);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s, border-color 0.4s;
  cursor: pointer;
}

.p-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6), 0 0 40px rgba(192, 154, 69, 0.15);
  border-color: rgba(192, 154, 69, 0.3);
}

.p-card:hover .p-name {
  color: var(--gold-bright);
}

.p-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}

.p-card.noir::after {
  background: var(--gold);
}

.p-card.sona::after {
  background: var(--sage);
}

.p-card.rouge::after {
  background: var(--terracotta);
}

.p-card:hover::after {
  transform: scaleX(1);
}

.p-img-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 32px 32px;
  min-height: 320px;
}

.p-img-wrap img {
  max-height: 280px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.5s var(--ease-out);
}

.p-card:hover .p-img-wrap img {
  transform: scale(1.05);
}

.p-info {
  padding: 24px 28px 28px;
  border-top: 1px solid rgba(192, 154, 69, 0.15);
}

.p-meta {
  font-size: 10px;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--cream-dim);
  margin-bottom: 8px;
  font-weight: 600;
}

.p-name {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 28px;
  color: var(--cream);
  letter-spacing: 0.01em;
  margin-bottom: 10px;
}

.p-notes {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 14px;
  font-weight: 400;
  color: var(--cream-dim);
  line-height: 1.6;
  margin-bottom: 20px;
}

.p-price {
  font-family: var(--ff-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--gold-bright);
}

/* =============================================
   PHILOSOPHY
   ============================================= */
#philosophy {
  padding: 80px 52px;
  text-align: center;
  border-top: 1px solid rgba(192, 154, 69, 0.15);
  border-bottom: 1px solid rgba(192, 154, 69, 0.15);
}

.phil-line {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 20px;
  font-weight: 500;
  color: var(--cream-dim);
  letter-spacing: 0.04em;
  max-width: 700px;
  margin: 0 auto;
}

/* =============================================
   ABOUT
   ============================================= */
#about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1280px;
  margin: 0 auto;
  padding: 100px 52px;
  gap: 80px;
  align-items: center;
}

.about-visual img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  object-position: center;
}

.about-text .label {
  font-size: 9.5px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  font-weight: 600;
}

.about-h {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: clamp(36px, 4vw, 52px);
  line-height: 1.1;
  color: var(--cream);
  margin-bottom: 28px;
}

.about-h em {
  font-style: italic;
  color: var(--gold-bright);
}

.about-divider {
  width: 44px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 28px;
}

.about-p {
  font-family: var(--ff-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.8;
  color: var(--cream-dim);
  margin-bottom: 16px;
}

.about-p:last-child {
  margin-bottom: 0;
}

/* =============================================
   FOOTER
   ============================================= */
#footer {
  position: relative;
  border-top: none;
  padding: 64px 52px 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  background: url('../images/footer_background.png') center bottom/cover no-repeat;
  overflow: hidden;
}

#footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--black) 0%, rgba(10, 10, 10, 0.5) 15%, rgba(10, 10, 10, 0.3) 100%);
  pointer-events: none;
  z-index: 0;
}

#footer > * {
  position: relative;
  z-index: 1;
}

.footer-logo img {
  height: 42px;
  opacity: 0.5;
  transition: opacity 0.3s;
  filter: brightness(0) invert(1);
}

.footer-logo img:hover {
  opacity: 0.8;
}

.footer-tagline {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 15px;
  font-weight: 500;
  color: var(--cream-dim);
  letter-spacing: 0.06em;
}

.footer-nav {
  display: flex;
  gap: 32px;
  list-style: none;
}

.footer-nav a {
  font-size: 9px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--cream-dim);
  transition: color 0.3s;
  font-weight: 600;
}

.footer-nav a:hover {
  color: var(--gold);
}

.footer-copy {
  font-size: 9.5px;
  letter-spacing: 0.12em;
  color: rgba(184, 176, 164, 0.5);
}

/* =============================================
   CART DRAWER
   ============================================= */
#cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 850;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}

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

#cart-drawer {
  position: fixed;
  top: 0;
  right: -500px;
  width: 100%;
  max-width: 468px;
  height: 100vh;
  background: var(--black-soft);
  border-left: 1px solid rgba(192, 154, 69, 0.2);
  z-index: 860;
  display: flex;
  flex-direction: column;
  transition: right 0.48s var(--ease-out);
}

#cart-drawer.open {
  right: 0;
}

.cart-top {
  padding: 30px 36px 24px;
  border-bottom: 1px solid rgba(192, 154, 69, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-top-title {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 24px;
  letter-spacing: 0.05em;
  color: var(--cream);
}

.cart-x {
  background: none;
  border: none;
  color: var(--cream-dim);
  font-size: 26px;
  line-height: 1;
  transition: color 0.25s, transform 0.25s;
}

.cart-x:hover {
  color: var(--cream);
  transform: rotate(90deg);
}

#cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 36px;
}

.cart-empty-msg {
  padding: 64px 0;
  text-align: center;
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 17px;
  font-weight: 400;
  color: var(--cream-dim);
}

.c-item {
  display: flex;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(192, 154, 69, 0.1);
  align-items: center;
}

.c-item img {
  width: 78px;
  height: 78px;
  object-fit: contain;
  background: var(--black);
  flex-shrink: 0;
}

.c-item-info {
  flex: 1;
}

.c-item-name {
  font-family: var(--ff-display);
  font-size: 19px;
  font-weight: 500;
  color: var(--cream);
  margin-bottom: 3px;
}

.c-item-price {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 12px;
  font-weight: 600;
}

.c-qty {
  display: flex;
  align-items: center;
  gap: 14px;
}

.c-qty-btn {
  background: none;
  border: 1px solid rgba(192, 154, 69, 0.3);
  color: var(--cream-dim);
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: border-color 0.25s, color 0.25s;
}

.c-qty-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.c-qty-num {
  font-family: var(--ff-display);
  font-size: 17px;
  font-weight: 500;
  min-width: 22px;
  text-align: center;
  color: var(--cream);
}

.c-remove {
  background: none;
  border: none;
  color: rgba(184, 176, 164, 0.5);
  font-size: 20px;
  line-height: 1;
  transition: color 0.25s;
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 2px;
}

.c-remove:hover {
  color: var(--terracotta);
}

#cart-foot {
  padding: 24px 36px 32px;
  border-top: 1px solid rgba(192, 154, 69, 0.15);
  display: none;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 22px;
}

.cart-total-lbl {
  font-size: 9px;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--cream-dim);
  font-weight: 600;
}

.cart-total-val {
  font-family: var(--ff-display);
  font-size: 26px;
  font-weight: 500;
  color: var(--gold-bright);
}

.btn-checkout {
  width: 100%;
  background: var(--gold);
  border: none;
  color: var(--black);
  padding: 19px;
  font-family: var(--ff-body);
  font-size: 11px;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  font-weight: 700;
  transition: background 0.3s;
}

.btn-checkout:hover {
  background: var(--gold-bright);
}

.stripe-badge {
  text-align: center;
  margin-top: 13px;
  font-size: 8px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(184, 176, 164, 0.5);
}

/* =============================================
   PRODUCT PAGE STYLES
   ============================================= */
.product-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1280px;
  margin: 0 auto;
  padding: 140px 52px 80px;
  gap: 80px;
  align-items: center;
}

.product-image {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  background: var(--black-card);
  border: 1px solid rgba(192, 154, 69, 0.15);
}

.product-image img {
  max-height: 520px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.product-details h1 {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: clamp(42px, 5vw, 64px);
  color: var(--cream);
  margin-bottom: 16px;
}

.product-meta {
  font-size: 10px;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--cream-dim);
  margin-bottom: 32px;
  font-weight: 600;
}

.product-notes {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 18px;
  font-weight: 400;
  color: var(--cream-dim);
  line-height: 1.7;
  margin-bottom: 32px;
}

.product-description {
  font-size: 15px;
  line-height: 1.8;
  color: var(--cream-dim);
  margin-bottom: 40px;
}

.product-price {
  font-family: var(--ff-display);
  font-size: 36px;
  font-weight: 500;
  color: var(--gold-bright);
  margin-bottom: 28px;
}

.product-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
}

.btn-primary {
  background: var(--gold);
  border: none;
  color: var(--black);
  padding: 18px 36px;
  font-family: var(--ff-body);
  font-size: 11px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  font-weight: 700;
  transition: background 0.3s;
}

.btn-primary:hover {
  background: var(--gold-bright);
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 18px 36px;
  font-family: var(--ff-body);
  font-size: 11px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  font-weight: 700;
  transition: background 0.3s, color 0.3s;
}

.btn-secondary:hover {
  background: var(--gold);
  color: var(--black);
}

.product-faq-link {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--cream-dim);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, color 0.3s;
  font-weight: 600;
}

.product-faq-link:hover {
  color: var(--gold);
  border-color: var(--gold);
}

/* =============================================
   FAQ PAGE STYLES
   ============================================= */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 140px 52px 100px;
}

.faq-header {
  text-align: center;
  margin-bottom: 64px;
}

.faq-header h1 {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: clamp(42px, 5vw, 58px);
  color: var(--cream);
  margin-bottom: 16px;
}

.faq-header p {
  font-size: 15px;
  color: var(--cream-dim);
  line-height: 1.7;
}

.faq-item {
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(192, 154, 69, 0.15);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 22px;
  color: var(--cream);
  margin-bottom: 12px;
}

.faq-answer {
  font-size: 15px;
  line-height: 1.8;
  color: var(--cream-dim);
}

.faq-support {
  margin-top: 64px;
  padding: 40px;
  background: var(--black-card);
  border: 1px solid rgba(192, 154, 69, 0.15);
  text-align: center;
}

.faq-support h2 {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 28px;
  color: var(--cream);
  margin-bottom: 16px;
}

.faq-support p {
  font-size: 15px;
  color: var(--cream-dim);
  margin-bottom: 20px;
}

.faq-support a {
  font-size: 16px;
  color: var(--gold);
  border-bottom: 1px solid var(--gold);
  transition: opacity 0.3s;
  font-weight: 600;
}

.faq-support a:hover {
  opacity: 0.7;
}

/* =============================================
   PAGE TRANSITION
   ============================================= */
body {
  opacity: 0;
  transition: opacity 0.26s ease;
}

body.page-ready {
  opacity: 1;
}

body.page-leaving {
  opacity: 0;
}


/* =============================================
   SCROLL-TO-TOP BUTTON
   ============================================= */
#scroll-top {
  position: fixed;
  bottom: 36px;
  right: 36px;
  z-index: 700;
  width: 44px;
  height: 44px;
  background: var(--black-soft);
  border: 1px solid rgba(192, 154, 69, 0.3);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s, border-color 0.3s, background 0.3s;
  pointer-events: none;
}

#scroll-top svg {
  width: 18px;
  height: 18px;
}

#scroll-top.visible {
  opacity: 1;
  transform: none;
  pointer-events: all;
}

#scroll-top:hover {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
}

/* =============================================
   SCROLL REVEAL
   ============================================= */
.p-card,
.about-visual,
.about-text {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.p-card.revealed,
.about-visual.revealed,
.about-text.revealed {
  opacity: 1;
  transform: none;
}

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scrollDrop {
  0% {
    transform: scaleY(1) translateY(0);
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: scaleY(1) translateY(6px);
    opacity: 0;
  }
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 960px) {
  #nav {
    padding: 18px 28px;
  }

  .scroll-cue {
    bottom: 120px;
  }

  #hero {
    padding-bottom: 220px;
  }

  #collection {
    padding: 80px 28px;
  }

  .products-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  #philosophy {
    padding: 60px 28px;
  }

  #about {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 80px 28px;
  }

  .about-visual img {
    height: 420px;
  }

  #footer {
    padding: 52px 28px 44px;
  }

  .product-hero {
    grid-template-columns: 1fr;
    padding: 120px 28px 60px;
    gap: 48px;
  }

  .faq-container {
    padding: 120px 28px 80px;
  }

  #cart-drawer {
    max-width: 100%;
    height: 100dvh;
  }
}
