/*
Theme Name: Quran Rafah
Theme URI: https://quranrafah.com
Author: Quran Rafah
Author URI: https://quranrafah.com
Description: Tema WooCommerce modern untuk toko buku & Al-Qur'an "Quran Rafah". Konsep Modern Islamic, elegan, premium, minimalist. Warna primary merah #BE312B, secondary hijau #217141. Mendukung WooCommerce (shop, produk, cart, checkout), blog, dan halaman statis.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: quran-rafah
Tags: e-commerce, custom-menu, custom-logo, featured-images, translation-ready, blog
WC requires at least: 7.0
WC tested up to: 9.3
*/

/* =========================================================================
   Catatan: seluruh design system berada di bawah baris ini (dari situs statis).
   Bagian WooCommerce ditambahkan di akhir file.
   ========================================================================= */
/* ==========================================================================
   Quran Rafah — Design System
   Modern Islamic · Elegant · Premium · Minimalist
   ========================================================================== */

/* ---------- Design Tokens ---------- */
:root {
  /* Brand — PRIMARY merah #BE312B, SECONDARY hijau #217141.
     Token dinamai --green/--red utk kompatibilitas, tapi perannya:
       --green*  = warna PRIMARY (kini merah)   → CTA, header, link, ikon
       --red*    = warna SECONDARY/aksen (kini hijau) → tombol sekunder, promo, sale */
  --green: #be312b;       /* primary red */
  --green-dark: #9c241f;  /* primary red (hover) */
  --green-soft: #fbeceb;  /* primary red (soft bg) */
  --red: #217141;         /* secondary green */
  --red-soft: #e8f2ec;    /* secondary green (soft bg) */
  --dark: #24201f;

  /* Neutral */
  --white: #ffffff;
  --n-50: #f8f8f8;
  --n-100: #eeeeee;
  --n-300: #bdbdbd;
  --n-500: #7a7674;
  --n-700: #45403e;

  /* Typography */
  --font-head: "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  /* Radius */
  --r-input: 12px;
  --r-btn: 12px;
  --r-card: 16px;
  --r-image: 20px;

  /* Shadow */
  --shadow-soft: 0 8px 30px rgba(36, 32, 31, 0.08);
  --shadow-hover: 0 16px 40px rgba(33, 113, 65, 0.14);
  --shadow-sm: 0 2px 10px rgba(36, 32, 31, 0.06);

  /* Layout */
  --container: 1200px;
  --header-h: 116px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: 1rem; }
ul { list-style: none; }
h1, h2, h3, h4, h5 { font-family: var(--font-head); font-weight: 700; color: var(--dark); line-height: 1.2; }

/* ---------- Utilities ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.text-green { color: var(--green); }
.text-red { color: var(--red); }
.muted { color: var(--n-500); }
.center { text-align: center; }
.hidden { display: none !important; }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; margin-bottom: 32px; flex-wrap: wrap;
}
.section-head .eyebrow {
  font-family: var(--font-head); font-weight: 600; font-size: .8rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--green);
  display: inline-block; margin-bottom: 8px;
}
.section-head h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.section-head p { color: var(--n-500); margin-top: 6px; max-width: 520px; }
.link-more {
  font-family: var(--font-head); font-weight: 600; font-size: .9rem;
  color: var(--green); display: inline-flex; align-items: center; gap: 6px;
  white-space: nowrap;
}
.link-more:hover { gap: 10px; }

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  padding: 13px 24px; border-radius: var(--r-btn);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s;
  white-space: nowrap; line-height: 1;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); box-shadow: var(--shadow-hover); transform: translateY(-2px); }
/* Tombol sekunder = hijau (secondary) */
.btn-secondary { background: #fff; color: var(--red); border: 1.6px solid var(--red); }
.btn-secondary:hover { background: var(--red-soft); }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: #000; }
/* Tombol promo/aksen = hijau (secondary) */
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: #1a5c34; }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 30px; font-size: 1rem; }
.btn-sm { padding: 9px 16px; font-size: .85rem; }

/* ---------- Badges ---------- */
.badge {
  font-family: var(--font-head); font-weight: 600; font-size: .68rem;
  letter-spacing: .04em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 8px; display: inline-flex; align-items: center; gap: 4px;
}
.badge-green { background: var(--green); color: #fff; }
.badge-red { background: var(--red); color: #fff; }
.badge-soft { background: var(--green-soft); color: var(--green); }
.badge-dark { background: var(--dark); color: #fff; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.topbar {
  background: var(--dark); color: #fff; font-size: .82rem;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; min-height: 38px; gap: 12px; }
.topbar a { color: #fff; opacity: .85; }
.topbar a:hover { opacity: 1; }
.topbar .tb-left { display: flex; align-items: center; gap: 8px; }
.topbar .tb-right { display: flex; align-items: center; gap: 18px; }
.topbar .tb-right span { display: inline-flex; align-items: center; gap: 6px; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--n-100);
}
.header-main { display: flex; align-items: center; gap: 24px; min-height: 78px; }

.logo { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.logo-mark {
  width: 44px; height: 44px; border-radius: 13px;
  background: linear-gradient(145deg, var(--green), var(--green-dark));
  display: grid; place-items: center; color: #fff; box-shadow: var(--shadow-sm);
}
.logo-text { font-family: var(--font-head); font-weight: 700; font-size: 1.28rem; letter-spacing: -.02em; line-height: 1; }
.logo-text small { display: block; font-size: .62rem; font-weight: 500; letter-spacing: .22em; color: var(--green); text-transform: uppercase; margin-top: 3px; }

.search-wrap { flex: 1; position: relative; max-width: 560px; }
.search-form { display: flex; align-items: center; background: var(--n-50); border: 1.5px solid var(--n-100); border-radius: var(--r-input); padding: 0 6px 0 16px; transition: border-color .2s, background .2s; }
.search-form:focus-within { border-color: var(--green); background: #fff; }
.search-form input { flex: 1; border: none; background: transparent; padding: 12px 10px; outline: none; }
.search-form .search-btn { background: var(--green); color: #fff; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; }
.search-form .search-btn:hover { background: var(--green-dark); }

/* Autocomplete dropdown */
.search-results {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  background: #fff; border-radius: var(--r-card); box-shadow: var(--shadow-soft);
  border: 1px solid var(--n-100); overflow: hidden; z-index: 60; display: none;
}
.search-results.show { display: block; }
.search-results .sr-section { padding: 12px 16px 4px; font-family: var(--font-head); font-weight: 600; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--n-300); }
.search-results .sr-item { display: flex; align-items: center; gap: 12px; padding: 9px 16px; }
.search-results .sr-item:hover { background: var(--n-50); }
.search-results .sr-item img, .search-results .sr-item .sr-thumb { width: 42px; height: 42px; border-radius: 9px; object-fit: cover; flex-shrink: 0; }
.search-results .sr-item .sr-name { font-size: .9rem; font-weight: 500; }
.search-results .sr-item .sr-price { font-size: .8rem; color: var(--green); font-weight: 600; }
.search-results .sr-chip { display: inline-block; margin: 2px 6px 8px 0; padding: 6px 12px; background: var(--n-50); border-radius: 20px; font-size: .82rem; }
.search-results .sr-chip:hover { background: var(--green-soft); color: var(--green); }
.sr-chips-wrap { padding: 0 16px 12px; }

.header-icons { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.icon-btn { position: relative; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--dark); transition: background .2s, color .2s; }
.icon-btn:hover { background: var(--green-soft); color: var(--green); }
.icon-btn .count {
  position: absolute; top: 4px; right: 4px; min-width: 18px; height: 18px; padding: 0 4px;
  background: var(--red); color: #fff; font-size: .66rem; font-weight: 700; font-family: var(--font-head);
  border-radius: 20px; display: grid; place-items: center; border: 2px solid #fff;
}

.nav-bar { border-top: 1px solid var(--n-100); }
.main-nav { display: flex; align-items: center; gap: 4px; min-height: 50px; }
.main-nav > li > a {
  font-family: var(--font-head); font-weight: 500; font-size: .92rem;
  padding: 10px 15px; border-radius: 9px; display: inline-flex; align-items: center; gap: 6px;
  color: var(--n-700); transition: color .2s, background .2s;
}
.main-nav > li > a:hover, .main-nav > li.active > a { color: var(--green); background: var(--green-soft); }
.nav-all { color: var(--green) !important; font-weight: 600 !important; }

.hamburger { display: none; }
.mobile-menu { display: none; }
.mobile-search { display: none; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { position: relative; overflow: hidden; background: var(--green-soft); }
.hero-slider { position: relative; }
.hero-slide {
  display: none; align-items: center;
  min-height: 460px; padding: 56px 0;
}
.hero-slide.active { display: flex; animation: fadeIn .6s var(--ease); }
.hero-slide .container { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero-copy .badge { margin-bottom: 18px; }
.hero-copy h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); letter-spacing: -.02em; margin-bottom: 16px; }
.hero-copy h1 span { color: var(--green); }
.hero-copy p { font-size: 1.08rem; color: var(--n-700); max-width: 480px; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-visual { position: relative; aspect-ratio: 1/1; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-soft); }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hero-float {
  position: absolute; background: #fff; border-radius: 16px; padding: 12px 16px;
  box-shadow: var(--shadow-soft); display: flex; align-items: center; gap: 10px; font-size: .85rem;
}
.hero-float.tl { top: 20px; left: -12px; }
.hero-float.br { bottom: 24px; right: -12px; }
.hero-float .hf-icon { width: 36px; height: 36px; border-radius: 10px; background: var(--green-soft); color: var(--green); display: grid; place-items: center; }
.hero-float strong { font-family: var(--font-head); display: block; }

.hero-dots { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 5; }
.hero-dots button { width: 9px; height: 9px; border-radius: 50%; background: rgba(36,32,31,.25); transition: all .3s; }
.hero-dots button.active { width: 26px; border-radius: 20px; background: var(--green); }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Trust strip ---------- */
.trust-strip { background: #fff; border-bottom: 1px solid var(--n-100); }
.trust-strip .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 22px 20px; }
.trust-item { display: flex; align-items: center; gap: 12px; }
.trust-item .ti-icon { width: 42px; height: 42px; border-radius: 12px; background: var(--green-soft); color: var(--green); display: grid; place-items: center; flex-shrink: 0; }
.trust-item strong { font-family: var(--font-head); font-size: .92rem; display: block; }
.trust-item span { font-size: .8rem; color: var(--n-500); }

/* ==========================================================================
   CATEGORY CARDS
   ========================================================================== */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cat-card {
  background: #fff; border: 1px solid var(--n-100); border-radius: var(--r-card);
  padding: 24px 20px; text-align: center; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.cat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-soft); border-color: transparent; }
.cat-card .cat-icon {
  width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 18px;
  background: var(--green-soft); color: var(--green); display: grid; place-items: center;
  transition: background .25s, color .25s;
}
.cat-card:hover .cat-icon { background: var(--green); color: #fff; }
.cat-card h3 { font-size: 1rem; margin-bottom: 4px; }
.cat-card span { font-size: .82rem; color: var(--n-500); }

/* ==========================================================================
   PRODUCT CARD
   ========================================================================== */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

.product-card {
  background: #fff; border: 1px solid var(--n-100); border-radius: var(--r-card);
  overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
  display: flex; flex-direction: column; position: relative;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-soft); border-color: transparent; }
.pc-media { position: relative; aspect-ratio: 1/1; overflow: hidden; background: var(--n-50); }
.pc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.product-card:hover .pc-media img { transform: scale(1.06); }
.pc-badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.pc-wish {
  position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.92); display: grid; place-items: center; color: var(--dark);
  box-shadow: var(--shadow-sm); z-index: 2; transition: color .2s, transform .2s;
}
.pc-wish:hover { transform: scale(1.1); color: var(--red); }
.pc-wish.active { color: var(--red); }
.pc-wish.active svg { fill: var(--red); }
.pc-quick {
  position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 2;
  transform: translateY(130%); opacity: 0; transition: transform .3s var(--ease), opacity .3s;
}
.product-card:hover .pc-quick { transform: none; opacity: 1; }
.pc-body { padding: 15px 15px 17px; display: flex; flex-direction: column; flex: 1; }
.pc-cat { font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--green); margin-bottom: 5px; }
.pc-title { font-family: var(--font-head); font-weight: 600; font-size: .95rem; line-height: 1.35; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; }
.pc-title a:hover { color: var(--green); }
.pc-rating { display: flex; align-items: center; gap: 5px; font-size: .78rem; color: var(--n-500); margin-bottom: 10px; }
.pc-rating .stars { color: #f5a623; letter-spacing: 1px; }
.pc-price-row { display: flex; align-items: baseline; gap: 8px; margin-top: auto; }
.pc-price { font-family: var(--font-head); font-weight: 700; font-size: 1.08rem; color: var(--dark); }
.pc-old { font-size: .82rem; color: var(--n-300); text-decoration: line-through; }
.pc-off { font-size: .72rem; font-weight: 700; color: var(--red); }

/* ==========================================================================
   PROMO BANNER + COUNTDOWN
   ========================================================================== */
.promo-band {
  background: linear-gradient(120deg, var(--red) 0%, #1a5c34 100%);
  border-radius: var(--r-card); color: #fff; overflow: hidden; position: relative;
}
.promo-band .container { display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: center; padding: 44px 40px; }
.promo-band .badge { background: rgba(255,255,255,.2); color: #fff; margin-bottom: 14px; }
.promo-band h2 { color: #fff; font-size: clamp(1.6rem, 3.4vw, 2.4rem); margin-bottom: 10px; }
.promo-band p { opacity: .9; margin-bottom: 22px; max-width: 420px; }
.countdown { display: flex; gap: 10px; }
.cd-box { background: rgba(255,255,255,.14); border-radius: 12px; padding: 12px 6px; text-align: center; min-width: 66px; backdrop-filter: blur(4px); }
.cd-box .cd-num { font-family: var(--font-head); font-weight: 700; font-size: 1.8rem; line-height: 1; }
.cd-box .cd-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; opacity: .85; margin-top: 5px; }
.promo-band .btn { margin-top: 24px; }

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testi-card { background: #fff; border: 1px solid var(--n-100); border-radius: var(--r-card); padding: 26px; box-shadow: var(--shadow-sm); }
.testi-card .stars { color: #f5a623; letter-spacing: 2px; margin-bottom: 14px; }
.testi-card p { font-size: .96rem; color: var(--n-700); margin-bottom: 18px; }
.testi-user { display: flex; align-items: center; gap: 12px; }
.testi-user .avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; }
.testi-user strong { font-family: var(--font-head); font-size: .92rem; display: block; }
.testi-user span { font-size: .8rem; color: var(--n-500); }

/* ==========================================================================
   BLOG CARD
   ========================================================================== */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.blog-card { background: #fff; border: 1px solid var(--n-100); border-radius: var(--r-card); overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s; }
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.blog-card .bc-media { aspect-ratio: 16/10; overflow: hidden; background: var(--n-50); }
.blog-card .bc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.blog-card:hover .bc-media img { transform: scale(1.05); }
.bc-body { padding: 20px; }
.bc-meta { display: flex; gap: 10px; font-size: .76rem; color: var(--n-500); margin-bottom: 10px; }
.bc-meta .bc-cat { color: var(--green); font-weight: 600; }
.bc-body h3 { font-size: 1.05rem; margin-bottom: 8px; line-height: 1.35; }
.bc-body h3 a:hover { color: var(--green); }
.bc-body p { font-size: .88rem; color: var(--n-500); }

/* ==========================================================================
   NEWSLETTER
   ========================================================================== */
.newsletter { background: var(--dark); border-radius: var(--r-card); color: #fff; overflow: hidden; }
.newsletter .container { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; padding: 48px 44px; }
.newsletter h2 { color: #fff; font-size: 1.8rem; margin-bottom: 8px; }
.newsletter p { opacity: .8; }
.newsletter-form { display: flex; gap: 10px; }
.newsletter-form input { flex: 1; padding: 15px 18px; border-radius: var(--r-input); border: none; background: rgba(255,255,255,.1); color: #fff; }
.newsletter-form input::placeholder { color: rgba(255,255,255,.6); }
.newsletter-form input:focus { outline: 2px solid var(--green); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--dark); color: rgba(255,255,255,.72); padding-top: 56px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 34px; padding-bottom: 40px; }
.footer-col h4 { color: #fff; font-size: .95rem; margin-bottom: 18px; letter-spacing: .02em; }
.footer-col ul li { margin-bottom: 11px; }
.footer-col ul li a { font-size: .9rem; transition: color .2s; }
.footer-col ul li a:hover { color: var(--green); }
.footer-about .logo-text { color: #fff; }
.footer-about p { font-size: .9rem; margin: 16px 0 20px; max-width: 300px; }
.footer-contact li { display: flex; gap: 10px; font-size: .9rem; margin-bottom: 12px; align-items: flex-start; }
.footer-contact li svg { color: var(--green); flex-shrink: 0; margin-top: 2px; }
.social-row { display: flex; gap: 10px; margin-top: 8px; }
.social-row a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.08); display: grid; place-items: center; color: #fff; transition: background .2s, transform .2s; }
.social-row a:hover { background: var(--green); transform: translateY(-2px); }
.payment-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.payment-row .pay-chip { background: #fff; border-radius: 7px; padding: 5px 9px; font-size: .68rem; font-weight: 700; color: var(--dark); font-family: var(--font-head); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; display: flex; justify-content: space-between; align-items: center; gap: 14px; font-size: .84rem; flex-wrap: wrap; }
.footer-bottom a:hover { color: #fff; }

/* ==========================================================================
   BREADCRUMB
   ========================================================================== */
.breadcrumb { padding: 16px 0; font-size: .84rem; color: var(--n-500); }
.breadcrumb .container { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--green); }
.breadcrumb .sep { color: var(--n-300); }
.breadcrumb .current { color: var(--dark); font-weight: 500; }

/* ==========================================================================
   PAGE HEADER
   ========================================================================== */
.page-hero { background: var(--green-soft); padding: 40px 0; }
.page-hero h1 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); margin-bottom: 6px; }
.page-hero p { color: var(--n-700); }

/* ==========================================================================
   CATEGORY / SHOP LAYOUT
   ========================================================================== */
.shop-layout { display: grid; grid-template-columns: 268px 1fr; gap: 30px; align-items: start; }
.filters { background: #fff; border: 1px solid var(--n-100); border-radius: var(--r-card); padding: 22px; position: sticky; top: calc(var(--header-h) + 12px); }
.filter-group { padding: 16px 0; border-bottom: 1px solid var(--n-100); }
.filter-group:first-child { padding-top: 0; }
.filter-group:last-child { border-bottom: none; padding-bottom: 0; }
.filter-group h4 { font-size: .92rem; margin-bottom: 14px; display: flex; justify-content: space-between; align-items: center; }
.filter-opt { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: .9rem; cursor: pointer; color: var(--n-700); }
.filter-opt input { width: 17px; height: 17px; accent-color: var(--green); cursor: pointer; }
.filter-opt .fo-count { margin-left: auto; font-size: .78rem; color: var(--n-300); }
.filter-opt:hover { color: var(--green); }
.price-inputs { display: flex; align-items: center; gap: 8px; }
.price-inputs input { width: 100%; padding: 9px 10px; border: 1.5px solid var(--n-100); border-radius: 10px; }

.shop-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.shop-toolbar .result-count { font-size: .9rem; color: var(--n-500); }
.shop-toolbar .toolbar-right { display: flex; align-items: center; gap: 12px; }
.sort-select { padding: 10px 14px; border: 1.5px solid var(--n-100); border-radius: var(--r-input); background: #fff; font-size: .9rem; cursor: pointer; }
.filter-toggle-btn { display: none; }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.pagination a, .pagination span { min-width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; border: 1.5px solid var(--n-100); font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--n-700); transition: all .2s; }
.pagination a:hover { border-color: var(--green); color: var(--green); }
.pagination .active { background: var(--green); color: #fff; border-color: var(--green); }

/* ==========================================================================
   PRODUCT DETAIL
   ========================================================================== */
.pd-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.pd-gallery { position: sticky; top: calc(var(--header-h) + 12px); }
.pd-main-img { border-radius: var(--r-image); overflow: hidden; aspect-ratio: 1/1; background: var(--n-50); border: 1px solid var(--n-100); }
.pd-main-img img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumbs { display: flex; gap: 12px; margin-top: 14px; }
.pd-thumb { width: 78px; height: 78px; border-radius: 14px; overflow: hidden; border: 2px solid var(--n-100); cursor: pointer; flex-shrink: 0; transition: border-color .2s; }
.pd-thumb.active, .pd-thumb:hover { border-color: var(--green); }
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }

.pd-info .pd-cat { color: var(--green); font-weight: 600; font-size: .82rem; letter-spacing: .05em; text-transform: uppercase; }
.pd-info h1 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 8px 0 12px; }
.pd-meta-row { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; font-size: .86rem; color: var(--n-500); }
.pd-meta-row .stars { color: #f5a623; }
.pd-meta-row .in-stock { color: var(--red); font-weight: 600; }
.pd-price-box { background: var(--n-50); border-radius: var(--r-card); padding: 20px 22px; margin-bottom: 22px; }
.pd-price-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pd-price { font-family: var(--font-head); font-weight: 700; font-size: 2rem; color: var(--green); }
.pd-old { font-size: 1.05rem; color: var(--n-300); text-decoration: line-through; }
.pd-save { font-size: .82rem; color: var(--red); font-weight: 700; background: var(--red-soft); padding: 4px 10px; border-radius: 8px; }
.pd-specs { margin: 22px 0; }
.pd-specs li { display: flex; padding: 9px 0; border-bottom: 1px dashed var(--n-100); font-size: .9rem; }
.pd-specs li span:first-child { width: 130px; color: var(--n-500); flex-shrink: 0; }
.pd-specs li span:last-child { font-weight: 500; }
.qty-row { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.qty-stepper { display: flex; align-items: center; border: 1.5px solid var(--n-100); border-radius: var(--r-btn); overflow: hidden; }
.qty-stepper button { width: 42px; height: 46px; font-size: 1.2rem; color: var(--green); display: grid; place-items: center; }
.qty-stepper button:hover { background: var(--green-soft); }
.qty-stepper input { width: 50px; text-align: center; border: none; height: 46px; font-family: var(--font-head); font-weight: 600; }
.pd-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.pd-actions .btn { flex: 1; min-width: 160px; }
.pd-wish-btn { flex: 0 0 auto !important; min-width: 0 !important; width: 52px; padding: 0 !important; }

/* Tabs */
.pd-tabs { margin-top: 56px; }
.tab-nav { display: flex; gap: 6px; border-bottom: 2px solid var(--n-100); margin-bottom: 26px; overflow-x: auto; }
.tab-nav button { font-family: var(--font-head); font-weight: 600; font-size: .95rem; padding: 12px 18px; color: var(--n-500); border-bottom: 2px solid transparent; margin-bottom: -2px; white-space: nowrap; }
.tab-nav button.active { color: var(--green); border-color: var(--green); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn .3s; }
.tab-panel p { margin-bottom: 14px; color: var(--n-700); }
.tab-panel h4 { margin: 20px 0 10px; }

.review-item { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--n-100); }
.review-item .avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; flex-shrink: 0; }
.review-item .stars { color: #f5a623; font-size: .85rem; }
.review-item strong { font-family: var(--font-head); }
.review-item .rv-date { font-size: .8rem; color: var(--n-300); }

.faq-item { border: 1px solid var(--n-100); border-radius: var(--r-input); margin-bottom: 12px; overflow: hidden; }
.faq-q { width: 100%; text-align: left; padding: 16px 20px; font-family: var(--font-head); font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-q:hover { color: var(--green); }
.faq-q .faq-icon { transition: transform .3s; flex-shrink: 0; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s var(--ease); }
.faq-a p { padding: 0 20px 18px; color: var(--n-700); margin: 0; }

/* ==========================================================================
   CART
   ========================================================================== */
.cart-layout { display: grid; grid-template-columns: 1fr 380px; gap: 30px; align-items: start; }
.cart-items { background: #fff; border: 1px solid var(--n-100); border-radius: var(--r-card); padding: 8px 24px; }
.cart-row { display: grid; grid-template-columns: 90px 1fr auto; gap: 16px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--n-100); }
.cart-row:last-child { border-bottom: none; }
.cart-row .cr-img { width: 90px; height: 90px; border-radius: 14px; overflow: hidden; background: var(--n-50); }
.cart-row .cr-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-row .cr-cat { font-size: .74rem; color: var(--green); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.cart-row .cr-name { font-family: var(--font-head); font-weight: 600; font-size: .98rem; margin: 3px 0 6px; }
.cart-row .cr-price { color: var(--green); font-weight: 600; font-family: var(--font-head); }
.cart-row .cr-remove { font-size: .82rem; color: var(--n-500); display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; }
.cart-row .cr-remove:hover { color: var(--red); }
.cart-row .cr-right { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.cart-row .cr-subtotal { font-family: var(--font-head); font-weight: 700; }

.summary-card { background: #fff; border: 1px solid var(--n-100); border-radius: var(--r-card); padding: 26px; position: sticky; top: calc(var(--header-h) + 12px); }
.summary-card h3 { font-size: 1.15rem; margin-bottom: 20px; }
.summary-row { display: flex; justify-content: space-between; padding: 9px 0; font-size: .94rem; }
.summary-row.total { border-top: 2px solid var(--n-100); margin-top: 8px; padding-top: 16px; font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; }
.summary-row.total .text-green { font-size: 1.35rem; }
.voucher-row { display: flex; gap: 8px; margin: 16px 0; }
.voucher-row input { flex: 1; padding: 12px 14px; border: 1.5px solid var(--n-100); border-radius: var(--r-input); }
.ship-select { width: 100%; padding: 12px 14px; border: 1.5px solid var(--n-100); border-radius: var(--r-input); margin-bottom: 14px; }

.empty-state { text-align: center; padding: 70px 20px; }
.empty-state .es-icon { width: 90px; height: 90px; margin: 0 auto 20px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; }
.empty-state h3 { font-size: 1.3rem; margin-bottom: 8px; }
.empty-state p { color: var(--n-500); margin-bottom: 22px; }

/* ==========================================================================
   CHECKOUT
   ========================================================================== */
.checkout-layout { display: grid; grid-template-columns: 1fr 400px; gap: 30px; align-items: start; }
.checkout-block { background: #fff; border: 1px solid var(--n-100); border-radius: var(--r-card); padding: 26px; margin-bottom: 22px; }
.checkout-block h3 { font-size: 1.1rem; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.checkout-block h3 .step-num { width: 28px; height: 28px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-size: .85rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: .86rem; font-weight: 500; color: var(--n-700); }
.form-field input, .form-field select, .form-field textarea {
  padding: 12px 14px; border: 1.5px solid var(--n-100); border-radius: var(--r-input); background: #fff; transition: border-color .2s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--green); }
.pay-opt { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1.5px solid var(--n-100); border-radius: var(--r-input); cursor: pointer; margin-bottom: 12px; transition: border-color .2s, background .2s; }
.pay-opt:hover { border-color: var(--green); }
.pay-opt input { accent-color: var(--green); width: 18px; height: 18px; }
.pay-opt .po-logo { margin-left: auto; font-family: var(--font-head); font-weight: 700; font-size: .8rem; color: var(--n-500); }
.pay-opt.selected { border-color: var(--green); background: var(--green-soft); }
.mini-item { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--n-100); }
.mini-item .mi-img { width: 54px; height: 54px; border-radius: 10px; overflow: hidden; background: var(--n-50); flex-shrink: 0; position: relative; }
.mini-item .mi-img img { width: 100%; height: 100%; object-fit: cover; }
.mini-item .mi-qty { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; background: var(--green); color: #fff; border-radius: 50%; font-size: .7rem; display: grid; place-items: center; font-weight: 700; }
.mini-item .mi-name { font-size: .86rem; font-weight: 500; line-height: 1.3; }
.mini-item .mi-price { margin-left: auto; font-family: var(--font-head); font-weight: 600; font-size: .88rem; white-space: nowrap; }

/* ==========================================================================
   ORDER SUCCESS
   ========================================================================== */
.success-wrap { text-align: center; max-width: 560px; margin: 0 auto; padding: 30px 0; }
.success-icon { width: 100px; height: 100px; margin: 0 auto 24px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; animation: pop .5s var(--ease); }
@keyframes pop { 0% { transform: scale(.5); opacity: 0; } 60% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }
.success-wrap h1 { font-size: 2rem; margin-bottom: 10px; }
.success-wrap p { color: var(--n-500); margin-bottom: 24px; }
.order-box { background: #fff; border: 1px solid var(--n-100); border-radius: var(--r-card); padding: 24px; text-align: left; margin-bottom: 24px; }
.order-box .ob-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: .92rem; }
.order-box .ob-row span:first-child { color: var(--n-500); }
.order-box .ob-row strong { font-family: var(--font-head); }

/* ==========================================================================
   TOAST
   ========================================================================== */
.toast-wrap { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 2000; display: flex; flex-direction: column; gap: 10px; align-items: center; width: calc(100% - 32px); max-width: 380px; }
.toast { background: var(--dark); color: #fff; padding: 13px 18px; border-radius: 12px; box-shadow: var(--shadow-soft); display: flex; align-items: center; gap: 10px; font-size: .9rem; animation: toastIn .3s var(--ease); width: 100%; }
.toast .t-icon { color: #6fdc9b; flex-shrink: 0; }
@keyframes toastIn { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ==========================================================================
   FLOATING WHATSAPP + STICKY BOTTOM (mobile)
   ========================================================================== */
.wa-float { position: fixed; bottom: 22px; right: 22px; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(37,211,102,.4); z-index: 900; transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); }
.sticky-bottom { display: none; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .summary-card { position: static; }
}

@media (max-width: 860px) {
  :root { --header-h: 70px; }
  .topbar { display: none; }
  .search-wrap.header-search { display: none; }
  .nav-bar { display: none; }
  .hamburger { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: var(--dark); }
  .hamburger:hover { background: var(--green-soft); }
  .header-main { min-height: 64px; gap: 12px; }
  .header-icons .hide-mobile { display: none; }

  .mobile-search { display: block; padding: 10px 0; border-top: 1px solid var(--n-100); }
  .mobile-search .search-form { display: flex; }

  .mobile-menu {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 86vw); background: #fff; z-index: 300;
    transform: translateX(100%); transition: transform .3s var(--ease); padding: 20px; overflow-y: auto;
    box-shadow: -10px 0 40px rgba(0,0,0,.1); display: block;
  }
  .mobile-menu.open { transform: none; }
  .mobile-menu .mm-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
  .mobile-menu nav a { display: block; padding: 13px 12px; border-radius: 10px; font-family: var(--font-head); font-weight: 500; }
  .mobile-menu nav a:hover { background: var(--green-soft); color: var(--green); }
  .mm-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 250; opacity: 0; visibility: hidden; transition: opacity .3s; }
  .mm-overlay.open { opacity: 1; visibility: visible; }

  .hero-slide .container { grid-template-columns: 1fr; text-align: center; }
  .hero-copy p { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { max-width: 380px; margin: 0 auto; order: -1; }
  .hero-float { display: none; }

  .trust-strip .container { grid-template-columns: 1fr 1fr; gap: 16px; }
  .promo-band .container, .newsletter .container { grid-template-columns: 1fr; padding: 32px 24px; text-align: center; }
  .countdown, .newsletter-form { justify-content: center; }
  .testi-grid, .blog-grid { grid-template-columns: 1fr; }
  .pd-layout { grid-template-columns: 1fr; gap: 28px; }
  .pd-gallery { position: static; }

  .shop-layout { grid-template-columns: 1fr; }
  .filters { position: fixed; inset: 0 0 0 auto; width: min(320px, 88vw); z-index: 300; border-radius: 0; transform: translateX(100%); transition: transform .3s; overflow-y: auto; }
  .filters.open { transform: none; }
  .filter-toggle-btn { display: inline-flex; }

  .product-grid, .product-grid.cols-3 { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }

  .sticky-bottom {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 800;
    background: #fff; border-top: 1px solid var(--n-100); padding: 10px 16px; gap: 12px; align-items: center;
    box-shadow: 0 -4px 20px rgba(0,0,0,.06);
  }
  .sticky-bottom .sb-price { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; color: var(--green); }
  .sticky-bottom .sb-price small { display: block; font-size: .7rem; color: var(--n-500); font-weight: 400; }
  .sticky-bottom .btn { flex: 1; }
  .wa-float { bottom: 84px; }
  body.has-sticky-bottom { padding-bottom: 74px; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .pd-actions .btn { min-width: 0; }
  .cart-row { grid-template-columns: 70px 1fr; }
  .cart-row .cr-right { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  .form-grid { grid-template-columns: 1fr; }
}

/* Accessibility */
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* =========================================================================
   WOOCOMMERCE — memetakan desain Quran Rafah ke markup WooCommerce
   ========================================================================= */
.woocommerce-page .container-woo { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.woo-wrap { padding: 40px 0 64px; }

/* Notices */
.woocommerce-message, .woocommerce-info, .woocommerce-error {
  border-radius: var(--r-input); border: 1px solid var(--n-100); border-top: 3px solid var(--green);
  background: var(--n-50); padding: 14px 18px; font-size: .92rem; list-style: none; margin: 0 0 20px;
}
.woocommerce-error { border-top-color: var(--red); }
.woocommerce-message a.button, .woocommerce-info a.button { float: right; }

/* Buttons -> pakai gaya .btn-primary */
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit, .woocommerce a.button.alt, .woocommerce button.button.alt {
  font-family: var(--font-head); font-weight: 600; background: var(--green); color: #fff;
  border-radius: var(--r-btn); padding: 12px 22px; border: none; transition: background .2s, transform .2s, box-shadow .2s; line-height: 1.2;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover,
.woocommerce #respond input#submit:hover, .woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover {
  background: var(--green-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-hover);
}
.woocommerce a.button.wc-backward, .woocommerce .cart .button:not(.alt) { background: #fff; color: var(--red); border: 1.6px solid var(--red); }
.woocommerce a.button.wc-backward:hover { background: var(--red-soft); color: var(--red); }

/* Product grid */
.woocommerce ul.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 0; }
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product { width: auto; margin: 0; float: none; text-align: left; }
.woocommerce ul.products li.product {
  background: #fff; border: 1px solid var(--n-100); border-radius: var(--r-card); overflow: hidden;
  padding: 0; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; display: flex; flex-direction: column;
}
.woocommerce ul.products li.product:hover { transform: translateY(-5px); box-shadow: var(--shadow-soft); border-color: transparent; }
.woocommerce ul.products li.product a img { margin: 0; border-radius: 0; aspect-ratio: 1/1; object-fit: cover; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-family: var(--font-head); font-weight: 600; font-size: .95rem; padding: 14px 15px 6px; line-height: 1.35; }
.woocommerce ul.products li.product .price { padding: 0 15px; color: var(--dark); font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; }
.woocommerce ul.products li.product .price del { color: var(--n-300); font-weight: 400; font-size: .85rem; margin-right: 6px; }
.woocommerce ul.products li.product .price ins { color: var(--dark); text-decoration: none; }
.woocommerce ul.products li.product .star-rating { margin: 8px 15px; font-size: .8em; color: #f5a623; }
.woocommerce ul.products li.product .button { margin: 12px 15px 16px; text-align: center; }
.woocommerce ul.products li.product .onsale, .woocommerce span.onsale {
  background: var(--red); color: #fff; border-radius: 8px; font-family: var(--font-head); font-weight: 600;
  font-size: .72rem; min-height: auto; min-width: auto; padding: 5px 10px; top: 10px; left: 10px; margin: 0; line-height: 1;
}

/* Single product */
.woocommerce div.product { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }
.woocommerce div.product .woocommerce-product-gallery { margin: 0; }
.woocommerce div.product .woocommerce-product-gallery__image img { border-radius: var(--r-image); }
.woocommerce div.product .product_title { font-family: var(--font-head); font-size: clamp(1.5rem,3vw,2rem); margin: 8px 0 12px; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--green); font-family: var(--font-head); font-weight: 700; font-size: 1.8rem; }
.woocommerce div.product p.price del { color: var(--n-300); font-size: 1.1rem; }
.woocommerce div.product form.cart { margin: 22px 0; }
.woocommerce div.product form.cart .quantity input.qty {
  border: 1.5px solid var(--n-100); border-radius: var(--r-btn); height: 48px; width: 70px; text-align: center; font-family: var(--font-head); font-weight: 600;
}
.woocommerce div.product form.cart .button { padding: 14px 28px; }
.woocommerce .woocommerce-tabs ul.tabs { border: none; padding: 0; margin-bottom: 22px; }
.woocommerce .woocommerce-tabs ul.tabs::before { border-bottom: 2px solid var(--n-100); }
.woocommerce .woocommerce-tabs ul.tabs li { background: none; border: none; border-radius: 0; margin: 0 4px -2px 0; }
.woocommerce .woocommerce-tabs ul.tabs li a { font-family: var(--font-head); font-weight: 600; color: var(--n-500); padding: 12px 18px; }
.woocommerce .woocommerce-tabs ul.tabs li.active a { color: var(--green); border-bottom: 2px solid var(--green); }
.woocommerce .woocommerce-tabs ul.tabs li.active { border: none; }
@media (max-width: 860px) { .woocommerce div.product { grid-template-columns: 1fr; gap: 24px; } .woocommerce ul.products { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 1024px) { .woocommerce ul.products { grid-template-columns: repeat(3, 1fr); } }

/* Cart & checkout tables/forms */
.woocommerce table.shop_table { border-radius: var(--r-card); border: 1px solid var(--n-100); border-collapse: separate; }
.woocommerce table.shop_table th { font-family: var(--font-head); }
.woocommerce-cart table.cart img { border-radius: 10px; }
.woocommerce .cart-collaterals .cart_totals, .woocommerce-checkout #order_review, .woocommerce form.checkout_coupon {
  border: 1px solid var(--n-100); border-radius: var(--r-card); padding: 22px; background: #fff;
}
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce-page form .form-row .select2-container,
.woocommerce .woocommerce-billing-fields input, .select2-container--default .select2-selection--single {
  border: 1.5px solid var(--n-100) !important; border-radius: var(--r-input) !important; padding: 11px 14px !important; min-height: 46px;
}
.woocommerce-checkout #payment { background: var(--n-50); border-radius: var(--r-card); }
.woocommerce-checkout #payment ul.payment_methods { border-bottom: 1px solid var(--n-100); }
.woocommerce #respond input#submit.alt, .woocommerce a.button.alt, .woocommerce-checkout #place_order { width: auto; }
.woocommerce-checkout #place_order { width: 100%; padding: 16px; font-size: 1rem; }

/* Breadcrumb */
.woocommerce .woocommerce-breadcrumb { color: var(--n-500); font-size: .86rem; margin-bottom: 20px; }
.woocommerce .woocommerce-breadcrumb a { color: var(--n-500); }
.woocommerce .woocommerce-breadcrumb a:hover { color: var(--green); }

/* Sorting / result count */
.woocommerce .woocommerce-ordering select { border: 1.5px solid var(--n-100); border-radius: var(--r-input); padding: 10px 14px; background: #fff; }
.woocommerce .woocommerce-result-count { color: var(--n-500); padding-top: 10px; }

/* Widgets / filters di sidebar shop */
.wc-block-components-price-slider__range-input-progress { --range-color: var(--green); }
.woocommerce .widget_price_filter .ui-slider .ui-slider-range, .woocommerce .widget_price_filter .ui-slider .ui-slider-handle { background: var(--green); }

/* Account */
.woocommerce-account .woocommerce-MyAccount-navigation ul { border: 1px solid var(--n-100); border-radius: var(--r-card); overflow: hidden; }
.woocommerce-account .woocommerce-MyAccount-navigation li { border-bottom: 1px solid var(--n-100); }
.woocommerce-account .woocommerce-MyAccount-navigation li a { display: block; padding: 12px 16px; font-family: var(--font-head); font-weight: 500; }
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a { background: var(--green-soft); color: var(--green); }

/* Header cart count fragment */
.qr-cart-count.is-empty { display: none; }
