/*
Theme Name: Comptes Child
Theme URI: https://comptes-books.com/
Description: Tema custom Comptes Book Store — dibangun tanpa page builder (berbasis Storefront).
Author: Comptes
Template: storefront
Version: 0.4.17
Text Domain: comptes-child
*/

/* =========================================================
   VARIABEL & DASAR — palet emas Comptes
   ========================================================= */
:root {
  --c-primary: #b8862b;      /* emas tua — tombol & aksen kuat */
  --c-primary-2: #cf9a35;    /* emas terang — hover */
  --c-accent: #dd9933;       /* emas cerah — badge */
  --c-link: #8a651c;         /* link teks (kontras aman di putih) */
  --c-link-hover: #6f5015;
  --c-dark: #3a2e22;         /* warm espresso — topbar & footer */
  --c-ink: #2e2416;          /* heading */
  --c-text: #4c4438;         /* teks isi */
  --c-muted: #857b6a;        /* teks sekunder */
  --c-bg: #faf7f0;           /* latar alternatif hangat */
  --c-line: #e8e0d2;         /* garis */
  --c-sale: #b23a2e;         /* badge diskon & harga promo */
  --radius: 12px;
  --shadow: 0 1px 2px rgba(58, 46, 34, .06), 0 10px 28px -14px rgba(58, 46, 34, .28);
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--c-text);
  background: #fff;
  margin: 0;
  overflow-x: visible;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* Cegah scroll horizontal di root, bukan di body — body yang overflow-hidden mematikan sticky. */
html { overflow-x: hidden; }

/* Storefront memakai overflow-x:hidden pada .site — itu mematikan position:sticky. */
.site { overflow-x: visible; }

img { max-width: 100%; height: auto; }
a { color: var(--c-link); text-decoration: none; }
a:hover { color: var(--c-link-hover); }
h1, h2, h3, h4 { color: var(--c-ink); line-height: 1.2; margin: 0 0 .4em; }

.ch-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.screen-reader-text {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link:focus { position: fixed; top: 8px; left: 8px; width: auto; height: auto; clip: auto; background: #fff; padding: 10px 16px; z-index: 9999; }

/* =========================================================
   TOMBOL
   ========================================================= */
.ch-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: 9px; border: 2px solid transparent;
  font-weight: 700; font-size: 15.5px; line-height: 1; cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.ch-btn:hover { transform: translateY(-1px); }
.ch-btn--primary { background: var(--c-primary); color: #241a06; }
.ch-btn--primary:hover { background: var(--c-primary-2); color: #241a06; }
.ch-btn--accent { background: var(--c-accent); color: #2b1d04; }
.ch-btn--accent:hover { background: #c9861f; color: #2b1d04; }
.ch-btn--ghost { border-color: var(--c-primary); color: var(--c-link); background: #fff; }
.ch-btn--ghost:hover { background: var(--c-primary); color: #241a06; }

/* =========================================================
   HEADER
   ========================================================= */
/* Baris brand/search sticky terhadap halaman (child langsung #page). */
.ch-topbar { background: var(--c-dark); color: #e9e1d2; font-size: 13.5px; }
.ch-topbar .ch-wrap {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap;
}
.ch-topbar a { color: #e9e1d2; }
.ch-topbar a:hover { color: #fff; }
.ch-topbar__nav { display: flex; gap: 18px; flex-wrap: wrap; }

/* Baris brand/search + navigasi menempel bersama saat scroll. */
.ch-sticky {
  position: sticky; top: 0; z-index: 900;
  background: #fff;
  box-shadow: 0 10px 24px -24px rgba(58, 46, 34, .55);
}
.ch-main { background: #fff; border-bottom: 1px solid var(--c-line); }
.ch-main .ch-wrap {
  display: flex; align-items: center; gap: 26px;
  padding-top: 9px; padding-bottom: 9px;
}
.ch-main .ch-wrap > * { margin-top: 0; margin-bottom: 0; }
.ch-brand { flex: 0 0 auto; display: flex; align-items: center; margin: 0; }
.ch-brand .custom-logo-link { display: block; line-height: 0; margin: 0; }
.ch-brand img { max-height: 46px; width: auto; display: block; }
.ch-site-title { font-weight: 900; font-size: 25px; color: var(--c-primary); letter-spacing: -.02em; }

.ch-search {
  flex: 1 1 auto; display: flex; max-width: 660px; margin: 0;
  border: 2px solid var(--c-primary); border-radius: 999px; overflow: hidden; background: #fff;
}
.ch-search input[type="search"] {
  flex: 1; border: 0; padding: 12px 20px; font-size: 15px; outline: none;
  font-family: inherit; color: var(--c-text); background: transparent; min-width: 0;
}
.ch-search button {
  border: 0; background: var(--c-primary); color: #241a06; padding: 0 22px;
  cursor: pointer; display: flex; align-items: center; transition: background .15s ease;
}
.ch-search button:hover { background: var(--c-primary-2); }

.ch-actions { display: flex; gap: 20px; align-items: center; margin: 0 0 0 auto; }
.ch-action {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: 12px; font-weight: 600; color: var(--c-ink); position: relative; white-space: nowrap;
}
.ch-action:hover { color: var(--c-link); }
.ch-cart-count {
  position: absolute; top: -7px; right: -12px; background: var(--c-accent);
  color: #2b1d04; font-size: 11px; font-weight: 800; border-radius: 999px; padding: 1px 6.5px;
}

.ch-nav { background: #fff; border-bottom: 1px solid var(--c-line); }
.ch-nav--promo { background: var(--c-bg); }
.ch-nav--promo .ch-menu > li > a {
  padding: 6px 14px; font-size: 13px; color: var(--c-link); letter-spacing: .02em;
}
.ch-nav--promo .ch-menu > li > a:hover { background: #f1e8d6; color: var(--c-link-hover); }
.ch-nav--promo .ch-menu > li + li { border-left: 1px solid var(--c-line); }
.ch-menu {
  list-style: none; display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0; margin: 0; padding: 0;
}
.ch-menu > li { position: relative; }
.ch-menu > li > a {
  display: block; padding: 8px 13px; font-weight: 700; font-size: 14px; line-height: 1.25;
  color: var(--c-ink); letter-spacing: .01em; text-transform: uppercase;
  transition: background .12s ease, color .12s ease;
}
.ch-menu > li > a:hover, .ch-menu > li.current-menu-item > a { background: #f7f1e3; color: var(--c-link); }
.ch-menu li ul {
  position: absolute; top: 100%; left: 0; min-width: 230px; background: #fff;
  border: 1px solid var(--c-line); border-radius: 0 0 10px 10px; box-shadow: var(--shadow);
  list-style: none; margin: 0; padding: 8px 0; display: none; z-index: 500;
}
.ch-menu li:hover > ul { display: block; }
.ch-menu li ul li a { display: block; padding: 8px 18px; font-size: 14px; color: var(--c-ink); }
.ch-menu li ul li a:hover { background: #f7f1e3; color: var(--c-link); }

@media (max-width: 1024px) {
  .ch-sticky { position: static; }
  .ch-main .ch-wrap { flex-wrap: wrap; gap: 16px; }
  .ch-search { order: 3; flex-basis: 100%; max-width: none; }
  .ch-menu { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; justify-content: flex-start; }
  .ch-menu > li { flex: 0 0 auto; }
}
@media (max-width: 600px) {
  .ch-brand img { max-height: 44px; }
  .ch-action span { display: none; }
  .ch-topbar__nav { display: none; }
}

/* =========================================================
   FOOTER
   ========================================================= */
.ch-footer { background: var(--c-dark); color: #d9cfbf; margin-top: 72px; }
.ch-footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 36px; padding-top: 56px; padding-bottom: 42px;
}
.ch-fhead {
  color: #fff; font-size: 14px; letter-spacing: .08em; text-transform: uppercase;
  margin: 0 0 16px; font-weight: 800;
}
.ch-footer p { margin: 0 0 10px; font-size: 14.5px; }
.ch-footer a { color: #d9cfbf; }
.ch-footer a:hover { color: #fff; }
.ch-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 14.5px; }
.ch-social { display: flex; gap: 12px; margin-top: 16px; }
.ch-social a {
  display: inline-flex; width: 40px; height: 40px; border-radius: 999px;
  background: rgba(255, 255, 255, .09); align-items: center; justify-content: center;
  transition: background .15s ease, color .15s ease;
}
.ch-social a:hover { background: var(--c-primary-2); color: #241a06; }
.ch-pay img {
  background: #fff; border-radius: 8px; padding: 8px 10px;
  width: auto; max-width: 100%; height: auto; display: block; margin-bottom: 3px;
}
.ch-fcol--pay .ch-fhead { margin-top: 22px; }
.ch-fcol--pay .ch-fhead:first-child { margin-top: 0; }
.ch-pay--delivery img { max-height: 72px; }
.ch-pay--methods img { max-height: 130px; }
.ch-pay--secured img { max-height: 96px; }
.ch-fbottom { border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13.5px; }
.ch-fbottom .ch-wrap { padding-top: 16px; padding-bottom: 16px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

@media (max-width: 960px) { .ch-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .ch-footer-grid { grid-template-columns: 1fr; padding-top: 40px; } }

/* =========================================================
   KONTEN DALAM & WOOCOMMERCE
   ========================================================= */
.site-content { padding-top: 42px; padding-bottom: 20px; }
#categories { scroll-margin-top: 144px; }
.site-content::after { content: ""; display: table; clear: both; } /* clear float Storefront */
.ch-footer { clear: both; }

/* --- Tombol WooCommerce (semua varian) → emas --- */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
.single_add_to_cart_button.button {
  background: var(--c-primary); color: #241a06; font-weight: 700;
  border-radius: 8px; padding: 12px 20px; line-height: 1.2;
  transition: background .15s ease;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover,
.single_add_to_cart_button.button:hover {
  background: var(--c-primary-2); color: #241a06;
}
.woocommerce a.button.alt { background: var(--c-primary); }

/* --- Notices --- */
.woocommerce-message, .woocommerce-info, .woocommerce-error {
  background: #fff; border-top: 3px solid var(--c-primary); border-radius: 0 0 8px 8px;
  padding: 14px 18px; box-shadow: var(--shadow); color: var(--c-text);
}
.woocommerce-error { border-top-color: #b32d2e; }
.woocommerce-message::before, .woocommerce-info::before { color: var(--c-primary); }

/* --- Breadcrumb --- */
.storefront-breadcrumb { margin: 0 0 18px; font-size: 13.5px; color: var(--c-muted); }
.storefront-breadcrumb a { color: var(--c-link); }

/* --- Header halaman (judul arsip/produk) --- */
.woocommerce-products-header .woocommerce-products-header__title,
.page-title, .entry-title { font-size: clamp(24px, 2.8vw, 34px); font-weight: 800; }
.term-description { color: var(--c-muted); max-width: 70ch; }

/* =========================================================
   ARSIP PRODUK (shop & kategori)
   ========================================================= */
.woocommerce ul.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 0 0 28px; padding: 0; }
.woocommerce ul.products::before, .woocommerce ul.products::after { content: none; display: none; }
.woocommerce ul.products li.product {
  width: auto !important; margin: 0 !important; float: none !important;
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; text-align: left;
  padding: 14px; position: relative;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.woocommerce ul.products li.product:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #e6d3a8; }
.woocommerce ul.products li.product img {
  border-radius: 8px; background: #faf8f3; aspect-ratio: 3 / 4; object-fit: contain; width: 100%; height: auto;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: 'Trebuchet MS', 'Segoe UI', Tahoma, 'Helvetica Neue', Arial, sans-serif;
  font-size: 15.5px; font-weight: 500; color: var(--c-ink); padding: 12px 2px 4px;
  min-height: 2.9em; line-height: 1.45; letter-spacing: .005em; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.woocommerce ul.products li.product .price { color: var(--c-link); font-weight: 800; font-size: 16px; margin: 4px 2px 10px; }
.woocommerce ul.products li.product .price del { color: var(--c-muted); font-weight: 400; font-size: 13px; }
.woocommerce ul.products li.product .price ins {
  text-decoration: none; color: var(--c-sale); font-weight: 800; margin-left: 4px;
}
.woocommerce ul.products li.product .button { margin-top: auto; width: 100%; text-align: center; }
.woocommerce ul.products li.product .onsale {
  background: var(--c-sale); color: #fff; border-radius: 6px; padding: 5px 9px;
  font-weight: 800; font-size: 12px; left: 14px; right: auto; top: 14px; min-height: 0;
  line-height: 1.2; box-shadow: 0 4px 10px -4px rgba(178, 58, 46, .6);
}

/* Toolbar arsip: jumlah hasil + urutkan */
.woocommerce-products-header { position: relative; padding-left: 16px; margin-bottom: 18px; }
.woocommerce-products-header::before {
  content: ""; position: absolute; left: 0; top: 4px; bottom: 4px;
  width: 4px; border-radius: 2px; background: var(--c-primary);
}
.woocommerce-products-header__title { margin: 0; }
.term-description { margin: 8px 0 0; }

.site-main > .storefront-sorting:first-of-type {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  background: #fff !important; border: 1px solid var(--c-line) !important; border-radius: 12px;
  padding: 10px 14px !important; margin: 0 0 22px !important;
}
.site-main > .storefront-sorting:first-of-type .woocommerce-result-count { margin: 0; }
.site-main > .storefront-sorting:first-of-type .woocommerce-ordering { margin: 0; }
.site-main > .storefront-sorting:first-of-type .woocommerce-pagination { display: none; }

.site-main > .storefront-sorting:last-of-type {
  background: transparent !important; border: 0 !important; padding: 0 !important;
  margin: 24px 0 40px !important; display: flex; justify-content: center;
}
.site-main > .storefront-sorting:last-of-type .woocommerce-ordering,
.site-main > .storefront-sorting:last-of-type .woocommerce-result-count { display: none; }
.site-main > .storefront-sorting:last-of-type .woocommerce-pagination { display: block; }

.woocommerce-result-count { color: var(--c-muted); font-size: 14px; }
.woocommerce-ordering select {
  border: 1px solid var(--c-line); border-radius: 8px; padding: 10px 14px;
  font-family: inherit; color: var(--c-text); background: #fff;
}

/* Pagination */
.woocommerce-pagination ul { display: flex; gap: 8px; border: 0 !important; margin: 14px 0 40px; padding: 0; }
.woocommerce-pagination ul li { border: 0 !important; margin: 0 !important; }
.woocommerce-pagination ul li a, .woocommerce-pagination ul li span {
  display: block; min-width: 42px; text-align: center; padding: 10px 14px;
  border: 1px solid var(--c-line); border-radius: 8px; background: #fff; color: var(--c-ink); font-weight: 600;
}
.woocommerce-pagination ul li a:hover { border-color: var(--c-primary); color: var(--c-link); }
.woocommerce-pagination ul li span.current { background: var(--c-primary); border-color: var(--c-primary); color: #241a06; }

/* =========================================================
   ARSIP — SIDEBAR KIRI + SIDEBAR CUSTOM
   ========================================================= */
.ch-breadcrumb { grid-column: 1 / -1; grid-row: 1; margin: 0 0 16px; }
.ch-breadcrumb .woocommerce-breadcrumb { margin: 0; font-size: 13.5px; color: var(--c-muted); }
.ch-breadcrumb a { color: var(--c-link); }
.ch-bc-sep { margin: 0 8px; color: var(--c-line); }

@media (min-width: 961px) {
  .woocommerce-shop .site-content .col-full,
  .archive.tax-product_cat .site-content .col-full,
  .archive.tax-product_tag .site-content .col-full {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 32px;
    align-items: start;
  }

  .woocommerce-shop #primary,
  .archive.tax-product_cat #primary,
  .archive.tax-product_tag #primary {
    grid-column: 2;
    grid-row: 2;
    float: none !important;
    width: auto !important;
    margin: 0 !important;
  }

  .woocommerce-shop #secondary,
  .archive.tax-product_cat #secondary,
  .archive.tax-product_tag #secondary {
    grid-column: 1;
    grid-row: 2;
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    position: sticky;
    top: 150px;
    max-height: calc(100vh - 165px);
    overflow-y: auto;
    padding-right: 3px;
    scrollbar-width: thin;
  }
}

@media (max-width: 960px) {
  .woocommerce-shop .site-content .col-full,
  .archive.tax-product_cat .site-content .col-full,
  .archive.tax-product_tag .site-content .col-full {
    display: flex;
    flex-direction: column;
  }

  .woocommerce-shop #primary,
  .archive.tax-product_cat #primary,
  .archive.tax-product_tag #primary {
    order: 1;
    float: none !important;
    width: auto !important;
    margin: 0 !important;
  }

  .woocommerce-shop #secondary,
  .archive.tax-product_cat #secondary,
  .archive.tax-product_tag #secondary {
    order: 2;
    float: none !important;
    width: auto !important;
    margin: 28px 0 0 !important;
    position: static;
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }
}

/* Halaman produk tunggal: full-width, tanpa sidebar kategori. */
body.single-product #secondary { display: none; }
body.single-product #primary.content-area {
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
}

.site-content .col-full > .woocommerce:empty { display: none; }
.site-content .col-full > .woocommerce-notices-wrapper { grid-column: 1 / -1; }

/* Sidebar custom */
.ch-side-card { background: #fff; border: 1px solid var(--c-line); border-radius: 14px; padding: 18px; margin-bottom: 20px; }
.ch-side-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.ch-side-title { font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; margin: 0; color: var(--c-ink); }
.ch-side-all { font-size: 13px; font-weight: 700; }
.ch-side-search { display: flex; border: 1px solid var(--c-line); border-radius: 10px; overflow: hidden; margin-bottom: 14px; background: #fff; }
.ch-side-search input[type="search"] { flex: 1; min-width: 0; border: 0; padding: 10px 12px; font-family: inherit; font-size: 14px; outline: none; }
.ch-side-search button { border: 0; background: var(--c-primary); color: #241a06; padding: 0 14px; cursor: pointer; display: flex; align-items: center; }
.ch-side-search button svg { width: 18px; height: 18px; }
.ch-side-card .widget { background: transparent; border: 0; border-radius: 0; padding: 0; margin: 0; }
.ch-side-help { background: var(--c-bg); }
.ch-side-help b { display: block; font-size: 15px; color: var(--c-ink); margin-bottom: 4px; }
.ch-side-help p { margin: 0 0 10px; font-size: 13.5px; color: var(--c-muted); }
.ch-side-help-link { font-weight: 700; font-size: 13.5px; }

/* IKS menu */
#secondary .iksm-term__inner { background: transparent !important; border-radius: 8px; min-height: 0 !important; }
#secondary .iksm-term__inner:hover { background: #f7f1e3 !important; }
#secondary .iksm-term--current > .iksm-term__inner { background: #f7f1e3 !important; }
#secondary .iksm-term__link {
  display: block; padding: 8px 10px; border-radius: 8px;
  color: var(--c-ink) !important; font-size: 14px !important; font-weight: 600 !important;
  line-height: 1.35 !important;
}
#secondary .iksm-term__inner:hover .iksm-term__link,
#secondary .iksm-term--current > .iksm-term__inner .iksm-term__link { color: var(--c-link) !important; }
#secondary .iksm-terms-tree--level-2 .iksm-term__link { font-size: 13px !important; font-weight: 500 !important; color: var(--c-muted) !important; }
#secondary .iksm-terms-tree--level-2 .iksm-term__inner:hover .iksm-term__link { color: var(--c-link) !important; }
#secondary .iksm-term__toggle { color: var(--c-primary) !important; }
#secondary .iksm-terms-tree--level-1 > .iksm-terms-tree__inner > .iksm-term + .iksm-term {
  border-top: 1px solid var(--c-line); margin-top: 4px; padding-top: 4px;
}

/* =========================================================
   HALAMAN PRODUK (single)
   ========================================================= */
.single-product div.product { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; margin-bottom: 30px; position: relative; }
.single-product div.product::before, .single-product div.product::after { content: none; display: none; }
.single-product div.product > * { grid-column: 1 / -1; }
.single-product div.product > .woocommerce-product-gallery,
.single-product div.product > .summary.entry-summary { grid-column: auto; }
.single-product div.product .woocommerce-product-gallery { width: 100% !important; float: none !important; margin: 0 !important; }
.single-product div.product .woocommerce-product-gallery img { border-radius: var(--radius); }
.single-product div.product .summary.entry-summary { float: none !important; width: auto !important; margin: 0 !important; }
.single-product .product_title {
  font-family: 'Trebuchet MS', 'Segoe UI', Tahoma, 'Helvetica Neue', Arial, sans-serif;
  font-size: clamp(24px, 3vw, 34px); font-weight: 600; line-height: 1.25; letter-spacing: -.01em;
}
.single-product .summary .price { font-size: 26px; font-weight: 800; color: var(--c-link); margin: 8px 0 14px; }
.single-product .summary .price del { color: var(--c-muted); font-size: 16px; font-weight: 400; }
.single-product .summary .price ins {
  text-decoration: none; color: var(--c-sale); font-weight: 800; margin-left: 6px;
}
.woocommerce-product-details__short-description { color: var(--c-text); }
.woocommerce-product-details__short-description ul { padding-left: 20px; }
form.cart { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 18px 0; }
form.cart .quantity input { width: 84px; border: 1px solid var(--c-line); border-radius: 8px; padding: 12px; font-family: inherit; }
.product_meta { font-size: 13px; color: var(--c-muted); border-top: 1px solid var(--c-line); padding-top: 14px; }
.product_meta a { color: var(--c-link); }

.woocommerce-tabs { clear: both; margin-top: 30px; }
.single-product .woocommerce-tabs ul.tabs {
  width: 100% !important; float: none !important; margin-left: 0 !important;
}
.single-product .woocommerce-tabs ul.tabs li {
  width: auto !important; float: none !important;
}
.single-product .woocommerce-tabs .panel {
  width: 100% !important; float: none !important; margin-top: 0 !important;
}
.woocommerce-tabs ul.tabs { display: flex; gap: 6px; padding: 0 0 0 6px; margin-bottom: 0; border-bottom: 1px solid var(--c-line); }
.woocommerce-tabs ul.tabs::before, .woocommerce-tabs ul.tabs::after { content: none; }
.woocommerce-tabs ul.tabs li { background: transparent !important; border: 0 !important; border-radius: 0 !important; margin: 0 !important; padding: 0 !important; box-shadow: none !important; }
.woocommerce-tabs ul.tabs li::before, .woocommerce-tabs ul.tabs li::after { content: none !important; }
.woocommerce-tabs ul.tabs li a { padding: 12px 18px; font-weight: 700; color: var(--c-ink); border: 1px solid transparent; border-bottom: 0; border-radius: 10px 10px 0 0; display: block; }
.woocommerce-tabs ul.tabs li.active a { background: #fff; border-color: var(--c-line); color: var(--c-link); }
.woocommerce-tabs .panel { background: #fff; border: 1px solid var(--c-line); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); padding: 22px; }

.related.products, .upsells.products { margin-top: 46px; }
.related.products > h2, .upsells.products > h2 { font-size: 24px; font-weight: 800; margin-bottom: 18px; }

/* Prev/next produk: bar bawah, bukan thumbnail fixed di tepi layar. */
.storefront-product-pagination { display: flex; gap: 14px; margin-top: 30px; }
.storefront-product-pagination a {
  position: static; width: 50%; box-shadow: none; display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1px solid var(--c-line); border-radius: 12px; padding: 12px;
  transform: none !important;
}
.storefront-product-pagination a[rel="prev"] { left: auto !important; flex-direction: row; }
.storefront-product-pagination a[rel="next"] { right: auto !important; flex-direction: row-reverse; text-align: right; }
.storefront-product-pagination a img { max-width: 56px; border-radius: 6px; margin: 0 !important; }
.storefront-product-pagination__title { font-size: 13.5px; font-weight: 600; color: var(--c-ink); }

@media (max-width: 700px) {
  .storefront-product-pagination { flex-direction: column; }
  .storefront-product-pagination a { width: 100%; }
}

@media (max-width: 960px) {
  .single-product div.product { grid-template-columns: 1fr; gap: 26px; }
  .woocommerce ul.products { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}

/* =========================================================
   CART (klasik)
   ========================================================= */
.woocommerce-cart table.shop_table {
  border: 1px solid var(--c-line); border-radius: 12px; overflow: hidden;
  border-collapse: separate; border-spacing: 0; background: #fff;
}
.woocommerce-cart table.shop_table th { background: var(--c-bg); font-weight: 700; color: var(--c-ink); }
.woocommerce-cart table.shop_table td, .woocommerce-cart table.shop_table th { padding: 14px 16px; border-bottom: 1px solid var(--c-line); }
.woocommerce-cart table.shop_table img { border-radius: 8px; max-width: 72px; height: auto; }
.woocommerce-cart .coupon input.input-text { border: 1px solid var(--c-line); border-radius: 8px; padding: 12px; font-family: inherit; }
.woocommerce-cart .cart_totals h2 { font-size: 20px; font-weight: 800; }
.woocommerce-cart .cart-collaterals { margin-top: 26px; }
.woocommerce-cart .cart_totals table.shop_table { border: 1px solid var(--c-line); }
.woocommerce-cart .wc-proceed-to-checkout { padding-top: 10px; }
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button { display: block; text-align: center; font-size: 16px; padding: 15px; }

/* =========================================================
   CHECKOUT (blocks)
   ========================================================= */
.wp-block-woocommerce-checkout .wc-block-components-text-input input,
.wp-block-woocommerce-checkout .wc-block-components-textarea,
.wp-block-woocommerce-checkout .wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input,
.wc-block-components-text-input input, .wc-block-components-textarea {
  border: 1px solid var(--c-line) !important; border-radius: 8px !important;
  padding: 12px 14px !important; font-family: inherit; background: #fff;
}
.wc-block-components-text-input input:focus, .wc-block-components-textarea:focus { border-color: var(--c-primary) !important; outline: none; }
.wc-block-components-button:not(.is-link) {
  background: var(--c-primary) !important; color: #241a06 !important; border-radius: 8px !important;
  font-weight: 700 !important; padding: 14px 22px;
}
.wc-block-components-button:not(.is-link):hover { background: var(--c-primary-2) !important; }
.wc-block-components-panel__button { color: var(--c-link); font-weight: 600; }
.wc-block-components-order-summary, .wc-block-components-totals-wrapper, .wc-block-components-sidebar-layout .wc-block-components-sidebar { border-color: var(--c-line) !important; }
.wc-block-components-totals-item__value { color: var(--c-link); font-weight: 700; }
.woocommerce-form-login { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 22px; }
.woocommerce-form-login input.input-text { border: 1px solid var(--c-line); border-radius: 8px; padding: 12px; }
.wc-block-checkout__payment-method { border-color: var(--c-line) !important; }

/* =========================================================
   MY ACCOUNT (potongan klasik/block)
   ========================================================= */
/* Layout akun: grid 2 kolom (nav 240px + konten), ganti float Storefront yang bikin tinggi 0 */
.woocommerce-account .woocommerce:has(.woocommerce-MyAccount-navigation) {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}
.woocommerce-account .woocommerce:has(.woocommerce-MyAccount-navigation)::after { content: none; }
.woocommerce-MyAccount-navigation,
.woocommerce-MyAccount-content { float: none !important; width: 100% !important; }
.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a { background: var(--c-bg); color: var(--c-link); font-weight: 700; }
@media (max-width: 800px) {
  .woocommerce-account .woocommerce:has(.woocommerce-MyAccount-navigation) { grid-template-columns: 1fr; gap: 20px; }
}
.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }

/* Alamat: 2 kartu sejajar */
.woocommerce-account .woocommerce-Addresses {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  float: none !important; width: 100% !important;
}
.woocommerce-account .woocommerce-Addresses .woocommerce-Address {
  float: none !important; width: 100% !important;
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 18px 20px;
}
.woocommerce-account .woocommerce-Addresses .woocommerce-Address header h3 { font-size: 17px; margin-bottom: 8px; }
.woocommerce-account .woocommerce-Addresses .woocommerce-Address address { font-style: normal; color: var(--c-text); line-height: 1.6; }
.woocommerce-account .woocommerce-Addresses .woocommerce-Address header a { font-weight: 600; }
@media (max-width: 800px) {
  .woocommerce-account .woocommerce-Addresses { grid-template-columns: 1fr; }
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li a { display: block; padding: 10px 14px; border-radius: 8px; color: var(--c-ink); font-weight: 600; }
.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover { background: #f7f1e3; color: var(--c-link); }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select {
  border: 1px solid var(--c-line); border-radius: 8px; padding: 12px 14px; font-family: inherit;
}
.woocommerce form .form-row label { font-weight: 600; color: var(--c-ink); font-size: 14px; }
.woocommerce-account .woocommerce { max-width: 1100px; }

/* =========================================================
   HALAMAN TANPA SIDEBAR (cart, checkout, my-account)
   ========================================================= */
body.woocommerce-cart #secondary,
body.woocommerce-checkout #secondary,
body.woocommerce-account #secondary { display: none; }
body.woocommerce-cart .content-area,
body.woocommerce-checkout .content-area,
body.woocommerce-account .content-area { width: 100% !important; float: none !important; margin: 0 !important; }
body.woocommerce-cart .site-main,
body.woocommerce-checkout .site-main,
body.woocommerce-account .site-main { padding-right: 0; }

/* Tombol place order checkout klasik */
.woocommerce-checkout #payment .place-order .button,
.woocommerce-checkout #place-order {
  background: var(--c-primary) !important;
  color: #241a06 !important;
  opacity: 1 !important;
  border-radius: 10px !important;
  font-weight: 800 !important;
  padding: 14px 20px !important;
}
.woocommerce-checkout #payment .place-order .button:hover,
.woocommerce-checkout #place-order:hover {
  background: var(--c-primary-2) !important;
  color: #241a06 !important;
}
.woocommerce-checkout #payment .place-order .button:disabled,
.woocommerce-checkout #place-order:disabled {
  opacity: .5 !important;
  cursor: not-allowed;
}

/* Sembunyikan intro login di checkout untuk member yang sudah login */
body.logged-in.page-id-26 .entry-content > p:nth-of-type(-n+3),
body.logged-in.page-id-26 .entry-content > a[href="#login"] { display: none !important; }

/* End WooCommerce */

/* =========================================================
   HALAMAN STATIS (konten klasik)
   ========================================================= */
.entry-content { max-width: 960px; }
.entry-content h2 { font-size: 26px; margin: 28px 0 12px; }
.entry-content h3 { font-size: 21px; margin: 24px 0 10px; }
.entry-content p, .entry-content li { line-height: 1.65; }
.entry-content img { border-radius: var(--radius); }
.entry-content ul, .entry-content ol { padding-left: 22px; }
.entry-content h2[style*="center"], .entry-content p[style*="center"] { text-align: center; }

a[role="button"], .entry-content a[role=button] {
  display: inline-flex; align-items: center; gap: 8px; margin: 6px 8px 6px 0;
  padding: 12px 22px; border-radius: 9px; background: var(--c-primary); color: #241a06;
  font-weight: 700; border: 2px solid transparent; transition: background .15s ease, transform .15s ease;
}
a[role="button"]:hover, .entry-content a[role=button]:hover { background: var(--c-primary-2); color: #241a06; transform: translateY(-1px); }

/* =========================================================
   HALAMAN 404
   ========================================================= */
.ch-404 { max-width: 640px; margin: 30px auto 60px; text-align: center; }
.ch-404 h1 { font-size: clamp(26px, 3vw, 36px); }
.ch-404 p { color: var(--c-muted); margin-bottom: 22px; }
.ch-404-search { margin: 0 auto 26px; max-width: 520px; }
.ch-404-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* =========================================================
   SINGLE PRODUCT — PDP ala Tokopedia
   ========================================================= */
body.single-product { background: var(--c-bg); }
body.single-product .site-content { padding-top: 24px; background: var(--c-bg); }
.single-product .ch-breadcrumb { margin: 0 0 14px; }

.single-product div.product {
  grid-template-columns: minmax(0, 440px) minmax(0, 1fr);
  gap: 30px;
  align-items: start;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 28px;
  box-shadow: 0 1px 2px rgba(58, 46, 34, .04);
}

.single-product .woocommerce-product-gallery { position: relative; }
.single-product div.product > .onsale { display: none; }

/* Tanpa tombol zoom: klik gambar membuka PhotoSwipe (lightbox). */
.single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__trigger {
  display: none !important;
}
.single-product .woocommerce-product-gallery__image a { cursor: zoom-in; }
.single-product .woocommerce-product-gallery__wrapper,
.single-product .woocommerce-product-gallery__image,
.single-product .woocommerce-product-gallery__image a { width: 100%; display: block; }
.single-product .woocommerce-product-gallery__image img {
  width: auto; max-width: 100%; height: auto; display: block; margin: 0 auto;
}
.single-product .woocommerce-product-gallery__image img {
  border-radius: 12px; border: 1px solid var(--c-line); background: #faf8f3;
}
.single-product .woocommerce-product-gallery .flex-control-thumbs { display: flex; gap: 8px; margin-top: 10px; padding: 0; }
.single-product .woocommerce-product-gallery .flex-control-thumbs li { width: 58px; margin: 0; float: none; }
.single-product .woocommerce-product-gallery .flex-control-thumbs img { border-radius: 6px; border: 1px solid var(--c-line); }
.single-product .woocommerce-product-gallery .onsale {
  background: var(--c-sale); color: #fff; border-radius: 6px; padding: 5px 10px;
  font-weight: 800; font-size: 12px; left: 12px; top: 12px; min-height: 0; line-height: 1.2; z-index: 3;
}

.single-product .summary.entry-summary {
  border-left: 1px solid var(--c-line);
  padding-left: 28px;
  display: flex; flex-direction: column; gap: 12px;
}
.single-product .summary .product_title {
  font-size: clamp(21px, 2.4vw, 28px); font-weight: 600; line-height: 1.3;
  margin: 0; letter-spacing: -.01em;
}
.single-product .summary .ch-pdp-sold { font-size: 12.5px; color: var(--c-muted); font-weight: 600; }
.single-product .summary .price {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px;
  margin: 0; font-size: 30px; font-weight: 800; color: var(--c-link);
}
.single-product .summary .price del { font-size: 15px; font-weight: 400; color: var(--c-muted); }
.single-product .summary .price ins {
  font-size: 30px; font-weight: 800; color: var(--c-sale); text-decoration: none; margin-left: 0;
}
.single-product .ch-pdp-discount {
  display: inline-flex; align-items: center; background: var(--c-sale); color: #fff;
  font-size: 12.5px; font-weight: 800; border-radius: 6px; padding: 4px 8px; line-height: 1.2;
}
.single-product .summary .woocommerce-product-details__short-description {
  margin: 0; color: var(--c-text); font-size: 14px; line-height: 1.65;
}
.single-product .summary .woocommerce-product-details__short-description p:first-child { margin-top: 0; }
.single-product .summary .woocommerce-product-details__short-description p:last-child { margin-bottom: 0; }
.single-product .summary p.stock {
  display: inline-flex; align-items: center; width: max-content; max-width: 100%;
  padding: 5px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700; margin: 0;
}
.single-product .summary p.stock.in-stock { color: #1a7f37; background: #eaf7ee; }
.single-product .summary p.stock.out-of-stock { color: var(--c-sale); background: #fdecea; }

/* Form beli */
.single-product form.cart:not(.variations_form) {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 4px 0 0;
}
.single-product form.cart .quantity input {
  width: 74px; height: 46px; border: 1px solid var(--c-line); border-radius: 10px;
  padding: 0 10px; font-family: inherit; font-size: 15px; text-align: center;
}
.single-product form.cart .single_add_to_cart_button {
  flex: 1 1 170px; height: 46px; border: 2px solid var(--c-primary);
  background: #fff; color: var(--c-link); border-radius: 10px;
  font-weight: 800; font-size: 14px; padding: 0 16px;
}
.single-product form.cart .single_add_to_cart_button:hover { background: var(--c-primary); color: #241a06; }
.single-product form.cart .ch-buy-now {
  flex: 1 1 170px; height: 46px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--c-primary); color: #241a06; border-radius: 10px;
  font-weight: 800; font-size: 14px; padding: 0 16px;
}
.single-product form.cart .ch-buy-now:hover { background: var(--c-primary-2); color: #241a06; }
@media (min-width: 601px) {
  .single-product form.cart:not(.variations_form) { flex-wrap: wrap; }
  .single-product form.cart .quantity input { width: 74px; }
  .single-product form.cart .single_add_to_cart_button {
    flex: 1 1 170px; font-size: 14px; padding: 0 16px;
  }
  .single-product form.cart .ch-buy-now {
    flex: 1 1 100%; font-size: 14px; padding: 0 16px;
  }
}
.single-product .ch-oos-button {
  width: 100%; height: 46px; background: #ece7df; color: var(--c-muted);
  border: 0; border-radius: 10px; font-weight: 800; cursor: not-allowed;
}

/* Form varian */
.single-product form.variations_form { display: block; margin: 4px 0 0; }
.single-product form.variations_form table.variations { width: 100%; margin: 0 0 12px; border: 0; }
.single-product form.variations_form table.variations th,
.single-product form.variations_form table.variations td { padding: 6px 0; border: 0; background: transparent; }
.single-product form.variations_form table.variations th.label { font-size: 13px; color: var(--c-muted); font-weight: 600; text-align: left; }
.single-product form.variations_form table.variations select {
  width: 100%; min-height: 44px; border: 1px solid var(--c-line); border-radius: 10px;
  padding: 0 12px; font-family: inherit; font-size: 14px; background: #fff; color: var(--c-text);
}
.single-product form.variations_form .reset_variations { font-size: 12.5px; }
.single-product .woocommerce-variation-add-to-cart {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 8px;
}
.single-product .woocommerce-variation-add-to-cart .quantity input {
  width: 74px; height: 46px; border: 1px solid var(--c-line); border-radius: 10px;
  padding: 0 10px; font-family: inherit; font-size: 15px; text-align: center;
}
.single-product .woocommerce-variation-add-to-cart .single_add_to_cart_button {
  flex: 1 1 180px; height: 46px; border: 2px solid var(--c-primary);
  background: #fff; color: var(--c-link); border-radius: 10px;
  font-weight: 800; font-size: 14px; padding: 0 16px;
}
.single-product .woocommerce-variation-add-to-cart .single_add_to_cart_button:hover { background: var(--c-primary); color: #241a06; }

/* Kartu toko + benefit */
.single-product .ch-pdp-store {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--c-line); border-radius: 12px; padding: 12px 14px; background: #fff;
}
.single-product .ch-pdp-store-avatar {
  width: 44px; height: 44px; border-radius: 50%; background: var(--c-primary);
  color: #241a06; font-weight: 900; font-size: 20px;
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
.single-product .ch-pdp-store-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.single-product .ch-pdp-store-info b { font-size: 14px; color: var(--c-ink); }
.single-product .ch-pdp-store-info span { font-size: 12.5px; color: var(--c-muted); }
.single-product .ch-pdp-store-chat {
  margin-left: auto; border: 1px solid var(--c-primary); color: var(--c-link);
  border-radius: 8px; padding: 7px 13px; font-weight: 700; font-size: 12.5px; white-space: nowrap;
}
.single-product .ch-pdp-store-chat:hover { background: var(--c-primary); color: #241a06; }
.single-product .ch-pdp-perks {
  display: grid; gap: 10px; border: 1px solid var(--c-line); border-radius: 12px;
  padding: 14px 16px; background: var(--c-bg);
}
.single-product .ch-pdp-perk {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 13.5px; line-height: 1.45; color: var(--c-text);
}
.single-product .ch-pdp-perk svg { width: 18px; height: 18px; color: var(--c-primary); flex: 0 0 auto; margin-top: 1px; }

/* Pesan member discount */
.single-product .summary .woocommerce-info.wc-memberships-member-discount-message {
  background: var(--c-bg); border: 1px dashed var(--c-primary); border-radius: 10px;
  padding: 10px 14px; font-size: 13px; color: var(--c-text); margin: 0; box-shadow: none;
}
.single-product .summary .woocommerce-info.wc-memberships-member-discount-message::before { display: none; }

/* Meta dipindah ke Detail Produk */
.single-product .summary .product_meta { display: none; }

/* Tabs, detail, related */
.single-product .woocommerce-tabs { border-top: 1px solid var(--c-line); padding-top: 22px; margin-top: 6px; }
.single-product .woocommerce-tabs ul.tabs { margin: 0; padding: 0 0 0 2px; }
.single-product .woocommerce-tabs ul.tabs li a { padding: 11px 16px; font-size: 14px; }
.single-product .woocommerce-tabs .panel {
  border: 0; border-radius: 0; background: transparent; padding: 18px 0 0;
}
.single-product .ch-pdp-details { border-top: 1px solid var(--c-line); padding-top: 22px; margin-top: 6px; }
.single-product .ch-pdp-details h2 { font-size: 20px; font-weight: 800; margin: 0 0 14px; }
.single-product .ch-pdp-details dl {
  display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 10px 20px; margin: 0;
}
.single-product .ch-pdp-details dl > div { display: contents; }
.single-product .ch-pdp-details dt { color: var(--c-muted); font-size: 13.5px; }
.single-product .ch-pdp-details dd { margin: 0; color: var(--c-ink); font-size: 13.5px; font-weight: 600; }
.single-product .related.products { border-top: 1px solid var(--c-line); padding-top: 22px; margin-top: 6px; }
.single-product .storefront-product-pagination { border-top: 1px solid var(--c-line); padding-top: 22px; margin-top: 6px; }

@media (max-width: 960px) {
  body.single-product .site-content { padding-top: 16px; }
  .single-product div.product { grid-template-columns: 1fr; gap: 22px; padding: 16px; }
  .single-product .summary.entry-summary { border-left: 0; padding-left: 0; }
  .single-product .ch-pdp-details dl { grid-template-columns: 130px minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .single-product div.product { padding: 14px; border-radius: 12px; }
  .single-product .summary .price,
  .single-product .summary .price ins { font-size: 26px; }
  .single-product form.cart .single_add_to_cart_button,
  .single-product form.cart .ch-buy-now { flex-basis: 100%; }
  .single-product .ch-pdp-store { flex-wrap: wrap; }
  .single-product .ch-pdp-store-chat { margin-left: 0; }
}

/* =========================================================
   HALAMAN RAFFLES / PRE-ORDER (tanpa Elementor)
   ========================================================= */
.comptes-raffles-page .site-main,
.comptes-raffles-page .entry-content { max-width: 1120px; margin-left: auto; margin-right: auto; }
.comptes-raffles-page .content-area { width: 100% !important; float: none !important; margin: 0 !important; }
.comptes-raffles-page #secondary { display: none !important; }
.comptes-raffles-page .entry-content { padding-right: 0; }
.comptes-raffles-page .entry-title {
  text-align: center; font-size: clamp(28px, 4vw, 40px); font-weight: 800; margin: 0 0 18px;
}

.ch-raffles-hero {
  background: #fff; border: 1px solid var(--c-line); border-radius: 16px;
  padding: 26px 28px; margin: 0 0 20px; box-shadow: 0 1px 2px rgba(58, 46, 34, .04);
}
.ch-raffles-kicker {
  display: inline-block; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--c-link); font-weight: 800; margin-bottom: 4px;
}
.ch-raffles-hero h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; line-height: 1.2; margin: 4px 0 8px; }
.ch-raffles-hero p { color: var(--c-muted); font-size: 15.5px; line-height: 1.65; margin: 0; max-width: 760px; }
.ch-raffles-back { margin: 0 0 14px; font-size: 14px; }
.ch-raffles-back a { color: var(--c-link); font-weight: 700; }

.ch-raffles-cards {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0 0 20px;
}
.ch-raffles-card {
  display: flex; flex-direction: column; gap: 7px; min-height: 190px; padding: 22px;
  background: #fff; border: 1px solid var(--c-line); border-radius: 14px;
  color: var(--c-ink); text-decoration: none;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.ch-raffles-card:hover {
  transform: translateY(-2px); border-color: var(--c-primary);
  box-shadow: 0 10px 26px rgba(58, 46, 34, .08); color: var(--c-ink);
}
.ch-raffles-card strong { font-size: 20px; font-weight: 800; line-height: 1.25; }
.ch-raffles-card > span:not(.ch-raffles-kicker):not(.ch-raffles-arrow) {
  color: var(--c-muted); font-size: 14px; line-height: 1.55;
}
.ch-raffles-card .ch-raffles-arrow { margin-top: auto; color: var(--c-link); font-weight: 800; font-size: 14px; }

.ch-raffles-cta {
  background: #fff; border: 1px solid var(--c-line); border-radius: 16px;
  padding: 24px 26px; margin: 0 0 20px;
}
.ch-raffles-cta h3 { margin: 0 0 6px; font-size: 21px; font-weight: 800; }
.ch-raffles-cta p { margin: 0 0 14px; color: var(--c-muted); line-height: 1.65; }
.ch-raffles-cta a[role="button"] { margin-right: 8px; margin-top: 4px; }
.ch-raffles-quick p { margin: 0; }
.ch-raffles-quick a { color: var(--c-link); font-weight: 700; }

.ch-raffles-note {
  display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 24px;
  align-items: center; background: #fff; border: 1px solid var(--c-line);
  border-radius: 16px; padding: 20px; margin: 0 0 20px;
}
.ch-raffles-note img { width: 100%; height: auto; border-radius: 12px; display: block; }
.ch-raffles-note h3 { margin: 0 0 6px; font-size: 21px; font-weight: 800; }
.ch-raffles-note p { color: var(--c-muted); line-height: 1.65; }

.ch-vanda-hero {
  display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 1fr); gap: 28px;
  align-items: center; background: #fff; border: 1px solid var(--c-line);
  border-radius: 16px; padding: 24px; margin: 0 0 22px;
}
.ch-vanda-hero img {
  width: 100%; height: auto; max-height: 420px; object-fit: contain;
  border-radius: 12px; background: #f7f1e3;
}
.ch-vanda-hero h2 { font-size: clamp(26px, 3vw, 38px); font-weight: 800; margin: 4px 0 8px; }
.ch-vanda-hero p { color: var(--c-muted); line-height: 1.65; }
.ch-raffles-section-title { font-size: 23px; font-weight: 800; margin: 24px 0 14px; }

.ch-raffles-cats ul.products,
.comptes-raffles-page .woocommerce ul.products {
  display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px; margin: 0 0 22px !important; padding: 0; list-style: none;
}
.ch-raffles-cats ul.products li.product-category,
.comptes-raffles-page .woocommerce ul.products li.product {
  width: auto !important; float: none !important; margin: 0 !important;
}
.ch-raffles-cats ul.products li.product-category {
  background: #fff; border: 1px solid var(--c-line); border-radius: 14px; padding: 12px;
}
.ch-raffles-cats ul.products li.product-category img {
  width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 10px; margin-bottom: 10px;
}
.comptes-raffles-page .woocommerce ul.products li.product .woocommerce-loop-product__title,
.comptes-raffles-page .woocommerce ul.products li.product h2 {
  font-size: 15px !important; font-weight: 700 !important; line-height: 1.45 !important;
  color: var(--c-ink) !important; margin: 0 0 6px !important;
}
.comptes-raffles-page .ch-raffles-cats ul.products li.product-category h2.woocommerce-loop-category__title {
  font-size: 17px !important; font-weight: 800 !important; line-height: 1.3 !important;
}
.ch-raffles-cats .woocommerce-loop-category__title .count { color: var(--c-muted); font-weight: 500; }

.comptes-raffles-page .wc-memberships-restriction-message {
  max-width: 760px; margin: 28px auto; background: #fff; border: 1px solid var(--c-line);
  border-left: 5px solid var(--c-primary); border-radius: 14px; padding: 24px 26px;
  box-shadow: 0 8px 24px rgba(58, 46, 34, .06); color: var(--c-ink);
  font-size: 15px; line-height: 1.7;
}
.comptes-raffles-page .wc-memberships-restriction-message::before { display: none !important; }
.comptes-raffles-page .wc-memberships-restriction-message a {
  color: var(--c-link) !important; font-weight: 800; text-decoration: underline;
  display: inline !important; padding: 0 !important; margin: 0 !important;
}
.comptes-raffles-page .wc-memberships-restriction-message a:hover { color: var(--c-link-hover) !important; }

@media (max-width: 960px) {
  .ch-raffles-cards { grid-template-columns: 1fr; }
  .ch-raffles-note, .ch-vanda-hero { grid-template-columns: 1fr; }
  .ch-raffles-cats ul.products,
  .comptes-raffles-page .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .comptes-raffles-page .site-main { padding-left: 14px; padding-right: 14px; }
  .ch-raffles-cats ul.products,
  .comptes-raffles-page .woocommerce ul.products { grid-template-columns: 1fr; }
  .ch-raffles-hero, .ch-raffles-cta, .ch-raffles-note, .ch-vanda-hero { padding: 18px; }
}

/* =========================================================
   MY ACCOUNT / LOGIN (custom, tanpa plugin)
   ========================================================= */
.woocommerce-account:not(.logged-in) .entry-title {
  text-align: center; font-size: clamp(28px, 4vw, 40px); font-weight: 800; margin: 0 0 18px;
}
.ch-account-page { max-width: 960px; margin: 0 auto; }
.ch-account-benefits {
  max-width: 820px; margin: 0 auto 24px; background: #fff; border: 1px solid var(--c-line);
  border-radius: 16px; padding: 24px 28px; box-shadow: 0 1px 2px rgba(58, 46, 34, .04);
}
.ch-account-kicker {
  display: inline-block; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--c-link); font-weight: 800; margin: 0 0 4px;
}
.ch-account-benefits h2 { text-align: center; font-size: 24px; font-weight: 800; margin: 0 0 12px; }
.ch-account-benefits ol { margin: 0; padding-left: 22px; color: var(--c-muted); line-height: 1.7; }
body.logged-in .ch-account-benefits { display: none !important; }

.ch-auth-wrap { max-width: 460px; margin: 0 auto; display: grid; gap: 20px; }
.ch-auth-card {
  background: #fff; border: 1px solid var(--c-line); border-radius: 16px; padding: 26px;
  box-shadow: 0 8px 24px rgba(58, 46, 34, .06); scroll-margin-top: 160px;
}
.ch-auth-head h2 { font-size: 26px; font-weight: 800; line-height: 1.2; margin: 4px 0 8px; }
.ch-auth-head p:not(.ch-account-kicker) { color: var(--c-muted); font-size: 14.5px; line-height: 1.6; margin: 0 0 18px; }
.ch-auth-field { margin: 0 0 14px !important; }
.ch-auth-field label { display: block; font-size: 13.5px; font-weight: 700; color: var(--c-ink); margin: 0 0 6px; }
.ch-auth-card .input-text {
  width: 100% !important; box-sizing: border-box; border: 1px solid var(--c-line) !important;
  border-radius: 10px !important; padding: 12px 14px !important; font-size: 15px !important;
  background: #fff !important; color: var(--c-ink);
}
.ch-auth-card .input-text:focus {
  border-color: var(--c-primary) !important; outline: none; box-shadow: 0 0 0 3px rgba(184, 134, 43, .15);
}
.ch-auth-row {
  display: flex; gap: 12px; align-items: center; justify-content: space-between;
  flex-wrap: wrap; margin: 2px 0 16px; font-size: 13.5px;
}
.ch-auth-row label { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: var(--c-ink); }
.ch-auth-row input[type="checkbox"] { accent-color: var(--c-primary); }
.ch-auth-lost { color: var(--c-link) !important; font-weight: 700; }
.ch-auth-submit {
  display: block; width: 100%; background: var(--c-primary) !important; color: #241a06 !important;
  border: 0 !important; border-radius: 10px !important; padding: 13px 18px !important;
  font-weight: 800 !important; font-size: 15px !important; line-height: 1.2; cursor: pointer; margin-top: 4px;
}
.ch-auth-submit:hover { background: var(--c-primary-2) !important; color: #241a06 !important; }
.ch-auth-switch { text-align: center; margin: 16px 0 0; font-size: 13.5px; color: var(--c-muted); }
.ch-auth-switch a { color: var(--c-link); font-weight: 700; }
.ch-auth-note { color: var(--c-muted); font-size: 13.5px; line-height: 1.6; }

@media (max-width: 600px) {
  .ch-auth-card { padding: 20px; }
  .ch-auth-head h2 { font-size: 23px; }
  .ch-account-benefits { padding: 20px; }
}

/* =========================================================
   MOBILE APP LAYOUT (app bar, drawer, bottom nav, PDP bar)
   ========================================================= */
.ch-mobile-bar,
.ch-mobile-search-row,
.ch-mobile-drawer,
.ch-bottom-nav,
.ch-pdp-bar { display: none; }

@media (max-width: 1024px) {
  .ch-topbar,
  .ch-main,
  .ch-nav { display: none !important; }

  .ch-sticky {
    position: sticky; top: 0; z-index: 900;
    background: #fff; box-shadow: 0 10px 24px -24px rgba(58, 46, 34, .55);
  }
  body.admin-bar .ch-sticky { top: 32px; }

  .ch-mobile-bar {
    display: flex; align-items: center; gap: 8px;
    min-height: 56px; padding: 7px 10px; background: #fff;
    border-bottom: 1px solid var(--c-line);
  }
  .ch-mobile-toggle {
    width: 42px; height: 42px; padding: 9px; border: 0; border-radius: 10px;
    background: transparent; display: flex; flex-direction: column; justify-content: center;
    gap: 5px; cursor: pointer; flex: 0 0 auto;
  }
  .ch-mobile-toggle span { display: block; height: 2px; width: 100%; background: var(--c-ink); border-radius: 2px; }
  .ch-mobile-toggle:active { background: #f7f1e3; }

  .ch-mobile-logo { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; min-width: 0; }
  .ch-mobile-logo .custom-logo-link { display: block; line-height: 0; }
  .ch-mobile-logo img { max-height: 38px; width: auto; max-width: 180px; display: block; }
  .ch-mobile-site-title { font-weight: 900; font-size: 22px; color: var(--c-primary); letter-spacing: -.02em; }

  .ch-mobile-cart {
    width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center;
    position: relative; color: var(--c-ink); border-radius: 10px;
  }
  .ch-mobile-cart svg { width: 24px; height: 24px; }
  .ch-mobile-cart-count {
    position: absolute; top: 1px; right: 0; min-width: 17px; height: 17px; padding: 0 4px;
    border-radius: 999px; background: var(--c-accent); color: #2b1d04;
    font-size: 10px; font-weight: 800; line-height: 1; display: grid; place-items: center;
  }

  .ch-mobile-search-row { display: block; padding: 0 12px 10px; background: #fff; border-bottom: 1px solid var(--c-line); }
  .ch-mobile-search {
    display: flex; align-items: center; overflow: hidden; background: #fff;
    border: 2px solid var(--c-primary); border-radius: 999px;
  }
  .ch-mobile-search input[type="search"] {
    flex: 1; min-width: 0; border: 0; outline: none; background: transparent;
    padding: 10px 14px; font-size: 16px; color: var(--c-text); font-family: inherit;
  }
  .ch-mobile-search button {
    border: 0; background: var(--c-primary); color: #241a06; height: 42px;
    padding: 0 16px; display: grid; place-items: center; cursor: pointer;
  }
  .ch-mobile-search button svg { width: 20px; height: 20px; }

  .ch-mobile-drawer {
    display: block; position: fixed; inset: 0; z-index: 100000;
    visibility: hidden; opacity: 0; pointer-events: none;
    transition: opacity .2s ease, visibility .2s ease;
  }
  .ch-mobile-drawer.is-open { visibility: visible; opacity: 1; pointer-events: auto; }
  .ch-drawer-overlay { position: absolute; inset: 0; background: rgba(20, 16, 10, .45); }
  .ch-drawer-panel {
    position: absolute; top: 0; left: 0; bottom: 0; width: min(86vw, 360px);
    background: #fff; display: flex; flex-direction: column;
    transform: translateX(-100%); transition: transform .24s ease;
    box-shadow: 18px 0 40px -20px rgba(0, 0, 0, .4);
  }
  .ch-mobile-drawer.is-open .ch-drawer-panel { transform: none; }
  .ch-drawer-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 13px 16px; border-bottom: 1px solid var(--c-line);
  }
  .ch-drawer-title { font-size: 18px; font-weight: 800; }
  .ch-drawer-close {
    width: 40px; height: 40px; border: 0; border-radius: 10px; background: #f7f1e3;
    display: grid; place-items: center; color: var(--c-ink); cursor: pointer;
  }
  .ch-drawer-close svg { width: 20px; height: 20px; }
  .ch-drawer-scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; }
  .ch-drawer-search { padding: 14px 16px 4px; }
  .ch-drawer-search .ch-mobile-search { border-color: var(--c-line); }
  .ch-drawer-menu { list-style: none; margin: 0; padding: 6px 0 4px; }
  .ch-drawer-menu > li { position: relative; border-bottom: 1px solid #f4eee3; }
  .ch-drawer-menu > li > a {
    display: block; padding: 12px 52px 12px 18px;
    font-size: 14.5px; font-weight: 700; line-height: 1.35;
    color: var(--c-ink); text-transform: none;
  }
  .ch-drawer-menu > li > a:hover { background: #fbf7ee; }
  .ch-drawer-menu li ul {
    display: none; position: static; min-width: 0; border: 0; border-radius: 0;
    box-shadow: none; padding: 0 0 6px 12px; background: #fff;
  }
  .ch-drawer-menu li.is-open > ul { display: block; }
  .ch-drawer-menu li ul li { border: 0; }
  .ch-drawer-menu li ul li a {
    display: block; padding: 9px 18px 9px 24px; font-size: 13.5px;
    color: var(--c-muted); font-weight: 600; line-height: 1.35;
  }
  .ch-submenu-toggle {
    position: absolute; top: 7px; right: 10px; width: 34px; height: 34px;
    border: 0; border-radius: 8px; background: #f7f1e3;
    display: grid; place-items: center; cursor: pointer;
  }
  .ch-submenu-toggle span {
    width: 8px; height: 8px; border-right: 2px solid var(--c-ink);
    border-bottom: 2px solid var(--c-ink); transform: rotate(45deg);
    margin-top: -3px; transition: transform .2s ease;
  }
  .ch-drawer-menu li.is-open > .ch-submenu-toggle span { transform: rotate(-135deg); margin-top: 3px; }
  .ch-drawer-extra {
    padding: 16px 18px 24px; display: grid; gap: 2px;
    border-top: 1px solid var(--c-line);
  }
  .ch-drawer-extra a {
    padding: 10px 0; font-size: 14px; font-weight: 700; color: var(--c-ink);
    border-bottom: 1px solid #f6f1e7;
  }
  .ch-drawer-extra a:last-child { border-bottom: 0; color: var(--c-link); }
  body.ch-drawer-open { overflow: hidden; }

  .ch-bottom-nav {
    display: grid; grid-template-columns: repeat(5, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 950;
    background: #fff; border-top: 1px solid var(--c-line);
    padding: 5px 4px calc(5px + env(safe-area-inset-bottom));
    box-shadow: 0 -10px 30px -24px rgba(58, 46, 34, .5);
  }
  .ch-bottom-item {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; min-height: 48px; padding: 3px 2px; border: 0; background: transparent;
    color: var(--c-muted); font-family: inherit; font-size: 10.5px; font-weight: 700;
    line-height: 1.1; text-decoration: none; position: relative;
  }
  .ch-bottom-item svg { width: 23px; height: 23px; }
  .ch-bottom-item.is-active { color: var(--c-link); }
  .ch-bottom-item.is-active::before {
    content: ""; position: absolute; top: -6px; left: 50%; transform: translateX(-50%);
    width: 24px; height: 3px; border-radius: 0 0 3px 3px; background: var(--c-primary);
  }
  .ch-bottom-search { cursor: pointer; }
  .ch-bottom-count {
    position: absolute; top: 2px; left: calc(50% + 6px); min-width: 16px; height: 16px;
    padding: 0 4px; border-radius: 999px; background: var(--c-accent);
    color: #2b1d04; font-size: 9.5px; font-weight: 800; display: grid; place-items: center;
  }

  body { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
  body.woocommerce-checkout { padding-bottom: 0; }
  body.woocommerce-checkout .ch-bottom-nav { display: none; }
  body.single-product .ch-bottom-nav { display: none; }
  body.single-product { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }

  .ch-pdp-bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 960;
    align-items: center; gap: 10px; background: #fff;
    border-top: 1px solid var(--c-line); padding: 9px 12px calc(9px + env(safe-area-inset-bottom));
    box-shadow: 0 -10px 30px -24px rgba(58, 46, 34, .5);
  }
  .ch-pdp-bar-price {
    flex: 0 0 auto; max-width: 38%; font-size: 15px; font-weight: 800;
    color: var(--c-link); line-height: 1.2;
  }
  .ch-pdp-bar-price .price { display: block; margin: 0; }
  .ch-pdp-bar-price del { display: block; font-size: 11px; color: var(--c-muted); font-weight: 400; }
  .ch-pdp-bar-price ins { text-decoration: none; color: var(--c-sale); }
  .ch-pdp-bar-price .woocommerce-Price-amount { font-size: 16px; }
  .ch-pdp-bar-actions { display: flex; gap: 8px; flex: 1 1 auto; min-width: 0; }
  .ch-pdp-bar-form { flex: 1 1 0; min-width: 0; margin: 0; }
  .ch-pdp-bar .button,
  .ch-pdp-bar-buy,
  .ch-pdp-bar-cart {
    display: flex; align-items: center; justify-content: center; width: 100%;
    min-height: 42px; padding: 9px 10px; border-radius: 9px;
    font-size: 13px; font-weight: 800; line-height: 1.15; text-align: center;
    text-decoration: none; cursor: pointer;
  }
  .ch-pdp-bar-cart { background: #fff; border: 2px solid var(--c-primary); color: var(--c-link) !important; white-space: nowrap; font-size: 12px !important; }
  .ch-pdp-bar-buy { flex: 1 1 0; width: auto !important; background: var(--c-primary); border: 2px solid var(--c-primary); color: #241a06 !important; white-space: nowrap; }
  .ch-pdp-bar-buy:disabled { opacity: .55; cursor: not-allowed; }

  .woocommerce-pagination ul,
  .woocommerce-pagination ul.page-numbers {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 6px;
    margin: 14px 0 40px; padding: 0;
  }
  .woocommerce-pagination ul li a,
  .woocommerce-pagination ul li span { min-width: 38px; padding: 8px 10px; }

  #ht-ctc-chat { bottom: calc(72px + env(safe-area-inset-bottom)) !important; }
  body.single-product #ht-ctc-chat { bottom: calc(82px + env(safe-area-inset-bottom)) !important; }
  body.woocommerce-checkout #ht-ctc-chat { bottom: 15px !important; }
}

@media (max-width: 782px) {
  body.admin-bar .ch-sticky { top: 46px; }
}

/* =========================================================
   MY ACCOUNT — parent-friendly dashboard, orders, detail
   ========================================================= */
.woocommerce-account.logged-in .entry-title { display: none; }
.woocommerce-account.logged-in .entry-header { display: none; }
.woocommerce-account.logged-in .site-content { padding-top: 18px; }
.woocommerce-account.logged-in .entry-content,
.woocommerce-account.logged-in .ch-account-page { max-width: 1160px; }

.woocommerce-account .woocommerce:has(.woocommerce-MyAccount-navigation) {
  display: grid; grid-template-columns: 248px minmax(0, 1fr);
  gap: 24px; align-items: start; max-width: 1160px; margin: 0 auto;
}
.woocommerce-account .woocommerce:has(.woocommerce-MyAccount-navigation)::after { content: none; }
.woocommerce-account .woocommerce-notices-wrapper { grid-column: 1 / -1; }
.woocommerce-account .woocommerce-MyAccount-navigation {
  position: sticky; top: 126px; float: none !important; width: 100% !important;
  background: #fff; border: 1px solid var(--c-line); border-radius: 16px;
  padding: 10px; box-shadow: 0 1px 2px rgba(58, 46, 34, .04);
}
.woocommerce-account .woocommerce-MyAccount-navigation ul {
  list-style: none; margin: 0; padding: 0; display: grid; gap: 4px;
}
.woocommerce-account .woocommerce-MyAccount-navigation li { margin: 0; border: 0; }
.woocommerce-account .woocommerce-MyAccount-navigation li a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px;
  font-size: 13.5px; font-weight: 700; line-height: 1.25;
  color: var(--c-ink); text-decoration: none;
}
.woocommerce-account .woocommerce-MyAccount-navigation li a svg {
  width: 19px; height: 19px; flex: 0 0 auto; color: var(--c-muted);
}
.woocommerce-account .woocommerce-MyAccount-navigation li a::after {
  content: "›"; margin-left: auto; color: #c8b9a4; font-size: 18px; line-height: 1;
}
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation li a:hover {
  background: #f7f1e3; color: var(--c-link);
}
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a svg,
.woocommerce-account .woocommerce-MyAccount-navigation li a:hover svg { color: var(--c-link); }
.woocommerce-account .woocommerce-MyAccount-navigation li.customer-logout {
  margin-top: 6px; border-top: 1px solid var(--c-line); padding-top: 6px;
}
.woocommerce-account .woocommerce-MyAccount-navigation li.customer-logout a { color: var(--c-muted); }
.ch-account-nav-support {
  margin-top: 10px; padding: 13px; border-radius: 12px;
  background: #fbf7ee; border: 1px solid #f0e4cf; font-size: 12.5px;
}
.ch-account-nav-support strong { display: block; font-size: 13.5px; }
.ch-account-nav-support p { margin: 4px 0 8px; color: var(--c-muted); line-height: 1.5; }
.ch-account-nav-support a { color: var(--c-link); font-weight: 800; font-size: 12.5px; }

.woocommerce-account .woocommerce-MyAccount-content {
  float: none !important; width: 100% !important; min-width: 0;
  background: #fff; border: 1px solid var(--c-line); border-radius: 16px;
  padding: 26px; box-shadow: 0 1px 2px rgba(58, 46, 34, .04);
}

.ch-account-hero {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 20px; margin-bottom: 22px;
  background: linear-gradient(135deg, #fbf5e8 0%, #fffdf8 100%);
  border: 1px solid var(--c-line); border-radius: 14px;
}
.ch-account-avatar {
  width: 52px; height: 52px; flex: 0 0 auto; border-radius: 50%;
  background: var(--c-primary); color: #241a06;
  display: grid; place-items: center; font-size: 22px; font-weight: 900;
}
.ch-account-hero-text h2 { font-size: 24px; font-weight: 800; margin: 0 0 4px; line-height: 1.2; }
.ch-account-hero-text p { margin: 0; color: var(--c-muted); font-size: 13.5px; line-height: 1.5; }
.ch-account-kicker {
  display: inline-block; margin: 0 0 3px; font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--c-link); font-weight: 800;
}
.ch-account-help {
  margin-left: auto; flex: 0 0 auto; padding: 9px 14px;
  background: #fff; border: 1px solid var(--c-line); border-radius: 999px;
  color: var(--c-link); font-size: 12.5px; font-weight: 800; white-space: nowrap;
}
.ch-account-help:hover { border-color: var(--c-primary); color: var(--c-link-hover); }

.ch-account-actions {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px; margin-bottom: 26px;
}
.ch-account-action {
  display: flex; flex-direction: column; gap: 5px; padding: 16px;
  background: #fff; border: 1px solid var(--c-line); border-radius: 13px;
  color: var(--c-ink); text-decoration: none;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.ch-account-action:hover {
  transform: translateY(-2px); border-color: var(--c-primary);
  box-shadow: 0 10px 24px -18px rgba(58, 46, 34, .35); color: var(--c-ink);
}
.ch-account-action-icon {
  width: 38px; height: 38px; margin-bottom: 4px; border-radius: 10px;
  background: #f7f1e3; color: var(--c-link); display: grid; place-items: center;
}
.ch-account-action-icon svg { width: 21px; height: 21px; }
.ch-account-action strong { font-size: 14.5px; line-height: 1.3; }
.ch-account-action > span:last-child { color: var(--c-muted); font-size: 12.5px; line-height: 1.4; }

.ch-account-sec-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 14px; margin: 0 0 12px;
}
.ch-account-sec-head h2 { font-size: 20px; font-weight: 800; margin: 0; line-height: 1.25; }
.ch-account-sec-head a { color: var(--c-link); font-weight: 800; font-size: 13px; white-space: nowrap; }
.ch-account-sec-note { color: var(--c-muted); font-size: 13px; margin: 0; text-align: right; }
.ch-account-subtitle { font-size: 20px; font-weight: 800; margin: 24px 0 10px; }

.ch-orders-list { display: grid; gap: 12px; }
.ch-order-card {
  background: #fff; border: 1px solid var(--c-line); border-radius: 14px; padding: 16px;
}
.ch-order-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.ch-order-number { display: block; font-size: 15px; font-weight: 800; line-height: 1.3; color: var(--c-ink); }
.ch-order-date { display: block; margin-top: 2px; font-size: 12px; color: var(--c-muted); }
.ch-status {
  display: inline-flex; align-items: center; padding: 5px 10px; border-radius: 999px;
  background: #f5f1ea; color: #6b5b43; font-size: 11.5px; font-weight: 800; white-space: nowrap;
}
.ch-status--processing { background: #eef5ff; color: #2f5f9e; }
.ch-status--completed { background: #eef8f0; color: #2f6b43; }
.ch-status--on-hold, .ch-status--pending { background: #fff5e0; color: #8a5a12; }
.ch-status--cancelled, .ch-status--failed, .ch-status--refunded { background: #f5f1ee; color: #8a5c4a; }

.ch-order-card-body { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.ch-order-items { display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 0; }
.ch-order-item { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ch-order-thumb {
  width: 42px; height: 56px; flex: 0 0 auto; overflow: hidden;
  border-radius: 6px; background: #faf8f3; display: grid; place-items: center;
}
.ch-order-thumb img { width: 100%; height: 100%; object-fit: contain; }
.ch-order-item-text { min-width: 0; }
.ch-order-item-text b {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 13px; font-weight: 700; line-height: 1.35; color: var(--c-ink);
}
.ch-order-item-text span { display: block; font-size: 11.5px; color: var(--c-muted); }
.ch-order-more { font-size: 11.5px; color: var(--c-muted); }
.ch-order-meta { flex: 0 0 auto; display: flex; flex-direction: column; gap: 3px; text-align: right; }
.ch-order-meta span { font-size: 11.5px; color: var(--c-muted); }
.ch-order-meta strong { font-size: 15px; color: var(--c-link); }
.ch-order-actions {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px;
  padding-top: 12px; border-top: 1px solid #f4eee3;
}
.ch-order-action {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 13px; background: #fff; border: 1px solid var(--c-line);
  border-radius: 8px; color: var(--c-ink); font-size: 12px; font-weight: 800;
  text-decoration: none; line-height: 1.2;
}
.ch-order-action:hover { border-color: var(--c-primary); color: var(--c-link); }
.ch-order-action--primary { background: var(--c-primary); border-color: var(--c-primary); color: #241a06; }
.ch-order-action--primary:hover { background: var(--c-primary-2); color: #241a06; }

.ch-account-empty {
  text-align: center; padding: 34px 18px; background: #fdfbf7;
  border: 1px dashed var(--c-line); border-radius: 14px;
}
.ch-account-empty-icon {
  width: 54px; height: 54px; margin: 0 auto 10px; border-radius: 50%;
  background: #f7f1e3; color: var(--c-primary); display: grid; place-items: center;
}
.ch-account-empty h3 { margin: 0 0 6px; font-size: 19px; font-weight: 800; }
.ch-account-empty p { margin: 0 0 14px; color: var(--c-muted); font-size: 13.5px; }

.ch-account-support {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin-top: 24px; padding: 16px 18px; border: 1px solid #f0e4cf;
  border-radius: 14px; background: #fbf7ee;
}
.ch-account-support strong { display: block; font-size: 14.5px; }
.ch-account-support p { margin: 3px 0 0; color: var(--c-muted); font-size: 12.5px; line-height: 1.5; }

.ch-account-back { margin: 0 0 12px; font-size: 13px; }
.ch-account-back a { color: var(--c-link); font-weight: 800; }
.ch-order-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; margin-bottom: 16px;
}
.ch-order-head h2 { font-size: 24px; font-weight: 800; margin: 0 0 4px; line-height: 1.2; }
.ch-order-head p { margin: 0; color: var(--c-muted); font-size: 13px; line-height: 1.5; }
.ch-order-status-card {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 18px; margin-bottom: 22px;
  background: #fbf7ee; border: 1px solid #f0e4cf; border-left: 4px solid var(--c-primary);
  border-radius: 12px;
}
.ch-order-status-icon {
  width: 38px; height: 38px; flex: 0 0 auto; border-radius: 10px;
  background: #fff; color: var(--c-link); display: grid; place-items: center;
}
.ch-order-status-card strong { display: block; font-size: 14.5px; }
.ch-order-status-card p { margin: 3px 0 0; color: var(--c-muted); font-size: 13px; line-height: 1.55; }
.ch-order-status-actions { margin-left: auto; display: flex; flex-wrap: wrap; gap: 8px; }

.woocommerce-account .woocommerce-order-details { margin-top: 6px; }
.woocommerce-account .woocommerce-order-details__title,
.woocommerce-account .woocommerce-column__title { font-size: 20px; font-weight: 800; }
.woocommerce-account .woocommerce-order-details .order-actions--heading,
.woocommerce-account .woocommerce-order-details .order-actions--heading + td { display: none; }
.woocommerce-account .woocommerce-table--order-details {
  border: 1px solid var(--c-line); border-radius: 12px; overflow: hidden;
}
.woocommerce-account .woocommerce-table--order-details th,
.woocommerce-account .woocommerce-table--order-details td { padding: 12px 14px; }
.woocommerce-account .woocommerce-customer-details { margin-top: 22px; }
.woocommerce-account .woocommerce-customer-details .woocommerce-columns--addresses {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
}
.woocommerce-account .woocommerce-customer-details address {
  font-style: normal; background: #fdfbf7; border: 1px solid var(--c-line);
  border-radius: 12px; padding: 16px 18px; line-height: 1.65;
}

@media (max-width: 900px) {
  .woocommerce-account .woocommerce:has(.woocommerce-MyAccount-navigation) { display: block; }
  .woocommerce-account .woocommerce-MyAccount-navigation {
    position: static; top: auto; padding: 0; background: transparent;
    border: 0; box-shadow: none; margin: 0 0 14px;
  }
  .woocommerce-account .woocommerce-MyAccount-navigation ul {
    display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 8px;
    scrollbar-width: none; overscroll-behavior-x: contain;
  }
  .woocommerce-account .woocommerce-MyAccount-navigation ul::-webkit-scrollbar { display: none; }
  .woocommerce-account .woocommerce-MyAccount-navigation li { flex: 0 0 auto; }
  .woocommerce-account .woocommerce-MyAccount-navigation li a {
    padding: 8px 12px; background: #fff; border: 1px solid var(--c-line);
    border-radius: 999px; font-size: 12.5px; white-space: nowrap; gap: 7px;
  }
  .woocommerce-account .woocommerce-MyAccount-navigation li a::after { display: none; }
  .woocommerce-account .woocommerce-MyAccount-navigation li a svg { width: 17px; height: 17px; }
  .woocommerce-account .woocommerce-MyAccount-navigation li.is-active a {
    background: #f7f1e3; border-color: #e9d8b6;
  }
  .woocommerce-account .woocommerce-MyAccount-navigation li.customer-logout {
    margin-top: 0; border-top: 0; padding-top: 0;
  }
  .ch-account-nav-support { display: none; }
  .woocommerce-account .woocommerce-MyAccount-content { padding: 18px; }
  .ch-account-hero { flex-wrap: wrap; }
  .ch-account-help { margin-left: 0; width: 100%; text-align: center; }
  .ch-account-actions { grid-template-columns: 1fr 1fr; }
  .ch-account-sec-head { align-items: flex-start; }
  .ch-account-sec-note { text-align: left; }
  .ch-order-card-body { flex-direction: column; align-items: stretch; }
  .ch-order-meta {
    flex-direction: row; align-items: center; justify-content: space-between;
    text-align: left; padding-top: 8px; border-top: 1px solid #f4eee3;
  }
  .ch-order-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .ch-order-action { width: 100%; }
  .ch-order-head { flex-direction: column; }
  .ch-order-status-card { flex-wrap: wrap; }
  .ch-order-status-actions { margin-left: 0; width: 100%; }
  .ch-account-support { flex-direction: column; align-items: flex-start; }
  .ch-account-support .ch-btn { width: 100%; justify-content: center; }
  .woocommerce-account .woocommerce-customer-details .woocommerce-columns--addresses { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .woocommerce-account .woocommerce-MyAccount-content { padding: 14px; border-radius: 14px; }
  .ch-account-hero { padding: 16px; }
  .ch-account-hero-text h2 { font-size: 21px; }
  .ch-account-actions { gap: 10px; }
  .ch-account-action { padding: 13px; }
  .ch-account-action-icon { width: 34px; height: 34px; }
  .ch-order-card { padding: 14px; }
  .ch-order-actions { grid-template-columns: 1fr; }
  .ch-account-sec-note { display: none; }
}
