/* =========================================================================
   DGFit Meals — theme.css
   Colors are emitted as CSS variables by functions.php (wp_add_inline_style);
   defaults below match the converted HSL source tokens (Section 6.1).
   ========================================================================= */

:root {
  --color-background: #f9f8f5;
  --color-foreground: #1c1e22;
  --color-card: #ffffff;
  --color-secondary: #62784a;
  --color-muted: #f0eeea;
  --color-muted-foreground: #60646c;
  --color-accent: #c54b26;
  --color-destructive: #b6362b;
  --color-border: #e2deda;
  --color-surface-deep: #16181d;
  --color-surface-deep-foreground: #f7f5f2;
  --color-button-text: #f9f8f5;

  --font-display: 'Outfit', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --radius: 0.375rem;
  --shadow-soft: 0 4px 18px -12px rgba(28, 30, 34, 0.18);
  --shadow-elevated: 0 14px 40px -20px rgba(28, 30, 34, 0.28);
  --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --logo-height: 60px;

  --header-height: 74px;
  --checkout-max-width: 1280px;
  --checkout-gap: 2rem;

  --btn-radius: 0;
  --btn-height: 3.25rem;
  --btn-padding: 1rem 2rem;
  --btn-font-size: 0.875rem;
  --btn-font-weight: 600;
  --btn-letter-spacing: 0.24em;
  --btn-text-transform: uppercase;
  --btn-icon-padding: 0.65rem;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: clip; }
body {
  margin: 0;
  padding-top: var(--header-height);
  background: var(--color-background);
  color: var(--color-foreground);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
@media (min-width: 768px) {
  :root { --header-height: 86px; }
}
img:not(.cover-img):not(.hero-bg-img):not(.product-card-img):not(.meal-card__img):not(.gallery-thumb-img):not(.step-card-img):not(.site-logo-img):not(.site-footer__logo-img):not(.theme-product-gallery__main-img):not(.theme-related-card__img):not(.checkout-summary-thumb) {
  max-width: 100%;
  height: auto;
}
.cover-img, .hero-bg-img, .product-card-img, .gallery-thumb-img, .step-card-img, .checkout-summary-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
a { color: inherit; text-decoration: none; }
a[href],
button,
input[type="button"],
input[type="submit"],
input[type="reset"],
select,
summary,
[role="button"],
.theme-accordion__trigger,
.gallery-thumb-btn {
  cursor: pointer;
}
button { font-family: inherit; }
button:disabled,
input:disabled,
select:disabled {
  cursor: not-allowed;
}
ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: inherit;
  letter-spacing: -0.02em;
  margin: 0;
}
/* Section h2 — Lovable: font-display text-4xl md:text-5xl leading-tight */
.font-display-heading,
.theme-section__heading,
.split-section__heading,
.contact-section__heading {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2.25rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-transform: none;
}
@media (min-width: 768px) {
  .font-display-heading,
  .theme-section__heading,
  .split-section__heading,
  .contact-section__heading {
    font-size: 3rem;
  }
}
.split-section__heading { margin-bottom: 1.5rem; }

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.container-wide {
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding-inline: 1.25rem;
}
@media (min-width: 640px) { .container-wide { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .container-wide { padding-inline: 2rem; } }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-accent);
}
.laser-divider {
  display: block;
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, transparent, var(--color-border), transparent);
}
.wood-card { background: var(--color-card); border: 1px solid var(--color-border); }

.link-underline { position: relative; display: inline-block; }
.link-underline::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--transition-smooth);
}
.link-underline:hover::after { transform: scaleX(1); }

/* ---------- Buttons ---------- */
.btn-primary-workshop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--color-accent);
  color: var(--color-button-text);
  padding: var(--btn-padding);
  font-size: var(--btn-font-size);
  letter-spacing: var(--btn-letter-spacing);
  text-transform: var(--btn-text-transform);
  font-weight: var(--btn-font-weight);
  font-family: var(--font-body);
  border: none;
  transition: all 0.3s ease;
}
.btn-primary-workshop:hover { background: var(--color-foreground); color: var(--color-background); }
.btn-primary-workshop:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-primary-workshop.rounded-md { border-radius: var(--radius); }

.btn-ghost-workshop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid rgba(28,30,34,0.4);
  color: var(--color-foreground);
  background: transparent;
  padding: 1rem 2rem;
  font-size: 0.875rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 600;
  font-family: var(--font-body);
  transition: color 0.3s, background-color 0.3s;
}
.btn-ghost-workshop:hover { background: var(--color-foreground); color: var(--color-background); }
.btn-ghost-workshop.rounded-md { border-radius: var(--radius); }

/* ---------- Animations ---------- */
.animate-fade-in { animation: dgfitFadeIn 0.5s var(--transition-smooth) forwards; }
.animate-slide-up { animation: dgfitSlideUp 0.6s var(--transition-smooth) forwards; }
@keyframes dgfitFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes dgfitSlideUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

.reveal-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--transition-smooth), transform 0.6s var(--transition-smooth);
}
.reveal-item.is-visible { opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible { transition-delay: var(--reveal-delay, 0s); }

/* Customizer preview must never hide content behind an observer (Section 2.1.5). */
body.is-customizer .reveal-item {
  opacity: 1 !important;
  transform: none !important;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal-item { opacity: 1 !important; transform: none !important; }
}

/* ---------- Header ---------- */
body.admin-bar .site-header {
  top: 32px;
}
@media screen and (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 50;
  background: rgba(249, 248, 245, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}
.site-header.is-solid,
.site-header.is-scrolled {
  background: rgba(249, 248, 245, 0.95);
  border-bottom-color: var(--color-border);
}
.site-header__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: 1rem;
}
@media (min-width: 768px) { .site-header__nav { height: 86px; } }
.site-header__logo-link { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.site-logo-img { height: var(--logo-height) !important; width: auto !important; display: block; }
.site-logo-text { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; letter-spacing: -0.01em; }
.site-header__brand-text { display: none; font-family: var(--font-display); font-weight: 600; font-size: 1.125rem; letter-spacing: -0.01em; }
@media (min-width: 640px) { .site-header__brand-text { display: block; } }

.theme-nav-list { display: none; align-items: center; gap: 1.5rem; }
@media (min-width: 1024px) { .theme-nav-list { display: flex; } }
@media (min-width: 1280px) { .theme-nav-list { gap: 2rem; } }
.theme-nav-link, .site-header__nav-btn {
  position: relative;
  white-space: nowrap;
  font-size: 0.875rem;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(28,30,34,0.85);
  background: none;
  border: none;
  transition: color 0.3s ease;
}
@media (min-width: 1280px) { .theme-nav-link, .site-header__nav-btn { letter-spacing: 0.2em; } }
.theme-nav-link::after, .site-header__nav-btn::after {
  content: '';
  position: absolute; left: 0; bottom: -2px; width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--transition-smooth);
}
.theme-nav-link:hover, .site-header__nav-btn:hover { color: var(--color-accent); }
.theme-nav-link:hover::after, .site-header__nav-btn:hover::after,
.theme-nav-link.is-active::after, .site-header__nav-btn.is-active::after { transform: scaleX(1); }
.theme-nav-link.is-active, .site-header__nav-btn.is-active { color: var(--color-accent); }

.site-header__icons {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
@media (min-width: 768px) { .site-header__icons { gap: 0.5rem; } }
@media (min-width: 1024px) {
  .site-header__icons { margin-left: 0.5rem; padding-left: 1rem; border-left: 1px solid rgba(226,222,218,0.7); }
}
.theme-cart-button { position: relative; padding: 0.5rem; background: none; border: none; color: rgba(28,30,34,0.8); transition: color 0.3s; }
.theme-cart-button:hover { color: var(--color-accent); }
.theme-cart-count {
  position: absolute; top: -2px; right: -2px;
  min-width: 18px; height: 18px; padding: 0 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 600; font-family: var(--font-body);
  background: var(--color-accent); color: var(--color-button-text);
  border-radius: 999px;
  box-shadow: 0 0 0 2px var(--color-background);
}
.theme-cart-count:empty { display: none; }
.mobile-menu-toggle { padding: 0.5rem; background: none; border: none; color: rgba(28,30,34,0.8); }
@media (min-width: 1024px) { .mobile-menu-toggle { display: none; } }

.mobile-nav { display: none; border-top: 1px solid var(--color-border); padding: 1rem 0; }
.mobile-nav.is-open { display: block; }
.mobile-nav__list { display: flex; flex-direction: column; gap: 0.25rem; }
.mobile-nav__link {
  text-align: left; font-size: 0.8125rem; font-family: var(--font-body);
  font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  padding: 0.75rem 0; border-bottom: 1px solid rgba(226,222,218,0.6);
  background: none; border-left: none; border-right: none; border-top: none;
  width: 100%; color: var(--color-foreground); transition: color 0.3s;
}
.mobile-nav__link.is-active { color: var(--color-accent); border-bottom-color: var(--color-accent); }
.mobile-nav__link:hover { color: var(--color-accent); }

/* ---------- Hero ---------- */
.hero-section {
  position: relative;
  display: flex; flex-direction: column; justify-content: center;
  min-height: calc(100vh - var(--header-height));
  overflow: hidden;
}
.hero-section__bg { position: absolute; inset: 0; overflow: hidden; }
.hero-section__overlay { position: absolute; inset: 0; z-index: 1; background: rgba(14, 15, 17, 0.66); }
.hero-section__content {
  position: relative; z-index: 2;
  display: flex; flex: 1; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding-block: 5rem;
}
@media (min-width: 768px) { .hero-section__content { padding-block: 7rem; } }
.hero-section__eyebrow { margin-bottom: 1.25rem; color: rgba(247,245,242,0.85); }
.hero-section__title {
  font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em;
  font-size: 42px; line-height: 1.03; color: var(--color-surface-deep-foreground);
  max-width: 56rem; text-wrap: balance;
}
@media (min-width: 640px) { .hero-section__title { font-size: 3.75rem; } }
@media (min-width: 1024px) { .hero-section__title { font-size: 4.5rem; } }
.hero-section__title .accent { color: var(--color-accent); }
.hero-section__subtitle {
  margin-top: 1.5rem; max-width: 36rem; font-size: 1rem; line-height: 1.6;
  color: rgba(247,245,242,0.85); font-family: var(--font-body);
}
@media (min-width: 768px) { .hero-section__subtitle { font-size: 1.125rem; } }
.hero-section__ctas {
  margin-top: 2rem; display: flex; flex-direction: column; gap: 0.75rem;
  justify-content: center; width: 100%; max-width: 28rem;
}
@media (min-width: 640px) { .hero-section__ctas { flex-direction: row; gap: 1rem; max-width: none; } }
.hero-section__cta-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  border: 1px solid rgba(247,245,242,0.4); color: var(--color-surface-deep-foreground);
  padding: 1rem 2rem; font-size: 0.875rem; letter-spacing: 0.2em; text-transform: uppercase;
  font-weight: 600; font-family: var(--font-body); border-radius: var(--radius);
  transition: background-color 0.3s, color 0.3s; background: transparent;
}
.hero-section__cta-secondary:hover { background: var(--color-surface-deep-foreground); color: var(--color-foreground); }
.hero-section__deadline { margin-top: 1.75rem; font-size: 0.875rem; font-family: var(--font-body); letter-spacing: 0.2em; text-transform: uppercase; color: rgba(247,245,242,0.85); }

/* ---------- Sections shared ---------- */
.theme-section { }
.theme-section--card { background: var(--color-card); border-top: 1px solid var(--color-border); }
.theme-section--bg { background: var(--color-background); border-top: 1px solid var(--color-border); }
.theme-section__inner { padding-block: 5rem; }
@media (min-width: 768px) { .theme-section__inner { padding-block: 7rem; } }
.theme-section__head { max-width: 42rem; margin: 0 auto 3rem; text-align: center; }
/* ---------- Menu grid / meal card ---------- */
.menu-status-row { margin-top: 1.5rem; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; font-size: 0.875rem; font-family: var(--font-body); }
.menu-status-badge { display: inline-flex; align-items: center; gap: 0.5rem; border-radius: 999px; padding: 0.35rem 1rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.16em; }
.menu-status-badge--open { background: color-mix(in srgb, var(--color-secondary) 15%, transparent); color: var(--color-secondary); }
.menu-status-badge--closed { background: var(--color-muted); color: var(--color-muted-foreground); }
.menu-status-row .muted { color: var(--color-muted-foreground); }

.theme-product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: stretch;
}
@media (min-width: 640px) { .theme-product-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1024px) { .theme-product-grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 2rem; } }

.meal-card {
  display: flex; flex-direction: column; height: 100%;
  overflow: hidden; border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: var(--color-card);
  transition: box-shadow 0.3s ease;
}
.meal-card:hover { box-shadow: var(--shadow-elevated); }
.meal-card__image-wrap { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--color-muted); }
.meal-card__image-wrap .meal-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.7s ease;
}
.meal-card:hover .meal-card__image-wrap .meal-card__img { transform: scale(1.04); }
.meal-card__image-wrap .meal-card__img.is-unavailable { opacity: 0.6; }
.meal-card__category-badge {
  position: absolute; left: 0.75rem; top: 0.75rem; z-index: 2;
  border-radius: 999px; background: color-mix(in srgb, var(--color-background) 90%, transparent);
  padding: 0.25rem 0.75rem; font-size: 0.875rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.14em; color: rgba(28,30,34,0.8);
  backdrop-filter: blur(4px);
}
.meal-card__unavailable-badge {
  position: absolute; right: 0.75rem; top: 0.75rem; z-index: 2;
  border-radius: 999px; background: var(--color-destructive); color: var(--color-button-text);
  padding: 0.25rem 0.75rem; font-size: 0.875rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.14em;
}
.meal-card__body { display: flex; flex: 1; flex-direction: column; padding: 1.25rem; min-width: 0; }
.meal-card__top { display: flex; flex: 1; flex-direction: column; }
.meal-card__title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; min-width: 0; }
.meal-card__title { font-size: 1.25rem; line-height: 1.35; font-weight: 600; min-width: 0; }
.meal-card__title a { transition: color 0.3s; }
.meal-card__title a:hover { color: var(--color-accent); }
.meal-card__price { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.meal-card__desc { margin-top: 0.75rem; font-size: 0.875rem; line-height: 1.6; color: var(--color-muted-foreground); }
.meal-card__nutrition { margin-top: 0.75rem; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.14em; color: rgba(28,30,34,0.7); }
.meal-card__actions { margin-top: 1.25rem; display: flex; align-items: center; gap: 0.75rem; padding-top: 0.25rem; }
.meal-card__qty { display: flex; align-items: center; border: 1px solid var(--color-border); border-radius: var(--radius); flex-shrink: 0; }
.meal-card__qty button { display: flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; background: none; border: none; color: rgba(28,30,34,0.7); transition: color 0.2s; }
.meal-card__qty button:hover { color: var(--color-accent); }
.meal-card__qty button:disabled { opacity: 0.4; cursor: not-allowed; }
.meal-card__qty-value {
  width: 2rem; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums;
  border: none; background: transparent; font-family: var(--font-body); font-size: 1rem;
  -moz-appearance: textfield; color: var(--color-foreground); padding: 0;
}
.meal-card__qty-value::-webkit-outer-spin-button,
.meal-card__qty-value::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.meal-card__add-btn {
  flex: 1 1 0; min-width: 0; width: 100%;
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  height: 2.75rem; padding: 0 1rem; border-radius: var(--radius); border: none;
  background: var(--color-foreground); color: var(--color-background);
  font-size: 0.875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.16em;
  transition: background-color 0.3s;
}
.meal-card__actions .meal-card__add-btn.button,
.meal-card__actions a.meal-card__add-btn.add_to_cart_button {
  justify-content: center !important;
  text-align: center !important;
  width: 100%;
}
.meal-card__add-btn:hover:not(:disabled) { background: var(--color-accent); }
.meal-card__add-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ---------- How It Works ---------- */
.steps-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px) { .steps-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1024px) { .steps-grid { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 2rem; } }
.step-card {
  position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 340px; overflow: hidden; border-radius: 0.75rem;
  box-shadow: var(--shadow-soft); transition: transform 0.5s, box-shadow 0.5s;
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-elevated); }
.step-card__img-wrap { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.step-card__img-wrap img { transition: transform 0.7s ease-out; }
.step-card:hover .step-card__img-wrap img { transform: scale(1.05); }
.step-card__gradient { position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(22,20,15,0.92), rgba(22,20,15,0.65) 55%, rgba(22,20,15,0.25)); }
.step-card__content { padding: 1.75rem; }
.step-card__num { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--color-accent); }
.step-card__title { margin-top: 0.75rem; font-size: 1.25rem; color: var(--color-surface-deep-foreground); }
.step-card__copy { margin-top: 0.75rem; font-size: 0.875rem; line-height: 1.6; color: rgba(247,245,242,0.85); }

/* ---------- About / Chef two-column ---------- */
.split-section { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
@media (min-width: 1024px) { .split-section { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.split-section__text.order-2 { order: 2; }
.split-section__text.order-1 { order: 1; }
@media (min-width: 1024px) {
  .split-section__text.lg-order-1 { order: 1; }
  .split-section__text.lg-order-2 { order: 2; }
}
.split-section__body { max-width: 36rem; }
.split-section__body p { margin: 0 0 1.25rem; line-height: 1.7; color: rgba(28,30,34,0.75); font-family: var(--font-body); }
.split-section__body p:last-child { margin-bottom: 0; }
.split-section__heading .accent { color: var(--color-accent); }
.split-section__media { overflow: hidden; border-radius: var(--radius); border: 1px solid var(--color-border); background: var(--color-card); }
.split-section__media--about img { aspect-ratio: 4/5; }
.split-section__media--chef { background: var(--color-background); }
.split-section__media--chef img { aspect-ratio: 2/3; }
.split-section__media .ratio-box { position: relative; width: 100%; aspect-ratio: 4/5; }
.split-section__media--chef .ratio-box { aspect-ratio: 2/3; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 48rem; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-item__q {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  width: 100%; padding: 1.25rem 0; text-align: left; background: none; border: none;
}
.faq-item__q-text { font-size: 1.125rem; }
@media (min-width: 768px) { .faq-item__q-text { font-size: 1.25rem; } }
.faq-item__icon { flex-shrink: 0; width: 1.25rem; height: 1.25rem; color: var(--color-muted-foreground); transition: transform 0.3s; }
.faq-item.is-open .faq-item__icon { transform: rotate(180deg); }
.faq-item__a { display: none; padding-bottom: 1.25rem; padding-right: 2rem; font-size: 1rem; line-height: 1.7; color: var(--color-muted-foreground); }
.faq-item.is-open .faq-item__a { display: block; }

/* ---------- Contact ---------- */
.contact-section { position: relative; overflow: hidden; color: var(--color-surface-deep-foreground); }
.contact-section__bg { position: absolute; inset: 0; }
.contact-section__scrim { position: absolute; inset: 0; background: rgba(26,26,30,0.8); }
.contact-section__inner { position: relative; padding-block: 5rem; }
@media (min-width: 768px) { .contact-section__inner { padding-block: 7rem; } }
.contact-section__content { max-width: 48rem; margin: 0 auto; text-align: center; }
.contact-section__label { margin-bottom: 1.25rem; font-size: 0.875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.28em; color: rgba(247,245,242,0.75); }
.contact-section__cta-row { margin-top: 2.5rem; display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 1rem; }
@media (min-width: 640px) { .contact-section__cta-row { flex-direction: row; align-items: center; } }
.contact-pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.75rem;
  border: 1px solid rgba(247,245,242,0.25); border-radius: var(--radius);
  padding: 0.75rem 1.5rem; font-size: 0.875rem; font-family: var(--font-body);
  transition: background-color 0.3s;
}
.contact-pill:hover { background: rgba(247,245,242,0.1); }
.contact-section__address { margin-top: 2rem; display: inline-flex; align-items: flex-start; justify-content: center; gap: 0.75rem; font-size: 0.875rem; color: rgba(247,245,242,0.85); }
.contact-social-list { margin-top: 2.5rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.75rem; }
.contact-social-link {
  display: inline-flex; min-height: 2.75rem; align-items: center; border: 1px solid rgba(247,245,242,0.25);
  border-radius: var(--radius); padding: 0 1.25rem; font-size: 0.875rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.14em; transition: background-color 0.3s;
}
.contact-social-link:hover { background: rgba(247,245,242,0.1); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--color-border); background: var(--color-card); }
.site-footer__inner { padding-block: 4rem 5rem; }
@media (min-width: 768px) { .site-footer__inner { padding-block: 5rem; } }
.site-footer__grid { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media (min-width: 640px) { .site-footer__grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1024px) { .site-footer__grid { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 2.5rem; } }
.site-footer__col--brand { grid-column: span 1; }
@media (min-width: 640px) { .site-footer__col--brand { grid-column: span 2; } }
@media (min-width: 1024px) { .site-footer__col--brand { grid-column: span 1; } }
.site-footer__logo-img {
  display: block;
  height: 3rem;
  width: auto;
  max-width: none;
  object-fit: contain;
}
.site-footer__blurb { margin-top: 1.5rem; max-width: 18rem; font-size: 0.875rem; line-height: 1.7; color: var(--color-muted-foreground); }
.site-footer__heading { margin-bottom: 1.25rem; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.2em; color: rgba(96,100,108,0.8); }
.site-footer__list { display: flex; flex-direction: column; gap: 0.75rem; }
.site-footer__link { font-size: 0.875rem; color: var(--color-muted-foreground); transition: color 0.2s; }
.site-footer__link:hover { color: var(--color-foreground); }
.site-footer__contact-link { display: inline-flex; align-items: center; gap: 0.625rem; font-size: 0.875rem; color: var(--color-muted-foreground); transition: color 0.2s; }
.site-footer__contact-link:hover { color: var(--color-foreground); }
.site-footer__divider { margin: 3.5rem 0; border: none; border-top: 1px solid var(--color-border); }
@media (min-width: 768px) { .site-footer__divider { margin: 4rem 0; } }
.site-footer__bottom { display: flex; flex-direction: column; gap: 0.75rem; font-size: 0.875rem; color: var(--color-muted-foreground); }
@media (min-width: 640px) { .site-footer__bottom { flex-direction: row; align-items: center; justify-content: space-between; } }
.site-footer__bottom a { font-weight: 600; color: var(--color-foreground); transition: color 0.2s; }
.site-footer__bottom a:hover { color: var(--color-accent); }

/* ---------- Cart drawer / overlay ---------- */
#theme-cart-overlay {
  position: fixed; inset: 0; z-index: 60; display: none;
  background: rgba(28,30,34,0.4); backdrop-filter: blur(2px);
}
body.cart-open #theme-cart-overlay { display: block; }
#theme-cart-drawer {
  position: fixed; right: 0; top: 0; height: 100%; width: 100%; max-width: 28rem;
  background: var(--color-background); z-index: 70; box-shadow: var(--shadow-elevated);
  display: flex; flex-direction: column; border-left: 1px solid var(--color-border);
  transform: translateX(100%); transition: transform 0.4s var(--transition-smooth);
}
body.cart-open #theme-cart-drawer { transform: translateX(0); }
#theme-cart-drawer.is-updating { opacity: 0.6; pointer-events: none; }
.theme-cart-drawer__header { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--color-border); }
.theme-cart-drawer__header-line { position: absolute; inset-inline: 1.5rem; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--color-accent) 50%, transparent), transparent); }
.theme-cart-drawer__close { padding: 0.5rem; background: none; border: none; color: rgba(28,30,34,0.7); transition: color 0.2s; }
.theme-cart-drawer__close:hover { color: var(--color-accent); }
.theme-cart-drawer__empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2rem; text-align: center; }
.theme-cart-drawer__empty-icon { width: 4rem; height: 4rem; display: flex; align-items: center; justify-content: center; background: var(--color-card); border: 1px solid var(--color-border); margin-bottom: 1.5rem; }
.theme-cart-drawer__items { flex: 1; overflow: auto; padding: 1.5rem; display: flex; flex-direction: column; gap: 1.25rem; }
.theme-cart-drawer__item { display: flex; gap: 1rem; padding-bottom: 1.25rem; border-bottom: 1px solid rgba(226,222,218,0.7); }
.theme-cart-drawer__item:last-child { border-bottom: none; padding-bottom: 0; }
.theme-cart-drawer__item-img { position: relative; width: 5rem; height: 6rem; flex-shrink: 0; overflow: hidden; background: var(--color-card); border: 1px solid var(--color-border); }
.theme-cart-drawer__item-info { flex: 1; min-width: 0; }
.theme-cart-drawer__item-cat { margin-bottom: 0.25rem; font-size: 0.875rem; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(96,100,108,0.8); }
.theme-cart-drawer__item-name { display: block; font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.8125rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.theme-cart-drawer__item-price { margin-top: 0.25rem; font-size: 0.875rem; }
.theme-cart-drawer__item-controls { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.75rem; }
.theme-cart-drawer__qty { display: inline-flex; align-items: center; border: 1px solid var(--color-border); }
.theme-cart-drawer__qty button { padding: 0.375rem 0.5rem; background: none; border: none; }
.theme-cart-drawer__qty-value { padding: 0.375rem 0.75rem; font-size: 0.875rem; font-variant-numeric: tabular-nums; min-width: 2rem; text-align: center; }
.theme-cart-drawer__remove { margin-left: auto; font-size: 0.875rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--color-muted-foreground); background: none; border: none; transition: color 0.2s; }
.theme-cart-drawer__remove:hover { color: var(--color-accent); }
.theme-cart-drawer__footer { padding: 1.25rem 1.5rem 1.5rem; border-top: 1px solid var(--color-border); background: color-mix(in srgb, var(--color-card) 60%, transparent); }
.theme-cart-drawer__subtotal-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.25rem; }
.theme-cart-drawer__subtotal-label { font-size: 0.875rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--color-muted-foreground); }
.theme-cart-drawer__subtotal-value { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; }
.theme-cart-drawer__note { font-size: 0.875rem; color: var(--color-muted-foreground); margin-bottom: 1.25rem; }
.theme-cart-drawer__checkout-btn { width: 100%; }
.theme-cart-drawer__empty-cart-btn {
  margin-top: 0.75rem; width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-size: 0.875rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--color-muted-foreground);
  background: none; border: none; padding: 0.5rem 0; transition: color 0.2s;
}
.theme-cart-drawer__empty-cart-btn:hover { color: var(--color-accent); }

/* ---------- WooCommerce add-to-cart button overrides (Section 11.4.1) ---------- */
.single_add_to_cart_button.button,
.add_to_cart_button.button,
a.single_add_to_cart_button,
a.add_to_cart_button {
  background-color: var(--color-foreground) !important;
  color: var(--color-background) !important;
  border: none !important;
  border-radius: var(--radius) !important;
  min-height: 2.75rem !important;
  padding: 0 1rem !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-family: var(--font-body) !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  transition: background-color 0.3s ease !important;
}
.single_add_to_cart_button.button:hover,
.add_to_cart_button.button:hover {
  background-color: var(--color-accent) !important;
  color: var(--color-background) !important;
}
.single-product-main a.theme-product-atc.btn-primary-workshop {
  background-color: var(--color-accent) !important;
  color: var(--color-button-text) !important;
  min-height: 3.25rem !important;
  padding: 1rem 2rem !important;
  letter-spacing: 0.24em !important;
  font-family: var(--font-body) !important;
  gap: 0.5rem;
}
.single-product-main a.theme-product-atc.btn-primary-workshop:hover {
  background-color: var(--color-foreground) !important;
  color: var(--color-background) !important;
}
.single_add_to_cart_button.button:disabled,
.single_add_to_cart_button.button.disabled,
.add_to_cart_button.button:disabled,
.add_to_cart_button.button.disabled {
  cursor: not-allowed !important;
  opacity: 0.4 !important;
  pointer-events: none !important;
}
.single_add_to_cart_button.button:disabled:hover,
.add_to_cart_button.button:disabled:hover {
  opacity: 0.4 !important;
  background-color: var(--color-foreground) !important;
}
.single-product .single_add_to_cart_button.loading::after,
.ajax_add_to_cart.loading::after { display: none !important; }
.ajax_add_to_cart.theme-btn-loading {
  opacity: 0.6 !important; pointer-events: none !important; cursor: wait !important;
}
.woocommerce-page a.added_to_cart.wc-forward,
.single-product a.added_to_cart.wc-forward,
body a.added_to_cart.wc-forward { display: none !important; }

/* Notices — scoped, not global (Section 14.1) */
.single-product .woocommerce-message,
.single-product .woocommerce-info { display: none; }
#theme-cart-drawer .woocommerce-message { display: none; }
.woocommerce-error, .woocommerce-message, .woocommerce-info {
  font-family: var(--font-body); border-radius: var(--radius);
  border: 1px solid var(--color-border); padding: 1rem 1.5rem; margin: 0 0 1.5rem;
}

/* ---------- Single product page ---------- */
body.single-product-page .site-main.single-product-main {
  padding-block-start: 0.5rem;
}
.product-breadcrumb { padding-block: 1.5rem; font-size: 0.875rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--color-muted-foreground); font-family: var(--font-display); }
@media (min-width: 768px) { .product-breadcrumb { padding-block: 2rem; } }
.product-breadcrumb a { transition: color 0.2s; }
.product-breadcrumb a:hover { color: var(--color-accent); }
.product-breadcrumb .sep { margin: 0 0.5rem; opacity: 0.4; }
.product-breadcrumb .current { text-transform: none; letter-spacing: 0.04em; color: rgba(28,30,34,0.8); font-weight: 500; }

.theme-product-layout {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem;
  padding-block-end: 5rem; align-items: flex-start; min-width: 0;
}
@media (min-width: 768px) { .theme-product-layout { padding-block-end: 7rem; } }
@media (min-width: 1024px) { .theme-product-layout { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 4rem; } }

.theme-product-gallery { min-width: 0; max-width: 100%; }
.theme-product-gallery__main {
  position: relative; aspect-ratio: 1/1; overflow: hidden;
  background: var(--color-card); border: 1px solid var(--color-border); box-shadow: var(--shadow-elevated);
}
.theme-product-gallery__main-frame {
  position: absolute; inset: 0; padding: 0.75rem;
}
@media (min-width: 1024px) { .theme-product-gallery__main-frame { padding: 1rem; } }
.theme-product-gallery__main-ring {
  position: relative; width: 100%; height: 100%; overflow: hidden;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--color-border) 60%, transparent);
}
.theme-product-gallery__main-img {
  display: block; width: 100%; height: 100%; object-fit: cover; position: static !important;
}
.theme-product-gallery__cat-badge {
  position: absolute; top: 1.5rem; left: 1.5rem; z-index: 2;
  padding: 0.25rem 0.625rem; font-size: 0.875rem; font-family: var(--font-display);
  letter-spacing: 0.24em; text-transform: uppercase;
  background: color-mix(in srgb, var(--color-background) 85%, transparent);
  color: rgba(28,30,34,0.8); border: 1px solid var(--color-border); backdrop-filter: blur(4px);
}
.theme-product-thumbnails { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; max-width: 100%; }
@media (min-width: 1024px) { .theme-product-thumbnails { flex-direction: column; margin-top: 0; } }
.theme-product-thumb {
  position: relative; width: 5rem; height: 5rem; flex-shrink: 0; overflow: hidden;
  background: var(--color-card); border: 1px solid var(--color-border); transition: border-color 0.2s; padding: 0;
}
@media (min-width: 1024px) { .theme-product-thumb { width: 100%; aspect-ratio: 1/1; } }
.theme-product-thumb img { opacity: 0.7; transition: opacity 0.2s; }
.theme-product-thumb:hover img { opacity: 1; }
.theme-product-thumb.is-active { border-color: var(--color-accent); }
.theme-product-thumb.is-active img { opacity: 1; }

.theme-product-info { min-width: 0; max-width: 100%; }
@media (min-width: 1024px) { .theme-product-info { position: sticky; top: calc(var(--header-height) + 1.75rem); padding-left: 1rem; } }
.theme-product-info__title {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.01em;
  font-size: 1.875rem; line-height: 1.05; margin: 0 0 1.25rem; text-wrap: balance;
}
@media (min-width: 768px) { .theme-product-info__title { font-size: 2.25rem; } }
@media (min-width: 1024px) { .theme-product-info__title { font-size: 2.75rem; } }
.theme-product-info__price-row { display: flex; align-items: baseline; gap: 0.75rem; margin-bottom: 1.5rem; }
.theme-product-info__price { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; font-variant-numeric: tabular-nums; }
@media (min-width: 768px) { .theme-product-info__price { font-size: 1.875rem; } }
.theme-product-info__soldout-badge { padding: 0.125rem 0.5rem; font-size: 0.875rem; font-family: var(--font-display); letter-spacing: 0.24em; text-transform: uppercase; background: var(--color-destructive); color: var(--color-background); }
.theme-product-info__eyebrow { margin-bottom: 1rem; }
.theme-product-info__divider { display: block; margin-bottom: 1.5rem; }
.theme-product-info__desc { color: rgba(28,30,34,0.75); line-height: 1.625; margin-bottom: 2rem; font-family: var(--font-body); font-size: 1rem; }

.theme-quantity-block { margin-bottom: 0; }
.theme-quantity-heading { font-size: 0.875rem; letter-spacing: 0.28em; text-transform: uppercase; font-family: var(--font-display); font-weight: 600; color: rgba(28,30,34,0.8); margin-bottom: 0.75rem; }
.theme-quantity-wrapper { display: inline-flex; align-items: center; border: 1px solid var(--color-border); background: var(--color-background); }
.theme-qty-minus, .theme-qty-plus { padding: 0.75rem 1rem; background: none; border: none; transition: background-color 0.2s; }
.theme-qty-minus:hover, .theme-qty-plus:hover { background: var(--color-card); }
.theme-qty-value {
  min-width: 3.25rem; padding: 0.75rem 1.25rem; text-align: center; font-family: var(--font-display);
  font-size: 0.875rem; font-variant-numeric: tabular-nums; border-left: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
}
.single-product-main .theme-qty-input { display: none !important; }

.single-product-main .theme-add-to-cart-area {
  display: flex; flex-direction: column; align-items: stretch; gap: 1.25rem; margin-top: 0; margin-bottom: 0;
}
@media (min-width: 640px) {
  .single-product-main .theme-add-to-cart-area { flex-direction: row; flex-wrap: wrap; align-items: center; }
}
.single-product-main .theme-product-atc.btn-primary-workshop {
  width: 100%; border-radius: var(--radius); justify-content: center;
  background: var(--color-accent); color: var(--color-button-text);
}
.single-product-main .theme-product-atc.btn-primary-workshop:hover {
  background: var(--color-foreground); color: var(--color-background);
}
.single-product-main .theme-product-atc.is-soldout {
  display: inline-flex; align-items: center; justify-content: center; width: 100%;
  opacity: 0.6; cursor: not-allowed; padding: 1rem 2rem;
}
.single-product-main .theme-variable-atc:disabled {
  opacity: 0.6; cursor: not-allowed;
}
.single-product-main .theme-variations { margin-bottom: 1.5rem; display: flex; flex-direction: column; gap: 1.25rem; }
.single-product-main .theme-variation-label {
  display: block; margin-bottom: 0.5rem; font-size: 0.875rem; letter-spacing: 0.28em; text-transform: uppercase;
  font-family: var(--font-display); font-weight: 600; color: rgba(28,30,34,0.8);
}
.single-product-page .theme-attr-select-hidden,
.single-product-main .theme-attr-select-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.single-product-main .theme-variation-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.single-product-main .theme-variation-pill {
  padding: 0.5rem 1rem; border-radius: 999px; border: 1px solid var(--color-border);
  background: var(--color-background); font-family: var(--font-body); font-size: 0.8125rem;
  font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.single-product-main .theme-variation-pill.is-selected {
  background: var(--color-foreground); color: var(--color-background); border-color: var(--color-foreground);
}
.single-product-main .theme-variation-pill:disabled { opacity: 0.45; cursor: not-allowed; }
.theme-cart-drawer__item-meta {
  margin: 0.35rem 0 0; padding: 0; list-style: none; font-size: 0.8125rem; line-height: 1.5; color: var(--color-muted-foreground);
}
.theme-cart-drawer__item-meta li { margin: 0; }
.theme-cart-drawer__meta-label { font-weight: 600; color: rgba(28,30,34,0.75); }
.theme-accordion__trigger-label--order { font-family: var(--font-body); font-weight: 700; }
.theme-accordion__description { font-size: 0.9375rem; line-height: 1.7; color: rgba(28,30,34,0.75); margin-bottom: 1rem; }
.theme-accordion__detail-list { margin-top: 0; }

.theme-trust-strip { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0.75rem; margin-top: 1.5rem; }
.theme-trust-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem; border: 1px solid var(--color-border); background: var(--color-card); }
.theme-trust-item svg { flex-shrink: 0; color: var(--color-accent); }
.theme-trust-item .t-title { font-family: var(--font-display); font-weight: 600; font-size: 0.875rem; letter-spacing: 0.02em; }
.theme-trust-item .t-sub { font-size: 0.875rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-muted-foreground); }

.theme-product-accordions { margin-top: 2.5rem; border-top: 1px solid var(--color-border); }
.theme-accordion { border-top: 1px solid var(--color-border); }
.theme-accordion:first-child { border-top: none; }
.theme-accordion__trigger { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 0; text-align: left; background: none; border: none; }
.theme-accordion__trigger-label { font-size: 0.875rem; letter-spacing: 0.28em; text-transform: uppercase; font-family: var(--font-display); font-weight: 600; transition: color 0.2s; }
.theme-accordion__trigger:hover .theme-accordion__trigger-label { color: var(--color-accent); }
.theme-accordion__icon { color: rgba(28,30,34,0.7); transition: transform 0.2s; }
.theme-accordion.is-open .theme-accordion__icon { transform: rotate(180deg); }
.theme-accordion__panel { display: none; padding-bottom: 1.5rem; font-family: var(--font-body); }
.theme-accordion.is-open .theme-accordion__panel { display: block; }
.theme-accordion__panel p { font-size: 0.9375rem; line-height: 1.7; color: rgba(28,30,34,0.75); margin: 0 0 1rem; white-space: pre-line; overflow-wrap: break-word; word-break: break-word; }
.theme-accordion__panel ul { display: flex; flex-direction: column; gap: 0.625rem; }
.theme-accordion__panel li { display: flex; align-items: flex-start; font-size: 0.875rem; line-height: 1.6; color: rgba(28,30,34,0.75); }
.theme-accordion__bullet { width: 0.375rem; height: 0.375rem; margin-top: 0.5rem; margin-right: 0.75rem; background: var(--color-accent); flex-shrink: 0; }
.single-product .posted_in { overflow-wrap: break-word; word-break: break-word; }

/* Related products */
.related-products-section { padding-block: 4rem; border-top: 1px solid var(--color-border); }
@media (min-width: 768px) { .related-products-section { padding-block: 6rem; } }
.theme-related-grid { gap: 1.5rem; }
@media (min-width: 1024px) { .theme-related-grid { gap: 2rem; } }

.theme-related-card { display: block; color: inherit; text-decoration: none; }
.theme-related-card__media {
  position: relative; aspect-ratio: 4/5; background: var(--color-card);
  border: 1px solid var(--color-border); overflow: hidden;
}
.theme-related-card__media-inset { position: absolute; inset: 0.75rem; }
@media (min-width: 768px) { .theme-related-card__media-inset { inset: 1rem; } }
.theme-related-card__ring {
  position: relative; width: 100%; height: 100%; overflow: hidden;
  background: var(--color-background); box-shadow: 0 0 0 1px color-mix(in srgb, var(--color-border) 60%, transparent);
}
.theme-related-card__img {
  width: 100%; height: 100%; object-fit: cover; display: block; position: static !important;
  transition: transform 0.8s cubic-bezier(0.25, 0.4, 0.25, 1);
}
.theme-related-card:hover .theme-related-card__img { transform: scale(1.05); }
.theme-related-card__img.is-soldout { opacity: 0.6; }
.theme-related-card__cat {
  position: absolute; top: 1rem; left: 1rem; z-index: 2;
  padding: 0.125rem 0.5rem; font-size: 0.875rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  background: color-mix(in srgb, var(--color-background) 85%, transparent); color: rgba(28,30,34,0.8);
  border: 1px solid var(--color-border); backdrop-filter: blur(4px);
}
.theme-related-card__soldout {
  position: absolute; top: 1rem; right: 1rem; z-index: 2;
  padding: 0.25rem 0.625rem; font-size: 0.875rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  background: var(--color-destructive); color: var(--color-background);
}
.theme-related-card__meta { margin-top: 1rem; display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; min-width: 0; }
.theme-related-card__title { font-size: 1.125rem; font-family: var(--font-display); font-weight: 600; letter-spacing: 0.01em; line-height: 1.35; transition: color 0.3s; }
.theme-related-card:hover .theme-related-card__title { color: var(--color-accent); }
.theme-related-card__cat-line { margin-top: 0.25rem; font-size: 0.875rem; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(96,100,108,0.8); }
.theme-related-card__price { font-family: var(--font-display); font-size: 1rem; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.related-products-section__head { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 2.5rem; }
@media (min-width: 768px) { .related-products-section__head { flex-direction: row; align-items: flex-end; justify-content: space-between; } }
.related-products-section__heading { font-size: 1.875rem; line-height: 1.2; }
@media (min-width: 768px) { .related-products-section__heading { font-size: 2.25rem; } }

/* ---------- Product card (grid contexts) ---------- */
.theme-product-card-wrap { display: flex; flex-direction: column; height: 100%; }
.theme-product-card {
  position: relative;
  aspect-ratio: 4/5;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  overflow: hidden;
}
.theme-product-card > .theme-card-link { position: absolute; inset: 0; z-index: 2; pointer-events: auto; }
.theme-product-card *:not(.theme-card-link) { pointer-events: none; }
.theme-product-card__image-wrapper { position: absolute; inset: 0.75rem; overflow: hidden; background: var(--color-background); border: 1px solid var(--color-border); }
@media (min-width: 768px) { .theme-product-card__image-wrapper { inset: 1rem; } }
.theme-product-card__image-wrapper img { transition: transform 0.8s cubic-bezier(0.25,0.4,0.25,1); }
.theme-product-card:hover .theme-product-card__image-wrapper img { transform: scale(1.05); }
.theme-product-card__image-wrapper img.is-soldout { opacity: 0.6; }
.theme-product-card__cat-badge {
  position: absolute; top: 1rem; left: 1rem; z-index: 2;
  padding: 0.125rem 0.5rem; font-size: 0.875rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  background: color-mix(in srgb, var(--color-background) 85%, transparent); color: rgba(28,30,34,0.8);
  border: 1px solid var(--color-border); backdrop-filter: blur(4px);
}
.theme-product-card__soldout-badge {
  position: absolute; top: 1rem; right: 1rem; z-index: 2;
  padding: 0.25rem 0.625rem; font-size: 0.875rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  background: var(--color-destructive); color: var(--color-background);
}
.theme-product-card__quick-add {
  position: absolute; bottom: 1rem; right: 1rem; z-index: 3;
  width: 2.75rem; height: 2.75rem; display: flex; align-items: center; justify-content: center;
  background: var(--color-foreground); color: var(--color-background); box-shadow: var(--shadow-elevated);
  border: none; pointer-events: auto; transition: background-color 0.3s, transform 0.2s;
  opacity: 1;
}
@media (min-width: 768px) { .theme-product-card__quick-add { opacity: 0; } .theme-product-card:hover .theme-product-card__quick-add { opacity: 1; } }
.theme-product-card__quick-add:hover { background: var(--color-accent); transform: scale(1.08); }
.theme-product-card-wrap__meta { margin-top: 1rem; display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; min-width: 0; }
.theme-product-card-wrap__meta-text { min-width: 0; }
.theme-product-card-wrap__title { font-size: 1.125rem; font-weight: 600; letter-spacing: 0.01em; line-height: 1.35; transition: color 0.3s; }
.theme-product-card-wrap:hover .theme-product-card-wrap__title { color: var(--color-accent); }
.theme-product-card-wrap__cat { margin-top: 0.25rem; font-size: 0.875rem; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(96,100,108,0.8); }
.theme-product-card-wrap__price { font-family: var(--font-display); font-size: 1rem; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }

.theme-product-grid.related-grid { grid-template-columns: repeat(1, minmax(0,1fr)); }
@media (min-width: 640px) { .theme-product-grid.related-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1024px) { .theme-product-grid.related-grid { grid-template-columns: repeat(4, minmax(0,1fr)); } }

/* ---------- 404 ---------- */
.error-404-page { min-height: 60vh; display: flex; align-items: center; justify-content: center; text-align: center; padding-block: 6rem; }

/* ---------- WooCommerce Checkout Block (Section 13) ---------- */
body.woocommerce-checkout .theme-checkout-main,
body.woocommerce-checkout .theme-checkout-main.site-main {
  padding-top: 0;
}

.theme-checkout-shell {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  padding-inline: 1.25rem;
  padding-block: 0.5rem 4rem;
}
@media (min-width: 640px) { .theme-checkout-shell { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .theme-checkout-shell { padding-inline: 2rem; } }

body.woocommerce-checkout .theme-checkout-main > .container-wide,
body.woocommerce-checkout .theme-checkout-shell,
body.woocommerce-checkout .theme-checkout-main .entry-content,
.entry-content:has(.wc-block-checkout) {
  max-width: none;
  width: 100%;
}

.theme-checkout-header {
  max-width: var(--checkout-max-width);
  width: 100%;
  margin-inline: auto;
  margin-bottom: 0;
  box-sizing: border-box;
}
.checkout-continue-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-muted-foreground);
  transition: color 0.3s;
}
.checkout-continue-link:hover { color: var(--color-accent); }
.theme-checkout-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 2.25rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
@media (min-width: 768px) { .theme-checkout-title { font-size: 3rem; } }
.theme-checkout-intro {
  margin: 0.75rem 0 0;
  max-width: 36rem;
  color: var(--color-muted-foreground);
  font-family: var(--font-body);
  line-height: 1.6;
}

body.woocommerce-checkout .theme-checkout-main .entry-content,
.entry-content:has(.wc-block-checkout) {
  margin-top: 0;
  padding-top: 0;
}
body.woocommerce-checkout .theme-checkout-main .entry-content > .wc-block-checkout,
body.woocommerce-checkout .theme-checkout-main .entry-content > .wp-block-woocommerce-checkout,
.entry-content > .wc-block-checkout:first-child,
.entry-content > .wp-block-woocommerce-checkout:first-child {
  margin-top: 0;
}

body.woocommerce-checkout .wc-block-checkout,
body.woocommerce-checkout .wp-block-woocommerce-checkout,
.entry-content .wc-block-checkout,
.entry-content .wp-block-woocommerce-checkout {
  max-width: var(--checkout-max-width);
  width: 100%;
  min-width: 0;
  margin-inline: auto;
  margin-top: 0;
  padding-top: 0;
  box-sizing: border-box;
}
body.woocommerce-checkout .wc-block-checkout.alignwide,
.entry-content .wc-block-checkout.alignwide {
  margin-top: 0;
}

body.woocommerce-checkout .wc-block-checkout__main,
body.woocommerce-checkout .wc-block-components-main,
.entry-content .wc-block-checkout__main,
.entry-content .wc-block-components-main {
  margin-top: 0;
  padding-top: 0;
}
body.woocommerce-checkout .wc-block-checkout .wc-block-components-sidebar-layout,
body.woocommerce-checkout .wc-block-checkout .wc-block-checkout-sidebar-layout,
.entry-content .wc-block-checkout .wc-block-components-sidebar-layout,
.entry-content .wc-block-checkout .wc-block-checkout-sidebar-layout {
  margin-top: 0;
  padding-top: 0;
}

body.woocommerce-checkout .wc-block-checkout > .wc-block-components-notices:empty,
.entry-content .wc-block-checkout > .wc-block-components-notices:empty {
  display: none;
  margin: 0;
  padding: 0;
}
body.woocommerce-checkout .wc-block-components-notices,
.entry-content .wc-block-components-notices {
  max-width: var(--checkout-max-width);
  width: 100%;
  margin-inline: auto;
  margin-top: 0;
  padding-top: 0;
  margin-bottom: var(--checkout-gap);
  box-sizing: border-box;
}

@media (min-width: 768px) {
  body.woocommerce-checkout .wc-block-checkout .wc-block-components-sidebar-layout,
  body.woocommerce-checkout .wc-block-checkout .wc-block-checkout-sidebar-layout,
  .entry-content .wc-block-checkout .wc-block-components-sidebar-layout,
  .entry-content .wc-block-checkout .wc-block-checkout-sidebar-layout {
    display: grid !important;
    grid-template-columns: 1fr minmax(360px, 400px);
    gap: var(--checkout-gap);
    align-items: start;
    flex-direction: unset;
    flex-wrap: nowrap;
    margin: 0;
  }
  body.woocommerce-checkout .wc-block-checkout .wc-block-components-sidebar-layout .wc-block-checkout__main,
  body.woocommerce-checkout .wc-block-checkout .wc-block-components-sidebar-layout .wc-block-components-main,
  body.woocommerce-checkout .wc-block-checkout .wc-block-components-sidebar-layout .wc-block-checkout__sidebar,
  body.woocommerce-checkout .wc-block-checkout .wc-block-components-sidebar-layout .wc-block-components-sidebar,
  body.woocommerce-checkout .wc-block-checkout .wc-block-checkout-sidebar-layout .wc-block-checkout__main,
  body.woocommerce-checkout .wc-block-checkout .wc-block-checkout-sidebar-layout .wc-block-components-main,
  body.woocommerce-checkout .wc-block-checkout .wc-block-checkout-sidebar-layout .wc-block-checkout__sidebar,
  body.woocommerce-checkout .wc-block-checkout .wc-block-checkout-sidebar-layout .wc-block-components-sidebar,
  .entry-content .wc-block-checkout .wc-block-components-sidebar-layout .wc-block-checkout__main,
  .entry-content .wc-block-checkout .wc-block-components-sidebar-layout .wc-block-components-main,
  .entry-content .wc-block-checkout .wc-block-components-sidebar-layout .wc-block-checkout__sidebar,
  .entry-content .wc-block-checkout .wc-block-components-sidebar-layout .wc-block-components-sidebar,
  .entry-content .wc-block-checkout .wc-block-checkout-sidebar-layout .wc-block-checkout__main,
  .entry-content .wc-block-checkout .wc-block-checkout-sidebar-layout .wc-block-components-main,
  .entry-content .wc-block-checkout .wc-block-checkout-sidebar-layout .wc-block-checkout__sidebar,
  .entry-content .wc-block-checkout .wc-block-checkout-sidebar-layout .wc-block-components-sidebar {
    width: auto !important;
    max-width: 100%;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
  }
}

body.woocommerce-checkout .wc-block-checkout:has(> .wc-block-checkout__main):has(> .wc-block-checkout__sidebar),
.entry-content .wc-block-checkout:has(> .wc-block-checkout__main):has(> .wc-block-checkout__sidebar) {
  display: grid;
  grid-template-columns: 1fr minmax(360px, 400px);
  gap: var(--checkout-gap);
  align-items: start;
}
body.woocommerce-checkout .wc-block-checkout:has(> .wc-block-checkout__main) > .wc-block-components-notices,
.entry-content .wc-block-checkout:has(> .wc-block-checkout__main) > .wc-block-components-notices {
  grid-column: 1 / -1;
}

body.woocommerce-checkout .wc-block-checkout__sidebar,
body.woocommerce-checkout .wc-block-components-sidebar,
body.woocommerce-checkout .wp-block-woocommerce-checkout-totals-block,
.entry-content .wc-block-checkout__sidebar,
.entry-content .wc-block-components-sidebar,
.entry-content .wp-block-woocommerce-checkout-totals-block {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
}
body.woocommerce-checkout .wc-block-checkout__sidebar.is-sticky,
body.woocommerce-checkout .wc-block-components-sidebar.is-sticky,
.entry-content .wc-block-checkout__sidebar.is-sticky,
.entry-content .wc-block-components-sidebar.is-sticky {
  position: sticky;
  top: calc(var(--header-height) + 1.75rem);
  align-self: start;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block,
.entry-content .wp-block-woocommerce-checkout-order-summary-block,
body.woocommerce-checkout .theme-checkout-summary-card,
.entry-content .theme-checkout-summary-card {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  margin-top: 0.75rem;
  padding: 1.5rem;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}
@media (min-width: 768px) {
  body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block,
  .entry-content .wp-block-woocommerce-checkout-order-summary-block {
    padding: 1.75rem;
  }
}

body.woocommerce-checkout .theme-checkout-summary-eyebrow,
.entry-content .theme-checkout-summary-eyebrow {
  position: absolute;
  top: -0.75rem;
  left: 1.5rem;
  padding: 0 0.75rem;
  background: var(--color-card);
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--color-accent);
  line-height: 1.2;
}

body.woocommerce-checkout .theme-checkout-summary-heading,
body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-checkout-order-summary__title,
.entry-content .theme-checkout-summary-heading,
.entry-content .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-checkout-order-summary__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.35;
}

body.woocommerce-checkout .theme-checkout-summary-heading::after,
body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-checkout-order-summary__title::after,
.entry-content .theme-checkout-summary-heading::after,
.entry-content .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-checkout-order-summary__title::after {
  content: '';
  display: block;
  margin-top: 0.75rem;
  margin-bottom: 1.25rem;
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, transparent, var(--color-border), transparent);
}

body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-cart-items-block,
.entry-content .wp-block-woocommerce-checkout-order-summary-cart-items-block {
  max-height: 26.25rem;
  overflow-x: visible;
  overflow-y: auto;
  padding: 0.35rem 0.35rem 0 0;
  margin-bottom: 0;
}
body.woocommerce-checkout .wc-block-components-order-summary__content,
.entry-content .wc-block-components-order-summary__content {
  overflow: visible;
}

body.woocommerce-checkout .wc-block-components-order-summary-item,
.entry-content .wc-block-components-order-summary-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 0.2rem 0.2rem 0 0;
  margin: 0 0 1.25rem;
  border: none;
  overflow: visible;
}
body.woocommerce-checkout .wc-block-components-order-summary-item:last-child,
.entry-content .wc-block-components-order-summary-item:last-child {
  margin-bottom: 0;
}

body.woocommerce-checkout .wc-block-components-order-summary-item__image,
.entry-content .wc-block-components-order-summary-item__image {
  position: relative;
  flex-shrink: 0;
  width: 4rem;
  height: 5rem;
  margin: 0;
  overflow: visible !important;
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: 0;
  isolation: isolate;
}
body.woocommerce-checkout .wc-block-components-order-summary-item__image > a,
.entry-content .wc-block-components-order-summary-item__image > a {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
}
body.woocommerce-checkout .wc-block-components-order-summary-item__image .checkout-summary-thumb,
.entry-content .wc-block-components-order-summary-item__image .checkout-summary-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  display: block;
}

body.woocommerce-checkout .wc-block-components-order-summary-item__quantity,
body.woocommerce-checkout .wc-block-components-order-summary-item__quantity.theme-checkout-qty-badge,
.entry-content .wc-block-components-order-summary-item__quantity,
.entry-content .wc-block-components-order-summary-item__quantity.theme-checkout-qty-badge {
  position: absolute !important;
  top: -0.25rem !important;
  right: -0.25rem !important;
  left: auto !important;
  bottom: auto !important;
  z-index: 5 !important;
  box-sizing: border-box !important;
  width: 1.25rem !important;
  height: 1.25rem !important;
  min-width: 1.25rem !important;
  min-height: 1.25rem !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: grid !important;
  place-items: center !important;
  font-family: var(--font-display) !important;
  font-size: 0 !important;
  line-height: 0 !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-indent: 0 !important;
  color: transparent !important;
  background: var(--color-foreground) !important;
  border: 2px solid var(--color-card) !important;
  border-radius: 50% !important;
  box-shadow: none !important;
  overflow: visible !important;
  transform: none !important;
  white-space: nowrap;
}
body.woocommerce-checkout .wc-block-components-order-summary-item__quantity.theme-checkout-qty-badge--wide,
.entry-content .wc-block-components-order-summary-item__quantity.theme-checkout-qty-badge--wide {
  width: 1.5rem !important;
  height: 1.5rem !important;
  min-width: 1.5rem !important;
  min-height: 1.5rem !important;
}
body.woocommerce-checkout .wc-block-components-order-summary-item__quantity[data-theme-qty]::before,
.entry-content .wc-block-components-order-summary-item__quantity[data-theme-qty]::before {
  content: attr(data-theme-qty);
  grid-area: 1 / 1;
  display: block;
  font-size: 0.6875rem;
  line-height: 1;
  font-weight: 600;
  font-family: var(--font-display);
  color: #f9f8f5 !important;
  -webkit-text-fill-color: #f9f8f5;
  pointer-events: none;
  text-align: center;
}
body.woocommerce-checkout .wc-block-components-order-summary-item__quantity.theme-checkout-qty-badge--wide[data-theme-qty]::before,
.entry-content .wc-block-components-order-summary-item__quantity.theme-checkout-qty-badge--wide[data-theme-qty]::before {
  font-size: 0.625rem;
}
body.woocommerce-checkout .wc-block-components-order-summary-item__quantity > *,
.entry-content .wc-block-components-order-summary-item__quantity > * {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

body.woocommerce-checkout .wc-block-components-product-name,
.entry-content .wc-block-components-product-name {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.35;
}
body.woocommerce-checkout .wc-block-components-product-metadata,
.entry-content .wc-block-components-product-metadata {
  font-size: 0.875rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--color-muted-foreground) 80%, transparent);
}
body.woocommerce-checkout .wc-block-components-order-summary-item__total-price,
.entry-content .wc-block-components-order-summary-item__total-price {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-totals-block,
.entry-content .wp-block-woocommerce-checkout-order-summary-totals-block {
  margin-top: 1.5rem;
  padding-top: 0;
  border-top: none;
}
body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-totals-block::before,
.entry-content .wp-block-woocommerce-checkout-order-summary-totals-block::before {
  content: '';
  display: block;
  margin-bottom: 1.25rem;
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, transparent, var(--color-border), transparent);
}

body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-totals-item,
.entry-content .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-totals-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin: 0 0 0.625rem;
  padding: 0;
  border: none;
  font-family: var(--font-body);
  font-size: 0.875rem;
}
body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-totals-item__label,
.entry-content .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-totals-item__label {
  color: var(--color-muted-foreground);
  font-weight: 400;
}
body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-totals-item__value,
.entry-content .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-totals-item__value {
  font-variant-numeric: tabular-nums;
  text-align: right;
}
body.woocommerce-checkout .theme-checkout-summary-fee-pending,
.entry-content .theme-checkout-summary-fee-pending {
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--color-foreground);
}

body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-totals-footer,
body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-totals-item.wc-block-components-totals-footer,
.entry-content .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-totals-footer,
.entry-content .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-totals-item.wc-block-components-totals-footer {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border);
}
body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-totals-footer .wc-block-components-totals-item__label,
body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-totals-item.wc-block-components-totals-footer .wc-block-components-totals-item__label,
.entry-content .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-totals-footer .wc-block-components-totals-item__label,
.entry-content .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-totals-item.wc-block-components-totals-footer .wc-block-components-totals-item__label {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--color-foreground) 80%, transparent);
}
body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-totals-footer .wc-block-components-totals-item__value,
body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-totals-item.wc-block-components-totals-footer .wc-block-components-totals-item__value,
.entry-content .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-totals-footer .wc-block-components-totals-item__value,
.entry-content .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-totals-item.wc-block-components-totals-footer .wc-block-components-totals-item__value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-foreground);
}

body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-coupon-form-block,
.entry-content .wp-block-woocommerce-checkout-order-summary-coupon-form-block {
  margin: 1rem 0;
  padding: 0;
  border: none;
}

body.woocommerce-checkout .wc-block-checkout-empty,
.entry-content .wc-block-checkout-empty {
  margin-inline: auto;
  max-width: 36rem;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

body.woocommerce-cart .page-title,
body.woocommerce-account .page-title {
  font-family: var(--font-display); font-size: 2.25rem; line-height: 1.2; margin: 2rem 0 2rem;
}
@media (min-width: 768px) { body.woocommerce-cart .page-title, body.woocommerce-account .page-title { font-size: 3rem; } }

body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-select select,
.entry-content .wc-block-checkout .wc-block-components-text-input input,
.entry-content .wc-block-checkout .wc-block-components-select select {
  width: 100% !important; max-width: none !important;
  font-family: var(--font-body); border: 1px solid var(--color-border); border-radius: var(--radius);
  background-color: var(--color-background); color: var(--color-foreground);
}
body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-select select:focus,
body.woocommerce-checkout .wc-block-components-text-input input:focus-visible,
.entry-content .wc-block-checkout .wc-block-components-text-input input:focus,
.entry-content .wc-block-checkout .wc-block-components-select select:focus,
.entry-content .wc-block-checkout .wc-block-components-text-input input:focus-visible {
  border-color: var(--color-foreground); outline: 2px solid color-mix(in srgb, var(--color-accent) 30%, transparent); outline-offset: 1px;
}
body.woocommerce-checkout .wc-block-components-text-input input,
.entry-content .wc-block-checkout .wc-block-components-text-input input { padding: revert; }
body.woocommerce-checkout .wc-block-components-checkout-place-order-button,
.entry-content .wc-block-checkout .wc-block-components-checkout-place-order-button {
  background-color: var(--color-accent) !important; color: var(--color-background) !important;
  border-radius: var(--radius) !important; font-family: var(--font-body) !important;
  text-transform: uppercase; letter-spacing: 0.2em; font-weight: 600; border: none !important;
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover,
.entry-content .wc-block-checkout .wc-block-components-checkout-place-order-button:hover { background-color: var(--color-foreground) !important; }
body.woocommerce-checkout h2,
body.woocommerce-checkout h3,
.entry-content .wc-block-checkout h2,
.entry-content .wc-block-checkout h3 { font-family: var(--font-display); }

body.woocommerce-checkout fieldset#contact-fields,
.entry-content .wc-block-checkout fieldset#contact-fields {
  margin-top: 2rem;
  padding-top: 0;
}
body.woocommerce-checkout #contact-fields .wc-block-components-checkout-step__heading-container,
.entry-content .wc-block-checkout #contact-fields .wc-block-components-checkout-step__heading-container {
  margin-top: 0.75rem;
  margin-bottom: 0.25rem;
}
body.woocommerce-checkout .wc-block-components-checkout-step__title,
.entry-content .wc-block-checkout .wc-block-components-checkout-step__title {
  margin: 0;
  padding: 0;
  line-height: 1.3;
}
body.woocommerce-checkout #contact-fields .wc-block-components-checkout-step__title,
.entry-content .wc-block-checkout #contact-fields .wc-block-components-checkout-step__title {
  margin-top: 0.5rem;
  margin-bottom: 0.25rem;
}
body.woocommerce-checkout #contact-fields .wc-block-components-checkout-step__container,
body.woocommerce-checkout #contact-fields .wc-block-components-checkout-step__content,
.entry-content .wc-block-checkout #contact-fields .wc-block-components-checkout-step__container,
.entry-content .wc-block-checkout #contact-fields .wc-block-components-checkout-step__content {
  margin-top: 0;
  padding-top: 0;
}

/* ---------- Thank-you page ---------- */
body.theme-thankyou-page { overflow-x: hidden; }
body.theme-thankyou-page .site-main { padding-top: 0; padding-bottom: 4rem; }
body.theme-thankyou-page .woocommerce-order,
body.theme-thankyou-page .woocommerce-order-details,
body.theme-thankyou-page .woocommerce-customer-details {
  font-family: var(--font-body);
}
body.theme-thankyou-page .woocommerce-order h2,
body.theme-thankyou-page .woocommerce-order-details__title {
  font-family: var(--font-display); font-size: 1.5rem; padding: 0 0 1rem 0;
}
body.theme-thankyou-page .woocommerce-order-overview { display: flex; flex-wrap: wrap; gap: 1.5rem; list-style: none; padding: 0; margin: 0 0 2rem; }
body.theme-thankyou-page .woocommerce-order-overview li { border: 1px solid var(--color-border); border-radius: var(--radius); padding: 0.75rem 1.25rem; background: var(--color-card); }
body.theme-thankyou-page .woocommerce-order-details table { width: 100%; table-layout: fixed; border-collapse: collapse; }
body.theme-thankyou-page .woocommerce-order-details table th,
body.theme-thankyou-page .woocommerce-order-details table td { border: 1px solid var(--color-border); padding: 0.75rem; }
body.theme-thankyou-page .woocommerce-order-details tfoot th { text-align: left; }
body.theme-thankyou-page .woocommerce-order-details tfoot td { text-align: right; }
@media (min-width: 768px) {
  body.theme-thankyou-page .woocommerce-customer-details {
    display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start;
  }
}
body.theme-thankyou-page .woocommerce-customer-details address { min-width: 0; overflow-wrap: break-word; }

/* ---------- Customizer media control (control panel) ---------- */
