/*
 * ═══════════════════════════════════════════════════════
 *  GOLDEN VIERA — Responsive Stylesheet
 *  Load order: AFTER tailwind CDN & base styles
 *
 *  Breakpoints:
 *    Tablet  → max-width: 1024px
 *    Mobile  → max-width: 640px
 * ═══════════════════════════════════════════════════════
 */


/* ─────────────────────────────────────────
   HAMBURGER BUTTON (hidden on desktop)
───────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 100;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--charcoal);
  transition: all 0.3s ease;
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }


/* ─────────────────────────────────────────
   MOBILE NAV DRAWER
───────────────────────────────────────── */
.mobile-nav {
  display: none;
  position: fixed;
  top: 57px; /* navbar height */
  left: 0; right: 0;
  background: #FBF9F5;
  border-bottom: 1px solid #e8e3d8;
  padding: 24px 24px 28px;
  z-index: 49;
  flex-direction: column;
  gap: 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  color: #4a4a4a;
  text-decoration: none;
  padding: 13px 0;
  border-bottom: 1px solid #f0ece4;
  letter-spacing: 0.5px;
  transition: color 0.2s;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover,
.mobile-nav a.active { color: var(--green); }


/* ═══════════════════════════════════════════
   TABLET  —  max-width: 1024px
═══════════════════════════════════════════ */
@media (max-width: 1024px) {

  /* Navbar */
  .hamburger { display: flex; }
  nav ul.desktop-nav { display: none !important; }

  /* Hero: taller aspect ratio on tablet */
  .hero-banner {
    aspect-ratio: 4/3 !important;
    min-height: 320px;
  }
  .hero-banner h1 {
    font-size: clamp(2rem, 5vw, 3rem) !important;
  }

  /* Featured Categories: keep 3 cols but reduce padding */
  .cat-grid {
    gap: 14px !important;
  }
  .cat-card {
    padding: 28px 20px !important;
  }

  /* New Arrivals: 2 cols on tablet */
  .product-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }

  /* Quote section */
  .quote-bg {
    padding: 56px 32px !important;
  }

  /* Footer: 2 cols */
  .footer-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 32px !important;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}


/* ═══════════════════════════════════════════
   MOBILE  —  max-width: 640px
═══════════════════════════════════════════ */
@media (max-width: 640px) {

  /* Navbar padding */
  nav .nav-inner {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  /* Hero: tall portrait aspect on mobile */
  .hero-banner {
    aspect-ratio: unset !important;
    min-height: 260px !important;
    max-height: 340px;
  }
  .hero-banner h1 {
    font-size: 2rem !important;
  }
  .hero-banner .hero-text {
    padding: 0 5% !important;
    max-width: 90% !important;
  }
  .hero-banner svg.hero-leaf {
    width: 38px !important;
    height: 38px !important;
  }

  /* Section padding */
  .section-inner {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  /* Featured Categories: 1 col stack */
  .cat-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .cat-card {
    padding: 24px 28px !important;
    flex-direction: row !important;
    text-align: left !important;
    align-items: center !important;
    gap: 16px;
  }
  .cat-card .cat-icon { margin-bottom: 0 !important; flex-shrink: 0; }
  .cat-card .cat-body { flex: 1; }
  .cat-card .cat-body p { display: none; } /* hide desc on mobile */
  .cat-card .cat-explore { margin-top: 8px; align-self: flex-start; }

  /* New Arrivals: 2 col on mobile */
  .product-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
  .product-grid h4 {
    font-size: 13px !important;
  }

  /* New Arrivals header */
  .arrivals-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important;
  }

  /* Quote section */
  .quote-bg {
    padding: 48px 24px !important;
  }
  .quote-bg p.quote-text {
    font-size: 1.35rem !important;
    letter-spacing: 0 !important;
  }
  .subscribe-row {
    flex-direction: column !important;
    align-items: center !important;
    gap: 0 !important;
  }
  .subscribe-input {
    width: 100% !important;
    max-width: 320px;
    border-bottom: none !important;
  }
  .subscribe-btn {
    width: 100% !important;
    max-width: 320px;
  }

  /* Footer: brand full width, lalu 3 kolom untuk link sections */
  .footer-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px 12px !important;
  }
  /* Brand full width di atas */
  .footer-brand {
    grid-column: 1 / -1 !important;
    padding-bottom: 12px;
    border-bottom: 1px solid #2a2a2a;
    margin-bottom: 4px;
  }
  /* Semua heading kolom lebih kecil di mobile */
  .footer-grid h5 {
    font-size: 9px !important;
    letter-spacing: 1.5px !important;
    margin-bottom: 14px !important;
  }
  /* Link footer lebih kecil supaya muat 3 kolom */
  .footer-grid a {
    font-size: 11px !important;
    line-height: 1.4 !important;
  }
  .footer-grid ul {
    gap: 10px !important;
  }
  footer .footer-inner {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}


/* ===== CATALOG PAGE ===== */
.catalog-page {
    background: #FAF9F6;
    padding-bottom: 80px;
}

.catalog-hero {
    padding: 60px 0 40px;
}

.catalog-hero .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.page-title {
    font-size: 64px;
    color: #2F5233;
    font-weight: 500;
    margin: 0;
}

.catalog-search {
    position: relative;
    width: 100%;
    max-width: 420px;
}

.catalog-search input {
    width: 100%;
    padding: 14px 50px 14px 20px;
    border: 1px solid #D9D9D9;
    border-radius: 8px;
    background: #FFFFFF;
    font-size: 14px;
}

.catalog-search button {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
}

.catalog-toolbar {
    border-top: 1px solid #E5E5E5;
    border-bottom: 1px solid #E5E5E5;
    padding: 16px 0;
    margin-bottom: 40px;
}

.catalog-toolbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.toolbar-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    font-size: 14px;
    color: #2F5233;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.results-count {
    font-size: 12px;
    color: #666;
    letter-spacing: 0.5px;
}

.toolbar-right {
    display: flex;
    gap: 8px;
}

.view-btn {
    background: none;
    border: none;
    padding: 6px;
    cursor: pointer;
    color: #999;
}

.view-btn.active {
    color: #2F5233;
}

.product-grid .grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 32px;
    margin-bottom: 60px;
}

.product-card {
    background: #FFFFFF;
}

.product-image {
    position: relative;
    background: #F5F5F5;
    aspect-ratio: 1;
    margin-bottom: 16px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.add-to-cart-btn {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #C9A961;
    color: #FFFFFF;
    border: none;
    padding: 14px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.3s;
}

.add-to-cart-btn:hover {
    background: #B8965A;
}

.product-info {
    padding: 0 4px;
}

.product-name {
    font-size: 16px;
    color: #C9A961;
    font-weight: 500;
    margin: 0 0 8px 0;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 12px;
}

.price-current {
    font-size: 16px;
    color: #2F5233;
    font-weight: 500;
}

.price-old {
    font-size: 14px;
    color: #D32F2F;
    text-decoration: line-through;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.page-num, .page-next {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #D9D9D9;
    background: #FFFFFF;
    color: #2F5233;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.page-num.active {
    background: #2F5233;
    color: #FFFFFF;
    border-color: #2F5233;
}

.page-num:hover, .page-next:hover {
    border-color: #2F5233;
}

.page-next {
    padding: 0 20px;
}

/* ===== PRODUCT DETAIL PAGE ===== */
.product-detail-page {
    background: #FAF9F6;
    padding: 60px 0 80px;
}

.product-detail-title {
    font-size: 64px;
    color: #2F5233;
    font-weight: 500;
    margin: 0 0 60px 0;
    line-height: 1.1;
}

.product-detail-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.product-detail-image {
    background: #F0F0F0;
    padding: 40px;
    position: relative;
}

.product-badge {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 40px;
}

.product-badge img {
    width: 60px;
    height: auto;
}

.badge-text {
    display: flex;
    flex-direction: column;
    border-left: 2px solid #2F5233;
    padding-left: 16px;
    font-size: 14px;
    font-weight: 600;
    color: #2F5233;
    letter-spacing: 1px;
}

.main-product-img {
    width: 100%;
    height: auto;
    display: block;
}

.product-detail-info {
    padding-top: 20px;
}

.product-detail-price {
    margin-bottom: 40px;
}

.product-detail-price .price-current {
    font-size: 56px;
    color: #2F5233;
    font-weight: 500;
    display: block;
    line-height: 1;
    margin-bottom: 8px;
}

.product-detail-price .price-old {
    font-size: 32px;
    color: #D32F2F;
    text-decoration: line-through;
}

.product-description {
    margin-bottom: 32px;
}

.product-description p {
    font-size: 15px;
    line-height: 1.8;
    color: #333;
}

.product-features {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #2F5233;
    letter-spacing: 0.5px;
}

.feature-divider {
    color: #2F5233;
}

.product-purchase {
    margin-top: 40px;
}

.quantity-label {
    display: block;
    font-size: 12px;
    color: #666;
    letter-spacing: 1px;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.quantity-selector {
    display: flex;
    align-items: center;
    width: fit-content;
    border: 1px solid #D9D9D9;
    background: #FFFFFF;
    margin-bottom: 24px;
}

.qty-btn {
    width: 48px;
    height: 48px;
    border: none;
    background: #FFFFFF;
    font-size: 20px;
    cursor: pointer;
    color: #2F5233;
}

.qty-btn:hover {
    background: #F5F5F5;
}

.qty-input {
    width: 60px;
    height: 48px;
    border: none;
    border-left: 1px solid #D9D9D9;
    border-right: 1px solid #D9D9D9;
    text-align: center;
    font-size: 16px;
    color: #2F5233;
}

.add-to-cart-btn-lg {
    width: 100%;
    background: #C9A961;
    color: #FFFFFF;
    border: none;
    padding: 20px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    cursor: pointer;
    transition: background 0.3s;
    box-shadow: 0 4px 12px rgba(201, 169, 97, 0.3);
}

.add-to-cart-btn-lg:hover {
    background: #B8965A;
}

/* ===== RESPONSIVE BREAKPOINTS ===== */
@media (max-width: 1024px) {
    .page-title, .product-detail-title {
        font-size: 48px;
    }
    
    .product-grid .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px 24px;
    }
    
    .product-detail-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .product-detail-price .price-current {
        font-size: 48px;
    }
}

@media (max-width: 768px) {
    .catalog-hero .container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .page-title, .product-detail-title {
        font-size: 36px;
    }
    
    .catalog-search {
        max-width: 100%;
    }
    
    .catalog-toolbar .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .product-grid .grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .product-detail-page {
        padding: 40px 0;
    }
    
    .product-detail-image {
        padding: 24px;
    }
    
    .product-detail-price .price-current {
        font-size: 40px;
    }
    
    .product-detail-price .price-old {
        font-size: 24px;
    }
    
    .product-features {
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .page-title, .product-detail-title {
        font-size: 32px;
    }
    
    .product-detail-title {
        margin-bottom: 32px;
    }
    
    .add-to-cart-btn-lg {
        padding: 18px;
    }
}
