/*
Theme Name: Detak Pustaka
Theme URI: https://detakpustaka.com
Author: Detak Pustaka
Author URI: https://detakpustaka.com
Description: Theme WordPress super-ringan untuk Detak Pustaka Toko. Dibangun tanpa framework berat, optimasi maksimal untuk kecepatan. Mendukung WooCommerce + Tripay.
Version: 1.1.4
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: detak-pustaka
Tags: e-commerce, woocommerce, lightweight, custom-colors, responsive
*/

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: #1c1917;
  background: #fafaf9;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: #b45309; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
ul, ol { padding-left: 1.2em; }
h1, h2, h3, h4, h5, h6 { font-family: 'Fraunces', Georgia, serif; font-weight: 700; line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
input, textarea, select {
  font-family: inherit;
  font-size: 14px;
  padding: 10px 14px;
  border: 1px solid #e7e5e4;
  border-radius: 12px;
  background: #f5f5f4;
  width: 100%;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: #1c1917; background: #fff; }

/* ============================================
   LAYOUT
   ============================================ */
.dp-container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.dp-section { padding: 48px 0; }
.dp-grid { display: grid; gap: 24px; }
.dp-grid-2 { grid-template-columns: repeat(2, 1fr); }
.dp-grid-4 { grid-template-columns: repeat(4, 1fr); }
.dp-grid-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 768px) {
  .dp-grid-4, .dp-grid-5 { grid-template-columns: repeat(2, 1fr); }
  .dp-grid-2 { grid-template-columns: 1fr; }
}

/* ============================================
   ANNOUNCEMENT BAR
   ============================================ */
.dp-announce {
  background: #1c1917;
  color: #f5f5f4;
  font-size: 12px;
  text-align: center;
  padding: 8px 16px;
}

/* ============================================
   HEADER — warna match dengan detakpustaka.com (induk)
   ============================================ */
.dp-header {
  background: #34495e; /* slate navy — sama dengan detakpustaka.com */
  border-bottom: 1px solid #2c3e50;
  position: sticky;
  top: 0;
  z-index: 50;
}
.dp-header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px 0;
}
.dp-logo { display: flex; align-items: center; gap: 8px; }
.dp-logo-mark {
  width: 36px; height: 36px;
  background: #fbbf24; color: #1c1917;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Fraunces', serif; font-weight: 700; font-size: 18px;
}
.dp-logo-text { font-family: 'Fraunces', serif; font-weight: 700; font-size: 18px; line-height: 1; color: #fff; }
.dp-logo-sub { font-size: 10px; color: #cbd5e1; text-transform: uppercase; letter-spacing: 1.5px; }

/* ---------- NAVIGASI UTAMA + DROPDOWN ---------- */
.dp-nav,
.dp-nav ul,
.dp-nav .sub-menu,
.dp-nav .children {
  list-style: none;
  padding: 0;
  margin: 0;
}
.dp-nav {
  display: flex;
  gap: 24px;
  margin-left: 16px;
  align-items: center;
}
.dp-nav > li { position: relative; }
.dp-nav a {
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  display: inline-block;
  padding: 8px 0;
  white-space: nowrap;
}
.dp-nav a:hover { color: #fbbf24; }

/* Dropdown sub-menu — disembunyikan by default */
.dp-nav .sub-menu,
.dp-nav .children {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid #e7e5e4;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,.15);
  min-width: 200px;
  padding: 8px 0;
  z-index: 100;
}
.dp-nav .sub-menu li,
.dp-nav .children li { display: block; }
.dp-nav .sub-menu a,
.dp-nav .children a {
  display: block;
  padding: 8px 16px;
  font-size: 13px;
  color: #44403c;
  white-space: nowrap;
}
.dp-nav .sub-menu a:hover,
.dp-nav .children a:hover { background: #fafaf9; color: #34495e; }

/* Tampilkan dropdown saat hover */
.dp-nav li:hover > .sub-menu,
.dp-nav li:hover > .children,
.dp-nav li.focus > .sub-menu {
  display: block;
}

/* Sub-sub menu (level 3) — keluar ke samping */
.dp-nav .sub-menu .sub-menu {
  top: 0;
  left: 100%;
  margin-left: 4px;
}

/* Pastikan list global tidak bocor ke nav */
.dp-nav ul { padding-left: 0; }

/* Dropdown panjang (mis. kategori 30+ item) → bisa scroll */
.dp-nav .sub-menu {
  max-height: 70vh;
  overflow-y: auto;
}

/* Footer menus — hilangkan bullet */
.dp-footer ul,
.dp-footer .menu,
.dp-footer .sub-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}
.dp-search { flex: 1; max-width: 400px; margin-left: auto; position: relative; }
.dp-search input {
  padding-left: 40px;
  border-radius: 999px;
  background: rgba(255,255,255,.95);
  border: 1px solid transparent;
}
.dp-search input:focus { background: #fff; border-color: #fbbf24; }
.dp-search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: #78716c; }
.dp-cart { position: relative; color: #fff; }
.dp-cart svg { color: #fff; }
.dp-cart:hover svg { color: #fbbf24; }
.dp-cart-count {
  position: absolute; top: -4px; right: -4px;
  background: #f59e0b; color: #fff;
  font-size: 10px; font-weight: 700;
  border-radius: 999px;
  width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center;
}
.dp-mobile-toggle { display: none; }
@media (max-width: 768px) {
  .dp-nav, .dp-search { display: none; }
  .dp-mobile-toggle { display: block; margin-left: auto; }
}

/* ============================================
   BUTTONS
   ============================================ */
.dp-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 14px; font-weight: 600;
  border-radius: 999px;
  transition: all .2s;
  cursor: pointer;
  border: 1px solid transparent;
}
.dp-btn-primary { background: #1c1917; color: #fff; }
.dp-btn-primary:hover { background: #292524; color: #fff; }
.dp-btn-secondary { background: #fff; color: #1c1917; border-color: #d6d3d1; }
.dp-btn-secondary:hover { background: #f5f5f4; }
.dp-btn-accent { background: #f59e0b; color: #1c1917; }
.dp-btn-accent:hover { background: #fbbf24; }
.dp-btn-block { width: 100%; }

/* ============================================
   HERO
   ============================================ */
.dp-hero {
  background: linear-gradient(135deg, #fef3c7 0%, #fafaf9 50%, #f5f5f4 100%);
  border-bottom: 1px solid #e7e5e4;
  padding: 64px 0;
}
.dp-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 768px) { .dp-hero-grid { grid-template-columns: 1fr; } }
.dp-hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid #e7e5e4;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px; color: #57534e; font-weight: 500;
  margin-bottom: 20px;
}
.dp-hero-badge::before {
  content: ''; width: 8px; height: 8px; background: #10b981; border-radius: 50%;
}
.dp-hero h1 em { font-style: italic; color: #b45309; font-weight: 700; }
.dp-hero-cta { display: flex; gap: 12px; margin-top: 24px; }
.dp-hero-stats { display: flex; gap: 24px; margin-top: 40px; font-size: 12px; color: #78716c; }
.dp-hero-stats strong { display: block; font-size: 18px; color: #1c1917; }

/* ============================================
   PRODUCT GRID
   ============================================ */
.dp-section-head {
  display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 24px;
}
.dp-section-head p { color: #78716c; font-size: 14px; margin: 4px 0 0; }
.dp-section-link { font-size: 14px; font-weight: 600; color: #44403c; }

.dp-products { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
@media (max-width: 1024px) { .dp-products { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 768px) { .dp-products { grid-template-columns: repeat(2, 1fr); gap: 16px; } }

/* Modifier: grid 4 kolom (untuk best seller homepage) */
.dp-products.dp-products--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 768px) { .dp-products.dp-products--4 { grid-template-columns: repeat(2, 1fr); } }

/* Modifier: gambar produk persegi (1:1) match tema warm cream */
.dp-products--square .dp-product-image {
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}
.dp-products--square .dp-product-image::after {
  /* Subtle vignette agar gambar buku menyatu dengan background warm */
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(146, 64, 14, .08) 100%);
  pointer-events: none;
}
.dp-products--square .dp-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply; /* hilangkan latar putih cover buku, menyatu dengan bg amber */
  padding: 0;
  background: transparent;
}

.dp-product { cursor: pointer; }
.dp-product-image {
  aspect-ratio: 2/3;
  background: #f5f5f4;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.06);
  transition: transform .3s, box-shadow .3s;
}
.dp-product:hover .dp-product-image {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,.12), 0 4px 8px rgba(0,0,0,.08);
}
.dp-product-image img { width: 100%; height: 100%; object-fit: cover; }
.dp-product-badge {
  position: absolute; top: 8px; right: 8px;
  background: #f59e0b; color: #fff;
  font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: .5px;
}
.dp-product-badge.new { background: #f43f5e; }
.dp-product-author { font-size: 12px; color: #78716c; margin-bottom: 4px; }
.dp-product-title { font-size: 14px; font-weight: 600; line-height: 1.3; margin-bottom: 4px; color: #1c1917; }
.dp-product-price { font-weight: 700; color: #1c1917; }
.dp-product-price .old { font-size: 12px; color: #a8a29e; text-decoration: line-through; margin-left: 8px; font-weight: 400; }

/* ============================================
   CATEGORY CARDS
   ============================================ */
.dp-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 768px) { .dp-cats { grid-template-columns: repeat(2, 1fr); } }
.dp-cat {
  display: block;
  border-radius: 16px;
  padding: 24px;
  transition: transform .2s, background .2s;
}
.dp-cat:hover { transform: translateY(-2px); }
.dp-cat-icon { font-size: 28px; margin-bottom: 12px; }
.dp-cat-title { font-family: 'Fraunces', serif; font-weight: 700; font-size: 18px; }
.dp-cat-meta { font-size: 12px; color: #57534e; margin-top: 4px; }
.dp-cat-1 { background: #fef3c7; }
.dp-cat-1:hover { background: #fde68a; }
.dp-cat-2 { background: #d1fae5; }
.dp-cat-2:hover { background: #a7f3d0; }
.dp-cat-3 { background: #dbeafe; }
.dp-cat-3:hover { background: #bfdbfe; }
.dp-cat-4 { background: #ffe4e6; }
.dp-cat-4:hover { background: #fecdd3; }

/* ============================================
   PROMO BANNER
   ============================================ */
.dp-promo {
  background: #1c1917;
  color: #fff;
  border-radius: 24px;
  padding: 48px;
  display: grid; grid-template-columns: 2fr 1fr; gap: 32px;
  align-items: center;
}
@media (max-width: 768px) {
  .dp-promo { grid-template-columns: 1fr; padding: 32px; text-align: center; }
}
.dp-promo-tag { color: #fbbf24; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 12px; }
.dp-promo h3 { color: #fff; font-size: 1.875rem; margin-bottom: 8px; }
.dp-promo p { color: #d6d3d1; font-size: 14px; max-width: 28rem; margin: 0; }

/* ============================================
   TRUST BADGES
   ============================================ */
.dp-trust {
  background: #fff;
  border-top: 1px solid #e7e5e4;
}
.dp-trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 40px 0; text-align: center; }
@media (max-width: 768px) { .dp-trust-grid { grid-template-columns: repeat(2, 1fr); } }
.dp-trust-icon { font-size: 24px; margin-bottom: 8px; }
.dp-trust-title { font-size: 14px; font-weight: 600; }
.dp-trust-meta { font-size: 12px; color: #78716c; margin-top: 4px; }

/* ============================================
   SINGLE PRODUCT (WooCommerce override)
   ============================================ */
.dp-product-single {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  padding: 32px 0;
}
@media (max-width: 768px) { .dp-product-single { grid-template-columns: 1fr; } }
.dp-product-gallery img { border-radius: 12px; box-shadow: 0 20px 40px rgba(0,0,0,.15), 0 8px 16px rgba(0,0,0,.1); }
.dp-product-meta { display: flex; gap: 8px; margin-bottom: 12px; }
.dp-meta-tag {
  background: #fef3c7; color: #92400e;
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px;
  padding: 4px 8px; border-radius: 6px;
}
.dp-meta-tag.stock { background: #d1fae5; color: #065f46; }
.dp-product-price-large { font-size: 1.875rem; font-weight: 700; }
.dp-quantity {
  display: inline-flex; align-items: center;
  border: 1px solid #d6d3d1; border-radius: 999px;
  margin-right: 8px;
}
.dp-quantity button { width: 36px; height: 36px; font-size: 18px; font-weight: 700; color: #57534e; }
.dp-quantity button:hover { background: #f5f5f4; }
.dp-quantity input { width: 40px; text-align: center; border: 0; background: transparent; padding: 0; }

/* ============================================
   CART & CHECKOUT
   ============================================ */
.dp-page-title { font-family: 'Fraunces', serif; font-weight: 700; font-size: 1.875rem; margin-bottom: 24px; }
.dp-card { background: #fff; border: 1px solid #e7e5e4; border-radius: 16px; padding: 24px; }
.dp-card + .dp-card { margin-top: 16px; }
.dp-card h2 { font-family: 'Fraunces', serif; font-size: 1.25rem; margin-bottom: 16px; }

/* Checkout grid → ubah jadi 1 kolom full-page centered (sesuai cart) */
.dp-checkout-grid {
  display: block;
  max-width: 760px;
  margin: 0 auto;
}
.dp-checkout-grid > div { width: 100%; }
.dp-checkout-grid .dp-summary {
  position: static;
  margin-top: 24px;
  max-width: none;
}
.dp-summary {
  background: #fff; border: 1px solid #e7e5e4; border-radius: 16px;
  padding: 24px; position: sticky; top: 24px;
}
.dp-summary-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; }
.dp-summary-total {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 16px; padding-top: 16px; border-top: 1px solid #e7e5e4;
}
.dp-summary-total .total { font-family: 'Fraunces', serif; font-weight: 700; font-size: 1.5rem; }

/* ============================================
   CART — full-width 1 kolom (items atas, totals bawah) - centered
   ============================================ */
.dp-cart-wrap {
  max-width: 760px;
  margin: 0 auto;
}
.dp-cart-wrap .woocommerce-cart-form {
  background: #fff;
  border: 1px solid #e7e5e4;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 24px;
}
.dp-cart-totals-wrap {
  background: #fff;
  border: 1px solid #e7e5e4;
  border-radius: 16px;
  padding: 28px;
}
.dp-cart-totals-inner {
  max-width: 520px;
  margin-left: auto; /* Ringkasan rata kanan, biar mata pelanggan terarah ke total */
}
.dp-cart-totals-title {
  font-family: 'Fraunces', serif;
  font-size: 1.375rem;
  font-weight: 700;
  margin: 0 0 16px;
}
.dp-cart-secure {
  font-size: 12px;
  color: #78716c;
  text-align: center;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #f5f5f4;
}

/* WC Cart table — paksa lebar penuh, hapus card-in-card */
.woocommerce-cart-form.dp-card { padding: 0; overflow: hidden; }
.woocommerce-cart table.cart {
  width: 100% !important;
  border-collapse: collapse !important;
  border: 0 !important;
  border-radius: 0 !important;
  margin: 0 !important;
}
.woocommerce-cart table.cart thead { display: none; }
.woocommerce-cart table.cart tr {
  border-bottom: 1px solid #f5f5f4;
  display: grid !important;
  grid-template-columns: 80px 1fr auto auto 32px;
  gap: 16px;
  align-items: center;
  padding: 16px;
}
.woocommerce-cart table.cart td {
  border: 0 !important;
  padding: 0 !important;
  display: block !important;
  background: transparent !important;
}
.woocommerce-cart table.cart td.product-thumbnail img {
  width: 64px !important;
  height: auto !important;
  border-radius: 6px;
}
.woocommerce-cart table.cart td.product-name a {
  font-weight: 600;
  color: #1c1917;
  font-size: 14px;
  line-height: 1.3;
}
.woocommerce-cart table.cart td.product-quantity .quantity { margin: 0; }
.woocommerce-cart table.cart td.product-quantity input.qty { width: 50px; }
.woocommerce-cart table.cart td.product-subtotal {
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}
.woocommerce-cart table.cart td.product-remove a {
  color: #a8a29e;
  font-size: 18px;
  text-decoration: none;
}
.woocommerce-cart table.cart td.product-remove a:hover { color: #b91c1c; }

/* Cart actions row (kupon + update) */
.woocommerce-cart table.cart tr.actions {
  display: flex !important;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px;
  background: #fafaf9;
}
.woocommerce-cart table.cart .coupon { display: flex; gap: 8px; }
.woocommerce-cart table.cart .coupon input { width: 160px; padding: 8px 14px; border-radius: 999px; border: 1px solid #d6d3d1; }

/* Cart Totals (Ringkasan) — biar nggak ada heading dobel */
.cart_totals { padding: 0; }
.cart_totals h2 {
  font-family: 'Fraunces', serif;
  font-size: 1.25rem;
  margin-bottom: 16px;
}
/* Sembunyikan h2 default "Total keranjang belanja" karena dp-summary sudah ada h2 sendiri */
.dp-summary .cart_totals > h2 { display: none; }
.cart_totals table.shop_table {
  border: 0 !important;
  border-radius: 0 !important;
  margin: 0 !important;
  width: 100% !important;
}
.cart_totals table.shop_table tr {
  border-bottom: 1px solid #f5f5f4;
}
.cart_totals table.shop_table th,
.cart_totals table.shop_table td {
  padding: 8px 0 !important;
  border: 0 !important;
  background: transparent !important;
  font-size: 14px;
  vertical-align: top;
}
.cart_totals table.shop_table th { font-weight: 500; color: #57534e; text-align: left; }
.cart_totals table.shop_table td { text-align: right; font-weight: 600; }
.cart_totals table.shop_table tr.order-total td .amount {
  font-family: 'Fraunces', serif;
  font-size: 1.25rem;
  font-weight: 700;
}
.cart_totals .wc-proceed-to-checkout { padding: 16px 0 0; }
.cart_totals .wc-proceed-to-checkout .checkout-button {
  width: 100% !important;
  display: block !important;
  text-align: center;
  background: #1c1917 !important;
  color: #fff !important;
  font-weight: 700 !important;
  padding: 14px !important;
  border-radius: 999px !important;
  margin: 0 !important;
}
.cart_totals .wc-proceed-to-checkout .checkout-button:hover { background: #292524 !important; }

/* Shipping Calculator — biar tidak overflow */
.shipping-calculator-form { padding: 12px 0; }
.woocommerce-shipping-destination, .woocommerce-shipping-totals { font-size: 13px; }

/* Mobile cart */
@media (max-width: 600px) {
  .woocommerce-cart table.cart tr {
    grid-template-columns: 64px 1fr 32px;
    grid-template-rows: auto auto;
  }
  .woocommerce-cart table.cart td.product-thumbnail { grid-row: 1 / 3; }
  .woocommerce-cart table.cart td.product-name { grid-column: 2 / 4; }
  .woocommerce-cart table.cart td.product-quantity,
  .woocommerce-cart table.cart td.product-subtotal { grid-column: 2; }
  .woocommerce-cart table.cart td.product-remove { grid-column: 3; grid-row: 1; }
}

/* ============================================
   CHECKOUT — form fields styling
   ============================================ */
.woocommerce-checkout .form-row {
  margin-bottom: 12px;
}
.woocommerce-checkout .form-row label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #57534e;
  margin-bottom: 4px;
}
.woocommerce-checkout .form-row input.input-text,
.woocommerce-checkout .form-row textarea,
.woocommerce-checkout .form-row select,
.woocommerce-checkout .select2-container .select2-selection {
  width: 100% !important;
  padding: 10px 14px !important;
  border: 1px solid #e7e5e4 !important;
  border-radius: 12px !important;
  background: #fafaf9 !important;
  font-size: 14px !important;
  height: auto !important;
}
.woocommerce-checkout #order_review_heading {
  font-family: 'Fraunces', serif;
  font-size: 1.25rem;
  margin-bottom: 16px;
}
.woocommerce-checkout #order_review { padding: 0; }
.woocommerce-checkout #order_review table.shop_table {
  border: 0 !important;
  border-radius: 0 !important;
  margin: 0 !important;
  width: 100% !important;
}
.woocommerce-checkout #order_review table.shop_table th,
.woocommerce-checkout #order_review table.shop_table td {
  padding: 8px 0 !important;
  border: 0 !important;
  background: transparent !important;
  font-size: 14px;
}
.woocommerce-checkout #order_review table.shop_table tr.order-total td .amount {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 1.25rem;
}
.woocommerce-checkout #payment {
  background: transparent !important;
  margin-top: 16px;
}
.woocommerce-checkout #payment ul.payment_methods {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
}
.woocommerce-checkout #payment ul.payment_methods li {
  padding: 10px 14px !important;
  margin: 0 0 6px !important;
  background: #fafaf9 !important;
  border: 1px solid #e7e5e4 !important;
  border-radius: 12px !important;
  font-size: 13px;
}
.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method input[type=radio]:checked + label {
  font-weight: 600;
  color: #1c1917;
}
.woocommerce-checkout #payment .place-order .button {
  width: 100% !important;
  display: block !important;
  text-align: center !important;
  background: #f59e0b !important;
  color: #1c1917 !important;
  font-weight: 700 !important;
  padding: 14px !important;
  border-radius: 999px !important;
  font-size: 14px !important;
  border: 0 !important;
}
.woocommerce-checkout #payment .place-order .button:hover { background: #fbbf24 !important; }

/* ============================================
   WHATSAPP — floating button + product CTA
   ============================================ */
.dp-wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, .4), 0 4px 8px rgba(0,0,0,.1);
  z-index: 999;
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease;
  animation: dp-wa-pulse 2.4s infinite;
}
.dp-wa-float:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 32px rgba(37, 211, 102, .5), 0 6px 12px rgba(0,0,0,.15);
  animation: none;
}

@keyframes dp-wa-pulse {
  0%   { box-shadow: 0 8px 24px rgba(37, 211, 102, .4), 0 4px 8px rgba(0,0,0,.1), 0 0 0 0 rgba(37, 211, 102, .5); }
  70%  { box-shadow: 0 8px 24px rgba(37, 211, 102, .4), 0 4px 8px rgba(0,0,0,.1), 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 8px 24px rgba(37, 211, 102, .4), 0 4px 8px rgba(0,0,0,.1), 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Tooltip "Tanya admin" yang muncul saat hover */
.dp-wa-tooltip {
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%) translateX(-12px);
  background: #1c1917;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.dp-wa-tooltip::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: #1c1917;
}
.dp-wa-float:hover .dp-wa-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(-8px);
}

/* Tombol "Pesan via WhatsApp" di single product */
.dp-wa-product-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #25D366;
  color: #fff !important;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: 999px;
  margin-left: 8px;
  text-decoration: none !important;
  transition: background .2s, transform .15s;
  vertical-align: middle;
}
.dp-wa-product-btn:hover {
  background: #128C7E;
  color: #fff !important;
  transform: translateY(-1px);
}
.dp-wa-product-btn svg { flex-shrink: 0; }

/* Mobile: full width baris baru biar tetap mudah ditekan */
@media (max-width: 600px) {
  .dp-wa-product-btn {
    width: 100%;
    margin: 12px 0 0;
    padding: 14px 20px;
  }
  .dp-wa-float { bottom: 16px; right: 16px; width: 52px; height: 52px; }
  .dp-wa-tooltip { display: none; }
}

/* ============================================
   PAGE (Static Page) — full-page centered
   Untuk halaman: About, Hubungi Kami, Syarat & Ketentuan, dll
   ============================================ */
.dp-page {
  max-width: 720px;
  margin: 0 auto;
}
.dp-page-header {
  text-align: center;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e7e5e4;
}
.dp-page-h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 12px;
  color: #1c1917;
}
.dp-page-excerpt {
  font-size: 17px;
  color: #57534e;
  line-height: 1.6;
  max-width: 560px;
  margin: 0 auto;
}
.dp-page-thumb {
  margin: 0 0 32px;
  border-radius: 16px;
  overflow: hidden;
}
.dp-page-thumb img { width: 100%; height: auto; display: block; }

.dp-page-content {
  font-size: 16px;
  line-height: 1.75;
  color: #292524;
}
.dp-page-content > * { max-width: 720px; margin-left: auto; margin-right: auto; }
.dp-page-content p { margin: 0 0 1.25em; }
.dp-page-content > p:first-child {
  font-size: 18px;
  color: #44403c;
}
.dp-page-content h2 {
  font-family: 'Fraunces', serif;
  font-size: 1.625rem;
  margin: 2em 0 0.75em;
  line-height: 1.3;
  color: #1c1917;
  text-align: center;
}
.dp-page-content h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.25rem;
  margin: 1.75em 0 0.6em;
  color: #1c1917;
}
.dp-page-content h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin: 1.5em 0 0.5em;
  color: #1c1917;
}
.dp-page-content blockquote {
  border-left: 4px solid #fbbf24;
  background: #fffbeb;
  padding: 16px 20px;
  margin: 1.5em 0;
  font-style: italic;
  border-radius: 0 8px 8px 0;
  color: #44403c;
}
.dp-page-content ul,
.dp-page-content ol {
  padding-left: 1.5em;
  margin: 0 auto 1.25em;
}
.dp-page-content ul { list-style: disc; }
.dp-page-content ol { list-style: decimal; }
.dp-page-content li { padding: 4px 0; }
.dp-page-content img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 1.5em 0;
}
.dp-page-content a {
  color: #b45309;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.dp-page-content a:hover { color: #92400e; }
.dp-page-content code {
  background: #f5f5f4;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  color: #b45309;
}
.dp-page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 14px;
}
.dp-page-content table th,
.dp-page-content table td {
  border: 1px solid #e7e5e4;
  padding: 10px 14px;
  text-align: left;
}
.dp-page-content table th {
  background: #fafaf9;
  font-weight: 600;
}
.dp-page-content hr {
  border: 0;
  border-top: 1px solid #e7e5e4;
  margin: 2em auto;
}

/* Form contact (kalau ada di page) */
.dp-page-content form {
  background: #fafaf9;
  border: 1px solid #e7e5e4;
  border-radius: 16px;
  padding: 24px;
  margin: 1.5em auto;
}
.dp-page-content form input[type="text"],
.dp-page-content form input[type="email"],
.dp-page-content form input[type="tel"],
.dp-page-content form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #e7e5e4;
  border-radius: 12px;
  background: #fff;
  margin-bottom: 12px;
  font-size: 14px;
}
.dp-page-content form button[type="submit"],
.dp-page-content form input[type="submit"] {
  background: #1c1917;
  color: #fff;
  border: 0;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
}

/* ============================================
   ARTICLE (Single Post) — full-page centered
   ============================================ */
.dp-article {
  max-width: 760px;
  margin: 0 auto;
}
.dp-article-header {
  text-align: center;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e7e5e4;
}
.dp-article-cat {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #b45309;
  margin-bottom: 12px;
  text-decoration: none;
}
.dp-article-cat:hover { color: #92400e; }
.dp-article-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 16px;
  color: #1c1917;
}
.dp-article-meta {
  font-size: 13px;
  color: #78716c;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.dp-article-thumb {
  margin: 0 0 32px;
  border-radius: 16px;
  overflow: hidden;
}
.dp-article-thumb img { width: 100%; height: auto; display: block; }
.dp-article-content {
  font-size: 17px;
  line-height: 1.75;
  color: #292524;
}
.dp-article-content > * { max-width: 680px; margin-left: auto; margin-right: auto; }
.dp-article-content p { margin: 0 0 1.25em; }
.dp-article-content h2 {
  font-family: 'Fraunces', serif;
  font-size: 1.625rem;
  margin: 2em 0 0.75em;
  line-height: 1.3;
}
.dp-article-content h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.25rem;
  margin: 1.75em 0 0.6em;
}
.dp-article-content blockquote {
  border-left: 4px solid #fbbf24;
  background: #fffbeb;
  padding: 16px 20px;
  margin: 1.5em 0;
  font-style: italic;
  border-radius: 0 8px 8px 0;
}
.dp-article-content ul,
.dp-article-content ol {
  padding-left: 1.5em;
  margin: 0 auto 1.25em;
}
.dp-article-content ul li { list-style: disc; padding: 4px 0; }
.dp-article-content ol li { list-style: decimal; padding: 4px 0; }
.dp-article-content img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 1.5em 0;
}
.dp-article-content a { color: #b45309; text-decoration: underline; }
.dp-article-content a:hover { color: #92400e; }
.dp-article-content code {
  background: #f5f5f4;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}
.dp-article-content pre {
  background: #1c1917;
  color: #f5f5f4;
  padding: 16px;
  border-radius: 12px;
  overflow-x: auto;
  margin: 1.5em 0;
}
.dp-article-footer {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #e7e5e4;
}
.dp-article-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.dp-tag {
  display: inline-block;
  background: #f5f5f4;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  color: #57534e;
  text-decoration: none;
}
.dp-tag:hover { background: #e7e5e4; color: #1c1917; }

/* ============================================
   SHOP PAGE (/depan/) — bersihkan konten redundant
   ============================================ */
/* Sembunyikan H1 "Depan" — sudah ada breadcrumb */
body.woocommerce-shop .woocommerce-products-header { display: none; }

/* Sembunyikan 4 trust badge h3+p (Ongkir/Garansi/Payment/Bantuan)
   karena sudah ada di footer trust badges */
.page-description > h3,
.page-description > h3 + p { display: none; }

/* Style h2 "Kategori:" */
.page-description > h2 {
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 16px;
}

/* Style ul kategori sebagai pill horizontal */
.page-description > ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 32px !important;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.page-description > ul li {
  margin: 0 !important;
  padding: 0 !important;
  text-indent: 0 !important;
}
.page-description > ul li::before { content: none !important; }
.page-description > ul li a {
  display: inline-block;
  background: #fff;
  border: 1px solid #e7e5e4;
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 500;
  color: #44403c;
  text-decoration: none;
  transition: all .2s;
}
.page-description > ul li a:hover {
  border-color: #1c1917;
  color: #1c1917;
  background: #fafaf9;
}

/* H2/H3 di tengah konten shop (Buku Fiksi:, Buku Nonfiksi:) — section divider */
.page-description ~ h2,
.dp-wc-page > h2 {
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 32px 0 12px;
  padding-top: 16px;
  border-top: 1px solid #e7e5e4;
}

/* ============================================
   CONTENT (page) — fix bullet floating issue
   ============================================ */
main.dp-container ul,
.entry-content ul,
.dp-wc-page > ul {
  list-style: disc inside;
  padding-left: 0;
}
main.dp-container ul li,
.entry-content ul li,
.dp-wc-page > ul li {
  padding: 4px 0;
  margin-left: 1.2em;
  text-indent: -0.2em;
}
main.dp-container ol,
.entry-content ol {
  list-style: decimal inside;
  padding-left: 0;
}

/* ============================================
   FOOTER
   ============================================ */
/* ============================================
   AUTHOR CTA STRIP — link ke dashboard royalti penulis
   Posisi: tepat di atas footer utama
   ============================================ */
.dp-author-cta {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #1c1917;
}
.dp-author-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 16px;
  flex-wrap: wrap;
}
.dp-author-cta-text {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1 1 300px;
  min-width: 0;
}
.dp-author-cta-icon {
  font-size: 28px;
  background: rgba(255,255,255,.4);
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.dp-author-cta-title {
  font-family: 'Fraunces', serif;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 2px;
}
.dp-author-cta-sub {
  font-size: 13px;
  color: #44403c;
  line-height: 1.4;
}
.dp-author-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #1c1917;
  color: #fbbf24 !important;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: 999px;
  text-decoration: none;
  transition: all .2s;
  white-space: nowrap;
}
.dp-author-cta-btn:hover {
  background: #292524;
  color: #fff !important;
  transform: translateX(2px);
}
.dp-author-cta-btn svg { transition: transform .2s; }
.dp-author-cta-btn:hover svg { transform: translateX(2px); }

@media (max-width: 600px) {
  .dp-author-cta-inner { flex-direction: column; align-items: stretch; text-align: left; }
  .dp-author-cta-btn { justify-content: center; }
}

.dp-footer { background: #1c1917; color: #d6d3d1; }
.dp-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 40px; padding: 56px 0; }
@media (max-width: 900px) { .dp-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 600px) { .dp-footer-grid { grid-template-columns: 1fr; gap: 24px; } }
.dp-footer h4 { color: #fff; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 600; font-size: 14px; margin-bottom: 16px; }
.dp-footer ul { list-style: none; padding: 0; margin: 0; }
.dp-footer li { font-size: 14px; padding: 4px 0; }
.dp-footer a { color: #d6d3d1; transition: color .2s; }
.dp-footer a:hover { color: #fbbf24; }

/* Kolom Tentang */
.dp-footer-tagline { font-size: 13px; line-height: 1.6; color: #a8a29e; margin-bottom: 16px; }
.dp-footer-tagline strong { color: #fff; }

.dp-footer-address { font-size: 13px; line-height: 1.6; color: #a8a29e; margin-bottom: 20px; }
.dp-footer-address p { margin: 4px 0 0; }
.dp-footer-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fbbf24;
  margin-bottom: 4px;
}

/* Sosial media icons */
.dp-footer-social { display: flex; gap: 8px; flex-wrap: wrap; }
.dp-footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all .2s;
}
.dp-footer-social a:hover {
  background: #fbbf24;
  color: #1c1917;
}

/* Kolom kontak */
.dp-footer-contact li {
  padding: 8px 0;
}
.dp-footer-contact .dp-footer-label {
  margin-bottom: 2px;
  font-size: 10px;
}
.dp-footer-contact span:not(.dp-footer-label) {
  font-size: 13px;
  line-height: 1.5;
  color: #d6d3d1;
}

.dp-footer-bottom {
  border-top: 1px solid #292524;
  padding: 20px 0;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 12px; color: #78716c;
}
.dp-footer-bottom a { color: #fbbf24; }
.dp-footer-bottom a:hover { color: #fff; }

/* ============================================
   UTILITIES
   ============================================ */
.dp-mt-1 { margin-top: 8px; }
.dp-mt-2 { margin-top: 16px; }
.dp-mt-3 { margin-top: 24px; }
.dp-mb-1 { margin-bottom: 8px; }
.dp-mb-2 { margin-bottom: 16px; }
.dp-mb-3 { margin-bottom: 24px; }
.dp-text-muted { color: #78716c; }
.dp-text-center { text-align: center; }
.dp-text-sm { font-size: 12px; }

/* ============================================
   WOOCOMMERCE OVERRIDES
   ============================================ */
.woocommerce ul.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 0; list-style: none; margin: 0; }
@media (max-width: 768px) { .woocommerce ul.products { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
.woocommerce ul.products li.product { width: 100% !important; margin: 0 !important; padding: 0 !important; float: none !important; }
.woocommerce ul.products li.product .button {
  background: #1c1917; color: #fff;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 12px; font-weight: 600;
  margin-top: 8px; display: inline-block;
}
.woocommerce ul.products li.product .button:hover { background: #292524; }
.woocommerce span.onsale {
  background: #f59e0b; color: #fff;
  border-radius: 999px;
  font-size: 10px; font-weight: 700;
  min-width: auto; padding: 2px 10px;
  line-height: 1.4;
  top: 8px; left: auto; right: 8px;
}
.woocommerce-message, .woocommerce-info, .woocommerce-error {
  background: #fef3c7; border-top: 3px solid #f59e0b; color: #78350f;
  padding: 12px 16px; border-radius: 8px;
}
.woocommerce a.button.alt, .woocommerce-page a.button.alt,
.woocommerce button.button.alt, .woocommerce-page button.button.alt,
.woocommerce input.button.alt, .woocommerce-page input.button.alt {
  background: #1c1917; color: #fff; border-radius: 999px;
  padding: 12px 24px; font-weight: 600;
}
.woocommerce-cart table.cart, .woocommerce table.shop_table { border-radius: 12px; overflow: hidden; border: 1px solid #e7e5e4; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea {
  border: 1px solid #e7e5e4; border-radius: 12px; padding: 10px 14px;
}
.woocommerce-breadcrumb { font-size: 12px; color: #78716c; padding: 16px 0; }

/* ============================================
   SINGLE PRODUCT — layout & komponen
   ============================================ */
.woocommerce div.product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 24px 0;
}
@media (max-width: 768px) {
  .woocommerce div.product { grid-template-columns: 1fr; gap: 24px; }
}
.woocommerce div.product .woocommerce-product-gallery {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
}
.woocommerce div.product .woocommerce-product-gallery img {
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,.12), 0 8px 16px rgba(0,0,0,.08);
  max-width: 100%;
  height: auto;
}
/* Sembunyikan tombol zoom (magnifier icon) — kurangi clutter */
.woocommerce div.product .woocommerce-product-gallery__trigger {
  display: none !important;
}
/* Constrain gallery wrapper supaya gambar nggak terlalu besar */
.woocommerce div.product .woocommerce-product-gallery__wrapper {
  max-width: 480px;
  margin: 0 auto;
}
.woocommerce div.product .summary {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
}

/* Title, price, meta */
.woocommerce div.product .product_title {
  font-family: 'Fraunces', serif;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 12px;
}
.woocommerce div.product p.price,
.woocommerce div.product span.price {
  font-size: 1.875rem;
  font-weight: 700;
  color: #1c1917;
  margin: 12px 0 16px;
  display: block;
}
.woocommerce div.product p.price del,
.woocommerce div.product span.price del {
  font-size: 1rem;
  color: #a8a29e;
  margin-right: 8px;
  font-weight: 400;
}
.woocommerce div.product p.price ins,
.woocommerce div.product span.price ins {
  background: transparent;
  text-decoration: none;
  font-weight: 700;
}
.woocommerce-product-rating { margin-bottom: 12px; }
.woocommerce .star-rating { color: #f59e0b; }

.woocommerce div.product .woocommerce-product-details__short-description {
  color: #57534e;
  margin-bottom: 20px;
  line-height: 1.7;
}

/* Stock */
.woocommerce .stock {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  display: inline-block;
}
.woocommerce .stock.in-stock { background: #d1fae5; color: #065f46; }
.woocommerce .stock.out-of-stock { background: #fee2e2; color: #991b1b; }

/* Quantity input */
.woocommerce .quantity {
  display: inline-flex !important;
  align-items: center;
  border: 1px solid #d6d3d1;
  border-radius: 999px;
  overflow: hidden;
  margin-right: 8px;
  vertical-align: middle;
}
.woocommerce .quantity input.qty {
  width: 50px;
  text-align: center;
  border: 0;
  background: transparent;
  padding: 8px 4px;
  font-weight: 600;
}

/* Add to cart button */
.woocommerce div.product form.cart {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.woocommerce div.product form.cart .button,
.woocommerce div.product .single_add_to_cart_button {
  background: #1c1917 !important;
  color: #fff !important;
  border-radius: 999px !important;
  padding: 12px 28px !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  border: 0 !important;
}
.woocommerce div.product form.cart .button:hover,
.woocommerce div.product .single_add_to_cart_button:hover {
  background: #292524 !important;
}

/* Variations */
.woocommerce div.product table.variations {
  border-collapse: collapse;
  margin-bottom: 16px;
  width: 100%;
}
.woocommerce div.product table.variations td {
  padding: 8px 0;
  border: 0;
}
.woocommerce div.product table.variations select {
  border: 1px solid #d6d3d1;
  border-radius: 8px;
  padding: 8px 12px;
}

/* Product meta (SKU, kategori) */
.woocommerce div.product .product_meta {
  border-top: 1px solid #e7e5e4;
  padding-top: 16px;
  font-size: 13px;
  color: #78716c;
}
.woocommerce div.product .product_meta > span {
  display: block;
  margin-bottom: 6px;
}
.woocommerce div.product .product_meta a {
  color: #b45309;
  font-weight: 600;
}

/* Tabs */
.woocommerce div.product .woocommerce-tabs {
  grid-column: 1 / -1;
  margin-top: 32px;
}
.woocommerce div.product .woocommerce-tabs ul.tabs {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 24px !important;
  border-bottom: 1px solid #e7e5e4;
  display: flex;
  gap: 32px;
  background: transparent;
}
.woocommerce div.product .woocommerce-tabs ul.tabs::before,
.woocommerce div.product .woocommerce-tabs ul.tabs::after { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  display: block;
  padding: 12px 0;
  font-size: 14px;
  font-weight: 600;
  color: #78716c;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a,
.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover {
  color: #1c1917;
  border-bottom-color: #1c1917;
}
.woocommerce div.product .woocommerce-tabs .panel {
  max-width: 760px;
  color: #44403c;
  line-height: 1.7;
}
.woocommerce div.product .woocommerce-tabs .panel h2 {
  display: none; /* judul tab redundant */
}

/* Reviews */
.woocommerce #reviews #comments ol.commentlist {
  list-style: none;
  padding: 0;
}
.woocommerce #reviews #comments ol.commentlist li {
  background: #fff;
  border: 1px solid #e7e5e4;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
}
.woocommerce #reviews #comments ol.commentlist li img.avatar {
  border: 0;
  padding: 0;
  background: transparent;
  border-radius: 50%;
  position: static;
  width: 40px;
  height: 40px;
}

/* Related & Upsell products */
.woocommerce .related,
.woocommerce .upsells {
  grid-column: 1 / -1;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid #e7e5e4;
}
.woocommerce .related > h2,
.woocommerce .upsells > h2 {
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

/* ============================================
   SHOP / ARCHIVE — page wrapper, sidebar
   ============================================ */
.woocommerce-products-header {
  margin-bottom: 24px;
}
.woocommerce-products-header__title {
  font-family: 'Fraunces', serif;
  font-size: 2rem;
  font-weight: 700;
}
.woocommerce-result-count {
  color: #78716c;
  font-size: 13px;
  margin: 8px 0 16px;
}
.woocommerce-ordering {
  display: inline-block;
  margin-bottom: 16px;
}
.woocommerce-ordering select {
  border: 1px solid #d6d3d1;
  border-radius: 999px;
  padding: 8px 36px 8px 16px;
  background: #fff;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  width: auto !important;
  min-width: 240px;
  max-width: 320px;
}

/* Loop product card — match mockup */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 14px;
  font-weight: 600;
  color: #1c1917;
  padding: 8px 0 4px;
  margin: 0;
  line-height: 1.3;
}
.woocommerce ul.products li.product img {
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.06);
  transition: transform .3s, box-shadow .3s;
  margin: 0 !important;
}
.woocommerce ul.products li.product:hover img {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,.12), 0 4px 8px rgba(0,0,0,.08);
}
.woocommerce ul.products li.product .price {
  font-weight: 700;
  color: #1c1917;
  font-size: 14px;
  margin-bottom: 8px;
  display: block;
}
.woocommerce ul.products li.product .price del { color: #a8a29e; font-size: 12px; margin-right: 6px; }
.woocommerce ul.products li.product .price ins { background: transparent; }
.woocommerce ul.products li.product a.added_to_cart {
  display: inline-block;
  margin-left: 8px;
  font-size: 12px;
  color: #b45309;
  font-weight: 600;
}

/* Pagination */
.woocommerce nav.woocommerce-pagination ul {
  border: 0 !important;
  display: flex;
  gap: 4px;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
}
.woocommerce nav.woocommerce-pagination ul li {
  border: 0 !important;
  margin: 0 !important;
}
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  border-radius: 999px !important;
  padding: 8px 14px !important;
  background: #fff !important;
  border: 1px solid #e7e5e4 !important;
  font-weight: 600;
  font-size: 13px;
  color: #44403c;
}
.woocommerce nav.woocommerce-pagination ul li span.current {
  background: #1c1917 !important;
  color: #fff !important;
  border-color: #1c1917 !important;
}

/* Sidebar widget area (kalau ada) */
.widget {
  background: #fff;
  border: 1px solid #e7e5e4;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 16px;
}
.widget-title { font-family: 'Fraunces', serif; font-size: 1rem; font-weight: 700; margin-bottom: 12px; }
.widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.widget li {
  padding: 6px 0;
  border-bottom: 1px solid #f5f5f4;
  font-size: 13px;
}
.widget li:last-child { border-bottom: 0; }

/* Cart messages */
.woocommerce-notices-wrapper { margin-bottom: 16px; }
.woocommerce-message {
  background: #d1fae5 !important;
  border: 0 !important;
  color: #065f46 !important;
  border-radius: 12px !important;
  padding: 12px 16px !important;
}
.woocommerce-message::before { color: #10b981 !important; }
.woocommerce-info {
  background: #dbeafe !important;
  border: 0 !important;
  color: #1e40af !important;
  border-radius: 12px !important;
  padding: 12px 16px !important;
}
.woocommerce-error {
  background: #fee2e2 !important;
  border: 0 !important;
  color: #991b1b !important;
  border-radius: 12px !important;
  padding: 12px 16px !important;
}

/* Breadcrumb */
.woocommerce-breadcrumb {
  font-size: 12px;
  color: #78716c;
  padding: 12px 0 24px;
}
.woocommerce-breadcrumb a {
  color: #57534e;
}
.woocommerce-breadcrumb a:hover { color: #1c1917; }

/* Product gallery thumbnails */
.woocommerce div.product .flex-control-thumbs {
  display: flex;
  gap: 8px;
  list-style: none;
  padding: 12px 0 0;
  margin: 0;
}
.woocommerce div.product .flex-control-thumbs li {
  width: 60px !important;
  margin: 0 !important;
}
.woocommerce div.product .flex-control-thumbs img {
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.6;
  border: 2px solid transparent;
}
.woocommerce div.product .flex-control-thumbs img.flex-active,
.woocommerce div.product .flex-control-thumbs img:hover {
  opacity: 1;
  border-color: #1c1917;
}

/* Onsale badge - posisi dipindah biar tidak nutupi gambar */
.woocommerce ul.products li.product .onsale,
.woocommerce span.onsale {
  position: absolute !important;
  top: 12px !important;
  left: 12px !important;
  right: auto !important;
  background: #f59e0b !important;
  color: #fff !important;
  border-radius: 999px !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  padding: 4px 10px !important;
  min-height: auto !important;
  min-width: auto !important;
  line-height: 1.4 !important;
  z-index: 9;
}

/* Price filter widget */
.widget_price_filter .price_slider_amount {
  font-size: 13px;
  margin-top: 8px;
}
.widget_price_filter .button {
  background: #1c1917 !important;
  color: #fff !important;
  border-radius: 999px !important;
  padding: 6px 14px !important;
  font-size: 12px;
  font-weight: 600;
}
