*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    :root {
      --gold: #b89a6a;
      --gold-light: #d4b896;
      --gold-pale: #f5ede0;
      --dark: #1a1612;
      --dark-soft: #2e2820;
      --mid: #6b5f52;
      --light: #f9f5f0;
      --white: #ffffff;
      --border: rgba(184,154,106,0.25);
    }

    html {
      scroll-behavior: smooth;
      /* RWD: Prevent horizontal scroll on all pages */
      overflow-x: hidden;
    }

    body {
      font-family: 'DM Sans', sans-serif;
      background: var(--light);
      color: var(--dark);
      font-size: 15px;
      line-height: 1.6;
      overflow-x: hidden; /* RWD: Prevent horizontal scroll */
    }

    /* ─── NAVBAR ─── */
    nav {
      position: fixed; top: 0; left: 0; right: 0; z-index: 100;
      display: flex; align-items: center; justify-content: space-between;
      padding: 1.2rem 3rem;
      background: rgba(249,245,240,0.92);
      backdrop-filter: blur(12px);
      border-bottom: 0.5px solid var(--border);
    }
    .nav-logo {
      display: flex;
      align-items: center;
      gap: 15px;
      width: max-content;
      cursor: default; /* Logo tidak bisa diklik — cegah kursor pointer */

      font-family: 'Cormorant Garamond', serif;
      font-size: 1.6rem; font-weight: 300; letter-spacing: 0.18em;
      color: var(--dark);
    }
    .nav-brand-text {
      display: flex;
      flex-direction: column;
      line-height: 1.15;
    }
    .nav-brand-sub {
      font-family: 'DM Sans', sans-serif;
      font-size: 0.5rem;
      font-weight: 400;
      letter-spacing: 0.08em;
      color: var(--mid);
      margin-top: 2px;
    }
    .nav-links { display: flex; gap: 2rem; list-style: none; }
    .nav-links a {
      font-size: 13px; letter-spacing: 0.08em; color: var(--mid);
      text-decoration: none; text-transform: uppercase;
      transition: color 0.2s;
    }
    .nav-links a:hover { color: var(--gold); }
    .nav-actions { display: flex; align-items: center; gap: 1.2rem; }
    .cart-btn {
      position: relative; background: none; border: none; cursor: pointer;
      padding: 0.4rem; color: var(--dark); font-size: 20px;
    }
    .cart-badge {
      position: absolute; top: -4px; right: -4px;
      width: 18px; height: 18px; border-radius: 50%;
      background: var(--gold); color: var(--white);
      font-size: 10px; font-weight: 500;
      display: flex; align-items: center; justify-content: center;
    }

      .btn-login-nav {
    position: relative;
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--mid);
    text-decoration: none;
    padding: 7px 16px;
    border: 0.5px solid var(--border);
    border-radius: 4px;
    transition: all 0.2s;
  }

  .btn-login-nav:hover {
    background: var(--dark);
    color: var(--gold-pale);
    border-color: var(--dark);
  }

  /* Titik merah — order belum lunas menunggu pembayaran */
  .notif-badge-dot {
    position: absolute;
    top: -3px;
    right: -3px;
    width: 9px;
    height: 9px;
    background-color: #e53935;
    border: 2px solid #ffffff;
    border-radius: 50%;
    animation: pulse-red 2s infinite;
  }

  @keyframes pulse-red {
    0%   { box-shadow: 0 0 0 0 rgba(229, 57, 53, 0.7); }
    70%  { box-shadow: 0 0 0 6px rgba(229, 57, 53, 0); }
    100% { box-shadow: 0 0 0 0 rgba(229, 57, 53, 0); }
  }

    /* ─── HERO ─── */
    .hero {
      min-height: 100vh;
      display: grid; grid-template-columns: 1fr 1fr;
      padding-top: 80px;
    }
    .hero-text {
      display: flex; flex-direction: column; justify-content: center;
      padding: 6rem 4rem 6rem 6rem;
    }
    .hero-eyebrow {
      font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
      color: var(--gold); margin-bottom: 1.5rem;
    }
    .hero-title {
      font-family: 'Cormorant Garamond', serif;
      font-size: clamp(3.2rem, 5vw, 5.5rem); font-weight: 300; line-height: 1.08;
      color: var(--dark); margin-bottom: 1.8rem;
    }
    .hero-title em { font-style: italic; color: var(--gold); }
    .hero-desc {
      font-size: 15px; color: var(--mid); max-width: 380px;
      line-height: 1.75; margin-bottom: 2.5rem;
    }
    .btn-primary {
      display: inline-flex; align-items: center; gap: 0.6rem;
      background: var(--dark); color: var(--white);
      padding: 0.9rem 2rem; font-size: 13px;
      letter-spacing: 0.1em; text-transform: uppercase;
      border: none; cursor: pointer; text-decoration: none;
      transition: background 0.2s, transform 0.15s;
    }
    .btn-primary:hover { background: var(--gold); transform: translateY(-1px); }
    .btn-outline {
      display: inline-flex; align-items: center; gap: 0.6rem;
      background: transparent; color: var(--dark);
      padding: 0.9rem 2rem; font-size: 13px;
      letter-spacing: 0.1em; text-transform: uppercase;
      border: 1px solid var(--dark); cursor: pointer; text-decoration: none;
      transition: all 0.2s;
    }
    .btn-outline:hover { background: var(--dark); color: var(--white); }
    .hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
    .hero-visual {
      background: var(--gold-pale);
      display: flex; align-items: center; justify-content: center;
      position: relative; overflow: hidden;
    }
    .hero-bottle {
      width: 260px; height: 380px;
      position: relative; display: flex; flex-direction: column; align-items: center;
    }
    .bottle-svg { width: 100%; height: 100%; }

    .product-bottle-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 0.5rem;
}

    .bottle-img {
  width: 100%;
  max-width: 500px;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
}

    /* ─── SECTION HEADER ─── */
    .section-header {
      text-align: center; padding: 5rem 2rem 3rem;
    }
    .section-eyebrow {
      font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
      color: var(--gold); margin-bottom: 0.8rem;
    }
    .section-title {
      font-family: 'Cormorant Garamond', serif;
      font-size: clamp(2rem, 3.5vw, 3.2rem); font-weight: 300;
      color: var(--dark); line-height: 1.15;
    }

    /* ─── PRODUCTS GRID ─── */
    .market-sale-badge {
  background: linear-gradient(135deg, #ff4e4e, #ff0000);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 1.5px;
  box-shadow: 0 2px 8px rgba(255, 0, 0, 0.35);
  animation: salePulse 1.5s infinite;
}

@keyframes salePulse {
  0%, 100% { transform: scale(1); box-shadow: 0 2px 8px rgba(255,0,0,0.35); }
  50%       { transform: scale(1.08); box-shadow: 0 4px 14px rgba(255,0,0,0.55); }
}

    .products-section { padding: 0 4rem 6rem; }
    .filter-bar {
      display: flex; gap: 0.6rem; justify-content: center;
      flex-wrap: wrap; margin-bottom: 3rem;
    }
    .filter-btn {
      padding: 0.5rem 1.4rem; font-size: 12px; letter-spacing: 0.08em;
      text-transform: uppercase; border: 1px solid var(--border);
      background: transparent; color: var(--mid); cursor: pointer;
      transition: all 0.2s; font-family: 'DM Sans', sans-serif;
    }
    .filter-btn.active, .filter-btn:hover {
      background: var(--dark); color: var(--white); border-color: var(--dark);
    }
    .products-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
      gap: 2rem;
    }
    .product-card {
      background: var(--white); border: 0.5px solid var(--border);
      cursor: pointer; transition: transform 0.25s, box-shadow 0.25s;
      position: relative; overflow: hidden;
      /* FIX: tombol "+" tidak sejajar antar-card saat nama produk membungkus
         2 baris (mis. "TOBACCO ROYALE") — anchor .product-footer ke bawah
         card, bukan mengikuti tinggi nama produk. */
      display: flex; flex-direction: column;
    }
    .product-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(26,22,18,0.1); }
    .product-img {
      background: var(--gold-pale); height: 280px;
      display: flex; align-items: center; justify-content: center;
      position: relative; overflow: hidden;
    }
    .product-img svg { width: 120px; height: 180px; }
    .badge-new, .badge-sale {
      position: absolute; top: 12px; left: 12px;
      font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
      padding: 3px 10px; font-weight: 500;
    }
    .badge-new { background: var(--gold); color: var(--white); }
    .badge-sale { background: var(--dark); color: var(--white); }
    .product-info { padding: 1.4rem; display: flex; flex-direction: column; flex: 1; }
    .product-category {
      font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase;
      color: var(--gold); margin-bottom: 0.4rem;
    }
    .product-name {
      font-family: 'Cormorant Garamond', serif;
      font-size: 1.3rem; font-weight: 400; color: var(--dark);
      margin-bottom: 0.3rem;
    }
    .product-notes { font-size: 12px; color: var(--mid); margin-bottom: 1rem; }
    .product-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
    .product-price {
      font-size: 1.05rem; font-weight: 500; color: var(--dark);
    }
    .product-price .original {
      font-size: 0.85rem; color: var(--mid); text-decoration: line-through; margin-right: 6px;
    }
    .add-to-cart {
      /* RWD FIX: naik dari 36px ke 44px agar memenuhi standar tap target minimum (Apple HIG/Material) */
      width: 44px; height: 44px; border-radius: 50%;
      background: var(--dark); color: var(--white); border: none;
      font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center;
      transition: background 0.2s, transform 0.15s;
    }
    .add-to-cart:hover { background: var(--gold); transform: scale(1.1); }

    /* ─── STORY SECTION ─── */
    .story-logo-img{
      width: 100%;
      max-width: 500px;
      height: auto;
      object-fit: contain;
      display: block;
    }

    .story-section {
      display: grid; grid-template-columns: 1fr 1fr;
      background: var(--dark-soft); color: var(--white); min-height: 500px;
      overflow: hidden;
    }
    .story-visual {
      background: var(--dark); 
      display: flex; 
      align-items: center; 
      justify-content: center;
      overflow: hidden;
    }
    .story-text {
      padding: 5rem;
      display: flex; flex-direction: column; justify-content: center;
    }
    .story-eyebrow {
      font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
      color: var(--gold-light); margin-bottom: 1.5rem;
    }
    .story-title {
      font-family: 'Cormorant Garamond', serif;
      font-size: 2.8rem; font-weight: 300; line-height: 1.1;
      margin-bottom: 1.5rem;
    }
    .story-desc { font-size: 14px; color: rgba(255,255,255,0.65); line-height: 1.8; margin-bottom: 2rem; }

    /* ─── CART SIDEBAR ─── */
    .modal-add-cart.btn-disabled {
      border-color: #c8c0b4;
      color: #c8c0b4;
      cursor: not-allowed;
      opacity: 0.6;
    }

    .modal-add-cart.btn-disabled:hover {
      background: transparent;
    }

    .cart-overlay {
      position: fixed; inset: 0; z-index: 200;
      background: rgba(26,22,18,0.5);
      opacity: 0; pointer-events: none; transition: opacity 0.3s;
    }
    .cart-overlay.open { opacity: 1; pointer-events: all; }
    .cart-sidebar {
      position: fixed; top: 0; right: 0; bottom: 0; z-index: 201;
      /* RWD: min() memastikan sidebar tidak overflow di layar HP kecil (< 420px) */
      width: min(420px, 100vw);
      background: var(--white);
      transform: translateX(100%); transition: transform 0.35s cubic-bezier(.25,.8,.25,1);
      display: flex; flex-direction: column;
    }
    .cart-sidebar.open { transform: translateX(0); }
    .cart-header {
      display: flex; align-items: center; justify-content: space-between;
      padding: 1.5rem 2rem; border-bottom: 0.5px solid var(--border);
    }
    .cart-title {
      font-family: 'Cormorant Garamond', serif;
      font-size: 1.5rem; font-weight: 400;
    }
    .cart-close {
      background: none; border: none; font-size: 22px; cursor: pointer;
      color: var(--mid); line-height: 1;
    }
    .cart-items { flex: 1; overflow-y: auto; padding: 1.5rem 2rem; }
    .cart-empty {
      text-align: center; color: var(--mid); font-size: 14px;
      padding: 3rem 0; display: none;
    }
    .cart-item {
      display: grid; grid-template-columns: 72px 1fr auto;
      gap: 1rem; align-items: center; padding: 1rem 0;
      border-bottom: 0.5px solid var(--border);
    }
    .cart-item-img {
      width: 72px; height: 72px; background: var(--gold-pale);
      display: flex; align-items: center; justify-content: center;
    }
    .cart-item-img svg { width: 36px; height: 54px; }
    .cart-item-name {
      font-family: 'Cormorant Garamond', serif; font-size: 1.05rem;
    }
    .cart-item-meta { font-size: 12px; color: var(--mid); margin: 2px 0; }
    .cart-item-qty {
      display: flex; align-items: center; gap: 8px; margin-top: 6px;
    }
    .qty-btn {
      width: 24px; height: 24px; border: 0.5px solid var(--border);
      background: none; cursor: pointer; font-size: 14px; color: var(--dark);
      display: flex; align-items: center; justify-content: center;
    }
    .qty-num { font-size: 13px; min-width: 20px; text-align: center; }
    .cart-item-price { font-weight: 500; font-size: 14px; white-space: nowrap; }
    .cart-footer {
      padding: 1.5rem 2rem; border-top: 0.5px solid var(--border);
    }
    .cart-total-row {
      display: flex; justify-content: space-between; align-items: baseline;
      margin-bottom: 1.2rem;
    }
    .cart-total-label { font-size: 13px; color: var(--mid); text-transform: uppercase; letter-spacing: 0.06em; }
    .cart-total-amount { font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; }
    .checkout-btn {
      width: 100%; padding: 1rem; background: var(--dark); color: var(--white);
      border: none; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
      cursor: pointer; font-family: 'DM Sans', sans-serif; transition: background 0.2s;
    }
    .checkout-btn:hover { background: var(--gold); }

    /* Instagram Feed */
    .ig-section {
      padding: 6rem 2rem;
      background: #faf9f6;
    }

    .ig-grid-feed {
      display: grid !important;
      grid-template-columns: repeat(3, 1fr) !important;
      gap: 6px;
      max-width: 900px;
      margin: 2.5rem auto 0;
      width: 100%;
    }

    @media (max-width: 600px) {
      .ig-grid-feed{grid-template-columns: repeat(2, 1fr);}
    }

    .ig-feed-item {
      position: relative;
      aspect-ratio: 1;
      overflow: hidden;
      cursor: pointer;
    }

    .ig-feed-item img {
      width: 100%;
      height: 100%;
      object-fit:cover;
      display: block;
      transition: transform 0.4s ease;
    }

    .ig-feed-item:hover img { transform: scale(1.05);}

    .ig-feed-overlay {
      position: absolute;
      inset: 0;
      background: rgba(26, 22, 18, 0.5);
      opacity: 0;
      transition: opacity 0.3s ease;
      display: flex;
      align-items: flex-end;
      padding: 14px; 
    }

    .ig-feed-item:hover .ig-feed-overlay {opacity: 1;}

    .ig-feed-caption {
      color: #f0e8d8;
      font-family: 'DM Sans', sans-serif;
      font-size: 12px;
      font-weight: 300;
      line-height: 1.5;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    /* ─── FOOTER ─── */
    footer {
      background: var(--dark); color: rgba(255,255,255,0.6);
      padding: 4rem 4rem 2rem; font-size: 13px;
    }
    .footer-grid {
      display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
      gap: 3rem; margin-bottom: 3rem;
    }
    .footer-brand-name {
      font-family: 'Cormorant Garamond', serif;
      font-size: 1.8rem; font-weight: 300; color: var(--white);
      letter-spacing: 0.15em; margin-bottom: 0.3rem;
    }
    .footer-brand-sub {
      font-family: 'DM Sans', sans-serif;
      font-size: 0.65rem; font-weight: 400;
      letter-spacing: 0.06em;
      color: rgba(255,255,255,0.5);
      margin-bottom: 1rem;
    }
    .footer-desc { line-height: 1.7; max-width: 280px; }
    .footer-col h4 {
      font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
      color: var(--gold-light); margin-bottom: 1rem;
    }
    .footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
    .footer-col a { color: rgba(255,255,255,0.55); text-decoration: none; transition: color 0.2s; }
    .footer-col a:hover { color: var(--gold-light); }
    .footer-bottom {
      border-top: 0.5px solid rgba(255,255,255,0.1);
      padding-top: 1.5rem; display: flex; justify-content: space-between;
      font-size: 12px;
    }

    /* ─── RESPONSIVE ─── */
    @media (max-width: 900px) {
      nav { padding: 1rem 1.5rem; }
      .nav-links { display: none; }
      .hero { grid-template-columns: 1fr; }
      .hero-text { padding: 4rem 2rem 3rem; }
      .hero-visual { min-height: 300px; }
      .products-section { padding: 0 1.5rem 4rem; }
      .story-section { grid-template-columns: 1fr; }
      .story-visual { min-height: 200px; }
      .story-text { padding: 3rem 2rem; }
      .footer-grid { grid-template-columns: 1fr 1fr; }
      /* RWD: cart sidebar penuh lebar saat layar < 900px agar konten tidak terpotong */
      .cart-sidebar { width: 100%; }
    }

    /* RWD: Footer 1 kolom di layar mobile kecil */
    @media (max-width: 600px) {
      footer { padding: 3rem 1.5rem 2rem; }
      .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
      .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
      }
    }

    /* ── Product Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 22, 18, 0.6);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal-box {
  background: #faf9f6;
  border-radius: 4px;
  max-width: 820px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay.open .modal-box {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #1a1612;
  z-index: 10;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}

.modal-close:hover { background: #ece8e0; }

.modal-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
}


@media (max-width: 640px) {
  .modal-inner { grid-template-columns: 1fr; }
  /* Gallery di mobile: tinggi viewer lebih compact */
  .modal-gallery { min-height: 0; }
  .gallery-main-viewer { min-height: 240px; }
  .gallery-thumb { width: 52px; height: 52px; }
  /* Nav arrows selalu visible di mobile (tidak perlu hover) */
  .gallery-nav { opacity: 0.85; }
}


/* ── Modal Gallery System ── */
.modal-left {
  background: #f0ece0;
  display: flex;
  flex-direction: column;
}

/* Wrapper galeri — mengisi full tinggi kolom kiri */
.modal-gallery {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 480px;
}

/* ── Main Viewer — area gambar/video besar ── */
.gallery-main-viewer {
  position: relative;
  flex: 1;
  background: #f0ece0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 320px;
}

#galleryMainImg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 2rem;
  transition: opacity 0.2s ease;
  display: block;
}

#galleryMainVideo {
  width: 100%;
  height: 100%;
  border: none;
  display: none; /* Hidden by default — tampil saat thumbnail video diklik */
}

/* ── Nav Arrows (Prev/Next) ── */
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(250, 249, 246, 0.9);
  border: 1px solid #d8cebf;
  color: #1a1612;
  font-size: 1.5rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  opacity: 0;
  transition: opacity 0.2s, border-color 0.2s, color 0.2s;
  line-height: 1;
  padding: 0;
  box-shadow: 0 2px 8px rgba(26,22,18,0.12);
}

.gallery-main-viewer:hover .gallery-nav {
  opacity: 1;
}

.gallery-nav-prev { left: 10px; }
.gallery-nav-next { right: 10px; }

.gallery-nav:hover {
  border-color: #b89a6a;
  color: #b89a6a;
}

/* ── Thumbnail Strip ── */
.gallery-thumbs {
  display: flex;
  gap: 8px;
  padding: 10px 14px;
  background: #e6dece;
  overflow-x: auto;
  flex-shrink: 0;
  scrollbar-width: thin;
  scrollbar-color: #c8b89a transparent;
  border-top: 1px solid #d8cebf;
}

.gallery-thumbs::-webkit-scrollbar { height: 3px; }
.gallery-thumbs::-webkit-scrollbar-track { background: transparent; }
.gallery-thumbs::-webkit-scrollbar-thumb { background: #c8b89a; border-radius: 2px; }

/* ── Individual Thumbnail ── */
.gallery-thumb {
  flex-shrink: 0;
  width: 62px;
  height: 62px;
  border: 2px solid transparent;
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
  background: #f5f2ea;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
  position: relative;
}

.gallery-thumb:hover {
  border-color: #b89a6a;
  transform: scale(1.06);
  box-shadow: 0 2px 8px rgba(184,154,106,0.25);
}

.gallery-thumb.active {
  border-color: #1a1612;
  box-shadow: 0 2px 6px rgba(26,22,18,0.2);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Video Thumbnail (dengan play icon overlay) ── */
.gallery-thumb.video-thumb {
  background: #1a1612;
}

.gallery-thumb.video-thumb img {
  opacity: 0.55;
  object-fit: cover;
}

.video-play-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.video-play-icon svg {
  width: 24px;
  height: 24px;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.6));
}

/* Badge "New" / "Sale" di atas gambar produk */
.modal-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: #1a1612;
  color: #f0e8d8;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 2px;
  z-index: 3;
}

.modal-right {
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.modal-category {
  font-size: 11px;
  letter-spacing: 2px;
  color: #b89a6a;
  text-transform: uppercase;
  font-family: 'DM Sans', sans-serif;
}

.modal-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 400;
  color: #1a1612;
  line-height: 1.2;
}

.modal-notes {
  font-size: 13px;
  color: #b89a6a;
  font-family: 'DM Sans', sans-serif;
}

.modal-desc {
  font-size: 13.5px;
  color: #6b5f52;
  line-height: 1.7;
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  border-top: 0.5px solid #e8e0d4;
  padding-top: 0.75rem;
}

.modal-price-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 0.25rem;
}

.modal-original-price {
  font-size: 13px;
  color: #aaa;
  text-decoration: line-through;
  font-family: 'DM Sans', sans-serif;
}

.modal-price {
  font-size: 1.4rem;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  color: #1a1612;
}

.modal-size-label {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #6b5f52;
  font-family: 'DM Sans', sans-serif;
  margin-bottom: 0.5rem;
}

.modal-sizes-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.size-btn {
  padding: 6px 16px;
  border: 1px solid #c8b89a;
  background: transparent;
  color: #1a1612;
  font-size: 12px;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.2s;
}

.size-btn:hover { background: #f0ece0; }

.size-btn.active {
  background: #1a1612;
  color: #f0e8d8;
  border-color: #1a1612;
}

.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
  padding-top: 1rem;
  flex-wrap: wrap;
}

.modal-add-cart {
  flex: 1;
  padding: 12px;
  border: 1.5px solid #1a1612;
  background: transparent;
  color: #1a1612;
  font-size: 13px;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.2s;
}

.modal-add-cart:hover { background: #f0ece0; }

.modal-buy {
  flex: 1;
  padding: 12px;
  border: none;
  background: #1a1612;
  color: #f0e8d8;
  font-size: 13px;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.2s;
}

.modal-buy:hover { background: #2d2620; }

.modal-buy.btn-disabled {
  background: #c8c0b4;
  cursor: not-allowed;
  opacity: 0.6;
}

.modal-buy.btn-disabled:hover {
  background: #c8c0b4;
  transform: none;
}

/* ── Marketplace Modal ── */
.market-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 22, 18, 0.6);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.market-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.market-box {
  background: #faf9f6;
  border-radius: 4px;
  padding: 2.5rem 2rem;
  max-width: 420px;
  width: 100%;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  text-align: center;
}

.market-overlay.open .market-box {
  transform: translateY(0);
}

.market-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #1a1612;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}

.market-close:hover { background: #ece8e0; }

.market-eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #b89a6a;
  font-family: 'DM Sans', sans-serif;
  margin-bottom: 0.4rem;
}

.market-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: #1a1612;
  margin-bottom: 0.4rem;
}

.market-subtitle {
  font-size: 13px;
  color: #6b5f52;
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  margin-bottom: 2rem;
}

.market-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.market-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-radius: 4px;
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid transparent;
}

.market-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.market-item img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.market-item.shopee {
  background: #fff4f0;
  color: #ee4d2d;
  border-color: #ffd5c8;
}

.market-item.tokopedia {
  background: #f0faf4;
  color: #03ac0e;
  border-color: #c2eacc;
}

.market-item.tiktok {
  background: #f5f5f5;
  color: #1a1612;
  border-color: #e0e0e0;
}

.market-item-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.market-item-label {
  font-size: 14px;
  font-weight: 500;
}

.market-item-sub {
  font-size: 11px;
  font-weight: 300;
  opacity: 0.7;
}

.market-icon {
  font-size: 22px;
  width: 28px;
  text-align: center;
}

.market-item.website {
  background: #1a1612;
  color: #f0e8d8;
  border-color: #1a1612;
  cursor: pointer;
}

.market-item.website:hover {
  background: #2d2620;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.market-divider {
  text-align: center;
  font-size: 11px;
  color: #b89a6a;
  font-family: 'DM Sans', sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
  position: relative;
  padding: 4px 0;
}

.market-divider::before,
.market-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 25%;
  height: 0.5px;
  background: #d4c9b4;
}

.market-divider::before { left: 0; }
.market-divider::after  { right: 0; }

.map-container {
    margin-top: 20px;
    border-radius: 12px;
    height: 220px;
    overflow: hidden;
}
/* RWD FIX: Pastikan iframe di dalam map-container selalu fluid */
.map-container iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}

/* ─── HAMBURGER MENU ─── */
/* Tombol tersembunyi di desktop, muncul di mobile */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  transition: background 0.2s;
  order: 3; /* selalu di kanan sebelum nav-actions */
}
.hamburger:hover { background: rgba(0,0,0,0.04); }
.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--dark);
  transition: transform 0.25s ease, opacity 0.2s ease;
  border-radius: 2px;
}
/* Animasi X saat menu terbuka */
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ─── TOAST ─── */
    .toast {
      position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%) translateY(80px);
      background: var(--dark); color: var(--white);
      padding: 0.8rem 1.8rem; font-size: 13px; letter-spacing: 0.05em;
      z-index: 300; transition: transform 0.3s cubic-bezier(.25,.8,.25,1);
      pointer-events: none;
    }
    .toast.show { transform: translateX(-50%) translateY(0); }

  /* ═══════════════════════════════════════════
    MOBILE RESPONSIVE — Complete Fix
    max-width: 768px & 480px
  ═══════════════════════════════════════════ */

@media (max-width: 768px) {

  /* ── NAVBAR ── */
  nav {
    padding: 0.9rem 1.2rem;
    padding-top: calc(0.9rem + env(safe-area-inset-top, 0px));
  }
  .nav-logo {
    font-size: 1.2rem;
    gap: 8px;
  }
  .nav-logo img {
    width: 40px;
  }
  .nav-links {
    display: none; /* hamburger menu bisa ditambah nanti */
  }

  /* ── HERO ── */
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 70px;
  }
  .hero-text {
    padding: 2.5rem 1.5rem 2rem;
    text-align: center;
    align-items: center;
  }
  .hero-title {
    font-size: clamp(2.8rem, 12vw, 4rem);
  }
  .hero-desc {
    font-size: 14px;
    max-width: 100%;
  }
  .hero-actions {
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
  }
  .hero-actions .btn-primary,
  .hero-actions .btn-outline {
    width: 100%;
    justify-content: center;
  }
  .hero-visual {
    min-height: 260px;
    padding: 1.5rem;
  }
  .bottle-img {
    max-width: 220px;
  }

  /* ── SECTION HEADER ── */
  .section-header {
    padding: 3rem 1.5rem 2rem;
  }

  /* ── PRODUCTS ── */
  .products-section {
    padding: 0 1rem 3rem;
  }
  .filter-bar {
    gap: 0.4rem;
    margin-bottom: 2rem;
  }
  .filter-btn {
    padding: 0.45rem 1rem;
    font-size: 11px;
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .product-img {
    height: 200px;
  }
  .product-info {
    padding: 1rem;
  }
  .product-name {
    font-size: 1.1rem;
  }
  .product-notes {
    font-size: 11px;
  }

  /* ── STORY SECTION ── */
  .story-section {
    grid-template-columns: 1fr;
    overflow: hidden;
  }
  .story-visual {
    min-height: 260px;
    padding: 2rem;
    width: 100%;
  }
  .story-logo-img {
    width: 100%;
    max-width: 280px;
    height: auto;
  }
  .story-text {
    padding: 2.5rem 1.5rem;
    width: 100%;
    box-sizing: border-box;
  }
  .story-title {
    font-size: 2rem;
    word-break: break-word;
  }
  .story-desc {
    font-size: 13px;
    word-break: break-word;
  }

  /* ── INSTAGRAM FEED ── */
  .ig-section {
    padding: 3rem 1rem;
  }
  .ig-grid-feed {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 4px;
  }

  /* ── PRODUCT MODAL ── */
  .modal-box {
    max-height: 95vh;
    margin: 0.5rem;
    border-radius: 6px;
  }
  .modal-inner {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .modal-img-wrap {
    min-height: 240px;
  }
  .modal-right {
    padding: 1.5rem 1.2rem;
    gap: 0.6rem;
  }
  .modal-name {
    font-size: 1.5rem;
  }
  .modal-actions {
    flex-direction: column;
  }
  .modal-add-cart,
  .modal-buy {
    width: 100%;
  }

  /* ── MARKETPLACE MODAL ── */
  .market-box {
    padding: 2rem 1.2rem;
    margin: 0 0.5rem;
  }

  /* ── FOOTER ── */
  footer {
    padding: 2.5rem 1.2rem 1.5rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }
  .footer-brand-name {
    font-size: 1.4rem;
  }
  .footer-desc {
    max-width: 100%;
  }
  .footer-col h4 {
    margin-top: 0.5rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 0.4rem;
    text-align: center;
  }
  .map-container {
    grid-column: 1;
    margin-top: 0;
    height: 220px;
  }

  /* ── HAMBURGER — Mobile state ── */
  .hamburger {
    display: flex; /* tampilkan di mobile */
  }
  .nav-links {
    /* Dropdown vertikal saat hamburger terbuka */
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(249,245,240,0.98);
    backdrop-filter: blur(12px);
    border-bottom: 0.5px solid var(--border);
    flex-direction: column;
    padding: 0.8rem 1.5rem 1.2rem;
    gap: 0;
    z-index: 99;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links li {
    list-style: none;
  }
  .nav-links a {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 0.5px solid var(--border);
    font-size: 14px;
  }
  .nav-links li:last-child a { border-bottom: none; }
}

/* ── Extra small phones (≤ 400px) ── */
@media (max-width: 400px) {
  .hero-title {
    font-size: 2.5rem;
  }
  /* RWD FIX: tetap 2 kolom di HP paling kecil juga (sebelumnya jatuh ke
     1 kolom di sini) — pola grid katalog e-commerce standar. */
  .product-img {
    height: 170px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .filter-btn {
    padding: 0.4rem 0.8rem;
    font-size: 10px;
  }
  .ig-grid-feed {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .story-title {
    font-size: 1.7rem;
  }
}

/* ── Small phones (≤ 480px) — RWD FIX ── */
@media (max-width: 480px) {
  /* Modal produk fullscreen di HP kecil agar konten tidak terpotong */
  .modal-box {
    margin: 0;
    border-radius: 0;
    max-height: 100dvh;
    height: 100dvh;
  }

  /* RWD FIX: konten modal produk terlalu memanjang, butuh banyak scroll —
     rapatkan gambar & jarak antar elemen (bukan menghapus konten) supaya
     lebih padat seperti modal produk e-commerce pada umumnya. */
  .gallery-main-viewer { min-height: 200px; }
  .gallery-thumbs { padding: 8px 12px; }
  .modal-right { padding: 1.2rem 1rem; gap: 0.5rem; }
  .modal-desc { padding-top: 0.5rem; }
  .modal-size-label { margin-bottom: 0.35rem; }

  /* Filter bar: scroll horizontal agar tidak wrap ke baris banyak */
  .filter-bar {
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .filter-bar::-webkit-scrollbar { display: none; }
  .filter-btn { flex-shrink: 0; }

  /* Checkout button di cart sidebar: minimum 48px agar mudah di-tap */
  .checkout-btn {
    min-height: 48px;
    font-size: 14px;
  }

  /* Cart sidebar penuh lebar */
  .cart-sidebar { width: 100%; }

  /* Nav actions lebih rapat */
  .nav-actions { gap: 0.4rem; }
  .btn-login-nav { padding: 5px 8px; font-size: 10px; }

  /* RWD FIX: Header di layar sempit — brand "SHEMPARFUM" tertimpa tombol
     user. Perkecil logo & rapatkan nav agar semua elemen (logo, hamburger,
     login/user btn, cart) muat tanpa saling menimpa. */
  nav { padding: 0.7rem 0.8rem; }
  .nav-logo { font-size: 1rem; letter-spacing: 0.1em; gap: 6px; }
  .nav-logo img { width: 30px; }
  .nav-brand-sub { font-size: 0.4rem; margin-top: 1px; }
  .cart-btn { padding: 0.3rem; }

  /* RWD: Hero section padding lebih kecil di HP */
  .hero-text { padding: 3rem 1.5rem 2rem; }
  .hero-title { font-size: 2.8rem; }

  /* RWD: Products section padding kecil */
  .products-section { padding: 0 1rem 3rem; }

  /* RWD: Semua tombol utama min-height 44px untuk touch target */
  .btn-primary, .btn-outline {
    min-height: 44px;
    padding: 0.8rem 1.6rem;
  }

  /* RWD: Cart item font lebih kecil tapi tetap readable */
  .cart-item-name { font-size: 13px; }
  .cart-header { padding: 1.2rem 1.5rem; }
  .cart-items { padding: 1rem 1.5rem; }
  .cart-footer {
    padding: 1.2rem 1.5rem;
    /* RWD: home indicator safe area di HP tanpa tombol fisik */
    padding-bottom: calc(1.2rem + env(safe-area-inset-bottom, 0px));
  }

  /* RWD FIX: cart-items tidak lagi dipaksa flex:1 mengisi semua sisa
     ruang — dengan 1-2 item ini menyisakan jarak kosong sangat besar
     sebelum TOTAL/checkout. Sekarang tinggi menyesuaikan isi, dan tetap
     bisa scroll (flex-shrink + overflow-y) kalau item banyak. */
  .cart-items { flex: 0 1 auto; }

  /* RWD FIX: toast "added to cart" menutupi TOTAL & tombol checkout saat
     cart sidebar terbuka di HP — pindahkan ke atas layar, di bawah nav.
     RWD FIX #2: offset translateY sebelumnya (-24px) tidak cukup jauh —
     toast (tinggi bisa >60px kalau teks 2 baris) masih terlihat sebagian
     sebagai kotak hitam kosong bahkan saat tersembunyi. Tambahkan opacity
     sebagai jaring pengaman ganda (tidak bergantung ke jarak translate). */
  .toast {
    top: calc(env(safe-area-inset-top, 0px) + 76px);
    bottom: auto;
    transform: translateX(-50%) translateY(-16px);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(.25,.8,.25,1), opacity 0.3s;
  }
  .toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }

  /* RWD: touch target 44px untuk tombol ukuran, qty +/-, dan tombol tutup */
  .size-btn {
    min-height: 44px;
    padding: 6px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .qty-btn { width: 36px; height: 36px; }
  .modal-close { width: 40px; height: 40px; }
  .cart-close { padding: 8px; min-width: 40px; min-height: 40px; }

  /* RWD FIX: tombol chat mengambang menimpa cart/modal saat keduanya
     terbuka bersamaan di layar sempit — sembunyikan sementara. */
  .cart-sidebar.open ~ .cb-wrapper,
  .modal-overlay.open ~ .cb-wrapper {
    display: none;
  }
}

/* ── Extra small phones (≤ 360px) ── */
@media (max-width: 360px) {
  nav { padding: 0.6rem 0.6rem; }
  .nav-logo { font-size: 0.85rem; letter-spacing: 0.06em; gap: 5px; }
  .nav-logo img { width: 26px; }
  .nav-brand-sub { font-size: 0.35rem; }
  .nav-actions { gap: 0.3rem; }
  .btn-login-nav { padding: 4px 6px; font-size: 9px; }
}

/* ─────────────────────────────────────────────────────────────
 * INSTAGRAM LIVE FEED SECTION (Luxury Minimalist Design)
 * ───────────────────────────────────────────────────────────── */
.instagram-feed-section {
  padding: 4.5rem 2rem 5rem;
  background: var(--light);
  border-top: 0.5px solid var(--border);
  text-align: center;
}

.instagram-feed-header {
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.instagram-subheading {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.25em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.instagram-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--dark);
  margin-bottom: 0.4rem;
}

.instagram-heading a {
  color: var(--dark);
  text-decoration: none;
  transition: color 0.3s ease, opacity 0.3s ease;
}

.instagram-heading a:hover {
  color: var(--gold);
  opacity: 0.9;
}

.instagram-desc {
  font-size: 13px;
  color: var(--mid);
  line-height: 1.6;
  margin: 0 auto;
}

/* Container utama widget pihak ketiga (Elfsight / LightWidget / SnapWidget) */
.insta-feed-container {
  max-width: 1200px;
  margin: 0 auto;
  min-height: 180px;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

/* Responsive grid tuning untuk iframe / widget container */
@media (max-width: 768px) {
  .instagram-feed-section {
    padding: 3rem 1rem 3.5rem;
  }

  .instagram-heading {
    font-size: 2rem;
  }

  .instagram-desc {
    font-size: 12px;
    padding: 0 1rem;
  }
}

