/*
Theme Name: Mochachio Coffee
Theme URI: https://mochachiocoffee.com
Author: Mochachio Coffee
Description: A warm, artisanal WooCommerce theme for Mochachio Coffee — single-origin coffee sourced exclusively from Colombia and Brazil.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.6
WC requires at least: 8.0
WC tested up to: 9.0
Text Domain: mochachio
*/

/* ==========================================================================
   1. Design tokens
   ========================================================================== */

:root {
  --espresso-50: #F6F1EC;
  --espresso-100: #EAE0D5;
  --espresso-200: #D3C0AA;
  --espresso-300: #B69874;
  --espresso-400: #8B6544;
  --espresso-500: #6B4A2E;
  --espresso-600: #523823;
  --espresso-700: #3D2A1B;
  --espresso-800: #2B1D13;
  --espresso-900: #1B120B;

  --terracotta-50: #FBF0EA;
  --terracotta-100: #F5DCCB;
  --terracotta-200: #E9B494;
  --terracotta-300: #DD8C61;
  --terracotta-400: #CC6B3E;
  --terracotta-500: #B5522E;
  --terracotta-600: #943F22;
  --terracotta-700: #712F1A;
  --terracotta-800: #4F2113;
  --terracotta-900: #33150C;

  --latte-50: #FFFDF9;
  --latte-100: #FBF5EA;
  --latte-200: #F5EAD3;
  --latte-300: #EEDDB8;
  --latte-400: #E4CA92;

  --highland-50: #EFF4EC;
  --highland-100: #D9E6D0;
  --highland-200: #B3CDA2;
  --highland-300: #8CB374;
  --highland-400: #6B9852;
  --highland-500: #527A3D;
  --highland-600: #40602F;
  --highland-700: #304822;
  --highland-800: #213216;
  --highland-900: #141E0D;

  --font-display: 'Fraunces', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --container-max: 1280px;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-full: 999px;
}

/* ==========================================================================
   2. Reset & base
   ========================================================================== */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--latte-100);
  color: var(--espresso-700);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

/* Strip native chrome from every button-like element first, so the
   ".button" polish below (and every .btn-* variant, icon button, chip,
   etc. elsewhere in this file) starts from the same clean slate instead
   of fighting browser/OS default styling. */
button,
input[type="submit"],
input[type="button"],
input[type="reset"] {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
}

/* Classy default look for every native/plugin-rendered button on the site
   that doesn't already carry one of this theme's own .btn-* classes —
   WooCommerce consistently marks its own cart, checkout, coupon, and
   My Account buttons with class="button" (occasionally "button alt" for
   the emphasized one, e.g. Place Order), and WordPress's default comment
   form renders a plain <input type="submit">. Declared here, before the
   .btn family below, so anything that also carries .btn/.btn-primary/etc.
   still resolves to that more specific styling instead. */
.button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: var(--radius-full);
  border: 1.5px solid transparent;
  background: var(--espresso-800);
  color: var(--latte-50);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.2;
  box-shadow: 0 1px 2px rgba(43,29,19,.08);
  transition: background-color .25s ease, box-shadow .25s ease, transform .15s ease, border-color .25s ease, color .25s ease;
}
.button:hover { background: var(--terracotta-500); box-shadow: 0 10px 24px rgba(181,82,46,.22); transform: translateY(-1px); }
.button:active { transform: translateY(0) scale(.98); box-shadow: 0 1px 2px rgba(43,29,19,.08); }
.button:focus-visible,
input[type="submit"]:focus-visible { outline: 2px solid var(--terracotta-400); outline-offset: 2px; }
.button.disabled,
.button:disabled,
.button.loading { opacity: .45; cursor: not-allowed; pointer-events: none; transform: none; box-shadow: none; }

/* WooCommerce's own emphasis modifier for the primary action in a group
   (Place Order, Proceed to Checkout, Pay for Order). */
.button.alt,
.checkout-button { background: var(--terracotta-500); }
.button.alt:hover,
.checkout-button:hover { background: var(--terracotta-600); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--espresso-800);
  margin: 0;
  line-height: 1.1;
}

::selection { background: var(--terracotta-400); color: var(--latte-50); }

.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 24px;
}

/* Generic WordPress Pages (page.php) read as body copy, not a wide layout —
   same readable-width pattern as blog posts (.single-post-content) and
   recipe instructions (.recipe-instructions). */
.page-content-wrap {
  max-width: 760px;
  padding-bottom: 96px;
}

.italic { font-style: italic; }
.text-terracotta { color: var(--terracotta-500); }

.screen-reader-text {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* ==========================================================================
   3. Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 34px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1.5px solid transparent;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .15s ease;
}
.btn:active { transform: scale(0.98); }

.btn-primary { background: var(--terracotta-500); color: var(--latte-50); }
.btn-primary:hover { background: var(--terracotta-600); }
.btn-primary:disabled,
.btn-primary.is-disabled { opacity: .4; cursor: not-allowed; pointer-events: none; }

.btn-outline { border-color: var(--espresso-700); color: var(--espresso-700); background: transparent; }
.btn-outline:hover { background: var(--espresso-700); color: var(--latte-50); }

.btn-ghost { background: none; border: none; padding: 0; color: var(--espresso-700); text-transform: none; letter-spacing: normal; font-weight: 500; }
.btn-ghost:hover { color: var(--terracotta-500); }

.btn-sm { padding: 9px 20px; font-size: 11px; }
.btn-block { width: 100%; }

/* ==========================================================================
   4. Header / navigation
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  transition: box-shadow .3s ease, background-color .3s ease;
}
.site-header.is-scrolled {
  background: rgba(255, 253, 249, .92);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 24px rgba(43, 29, 19, .08);
}

.site-header__bar {
  max-width: var(--container-max);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}

.site-logo {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 24px;
  color: var(--espresso-800);
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}
.site-logo__badge {
  font-style: normal;
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--terracotta-500);
}

.nav-primary {
  display: none;
  align-items: center;
  gap: 32px;
}
.nav-primary a {
  font-size: 14px;
  color: rgba(61, 42, 27, .8);
}
.nav-primary a:hover,
.nav-primary .current-menu-item > a { color: var(--terracotta-500); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.icon-btn {
  position: relative;
  width: 44px; height: 44px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(61, 42, 27, .15);
  background: transparent;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .2s ease;
}
.icon-btn:hover { border-color: var(--terracotta-400); }

.cart-count {
  position: absolute;
  top: -6px; right: -6px;
  min-width: 20px; height: 20px;
  padding: 0 4px;
  border-radius: var(--radius-full);
  background: var(--terracotta-500);
  color: var(--latte-50);
  font-size: 11px;
  font-weight: 500;
  display: flex; align-items: center; justify-content: center;
}

.mobile-menu-toggle { display: flex; }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 8px 24px 20px;
  border-top: 1px solid rgba(61, 42, 27, .1);
  background: var(--latte-50);
  box-shadow: 0 12px 24px rgba(43, 29, 19, .08);
}
.mobile-menu.is-open { display: flex; }
.mobile-menu a { padding: 10px 0; font-size: 14px; color: rgba(61, 42, 27, .8); }

@media (min-width: 768px) {
  .nav-primary { display: flex; }
  .mobile-menu-toggle { display: none; }
  .mobile-menu { display: none !important; }
}

/* ==========================================================================
   5. Cart drawer
   ========================================================================== */

.cart-overlay {
  position: fixed; inset: 0;
  background: rgba(27, 18, 11, .45);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  z-index: 600;
}
.cart-overlay.is-open { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed;
  top: 0; right: 0;
  z-index: 700;
  width: 100%;
  max-width: 420px;
  height: 100%;
  background: var(--latte-50);
  box-shadow: -20px 0 40px rgba(0,0,0,.15);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .4s cubic-bezier(.25,1,.5,1);
}
.cart-drawer.is-open { transform: translateX(0); }

.cart-drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(61,42,27,.1);
}
.cart-drawer__head h2 { font-size: 20px; }
.cart-drawer__close {
  width: 36px; height: 36px;
  border: none; background: none;
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
}
.cart-drawer__close:hover { background: rgba(61,42,27,.06); }

#cart-drawer-content { flex: 1; overflow-y: auto; padding: 16px 24px; display: flex; flex-direction: column; gap: 20px; }

.cart-line {
  display: flex; gap: 16px;
}
.cart-line__image { width: 80px; height: 80px; border-radius: var(--radius-sm); overflow: hidden; background: var(--latte-200); flex-shrink: 0; }
.cart-line__image img { width: 100%; height: 100%; object-fit: cover; }
.cart-line__body { flex: 1; min-width: 0; }
.cart-line__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.cart-line__title { font-size: 14px; font-weight: 500; color: var(--espresso-800); }
.cart-line__remove { border: none; background: none; color: rgba(61,42,27,.3); flex-shrink: 0; }
.cart-line__remove:hover { color: var(--terracotta-500); }
.cart-line__meta { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.cart-line__price { font-size: 14px; font-weight: 500; color: var(--espresso-800); }

.qty-stepper {
  display: inline-flex; align-items: center;
  border: 1px solid rgba(61,42,27,.15);
  border-radius: var(--radius-full);
}
.qty-stepper button {
  width: 30px; height: 30px;
  border: none; background: none;
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
}
.qty-stepper button:hover { background: var(--latte-300); }
.qty-stepper span, .qty-stepper input {
  width: 30px; text-align: center; font-size: 13px;
  border: none; background: none;
}

.cart-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; padding: 60px 0; color: rgba(61,42,27,.5); }

.cart-drawer__foot { border-top: 1px solid rgba(61,42,27,.1); padding: 20px 24px; }
.cart-subtotal-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.cart-subtotal-row__label { font-size: 12px; letter-spacing: .15em; text-transform: uppercase; color: rgba(61,42,27,.6); }
.cart-subtotal-row__value { font-family: var(--font-display); font-size: 22px; color: var(--espresso-800); }
.cart-drawer__note { font-size: 11px; color: rgba(61,42,27,.4); text-align: center; margin-top: 12px; }

/* ==========================================================================
   6. Hero / home
   ========================================================================== */

.hero {
  position: relative;
  padding: 160px 24px 100px;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(180deg, var(--latte-200), var(--latte-100) 60%);
}
.hero__glow-a { position: absolute; top: -80px; right: -80px; width: 380px; height: 380px; border-radius: 50%; background: rgba(233,180,148,.35); filter: blur(70px); }
.hero__glow-b { position: absolute; top: 160px; left: -80px; width: 300px; height: 300px; border-radius: 50%; background: rgba(179,205,162,.35); filter: blur(70px); }

.pill-label {
  display: inline-flex;
  font-size: 11px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--highland-700);
  background: var(--highland-100);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  margin-bottom: 32px;
}

.hero h1 {
  font-size: clamp(40px, 7vw, 68px);
  max-width: 900px;
  margin-inline: auto;
}

.hero p.lede {
  max-width: 560px;
  margin: 28px auto 0;
  color: rgba(61,42,27,.7);
  font-size: 18px;
  font-weight: 300;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-top: 40px; }

/* ==========================================================================
   7. Sourcing story
   ========================================================================== */

.origin-section { background: var(--espresso-800); color: var(--latte-100); padding: 96px 24px; }
.origin-section .section-label { color: var(--terracotta-300); }
.origin-section h2 { color: var(--latte-50); }
.origin-intro { max-width: 640px; margin-bottom: 64px; }
.origin-intro p { color: rgba(251,245,234,.6); font-weight: 300; margin-top: 24px; }

.section-label { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--terracotta-500); margin-bottom: 16px; }

.origin-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 768px) { .origin-grid { grid-template-columns: 1fr 1fr; } }

.origin-card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-lg); padding: 40px; }
.origin-card__tag { font-size: 11px; letter-spacing: .25em; text-transform: uppercase; color: var(--highland-300); margin-bottom: 12px; }
.origin-card h3 { color: var(--latte-50); font-size: 28px; margin-bottom: 12px; }
.origin-card p { color: rgba(251,245,234,.6); font-size: 14px; font-weight: 300; margin-bottom: 24px; }
.origin-card__stats { display: flex; gap: 24px; }
.origin-card__stat-value { font-family: var(--font-display); font-size: 20px; color: var(--terracotta-300); }
.origin-card__stat-label { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: rgba(251,245,234,.4); margin-top: 4px; }

/* ==========================================================================
   8. Product grid & cards
   ========================================================================== */

.section { padding: 96px 24px; }
.section-heading { max-width: 560px; margin: 0 auto 56px; text-align: center; }
.section-heading h2 { font-size: clamp(32px, 4vw, 44px); }

.category-filters {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
  margin-bottom: 48px;
}
.chip {
  padding: 11px 22px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(61,42,27,.15);
  font-size: 12px;
  letter-spacing: .15em;
  text-transform: uppercase;
  background: transparent;
  color: var(--espresso-700);
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.chip:hover { border-color: var(--highland-400); }
.chip.is-active { background: var(--highland-600); border-color: var(--highland-600); color: var(--latte-50); }

ul.products,
.products-grid {
  display: grid !important;
  grid-template-columns: repeat(1, 1fr);
  gap: 24px;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
@media (min-width: 640px) { ul.products, .products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { ul.products, .products-grid { grid-template-columns: repeat(3, 1fr); } }

.product-card,
ul.products li.product {
  background: var(--latte-50);
  border: 1px solid var(--latte-300);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.product-card:hover,
ul.products li.product:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(43,29,19,.1);
  border-color: var(--terracotta-300);
}

.product-card__media {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 20px;
  background: var(--latte-200);
  aspect-ratio: 4 / 5;
}
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.product-card:hover .product-card__media img { transform: scale(1.05); }

.badge {
  position: absolute;
  top: 12px;
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  z-index: 2;
}
.badge-category { left: 12px; background: rgba(255,253,249,.92); color: var(--espresso-700); }
.badge-sale { right: 12px; background: var(--terracotta-500); color: var(--latte-50); }
.badge-bundle { background: var(--highland-600); }

.product-card__title,
ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--espresso-800);
  margin-bottom: 4px;
  font-weight: 500;
}
a.product-card__title:hover { color: var(--terracotta-500); }

.product-card__excerpt { font-size: 12px; font-weight: 300; color: rgba(61,42,27,.5); margin-bottom: 16px; }

.product-card__footer { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }

.price-now,
ul.products li.product .price ins .woocommerce-Price-amount { font-family: var(--font-display); font-size: 18px; color: var(--terracotta-500); font-weight: 500; text-decoration: none; }
.price-was,
ul.products li.product .price del .woocommerce-Price-amount { font-size: 14px; color: rgba(61,42,27,.4); text-decoration: line-through; margin-left: 8px; }

ul.products li.product .price { margin-bottom: 12px; }
ul.products li.product .button { align-self: flex-start; }

.empty-state { text-align: center; padding: 80px 24px; color: rgba(61,42,27,.5); }

/* ==========================================================================
   9. Trust strip
   ========================================================================== */

.trust-strip { display: grid; grid-template-columns: 1fr; gap: 20px; max-width: var(--container-max); margin: 0 auto; padding: 0 24px 96px; }
@media (min-width: 768px) { .trust-strip { grid-template-columns: repeat(3, 1fr); } }
.trust-tile { background: var(--highland-50); border: 1px solid var(--highland-100); border-radius: var(--radius-md); padding: 28px; text-align: center; }
.trust-tile__value { font-family: var(--font-display); font-size: 22px; color: var(--highland-700); margin-bottom: 6px; }
.trust-tile__label { font-size: 14px; color: rgba(61,42,27,.6); }

/* ==========================================================================
   10. Footer
   ========================================================================== */

.site-footer { background: var(--latte-100); border-top: 1px solid rgba(61,42,27,.1); }
.site-footer__inner { max-width: var(--container-max); margin: 0 auto; padding: 64px 24px 40px; }
.hairline { height: 1px; width: 100%; margin-bottom: 48px; background: linear-gradient(90deg, transparent, rgba(181,82,46,.4), transparent); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.footer-brand .site-logo { margin-bottom: 12px; }
.footer-brand p { color: rgba(61,42,27,.6); font-size: 14px; max-width: 340px; }
.footer-heading { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: rgba(61,42,27,.5); margin-bottom: 12px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: rgba(61,42,27,.8); }
.footer-links a:hover { color: var(--terracotta-500); }
.footer-bottom { margin-top: 56px; display: flex; flex-direction: column; gap: 8px; font-size: 12px; color: rgba(61,42,27,.4); }
@media (min-width: 768px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }

/* ==========================================================================
   11. Page header (WooCommerce archive / generic page banner)
   ========================================================================== */

.page-banner { padding: 148px 24px 40px; text-align: center; max-width: var(--container-max); margin: 0 auto; }
.page-banner h1 { font-size: clamp(32px, 5vw, 48px); }

/* ==========================================================================
   12. Single product
   ========================================================================== */

.product-page-main { padding-top: 148px; }

.back-link { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .15em; text-transform: uppercase; color: rgba(61,42,27,.5); margin-bottom: 32px; }
.back-link:hover { color: var(--terracotta-500); }

/* WooCommerce product gallery */
.woocommerce-product-gallery__image { border-radius: var(--radius-lg); overflow: hidden; background: var(--latte-200); box-shadow: 0 20px 48px rgba(43,29,19,.08); }
.woocommerce-product-gallery__image img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.flex-control-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px; padding: 0; list-style: none; }
.flex-control-thumbs li img { border-radius: var(--radius-sm); aspect-ratio: 1 / 1; object-fit: cover; border: 2px solid transparent; cursor: pointer; transition: border-color .2s ease, opacity .2s ease; opacity: .7; }
.flex-control-thumbs li img:hover { opacity: 1; }
.flex-control-thumbs li img.flex-active { border-color: var(--terracotta-400); opacity: 1; }

/* Star rating */
.woocommerce-product-rating { display: flex; align-items: center; gap: 8px; }
.star-rating { color: var(--terracotta-400); font-size: 14px; }
.woocommerce-review-link { font-size: 13px; color: rgba(61,42,27,.5); }

/* Quantity input + native add-to-cart button, enhanced with +/- via main.js.
   Boxed (not full-pill) so it reads as a distinct "input" next to the pill-
   shaped attribute swatches and the rounded primary button. */
.quantity {
  display: inline-flex;
  align-items: stretch;
  border: 1.5px solid rgba(61,42,27,.14);
  border-radius: var(--radius-md);
  background: var(--latte-50);
  box-shadow: 0 1px 2px rgba(43,29,19,.04);
  overflow: hidden;
}
.quantity .qty {
  width: 54px;
  border: none;
  border-left: 1px solid rgba(61,42,27,.1);
  border-right: 1px solid rgba(61,42,27,.1);
  background: var(--latte-50);
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--espresso-800);
  padding: 0;
  -moz-appearance: textfield;
}
.quantity .qty::-webkit-outer-spin-button,
.quantity .qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.quantity-btn {
  width: 46px;
  height: 50px;
  border: none;
  background: var(--latte-100);
  font-size: 19px;
  font-weight: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--espresso-700);
  border-radius: 0;
  transition: background-color .2s ease, color .2s ease;
}
.quantity-btn:hover { background: var(--terracotta-100); color: var(--terracotta-600); }
.quantity-btn:active { background: var(--terracotta-200); }

.single_add_to_cart_button { padding: 17px 36px; font-size: 13px; box-shadow: 0 8px 20px rgba(43,29,19,.12); }

.product_meta { margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(61,42,27,.08); font-size: 12px; color: rgba(61,42,27,.4); display: flex; flex-direction: column; gap: 6px; }
.product_meta a { color: rgba(61,42,27,.6); }

/* Description / attributes / reviews tabs */
.woocommerce-tabs { max-width: var(--container-max); margin: 8px auto 0; padding: 0 24px; }
.woocommerce-tabs ul.tabs { display: flex; gap: 4px; list-style: none; padding: 0; margin: 0 0 32px; border-bottom: 1px solid rgba(61,42,27,.1); flex-wrap: wrap; }
.woocommerce-tabs ul.tabs li { margin: 0; }
.woocommerce-tabs ul.tabs li a { display: inline-block; padding: 12px 20px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: rgba(61,42,27,.5); border-bottom: 2px solid transparent; margin-bottom: -1px; border-radius: var(--radius-sm) var(--radius-sm) 0 0; transition: background-color .2s ease, color .2s ease; }
.woocommerce-tabs ul.tabs li a:hover { background: var(--latte-200); color: var(--espresso-800); }
.woocommerce-tabs ul.tabs li.active a { color: var(--terracotta-500); border-color: var(--terracotta-500); background: none; }
.woocommerce-tabs .panel { max-width: 760px; color: rgba(61,42,27,.7); font-size: 14px; line-height: 1.8; }
.woocommerce-tabs table.shop_attributes { width: 100%; border-collapse: collapse; }
.woocommerce-tabs table.shop_attributes th { text-align: left; width: 220px; padding: 12px 0; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: rgba(61,42,27,.4); border-bottom: 1px solid rgba(61,42,27,.08); }
.woocommerce-tabs table.shop_attributes td { padding: 12px 0; border-bottom: 1px solid rgba(61,42,27,.08); }

.single-product-grid { display: grid; grid-template-columns: 1fr; gap: 40px; max-width: var(--container-max); margin: 0 auto; padding: 0 24px 56px; align-items: start; }
@media (min-width: 768px) { .single-product-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px; } }

.product-gallery__main { border-radius: var(--radius-lg); overflow: hidden; background: var(--latte-200); aspect-ratio: 1 / 1; margin-bottom: 16px; box-shadow: 0 20px 48px rgba(43,29,19,.08); }
.product-gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.woocommerce-product-gallery__wrapper { display: grid; }
.woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image:not(:first-child) { display: none; }

/* Buy-box card */
.product-summary {
  position: relative;
  overflow: hidden;
  background: var(--latte-50);
  border: 1px solid var(--latte-300);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.product-summary::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(233,180,148,.28), transparent 70%);
  pointer-events: none;
}
.product-summary > * { position: relative; }
@media (min-width: 768px) { .product-summary { position: sticky; top: 112px; } }

.product-summary .category-tag {
  display: inline-flex;
  align-self: flex-start;
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--highland-700);
  background: var(--highland-50);
  border: 1px solid var(--highland-100);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
}
.product-summary h1 { font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 10px; }
.product-summary .woocommerce-product-rating { margin-bottom: 14px; }
.product-summary .short-description,
.product-summary .woocommerce-product-details__short-description { color: rgba(61,42,27,.6); font-size: 14px; line-height: 1.7; margin-bottom: 20px; }
.product-summary .woocommerce-product-details__short-description p:last-child { margin-bottom: 0; }

.product-summary .price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 4px;
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--terracotta-500);
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(61,42,27,.08);
}
.product-summary .price del { font-size: 17px; color: rgba(61,42,27,.35); order: 2; }
.product-summary .price ins { text-decoration: none; order: 1; }

/* The "entry area" panel: quantity/variation choices + buy button grouped
   into one visually distinct card, instead of just flowing loose in the
   buy box like the text above it. */
.add-to-cart-row {
  margin: 20px 0 4px;
  padding: 22px;
  background: var(--latte-100);
  border: 1px solid var(--latte-300);
  border-radius: var(--radius-lg);
}

/* Simple products: <form class="cart"> (no variations_form class) directly
   contains the quantity input + button as siblings — safe to flex the form
   itself into a row. Variable products' <form class="variations_form cart">
   also matches "form.cart" but must stay a normal block (its own direct
   children are the attribute table, then the single_variation_wrap below
   it — those need to stack vertically, not sit side by side), so it's
   excluded here and handled via .woocommerce-variation-add-to-cart instead
   (the narrower wrapper WooCommerce already puts around just its qty+button
   row, once a variation is selected). */
.add-to-cart-row form.cart:not(.variations_form) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.add-to-cart-row form.cart:not(.variations_form) .single_add_to_cart_button,
.woocommerce-variation-add-to-cart .single_add_to_cart_button { flex: 1; min-width: 160px; }

.woocommerce-variation-add-to-cart {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.product-description { font-size: 14px; color: rgba(61,42,27,.7); line-height: 1.7; }

.attributes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; padding-top: 24px; border-top: 1px solid rgba(61,42,27,.1); }
.attributes-grid dt { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: rgba(61,42,27,.4); margin-bottom: 4px; }
.attributes-grid dd { margin: 0; font-size: 14px; color: var(--espresso-800); }

.related-products-heading { font-size: 26px; margin-bottom: 32px; padding: 0 24px; max-width: var(--container-max); margin-inline: auto; }
.related.products { max-width: var(--container-max); margin: 0 auto; padding: 0 24px 96px; }
.related.products > h2 { font-family: var(--font-display); font-size: 26px; margin-bottom: 32px; }

/* ==========================================================================
   13. Contact page
   ========================================================================== */

.contact-grid { display: grid; grid-template-columns: 1fr; gap: 64px; max-width: var(--container-max); margin: 0 auto; padding: 0 24px 96px; }
@media (min-width: 768px) { .contact-grid { grid-template-columns: 1fr 1fr; } }

.contact-card { background: var(--espresso-800); color: var(--latte-100); border-radius: var(--radius-lg); padding: 40px; }
.contact-card .site-logo { color: var(--latte-50); margin-bottom: 24px; }
.contact-row { display: flex; gap: 16px; margin-bottom: 24px; }
.contact-row:last-of-type { margin-bottom: 0; }
.contact-row svg { flex-shrink: 0; margin-top: 2px; color: var(--terracotta-300); }
.contact-row__label { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: rgba(251,245,234,.5); margin-bottom: 4px; }
.contact-row a:hover { color: var(--terracotta-300); }
.contact-social { display: flex; gap: 16px; margin-top: 32px; color: rgba(251,245,234,.7); }
.contact-social a:hover { color: var(--terracotta-300); }

.contact-note { background: var(--highland-50); border: 1px solid var(--highland-100); border-radius: var(--radius-md); padding: 24px; margin-top: 24px; font-size: 14px; color: rgba(48,72,34,.85); }
.contact-note a { text-decoration: underline; }

.form-field { margin-bottom: 20px; }
.form-field label { display: block; font-size: 11px; letter-spacing: .15em; text-transform: uppercase; color: rgba(61,42,27,.6); margin-bottom: 8px; }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid rgba(61,42,27,.15);
  border-radius: var(--radius-sm);
  background: var(--latte-50);
  font-family: inherit;
  font-size: 14px;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { outline: none; border-color: var(--terracotta-400); }
.form-field textarea { resize: vertical; min-height: 140px; }
.form-field.has-error input,
.form-field.has-error textarea { border-color: var(--terracotta-500); }
.field-error { font-size: 12px; color: var(--terracotta-600); margin-top: 6px; }

.form-success { background: var(--highland-50); border: 1px solid var(--highland-100); color: var(--highland-700); border-radius: var(--radius-sm); padding: 14px 16px; font-size: 14px; margin-top: 4px; }

/* ==========================================================================
   14. WooCommerce notices
   ========================================================================== */

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  max-width: var(--container-max);
  margin: 24px auto 0;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  list-style: none;
  background: var(--highland-50);
  border: 1px solid var(--highland-100);
  color: var(--highland-700);
  font-size: 14px;
}
.woocommerce-error { background: var(--terracotta-50); border-color: var(--terracotta-100); color: var(--terracotta-700); }

/* ==========================================================================
   16. Blog
   ========================================================================== */

.blog-grid { display: grid; grid-template-columns: 1fr; gap: 24px; max-width: var(--container-max); margin: 0 auto 48px; }
@media (min-width: 640px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }

.post-card { background: var(--latte-50); border: 1px solid var(--latte-300); border-radius: var(--radius-lg); padding: 20px; display: flex; flex-direction: column; transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease; }
.post-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(43,29,19,.1); border-color: var(--terracotta-300); }
.post-card__media { position: relative; display: block; border-radius: var(--radius-md); overflow: hidden; margin-bottom: 20px; background: var(--latte-200); aspect-ratio: 16 / 11; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card__media-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, var(--latte-300), var(--latte-200)); }
.post-card__date { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: rgba(61,42,27,.4); margin-bottom: 8px; }
.post-card__title { font-family: var(--font-display); font-size: 18px; color: var(--espresso-800); margin-bottom: 8px; font-weight: 500; }
.post-card__title:hover { color: var(--terracotta-500); }
.post-card__excerpt { font-size: 13px; font-weight: 300; color: rgba(61,42,27,.55); margin-bottom: 16px; flex: 1; }
.post-card__link { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--terracotta-500); margin-top: auto; }
.post-card__link:hover { color: var(--terracotta-600); }

.single-post-banner { max-width: 760px; }
.post-meta { margin-top: 16px; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 13px; color: rgba(61,42,27,.5); }

.single-post-content { max-width: 760px; padding-bottom: 96px; }
.single-post-thumb { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 40px; aspect-ratio: 16 / 9; background: var(--latte-200); }
.single-post-thumb img { width: 100%; height: 100%; object-fit: cover; }

.entry-content { font-size: 16px; line-height: 1.85; color: rgba(61,42,27,.8); }
.entry-content p { margin: 0 0 24px; }
.entry-content h2 { font-size: 26px; margin: 40px 0 16px; }
.entry-content h3 { font-size: 20px; margin: 32px 0 12px; }
.entry-content img { border-radius: var(--radius-md); margin: 24px 0; }
.entry-content a { color: var(--terracotta-500); text-decoration: underline; }
.entry-content ul, .entry-content ol { margin: 0 0 24px; padding-left: 24px; }
.entry-content li { margin-bottom: 8px; }
.entry-content blockquote { margin: 32px 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--terracotta-300); font-style: italic; color: rgba(61,42,27,.65); }

.page-links { margin: 32px 0; font-size: 14px; }
.pagination-wrap { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.pagination-wrap .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border-radius: var(--radius-full); border: 1px solid rgba(61,42,27,.15); font-size: 13px; color: var(--espresso-700); }
.pagination-wrap .page-numbers.current { background: var(--terracotta-500); border-color: var(--terracotta-500); color: var(--latte-50); }
.pagination-wrap .page-numbers:hover:not(.current) { border-color: var(--terracotta-400); }

/* Comments */
.comment-respond, .comments-area { max-width: 760px; }
.comment-form input, .comment-form textarea { width: 100%; padding: 12px 16px; border: 1px solid rgba(61,42,27,.15); border-radius: var(--radius-sm); background: var(--latte-50); font-family: inherit; margin-bottom: 16px; }
.comment-form label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: rgba(61,42,27,.6); margin-bottom: 6px; }
.comment-list { list-style: none; padding: 0; margin: 32px 0; }
.comment-list .comment-body { padding: 20px 0; border-bottom: 1px solid rgba(61,42,27,.08); }
.comment-reply-title,
.comments-title { font-family: var(--font-display); font-size: 22px; margin-bottom: 20px; }
.comment-form-comment .required,
.comment-form-author .required,
.comment-form-email .required { color: var(--terracotta-500); }
.no-comments { font-size: 14px; color: rgba(61,42,27,.5); margin-bottom: 24px; }
@media (min-width: 640px) {
  .comment-form-author, .comment-form-email { display: inline-block; width: calc(50% - 8px); }
  .comment-form-author { margin-right: 16px; }
}

/* ==========================================================================
   17. Recipes
   ========================================================================== */

.recipe-card__meta { display: flex; gap: 16px; margin-top: 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: rgba(61,42,27,.45); }

.recipe-stat-row { display: flex; gap: 32px; margin: 24px 0; padding: 20px 0; border-top: 1px solid rgba(61,42,27,.1); border-bottom: 1px solid rgba(61,42,27,.1); }
.recipe-stat__value { font-family: var(--font-display); font-size: 20px; color: var(--terracotta-500); }
.recipe-stat__label { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: rgba(61,42,27,.45); margin-top: 4px; }

.ingredients-block h3 { font-size: 18px; margin-bottom: 16px; }
.ingredients-list { padding: 0; margin: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.ingredients-list li { position: relative; padding-left: 24px; font-size: 14px; color: rgba(61,42,27,.75); }
.ingredients-list li::before { content: ''; position: absolute; left: 0; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--highland-400); }

.recipe-instructions { max-width: 760px; padding-bottom: 96px; }
.recipe-instructions h2 { font-size: 26px; margin-bottom: 20px; }

/* ==========================================================================
   18. Wholesale page
   ========================================================================== */

.wholesale-check-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.wholesale-check-list li { position: relative; padding-left: 26px; font-size: 14px; color: rgba(61,42,27,.75); }
.wholesale-check-list li::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--highland-500); font-weight: 600; }
.wholesale-check-list--dark li { color: rgba(251,245,234,.75); }
.wholesale-check-list--dark li::before { color: var(--terracotta-300); }

.wholesale-steps { display: grid; grid-template-columns: 1fr; gap: 32px; max-width: var(--container-max); margin: 0 auto; }
@media (min-width: 768px) { .wholesale-steps { grid-template-columns: repeat(4, 1fr); } }
.wholesale-step__number { font-family: var(--font-display); font-size: 32px; color: var(--terracotta-300); margin-bottom: 12px; }
.wholesale-step h4 { font-size: 17px; margin-bottom: 8px; }
.wholesale-step p { font-size: 13px; color: rgba(61,42,27,.6); font-weight: 300; line-height: 1.6; margin: 0; }

.wholesale-cta {
  max-width: var(--container-max);
  margin: 0 auto;
  background: var(--highland-600);
  color: var(--latte-50);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
@media (min-width: 768px) { .wholesale-cta { flex-direction: row; align-items: center; justify-content: space-between; } }
.wholesale-cta h2 { color: var(--latte-50); font-size: 28px; margin-bottom: 8px; }
.wholesale-cta p { color: rgba(251,245,234,.75); font-size: 14px; max-width: 480px; margin: 0; }
.wholesale-cta .btn-primary { background: var(--latte-50); color: var(--highland-700); flex-shrink: 0; }
.wholesale-cta .btn-primary:hover { background: var(--latte-200); }

/* ==========================================================================
   19. Testimonials
   ========================================================================== */

.testimonials-section { background: var(--latte-200); }

.testimonial-grid { display: grid; grid-template-columns: 1fr; gap: 24px; max-width: var(--container-max); margin: 0 auto; }
@media (min-width: 640px) { .testimonial-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .testimonial-grid { grid-template-columns: repeat(3, 1fr); } }

.testimonial-card { background: var(--latte-50); border: 1px solid var(--latte-300); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; }
.star-rating-static { display: inline-flex; gap: 2px; color: var(--terracotta-400); margin-bottom: 16px; }
.star-rating-static svg { display: block; }
.testimonial-card__quote { font-size: 14px; line-height: 1.7; color: rgba(61,42,27,.75); flex: 1; margin: 0 0 24px; }
.testimonial-card__author { display: flex; align-items: center; gap: 12px; }
.testimonial-card__avatar { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: var(--highland-100); }
.testimonial-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.testimonial-card__avatar--initial { display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 18px; color: var(--highland-700); }
.testimonial-card__name { font-size: 14px; font-weight: 500; color: var(--espresso-800); }
.testimonial-card__role { font-size: 12px; color: rgba(61,42,27,.5); }

/* ==========================================================================
   20. Trust badges (single product)
   ========================================================================== */

.trust-badges-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: var(--container-max);
  margin: 0 auto 64px;
  padding: 28px 24px;
  background: var(--highland-50);
  border: 1px solid var(--highland-100);
  border-radius: var(--radius-lg);
}
@media (min-width: 768px) { .trust-badges-row { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } }
.trust-badge { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--highland-800); }
.trust-badge svg { flex-shrink: 0; color: var(--highland-600); }

/* ==========================================================================
   21. Bundles (Setler)
   ========================================================================== */

.bundle-savings-badge {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--highland-700);
  background: var(--highland-50);
  border: 1px solid var(--highland-100);
  border-radius: var(--radius-full);
  padding: 8px 16px;
  margin: 16px 0 4px;
}
.bundle-savings-badge .woocommerce-Price-amount { color: var(--highland-700); font-weight: 600; }

.bundle-contents { padding-bottom: 64px; }
.bundle-contents h2 { font-size: 24px; margin-bottom: 24px; }
.bundle-contents__grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .bundle-contents__grid { grid-template-columns: repeat(2, 1fr); } }

.bundle-item { display: flex; align-items: center; gap: 16px; background: var(--latte-50); border: 1px solid var(--latte-300); border-radius: var(--radius-md); padding: 14px; transition: border-color .2s ease; }
.bundle-item:hover { border-color: var(--terracotta-300); }
.bundle-item__image { width: 60px; height: 60px; border-radius: var(--radius-sm); overflow: hidden; flex-shrink: 0; background: var(--latte-200); }
.bundle-item__image img { width: 100%; height: 100%; object-fit: cover; }
.bundle-item__name { font-size: 14px; font-weight: 500; color: var(--espresso-800); margin-bottom: 4px; }
.bundle-item__price .woocommerce-Price-amount { font-size: 13px; color: var(--terracotta-500); }

/* ==========================================================================
   22. Product FAQ accordion
   ========================================================================== */

.product-faq { max-width: 760px; padding-bottom: 96px; }
.product-faq h2 { font-size: 24px; margin-bottom: 24px; }
.faq-list { display: flex; flex-direction: column; gap: 4px; }
.faq-item { border-bottom: 1px solid rgba(61,42,27,.1); }
.faq-item__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  background: none;
  border: none;
  text-align: left;
  font-size: 15px;
  font-weight: 500;
  color: var(--espresso-800);
}
.faq-item__chevron { flex-shrink: 0; color: var(--terracotta-500); transition: transform .25s ease; }
.faq-item.is-open .faq-item__chevron { transform: rotate(180deg); }
.faq-item__answer { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-item.is-open .faq-item__answer { max-height: 240px; }
.faq-item__answer p { margin: 0 0 20px; font-size: 14px; line-height: 1.7; color: rgba(61,42,27,.65); }

/* ==========================================================================
   23. Loop variation picker (variable products on product cards)
   ========================================================================== */

.loop-variation-form { margin-top: 14px; }
.loop-variation-selects { display: flex; flex-direction: column; gap: 10px; margin-bottom: 10px; }
.loop-variation-attribute .attribute-swatches { justify-content: flex-start; }
.loop-variation-add { width: 100%; }
.loop-variation-add:disabled { opacity: .4; cursor: not-allowed; }

/* ==========================================================================
   24. Attribute swatches (icon / chip) — shared by the loop picker above
   and the single product variation form below
   ========================================================================== */

.attribute-swatches { display: flex; flex-wrap: wrap; gap: 8px; }

.attribute-swatch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1.5px solid rgba(61,42,27,.15);
  border-radius: var(--radius-full);
  background: var(--latte-50);
  color: var(--espresso-700);
  font-family: inherit;
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease, transform .15s ease;
}
.attribute-swatch:hover { border-color: var(--terracotta-300); transform: translateY(-1px); }
.attribute-swatch.is-selected {
  border-color: var(--terracotta-500);
  background: var(--terracotta-50);
  color: var(--terracotta-700);
  box-shadow: 0 8px 18px rgba(181,82,46,.16);
}
.attribute-swatch.is-selected::after {
  content: '✓';
  position: absolute;
  top: -7px; right: -7px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--terracotta-500);
  color: var(--latte-50);
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(181,82,46,.4);
}
.attribute-swatch svg { color: inherit; flex-shrink: 0; }

.attribute-swatch--chip { padding: 8px 16px; font-size: 12px; }
.attribute-swatch--icon { padding: 8px 14px 8px 10px; font-size: 12px; }

/* On the single product page (not the compact shop-card picker), icon
   swatches get the full "card tile" treatment: icon on top, label below,
   fixed square-ish footprint — closer to a real swatch picker than a pill. */
.mochachio-variation-row .attribute-swatch--icon {
  flex-direction: column;
  justify-content: center;
  width: 88px;
  padding: 18px 10px 14px;
  gap: 10px;
  border-radius: var(--radius-md);
}
.mochachio-variation-row .attribute-swatch--icon svg { width: 26px; height: 26px; }
.mochachio-variation-row .attribute-swatch--icon span { font-size: 11px; line-height: 1.3; text-align: center; }
.mochachio-variation-row .attribute-swatch--chip { padding: 12px 22px; font-size: 13px; font-weight: 500; }

/* ==========================================================================
   25. Single product variation form (woocommerce/single-product/add-to-cart/variable.php)
   ========================================================================== */

/* Real <table class="variations"> markup (kept intact for WooCommerce's own
   variation-matching script — see the long comment at the top of
   variable.php) restyled as spacious label/value rows instead of a
   traditional grid table. */
.mochachio-variations { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.mochachio-variation-row th,
.mochachio-variation-row td { padding: 16px 0; vertical-align: top; border-bottom: 1px solid rgba(61,42,27,.08); }
.mochachio-variation-row:last-child th,
.mochachio-variation-row:last-child td { border-bottom: none; }
.mochachio-variation-row th.label { width: 1%; padding-right: 24px; white-space: nowrap; text-align: left; font-weight: normal; vertical-align: middle; }
.mochachio-variation-row th.label label { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--terracotta-600); font-weight: 600; }
.mochachio-variation-row .reset_variations { display: inline-block; margin-top: 12px; font-size: 12px; color: rgba(61,42,27,.4); text-decoration: underline; }
.single_variation_wrap { margin-bottom: 4px; }
.single_variation_wrap .price { font-family: var(--font-display); font-size: 26px; color: var(--terracotta-500); }
.woocommerce-variation-description { font-size: 13px; color: rgba(61,42,27,.6); margin-bottom: 14px; }
.woocommerce-variation-availability { margin-top: 8px; font-size: 13px; }
.woocommerce-variation-availability .stock.in-stock { color: var(--highland-600); }
.woocommerce-variation-availability .stock.out-of-stock { color: var(--terracotta-600); }

/* ==========================================================================
   26. Product quick info (roast level + tasting notes)
   ========================================================================== */

.product-quick-info { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 4px 0 14px; }

.roast-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--terracotta-50);
  border: 1px solid var(--terracotta-100);
  color: var(--terracotta-700);
  font-size: 12px;
  font-weight: 500;
}
.roast-badge svg { color: var(--terracotta-500); }

.tasting-notes { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; color: rgba(61,42,27,.4); }
.tasting-note-pill {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--latte-200);
  color: var(--espresso-700);
  font-size: 12px;
}

/* ==========================================================================
   27. Shipping urgency bar
   ========================================================================== */

.shipping-urgency {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  margin: 4px 0 20px;
  background: var(--highland-50);
  border: 1px solid var(--highland-100);
  border-radius: var(--radius-sm);
  color: var(--highland-800);
  font-size: 13px;
  line-height: 1.5;
}
.shipping-urgency svg { flex-shrink: 0; margin-top: 1px; color: var(--highland-600); }
.shipping-urgency strong { color: var(--highland-800); font-weight: 600; }

/* ==========================================================================
   28. Product story (sensory / benefit copy)
   ========================================================================== */

.product-story { padding: 96px 24px; background: var(--latte-200); }
.product-story__inner { max-width: 680px; margin: 0 auto; text-align: center; }
.product-story .section-label { text-align: center; }
.product-story h2 { font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 28px; }
.product-story p { font-size: 16px; line-height: 1.85; color: rgba(61,42,27,.7); margin-bottom: 20px; }
.product-story p:last-child { margin-bottom: 0; }

/* ==========================================================================
   29. Brewing guide
   ========================================================================== */

.brewing-guide { padding: 96px 24px; max-width: var(--container-max); margin: 0 auto; }
.brewing-guide__grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 768px) { .brewing-guide__grid { grid-template-columns: repeat(3, 1fr); } }

.brewing-method { background: var(--latte-50); border: 1px solid var(--latte-300); border-radius: var(--radius-lg); padding: 32px; text-align: center; }
.brewing-method__icon {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--terracotta-50);
  color: var(--terracotta-500);
}
.brewing-method h3 { font-size: 19px; margin-bottom: 8px; }
.brewing-method__meta { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--terracotta-500); margin-bottom: 14px; }
.brewing-method p { font-size: 13px; color: rgba(61,42,27,.6); line-height: 1.6; margin: 0; }

/* ==========================================================================
   30. Cross-sells ("Birlikte İyi Gider")
   ========================================================================== */

.cross-sells-section { background: var(--latte-100); }

/* ==========================================================================
   31. Sticky add-to-cart bar
   ========================================================================== */

.sticky-atc {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 550;
  background: var(--latte-50);
  border-top: 1px solid var(--latte-300);
  box-shadow: 0 -12px 32px rgba(43,29,19,.1);
  transform: translateY(100%);
  transition: transform .3s cubic-bezier(.25,1,.5,1);
}
.sticky-atc.is-visible { transform: translateY(0); }

.sticky-atc__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.sticky-atc__product { display: flex; align-items: center; gap: 12px; min-width: 0; }
.sticky-atc__image { width: 48px; height: 48px; border-radius: var(--radius-sm); overflow: hidden; flex-shrink: 0; background: var(--latte-200); }
.sticky-atc__image img { width: 100%; height: 100%; object-fit: cover; }
.sticky-atc__info { min-width: 0; }
.sticky-atc__name { font-size: 13px; font-weight: 500; color: var(--espresso-800); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-atc__price { font-size: 13px; }
.sticky-atc__price .woocommerce-Price-amount { color: var(--terracotta-500); font-weight: 600; }
.sticky-atc__button { flex-shrink: 0; padding: 12px 24px; }

@media (max-width: 480px) {
  .sticky-atc__name { max-width: 120px; }
}

/* ==========================================================================
   32. Utility
   ========================================================================== */

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
