/*
Theme Name: Jepara Heritage Theme
Theme URI: https://jeparaheritage.id
Author: Jepara Heritage
Description: Theme furniture Jepara bergaya premium dengan mega menu, hero slider, grid kategori visual, banner promo, produk unggulan, dan halaman detail produk. Tanpa WooCommerce.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: jeparatheme
Tags: furniture, mega-menu, responsive, custom-post-type
*/

/* =============================================
   RESET & VARIABLES
============================================= */
:root {
  --primary:    #8B2020;
  --primary-dk: #6b1818;
  --primary-lt: #c0392b;
  --gold:       #c9a96e;
  --gold-lt:    #e8d5b0;
  --dark:       #1a1208;
  --dark2:      #2d2416;
  --mid:        #5a4a3a;
  --light:      #f9f5f0;
  --white:      #ffffff;
  --border:     #e8ddd0;
  --text:       #3d2b1a;
  --muted:      #8a7a6a;
  --shadow:     0 4px 20px rgba(0,0,0,0.10);
  --radius:     10px;
  --transition: all .25s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', 'Segoe UI', Arial, sans-serif;
  background: var(--white);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dk); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* =============================================
   TOP BAR
============================================= */
#topbar {
  background: var(--primary);
  color: rgba(255,255,255,0.9);
  font-size: 12.5px;
  padding: 7px 0;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.topbar-left { display: flex; gap: 20px; align-items: center; }
.topbar-left a { color: rgba(255,255,255,0.85); font-size: 12.5px; }
.topbar-left a:hover { color: #fff; }
.topbar-right { display: flex; gap: 14px; align-items: center; font-size: 12px; }

/* =============================================
   HEADER & MEGA MENU
============================================= */
#site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: 1200px;
  margin: 0 auto;
  gap: 24px;
}

.site-logo img { height: 54px; width: auto; }
.site-logo-text {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
  line-height: 1.1;
}
.site-logo-text small {
  display: block;
  font-size: 10px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* SEARCH BAR */
.header-search {
  flex: 1;
  max-width: 420px;
  position: relative;
}

.header-search input {
  width: 100%;
  padding: 10px 42px 10px 16px;
  border: 2px solid var(--border);
  border-radius: 30px;
  font-size: 13.5px;
  background: var(--light);
  color: var(--text);
  outline: none;
  transition: var(--transition);
}

.header-search input:focus {
  border-color: var(--primary);
  background: #fff;
}

.header-search button {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--muted);
  font-size: 16px;
}

/* HEADER ACTIONS */
.header-actions {
  display: flex;
  gap: 14px;
  align-items: center;
}

.btn-wa-header {
  display: flex;
  align-items: center;
  gap: 7px;
  background: #25d366;
  color: #fff;
  padding: 9px 18px;
  border-radius: 25px;
  font-size: 13px;
  font-weight: 700;
  transition: var(--transition);
}

.btn-wa-header:hover {
  background: #1ebe5d;
  color: #fff;
  transform: translateY(-1px);
}

/* =============================================
   NAVIGASI UTAMA + MEGA MENU
============================================= */
#main-nav {
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.nav-inner > ul {
  display: flex;
  align-items: center;
}

.nav-inner > ul > li {
  position: relative;
}

.nav-inner > ul > li > a {
  display: block;
  padding: 13px 18px;
  color: rgba(255,255,255,0.88);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  transition: var(--transition);
  white-space: nowrap;
}

.nav-inner > ul > li > a:hover,
.nav-inner > ul > li.current-menu-item > a {
  color: var(--gold);
  background: rgba(255,255,255,0.06);
}

.nav-inner > ul > li > a.has-children::after {
  content: ' ▾';
  font-size: 10px;
  opacity: 0.7;
}

/* MEGA MENU PANEL */
.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 700px;
  background: #fff;
  border-top: 3px solid var(--primary);
  box-shadow: 0 10px 40px rgba(0,0,0,0.18);
  padding: 24px;
  display: none;
  z-index: 9999;
  border-radius: 0 0 var(--radius) var(--radius);
}

.nav-inner > ul > li:hover .mega-menu { display: flex; gap: 20px; }

.mega-col { flex: 1; min-width: 130px; }

.mega-col h4 {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--light);
}

.mega-col ul li a {
  display: block;
  font-size: 13px;
  color: var(--mid);
  padding: 5px 0;
  border-bottom: 1px solid #faf8f5;
  transition: var(--transition);
}

.mega-col ul li a:hover {
  color: var(--primary);
  padding-left: 6px;
}

/* Dropdown sederhana */
.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: #fff;
  border-top: 3px solid var(--primary);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  display: none;
  z-index: 9999;
  border-radius: 0 0 var(--radius) var(--radius);
}

.nav-inner > ul > li:hover .sub-menu { display: block; }

.sub-menu li a {
  display: block;
  padding: 10px 18px;
  font-size: 13px;
  color: var(--mid);
  border-bottom: 1px solid var(--light);
  transition: var(--transition);
}

.sub-menu li a:hover {
  color: var(--primary);
  background: var(--light);
  padding-left: 24px;
}

/* HAMBURGER */
.hamburger {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* =============================================
   HERO SLIDER / BANNER
============================================= */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark2) 55%, #3d2a1a 100%);
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 70% 50%, rgba(201,169,110,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  padding: 60px 20px 60px 60px;
}

.hero-badge {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 18px;
}

.hero-content h1 {
  font-size: 46px;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.hero-content h1 span { color: var(--gold); }

.hero-content p {
  font-size: 16px;
  color: rgba(255,255,255,0.72);
  margin-bottom: 30px;
  line-height: 1.7;
  max-width: 460px;
}

.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

.btn-hero-primary {
  background: var(--primary);
  color: #fff;
  padding: 14px 30px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 15px;
  transition: var(--transition);
  display: inline-block;
}

.btn-hero-primary:hover {
  background: var(--primary-dk);
  color: #fff;
  transform: translateY(-2px);
}

.btn-hero-outline {
  background: transparent;
  color: #fff;
  padding: 14px 30px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 15px;
  border: 2px solid rgba(255,255,255,0.35);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-hero-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.hero-stats {
  display: flex;
  gap: 28px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.hero-stat .num {
  font-size: 24px;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}

.hero-stat .label {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  margin-top: 3px;
}

/* Hero image side */
.hero-image {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 48%;
  overflow: hidden;
}

.hero-image::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 140px;
  background: linear-gradient(to right, var(--dark), transparent);
  z-index: 1;
}

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

.hero-image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #3d2a1a, #5a3a1a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 120px;
  opacity: 0.25;
}

/* =============================================
   TRUST BADGES BAR
============================================= */
.trust-bar {
  background: var(--primary);
  padding: 14px 0;
}

.trust-inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.92);
  font-size: 13px;
  font-weight: 600;
}

.trust-item .icon { font-size: 18px; }

/* =============================================
   SECTION UMUM
============================================= */
.section { padding: 60px 0; }
.section-alt { background: var(--light); }
.section-dark { background: var(--dark); }

.section-header {
  text-align: center;
  margin-bottom: 36px;
}

.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary);
  margin-bottom: 8px;
}

.section-header h2 {
  font-size: 30px;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.5px;
  margin-bottom: 10px;
}

.section-header p {
  font-size: 15px;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto;
}

/* =============================================
   GRID KATEGORI VISUAL (besar)
============================================= */
.category-hero-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.cat-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--light);
  display: block;
  cursor: pointer;
  group: true;
}

.cat-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,18,8,0.82) 0%, rgba(26,18,8,0.15) 50%, transparent 100%);
  transition: var(--transition);
}

.cat-card:hover::after { background: linear-gradient(to top, rgba(139,32,32,0.85) 0%, rgba(26,18,8,0.25) 60%, transparent 100%); }

.cat-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.cat-card:hover img { transform: scale(1.06); }

.cat-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
  background: linear-gradient(135deg, #f0e8df, #dfc9a8);
}

.cat-card-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 16px 16px;
  z-index: 2;
  transition: var(--transition);
}

.cat-card-body h3 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
  line-height: 1.3;
}

.cat-card-body .count {
  font-size: 12px;
  color: rgba(255,255,255,0.65);
}

.cat-card-body .arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  color: var(--gold);
  font-size: 12.5px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(6px);
  transition: var(--transition);
}

.cat-card:hover .arrow { opacity: 1; transform: translateY(0); }

/* =============================================
   GRID PRODUK
============================================= */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.product-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.13);
  border-color: var(--gold-lt);
}

.card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
  background: var(--light);
}

.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.product-card:hover .card-thumb img { transform: scale(1.05); }

.card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.badge-new    { background: #e8f5e9; color: #2e7d32; }
.badge-hot    { background: #fce4ec; color: #c62828; }
.badge-promo  { background: #fff3e0; color: #e65100; }
.badge-best   { background: #ede7f6; color: #4527a0; }

.card-wishlist {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  opacity: 0;
}

.product-card:hover .card-wishlist { opacity: 1; }
.card-wishlist:hover { background: #fce4ec; transform: scale(1.1); }

.card-body { padding: 12px 14px 16px; }

.card-category {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  margin-bottom: 4px;
}

.card-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 4px;
  line-height: 1.4;
}

.card-name a { color: inherit; }
.card-name a:hover { color: var(--primary); }

.card-material { font-size: 11.5px; color: var(--muted); margin-bottom: 8px; }

.card-price-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; }

.card-price {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary);
}

.card-price-old {
  font-size: 12px;
  color: var(--muted);
  text-decoration: line-through;
}

.card-discount {
  font-size: 11px;
  font-weight: 700;
  color: #2e7d32;
  background: #e8f5e9;
  padding: 2px 6px;
  border-radius: 8px;
}

.card-actions { display: flex; gap: 8px; }

.btn-detail {
  flex: 1;
  text-align: center;
  background: var(--light);
  color: var(--mid);
  padding: 8px 10px;
  border-radius: 7px;
  font-size: 12.5px;
  font-weight: 600;
  border: 1px solid var(--border);
  transition: var(--transition);
  display: block;
}

.btn-detail:hover { background: var(--dark); color: #fff; border-color: var(--dark); }

.btn-wa-card {
  background: #25d366;
  color: #fff;
  padding: 8px 12px;
  border-radius: 7px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  transition: var(--transition);
}

.btn-wa-card:hover { background: #1ebe5d; color: #fff; }

/* =============================================
   BANNER PROMO (full width)
============================================= */
.promo-banner {
  background: linear-gradient(135deg, var(--primary) 0%, #6b1010 100%);
  border-radius: var(--radius);
  padding: 40px 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  overflow: hidden;
  position: relative;
}

.promo-banner::before {
  content: '🪑';
  position: absolute;
  right: 30px;
  bottom: -10px;
  font-size: 130px;
  opacity: 0.07;
  pointer-events: none;
}

.promo-content h2 { font-size: 28px; font-weight: 800; color: #fff; margin-bottom: 8px; }
.promo-content p { font-size: 15px; color: rgba(255,255,255,0.78); }
.promo-discount {
  font-size: 64px;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  letter-spacing: -2px;
  white-space: nowrap;
}

.btn-promo {
  background: #fff;
  color: var(--primary);
  padding: 13px 28px;
  border-radius: 30px;
  font-weight: 800;
  font-size: 14px;
  white-space: nowrap;
  transition: var(--transition);
  display: inline-block;
}

.btn-promo:hover { background: var(--gold); color: #fff; transform: translateY(-2px); }

/* =============================================
   KATEGORI GRID KECIL (icon style)
============================================= */
.cat-icon-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.cat-icon-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 10px;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  display: block;
}

.cat-icon-card:hover {
  border-color: var(--primary);
  background: #fff8f8;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(139,32,32,0.12);
}

.cat-icon-card .icon { font-size: 36px; margin-bottom: 8px; }

.cat-icon-card span {
  font-size: 12px;
  font-weight: 600;
  color: var(--mid);
  line-height: 1.3;
  display: block;
}

.cat-icon-card:hover span { color: var(--primary); }

/* =============================================
   TESTIMONIAL
============================================= */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.testi-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 22px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.testi-stars { color: #f59e0b; font-size: 14px; margin-bottom: 10px; }

.testi-text {
  font-size: 13.5px;
  color: var(--mid);
  line-height: 1.7;
  margin-bottom: 14px;
  font-style: italic;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.testi-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.testi-name { font-size: 13px; font-weight: 700; color: var(--dark); }
.testi-city { font-size: 11.5px; color: var(--muted); }

/* =============================================
   FILTER TABS
============================================= */
.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  justify-content: center;
}

.filter-tabs button, .filter-tabs a {
  padding: 8px 20px;
  border-radius: 25px;
  font-size: 13px;
  font-weight: 600;
  border: 2px solid var(--border);
  background: #fff;
  color: var(--mid);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.filter-tabs button:hover,
.filter-tabs button.active,
.filter-tabs a:hover,
.filter-tabs a.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* =============================================
   HALAMAN DETAIL PRODUK
============================================= */
.single-product-page { padding: 32px 0 60px; }

.product-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  background: #fff;
  border-radius: 14px;
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.gallery-main-img {
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1/1;
  background: var(--light);
  cursor: zoom-in;
}

.gallery-main-img img { width: 100%; height: 100%; object-fit: cover; }

.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }

.gallery-thumb {
  width: 75px;
  height: 75px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
  background: var(--light);
}

.gallery-thumb:hover, .gallery-thumb.active { border-color: var(--primary); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-info { display: flex; flex-direction: column; gap: 16px; }

.product-category-link {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  font-weight: 700;
}

.product-title { font-size: 26px; font-weight: 800; color: var(--dark); line-height: 1.3; }

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--muted);
  align-items: center;
}

.divider-line { border: none; border-top: 1px solid var(--border); }

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

.product-price { font-size: 28px; font-weight: 800; color: var(--primary); }
.product-price-old { font-size: 16px; color: var(--muted); text-decoration: line-through; }
.product-discount {
  font-size: 13px;
  font-weight: 700;
  background: #e8f5e9;
  color: #2e7d32;
  padding: 3px 10px;
  border-radius: 12px;
}

.product-desc { font-size: 14px; color: var(--mid); line-height: 1.8; }

.product-specs {
  background: var(--light);
  border-radius: 8px;
  padding: 14px 16px;
}

.product-specs table { width: 100%; font-size: 13.5px; }

.product-specs td {
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  color: var(--mid);
  vertical-align: top;
}

.product-specs td:first-child {
  font-weight: 600;
  color: var(--dark);
  width: 120px;
}

.product-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 16px;
}

.product-features li {
  list-style: disc;
  margin-left: 18px;
  font-size: 13.5px;
  color: var(--mid);
  line-height: 1.6;
}

.cta-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25d366;
  color: #fff;
  padding: 13px 26px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 700;
  transition: var(--transition);
}

.btn-whatsapp:hover { background: #1ebe5d; color: #fff; transform: translateY(-2px); }

.mp-icons { display: flex; gap: 8px; }

.mp-icon {
  width: 42px; height: 42px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  transition: var(--transition);
  font-size: 18px;
  cursor: pointer;
}

.mp-icon:hover { transform: scale(1.1); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }

.keterangan-box {
  background: #eef4ff;
  border: 1px solid #cfe0f7;
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 13.5px;
  color: var(--mid);
  line-height: 1.7;
}

.keterangan-box strong { display: block; margin-bottom: 4px; color: var(--dark); font-weight: 700; }

/* RELATED */
.related-products {
  margin-top: 44px;
  background: #fff;
  border-radius: 14px;
  padding: 30px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

/* =============================================
   ARCHIVE / KATEGORI
============================================= */
.breadcrumb-bar {
  background: var(--light);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  font-size: 12.5px;
  color: var(--muted);
}

.breadcrumb-bar .container { display: flex; align-items: center; gap: 6px; }

.page-with-sidebar {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  padding: 30px 0;
}

/* =============================================
   SIDEBAR
============================================= */
.sidebar { display: flex; flex-direction: column; gap: 20px; }

.widget-box {
  background: #fff;
  border-radius: var(--radius);
  padding: 18px;
  border: 1px solid var(--border);
}

.widget-box h3 {
  font-size: 13px;
  font-weight: 800;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--light);
}

.category-list li { margin-bottom: 4px; }

.category-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--mid);
  padding: 7px 10px;
  border-radius: 6px;
  transition: var(--transition);
}

.category-list a:hover, .category-list a.active {
  background: #fff8f8;
  color: var(--primary);
}

.category-list .count {
  background: var(--light);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
}

/* =============================================
   SECTION HEADING (inline)
============================================= */
.section-heading-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  gap: 12px;
}

.section-heading-inline h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--dark);
  padding-left: 14px;
  border-left: 4px solid var(--primary);
}

.section-heading-inline a {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
}

/* =============================================
   PAGINATION
============================================= */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.pagination a, .pagination span {
  padding: 9px 15px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 13px;
  color: var(--mid);
  transition: var(--transition);
  font-weight: 600;
}

.pagination a:hover, .pagination .current {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* =============================================
   FOOTER
============================================= */
#site-footer { background: var(--dark); color: #aaa; margin-top: 60px; }

.footer-top {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1.2fr;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 52px 20px 40px;
}

.footer-brand .logo-text {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}

.footer-brand .logo-text span { color: var(--gold); }
.footer-brand p { font-size: 13px; line-height: 1.7; color: #777; margin-bottom: 16px; }

.footer-contact a {
  display: block;
  font-size: 13px;
  color: #888;
  margin-bottom: 6px;
  transition: var(--transition);
}

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

.footer-col h4 {
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.footer-col ul li { margin-bottom: 8px; }

.footer-col ul li a {
  font-size: 13px;
  color: #777;
  transition: var(--transition);
}

.footer-col ul li a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 18px 20px;
  text-align: center;
  font-size: 12px;
  color: #555;
  max-width: 1200px;
  margin: 0 auto;
}

/* =============================================
   EMPTY STATE
============================================= */
.empty-state {
  grid-column: 1/-1;
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}

.empty-state .icon { font-size: 52px; margin-bottom: 14px; }
.empty-state p { font-size: 14px; }

/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 1024px) {
  .category-hero-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-icon-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .testi-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .page-with-sidebar { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .hero-image { display: none; }
  .hero-content { padding: 48px 20px; }
  .hero-content h1 { font-size: 32px; }
  .promo-banner { flex-direction: column; text-align: center; padding: 30px 20px; }
  .promo-discount { font-size: 48px; }
  #main-nav { display: none; }
  .hamburger { display: flex; }
}

@media (max-width: 640px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .category-hero-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-icon-grid { grid-template-columns: repeat(3, 1fr); }
  .testi-grid { grid-template-columns: 1fr; }
  .product-wrap { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 16px; }
  .topbar-right { display: none; }
  .header-search { display: none; }
  .trust-inner { justify-content: flex-start; }
}
