/* ==========================================================================
   Cambodia Store Child — Premium Beauty & Hair-Care Brand Theme
   v0.4.0 — Extended on top of barkeley.css (loads first).
   barkeley.css owns: design tokens, typography, buttons, homepage sections,
   product cards, WC templates, responsive grid.
   This file owns: Cambodia-specific components (trust badges, lang switcher,
   checkout, floating contacts, WC hook overrides).
   ========================================================================== */

/* ── 0. Google Fonts ──────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=Noto+Sans+Khmer:wght@400;500;600;700&display=swap');

/* ── 1. Design Tokens + Bridge Aliases ───────────────────── */
/*
 * --brand-* variables kept for backward compat with any inline CSS or
 * third-party widgets. They map to the canonical --barkeley-* system.
 */
:root {
  --brand-bg:        #FAF7F1;
  --brand-surface:   #FFFFFF;
  --brand-text:      #162235;
  --brand-muted:     #7C7168;
  --brand-gold:      #C9A45C;
  --brand-gold-dk:   #A8843E;
  --brand-accent:    #F4E7DF;
  --brand-blush:     #F9EEE8;
  --brand-border:    #E8DFD2;
  --brand-dark:      #111827;
  --brand-success:   #166534;

  --brand-radius:    12px;
  --brand-radius-lg: 20px;
  --brand-shadow:    0 4px 24px rgba(22, 34, 53, 0.07);
  --brand-shadow-md: 0 8px 40px rgba(22, 34, 53, 0.13);
  --brand-shadow-sm: 0 2px 10px rgba(22, 34, 53, 0.06);

  /* v0.4.0: updated to Manrope + Cormorant Garamond */
  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans:  'Manrope', system-ui, -apple-system, sans-serif;

  /* legacy compat */
  --kh-primary: #162235;
  --kh-accent:  #C9A45C;
}

/* ── 2. Base & Typography ─────────────────────────────────── */
body {
  background-color: var(--barkeley-bg) !important;
  color: var(--barkeley-text);
  -webkit-font-smoothing: antialiased;
}

:lang(km),
html[lang="km-KH"] body,
body.lang-km {
  font-family: "Noto Sans Khmer", var(--font-sans);
  line-height: 1.9;
}

/* Headings: Cormorant Garamond for elegant editorial feel */
h1, h2, h3, h4,
.woocommerce-loop-product__title,
.woocommerce div.product .product_title {
  font-family: var(--font-serif);
  color: var(--barkeley-text);
  letter-spacing: -0.01em;
}

/* Barkeley heading overrides use Manrope — keep those as-is */
.barkeley-section-heading h2,
.barkeley-shop-hero h1,
.barkeley-single-hero__summary .product_title,
.barkeley-hero__copy h1,
.barkeley-story__copy h2,
.barkeley-final-cta h2 {
  font-family: var(--font-sans);
}

a { color: var(--barkeley-accent-strong); }
a:hover { color: var(--barkeley-dark); }

/* Blocksy page background override */
.site-main, #page, .ct-container { background: transparent; }

/* ── 3. Buttons ───────────────────────────────────────────── */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce .cart .button,
.woocommerce .cart-collaterals .checkout-button,
a.button, button.button, input.button {
  font-family: var(--font-sans) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--brand-radius) !important;
  border: 1.5px solid transparent;
  padding: 12px 24px !important;
  min-height: 46px;
  transition: all 0.18s ease !important;
  cursor: pointer;
}

/* Primary CTA — rich black */
.single_add_to_cart_button,
.checkout-button,
.woocommerce-cart .wc-proceed-to-checkout .checkout-button {
  background: var(--brand-dark) !important;
  color: #fff !important;
  border-color: var(--brand-dark) !important;
  box-shadow: 0 2px 12px rgba(17,24,39,0.28) !important;
  padding: 15px 32px !important;
  font-size: 14px !important;
}

.single_add_to_cart_button:hover,
.checkout-button:hover {
  background: var(--brand-gold-dk) !important;
  border-color: var(--brand-gold-dk) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(168,132,62,0.38) !important;
}

/* Add to cart in loop */
.woocommerce ul.products li.product .button {
  background: var(--brand-dark) !important;
  color: #fff !important;
  border-color: var(--brand-dark) !important;
  width: 100%;
  text-align: center;
  margin-top: 10px;
}

.woocommerce ul.products li.product .button:hover {
  background: var(--brand-gold-dk) !important;
  border-color: var(--brand-gold-dk) !important;
}

/* Gold ghost button */
.kh-btn--ghost {
  background: transparent !important;
  color: var(--brand-gold) !important;
  border: 1.5px solid var(--brand-gold) !important;
}

.kh-btn--ghost:hover {
  background: var(--brand-gold) !important;
  color: #fff !important;
}

/* ── 4. Homepage Shortcode: [cambodia_beauty_home] ─────────── */

/* Hero */
.kh-hero {
  background: linear-gradient(135deg, #FAF7F1 0%, #F4E7DF 55%, #EDD5C5 100%);
  padding: 80px 24px 90px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.kh-hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(201,164,92,0.12) 0%, transparent 70%);
  border-radius: 50%;
}

.kh-hero__inner {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
}

.kh-hero__label {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-gold-dk);
  background: rgba(201,164,92,0.12);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
  border: 1px solid rgba(201,164,92,0.25);
}

.kh-hero__title {
  font-family: var(--font-serif) !important;
  font-size: clamp(32px, 5.5vw, 58px);
  font-weight: 700;
  color: var(--brand-text);
  line-height: 1.15;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}

.kh-hero__sub {
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--brand-muted);
  max-width: 520px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.kh-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 28px;
}

.kh-hero__ctas .kh-btn {
  display: inline-block;
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 30px;
  border-radius: var(--brand-radius);
  transition: all 0.18s;
}

.kh-hero__ctas .kh-btn--primary {
  background: var(--brand-dark);
  color: #fff;
  border: 1.5px solid var(--brand-dark);
  box-shadow: 0 4px 16px rgba(17,24,39,0.22);
}

.kh-hero__ctas .kh-btn--primary:hover {
  background: var(--brand-gold-dk);
  border-color: var(--brand-gold-dk);
  color: #fff;
  transform: translateY(-1px);
}

.kh-hero__ctas .kh-btn--ghost {
  background: transparent;
  color: var(--brand-gold-dk);
  border: 1.5px solid var(--brand-gold);
}

.kh-hero__ctas .kh-btn--ghost:hover {
  background: var(--brand-gold);
  color: #fff;
}

.kh-hero__pay-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.kh-hero__pay-badges span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--brand-muted);
  background: rgba(255,255,255,0.65);
  border: 1px solid var(--brand-border);
  padding: 5px 12px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

/* Section shared styles */
.kh-section {
  padding: 64px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.kh-section__head {
  text-align: center;
  margin-bottom: 40px;
}

.kh-section__label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-gold-dk);
  margin-bottom: 10px;
}

.kh-section__title {
  font-family: var(--font-serif) !important;
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 600;
  color: var(--brand-text);
  margin: 0 0 12px;
}

.kh-section__sub {
  font-size: 15px;
  color: var(--brand-muted);
  max-width: 480px;
  margin: 0 auto;
}

/* Best sellers grid */
.kh-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 8px;
}

.kh-product-card {
  background: var(--brand-surface);
  border-radius: var(--brand-radius-lg);
  box-shadow: var(--brand-shadow);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
  text-decoration: none;
  display: block;
  color: var(--brand-text);
}

.kh-product-card:hover {
  box-shadow: var(--brand-shadow-md);
  transform: translateY(-3px);
  color: var(--brand-text);
}

.kh-product-card__img {
  aspect-ratio: 1;
  background: var(--brand-blush);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
}

.kh-product-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kh-product-card__body {
  padding: 16px;
}

.kh-product-card__name {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--brand-text);
  margin: 0 0 6px;
  line-height: 1.3;
}

.kh-product-card__price {
  font-size: 14px;
  color: var(--brand-gold-dk);
  font-weight: 600;
}

.kh-product-card--empty {
  opacity: 0.4;
  pointer-events: none;
}

/* Categories section */
.kh-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.kh-cat-card {
  background: var(--brand-surface);
  border: 1.5px solid var(--brand-border);
  border-radius: var(--brand-radius-lg);
  padding: 32px 20px;
  text-align: center;
  text-decoration: none;
  color: var(--brand-text);
  transition: all 0.2s;
  display: block;
}

.kh-cat-card:hover {
  border-color: var(--brand-gold);
  box-shadow: 0 4px 20px rgba(201,164,92,0.2);
  color: var(--brand-text);
  transform: translateY(-2px);
}

.kh-cat-card__icon { font-size: 36px; margin-bottom: 12px; display: block; }

.kh-cat-card__name {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}

.kh-cat-card__sub {
  font-size: 12px;
  color: var(--brand-muted);
  display: block;
}

/* Benefits section */
.kh-benefits {
  background: var(--brand-text);
  color: #fff;
  padding: 64px 24px;
}

.kh-benefits__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  text-align: center;
}

.kh-benefit__icon { font-size: 32px; margin-bottom: 14px; display: block; }

.kh-benefit__title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 8px;
}

.kh-benefit__text {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  margin: 0;
  line-height: 1.6;
}

/* Trust section */
.kh-trust-section {
  background: var(--brand-blush);
  padding: 56px 24px;
}

.kh-trust-section__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.kh-trust-section__head {
  text-align: center;
  margin-bottom: 36px;
}

.kh-trust-section__head h2 {
  font-family: var(--font-serif) !important;
  font-size: clamp(22px, 3vw, 34px);
  color: var(--brand-text);
  margin: 0;
}

.kh-trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 16px;
}

.kh-trust-item {
  background: var(--brand-surface);
  border-radius: var(--brand-radius-lg);
  padding: 24px 16px;
  text-align: center;
  border: 1.5px solid var(--brand-border);
  box-shadow: var(--brand-shadow-sm);
}

.kh-trust-item__icon { font-size: 28px; display: block; margin-bottom: 8px; }

.kh-trust-item__title {
  font-weight: 600;
  font-size: 13px;
  color: var(--brand-text);
  display: block;
  margin-bottom: 4px;
}

.kh-trust-item__sub {
  font-size: 12px;
  color: var(--brand-muted);
  display: block;
}

/* Editorial section */
.kh-editorial { background: var(--brand-bg); }

.kh-editorial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.kh-editorial-card {
  background: var(--brand-surface);
  border-radius: var(--brand-radius-lg);
  overflow: hidden;
  box-shadow: var(--brand-shadow);
}

.kh-editorial-card__img {
  height: 180px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--brand-accent), var(--brand-blush));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}

.kh-editorial-card__body { padding: 20px; }

.kh-editorial-card__tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-gold-dk);
  display: block;
  margin-bottom: 8px;
}

.kh-editorial-card__title {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--brand-text);
  margin: 0 0 8px;
  line-height: 1.35;
}

.kh-editorial-card__text {
  font-size: 13px;
  color: var(--brand-muted);
  margin: 0;
  line-height: 1.6;
}

/* Shop archive banner */
.kh-shop-banner {
  background: linear-gradient(135deg, var(--brand-blush) 0%, var(--brand-accent) 100%);
  border-radius: var(--brand-radius-lg);
  padding: 36px 32px;
  margin-bottom: 40px;
  text-align: center;
  border: 1px solid var(--brand-border);
}

.kh-shop-banner h2 {
  font-family: var(--font-serif) !important;
  font-size: clamp(22px, 3vw, 34px);
  color: var(--brand-text);
  margin: 0 0 10px;
}

.kh-shop-banner p {
  font-size: 15px;
  color: var(--brand-muted);
  margin: 0;
  max-width: 580px;
  margin: 0 auto;
}

/* ── 5. Shop Archive / Product Grid ──────────────────────── */
.woocommerce-page #page,
.woocommerce #page { background: var(--brand-bg); }

.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 0 !important;
}

.woocommerce ul.products li.product {
  background: var(--brand-surface) !important;
  border-radius: var(--brand-radius-lg) !important;
  padding: 0 !important;
  box-shadow: var(--brand-shadow) !important;
  border: 1.5px solid var(--brand-border) !important;
  overflow: hidden;
  width: 100% !important;
  margin: 0 !important;
  float: none !important;
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}

.woocommerce ul.products li.product:hover {
  box-shadow: var(--brand-shadow-md) !important;
  transform: translateY(-3px);
}

/* Product image container */
.woocommerce ul.products li.product a img {
  border-radius: 0 !important;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--brand-blush);
}

.woocommerce ul.products li.product a.woocommerce-loop-product__link {
  display: block;
}

/* WooCommerce onsale badge */
.woocommerce ul.products li.product .onsale,
.woocommerce span.onsale {
  background: var(--brand-gold) !important;
  color: #fff !important;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-radius: 999px !important;
  padding: 4px 12px !important;
  min-width: auto !important;
  min-height: auto !important;
  line-height: 1.4 !important;
  top: 12px !important;
  left: 12px !important;
  right: auto !important;
}

/* Product title and price area */
.woocommerce ul.products li.product h2.woocommerce-loop-product__title {
  font-family: var(--font-serif) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  color: var(--brand-text) !important;
  padding: 14px 16px 4px !important;
  margin: 0 !important;
  line-height: 1.35 !important;
}

.woocommerce ul.products li.product .price {
  display: block !important;
  padding: 0 16px 8px !important;
  color: var(--brand-gold-dk) !important;
  font-weight: 600 !important;
  font-size: 15px !important;
}

.woocommerce ul.products li.product .price del {
  color: var(--brand-muted) !important;
  font-size: 12px !important;
  margin-right: 4px;
}

.woocommerce ul.products li.product .price ins {
  text-decoration: none !important;
}

.woocommerce ul.products li.product > .button {
  margin: 0 16px 16px !important;
  padding: 11px 20px !important;
  border-radius: 10px !important;
  font-size: 12px !important;
}

/* ── 6. Single Product Page ──────────────────────────────── */
.woocommerce div.product {
  background: transparent;
}

.woocommerce div.product div.images {
  border-radius: var(--brand-radius-lg);
  overflow: hidden;
  background: var(--brand-blush);
}

.woocommerce div.product div.images img {
  border-radius: var(--brand-radius-lg) !important;
}

.woocommerce div.product div.summary {
  background: var(--brand-surface);
  border-radius: var(--brand-radius-lg);
  padding: 32px !important;
  box-shadow: var(--brand-shadow);
  border: 1.5px solid var(--brand-border);
}

.woocommerce div.product .product_title {
  font-family: var(--font-serif) !important;
  font-size: clamp(22px, 3vw, 34px) !important;
  color: var(--brand-text) !important;
  line-height: 1.2 !important;
  margin-bottom: 12px !important;
}

.woocommerce div.product .price {
  font-size: 22px !important;
  font-weight: 700 !important;
  color: var(--brand-gold-dk) !important;
  margin-bottom: 16px !important;
}

.woocommerce div.product .price del {
  color: var(--brand-muted) !important;
  font-size: 15px !important;
}

.woocommerce div.product .woocommerce-product-details__short-description {
  color: var(--brand-muted);
  font-size: 14px;
  line-height: 1.7;
  border-top: 1px solid var(--brand-border);
  padding-top: 16px;
  margin-top: 8px;
}

/* Product benefit bullets */
.cct-benefit-bullets {
  margin: 16px 0;
  padding: 16px 18px;
  background: var(--brand-blush);
  border-radius: var(--brand-radius);
  border-left: 3px solid var(--brand-gold);
}

.cct-benefit-bullets ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cct-benefit-bullets ul li {
  padding: 4px 0 4px 22px;
  position: relative;
  font-size: 13px;
  color: var(--brand-text);
  line-height: 1.5;
}

.cct-benefit-bullets ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--brand-gold);
  font-weight: 700;
}

/* Product delivery accordion */
.cct-delivery-accordion {
  margin-top: 20px;
  border: 1.5px solid var(--brand-border);
  border-radius: var(--brand-radius);
  overflow: hidden;
}

.cct-accordion-item {
  border-bottom: 1px solid var(--brand-border);
}

.cct-accordion-item:last-child { border-bottom: none; }

.cct-accordion-trigger {
  width: 100%;
  background: var(--brand-surface);
  border: none;
  padding: 14px 18px;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.15s;
}

.cct-accordion-trigger:hover { background: var(--brand-bg); }

.cct-accordion-trigger .cct-acc-icon {
  font-size: 18px;
  color: var(--brand-gold);
  font-weight: 300;
  transition: transform 0.2s;
}

.cct-accordion-item.is-open .cct-acc-icon { transform: rotate(45deg); }

.cct-accordion-body {
  display: none;
  padding: 0 18px 16px;
  font-size: 13px;
  color: var(--brand-muted);
  line-height: 1.7;
  background: var(--brand-bg);
}

.cct-accordion-item.is-open .cct-accordion-body { display: block; }

/* ── 7. Payment & Trust Box (product page) ───────────────── */
.cct-product-extras { margin-top: 20px; }

.cct-payment-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.cct-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1.5px solid;
}

.cct-badge--aba  { color: #1a6abf; border-color: #1a6abf; background: #eff6ff; }
.cct-badge--khqr { color: #B32B2B; border-color: #B32B2B; background: #fff5f5; }
.cct-badge--cod  { color: var(--brand-success); border-color: #bbf7d0; background: #f0fdf4; }

.cct-contact-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
}

.cct-contact-label {
  font-size: 12px;
  color: var(--brand-muted);
  width: 100%;
  display: block;
  margin-bottom: 2px;
}

.cct-contact {
  font-size: 12px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 999px;
  text-decoration: none !important;
  color: #fff !important;
  transition: opacity 0.18s;
  letter-spacing: 0.04em;
}

.cct-contact:hover { opacity: 0.85; }
.cct-contact--telegram  { background: #229ed9; }
.cct-contact--messenger { background: #006aff; }
.cct-contact--whatsapp  { background: #25d366; }

/* ── 8. Cart Page ─────────────────────────────────────────── */
.woocommerce-cart-form table.cart th,
.woocommerce-cart-form .shop_table th {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-muted);
  border-bottom: 2px solid var(--brand-border) !important;
  padding: 12px 16px !important;
}

.woocommerce-cart-form table.cart td,
.woocommerce-cart-form .shop_table td {
  padding: 16px !important;
  border-bottom: 1px solid var(--brand-border) !important;
  vertical-align: middle;
}

.woocommerce .cart-collaterals .cart_totals {
  background: var(--brand-surface);
  border: 1.5px solid var(--brand-border);
  border-radius: var(--brand-radius-lg);
  padding: 28px;
  box-shadow: var(--brand-shadow);
}

.woocommerce .cart-collaterals .cart_totals h2 {
  font-family: var(--font-serif) !important;
  font-size: 22px;
  color: var(--brand-text);
  margin-bottom: 20px;
}

/* ── 9. Checkout Page ─────────────────────────────────────── */
.woocommerce-checkout #page-title,
.woocommerce-checkout .page-header { display: none; }

.woocommerce-checkout .woocommerce-billing-fields h3,
.woocommerce-checkout h3#order_review_heading,
.woocommerce-checkout .woocommerce-shipping-fields h3 {
  font-family: var(--font-serif) !important;
  font-size: 20px;
  color: var(--brand-text);
  border-bottom: 2px solid var(--brand-border);
  padding-bottom: 12px;
  margin-bottom: 20px;
}

.woocommerce-checkout form.checkout input[type="text"],
.woocommerce-checkout form.checkout input[type="email"],
.woocommerce-checkout form.checkout input[type="tel"],
.woocommerce-checkout form.checkout select,
.woocommerce-checkout form.checkout textarea {
  border: 1.5px solid var(--brand-border) !important;
  border-radius: var(--brand-radius) !important;
  padding: 12px 14px !important;
  font-family: var(--font-sans) !important;
  font-size: 14px !important;
  background: var(--brand-surface) !important;
  transition: border-color 0.15s !important;
}

.woocommerce-checkout form.checkout input:focus,
.woocommerce-checkout form.checkout select:focus,
.woocommerce-checkout form.checkout textarea:focus {
  border-color: var(--brand-gold) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(201,164,92,0.15) !important;
}

/* Highlight phone field */
#billing_phone_field { order: -1; }
#billing_phone_field label { font-weight: 600; color: var(--brand-text); }
#billing_phone_field input { border-color: var(--brand-gold) !important; }

/* Payment methods section */
.woocommerce-checkout #payment {
  background: var(--brand-surface) !important;
  border: 1.5px solid var(--brand-border) !important;
  border-radius: var(--brand-radius-lg) !important;
}

.woocommerce-checkout #payment ul.payment_methods li {
  border-bottom: 1px solid var(--brand-border) !important;
  padding: 14px 20px !important;
}

.woocommerce-checkout #payment ul.payment_methods li label {
  font-weight: 600 !important;
  font-size: 14px !important;
  color: var(--brand-text) !important;
}

.woocommerce-checkout #payment div.place-order {
  padding: 24px 20px !important;
}

/* Checkout trust banner */
.kh-checkout-trust {
  background: var(--brand-blush);
  border: 1.5px solid var(--brand-border);
  border-radius: var(--brand-radius-lg);
  padding: 20px;
  margin-bottom: 24px;
}

.kh-checkout-trust__title {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--brand-text);
  margin-bottom: 12px;
}

.kh-checkout-trust__items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.kh-checkout-trust__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--brand-muted);
  font-weight: 500;
}

.kh-checkout-trust__item span:first-child { font-size: 16px; }

/* ── 10. Floating Contact Buttons ─────────────────────────── */
.kh-floating-contact {
  position: fixed;
  right: 18px;
  bottom: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.kh-floating-contact a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  color: #fff !important;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.22);
  transition: opacity 0.18s, transform 0.18s;
  white-space: nowrap;
}

.kh-floating-contact a:hover {
  opacity: 0.9;
  transform: scale(1.04);
  color: #fff !important;
}

.kh-floating-contact .kh-fc-icon { font-size: 16px; }

.kh-telegram  { background: #229ed9; }
.kh-messenger { background: #006aff; }
.kh-whatsapp  { background: #25d366; }

/* ── 11. WooCommerce Notices ─────────────────────────────── */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-radius: var(--brand-radius) !important;
  font-family: var(--font-sans) !important;
  font-size: 14px !important;
}

.woocommerce-message { border-top-color: var(--brand-gold) !important; }

/* ── 12. Stars / Reviews ─────────────────────────────────── */
.woocommerce .star-rating span { color: var(--brand-gold) !important; }
.woocommerce .star-rating::before { color: var(--brand-border) !important; }

/* ── 13. Breadcrumbs ─────────────────────────────────────── */
.woocommerce-breadcrumb {
  font-size: 12px;
  color: var(--brand-muted);
  letter-spacing: 0.02em;
}

.woocommerce-breadcrumb a { color: var(--brand-gold-dk); }

/* ── 14. Footer — targets Blocksy's .site-footer ─────────── */
.site-footer {
  background: var(--brand-dark) !important;
  color: rgba(255,255,255,0.75);
  font-family: var(--font-sans);
}

/* Footer row padding */
.site-footer .ct-footer-row,
.site-footer .footer-top-row,
.site-footer .footer-bottom-row {
  padding: 40px 0;
}

.site-footer .ct-footer-row + .ct-footer-row,
.site-footer .footer-bottom-row {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
}

/* Widget titles */
.site-footer .widget-title,
.site-footer .footer-widgets-title,
.site-footer h4,
.site-footer h5 {
  font-family: var(--font-sans) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-gold) !important;
  margin-bottom: 14px !important;
}

/* All footer text */
.site-footer p,
.site-footer li,
.site-footer span {
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  line-height: 1.7;
}

/* Footer links */
.site-footer a {
  color: rgba(255,255,255,0.65) !important;
  text-decoration: none;
  transition: color 0.15s;
}

.site-footer a:hover {
  color: var(--brand-gold) !important;
}

/* Footer widget list items */
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

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

/* Copyright / bottom bar */
.site-footer .copyright-bar,
.site-footer .ct-footer-bottom {
  font-size: 12px;
  color: rgba(255,255,255,0.35) !important;
}

.site-footer .copyright-bar a,
.site-footer .ct-footer-bottom a {
  color: rgba(255,255,255,0.45) !important;
}

.site-footer .copyright-bar a:hover,
.site-footer .ct-footer-bottom a:hover {
  color: var(--brand-gold) !important;
}

/* ── 15. Mobile Responsive ────────────────────────────────── */
@media (max-width: 768px) {
  /* 2-column product grid on mobile */
  .woocommerce ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  .woocommerce ul.products li.product h2.woocommerce-loop-product__title {
    font-size: 13px !important;
    padding: 10px 12px 2px !important;
  }

  .woocommerce ul.products li.product .price {
    font-size: 13px !important;
    padding: 0 12px 6px !important;
  }

  .woocommerce ul.products li.product > .button {
    margin: 0 12px 12px !important;
    font-size: 11px !important;
  }

  .woocommerce div.product div.summary {
    padding: 20px !important;
  }

  .kh-hero { padding: 48px 20px 60px; }
  .kh-hero__title { font-size: 28px; }

  .kh-products-grid,
  .kh-categories-grid { grid-template-columns: repeat(2, 1fr); }

  .kh-benefits__inner { grid-template-columns: repeat(2, 1fr); gap: 24px; }

  .kh-editorial-grid { grid-template-columns: 1fr; }

  .kh-checkout-trust__items { grid-template-columns: 1fr; }

  .kh-footer__inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  /* Compact floating contact on mobile */
  .kh-floating-contact a span:not(.kh-fc-icon) {
    display: none;
  }
  .kh-floating-contact a {
    padding: 12px;
    border-radius: 50%;
    width: 46px;
    height: 46px;
    justify-content: center;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 1200px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

/* ── 16. Language Switcher ────────────────────────────────── */

/* Top header bar */
.kh-lang-bar {
  background: var(--brand-text);
  padding: 6px 0;
}

.kh-lang-bar__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: flex-end;
}

/* Shared switcher list/div */
.kh-lang-switcher,
.kh-lang-switcher--polylang,
.kh-lang-switcher--wpml,
.kh-lang-switcher--static {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Polylang / WPML list items */
.kh-lang-switcher--polylang li,
.kh-lang-switcher--wpml li {
  list-style: none;
}

.kh-lang-switcher li + li::before,
.kh-lang-switcher--polylang li + li::before,
.kh-lang-switcher--wpml li + li::before {
  content: '|';
  color: rgba(255, 255, 255, 0.25);
  padding: 0 8px;
  font-size: 11px;
}

.kh-lang-switcher a,
.kh-lang-switcher--polylang a,
.kh-lang-switcher--wpml a,
.kh-lang-bar .kh-lang-switcher--static .kh-lang-item {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  padding: 2px 0;
  transition: color 0.15s;
  cursor: pointer;
}

.kh-lang-switcher a:hover,
.kh-lang-switcher--polylang a:hover,
.kh-lang-switcher--wpml a:hover {
  color: var(--brand-gold);
}

/* Active language */
.kh-lang-active a,
.kh-lang-active,
.kh-lang-switcher--polylang li.current-lang a,
.kh-lang-switcher--wpml li.wpml-ls-current-language a {
  color: var(--brand-gold) !important;
}

/* Static switcher items */
.kh-lang-item {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  padding: 0 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  transition: color 0.15s;
}

.kh-lang-item:last-child { border-right: none; }
.kh-lang-item.kh-lang-active { color: var(--brand-gold); }

/* Footer lang bar */
.kh-footer-lang {
  display: flex;
  justify-content: center;
  padding: 12px 0 4px;
}

.kh-footer-lang .kh-lang-switcher,
.kh-footer-lang .kh-lang-switcher--static,
.kh-footer-lang .kh-lang-switcher--polylang,
.kh-footer-lang .kh-lang-switcher--wpml {
  justify-content: center;
}

/* TranslatePress overrides */
.trp-language-switcher,
.trp-language-switcher-shortcode { display: inline-flex !important; align-items: center; gap: 4px; }
.trp-language-switcher a { color: rgba(255,255,255,0.6) !important; font-size: 11px !important; font-weight: 600 !important; text-decoration: none !important; }
.trp-language-switcher a:hover,
.trp-language-switcher .trp-current-language a { color: var(--brand-gold) !important; }

@media (max-width: 768px) {
  .kh-lang-bar { display: none; }
  .kh-footer-lang { padding: 10px 0; }
}

/* ── 17. Blocksy Header — Cambodia-specific overrides ─────── */
/*
 * barkeley.css handles: sticky position, backdrop-blur, border-bottom, z-index.
 * This section only adds Cambodia brand colours to nav links and the cart badge.
 * Avoid !important on background/layout properties — let barkeley.css win those.
 */

/* Navigation links */
.site-header nav a,
.site-header .ct-nav a,
.site-header .main-navigation a,
.site-header ul.menu a {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--barkeley-text);
  text-decoration: none;
  transition: color 0.15s;
}

.site-header nav a:hover,
.site-header .ct-nav a:hover,
.site-header .main-navigation a:hover,
.site-header ul.menu a:hover,
.site-header .current-menu-item > a {
  color: var(--barkeley-accent-strong);
}

/* Cart icon + search icon */
.header-cart-button,
.cart-header-item,
.ct-header-search,
.ct-header .header-search-button,
.header-cart-total {
  color: var(--barkeley-text);
}

.header-cart-button:hover,
.ct-header-search:hover {
  color: var(--barkeley-accent-strong);
}

/* Cart item count badge */
.header-cart-button .cart-count,
.ct-header .cart-count {
  background: var(--barkeley-accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}

/* Dropdown sub-menu */
.site-header .sub-menu,
.site-header .ct-nav .sub-menu {
  background: var(--barkeley-surface);
  border: 1px solid var(--barkeley-line);
  border-radius: var(--barkeley-radius-card);
  box-shadow: var(--barkeley-shadow-soft);
  padding: 8px 0;
}

.site-header .sub-menu a {
  font-size: 13px;
  padding: 8px 18px;
  color: var(--barkeley-text);
}

.site-header .sub-menu a:hover {
  background: var(--barkeley-accent-pale);
  color: var(--barkeley-accent-strong);
}

/* ── 18. Legacy kh-product-card (deprecated, kept for compat) ─ */

.kh-product-card {
  display: flex;
  flex-direction: column;
}

.kh-product-card__link {
  display: block;
  text-decoration: none;
  color: var(--barkeley-text);
  flex: 1;
}

.kh-product-card__link:hover {
  color: var(--barkeley-text);
}

.kh-product-card__btn {
  display: block;
  margin: 0 14px 14px;
  padding: 10px 16px;
  background: var(--barkeley-dark);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  transition: background 0.18s, transform 0.18s;
  cursor: pointer;
}

.kh-product-card__btn:hover {
  background: var(--barkeley-accent-strong);
  color: #fff;
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .kh-product-card__btn {
    font-size: 11px;
    padding: 9px 12px;
    margin: 0 10px 10px;
  }
}

/* ── 19. Barkeley KarseeLL-inspired Shop List ─────────────── */

body.woocommerce-shop,
body.tax-product_cat,
.barkeley-shop {
  background: #fff !important;
  color: #111;
  font-family: Inter, "Noto Sans SC", Arial, Helvetica, sans-serif;
}

body.woocommerce-shop .site-header,
body.woocommerce-shop #header,
body.woocommerce-shop .kh-lang-bar,
body.tax-product_cat .site-header,
body.tax-product_cat #header,
body.tax-product_cat .kh-lang-bar {
  display: none !important;
}

.barkeley-shop-promo {
  background: #f5f8fb;
  padding: 24px;
  text-align: center;
}

.barkeley-shop-promo__inner {
  display: grid;
  gap: 8px;
}

.barkeley-shop-promo p {
  color: #111;
  font-size: clamp(16px, 1.7vw, 18px);
  font-weight: 600;
  line-height: 1.45;
  margin: 0;
}

.barkeley-shop-heading {
  background: #fff;
  padding: 44px 24px 38px;
  text-align: center;
}

.barkeley-shop-heading h1 {
  color: #111;
  font-family: Inter, "Noto Sans SC", Arial, Helvetica, sans-serif;
  font-size: clamp(28px, 3vw, 34px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.1;
  margin: 0;
}

.barkeley-shop-main {
  background: #fff;
  padding: 0 0 72px;
}

.barkeley-shop .barkeley-shell {
  width: min(100% - 48px, 1440px);
}

.barkeley-shop-layout {
  align-items: start;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(240px, 290px) minmax(0, 1fr);
}

.barkeley-shop-sidebar {
  position: sticky;
  top: 24px;
}

.barkeley-shop-sidebar__card {
  background: linear-gradient(180deg, #fffdfb 0%, #ffffff 46%, #fff7ef 100%);
  background-color: #fffaf6;
  border: 1px solid #ece1d6;
  border-radius: 26px;
  box-shadow: 0 22px 48px rgba(36, 24, 17, 0.08);
  opacity: 1;
  padding: 24px 20px;
}

.barkeley-shop-sidebar__head {
  align-items: flex-start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.barkeley-shop-sidebar__title-wrap {
  flex: 1 1 auto;
  min-width: 0;
}

.barkeley-shop-sidebar__eyebrow {
  color: #ff6a00;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.barkeley-shop-sidebar__card h2 {
  color: #111;
  font-family: Inter, "Noto Sans SC", Arial, Helvetica, sans-serif;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.15;
  margin: 0;
}

.barkeley-shop-sidebar__description {
  color: #586174;
  font-size: 14px;
  line-height: 1.55;
  margin: 12px 0 0;
}

.barkeley-shop-sidebar__toggle {
  align-items: center;
  background: linear-gradient(135deg, #fff8f2 0%, #fff 100%);
  background-color: #fffaf4;
  border: 1px solid #e5d6c8;
  border-radius: 999px;
  box-shadow: 0 12px 26px rgba(36, 24, 17, 0.08);
  color: #1f1711;
  cursor: pointer;
  display: none;
  flex: 0 0 auto;
  gap: 10px;
  padding: 10px 12px 10px 16px;
  text-transform: uppercase;
}

.barkeley-shop-sidebar__toggle-text {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  line-height: 1;
}

.barkeley-shop-sidebar__toggle-icon {
  align-items: center;
  background: linear-gradient(135deg, #1c1713 0%, #493123 100%);
  border-radius: 999px;
  display: inline-flex;
  height: 28px;
  justify-content: center;
  transition: transform 0.24s ease;
  width: 28px;
}

.barkeley-shop-sidebar__toggle-icon::before {
  border-bottom: 2px solid #fff;
  border-right: 2px solid #fff;
  content: "";
  display: block;
  height: 7px;
  margin-top: -2px;
  transform: rotate(45deg);
  width: 7px;
}

.barkeley-shop-sidebar.is-open .barkeley-shop-sidebar__toggle-icon {
  transform: rotate(180deg);
}

.barkeley-shop-sidebar__content {
  display: grid;
  gap: 18px;
}

.barkeley-shop-filter-nav {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.barkeley-shop-filter-list {
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.barkeley-shop-filter-item {
  display: grid;
  gap: 10px;
}

.barkeley-shop-filter-item__row {
  align-items: stretch;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.barkeley-shop-filter-list--level-1,
.barkeley-shop-filter-list--level-2,
.barkeley-shop-filter-list--level-3,
.barkeley-shop-filter-list--level-4 {
  border-left: 1px solid #eadfd4;
  gap: 8px;
  margin-top: 2px;
  padding-left: 14px;
}

.barkeley-shop-filter-link {
  align-items: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 248, 242, 0.92) 100%);
  background-color: #fffdf9;
  border: 1px solid #e9dfd5;
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 8px 18px rgba(36, 24, 17, 0.04);
  color: #18130f;
  display: flex;
  font-size: 14px;
  font-weight: 800;
  gap: 10px;
  justify-content: space-between;
  line-height: 1.35;
  min-height: 54px;
  padding: 12px 16px;
  text-decoration: none;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease, background-color 0.22s ease;
}

.barkeley-shop-filter-link:hover,
.barkeley-shop-filter-link:focus-visible {
  background: linear-gradient(180deg, #fffaf5 0%, #fff2e7 100%);
  border-color: #ff6a00;
  box-shadow: 0 0 0 4px rgba(255, 106, 0, 0.08), 0 14px 26px rgba(255, 106, 0, 0.12);
  color: #111;
  transform: translateX(2px);
}

.barkeley-shop-filter-link__label {
  min-width: 0;
}

.barkeley-shop-filter-link__count {
  background: rgba(73, 49, 35, 0.08);
  border-radius: 999px;
  color: #6a5445;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  min-width: 28px;
  padding: 5px 8px;
  text-align: center;
}

.barkeley-shop-filter-link--all,
.barkeley-shop-filter-list--level-0 > .barkeley-shop-filter-item > .barkeley-shop-filter-link {
  font-size: 15px;
  font-weight: 900;
}

.barkeley-shop-filter-list--level-0 > .barkeley-shop-filter-item > .barkeley-shop-filter-item__row > .barkeley-shop-filter-link {
  background: linear-gradient(180deg, #fffdfb 0%, #fff5ea 100%);
}

.barkeley-shop-filter-item.is-current > .barkeley-shop-filter-link,
.barkeley-shop-filter-link--all.is-current {
  background: #fff1e6;
  border-color: #ff6a00;
  box-shadow: 0 10px 22px rgba(255, 106, 0, 0.12);
}

.barkeley-shop-filter-item.is-current > .barkeley-shop-filter-link .barkeley-shop-filter-link__count,
.barkeley-shop-filter-link--all.is-current .barkeley-shop-filter-link__count {
  background: rgba(255, 106, 0, 0.14);
  color: #b84e00;
}

.barkeley-shop-filter-item.is-ancestor > .barkeley-shop-filter-link {
  background: #fffaf6;
  border-color: #ffd6bc;
}

.barkeley-shop-filter-toggle {
  align-items: center;
  align-self: stretch;
  background: linear-gradient(180deg, #fff 0%, #f8eee4 100%);
  background-color: #fdf6ef;
  border: 1px solid #e6d9cc;
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.82);
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  min-width: 50px;
  padding: 0 14px;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.barkeley-shop-filter-toggle:hover,
.barkeley-shop-filter-toggle:focus-visible {
  border-color: #ff6a00;
  box-shadow: 0 0 0 4px rgba(255, 106, 0, 0.08);
  transform: translateY(-1px);
}

.barkeley-shop-filter-toggle__icon {
  display: inline-flex;
  height: 14px;
  transition: transform 0.22s ease;
  width: 14px;
}

.barkeley-shop-filter-toggle__icon::before {
  border-bottom: 2px solid #5a4334;
  border-right: 2px solid #5a4334;
  content: "";
  display: block;
  height: 9px;
  transform: rotate(45deg);
  width: 9px;
}

.barkeley-shop-filter-toggle[aria-expanded="true"] .barkeley-shop-filter-toggle__icon {
  transform: rotate(180deg);
}

.barkeley-shop-filter-branch[hidden] {
  display: none !important;
}

.barkeley-shop-content {
  min-width: 0;
}

.barkeley-shop-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 18px;
}

.barkeley-shop-sort {
  align-items: center;
  display: inline-flex;
  gap: 10px;
}

.barkeley-shop-sort__label {
  color: #586174;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.barkeley-shop-sort__control {
  position: relative;
}

.barkeley-shop-sort__select {
  appearance: none;
  -webkit-appearance: none;
  background: #fff;
  border: 1px solid #d8dde6;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.06);
  color: #111;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  min-height: 46px;
  min-width: 208px;
  padding: 0 42px 0 16px;
}

.barkeley-shop-sort__control::after {
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 7px solid #111;
  content: "";
  pointer-events: none;
  position: absolute;
  right: 16px;
  top: calc(50% - 3px);
}

.barkeley-shop-sort__select:hover,
.barkeley-shop-sort__select:focus-visible {
  border-color: #ff6a00;
  box-shadow: 0 0 0 4px rgba(255, 106, 0, 0.08);
  outline: 0;
}

.woocommerce .barkeley-shop-grid,
.barkeley-shop-grid,
ul.products.barkeley-shop-grid {
  display: grid !important;
  gap: 28px !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  list-style: none;
  margin: 0 !important;
  padding: 0 !important;
}

.woocommerce .barkeley-shop-grid li.product.barkeley-product-card,
.barkeley-shop-grid li.product.barkeley-product-card {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  display: block !important;
  float: none !important;
  margin: 0 !important;
  overflow: visible !important;
  padding: 0 !important;
  transform: none !important;
  width: 100% !important;
}

.barkeley-shop-grid .barkeley-product-card__inner {
  background: #fff;
  border: 1px solid #e4e7eb;
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.04);
  color: #111;
  display: flex;
  flex-direction: column;
  min-height: 580px;
  overflow: hidden;
  text-align: center;
  text-decoration: none;
  transition: border-color 0.28s ease, box-shadow 0.28s ease, transform 0.28s ease;
}

.barkeley-shop-grid .barkeley-product-card__inner:hover,
.barkeley-shop-grid .barkeley-product-card__inner:focus-visible {
  border-color: #ff6a00;
  box-shadow: 0 22px 55px rgba(255, 106, 0, 0.22), 0 0 0 4px rgba(255, 106, 0, 0.08);
  color: #111;
  transform: translateY(-4px);
}

.barkeley-shop-grid .barkeley-product-card__media {
  background: #fff;
  height: 360px;
  overflow: hidden;
  position: relative;
}

.barkeley-shop-grid .barkeley-product-card__image {
  display: block;
  height: 100% !important;
  inset: 0;
  margin: 0 !important;
  object-fit: contain !important;
  padding: 28px;
  position: absolute;
  transition: opacity 0.3s ease, transform 0.3s ease;
  width: 100% !important;
}

.barkeley-shop-grid .barkeley-product-card__image--default {
  opacity: 1;
}

.barkeley-shop-grid .barkeley-product-card__image--hover {
  opacity: 0;
}

.barkeley-shop-grid .barkeley-product-card__inner:hover .barkeley-product-card__image--default,
.barkeley-shop-grid .barkeley-product-card__inner:focus-visible .barkeley-product-card__image--default {
  opacity: 0;
  transform: scale(0.985);
}

.barkeley-shop-grid .barkeley-product-card__inner:hover .barkeley-product-card__image--hover,
.barkeley-shop-grid .barkeley-product-card__inner:focus-visible .barkeley-product-card__image--hover {
  opacity: 1;
  transform: scale(1.01);
}

.barkeley-shop-grid .barkeley-product-card__badges {
  left: 18px;
  position: absolute;
  top: 18px;
  z-index: 4;
}

.barkeley-shop-grid .barkeley-product-card__badges span {
  background: #ff6a00;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  padding: 8px 13px;
  text-transform: none;
}

.barkeley-shop-grid .barkeley-product-card__tooltip {
  background: #f3f4f6;
  border-radius: 10px;
  bottom: 18px;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.16);
  color: #111;
  font-size: 12px;
  font-weight: 600;
  left: 18px;
  line-height: 1.45;
  opacity: 0;
  padding: 10px 12px;
  pointer-events: none;
  position: absolute;
  right: 18px;
  transform: translateY(8px);
  transition: opacity 0.24s ease, transform 0.24s ease;
  z-index: 5;
}

.barkeley-shop-grid .barkeley-product-card__inner:hover .barkeley-product-card__tooltip,
.barkeley-shop-grid .barkeley-product-card__inner:focus-visible .barkeley-product-card__tooltip {
  opacity: 1;
  transform: translateY(0);
}

.barkeley-shop-grid .barkeley-product-card__content {
  align-items: center;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  justify-content: flex-start;
  padding: 24px 20px 22px;
  text-align: center;
}

.barkeley-shop-grid .woocommerce-loop-product__title {
  color: #111 !important;
  font-family: Inter, "Noto Sans SC", Arial, Helvetica, sans-serif !important;
  font-size: 16px !important;
  font-weight: 900 !important;
  line-height: 1.35 !important;
  margin: 0 !important;
  min-height: 44px;
  padding: 0 !important;
}

.barkeley-product-stars {
  align-items: center;
  display: flex;
  gap: 2px;
  justify-content: center;
  min-height: 20px;
}

.barkeley-product-stars__star {
  color: #d8dde6;
  font-size: 16px;
  line-height: 1;
}

.barkeley-product-stars__star.is-filled {
  color: #f5a400;
}

.barkeley-shop-grid .barkeley-product-card__price {
  color: #111;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.3;
  min-height: 24px;
}

.barkeley-shop-grid .barkeley-product-card__price .price {
  color: inherit !important;
  padding: 0 !important;
}

.barkeley-shop-grid .barkeley-product-card__price del,
.barkeley-shop-grid .barkeley-product-card__price .price del {
  color: #8a93a3 !important;
  display: inline-block;
  font-size: 14px !important;
  font-weight: 700 !important;
  margin-right: 6px;
  opacity: 1 !important;
}

.barkeley-shop-grid .barkeley-product-card__price ins,
.barkeley-shop-grid .barkeley-product-card__price .price ins {
  color: #00a63f !important;
  font-weight: 900 !important;
  text-decoration: none !important;
}

.barkeley-shop-grid .barkeley-product-card__coupon {
  align-items: center;
  color: #ff6a00;
  display: inline-flex;
  font-size: 14px;
  font-weight: 800;
  gap: 7px;
  justify-content: center;
  line-height: 1.35;
  margin-top: auto;
  min-height: 38px;
}

.barkeley-shop-grid .barkeley-product-card__coupon span {
  align-items: center;
  border: 1px solid #ff6a00;
  border-radius: 999px;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 11px;
  height: 18px;
  justify-content: center;
  width: 18px;
}

@media (max-width: 1100px) {
  .barkeley-shop-layout {
    grid-template-columns: minmax(220px, 250px) minmax(0, 1fr);
  }

  .woocommerce .barkeley-shop-grid,
  .barkeley-shop-grid,
  ul.products.barkeley-shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 960px) {
  .barkeley-shop-layout {
    grid-template-columns: 1fr;
  }

  .barkeley-shop-sidebar {
    position: static;
  }

  .post-type-archive-product .kh-floating-contact,
  .tax-product_cat .kh-floating-contact {
    display: none !important;
  }

  .barkeley-shop-sidebar__toggle {
    display: inline-flex;
  }

  .barkeley-shop-sidebar__content {
    background: #fffdfb;
    border: 1px solid #f0e4d8;
    border-radius: 22px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 18px 34px rgba(36, 24, 17, 0.06);
    margin-top: 18px;
    padding: 18px 16px 16px;
  }
}

@media (max-width: 640px) {
  .barkeley-shop-promo {
    padding: 20px 16px;
  }

  .barkeley-shop-heading {
    padding: 34px 16px 32px;
  }

  .barkeley-shop .barkeley-shell {
    width: min(100% - 32px, 100%);
  }

  .barkeley-shop-sidebar__card {
    background: #fffaf6;
    background-image: none;
    border-radius: 24px;
    box-shadow: 0 20px 42px rgba(36, 24, 17, 0.1);
    padding: 18px 16px;
  }

  .barkeley-shop-sidebar__card h2 {
    font-size: 22px;
  }

  .barkeley-shop-sidebar__toggle {
    padding: 10px 12px 10px 14px;
  }

  .barkeley-shop-sidebar__toggle-text {
    font-size: 10px;
    letter-spacing: 0.16em;
  }

  .barkeley-shop-sidebar__content {
    gap: 16px;
  }

  .barkeley-shop-filter-nav {
    margin-top: 0;
  }

  .barkeley-shop-toolbar {
    justify-content: stretch;
  }

  .barkeley-shop-sort {
    align-items: stretch;
    display: grid;
    width: 100%;
  }

  .barkeley-shop-sort__select {
    min-width: 0;
    width: 100%;
  }

  .barkeley-shop-filter-link {
    border-radius: 16px;
    min-height: 52px;
    padding: 11px 14px;
  }

  .barkeley-shop-filter-toggle {
    border-radius: 14px;
    min-width: 46px;
    padding: 0 12px;
  }

  .woocommerce .barkeley-shop-grid,
  .barkeley-shop-grid,
  ul.products.barkeley-shop-grid {
    grid-template-columns: 1fr !important;
  }

  .barkeley-shop-grid .barkeley-product-card__inner {
    min-height: 560px;
  }
}

/* ── 20. Compact Product Grids: shop + homepage ───────────── */

.woocommerce .barkeley-shop-grid,
.barkeley-shop-grid,
ul.products.barkeley-shop-grid,
.barkeley-front-page .barkeley-section--products .barkeley-products-grid,
.barkeley-front-page .barkeley-section--products ul.products.barkeley-products-grid {
  gap: 22px !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.barkeley-shop-grid .barkeley-product-card__inner {
  min-height: 500px;
}

.barkeley-shop-grid .barkeley-product-card__media {
  height: clamp(220px, 22vw, 280px);
}

.barkeley-shop-grid .barkeley-product-card__image {
  padding: 18px;
}

.barkeley-shop-grid .barkeley-product-card__content {
  gap: 9px;
  padding: 18px 16px 18px;
}

.barkeley-front-page .barkeley-section--products .barkeley-product-card__media {
  aspect-ratio: auto;
  background: #fff;
  height: clamp(200px, 18vw, 260px);
}

.barkeley-front-page .barkeley-section--products .barkeley-product-card__media img {
  height: 100%;
  object-fit: contain;
  padding: 18px;
  width: 100%;
}

.barkeley-front-page .barkeley-section--products .barkeley-product-card__content {
  gap: 9px;
  padding: 18px 16px;
}

.barkeley-front-page .barkeley-section--products .barkeley-product-card__content h2 {
  font-size: 1rem;
}

.barkeley-front-page .barkeley-section--products .barkeley-product-card__actions .barkeley-button {
  min-height: 40px;
}

@media (max-width: 899px) {
  .woocommerce .barkeley-shop-grid,
  .barkeley-shop-grid,
  ul.products.barkeley-shop-grid,
  .barkeley-front-page .barkeley-section--products .barkeley-products-grid,
  .barkeley-front-page .barkeley-section--products ul.products.barkeley-products-grid {
    gap: 14px !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .barkeley-shop-grid .barkeley-product-card__inner {
    min-height: 420px;
  }

  .barkeley-shop-grid .barkeley-product-card__media,
  .barkeley-front-page .barkeley-section--products .barkeley-product-card__media {
    height: 190px;
  }
}

@media (max-width: 640px) {
  .woocommerce .barkeley-shop-grid,
  .barkeley-shop-grid,
  ul.products.barkeley-shop-grid,
  .barkeley-front-page .barkeley-section--products .barkeley-products-grid,
  .barkeley-front-page .barkeley-section--products ul.products.barkeley-products-grid {
    gap: 12px !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .barkeley-shop-grid .barkeley-product-card__inner {
    border-radius: 12px;
    min-height: 360px;
  }

  .barkeley-shop-grid .barkeley-product-card__media,
  .barkeley-front-page .barkeley-section--products .barkeley-product-card__media {
    height: 150px;
  }

  .barkeley-shop-grid .barkeley-product-card__image,
  .barkeley-front-page .barkeley-section--products .barkeley-product-card__media img {
    padding: 12px;
  }

  .barkeley-shop-grid .barkeley-product-card__content,
  .barkeley-front-page .barkeley-section--products .barkeley-product-card__content {
    gap: 7px;
    padding: 12px 10px;
  }

  .barkeley-shop-grid .woocommerce-loop-product__title,
  .barkeley-front-page .barkeley-section--products .woocommerce-loop-product__title {
    font-size: 12px !important;
    line-height: 1.3 !important;
    min-height: 32px;
  }

  .barkeley-shop-grid .barkeley-product-card__price,
  .barkeley-shop-grid .barkeley-product-card__price .price,
  .barkeley-front-page .barkeley-section--products .barkeley-product-card__price {
    font-size: 13px !important;
  }

  .barkeley-shop-grid .barkeley-product-card__coupon {
    font-size: 11px;
    gap: 5px;
    min-height: 30px;
  }

  .barkeley-shop-grid .barkeley-product-card__coupon span {
    height: 15px;
    width: 15px;
  }

  .barkeley-shop-grid .barkeley-product-card__badges {
    left: 10px;
    top: 10px;
  }

  .barkeley-shop-grid .barkeley-product-card__badges span {
    font-size: 10px;
    padding: 6px 9px;
  }

  .barkeley-shop-grid .barkeley-product-card__tooltip {
    display: none;
  }

  .barkeley-front-page .barkeley-section--products .barkeley-product-card__actions .barkeley-button {
    font-size: 0.78rem;
    min-height: 36px;
    padding: 0 10px;
  }
}

/* ── 20b. Single Product Gallery: external image sizing ───── */

body.single-product {
  background: #fff !important;
  overflow-x: hidden;
}

body.single-product .barkeley-single-hero {
  padding: clamp(28px, 5vw, 58px) 0 28px;
}

body.single-product .barkeley-single-hero .barkeley-shell {
  width: min(100% - 48px, 1320px);
}

body.single-product .barkeley-single-hero__grid {
  align-items: start;
  display: grid !important;
  gap: clamp(28px, 4vw, 56px);
  grid-template-columns: minmax(0, 0.96fr) minmax(360px, 0.78fr);
}

body.single-product .barkeley-single-hero__gallery,
body.single-product .barkeley-single-hero__gallery .product-entry-wrapper {
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  width: 100%;
}

body.single-product .barkeley-single-hero .woocommerce-product-gallery {
  clear: none !important;
  float: none !important;
  margin: 0 auto !important;
  max-width: 620px;
  opacity: 1 !important;
  width: 100% !important;
}

body.single-product .barkeley-single-hero__summary,
body.single-product.woocommerce div.product div.summary {
  clear: none !important;
  float: none !important;
  margin: 0 !important;
  width: auto !important;
}

body.single-product .barkeley-single-gallery {
  margin: 0 auto;
  max-width: min(620px, 100%);
  width: 100%;
}

body.single-product .barkeley-single-gallery__stage {
  align-items: center;
  aspect-ratio: 1 / 1;
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: 22px;
  display: flex;
  justify-content: center;
  margin: 0;
  max-width: 100%;
  min-height: 360px;
  overflow: hidden;
  width: 100%;
}

body.single-product .barkeley-single-gallery__stage a {
  align-items: center;
  display: flex;
  height: 100%;
  justify-content: center;
  width: 100%;
}

body.single-product .barkeley-single-gallery__stage img {
  display: block;
  height: auto;
  max-height: min(520px, 82vw);
  max-width: min(520px, 88%);
  object-fit: contain;
  width: auto;
}

body.single-product .barkeley-single-gallery__stage img[src*="/demo-products/"] {
  height: 88% !important;
  max-height: none !important;
  max-width: 88% !important;
  object-fit: contain !important;
  padding: 0 !important;
  width: 88% !important;
}

body.single-product .barkeley-single-gallery__thumbs {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 14px;
}

body.single-product .barkeley-single-gallery__thumb {
  -webkit-appearance: none;
  align-items: center;
  appearance: none;
  aspect-ratio: 1 / 1;
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: 12px;
  color: inherit;
  cursor: pointer;
  display: flex;
  font: inherit;
  justify-content: center;
  line-height: 0;
  overflow: hidden;
  padding: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

body.single-product .barkeley-single-gallery__thumb.is-active {
  border-color: #d8a980;
}

body.single-product .barkeley-single-gallery__thumb:hover,
body.single-product .barkeley-single-gallery__thumb:focus-visible {
  border-color: #d8a980;
  outline: none;
  transform: translateY(-1px);
}

body.single-product .barkeley-single-gallery__thumb:focus-visible {
  box-shadow: 0 0 0 3px rgba(216, 169, 128, 0.2);
}

body.single-product .barkeley-single-gallery__thumb img {
  height: 100%;
  object-fit: contain;
  padding: 8px;
  width: 100%;
}

body.single-product .barkeley-single-gallery__thumb img[src*="/demo-products/"] {
  object-fit: contain;
  padding: 6px;
}

body.single-product .barkeley-single-hero__summary form.variations_form.cart {
  display: block;
}

body.single-product .barkeley-single-hero__summary .variations {
  border-collapse: separate;
  border-spacing: 0 12px;
  margin-bottom: 18px;
  width: 100%;
}

body.single-product .barkeley-single-hero__summary .variations th,
body.single-product .barkeley-single-hero__summary .variations td {
  display: block;
  padding: 0;
  text-align: left;
}

body.single-product .barkeley-single-hero__summary .variations label {
  color: #233142;
  font-size: 0.95rem;
  font-weight: 700;
}

body.single-product .barkeley-single-hero__summary .variations select {
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: 999px;
  margin-top: 6px;
  min-height: 48px;
  padding: 0 16px;
  width: 100%;
}

body.single-product .barkeley-single-hero__summary .reset_variations {
  color: #8c5a3c;
  display: inline-block;
  margin-top: 8px;
}

body.single-product .barkeley-single-hero__summary .single_variation_wrap,
body.single-product .barkeley-single-hero__summary .woocommerce-variation-add-to-cart {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

body.single-product .barkeley-single-hero__summary .single_variation {
  margin-bottom: 12px;
}

body.single-product .barkeley-variation-note {
  background: #f8fafc;
  border: 1px solid #e8edf3;
  border-radius: 16px;
  color: #233142;
  line-height: 1.6;
  margin-top: 18px;
  padding: 14px 16px;
}

body.single-product .barkeley-single-hero .woocommerce-product-gallery__wrapper {
  background: #f8fafc;
  border: 1px solid #e8edf3;
  border-radius: 22px;
  overflow: hidden;
}

body.single-product .barkeley-single-hero .woocommerce-product-gallery__image,
body.single-product .barkeley-single-hero .woocommerce-product-gallery__image--placeholder,
body.single-product .barkeley-single-hero .cct-external-main-image {
  align-items: center;
  aspect-ratio: 1 / 1;
  background: #fff;
  display: flex !important;
  justify-content: center;
  min-height: 360px;
  width: 100%;
}

body.single-product .barkeley-single-hero .woocommerce-product-gallery__image a,
body.single-product .barkeley-single-hero .cct-external-main-image a {
  align-items: center;
  background: transparent;
  display: flex !important;
  height: 100%;
  justify-content: center;
  width: 100%;
}

body.single-product .barkeley-single-hero .woocommerce-product-gallery img,
body.single-product .barkeley-single-hero .woocommerce-product-gallery__image img,
body.single-product .barkeley-single-hero .woocommerce-product-gallery__image--placeholder img {
  border-radius: 0 !important;
  display: block;
  height: auto !important;
  margin: 0 auto !important;
  max-height: min(520px, 82vw) !important;
  max-width: min(520px, 88%) !important;
  object-fit: contain !important;
  padding: clamp(18px, 3vw, 34px);
  width: auto !important;
}

body.single-product .barkeley-single-hero .flex-control-thumbs {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 14px;
}

body.single-product .barkeley-single-hero .flex-control-thumbs li {
  aspect-ratio: 1 / 1;
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: 12px;
  overflow: hidden;
}

body.single-product .barkeley-single-hero .flex-control-thumbs img {
  height: 100% !important;
  max-height: none !important;
  max-width: none !important;
  object-fit: contain !important;
  padding: 8px;
  width: 100% !important;
}

body.single-product .barkeley-single-hero__summary {
  border-radius: 22px;
  box-shadow: 0 18px 45px rgba(17, 24, 39, 0.07);
  box-sizing: border-box;
  max-width: 100%;
  overflow-wrap: anywhere;
  padding: clamp(22px, 3vw, 34px) !important;
}

body.single-product .barkeley-single-hero__summary .product_title {
  font-size: clamp(28px, 3vw, 44px) !important;
  letter-spacing: 0;
}

body.single-product .barkeley-single-hero__summary .woocommerce-product-details__short-description,
body.single-product .barkeley-single-hero__summary .woocommerce-product-details__short-description p {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (max-width: 980px) {
  body.single-product .barkeley-single-hero .barkeley-shell {
    width: min(100% - 32px, 100%);
  }

  body.single-product .barkeley-single-hero__grid {
    grid-template-columns: 1fr;
  }

  body.single-product .barkeley-single-hero .woocommerce-product-gallery {
    max-width: 560px;
  }
}

@media (max-width: 640px) {
  body.single-product .barkeley-single-hero {
    padding-top: 22px;
  }

  body.single-product .barkeley-single-hero .barkeley-shell {
    width: min(calc(100% - 24px), 100%);
  }

  body.single-product .barkeley-single-gallery,
  body.single-product .barkeley-single-gallery__stage {
    max-width: calc(100vw - 24px) !important;
    width: 100%;
  }

  body.single-product .barkeley-single-hero__gallery {
    max-width: calc(100vw - 24px) !important;
  }

  body.single-product .barkeley-single-hero .woocommerce-product-gallery__image,
  body.single-product .barkeley-single-hero .woocommerce-product-gallery__image--placeholder,
  body.single-product .barkeley-single-hero .cct-external-main-image {
    min-height: 280px;
  }

  body.single-product .barkeley-single-hero .woocommerce-product-gallery img,
  body.single-product .barkeley-single-hero .woocommerce-product-gallery__image img,
  body.single-product .barkeley-single-hero .woocommerce-product-gallery__image--placeholder img {
    max-height: 300px !important;
    max-width: 86% !important;
    padding: 16px;
  }

  body.single-product .barkeley-single-gallery__stage {
    justify-content: flex-start;
    min-height: 0;
  }

  body.single-product .barkeley-single-gallery__stage a {
    justify-content: flex-start;
  }

  body.single-product .barkeley-single-gallery__stage img[src*="/demo-products/"] {
    height: 88% !important;
    max-height: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
    object-fit: contain !important;
    width: 88% !important;
  }

  body.single-product .barkeley-single-hero__summary {
    border-radius: 18px;
    max-width: calc(100vw - 24px) !important;
    width: calc(100vw - 24px) !important;
  }
}

/* ── 21. Shared Site Header ───────────────────────────────── */
body.cct-has-site-header {
  padding-top: 82px;
}

body.cct-menu-open {
  overflow: hidden;
}

body.cct-menu-open .cct-site-header {
  background: #fff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body.cct-menu-open .cct-site-header__drawer {
  inset: 0;
  background: #fff;
  height: 100dvh;
  min-height: 100vh;
  opacity: 1 !important;
  pointer-events: auto;
}

body.cct-menu-open .cct-site-header__drawer-panel {
  width: min(360px, 100vw);
  max-width: 100vw;
  height: 100dvh;
  min-height: 100vh;
  box-shadow: none;
  transform: none !important;
}

body.cct-has-site-header #header,
body.cct-has-site-header .kh-lang-bar {
  display: none !important;
}

.cct-site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 120;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(22, 34, 53, 0.08);
  box-shadow: 0 18px 50px rgba(20, 22, 33, 0.06);
  backdrop-filter: blur(18px);
}

.admin-bar .cct-site-header {
  top: 32px;
}

.cct-site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 82px;
  width: min(1400px, calc(100vw - 32px));
  margin: 0 auto;
}

.cct-site-header__brand {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--brand-text);
  text-decoration: none;
}

.cct-site-header__brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
}

.cct-site-header__brand-name {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.3em;
  white-space: nowrap;
}

.cct-site-header__nav,
.cct-site-header__nav ul,
.cct-site-header__tools {
  display: flex;
  align-items: center;
}

.cct-site-header__nav {
  min-width: 0;
}

.cct-site-header__nav ul {
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cct-site-header__nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 82px;
  color: var(--brand-text);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.cct-site-header__nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: #3b2355;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.cct-site-header__nav a:hover::after,
.cct-site-header__nav a.is-active::after {
  transform: scaleX(1);
}

.cct-site-header__tools {
  margin-left: auto;
  gap: 14px;
}

.cct-site-header__icon,
.cct-site-header__currency {
  color: var(--brand-text);
  font-family: var(--font-sans);
  text-decoration: none;
}

.cct-site-header__icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

button.cct-site-header__icon {
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.cct-site-header__icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.cct-site-header__currency {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.cct-site-header__search-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  width: min(720px, calc(100vw - 32px));
  transform: translate(-50%, -8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
  z-index: 2;
}

.cct-site-header__search-panel.is-open {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}

.cct-site-header__search-form {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto 34px;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  margin: 0;
  padding: 8px 10px 8px 18px;
  border: 1px solid rgba(31, 31, 31, 0.1);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(17, 24, 39, 0.12);
}

.cct-site-header__search-form-icon {
  color: #4a4a4a;
  fill: currentColor;
}

.cct-site-header__search-input {
  min-width: 0;
  width: 100%;
  border: 0;
  background: transparent;
  color: #1f1f1f;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  outline: 0;
}

.cct-site-header__search-input::placeholder {
  color: rgba(31, 31, 31, 0.42);
}

.cct-site-header__search-submit,
.cct-site-header__search-close {
  appearance: none;
  border: 0;
  cursor: pointer;
  font-family: var(--font-sans);
}

.cct-site-header__search-submit {
  min-height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  background: #3b2355;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.cct-site-header__search-close {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #f5f2f7;
  color: #3b2355;
  font-size: 22px;
  line-height: 1;
}

.cct-site-header__search-results {
  display: none;
  margin-top: 8px;
  max-height: 260px;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid rgba(31, 31, 31, 0.08);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(17, 24, 39, 0.1);
}

.cct-site-header__search-results.has-results {
  display: block;
}

.cct-site-header__search-result,
.cct-site-header__search-all,
.cct-site-header__search-message {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 16px;
  color: #1f1f1f;
  font-family: var(--font-sans);
  text-decoration: none;
}

.cct-site-header__search-result + .cct-site-header__search-result,
.cct-site-header__search-all {
  border-top: 1px solid #f0edf2;
}

.cct-site-header__search-result:hover,
.cct-site-header__search-all:hover {
  background: #f8f4fb;
  color: #3b2355;
}

.cct-site-header__search-result-title {
  min-width: 0;
  overflow: hidden;
  font-size: 14px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cct-site-header__search-result-type {
  flex: 0 0 auto;
  color: #8a789b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cct-site-header__search-all {
  justify-content: center;
  color: #3b2355;
  font-size: 13px;
  font-weight: 800;
}

.cct-site-header__search-message {
  justify-content: center;
  color: #6f6478;
  font-size: 13px;
  font-weight: 700;
}

.cct-site-header__language .kh-lang-switcher,
.cct-site-header__language .kh-lang-switcher--static,
.cct-site-header__language .kh-lang-switcher--polylang,
.cct-site-header__language .kh-lang-switcher--wpml,
.cct-site-header__drawer-language .kh-lang-switcher,
.cct-site-header__drawer-language .kh-lang-switcher--static,
.cct-site-header__drawer-language .kh-lang-switcher--polylang,
.cct-site-header__drawer-language .kh-lang-switcher--wpml {
  gap: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.cct-site-header__language .kh-lang-item,
.cct-site-header__language .kh-lang-switcher a,
.cct-site-header__language .kh-lang-switcher--polylang a,
.cct-site-header__language .kh-lang-switcher--wpml a,
.cct-site-header__drawer-language .kh-lang-item,
.cct-site-header__drawer-language .kh-lang-switcher a,
.cct-site-header__drawer-language .kh-lang-switcher--polylang a,
.cct-site-header__drawer-language .kh-lang-switcher--wpml a {
  color: var(--brand-text);
  font-size: 12px;
  font-weight: 700;
  padding: 0 0 0 12px;
}

.cct-site-header__cart-count {
  position: absolute;
  right: -2px;
  top: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #3b2355;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

.cct-site-header__menu-toggle,
.cct-site-header__drawer-close {
  display: none;
  border: 0;
  background: transparent;
  color: var(--brand-text);
}

.cct-site-header__menu-toggle {
  width: 42px;
  height: 42px;
  padding: 0;
}

.cct-site-header__menu-toggle span:not(.screen-reader-text) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.cct-site-header__drawer {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  justify-content: flex-start;
  background: #fff;
  height: 100dvh;
  min-height: 100vh;
}

.cct-site-header__drawer[aria-hidden="false"] {
  display: flex;
}

.cct-site-header__drawer-panel {
  width: min(360px, 100vw);
  max-width: 100vw;
  height: 100dvh;
  min-height: 100vh;
  padding: 28px 24px;
  background: #fff;
  box-shadow: none;
  transform: none;
}

.cct-site-header__drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.cct-site-header__drawer-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 32px;
  line-height: 1;
}

.cct-site-header__drawer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cct-site-header__drawer-nav a {
  display: block;
  padding: 16px 0;
  border-bottom: 1px solid rgba(22, 34, 53, 0.08);
  color: var(--brand-text);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.cct-site-header__drawer-language {
  margin-top: 24px;
}

@media (max-width: 1100px) {
  body.cct-has-site-header {
    padding-top: 76px;
  }

  .cct-site-header__inner {
    min-height: 76px;
  }

  .cct-site-header__nav,
  .cct-site-header__icon--desktop {
    display: none;
  }

  .cct-site-header__menu-toggle,
  .cct-site-header__drawer-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .cct-site-header__brand-name {
    font-size: 15px;
    letter-spacing: 0.22em;
  }
}

@media (max-width: 782px) {
  .admin-bar .cct-site-header {
    top: 46px;
  }
}

@media (max-width: 640px) {
  .cct-site-header__inner {
    width: calc(100vw - 20px);
    gap: 12px;
  }

  .cct-site-header__brand {
    gap: 10px;
  }

  .cct-site-header__brand-mark {
    width: 34px;
    height: 34px;
    font-size: 20px;
  }

  .cct-site-header__brand-name {
    display: none;
  }

  .cct-site-header__tools {
    gap: 8px;
  }

  .cct-site-header__search-panel {
    top: calc(100% + 8px);
    width: calc(100vw - 20px);
  }

  .cct-site-header__search-form {
    grid-template-columns: 22px minmax(0, 1fr) 32px;
    min-height: 52px;
    padding: 7px 8px 7px 14px;
    border-radius: 16px;
  }

  .cct-site-header__search-submit {
    display: none;
  }

  .cct-site-header__search-input {
    font-size: 15px;
  }

  .cct-site-header__search-result,
  .cct-site-header__search-all,
  .cct-site-header__search-message {
    padding: 12px 14px;
  }
}

/* ── 22. Homepage Hero + Promo Tiles ─────────────────────── */
.cct-home-hero {
  padding: 10px 10px 0;
}

.cct-home-hero__frame {
  position: relative;
  width: min(1480px, calc(100vw - 20px));
  height: clamp(320px, 42vw, 560px);
  margin: 0 auto;
  overflow: hidden;
  border-radius: 6px;
  background: #e9e4ec;
}

.cct-home-hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.cct-home-hero__slide.is-active {
  opacity: 1;
}

.cct-home-hero__image,
.cct-home-hero__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.cct-home-hero__image {
  object-fit: cover;
}

.cct-home-hero__overlay {
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.54) 0%, rgba(17, 24, 39, 0.26) 46%, rgba(17, 24, 39, 0.08) 100%);
}

.cct-home-hero__copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  max-width: 760px;
  padding: clamp(28px, 5vw, 72px);
  color: #fff;
}

.cct-home-hero__eyebrow {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.cct-home-hero__copy h1 {
  margin: 0;
  max-width: 680px;
  color: #fff;
  font-family: var(--font-sans);
  font-size: clamp(2.1rem, 4.5vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.cct-home-hero__copy p:last-of-type {
  margin: 18px 0 0;
  max-width: 470px;
  color: rgba(255, 255, 255, 0.88);
  font-family: var(--font-sans);
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  line-height: 1.7;
}

.cct-home-hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin-top: 26px;
  padding: 0 24px;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.cct-home-hero__cta:hover {
  background: #fff;
  color: var(--brand-text);
}

.cct-home-hero__dots {
  position: absolute;
  left: 50%;
  bottom: 20px;
  z-index: 2;
  display: flex;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  transform: translateX(-50%);
}

.cct-home-hero__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 1px solid #2a2430;
  border-radius: 999px;
  background: transparent;
}

.cct-home-hero__dot.is-active {
  background: #3b2355;
}

.cct-home-promos {
  padding: 36px 16px 0;
}

.cct-home-promos__grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(1320px, calc(100vw - 32px));
  margin: 0 auto;
}

.cct-home-promos__card {
  position: relative;
  min-height: 190px;
  padding: 30px 30px 28px;
  overflow: hidden;
  border-radius: 24px;
  background: var(--cct-promo-bg, #f1e8f6);
}

.cct-home-promos__eyebrow {
  position: relative;
  z-index: 1;
  margin: 0 0 14px;
  color: color-mix(in srgb, var(--cct-promo-accent, #7c2bbf) 78%, #222 22%);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.cct-home-promos__card h2 {
  position: relative;
  z-index: 1;
  max-width: 360px;
  margin: 0;
  color: var(--brand-text);
  font-family: var(--font-sans);
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.05;
}

.cct-home-promos__card p:last-of-type {
  position: relative;
  z-index: 1;
  max-width: 330px;
  margin: 16px 0 0;
  color: #5a5463;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.7;
}

.cct-home-promos__orb,
.cct-home-promos__corner {
  position: absolute;
  background: var(--cct-promo-accent, #7c2bbf);
}

.cct-home-promos__orb {
  top: -34px;
  right: -34px;
  width: 124px;
  height: 124px;
  border-radius: 999px;
  opacity: 0.12;
}

.cct-home-promos__corner {
  right: 28px;
  bottom: 28px;
  width: 64px;
  height: 64px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 20px;
  opacity: 0.95;
}

@media (max-width: 1024px) {
  .cct-home-promos__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cct-home-promos__card:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .cct-home-hero {
    padding: 8px 8px 0;
  }

  .cct-home-hero__frame {
    width: calc(100vw - 16px);
    height: 310px;
  }

  .cct-home-hero__copy {
    padding: 24px 20px 58px;
  }

  .cct-home-hero__copy p:last-of-type {
    font-size: 13px;
    line-height: 1.55;
  }

  .cct-home-hero__cta {
    min-height: 42px;
    margin-top: 20px;
    padding: 0 18px;
    font-size: 13px;
  }

  .cct-home-promos {
    padding: 26px 12px 0;
  }

  .cct-home-promos__grid {
    width: calc(100vw - 24px);
    gap: 14px;
    grid-template-columns: 1fr;
  }

  .cct-home-promos__card,
  .cct-home-promos__card:last-child {
    min-height: 170px;
    padding: 24px 22px 22px;
    grid-column: auto;
  }

  .cct-home-promos__corner {
    right: 20px;
    bottom: 20px;
    width: 56px;
    height: 56px;
  }
}

/* ── 23. Unified Product Cards ───────────────────────────── */
.cct-product-card,
.barkeley-shop-grid .cct-product-card,
.barkeley-front-page .barkeley-section--products .cct-product-card {
  background: #fff;
  border: 1px solid #ece4f1;
  border-radius: 24px;
  box-shadow: 0 18px 36px rgba(31, 24, 41, 0.06);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.cct-product-card:hover,
.cct-product-card:focus-visible {
  border-color: #d7c8e3;
  box-shadow: 0 22px 48px rgba(31, 24, 41, 0.12);
  transform: translateY(-4px);
}

.cct-product-card .barkeley-product-card__media,
.barkeley-shop-grid .cct-product-card .barkeley-product-card__media,
.barkeley-front-page .barkeley-section--products .cct-product-card .barkeley-product-card__media {
  position: relative;
  aspect-ratio: auto;
  height: clamp(220px, 24vw, 320px);
  background: linear-gradient(180deg, #f6effa 0%, #efe5f6 100%);
}

.cct-product-card .barkeley-product-card__image,
.cct-product-card .barkeley-product-card__media > img,
.barkeley-front-page .barkeley-section--products .cct-product-card .barkeley-product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 22px;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.cct-product-card:hover .barkeley-product-card__image--default,
.cct-product-card:focus-visible .barkeley-product-card__image--default {
  opacity: 0;
  transform: scale(1.04);
}

.cct-product-card:hover .barkeley-product-card__image--hover,
.cct-product-card:focus-visible .barkeley-product-card__image--hover {
  opacity: 1;
  transform: scale(1);
}

.cct-product-card .barkeley-product-card__badges,
.barkeley-shop-grid .cct-product-card .barkeley-product-card__badges {
  left: 14px;
  top: 14px;
  gap: 8px;
}

.cct-product-card .barkeley-product-card__badges span,
.barkeley-shop-grid .cct-product-card .barkeley-product-card__badges span {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(197, 179, 214, 0.6);
  color: #5d476e;
  font-size: 11px;
  padding: 7px 10px;
}

.cct-product-card .barkeley-product-card__tooltip,
.barkeley-shop-grid .cct-product-card .barkeley-product-card__tooltip {
  left: 16px;
  right: 16px;
  bottom: 16px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 30px rgba(27, 21, 38, 0.12);
  color: #46364f;
  font-size: 12px;
  line-height: 1.45;
}

.cct-product-card .barkeley-product-card__content,
.barkeley-shop-grid .cct-product-card .barkeley-product-card__content,
.barkeley-front-page .barkeley-section--products .cct-product-card .barkeley-product-card__content {
  gap: 10px;
  padding: 20px 18px 20px;
}

.cct-product-card .woocommerce-loop-product__title,
.barkeley-shop-grid .cct-product-card .woocommerce-loop-product__title,
.barkeley-front-page .barkeley-section--products .cct-product-card .woocommerce-loop-product__title {
  min-height: 2.6em;
  margin: 0;
  color: var(--brand-text);
  font-family: var(--font-sans);
  font-size: 1rem !important;
  font-weight: 700;
  line-height: 1.34 !important;
}

.cct-product-card .barkeley-rating {
  min-height: 18px;
}

.cct-product-card .barkeley-rating .star-rating {
  color: #c79252;
  font-size: 0.82rem;
}

.cct-product-card .barkeley-product-card__price,
.barkeley-shop-grid .cct-product-card .barkeley-product-card__price,
.barkeley-front-page .barkeley-section--products .cct-product-card .barkeley-product-card__price {
  color: #241a2c;
  font-family: var(--font-sans);
  font-size: 1rem !important;
  font-weight: 800;
}

.cct-product-card .barkeley-product-card__price del,
.cct-product-card .barkeley-product-card__price .price del {
  color: #9c8fa6;
}

.cct-product-card .barkeley-product-card__price ins,
.cct-product-card .barkeley-product-card__price .price ins {
  color: #241a2c;
}

.cct-product-card .barkeley-product-card__coupon,
.barkeley-shop-grid .cct-product-card .barkeley-product-card__coupon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #f5eff9;
  color: #5c446d;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
}

.cct-product-card .barkeley-product-card__coupon span,
.barkeley-shop-grid .cct-product-card .barkeley-product-card__coupon span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #7c2bbf;
  color: #fff;
  font-size: 10px;
}

@media (max-width: 899px) {
  .cct-product-card .barkeley-product-card__media,
  .barkeley-shop-grid .cct-product-card .barkeley-product-card__media,
  .barkeley-front-page .barkeley-section--products .cct-product-card .barkeley-product-card__media {
    height: 200px;
  }
}

@media (max-width: 640px) {
  .cct-product-card,
  .barkeley-shop-grid .cct-product-card,
  .barkeley-front-page .barkeley-section--products .cct-product-card {
    border-radius: 16px;
  }

  .cct-product-card .barkeley-product-card__media,
  .barkeley-shop-grid .cct-product-card .barkeley-product-card__media,
  .barkeley-front-page .barkeley-section--products .cct-product-card .barkeley-product-card__media {
    height: 160px;
  }

  .cct-product-card .barkeley-product-card__image,
  .cct-product-card .barkeley-product-card__media > img,
  .barkeley-front-page .barkeley-section--products .cct-product-card .barkeley-product-card__media img {
    padding: 14px;
  }

  .cct-product-card .barkeley-product-card__content,
  .barkeley-shop-grid .cct-product-card .barkeley-product-card__content,
  .barkeley-front-page .barkeley-section--products .cct-product-card .barkeley-product-card__content {
    padding: 14px 12px 14px;
  }

  .cct-product-card .woocommerce-loop-product__title,
  .barkeley-shop-grid .cct-product-card .woocommerce-loop-product__title,
  .barkeley-front-page .barkeley-section--products .cct-product-card .woocommerce-loop-product__title {
    font-size: 12px !important;
  }

  .cct-product-card .barkeley-product-card__coupon,
  .barkeley-shop-grid .cct-product-card .barkeley-product-card__coupon {
    gap: 6px;
    min-height: 30px;
    padding: 6px 10px;
    font-size: 10px;
  }

  .cct-product-card .barkeley-product-card__coupon span,
  .barkeley-shop-grid .cct-product-card .barkeley-product-card__coupon span {
    width: 15px;
    height: 15px;
  }
}

/* ── 24. Layout Size Normalization ───────────────────────── */
body.cct-has-site-header {
  --cct-shell: min(1320px, calc(100vw - 32px));
}

body.barkeley-front-page #main.site-main,
body.woocommerce-shop #main.site-main,
body.tax-product_cat #main.site-main {
  padding-top: 0 !important;
}

body.barkeley-front-page .barkeley-home,
body.woocommerce-shop .barkeley-shop,
body.tax-product_cat .barkeley-shop {
  width: 100%;
  max-width: none;
  margin: 0;
}

.cct-site-header__inner,
.cct-home-hero__frame,
.cct-home-promos__grid,
body.barkeley-front-page .barkeley-section--products .barkeley-shell,
body.woocommerce-shop .barkeley-shop .barkeley-shell,
body.tax-product_cat .barkeley-shop .barkeley-shell {
  width: var(--cct-shell);
}

.cct-home-hero__frame {
  height: clamp(300px, 36vw, 470px);
}

.cct-home-promos {
  padding-top: 28px;
}

body.barkeley-front-page .barkeley-section--products .barkeley-products-grid,
body.barkeley-front-page .barkeley-section--products ul.products.barkeley-products-grid,
body.woocommerce-shop .barkeley-shop-grid,
body.woocommerce-shop ul.products.barkeley-shop-grid,
body.tax-product_cat .barkeley-shop-grid,
body.tax-product_cat ul.products.barkeley-shop-grid {
  gap: 18px !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

body.barkeley-front-page .cct-product-card,
body.woocommerce-shop .cct-product-card,
body.tax-product_cat .cct-product-card {
  min-height: 0 !important;
}

body.barkeley-front-page .cct-product-card .barkeley-product-card__media,
body.woocommerce-shop .cct-product-card .barkeley-product-card__media,
body.tax-product_cat .cct-product-card .barkeley-product-card__media {
  height: clamp(250px, 24vw, 330px) !important;
}

body.barkeley-front-page .cct-product-card .barkeley-product-card__image,
body.barkeley-front-page .cct-product-card .barkeley-product-card__media > img,
body.woocommerce-shop .cct-product-card .barkeley-product-card__image,
body.woocommerce-shop .cct-product-card .barkeley-product-card__media > img,
body.tax-product_cat .cct-product-card .barkeley-product-card__image,
body.tax-product_cat .cct-product-card .barkeley-product-card__media > img {
  padding: 18px !important;
}

body.barkeley-front-page .cct-product-card .barkeley-product-card__content,
body.woocommerce-shop .cct-product-card .barkeley-product-card__content,
body.tax-product_cat .cct-product-card .barkeley-product-card__content {
  gap: 9px;
  padding: 16px 14px 16px !important;
}

/* Keep homepage and shop product cards on the same Main/Hover image stack. */
body.barkeley-front-page .barkeley-home-products-grid .cct-product-card .barkeley-product-card__media,
body.woocommerce-shop .barkeley-shop-grid .cct-product-card .barkeley-product-card__media,
body.tax-product_cat .barkeley-shop-grid .cct-product-card .barkeley-product-card__media {
  background: #fff !important;
  overflow: hidden;
  position: relative;
}

body.barkeley-front-page .barkeley-home-products-grid .cct-product-card .barkeley-product-card__image,
body.woocommerce-shop .barkeley-shop-grid .cct-product-card .barkeley-product-card__image,
body.tax-product_cat .barkeley-shop-grid .cct-product-card .barkeley-product-card__image {
  display: block;
  height: 100% !important;
  inset: 0;
  margin: 0 !important;
  object-fit: contain !important;
  position: absolute;
  transition: opacity 0.3s ease, transform 0.3s ease;
  width: 100% !important;
}

body.barkeley-front-page .barkeley-home-products-grid .cct-product-card .barkeley-product-card__image--default,
body.woocommerce-shop .barkeley-shop-grid .cct-product-card .barkeley-product-card__image--default,
body.tax-product_cat .barkeley-shop-grid .cct-product-card .barkeley-product-card__image--default {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

body.barkeley-front-page .barkeley-home-products-grid .cct-product-card .barkeley-product-card__image--hover,
body.woocommerce-shop .barkeley-shop-grid .cct-product-card .barkeley-product-card__image--hover,
body.tax-product_cat .barkeley-shop-grid .cct-product-card .barkeley-product-card__image--hover {
  opacity: 0;
  transform: scale(0.995);
  z-index: 2;
}

body.barkeley-front-page .barkeley-home-products-grid .cct-product-card:hover .barkeley-product-card__image--default,
body.barkeley-front-page .barkeley-home-products-grid .cct-product-card:focus-visible .barkeley-product-card__image--default,
body.woocommerce-shop .barkeley-shop-grid .cct-product-card:hover .barkeley-product-card__image--default,
body.woocommerce-shop .barkeley-shop-grid .cct-product-card:focus-visible .barkeley-product-card__image--default,
body.tax-product_cat .barkeley-shop-grid .cct-product-card:hover .barkeley-product-card__image--default,
body.tax-product_cat .barkeley-shop-grid .cct-product-card:focus-visible .barkeley-product-card__image--default {
  opacity: 0;
  transform: scale(0.985);
}

body.barkeley-front-page .barkeley-home-products-grid .cct-product-card:hover .barkeley-product-card__image--hover,
body.barkeley-front-page .barkeley-home-products-grid .cct-product-card:focus-visible .barkeley-product-card__image--hover,
body.woocommerce-shop .barkeley-shop-grid .cct-product-card:hover .barkeley-product-card__image--hover,
body.woocommerce-shop .barkeley-shop-grid .cct-product-card:focus-visible .barkeley-product-card__image--hover,
body.tax-product_cat .barkeley-shop-grid .cct-product-card:hover .barkeley-product-card__image--hover,
body.tax-product_cat .barkeley-shop-grid .cct-product-card:focus-visible .barkeley-product-card__image--hover {
  opacity: 1;
  transform: scale(1.01);
}

@media (max-width: 1024px) {
  body.cct-has-site-header {
    --cct-shell: min(100vw - 28px, 100%);
  }

  .cct-home-hero__frame {
    height: 360px;
  }

  body.barkeley-front-page .barkeley-section--products .barkeley-products-grid,
  body.barkeley-front-page .barkeley-section--products ul.products.barkeley-products-grid,
  body.woocommerce-shop .barkeley-shop-grid,
  body.woocommerce-shop ul.products.barkeley-shop-grid,
  body.tax-product_cat .barkeley-shop-grid,
  body.tax-product_cat ul.products.barkeley-shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  body.cct-has-site-header {
    --cct-shell: calc(100vw - 24px);
  }

  .cct-home-hero__frame {
    height: 292px;
  }

  .cct-home-promos {
    padding-top: 22px;
  }

  body.barkeley-front-page .cct-product-card .barkeley-product-card__media,
  body.woocommerce-shop .cct-product-card .barkeley-product-card__media,
  body.tax-product_cat .cct-product-card .barkeley-product-card__media {
    height: 170px !important;
  }

  body.barkeley-front-page .cct-product-card .barkeley-product-card__image,
  body.barkeley-front-page .cct-product-card .barkeley-product-card__media > img,
  body.woocommerce-shop .cct-product-card .barkeley-product-card__image,
  body.woocommerce-shop .cct-product-card .barkeley-product-card__media > img,
  body.tax-product_cat .cct-product-card .barkeley-product-card__image,
  body.tax-product_cat .cct-product-card .barkeley-product-card__media > img {
    padding: 12px !important;
  }
}
