/* ================================================================
   Kandi Bags — Editorial Luxury Stylesheet
   Taste Archetype: Editorial Luxury / Editorial Split
   ================================================================ */

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

/* ── Variables ── */
:root {
  --off-white: #fafaf9;
  --off-black: #0f0e0d;
  --cream: #f5f0ea;
  --wine: #9B3A4A;
  --wine-dark: #7a2c3a;
  --muted: #6b6560;
  --border: #e8e2db;
  --dark: #111118;
  --dark-2: #1c1b22;
  --tobacco: #7a5c3e;
  --gold: #c8a96e;
  --white: #ffffff;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Outfit', system-ui, sans-serif;
  --ease-snappy: cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: var(--font-sans);
  background: var(--off-white);
  color: var(--off-black);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

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

/* ── Page Transitions ── */
body.page-loading {
  opacity: 0;
}

body.page-visible {
  opacity: 1;
  transition: opacity 0.4s var(--ease-snappy);
}

body.page-leaving {
  opacity: 0;
  transition: opacity 0.22s ease-out;
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease-snappy), transform 0.6s var(--ease-snappy);
}

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

/* ── Image Loading ── */
.img-loading {
  opacity: 0;
  transition: opacity 0.5s var(--ease-snappy);
}

.img-loaded {
  opacity: 1;
}

/* ================================================================
   1. ANNOUNCEMENT BAR
   ================================================================ */
.announcement-bar {
  background: var(--wine);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  padding: 0.6rem 1rem;
  font-weight: 400;
}

/* ================================================================
   2. NAVIGATION
   ================================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 68px;
  background: transparent;
  transition: background 0.28s var(--ease-snappy), box-shadow 0.28s var(--ease-snappy);
}

.nav.scrolled {
  background: var(--off-white);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--off-black);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.nav-tagline {
  font-family: var(--font-sans);
  font-size: 0.58rem;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.1em;
  font-weight: 400;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.nav-link {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--off-black);
  font-weight: 400;
  transition: color 0.28s var(--ease-snappy);
}

.nav-link:hover {
  color: var(--wine);
}

.nav-icon {
  display: flex;
  align-items: center;
}

.nav-cart {
  position: relative;
  display: flex;
  align-items: center;
  color: var(--off-black);
  transition: color 0.28s var(--ease-snappy);
}

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

.cart-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--wine);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.58rem;
  font-weight: 600;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.28s var(--ease-snappy), transform 0.28s var(--ease-snappy);
}

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

.cart-badge.pulse {
  animation: badgePulse 0.35s var(--ease-snappy);
}

@keyframes badgePulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* ================================================================
   3. HERO — EDITORIAL SPLIT
   ================================================================ */
.hero {
  display: grid;
  grid-template-columns: 46% 54%;
  min-height: calc(100vh - 68px - 34px);
}

.hero-text {
  background: var(--off-white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 4rem 4rem 6rem;
}

.hero-micro-label {
  margin-bottom: 1.5rem;
}

.hero-micro-label span {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.14em;
  border-left: 2px solid var(--wine);
  padding-left: 0.75rem;
  font-weight: 400;
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(3.2rem, 5.5vw, 5rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--off-black);
}

.hero-headline em {
  font-style: italic;
  color: var(--wine);
}

.hero-sub {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 380px;
  font-weight: 300;
  margin: 1.5rem 0 2.5rem;
}

.hero-ctas {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.5rem;
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  transition: all 0.28s var(--ease-snappy);
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--wine);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 1rem 2.2rem;
  border: none;
  cursor: pointer;
  font-weight: 400;
}

.btn-primary:hover {
  background: var(--wine-dark);
}

.btn-text {
  color: var(--off-black);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.2rem;
  font-weight: 400;
}

.btn-text:hover {
  border-color: var(--wine);
  color: var(--wine);
}

.btn-text .arrow {
  display: inline-block;
  transition: transform 0.28s var(--ease-snappy);
}

.btn-text:hover .arrow {
  transform: translateX(3px);
}

.btn-outline-white {
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: var(--white);
  padding: 0.9rem 2.4rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 400;
  background: transparent;
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Hero Image Panel */
.hero-image {
  background: radial-gradient(ellipse at 50% 38%, #221e2d 0%, #0f0e16 65%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
}

.bezel-outer {
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.04);
  padding: 10px;
  max-width: 440px;
  width: 100%;
}

.bezel-inner {
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
  aspect-ratio: 1;
}

.hero-illustration {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 8%;
}

/* ================================================================
   4. TRUST BAR
   ================================================================ */
.trust-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  max-width: 1280px;
  margin: 0 auto;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  padding: 0 2.5rem;
}

.trust-item span {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 400;
}

.trust-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
  flex-shrink: 0;
}

/* ================================================================
   ORNAMENT DIVIDER
   ================================================================ */
.ornament-divider {
  text-align: center;
  padding: 0.75rem 0;
}

.ornament-divider svg {
  width: 200px;
  height: 24px;
}

/* ================================================================
   5. PRODUCTS SECTION
   ================================================================ */
.products-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3.5rem 2.5rem 4rem;
}

.products-header {
  margin-bottom: 2.5rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--off-black);
  line-height: 1.2;
  margin-bottom: 0.4rem;
}

.section-subtitle {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 300;
}

.products-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  grid-auto-rows: auto;
  gap: 1.25rem;
}

.product-card:first-child {
  grid-row: span 2;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all 0.28s var(--ease-snappy);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

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

.product-card:first-child .product-image {
  aspect-ratio: auto;
  height: 100%;
  min-height: 400px;
}

.product-card:first-child .product-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s var(--ease-snappy);
}

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

.product-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(15, 14, 13, 0.35));
  pointer-events: none;
}

.product-quick-add {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 14, 13, 0.82);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.9rem;
  text-align: center;
  transform: translateY(100%);
  transition: transform 0.28s var(--ease-snappy), background 0.28s var(--ease-snappy);
  z-index: 2;
  cursor: pointer;
  font-weight: 400;
}

.product-card:hover .product-quick-add {
  transform: translateY(0);
}

.product-quick-add.added {
  background: var(--wine);
}

.product-info {
  padding: 0.85rem 0.75rem 1rem;
}

.product-brand {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tobacco);
  margin-bottom: 0.3rem;
  display: block;
  font-weight: 400;
}

.product-name {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--off-black);
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

.product-price {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--off-black);
  font-weight: 500;
}

.product-price s {
  color: var(--muted);
  font-weight: 300;
  margin-right: 0.35rem;
}

/* ================================================================
   6. ABOUT SECTION
   ================================================================ */
.about-section {
  background: var(--cream);
  padding: 5rem 2.5rem;
}

.about-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image-frame {
  border-radius: 4px;
  overflow: hidden;
  background: var(--dark);
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.15);
}

.about-image-frame img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  object-position: center 12%;
  display: block;
}

.about-label {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tobacco);
  font-weight: 400;
  display: block;
  margin-bottom: 1rem;
}

.about-headline {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 2.8vw, 2.6rem);
  font-weight: 300;
  line-height: 1.25;
  color: var(--off-black);
  margin-bottom: 1.75rem;
}

.about-quote {
  border-left: 2px solid var(--wine);
  padding-left: 1.25rem;
  margin: 1.75rem 0;
}

.about-quote p {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--off-black);
  line-height: 1.5;
  font-style: italic;
}

.about-body {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.about-body:last-of-type {
  margin-bottom: 2rem;
}

/* ================================================================
   7. INSTAGRAM CTA
   ================================================================ */
.instagram-cta {
  background: var(--wine);
  background-image:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.04) 0, rgba(255, 255, 255, 0.04) 1px, transparent 0, transparent 50%),
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.04) 0, rgba(255, 255, 255, 0.04) 1px, transparent 0, transparent 50%);
  background-size: 22px 22px;
  padding: 5rem 2.5rem;
  text-align: center;
}

.instagram-cta-inner {
  max-width: 600px;
  margin: 0 auto;
}

.instagram-headline {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.instagram-handle {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.08em;
  margin-bottom: 2rem;
  font-weight: 300;
}

/* ================================================================
   8. FOOTER
   ================================================================ */
.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.6);
  padding: 4rem 2.5rem 0;
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--white);
  display: block;
  margin-bottom: 0.4rem;
}

.footer-tagline {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 300;
  margin-bottom: 1.25rem;
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.footer-socials a {
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.28s var(--ease-snappy);
  display: flex;
  align-items: center;
}

.footer-socials a:hover {
  color: var(--white);
}

.footer-heading {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 500;
  margin-bottom: 1.2rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-link {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 300;
  margin-bottom: 0.6rem;
  transition: color 0.28s var(--ease-snappy);
}

.footer-link:hover {
  color: var(--white);
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.3);
  font-weight: 300;
}

/* ── Cyberient Credit ── */
.cyberient-credit {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.credit-label {
  font-size: 0.66rem;
  color: rgba(255, 255, 255, 0.35);
  font-family: var(--font-sans);
  font-weight: 300;
}

.cyberient-link {
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  transition: opacity 0.2s;
}

.cyberient-link:hover {
  opacity: 0.7;
}

.cyberient-wordmark {
  font-family: "Space Grotesk", var(--font-sans);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-text {
    padding: 3rem 2.5rem;
    order: 2;
  }

  .hero-image {
    padding: 3rem 2.5rem;
    min-height: 50vh;
    order: 1;
  }

  .bezel-outer {
    max-width: 320px;
  }

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

  .product-card:first-child {
    grid-row: span 1;
  }

  .product-card:first-child .product-image {
    aspect-ratio: 3 / 4;
    height: auto;
    min-height: auto;
  }

  .product-card:first-child .product-image img {
    position: static;
  }

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

  .about-image-frame img {
    height: 400px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 640px) {
  .nav-inner {
    padding: 0 1.25rem;
  }

  .nav-links {
    gap: 1rem;
  }

  .nav-link:not(.nav-icon) {
    display: none;
  }

  .hero-text {
    padding: 2.5rem 1.5rem;
  }

  .hero-image {
    padding: 2.5rem 1.5rem;
    min-height: 40vh;
  }

  .bezel-outer {
    max-width: 260px;
  }

  .hero-headline {
    font-size: clamp(2.6rem, 10vw, 3.2rem);
  }

  .hero-ctas {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .trust-bar {
    flex-direction: column;
    gap: 1.25rem;
    padding: 1.5rem 1rem;
  }

  .trust-divider {
    width: 40px;
    height: 1px;
  }

  .products-section {
    padding: 2.5rem 1.25rem 3rem;
  }

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

  .about-section {
    padding: 3rem 1.25rem;
  }

  .about-image-frame img {
    height: 320px;
  }

  .instagram-cta {
    padding: 3.5rem 1.25rem;
  }

  .footer {
    padding: 3rem 1.25rem 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    padding: 1.25rem 0;
  }
}