/* =============================================================
   Makolet Market Theme — theme.css
   Exact replication of the Lovable frontend design system.
   ALL colors are CSS variables defined in :root via wp_add_inline_style.
   ============================================================= */

/* ============================================================
   1. RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--color-background);
  color: var(--color-foreground);
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Lora', serif;
  margin: 0;
  line-height: 1.2;
}

p { margin: 0; }
a { text-decoration: none; color: inherit; }
img, video { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; padding: 0; font-family: inherit; font-size: inherit; color: inherit; }
input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}
ul, ol { list-style: none; margin: 0; padding: 0; }

/* ============================================================
   2. CSS CUSTOM PROPERTIES (design tokens)
   Color vars injected via wp_add_inline_style.
   ============================================================ */
:root {
  --font-display: 'Lora', serif;
  --font-body: 'Open Sans', sans-serif;

  /* Structural tokens */
  --radius: 0.5rem;
  --header-height: 80px;
  --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-soft: 0 4px 20px -4px rgba(58,45,32,0.08);
  --shadow-elevated: 0 8px 40px -8px rgba(58,45,32,0.12);

  /* Button tokens derived from color vars */
  --btn-radius: var(--radius);
  --btn-height: 2.75rem;
  --btn-padding: 0.75rem 2rem;
  --btn-font-size: 0.875rem;
  --btn-font-weight: 500;
  --btn-letter-spacing: 0.01em;
  --btn-text-transform: none;
  --color-button-text: var(--color-primary-foreground);

  /* Spacing */
  --section-padding: 5rem;

  /* Muted surface (Lovable --muted); overridden by wp_add_inline_style */
  --color-muted: #d9d4cb;
}

/* ============================================================
   3. LAYOUT UTILITIES
   ============================================================ */
.container-wide {
  width: 100%;
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
@media (min-width: 1024px) {
  .container-wide {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.py-20 { padding-top: 5rem; padding-bottom: 5rem; }

/* ============================================================
   4. TYPOGRAPHY
   ============================================================ */
.font-display { font-family: var(--font-display); }
.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted-foreground);
}
.muted { color: var(--color-muted-foreground); }

/* ============================================================
   5. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: var(--btn-height);
  padding: var(--btn-padding);
  font-family: var(--font-body);
  font-size: var(--btn-font-size);
  font-weight: var(--btn-font-weight);
  letter-spacing: var(--btn-letter-spacing);
  text-transform: var(--btn-text-transform);
  border-radius: var(--btn-radius);
  cursor: pointer;
  transition: opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease;
  border: none;
  line-height: 1;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-primary-foreground);
}
.btn-primary:hover {
  background-color: color-mix(in srgb, var(--color-primary) 90%, transparent);
}

.btn-secondary {
  background-color: var(--color-secondary);
  color: var(--color-foreground);
}
.btn-secondary:hover {
  background-color: color-mix(in srgb, var(--color-secondary) 60%, transparent);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-foreground);
  border: 1px solid var(--color-border);
}
.btn-outline:hover {
  background-color: var(--color-secondary);
}

/* ============================================================
   6. LINK UNDERLINE ANIMATION
   ============================================================ */
.link-underline {
  position: relative;
  display: inline-block;
}
.link-underline::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: currentColor;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.3s var(--transition-smooth);
}
.link-underline:hover::after {
  transform: scaleX(1);
}

/* ============================================================
   7. ANIMATIONS
   ============================================================ */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.6s var(--transition-smooth) forwards;
}
.animate-slide-up {
  animation: slideUp 0.6s var(--transition-smooth) forwards;
}

.image-zoom {
  transition: transform 0.7s ease-out;
}
.group-hover-zoom:hover .image-zoom,
.group-hover-zoom-wrap:hover .image-zoom {
  transform: scale(1.05);
}

/* ============================================================
   8. SITE LOGO
   ============================================================ */
/* Lovable: header logo h-10 (40px) / lg:h-12 (48px); footer h-10 */
.site-logo-img {
  width: auto !important;
  display: block;
}
.header-logo-link .site-logo-img {
  height: 2.5rem !important;
}
@media (min-width: 1024px) {
  .header-logo-link .site-logo-img {
    height: var(--logo-height) !important;
    max-height: 3.5rem;
  }
}
.footer-logo-link .site-logo-img {
  height: 2.5rem !important;
}
.site-logo-text {
  line-height: var(--logo-height);
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-foreground);
}

/* ============================================================
   9. HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background-color: color-mix(in srgb, var(--color-background) 95%, transparent);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-bottom: 1px solid var(--color-border);
  transition: background-color 0.3s ease;
}

/* Lovable: header stays bg-background/95 — no solid fill or shadow on scroll */
.site-header.is-solid {
  background-color: color-mix(in srgb, var(--color-background) 95%, transparent);
  box-shadow: none;
}

.header-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}
@media (min-width: 1024px) {
  .header-nav { height: 5rem; }
}

.header-logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header-nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}
@media (min-width: 768px) {
  .header-nav-links { display: flex; }
}

.header-nav-links a,
.header-nav-links button {
  font-size: 0.875rem;
  font-family: var(--font-body);
  letter-spacing: 0.025em;
  color: var(--color-foreground);
  transition: color 0.2s ease;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-cart-btn {
  position: relative;
  padding: 0.5rem;
  transition: opacity 0.2s ease;
  color: var(--color-foreground);
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
}
.header-cart-btn:hover { opacity: 0.6; }

.theme-cart-count {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 1.25rem;
  height: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  font-weight: 500;
  background-color: var(--color-primary);
  color: var(--color-primary-foreground);
  border-radius: 9999px;
  line-height: 1;
  padding: 0 3px;
}
.theme-cart-count:empty { display: none; }

.mobile-menu-toggle {
  padding: 0.5rem;
  color: var(--color-foreground);
  transition: opacity 0.2s ease;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
}
.mobile-menu-toggle:hover { opacity: 0.6; }
@media (min-width: 768px) {
  .mobile-menu-toggle { display: none; }
}

.mobile-menu-toggle .icon-close { display: none; }
.mobile-menu-toggle.is-open .icon-menu { display: none; }
.mobile-menu-toggle.is-open .icon-close { display: block; }

.mobile-nav {
  display: none;
  border-top: 1px solid var(--color-border);
  padding: 1rem 0;
}
.mobile-nav.is-open {
  display: block;
  animation: fadeIn 0.3s ease;
}
@media (min-width: 768px) {
  .mobile-nav { display: none !important; }
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.mobile-nav-links a,
.mobile-nav-links button {
  display: block;
  text-align: left;
  font-size: 0.875rem;
  font-family: var(--font-body);
  letter-spacing: 0.025em;
  padding: 0.5rem 0;
  transition: color 0.2s ease;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-foreground);
}
.mobile-nav-links a:hover,
.mobile-nav-links button:hover {
  color: var(--color-muted-foreground);
}

/* ============================================================
   10. HERO
   ============================================================ */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-bg-wrap {
  position: absolute;
  inset: 0;
}
.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-content {
  position: relative;
  z-index: 10;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.hero-copy {
  max-width: 32rem;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-muted-foreground);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--color-foreground);
  margin-bottom: 1.5rem;
}

.hero-desc {
  color: var(--color-muted-foreground);
  max-width: 28rem;
  margin-bottom: 2.5rem;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
@media (min-width: 640px) {
  .hero-buttons { flex-direction: row; }
}

/* ============================================================
   11. FEATURES SECTION
   ============================================================ */
.features-section {
  padding: 5rem 0;
  scroll-margin-top: 6rem;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .features-grid { grid-template-columns: repeat(4, 1fr); }
}

.feature-item {
  text-align: center;
  padding: 1.5rem;
}

.feature-icon-wrap {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  background-color: var(--color-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.feature-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--color-foreground);
  margin-bottom: 0.5rem;
}

.feature-desc {
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
}

/* ============================================================
   12. ABOUT SECTION
   ============================================================ */
.about-section {
  background-color: var(--color-secondary);
  scroll-margin-top: 6rem;
}

/* Lovable: container-wide py-20 > grid gap-12 lg:gap-20 items-center */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
  }
}

.about-copy {
  min-width: 0;
}

/* Lovable: eyebrow sin mb; h2 con mt-2 mb-6 únicamente */
.about-copy .section-eyebrow {
  display: block;
  margin-bottom: 0;
}

.about-title {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-foreground);
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 768px) {
  .about-title {
    font-size: 2.25rem;
  }
}

.about-paragraphs {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: var(--color-muted-foreground);
  line-height: 1.625;
}

.about-image-wrap {
  aspect-ratio: 1;
  background-color: color-mix(in srgb, var(--color-primary) 10%, transparent);
  border-radius: var(--radius);
  overflow: hidden;
}

.about-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================
   13. SHOP SECTION
   ============================================================ */
.shop-section {
  padding: 5rem 0;
  scroll-margin-top: 6rem;
}

.shop-header {
  text-align: center;
  margin-bottom: 3rem;
}

.shop-header .section-eyebrow {
  display: block;
  margin-bottom: 0.5rem;
}

.shop-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 500;
  color: var(--color-foreground);
  margin-bottom: 2rem;
}

/* Category Pills */
.category-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.cat-pill {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  border-radius: 9999px;
  background-color: var(--color-secondary);
  color: var(--color-foreground);
  transition: background-color 0.3s ease, color 0.3s ease;
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
}
.cat-pill:hover:not(.active) {
  background-color: var(--color-muted);
}
.cat-pill.active {
  background-color: var(--color-primary);
  color: var(--color-primary-foreground);
}

/* Product Grid */
.theme-product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .theme-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .theme-product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
  }
}

.shop-empty {
  text-align: center;
  padding: 5rem 0;
  color: var(--color-muted-foreground);
}

/* Product Card — used on archive, homepage, related */
.theme-product-card-wrap {
  animation: fadeIn 0.6s var(--transition-smooth) forwards;
}

.theme-product-card {
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
}

.theme-product-card__image-wrapper {
  position: relative;
  aspect-ratio: 3/4;
  background-color: var(--color-secondary);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1rem;
}

.theme-product-card__image-link {
  display: block;
  overflow: hidden;
}

.theme-product-card__image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.7s ease-out;
}
.theme-product-card:hover .theme-product-card__image-wrapper img {
  transform: scale(1.05);
}
.theme-product-card.is-sold-out .theme-product-card__image-wrapper img {
  opacity: 0.6;
}

.theme-product-card__title {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-foreground);
  transition: opacity 0.2s ease;
  margin-bottom: 0.25rem;
}
.theme-product-card:hover .theme-product-card__title {
  opacity: 0.7;
}

.theme-product-card__price {
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
}

/* Badges */
.sold-out-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background-color: var(--color-foreground);
  color: var(--color-background);
  z-index: 2;
}

.new-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background-color: var(--color-primary);
  color: var(--color-primary-foreground);
  z-index: 2;
}

.wic-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.125rem 0.5rem;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background-color: hsl(140 60% 35%);
  color: white;
  border-radius: 0.25rem;
  z-index: 2;
}

/* Quick-add — Lovable ProductCard: bottom-3 right-3 w-9 h-9, opacity-0 group-hover:opacity-100, duration-300, hover:scale-110, shadow-md */
.theme-product-card__quick-add {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  width: 2.25rem;
  height: 2.25rem;
  min-width: 2.25rem;
  min-height: 2.25rem;
  border-radius: 9999px;
  background-color: var(--color-primary);
  color: var(--color-primary-foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transition-timing-function: var(--transition-smooth);
  z-index: 3;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  line-height: 0;
}
.theme-product-card__quick-add svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}
.theme-product-card:hover .theme-product-card__quick-add {
  opacity: 1;
}
.theme-product-card__quick-add:hover {
  transform: scale(1.1);
}

/* Coming Soon Banner */
.coming-soon-banner {
  margin-top: 4rem;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
.coming-soon-bg-wrap {
  position: absolute;
  inset: 0;
}
.coming-soon-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.coming-soon-overlay {
  position: absolute;
  inset: 0;
  background-color: color-mix(in srgb, var(--color-background) 30%, transparent);
}
.coming-soon-content-wrap {
  position: relative;
  z-index: 10;
  padding: 3rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 12rem;
}
.coming-soon-content {
  background-color: color-mix(in srgb, var(--color-background) 85%, transparent);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  text-align: center;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  border: 1px solid color-mix(in srgb, var(--color-border) 50%, transparent);
}
.coming-soon-content .section-eyebrow {
  display: block;
  margin-bottom: 0.5rem;
}
.coming-soon-title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.875rem);
  font-weight: 500;
  color: var(--color-foreground);
  margin-bottom: 0.75rem;
}
.coming-soon-desc {
  color: var(--color-muted-foreground);
  max-width: 28rem;
  margin: 0 auto;
}

/* ============================================================
   14. INSTAGRAM & MAP SECTION
   ============================================================ */
.instagram-map-section {
  padding: 5rem 0;
}

.instagram-map-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 1024px) {
  .instagram-map-grid { grid-template-columns: 1fr 1fr; }
}

/* Instagram Card */
.instagram-card {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  min-height: 31.25rem;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}
.instagram-card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.instagram-card-overlay {
  position: absolute;
  inset: 0;
  background-color: color-mix(in srgb, var(--color-background) 80%, transparent);
}
.instagram-card-content {
  position: relative;
  z-index: 10;
  padding: 3rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 31.25rem;
}
.instagram-inner {
  text-align: center;
  max-width: 24rem;
}
.instagram-title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.875rem);
  font-weight: 500;
  color: var(--color-foreground);
  margin-bottom: 1rem;
}
.instagram-desc {
  color: var(--color-muted-foreground);
  margin-bottom: 1.5rem;
}
.instagram-bullets {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
  color: var(--color-muted-foreground);
}
.instagram-bullets li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.bullet-dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 9999px;
  background-color: var(--color-primary);
  flex-shrink: 0;
}

/* Map Card */
.map-card {
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--color-secondary);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}
@media (min-width: 1024px) {
  .map-card { padding: 2.5rem; }
}
.map-title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.875rem);
  font-weight: 500;
  color: var(--color-foreground);
  margin-bottom: 1.5rem;
  text-align: center;
}
.map-embed-wrap {
  flex: 1;
  min-height: 25rem;
  border-radius: var(--radius);
  overflow: hidden;
}
.map-embed-wrap iframe {
  display: block;
  width: 100%;
  height: 100%;
}

/* ============================================================
   15. FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--color-border);
  margin-top: 5rem;
}

.footer-grid {
  padding-top: 3rem;
  padding-bottom: 3rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
}

.footer-brand {}
.footer-logo-link { display: inline-block; margin-bottom: 1rem; }

.footer-tagline {
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
  max-width: 22rem;
  line-height: 1.6;
  margin-top: 1rem;
}
.footer-sub-tagline {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  font-style: italic;
  opacity: 0.8;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}
.footer-social-link {
  padding: 0.5rem;
  transition: opacity 0.2s ease;
  color: var(--color-foreground);
}
.footer-social-link:hover { opacity: 0.6; }

.footer-col-title {
  font-size: 0.875rem;
  font-weight: 500;
  font-family: var(--font-body);
  color: var(--color-foreground);
  margin-bottom: 1rem;
}

.footer-nav-list,
.theme-footer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-nav-list li,
.theme-footer-nav-list li {}
.footer-nav-list a,
.footer-nav-list button,
.theme-footer-nav-list a,
.theme-footer-nav-list button {
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
  transition: color 0.2s ease;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: var(--font-body);
}
.footer-nav-list a:hover,
.footer-nav-list button:hover,
.theme-footer-nav-list a:hover,
.theme-footer-nav-list button:hover {
  color: var(--color-foreground);
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
}
.footer-contact-list svg { flex-shrink: 0; margin-top: 2px; }
.footer-contact-list a { transition: color 0.2s ease; }
.footer-contact-list a:hover { color: var(--color-foreground); }
.footer-address-item { align-items: flex-start; }

.footer-bottom {
  border-top: 1px solid var(--color-border);
}
.footer-bottom-inner {
  padding-top: 2rem;
  padding-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}
@media (min-width: 640px) {
  .footer-bottom-inner { flex-direction: row; }
}
.footer-copyright {
  font-size: 0.75rem;
  color: var(--color-muted-foreground);
}
.footer-credit {
  font-size: 0.75rem;
  color: var(--color-muted-foreground);
  transition: color 0.2s ease;
}
.footer-credit:hover { color: var(--color-foreground); }

/* ============================================================
   16. INNER PAGE LAYOUT
   ============================================================ */
.inner-page-main {
  padding-top: 6rem;
  min-height: 60vh;
}
@media (min-width: 1024px) {
  .inner-page-main { padding-top: 7rem; }
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
  transition: color 0.2s ease;
  margin-bottom: 2rem;
  cursor: pointer;
}
.back-link:hover { color: var(--color-foreground); }

/* ============================================================
   17. CONTACT PAGE
   ============================================================ */
.contact-wrap {
  padding: 2.5rem 0;
}

.contact-header {
  text-align: center;
  margin-bottom: 3rem;
}
.contact-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 500;
  color: var(--color-foreground);
  margin-bottom: 1rem;
}
.contact-subtitle {
  color: var(--color-muted-foreground);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  max-width: 56rem;
  margin: 0 auto;
}
@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: 1fr 2fr; }
}

.contact-info-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-card {
  background-color: var(--color-secondary);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.info-card-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--color-foreground);
  margin-bottom: 1rem;
}
.info-card-desc {
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.store-info-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.store-info-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
}
.store-info-list li svg {
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 1px;
}
.store-info-list a { transition: color 0.2s ease; }
.store-info-list a:hover { color: var(--color-primary); }
.address-item { align-items: flex-start; }

.follow-handle {
  font-size: 0.875rem;
  color: var(--color-primary);
  transition: text-decoration 0.2s ease;
}
.follow-handle:hover { text-decoration: underline; }

.map-embed-small {
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  overflow: hidden;
}
.map-embed-small iframe {
  width: 100%;
  height: 100%;
  display: block;
}

/* Contact Form */
.contact-form-col {}

.contact-success-msg {
  text-align: center;
  padding: 5rem 0;
}
.success-icon-wrap {
  width: 4rem;
  height: 4rem;
  background-color: var(--color-primary);
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--color-primary-foreground);
}
.success-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 500;
  margin-bottom: 1rem;
  color: var(--color-foreground);
}
.success-desc {
  margin-bottom: 2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .form-row-2 { grid-template-columns: 1fr 1fr; }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-foreground);
}
.required { color: var(--color-primary); }

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.875rem;
  color: var(--color-foreground);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  appearance: none;
}
.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-muted-foreground);
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(122, 92, 62, 0.1);
}
.form-textarea { resize: none; }
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237a7165' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
}

.form-error {
  color: #dc2626;
  font-size: 0.875rem;
  padding: 0.75rem;
  background-color: #fef2f2;
  border-radius: var(--radius);
  border: 1px solid #fca5a5;
}

.contact-submit-btn {
  width: 100%;
}
@media (min-width: 768px) {
  .contact-submit-btn { width: auto; }
}

/* ============================================================
   18. SINGLE PRODUCT PAGE
   ============================================================ */
.single-product .inner-page-main,
body.single-product main.inner-page-main {
  padding-top: 6rem;
}

.product-back-link-wrap { padding: 1.5rem 0; }

.theme-product-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 5rem;
  min-width: 0;
}
@media (min-width: 1024px) {
  .theme-product-layout {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.theme-product-gallery {
  min-width: 0;
  max-width: 100%;
}

/* Main image */
#product-main-img-wrap {
  aspect-ratio: 3/4;
  background-color: var(--color-secondary);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1rem;
}
#product-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Thumbnails */
.theme-product-thumbnails {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  max-width: 100%;
}

.theme-product-thumb-btn {
  width: 4rem;
  height: 5rem;
  border-radius: calc(var(--radius) / 2);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  background: none;
  transition: border-color 0.2s ease;
  flex-shrink: 0;
}
.theme-product-thumb-btn.is-active {
  border-color: var(--color-foreground);
}
.theme-product-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Product Info */
.theme-product-info {
  min-width: 0;
  max-width: 100%;
  padding-top: 0;
}
@media (min-width: 1024px) {
  .theme-product-info { padding-top: 2.5rem; }
}

.product-category {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted-foreground);
  display: block;
  margin-bottom: 0.5rem;
}
.product-title-h1 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  color: var(--color-foreground);
  margin-bottom: 1rem;
}
.product-price {
  font-size: 1.25rem;
  color: var(--color-foreground);
  margin-bottom: 1.5rem;
  overflow-wrap: break-word;
}
.product-price ins {
  text-decoration: none;
}
.product-sold-out-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: var(--color-secondary);
  color: var(--color-muted-foreground);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}
.product-description {
  color: var(--color-muted-foreground);
  line-height: 1.7;
  margin-bottom: 2rem;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Attribute / Size buttons */
.product-attr-group {
  margin-bottom: 1.5rem;
}
.product-attr-label {
  font-size: 0.875rem;
  font-weight: 500;
  display: block;
  margin-bottom: 0.75rem;
}
.product-attr-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.product-attr-btn {
  min-width: 3rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: none;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
  font-family: var(--font-body);
}
.product-attr-btn:hover { border-color: var(--color-foreground); }
.product-attr-btn.selected {
  border-color: var(--color-foreground);
  background-color: var(--color-foreground);
  color: var(--color-background);
}

/* Variations table */
.single-product .variations.shop_attributes tbody,
.single-product .variations tbody tr,
.single-product .variations tbody td {
  display: block;
  width: 100%;
}
.single-product .variations tbody td.label { padding-bottom: 0.25rem; }
.single-product .variations tbody td.value { padding-top: 0; }
.theme-attr-select-hidden { display: none !important; }

/* Quantity + Add to Cart area */
.theme-add-to-cart-area {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  align-items: center;
}
.single-product .theme-add-to-cart-area {
  flex-wrap: wrap;
  gap: 0.75rem;
}

.theme-quantity-wrapper {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
}
.theme-qty-minus,
.theme-qty-plus {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: none;
  border: none;
  font-size: 1.125rem;
  transition: background-color 0.2s ease;
  font-family: var(--font-body);
  color: var(--color-foreground);
}
.theme-qty-minus:hover,
.theme-qty-plus:hover { background-color: var(--color-secondary); }

.theme-qty-input {
  width: 3rem;
  text-align: center;
  border: none;
  border-left: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  background: none;
  font-size: 0.875rem;
  padding: 0.75rem 0;
  -moz-appearance: textfield;
  color: var(--color-foreground);
  min-height: 3rem;
}
.theme-qty-input::-webkit-outer-spin-button,
.theme-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.theme-qty-input:focus { outline: none; }

/* Product details list */
.product-details-section {
  border-top: 1px solid var(--color-border);
  padding-top: 2rem;
}
.product-details-title {
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
  color: var(--color-foreground);
  font-family: var(--font-body);
}
.product-details-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.product-details-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
  overflow-wrap: break-word;
  word-break: break-word;
}
.product-details-bullet {
  width: 0.375rem;
  height: 0.375rem;
  background-color: var(--color-muted-foreground);
  border-radius: 9999px;
  flex-shrink: 0;
  margin-top: 0.5rem;
}

/* Posted in categories */
.posted_in {
  overflow-wrap: break-word;
  word-break: break-word;
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
}

/* Related Products */
.related-products-section {
  padding: 5rem 0;
  border-top: 1px solid var(--color-border);
}
.related-products-title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 500;
  color: var(--color-foreground);
  margin-bottom: 2.5rem;
}
.related-products-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}
@media (min-width: 1024px) {
  .related-products-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
  }
}

/* WooCommerce short description */
.woocommerce-product-details__short-description {
  overflow-wrap: break-word;
  word-break: break-word;
}

/* ============================================================
   19. WooCommerce ADD-TO-CART BUTTON OVERRIDES (§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-primary) !important;
  color: var(--color-primary-foreground) !important;
  border: none !important;
  border-radius: var(--btn-radius) !important;
  min-height: var(--btn-height) !important;
  padding: var(--btn-padding) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-family: var(--font-body) !important;
  font-size: var(--btn-font-size) !important;
  font-weight: var(--btn-font-weight) !important;
  letter-spacing: var(--btn-letter-spacing) !important;
  text-transform: var(--btn-text-transform) !important;
  cursor: pointer !important;
  transition: opacity 0.2s ease !important;
  text-decoration: none !important;
}
.single_add_to_cart_button.button:hover,
.add_to_cart_button.button:hover {
  opacity: 0.85 !important;
  background-color: var(--color-primary) !important;
  color: var(--color-primary-foreground) !important;
}

/* Disabled state (variable product unselected + sold-out simple) */
.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,
.single_add_to_cart_button.button.disabled:hover,
.add_to_cart_button.button:disabled:hover,
.add_to_cart_button.button.disabled:hover {
  opacity: 0.4 !important;
  background-color: var(--color-primary) !important;
}

/* Card compact button overrides */
.theme-product-card .add_to_cart_button.ajax_add_to_cart {
  min-height: unset !important;
  padding: 0 !important;
  border-radius: 50% !important;
  width: 2.25rem !important;
  height: 2.25rem !important;
  font-size: 0 !important;
  line-height: 0 !important;
  transition: opacity 0.3s ease, transform 0.3s var(--transition-smooth) !important;
}
.theme-product-card .theme-product-card__quick-add.add_to_cart_button:hover {
  opacity: 1 !important;
  transform: scale(1.1) !important;
  background-color: var(--color-primary) !important;
  color: var(--color-primary-foreground) !important;
}

/* Hide "View cart" after AJAX add */
.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;
}

/* Button loading state */
.ajax_add_to_cart.theme-btn-loading {
  opacity: 0.6 !important;
  pointer-events: none !important;
  cursor: wait !important;
}

/* ============================================================
   20. CART DRAWER
   ============================================================ */
#theme-cart-overlay {
  position: fixed;
  inset: 0;
  background-color: color-mix(in srgb, var(--color-foreground) 20%, transparent);
  z-index: 40;
  display: none;
  animation: fadeIn 0.3s ease;
}
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-color: var(--color-background);
  z-index: 50;
  box-shadow: var(--shadow-elevated);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}
body.cart-open #theme-cart-drawer {
  transform: translateX(0);
}
#theme-cart-drawer.is-updating {
  opacity: 0.6;
  pointer-events: none;
}

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}
.cart-drawer-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--color-foreground);
}
.cart-drawer-close {
  padding: 0.25rem;
  color: var(--color-foreground);
  transition: opacity 0.2s ease;
  background: none;
  border: none;
  cursor: pointer;
}
.cart-drawer-close:hover { opacity: 0.6; }

.cart-drawer-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
}
.cart-empty-icon {
  color: var(--color-muted-foreground);
  margin-bottom: 1rem;
}
.cart-empty-text {
  color: var(--color-muted-foreground);
  margin-bottom: 1.5rem;
}

.cart-drawer-items {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cart-item {
  display: flex;
  gap: 1rem;
}
.cart-item-image-link {
  width: 5rem;
  height: 6rem;
  background-color: var(--color-secondary);
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
  display: block;
}
.cart-item-image-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cart-item-details {
  flex: 1;
  min-width: 0;
}
.cart-item-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-foreground);
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: opacity 0.2s ease;
  margin-bottom: 0.125rem;
}
.cart-item-name:hover { opacity: 0.7; }
.cart-item-price {
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
  margin-bottom: 0.25rem;
}
.cart-item-variation {
  font-size: 0.75rem;
  color: var(--color-muted-foreground);
  margin-bottom: 0.75rem;
}
.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.cart-qty-btn {
  padding: 0.25rem;
  background-color: transparent;
  border: none;
  cursor: pointer;
  color: var(--color-foreground);
  transition: background-color 0.2s ease;
  border-radius: 0.25rem;
}
.cart-qty-btn:hover { background-color: var(--color-secondary); }
.cart-item-qty-display {
  font-size: 0.875rem;
  min-width: 1.5rem;
  text-align: center;
}
.cart-item-remove {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--color-muted-foreground);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s ease;
}
.cart-item-remove:hover { color: var(--color-foreground); }

.cart-drawer-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.cart-subtotal-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
}
.cart-subtotal-label { color: var(--color-muted-foreground); }
.cart-subtotal-value { font-weight: 500; }
.cart-free-info {
  font-size: 0.75rem;
  color: var(--color-muted-foreground);
  margin-top: -0.25rem;
}
.cart-checkout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.875rem;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: var(--font-body);
  background-color: var(--color-primary);
  color: var(--color-primary-foreground);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: opacity 0.2s ease;
  text-decoration: none;
  min-height: var(--btn-height);
}
.cart-checkout-btn:hover { opacity: 0.9; }

/* ============================================================
   21. WOOCOMMERCE ARCHIVE (SHOP PAGE)
   ============================================================ */
.woocommerce-page .woocommerce-products-header { display: none; }

/* WooCommerce notices — scoped */
.single-product .woocommerce-message,
.single-product .woocommerce-info { display: none; }
#theme-cart-drawer .woocommerce-message { display: none; }

/* Style WC notices on shop/archive to match theme */
.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-error,
.woocommerce-notices-wrapper .woocommerce-info {
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  border: 1px solid;
}
.woocommerce-notices-wrapper .woocommerce-message {
  background-color: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}
.woocommerce-notices-wrapper .woocommerce-error {
  background-color: #fef2f2;
  border-color: #fca5a5;
  color: #dc2626;
}
.woocommerce-notices-wrapper .woocommerce-info {
  background-color: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

/* ============================================================
   22. WOOCOMMERCE CHECKOUT (§13)
   ============================================================ */
body.woocommerce-checkout .site-main {
  padding-top: var(--header-height, 80px);
  padding-bottom: 4rem;
}

body.woocommerce-checkout .entry-content {
  padding: 2rem 0;
}

body.woocommerce-checkout .page-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  color: var(--color-foreground);
  margin-bottom: 2rem;
  padding: 0 1rem;
}

/* Two-column grid */
@media (min-width: 768px) {
  body.woocommerce-checkout .wc-block-checkout {
    display: block;
  }
  body.woocommerce-checkout .wc-block-components-sidebar-layout.wc-block-checkout.is-large {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
    align-items: start;
  }
}

body.woocommerce-checkout .wc-block-checkout__main,
body.woocommerce-checkout .wc-block-checkout__sidebar {
  min-width: 0;
  width: 100%;
  max-width: none;
}

body.woocommerce-checkout .wc-block-checkout__sidebar {
  background-color: var(--color-secondary);
  border-radius: var(--radius);
  padding: 2rem;
}

body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-select select,
body.woocommerce-checkout .wc-block-components-textarea textarea {
  width: 100% !important;
  max-width: none !important;
  background-color: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-foreground);
  transition: border-color 0.2s ease;
}
body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-select select:focus {
  border-color: var(--color-primary);
  outline: none;
  box-shadow: 0 0 0 2px rgba(122, 92, 62, 0.1);
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
  background-color: var(--color-primary) !important;
  color: var(--color-primary-foreground) !important;
  border: none !important;
  border-radius: var(--btn-radius) !important;
  font-family: var(--font-body) !important;
  font-size: var(--btn-font-size) !important;
  font-weight: var(--btn-font-weight) !important;
  cursor: pointer !important;
  transition: opacity 0.2s ease !important;
  min-height: var(--btn-height) !important;
  padding: var(--btn-padding) !important;
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover {
  opacity: 0.9 !important;
}

body.woocommerce-checkout .wc-block-components-notice-banner {
  background-color: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  font-size: 0.875rem;
  color: #1d4ed8;
}

/* ============================================================
   23. THANK YOU PAGE (§22.8)
   ============================================================ */
body.theme-thankyou-page .woocommerce-order {
  font-size: 0.875rem;
  color: var(--color-foreground);
}
body.theme-thankyou-page .woocommerce-order-overview {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
  margin: 0 0 2rem;
  padding: 1.5rem;
  background-color: var(--color-secondary);
  border-radius: var(--radius);
}
body.theme-thankyou-page .woocommerce-order-overview li {
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
}
body.theme-thankyou-page .woocommerce-order-overview li strong {
  color: var(--color-foreground);
}
body.theme-thankyou-page .woocommerce-customer-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
body.theme-thankyou-page .woocommerce-customer-details address {
  max-width: 480px;
  overflow-wrap: break-word;
}
body.theme-thankyou-page .woocommerce-order-details {
  margin-top: 2rem;
}
body.theme-thankyou-page .woocommerce-order-details table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 0.875rem;
}
body.theme-thankyou-page .woocommerce-order-details table th,
body.theme-thankyou-page .woocommerce-order-details table td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
}
body.theme-thankyou-page .woocommerce-order-details tfoot th { text-align: left; }
body.theme-thankyou-page .woocommerce-order-details tfoot td { text-align: right; }
body.theme-thankyou-page .woocommerce-order-details h2,
body.theme-thankyou-page .woocommerce-order-details__title {
  padding: 0 0 1rem 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-foreground);
}
body.theme-thankyou-page .woocommerce-order h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--color-foreground);
  margin-bottom: 1rem;
}
body.theme-thankyou-page { overflow-x: hidden; }

/* ============================================================
   24. 404 PAGE
   ============================================================ */
.not-found-wrap {
  text-align: center;
  padding: 5rem 0;
}
.not-found-code {
  font-family: var(--font-display);
  font-size: 6rem;
  font-weight: 700;
  color: var(--color-secondary);
  line-height: 1;
  margin-bottom: 1rem;
}
.not-found-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  color: var(--color-foreground);
  margin-bottom: 1rem;
}
.not-found-desc {
  color: var(--color-muted-foreground);
  margin-bottom: 2rem;
}

/* ============================================================
   25. PAGE TITLE
   ============================================================ */
.page-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  color: var(--color-foreground);
  margin-bottom: 2rem;
}

/* ============================================================
   26. SCROLL TARGET OFFSET
   ============================================================ */
/* Lovable scroll-mt-24 */
.scroll-target { scroll-margin-top: 6rem; }

/* ============================================================
   26b. PRODUCT CARD PATTERN A — Hit-area overlay (§31.3)
   ============================================================ */
.theme-product-card-wrap {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.theme-product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Overlay link covers whole card */
.theme-card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: auto;
}

/* Image wrapper position relative for absolute children */
.theme-product-card__image-wrapper {
  position: relative;
}

/* Block pointer events on image wrapper children except buttons/links */
.theme-product-card__image-wrapper > img {
  pointer-events: none;
}

/* Quick-add: must stay absolute inside image (never position:relative — breaks bottom/right) */
.theme-product-card__image-wrapper .theme-product-card__quick-add {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  z-index: 3;
  pointer-events: auto;
}

/* Title/link above overlay hit-area */
.theme-product-card__info a,
.theme-product-card__title {
  position: relative;
  z-index: 2;
  pointer-events: auto;
}

/* Card info text doesn't need pointer events (title link handles it) */
.theme-product-card__price {
  pointer-events: none;
}

/* Card layout: info grows, price at bottom */
.theme-product-card__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

/* ============================================================
   27. RESPONSIVE MISC
   ============================================================ */
@media (max-width: 767px) {
  .desktop-nav { display: none !important; }
}

/* Prevent horizontal overflow */
html, body { overflow-x: hidden; }
