/* ══════════════════════════════════════════════
   PRODUCTS.CSS — COVANA
   Standalone. Tidak bergantung pada style.css
══════════════════════════════════════════════ */

/* ─── VARIABLES ───────────────────────────── */
:root {
  --shell: #3d2b1f;
  --shell-light: #5c4033;
  --beige: #f5efe6;
  --sand: #e8ddd0;
  --sand-dark: #d4c5b2;
  --white: #fdfcfa;
  --charcoal: #1c1712;
  --charcoal-soft: #2e2620;
  --gold: #c9a96e;
  --gold-light: #e0c898;
  --text-muted: #7a6a5c;
}

/* ─── CUSTOM SCROLLBAR ─────────────────── */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--sand);
}
::-webkit-scrollbar-thumb {
  background: var(--gold);
  border: 2px solid var(--sand);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--shell);
}
* {
  scrollbar-width: thin;
  scrollbar-color: var(--gold) var(--sand);
}

/* ─── RESET ───────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--charcoal);
  color: var(--beige);
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ─── HERO ────────────────────────────────── */
.prod-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #0e0e0e;
}
.prod-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1509440159596-0249088772ff?w=1600&q=80');
  background-size: cover;
  background-position: center 30%;
  filter: brightness(0.38);
  transition: transform 8s ease;
}
.prod-hero:hover .prod-hero-bg {
  transform: scale(1.04);
}
.prod-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(10, 10, 10, 0.92) 0%, rgba(10, 10, 10, 0.7) 45%, rgba(10, 10, 10, 0.1) 100%);
}
.prod-hero-content {
  position: relative;
  z-index: 2;
  padding: 0 7%;
  max-width: 680px;
}
.prod-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #c9a84c;
  margin-bottom: 22px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
}
.prod-hero-eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: #c9a84c;
}
.prod-hero-content h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(44px, 6vw, 80px);
  font-weight: 600;
  color: #fff;
  line-height: 1.05;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}
.prod-hero-content h1 em {
  font-style: italic;
  color: #c9a84c;
}
.prod-hero-content p {
  font-size: 15px;
  color: rgba(245, 239, 230, 0.6);
  line-height: 1.85;
  max-width: 480px;
  font-weight: 300;
  margin-bottom: 36px;
}
.prod-hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-btn-gold {
  display: inline-block;
  background: #c9a84c;
  color: #0e0e0e;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 14px 28px;
  text-decoration: none;
  transition:
    background 0.25s,
    transform 0.2s;
}
.hero-btn-gold:hover {
  background: #e0c06a;
  transform: translateY(-2px);
}

.hero-btn-outline {
  display: inline-block;
  border: 1px solid rgba(245, 239, 230, 0.3);
  color: rgba(245, 239, 230, 0.75);
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 14px 28px;
  text-decoration: none;
  transition:
    border-color 0.25s,
    color 0.25s;
}
.hero-btn-outline:hover {
  border-color: #c9a84c;
  color: #c9a84c;
}

/* ─── SECTION HEADING ─────────────────────── */
.section-heading {
  text-align: center;
  margin-bottom: 52px;
}
.section-heading h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 400;
  color: var(--shell);
  margin-bottom: 10px;
}
.section-heading h2 em {
  font-style: italic;
  color: var(--gold);
}
.section-heading p {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}
.section-divider {
  width: 40px;
  height: 2px;
  background: var(--gold);
  margin: 16px auto 0;
}

/* ─── FEATURED SECTION ────────────────────── */
.section-dark {
  background: var(--sand);
  padding: 80px 7%;
}
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.feat-card {
  background: var(--white);
  border: 1px solid var(--sand-dark);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.3s,
    border-color 0.3s,
    box-shadow 0.3s;
}
.feat-card:hover {
  transform: translateY(-6px);
  border-color: rgba(201, 168, 76, 0.35);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}
.feat-card-img {
  width: 100%;
  aspect-ratio: 1/1;
  background: var(--sand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
}
.feat-card:hover .feat-card-img {
  background: var(--sand-dark);
}
.feat-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: #c9a84c;
  color: #0e0e0e;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 5px 10px;
  font-weight: 700;
  font-family: 'DM Sans', sans-serif;
}
.feat-card-body {
  padding: 24px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.feat-cat {
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
}
.feat-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 500;
  color: var(--shell);
  line-height: 1.25;
}
.feat-tagline {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.feat-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 14px;
  flex: 1;
}
.feat-cta-btn {
  display: inline-block;
  background: transparent;
  border: 1px solid rgba(201, 169, 110, 0.5);
  color: var(--gold);
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 10px 20px;
  text-decoration: none;
  text-align: center;
  transition:
    background 0.25s,
    color 0.25s,
    border-color 0.25s;
  align-self: flex-start;
  width: 100%;
  box-sizing: border-box;
}
.feat-card:hover .feat-cta-btn {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}

/* ─── DIVIDER BANNER ──────────────────────── */
.divider-banner {
  background: var(--charcoal);
  padding: 60px 7%;
  text-align: center;
  border-top: 1px solid rgba(245, 239, 230, 0.06);
  border-bottom: 1px solid rgba(245, 239, 230, 0.06);
}
.divider-banner h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(18px, 2.5vw, 30px);
  font-weight: 300;
  color: rgba(245, 239, 230, 0.65);
  letter-spacing: 0.03em;
}
.divider-banner h3 strong {
  color: #c9a84c;
  font-weight: 500;
}

/* ─── ALL PRODUCTS SECTION ────────────────── */
.section-all {
  background: var(--charcoal);
  padding: 80px 7%;
}
.filter-bar-dark {
  background: var(--charcoal-soft);
  border: 1px solid rgba(245, 239, 230, 0.06);
  padding: 0 24px;
  position: sticky;
  top: 72px;
  z-index: 99;
  max-width: 1200px;
  margin: 0 auto 48px;
}
.filter-inner-dark {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.filter-inner-dark::-webkit-scrollbar {
  display: none;
}
.filter-btn-dark {
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245, 239, 230, 0.4);
  font-weight: 500;
  padding: 17px 18px;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
}
.filter-btn-dark:hover {
  color: #f5efe6;
}
.filter-btn-dark.active {
  color: #c9a84c;
  border-bottom-color: #c9a84c;
}
.filter-search-dark {
  margin-left: auto;
  display: flex;
  align-items: center;
  padding: 8px 0;
  flex-shrink: 0;
}
.filter-search-dark input {
  background: var(--shell);
  border: 1px solid rgba(245, 239, 230, 0.12);
  padding: 8px 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: var(--beige);
  outline: none;
  width: 180px;
  transition: border-color 0.2s;
}
.filter-search-dark input:focus {
  border-color: #c9a84c;
}
.filter-search-dark input::placeholder {
  color: rgba(245, 239, 230, 0.3);
}
.filter-search-dark button {
  background: #c9a84c;
  color: #0e0e0e;
  border: none;
  padding: 9px 16px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  transition: background 0.2s;
}
.filter-search-dark button:hover {
  background: #e0c06a;
}

.all-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  max-width: 1200px;
  margin: 0 auto;
}
.all-card {
  background: var(--charcoal-soft);
  border: 1px solid rgba(245, 239, 230, 0.05);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.3s,
    border-color 0.3s,
    box-shadow 0.3s;
}
.all-card:hover {
  transform: translateY(-5px);
  border-color: rgba(201, 168, 76, 0.3);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}
.all-card-img {
  width: 100%;
  aspect-ratio: 1/1;
  background: var(--shell);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  transition: background 0.3s;
  position: relative;
}
.all-card:hover .all-card-img {
  background: var(--shell-light);
}
.all-card-body {
  padding: 18px 16px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.all-card-cat {
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #c9a84c;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  margin-bottom: 6px;
}
.all-card-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  font-weight: 500;
  color: #f5efe6;
  line-height: 1.3;
  margin-bottom: 6px;
}
.all-card-tagline {
  font-size: 10px;
  color: rgba(245, 239, 230, 0.35);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.all-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid rgba(245, 239, 230, 0.07);
  margin-top: auto;
}
.all-card-price {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245, 239, 230, 0.45);
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
}
.all-card-cta {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #c9a84c;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'DM Sans', sans-serif;
  transition: gap 0.25s;
}
.all-card:hover .all-card-cta {
  gap: 10px;
}
.all-card-cta::after {
  content: '→';
}

/* ─── RESULTS INFO ────────────────────────── */
.results-info-dark {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245, 239, 230, 0.35);
  margin-bottom: 28px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  display: block;
}
.results-info-dark strong {
  color: #c9a84c;
}

/* ─── EMPTY STATE ─────────────────────────── */
.empty-state-dark {
  text-align: center;
  padding: 80px 24px;
  grid-column: 1 / -1;
}
.empty-state-dark p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  color: rgba(245, 239, 230, 0.35);
}
.empty-state-dark a {
  color: #c9a84c;
  text-decoration: none;
}

/* ─── CTA BANNER ──────────────────────────── */
.cta-banner-dark {
  background: var(--charcoal-soft);
  padding: 80px 7%;
  text-align: center;
  border-top: 3px solid #c9a84c;
  position: relative;
  overflow: hidden;
}
.cta-banner-dark::before {
  content: 'COVANAA';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Cormorant Garamond', serif;
  font-size: 200px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.018);
  pointer-events: none;
  white-space: nowrap;
  letter-spacing: 0.3em;
  max-width: 100%;
  overflow: hidden;
}
.cta-banner-dark h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 4vw, 50px);
  font-weight: 300;
  color: #fff;
  margin-bottom: 16px;
  position: relative;
}
.cta-banner-dark h2 em {
  font-style: italic;
  color: #c9a84c;
}
.cta-banner-dark p {
  color: rgba(245, 239, 230, 0.45);
  font-size: 14px;
  max-width: 440px;
  margin: 0 auto 36px;
  line-height: 1.85;
  position: relative;
}
.cta-btns-dark {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}
.wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25d366;
  color: var(--white);
  padding: 12px 24px;
  text-decoration: none;
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  transition: background 0.25s;
  margin-top: 0;
}
.wa-btn:hover {
  background: #1ebe5d;
}

/* ─── FOOTER ──────────────────────────────── */
footer {
  background: var(--charcoal);
  padding: 60px 5% 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 36px;
}
.footer-brand .logo-name {
  color: var(--beige);
}
.footer-brand .logo-sub {
  color: var(--gold);
}
.footer-tagline {
  color: rgba(245, 239, 230, 0.35);
  font-size: 12.5px;
  line-height: 1.7;
  margin-top: 16px;
  margin-bottom: 20px;
  max-width: 240px;
}
.footer-col-title {
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(245, 239, 230, 0.5);
  margin-bottom: 18px;
  font-weight: 500;
}
.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: 10px;
}
.footer-links a,
.footer-links span {
  color: rgba(245, 239, 230, 0.35);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: #c9a84c;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-copy {
  font-size: 11px;
  color: rgba(245, 239, 230, 0.25);
}
.footer-compliance {
  font-size: 11px;
  color: rgba(245, 239, 230, 0.25);
  text-align: right;
  max-width: 440px;
  line-height: 1.6;
}

/* ─── ANIMATIONS ──────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: none;
}

/* ─── RESPONSIVE ──────────────────────────── */
@media (max-width: 1024px) {
  .featured-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .prod-hero {
    height: 70vh;
  }
  .prod-hero-content {
    padding: 0 24px;
  }
  .section-dark,
  .section-all {
    padding: 60px 24px;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  .cta-banner-dark::before {
    display: none;
  }
}

@media (max-width: 768px) {

  /* ── HERO ── */
  .prod-hero {
    height: 100svh;
  }
  .prod-hero-content {
    padding: 0 20px;
  }
  .prod-hero-content h1 {
    font-size: clamp(32px, 9vw, 48px);
  }
  .prod-hero-content p {
    font-size: 13px;
    margin-bottom: 0;
  }

  /* ── CATEGORY GRID ── */
  .section-dark {
    padding: 52px 16px;
  }
  .featured-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  /* ── CARD jadi horizontal seperti category.css ── */
  .feat-card {
    flex-direction: row;
    align-items: stretch;
    min-height: 120px;
  }
  .feat-card-img {
    width: 110px;
    min-width: 110px;
    aspect-ratio: unset;
    font-size: 40px;
    flex-shrink: 0;
  }
  .feat-card-body {
    padding: 14px 16px;
    gap: 4px;
    justify-content: center;
  }
  .feat-cat {
    font-size: 8px;
  }
  .feat-name {
    font-size: 16px;
    line-height: 1.2;
  }
  .feat-tagline {
    font-size: 10px;
    margin-bottom: 10px;
  }
  .feat-desc {
    display: none;
  }
  .feat-cta-btn {
    width: auto;
    align-self: flex-start;
    padding: 8px 14px;
    font-size: 9px;
  }

  /* ── CTA BANNER ── */
  .cta-banner-dark {
    padding: 52px 20px;
  }
  .cta-btns-dark {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .hero-btn-gold,
  .wa-btn {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 14px 20px;
  }

  /* ── FOOTER ── */
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

@media (max-width: 560px) {
  .featured-grid {
    gap: 6px;
  }
  .feat-card-img {
    width: 90px;
    min-width: 90px;
    font-size: 32px;
  }
  .feat-name {
    font-size: 15px;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}