/*
 * Dolphin Dough Co. — theme.css
 * All visual styling lives here (Section 10). WooCommerce template files
 * contain no styling markup.
 */

/* ==========================================================================
   1. CSS VARIABLES
   ========================================================================== */
:root {
  /* Color tokens are injected by wp_add_inline_style() (functions.php) with
     live Customizer values; these are safe fallbacks only. */
  --color-cream: #fefaf0;
  --color-ivory: #fdf6e8;
  --color-shell: #f7d7c2;
  --color-aqua: #d2ebff;
  --color-teal: #005865;
  --color-teal-deep: #003b49;
  --color-coral: #f2a07c;
  --color-coral-deep: #e07655;
  --color-border: #c3dde5;

  --color-background: var(--color-cream);
  --color-foreground: var(--color-teal-deep);
  --color-primary: var(--color-teal-deep);
  --color-button-text: var(--color-cream);

  --font-display: "Fraunces", ui-serif, Georgia, serif;
  --font-body: "Inter", ui-sans-serif, system-ui, sans-serif;

  --radius-card: 1rem;
  --radius-pill: 9999px;

  --btn-radius: 9999px;
  --btn-height: 2.75rem;
  --btn-padding: 0.85rem 1.75rem;
  --btn-font-size: 0.875rem;
  --btn-font-weight: 600;
  --btn-letter-spacing: 0.12em;
  --btn-text-transform: uppercase;
  --btn-icon-padding: 0.6rem;

  --header-height: 80px;
  --logo-height: 64px;

  --container-max: 80rem;
  --container-max-narrow: 72rem;
}

@media (min-width: 1024px) {
  :root { --header-height: 96px; }
}

/* ==========================================================================
   2. RESET / BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background-color: var(--color-background);
  color: var(--color-teal-deep);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: inherit;
  font-size: inherit;
  letter-spacing: -0.01em;
  margin: 0;
}
p { margin: 0; }
a { color: inherit; text-decoration: none; cursor: pointer; }
button,
[role="button"],
input[type="button"],
input[type="submit"],
input[type="reset"],
summary,
label[for],
.theme-cart-btn,
.site-header__menu-btn,
.site-header__contact-btn,
.mobile-menu__close,
.mobile-menu__contact-btn,
.mobile-menu__social-btn,
.theme-product-card,
.theme-product-thumb,
.theme-product-card__add-btn,
.theme-product-card__details-btn,
.social-btn,
.site-footer__social-btn,
.btn-hero-primary,
.btn-outline-pill,
.btn-text-pill,
.treats-section__category-btn {
  font-family: inherit;
  cursor: pointer;
}
button:disabled,
[aria-disabled="true"],
.disabled { cursor: not-allowed; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; margin: 0; padding: 0; }

img:not(.cover-img):not(.hero-bg-img):not(.theme-product-card__image):not(.theme-product-gallery__main):not(.site-logo-img) {
  max-width: 100%;
  height: auto;
}
.cover-img, .hero-bg-img, .theme-product-card__image,
.cart-page__item-img img, .theme-cart-drawer__item-img img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.eyebrow { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.28em; color: var(--color-coral-deep); }
.is-emphasis { font-style: italic; color: var(--color-coral-deep); }
.is-hidden { display: none !important; }

.site-container { max-width: var(--container-max); margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .site-container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .site-container { padding: 0 2rem; } }

/* ==========================================================================
   3. ANIMATIONS
   ========================================================================== */
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.animate-marquee { animation: marquee 40s linear infinite; }

@keyframes float-slow { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-14px) rotate(3deg); } }
.animate-float { animation: float-slow 7s ease-in-out infinite; }

@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.animate-rise { animation: rise 0.9s ease-out both; }

.reveal-item, .scale-in-item {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.scale-in-item { transform: scale(0.96); }
.reveal-left { transform: translateX(-28px); }
.reveal-right { transform: translateX(28px); }
.reveal-item.is-visible, .scale-in-item.is-visible {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

/* Customizer preview fallback (Section 2.1.5) — never hide content in the editor. */
body.is-customizer .reveal-item,
body.is-customizer .scale-in-item {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}
body.is-customizer .contact-section__cards,
body.is-customizer .contact-card,
body.is-customizer .contact-section__social-band {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

.lift { transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.35s ease; }
.lift:hover { transform: translateY(-4px); }

.nudge-x { transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1); }
a:hover .nudge-x, button:hover .nudge-x { transform: translateX(4px); }

.spin-slow { transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
.contact-card:hover .spin-slow, .theme-product-card:hover .spin-slow { transform: rotate(12deg); }

.tilt { transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.tilt:hover { transform: rotate(-4deg) scale(1.04); }

.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%;
  transform-origin: 0 50%; transform: scaleX(var(--scroll, 0));
  background: linear-gradient(90deg, var(--color-coral-deep), var(--color-teal-deep));
  z-index: 60; pointer-events: none; transition: opacity 0.3s ease;
}

/* Keep fixed chrome below the WP admin bar when logged in. */
body.admin-bar .site-header,
body.admin-bar .scroll-progress { top: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar .site-header,
  body.admin-bar .scroll-progress { top: 46px; }
}

@keyframes ping-soft {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--color-coral-deep) 55%, transparent); }
  100% { box-shadow: 0 0 0 14px color-mix(in srgb, var(--color-coral-deep) 0%, transparent); }
}
.pulse-ring { animation: ping-soft 1.8s cubic-bezier(0, 0, 0.2, 1) infinite; }

@media (prefers-reduced-motion: reduce) {
  .animate-marquee, .animate-float, .animate-rise { animation: none !important; }
  .reveal-item, .scale-in-item { opacity: 1 !important; transform: none !important; transition: none !important; }
  .lift:hover, .tilt:hover { transform: none !important; }
  .pulse-ring { animation: none !important; }
  .scroll-progress { display: none !important; }
}

/* Coastal stripe backgrounds */
.coastal-stripes {
  background-color: var(--color-cream);
  background-image: repeating-linear-gradient(90deg, var(--color-cream) 0 44px, var(--color-aqua) 44px 88px);
}
.coastal-stripes-soft {
  background-color: var(--color-cream);
  background-image: repeating-linear-gradient(90deg, var(--color-cream) 0 52px, color-mix(in srgb, var(--color-aqua) 55%, var(--color-cream)) 52px 104px);
}

/* Coastal divider */
.coastal-divider { display: flex; align-items: center; justify-content: center; gap: 0.75rem; color: var(--color-teal); margin-top: 1.5rem; }
.coastal-divider--left { justify-content: flex-start; margin-top: 1rem; }
.coastal-divider__line { height: 1px; width: 4rem; background: color-mix(in srgb, var(--color-teal) 40%, transparent); }
.coastal-divider__icon { width: 1rem; height: 1rem; color: var(--color-coral-deep); }

/* ==========================================================================
   4. BUTTONS
   ========================================================================== */
.btn-hero-primary, .btn-hero-outline, .btn-treats-cta, .btn-outline-pill, .btn-text-pill, .theme-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--btn-radius);
  font-size: var(--btn-font-size);
  font-weight: var(--btn-font-weight);
  letter-spacing: var(--btn-letter-spacing);
  text-transform: var(--btn-text-transform);
  min-height: 3rem;
  padding: 0.85rem 1.75rem;
  transition: all 0.25s ease;
  border: none;
}
.btn-hero-primary, .btn-treats-cta, .theme-btn-primary {
  background-color: var(--color-teal-deep);
  color: var(--color-cream);
  box-shadow: 0 10px 25px -12px color-mix(in srgb, var(--color-teal-deep) 40%, transparent);
}
.btn-hero-primary:hover, .btn-treats-cta:hover, .theme-btn-primary:hover { background-color: var(--color-coral-deep); }
.btn-hero-outline {
  background-color: var(--color-cream);
  color: var(--color-teal-deep);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color-teal) 30%, transparent);
}
.btn-hero-outline:hover { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color-teal) 60%, transparent); }
.btn-outline-pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.75rem; padding: 0.75rem 1.5rem; border-radius: var(--btn-radius);
  background: var(--color-cream); color: var(--color-teal-deep);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color-teal) 30%, transparent);
  font-size: 0.875rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  transition: box-shadow 0.2s ease;
}
.btn-outline-pill:hover { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color-teal) 60%, transparent); }
.btn-text-pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.75rem; padding: 0.75rem 1.5rem; border-radius: var(--btn-radius);
  background: transparent; border: none; color: color-mix(in srgb, var(--color-teal-deep) 80%, transparent);
  font-size: 0.875rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  transition: color 0.2s ease;
}
.btn-text-pill:hover { color: var(--color-coral-deep); }
.btn-full { width: 100%; }
.btn-flex { flex: 1; }

/* ==========================================================================
   5. HEADER
   ========================================================================== */
.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 40;
  background-color: color-mix(in srgb, var(--color-cream) 75%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}
.site-header.is-scrolled {
  background-color: color-mix(in srgb, var(--color-cream) 95%, transparent);
  backdrop-filter: blur(10px);
  border-bottom-color: color-mix(in srgb, var(--color-teal) 15%, transparent);
  box-shadow: 0 1px 20px -10px rgba(48, 93, 112, 0.25);
}
.site-header__inner {
  max-width: var(--container-max); margin: 0 auto; padding: 0 1rem;
  height: 5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
@media (min-width: 640px) { .site-header__inner { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .site-header__inner { height: 6rem; padding: 0 2rem; } }

.site-header__brand { display: flex; align-items: center; gap: 0.75rem; min-width: 0; border-radius: 999px; }
.site-header__logo { width: var(--logo-height); height: var(--logo-height) !important; border-radius: 50%; box-shadow: 0 0 0 1px color-mix(in srgb, var(--color-teal) 20%, transparent); object-fit: cover; }
.site-header__brand-name-inline, .site-header__brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; color: var(--color-teal-deep); white-space: nowrap; }
@media (max-width: 639px) { .site-header__brand-name-inline { display: none; } }
@media (min-width: 1024px) { .site-header__brand-name-inline, .site-header__brand-name { font-size: 1.5rem; } }

.site-header__nav { display: none; align-items: center; gap: 2rem; }
@media (min-width: 768px) { .site-header__nav { display: flex; } }
.theme-nav-list { display: flex; align-items: center; gap: 2rem; }
.theme-nav-list a {
  position: relative; display: inline-flex; align-items: center; height: 2.5rem;
  font-size: 0.875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em;
  color: color-mix(in srgb, var(--color-teal-deep) 85%, transparent);
  transition: color 0.2s ease;
}
.theme-nav-list a:hover, .theme-nav-list a.is-active { color: var(--color-coral-deep); }
.theme-nav-list a::after {
  content: ""; position: absolute; left: 0; right: 0; margin: auto; bottom: 0.25rem; height: 1px; width: 0;
  background: var(--color-coral-deep); transition: width 0.2s ease;
}
.theme-nav-list a:hover::after, .theme-nav-list a.is-active::after { width: 100%; }

.site-header__contact-btn, .mobile-menu__contact-btn {
  display: inline-flex; align-items: center; justify-content: center; height: 2.5rem; border-radius: 999px;
  padding: 0 1.25rem; font-size: 0.875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--color-cream); background: var(--color-teal-deep); transition: background-color 0.2s ease;
}
.site-header__contact-btn:hover { background: var(--color-coral-deep); }

.theme-cart-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  height: 2.75rem; width: 2.75rem; border-radius: 50%; border: none;
  background: color-mix(in srgb, var(--color-aqua) 60%, transparent); color: var(--color-teal-deep);
  transition: background-color 0.2s ease;
}
.theme-cart-btn:hover { background: var(--color-aqua); }
.theme-cart-count {
  position: absolute; top: -2px; right: -2px; min-width: 1.25rem; height: 1.25rem; padding: 0 0.25rem;
  display: inline-flex; align-items: center; justify-content: center; border-radius: 999px;
  background: var(--color-coral-deep); color: var(--color-cream); font-size: 0.7rem; font-weight: 600;
}
.theme-cart-count:empty { display: none; }

.site-header__mobile-actions { display: flex; align-items: center; gap: 0.5rem; }
@media (min-width: 768px) { .site-header__mobile-actions { display: none; } }
.site-header__menu-btn {
  display: inline-flex; align-items: center; justify-content: center; height: 2.75rem; width: 2.75rem;
  border-radius: 50%; border: none; background: color-mix(in srgb, var(--color-aqua) 60%, transparent); color: var(--color-teal-deep);
}

/* ==========================================================================
   6. MOBILE MENU
   ========================================================================== */
.mobile-menu { position: fixed; inset: 0; z-index: 70; }
.mobile-menu[hidden] { display: none; }
@media (min-width: 768px) { .mobile-menu { display: none !important; } }
.mobile-menu__overlay { position: absolute; inset: 0; background: color-mix(in srgb, var(--color-teal-deep) 50%, transparent); backdrop-filter: blur(4px); border: none; }
.mobile-menu__panel { position: absolute; inset-block: 0; right: 0; width: 100%; max-width: 24rem; background: var(--color-cream); box-shadow: -20px 0 50px -20px rgba(0,0,0,.3); display: flex; flex-direction: column; }
.mobile-menu__header { display: flex; align-items: center; justify-content: space-between; padding: 0 1.5rem; height: 5rem; border-bottom: 1px solid color-mix(in srgb, var(--color-teal) 15%, transparent); }
.mobile-menu__brand { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }
.mobile-menu__brand img { width: 3rem; height: 3rem; border-radius: 50%; }
.mobile-menu__close { height: 2.75rem; width: 2.75rem; border-radius: 50%; border: none; display: inline-flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--color-aqua) 60%, transparent); color: var(--color-teal-deep); }
.mobile-menu__nav { flex: 1; overflow-y: auto; padding: 2rem 1.5rem; display: flex; flex-direction: column; gap: 0.25rem; }
.mobile-menu__list,
.mobile-menu .theme-nav-list {
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}
.mobile-menu__list > li,
.mobile-menu .theme-nav-list > li {
  display: block;
  float: none;
  width: 100%;
  margin: 0;
  padding: 0;
}
.mobile-menu__list a,
.mobile-menu .theme-nav-list a {
  display: block;
  width: 100%;
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 600;
  color: var(--color-teal-deep);
  padding: 1rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--color-teal) 10%, transparent);
  transition: color 0.2s ease;
}
.mobile-menu__list a:hover,
.mobile-menu .theme-nav-list a:hover { color: var(--color-coral-deep); }
.mobile-menu__contact-btn { margin-top: 1.5rem; min-height: 2.75rem; display: inline-flex; align-items: center; justify-content: center; }
.mobile-menu__social { margin-top: 2rem; display: flex; gap: 0.75rem; }
.mobile-menu__social-btn {
  flex: 1; border-radius: 1rem; padding: 0.75rem 1rem; text-align: center; font-size: 0.875rem; font-weight: 600;
  color: var(--color-teal-deep); min-height: 2.75rem; display: flex; align-items: center; justify-content: center;
}
.mobile-menu__social-btn--fb { background: color-mix(in srgb, var(--color-aqua) 60%, transparent); }
.mobile-menu__social-btn--ig { background: color-mix(in srgb, var(--color-coral) 25%, transparent); }

/* ==========================================================================
   7. HERO
   ========================================================================== */
.hero-section { position: relative; isolation: isolate; overflow: hidden; scroll-margin-top: 6rem; }
.hero-section__bg-stripes { position: absolute; inset: 0; z-index: -2; opacity: 0.9; background-color: var(--color-cream); background-image: repeating-linear-gradient(90deg, var(--color-cream) 0 44px, var(--color-aqua) 44px 88px); }
.hero-section__bg-fade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, color-mix(in srgb, var(--color-cream) 40%, transparent), color-mix(in srgb, var(--color-cream) 70%, transparent), var(--color-cream)); }

.hero-section__grid { position: relative; display: grid; grid-template-rows: 5rem minmax(0, 1fr) auto; min-height: 100svh; }
@media (min-width: 1024px) { .hero-section__grid { grid-template-rows: 6rem minmax(0, 1fr) auto; } }
.hero-section__center { display: flex; align-items: center; justify-content: center; padding: 1.5rem 1rem; }
@media (min-width: 640px) { .hero-section__center { padding: 2.5rem 1.5rem; } }
@media (min-width: 1024px) { .hero-section__center { padding: 2.5rem 2rem; } }
.hero-section__wrap { position: relative; margin: 0 auto; width: 100%; max-width: 64rem; display: flex; flex-direction: column; align-items: center; text-align: center; }

.hero-section__title-row { display: flex; flex-direction: column; align-items: center; gap: 1.25rem; }
@media (min-width: 640px) { .hero-section__title-row { flex-direction: row; gap: 2rem; } }
.hero-section__logo { width: 8rem; height: 8rem; border-radius: 50%; box-shadow: 0 20px 50px -20px rgba(48,93,112,0.35), 0 0 0 1px color-mix(in srgb, var(--color-teal) 20%, transparent); background: color-mix(in srgb, var(--color-cream) 80%, transparent); object-fit: cover; }
@media (min-width: 640px) { .hero-section__logo { width: 10rem; height: 10rem; } }
@media (min-width: 1024px) { .hero-section__logo { width: 13rem; height: 13rem; } }
.hero-section__title-text { text-align: center; }
@media (min-width: 640px) { .hero-section__title-text { text-align: left; } }
.hero-section__title { font-weight: 600; line-height: 1.15; padding-bottom: 0.25rem; color: var(--color-teal-deep); font-size: clamp(2rem, 5vw, 3.75rem); }
.hero-section__location { margin-top: 0.5rem; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.32em; color: var(--color-coral-deep); }
@media (min-width: 640px) { .hero-section__location { font-size: 0.875rem; } }

.hero-section__tagline-wrap { margin-top: 1.25rem; max-width: 48rem; }
.hero-section__tagline { font-weight: 500; line-height: 1.05; color: var(--color-teal-deep); font-size: clamp(1.5rem, 3.6vw, 2.5rem); }
.hero-section__cta-row { margin-top: 1.5rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }

.hero-section__starfish { position: absolute; display: none; color: color-mix(in srgb, var(--color-coral) 60%, transparent); pointer-events: none; }
@media (min-width: 1024px) { .hero-section__starfish { display: block; } }
.hero-section__starfish--left { left: 0.5rem; top: 1.5rem; width: 2rem; height: 2rem; }
.hero-section__starfish--right { right: 1rem; top: 6rem; width: 1.5rem; height: 1.5rem; color: color-mix(in srgb, var(--color-teal) 50%, transparent); }

.hero-section__marquee { position: relative; overflow: hidden; background: color-mix(in srgb, var(--color-aqua) 70%, transparent); padding: 0.75rem 0; border-top: 1px solid color-mix(in srgb, var(--color-teal) 20%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--color-teal) 20%, transparent); color: var(--color-teal-deep); }
.hero-section__marquee-track { display: flex; white-space: nowrap; will-change: transform; }
.hero-section__marquee-item { margin: 0 2rem; display: inline-flex; align-items: center; gap: 1.5rem; font-family: var(--font-display); font-size: 1rem; font-weight: 500; letter-spacing: 0.14em; }
@media (min-width: 768px) { .hero-section__marquee-item { font-size: 1.125rem; } }
.hero-section__marquee-shell { width: 1rem; height: 1rem; color: var(--color-coral-deep); }

/* ==========================================================================
   8. TREATS SECTION
   ========================================================================== */
.treats-section { position: relative; overflow: hidden; background: var(--color-ivory); padding: 5rem 0; scroll-margin-top: 7rem; }
@media (min-width: 1024px) { .treats-section { padding: 7rem 0; } }
.treats-section__inner { max-width: 72rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .treats-section__inner { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .treats-section__inner { padding: 0 2rem; } }
.treats-section__header { display: flex; flex-direction: column; align-items: center; text-align: center; }
.treats-section__heading { margin-top: 1rem; font-weight: 500; line-height: 1.2; color: var(--color-teal-deep); font-size: clamp(2rem, 4.6vw, 3.5rem); }

.treats-section__categories { margin-top: 2.5rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
@media (min-width: 640px) { .treats-section__categories { gap: 0.75rem; } }
.category-pill { border-radius: 999px; border: 1px solid color-mix(in srgb, var(--color-teal) 25%, transparent); background: var(--color-cream); padding: 0.5rem 1rem; font-size: 0.875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--color-teal-deep); }

.treats-section__products { margin-top: 3rem; }
.treats-section__subheading { text-align: center; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.28em; color: color-mix(in srgb, var(--color-teal-deep) 70%, transparent); }

.theme-product-grid { margin-top: 2rem; display: grid; gap: 1.25rem; align-items: stretch; grid-template-columns: 1fr; }
@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)); } }
.theme-product-grid--3col { grid-template-columns: 1fr; }
@media (min-width: 640px) { .theme-product-grid--3col { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .theme-product-grid--3col { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.theme-product-card-wrap { display: flex; height: 100%; }
.theme-product-card {
  position: relative; display: flex; flex-direction: column; height: 100%; width: 100%; min-width: 0;
  overflow: hidden; border-radius: 1rem; border: 1px solid color-mix(in srgb, var(--color-teal) 20%, transparent);
  background: var(--color-cream); transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.theme-product-card:hover { border-color: color-mix(in srgb, var(--color-teal) 45%, transparent); box-shadow: 0 18px 40px -24px rgba(48,93,112,0.35); }
.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 .theme-product-card__add-btn,
.theme-product-card .theme-product-card__details-btn { position: relative; z-index: 3; pointer-events: auto; }

.theme-product-card__image-wrapper { position: relative; aspect-ratio: 4 / 3; width: 100%; overflow: hidden; background: color-mix(in srgb, var(--color-aqua) 40%, transparent); }
.theme-product-card__image { transition: transform 0.5s ease; }
.theme-product-card:hover .theme-product-card__image { transform: scale(1.04); }
.theme-product-card__badge {
  position: absolute; left: 0.75rem; top: 0.75rem; border-radius: 999px; background: color-mix(in srgb, var(--color-cream) 90%, transparent);
  padding: 0.25rem 0.75rem; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; color: var(--color-teal-deep);
}
.theme-product-card__stock-badge {
  position: absolute; right: 0.75rem; bottom: 0.75rem; border-radius: 999px; background: var(--color-coral-deep);
  padding: 0.25rem 0.75rem; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-cream);
}
.theme-product-card__body { display: flex; flex: 1; flex-direction: column; padding: 1.5rem; }
@media (min-width: 640px) { .theme-product-card__body { padding: 1.75rem; } }
.theme-product-card__divider { display: flex; align-items: center; gap: 0.75rem; }
.theme-product-card__shell-icon { width: 1rem; height: 1rem; flex-shrink: 0; color: var(--color-coral-deep); }
.theme-product-card__divider-line { height: 1px; flex: 1; background: color-mix(in srgb, var(--color-teal) 20%, transparent); }
.theme-product-card__title { margin-top: 1rem; font-weight: 500; line-height: 1.3; color: var(--color-teal-deep); font-size: 1.25rem; min-width: 0; }
@media (min-width: 640px) { .theme-product-card__title { font-size: 1.5rem; } }
.theme-product-card__title-link { transition: color 0.2s ease; }
.theme-product-card:hover .theme-product-card__title-link { color: var(--color-coral-deep); }
.theme-product-card__price { margin-top: 0.5rem; font-weight: 600; color: color-mix(in srgb, var(--color-teal-deep) 85%, transparent); }
.theme-product-card__price ins { text-decoration: none; }
.theme-product-card__price del { opacity: 0.5; margin-right: 0.4em; }
.theme-product-card__desc { margin-top: 0.75rem; font-size: 1rem; line-height: 1.7; color: color-mix(in srgb, var(--color-teal-deep) 80%, transparent); overflow-wrap: break-word; }
.theme-product-card__actions { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; padding-top: 1.5rem; }
.theme-product-card__add-btn, .theme-product-card__details-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; border-radius: 999px;
  padding: 0.75rem 1.25rem; font-size: 0.875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em;
}
.theme-product-card__add-btn { flex: 1; background: var(--color-teal-deep); color: var(--color-cream); transition: background-color 0.2s ease; }
.theme-product-card__add-btn:hover { background: var(--color-coral-deep); }
.theme-product-card__details-btn { background: var(--color-cream); color: var(--color-teal-deep); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color-teal) 30%, transparent); transition: box-shadow 0.2s ease; }
.theme-product-card__details-btn:hover { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color-teal) 60%, transparent); }

.treats-section__footer-cta { margin-top: 3.5rem; text-align: center; }

/* ==========================================================================
   9. CONTACT SECTION
   ========================================================================== */
.contact-section { position: relative; overflow: hidden; background: var(--color-cream); padding: 5rem 0; scroll-margin-top: 6rem; }
@media (min-width: 1024px) { .contact-section { padding: 7rem 0; } }
.contact-section__inner { max-width: 72rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .contact-section__inner { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .contact-section__inner { padding: 0 2rem; } }
.contact-section__header { text-align: center; }
.contact-section__heading { margin-top: 1rem; font-weight: 500; line-height: 1.2; color: var(--color-teal-deep); font-size: clamp(2rem, 4.6vw, 3.5rem); }
.contact-section__intro { margin: 1.5rem auto 0; max-width: 42rem; font-size: 1.125rem; color: color-mix(in srgb, var(--color-teal-deep) 85%, transparent); }

.contact-section__cards { margin-top: 3rem; display: grid; gap: 1.25rem; }
@media (min-width: 768px) { .contact-section__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.contact-card { display: block; height: 100%; border-radius: 1rem; border: 1px solid color-mix(in srgb, var(--color-teal) 20%, transparent); background: var(--color-cream); padding: 1.75rem; transition: border-color 0.3s ease, box-shadow 0.3s ease; }
.contact-card:hover { border-color: color-mix(in srgb, var(--color-teal) 45%, transparent); box-shadow: 0 18px 40px -24px rgba(48,93,112,0.35); }
.contact-card--muted { background: color-mix(in srgb, var(--color-shell) 30%, var(--color-cream)); }
.contact-card__icon { display: inline-flex; align-items: center; justify-content: center; height: 2.75rem; width: 2.75rem; border-radius: 50%; background: color-mix(in srgb, var(--color-aqua) 70%, transparent); color: var(--color-teal-deep); }
.contact-card__icon--alt { background: var(--color-cream); }
.contact-card__label { margin-top: 1.25rem; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.22em; color: var(--color-coral-deep); }
.contact-card__value { margin-top: 0.5rem; font-family: var(--font-display); font-size: 1.125rem; font-weight: 500; color: var(--color-teal-deep); overflow-wrap: break-word; }
@media (min-width: 640px) { .contact-card__value { font-size: 1.25rem; } }
.contact-card__cta { margin-top: 1rem; display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; font-weight: 600; color: var(--color-teal-deep); }
.contact-card__address { margin-top: 0.5rem; font-family: var(--font-display); font-size: 1.125rem; font-style: normal; font-weight: 500; color: var(--color-teal-deep); line-height: 1.4; }

.contact-section__social-band { margin-top: 2.5rem; border-radius: 1rem; border: 1px solid color-mix(in srgb, var(--color-teal) 20%, transparent); background: var(--color-cream); padding: 1.5rem; }
@media (min-width: 640px) { .contact-section__social-band { padding: 2rem; } }
.contact-section__social-band-inner { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; text-align: center; }
@media (min-width: 768px) { .contact-section__social-band-inner { flex-direction: row; justify-content: space-between; text-align: left; } }
.contact-section__social-heading { margin-top: 0.5rem; font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; color: var(--color-teal-deep); }
@media (min-width: 640px) { .contact-section__social-heading { font-size: 1.5rem; } }
.contact-section__social-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
.social-btn {
  display: inline-flex; align-items: center; gap: 0.5rem; border-radius: 999px; padding: 0.75rem 1.25rem;
  font-size: 1rem; font-weight: 600; color: var(--color-teal-deep); min-height: 2.75rem;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color-teal) 20%, transparent);
}
.social-btn--fb { background: color-mix(in srgb, var(--color-aqua) 70%, transparent); }
.social-btn--fb:hover { background: var(--color-aqua); }
.social-btn--ig { background: color-mix(in srgb, var(--color-coral) 25%, transparent); }
.social-btn--ig:hover { background: color-mix(in srgb, var(--color-coral) 40%, transparent); }

/* ==========================================================================
   10. FOOTER
   ========================================================================== */
.site-footer { position: relative; background: var(--color-teal-deep); color: var(--color-cream); }
.site-footer__stripe { height: 0.75rem; opacity: 0.4; background-color: var(--color-cream); background-image: repeating-linear-gradient(90deg, var(--color-cream) 0 52px, color-mix(in srgb, var(--color-aqua) 55%, var(--color-cream)) 52px 104px); }
.site-footer__inner { max-width: var(--container-max); margin: 0 auto; padding: 3.5rem 1rem; }
@media (min-width: 640px) { .site-footer__inner { padding: 3.5rem 1.5rem; } }
@media (min-width: 1024px) { .site-footer__inner { padding: 3.5rem 2rem; } }
.site-footer__grid { display: grid; gap: 2.5rem; }
@media (min-width: 768px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer__brand { display: inline-flex; align-items: center; gap: 0.75rem; }
.site-footer__logo { width: 4rem; height: 4rem !important; border-radius: 50%; box-shadow: 0 0 0 1px color-mix(in srgb, var(--color-cream) 20%, transparent); background: color-mix(in srgb, var(--color-cream) 10%, transparent); object-fit: cover; }
.site-footer__brand-name { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; }
.site-footer__tagline { margin-top: 1.25rem; max-width: 24rem; font-size: 1rem; line-height: 1.6; color: color-mix(in srgb, var(--color-cream) 85%, transparent); }
.site-footer__badges { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.5rem; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.16em; color: color-mix(in srgb, var(--color-cream) 80%, transparent); }
.site-footer__badge { border-radius: 999px; border: 1px solid color-mix(in srgb, var(--color-cream) 25%, transparent); padding: 0.25rem 0.75rem; }
.site-footer__col-label { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.22em; color: var(--color-coral); }
.site-footer__nav-list, .site-footer__contact-list { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.75rem; font-size: 1rem; }
.site-footer__nav-list li, .site-footer__contact-list li { margin: 0; padding: 0; line-height: 1.5; }
.site-footer__nav-list a, .site-footer__email-link { color: color-mix(in srgb, var(--color-cream) 85%, transparent); transition: color 0.2s ease; }
.site-footer__nav-list a:hover, .site-footer__email-link:hover { color: var(--color-coral); }
.site-footer__email-link { word-break: break-all; }
.site-footer__address { color: color-mix(in srgb, var(--color-cream) 85%, transparent); }
.site-footer__social { margin-top: 1.25rem; display: flex; gap: 0.75rem; }
.site-footer__social-btn { display: inline-flex; align-items: center; justify-content: center; height: 2.75rem; width: 2.75rem; border-radius: 50%; background: color-mix(in srgb, var(--color-cream) 10%, transparent); transition: background-color 0.2s ease; }
.site-footer__social-btn:hover { background: var(--color-coral); }
.site-footer__bottom { margin-top: 3rem; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; border-top: 1px solid color-mix(in srgb, var(--color-cream) 15%, transparent); padding-top: 1.5rem; font-size: 0.875rem; color: color-mix(in srgb, var(--color-cream) 70%, transparent); }
@media (min-width: 768px) { .site-footer__bottom { flex-direction: row; justify-content: space-between; } }

/* ==========================================================================
   11. ABOUT PAGE
   ========================================================================== */
.about-hero { position: relative; overflow: hidden; padding: 8rem 0 5rem; }
@media (min-width: 1024px) { .about-hero { padding: 10rem 0 7rem; } }
.about-hero__bg-stripes { position: absolute; inset: 0; z-index: -2; opacity: 0.9; background-color: var(--color-cream); background-image: repeating-linear-gradient(90deg, var(--color-cream) 0 44px, var(--color-aqua) 44px 88px); }
.about-hero__bg-fade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, color-mix(in srgb, var(--color-cream) 40%, transparent), color-mix(in srgb, var(--color-cream) 70%, transparent), var(--color-cream)); }
.about-hero__inner { max-width: 72rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .about-hero__inner { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .about-hero__inner { padding: 0 2rem; } }
.about-hero__header { text-align: center; }
.about-hero__heading { margin-top: 1rem; font-weight: 500; line-height: 1.2; color: var(--color-teal-deep); font-size: clamp(2rem, 4.4vw, 3.25rem); }
.about-hero__grid { margin-top: 3.5rem; display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .about-hero__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.about-hero__copy { font-size: 1.125rem; line-height: 1.7; color: color-mix(in srgb, var(--color-teal-deep) 85%, transparent); display: flex; flex-direction: column; gap: 1.5rem; }
.about-hero__badges { display: flex; flex-wrap: wrap; gap: 0.5rem; padding-top: 0.5rem; }
.about-hero__badge { border-radius: 999px; border: 1px solid color-mix(in srgb, var(--color-teal) 25%, transparent); background: var(--color-cream); padding: 0.375rem 1rem; font-size: 0.875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; color: var(--color-teal-deep); }
.about-hero__cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; padding-top: 0.5rem; }
.about-hero__panel-wrap { position: relative; }
.about-hero__panel { position: relative; border-radius: 2rem; overflow: hidden; box-shadow: 0 25px 60px -30px rgba(48,93,112,0.3); box-shadow: 0 0 0 1px color-mix(in srgb, var(--color-teal) 15%, transparent), 0 25px 60px -30px rgba(48,93,112,0.3); }
.about-hero__panel-stripes { position: absolute; inset: 0; background-color: var(--color-cream); background-image: repeating-linear-gradient(90deg, var(--color-cream) 0 52px, color-mix(in srgb, var(--color-aqua) 55%, var(--color-cream)) 52px 104px); }
.about-hero__panel-inner { position: relative; padding: 2.5rem; display: flex; flex-direction: column; align-items: center; text-align: center; }
@media (min-width: 640px) { .about-hero__panel-inner { padding: 3.5rem; } }
.about-hero__panel-logo { width: 12rem; height: 12rem; border-radius: 50%; background: color-mix(in srgb, var(--color-cream) 85%, transparent); box-shadow: 0 4px 20px -6px rgba(0,0,0,0.2), 0 0 0 1px color-mix(in srgb, var(--color-teal) 15%, transparent); object-fit: cover; }
@media (min-width: 640px) { .about-hero__panel-logo { width: 14rem; height: 14rem; } }
.about-hero__quote { margin-top: 1.5rem; font-family: var(--font-display); font-style: italic; color: var(--color-teal-deep); font-size: 1.25rem; }
@media (min-width: 640px) { .about-hero__quote { font-size: 1.5rem; } }
.about-hero__quote-location { margin-top: 1rem; display: flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.24em; color: var(--color-coral-deep); }
.about-hero__shell-icon { width: 0.875rem; height: 0.875rem; }

/* ==========================================================================
   12. 404 / GENERIC PAGES
   ========================================================================== */
.notfound-page { min-height: 70vh; display: flex; align-items: center; justify-content: center; padding: 8rem 1rem 5rem; text-align: center; }
.notfound-page__inner { max-width: 32rem; }
.notfound-page__code { font-size: 5rem; font-weight: 700; color: var(--color-teal-deep); }
.notfound-page__subtitle { margin-top: 1rem; font-size: 1.5rem; font-weight: 600; color: var(--color-teal-deep); }
.notfound-page__message { margin-top: 0.75rem; color: color-mix(in srgb, var(--color-teal-deep) 75%, transparent); }
.notfound-page__inner .btn-hero-primary { margin-top: 2rem; }

.generic-page { padding: 8rem 0 5rem; min-height: 50vh; }
.generic-page .page-title { font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 500; color: var(--color-teal-deep); margin-bottom: 2rem; }
.generic-page .entry-content { font-size: 1.05rem; line-height: 1.75; color: color-mix(in srgb, var(--color-teal-deep) 85%, transparent); }

/* ==========================================================================
   13. SHOP ARCHIVE
   ========================================================================== */
.shop-archive-hero { background: var(--color-ivory); padding: 6rem 0 3rem; text-align: center; }
.shop-archive-hero__inner { max-width: 72rem; margin: 0 auto; padding: 0 1rem; }
.shop-heading { font-size: clamp(2rem, 4vw, 3rem); font-weight: 500; color: var(--color-teal-deep); }
.shop-archive { background: var(--color-cream); padding: 3.5rem 0 5rem; }
.shop-archive__inner { max-width: var(--container-max); margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .shop-archive__inner { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .shop-archive__inner { padding: 0 2rem; } }
.shop-archive__empty { text-align: center; font-size: 1.125rem; color: color-mix(in srgb, var(--color-teal-deep) 75%, transparent); padding: 3rem 0; }

/* ==========================================================================
   14. SINGLE PRODUCT
   ========================================================================== */
.single-product-hero {
  position: relative; overflow: hidden; background: var(--color-ivory);
  /* Clear the fixed header (Lovable main pt-20/pt-24) then add section padding. */
  padding: calc(var(--header-height) + 2.5rem) 0 2.5rem;
  scroll-margin-top: 6rem;
}
@media (min-width: 1024px) {
  .single-product-hero { padding: calc(var(--header-height) + 4rem) 0 4rem; }
}
.single-product-hero__inner { max-width: var(--container-max); margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .single-product-hero__inner { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .single-product-hero__inner { padding: 0 2rem; } }
.single-product-hero__breadcrumb { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.18em; color: color-mix(in srgb, var(--color-teal-deep) 70%, transparent); }
.single-product-hero__breadcrumb a { transition: color 0.2s ease; }
.single-product-hero__breadcrumb a:hover { color: var(--color-coral-deep); }
.single-product-hero__breadcrumb-sep { margin: 0 0.5rem; color: color-mix(in srgb, var(--color-teal) 50%, transparent); }
.single-product-hero__breadcrumb-current { color: var(--color-coral-deep); }

.single-product-hero__grid { margin-top: 2rem; display: grid; gap: 2rem; min-width: 0; align-items: stretch; }
@media (min-width: 1024px) { .single-product-hero__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem; } }

.theme-product-gallery, .theme-product-info { min-width: 0; max-width: 100%; }
.theme-product-gallery { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.theme-product-gallery__main-wrap {
  position: relative;
  display: grid;
  grid-template: 1fr / 1fr;
  flex: 1 1 auto;
  width: 100%;
  min-height: 18rem;
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--color-teal) 20%, transparent);
  background: color-mix(in srgb, var(--color-aqua) 40%, transparent);
  aspect-ratio: 4 / 3;
}
@media (min-width: 1024px) {
  /* Stretch with the product-info column like Lovable h-full. */
  .theme-product-gallery__main-wrap {
    aspect-ratio: auto;
    height: 100%;
    min-height: 28rem;
  }
}
.theme-product-gallery__main-wrap > .theme-product-gallery__main,
#product-main-img {
  grid-area: 1 / 1;
  align-self: stretch;
  justify-self: stretch;
  box-sizing: border-box;
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  aspect-ratio: auto !important;
  object-fit: cover !important;
  object-position: center;
}
.theme-product-gallery__badge {
  grid-area: 1 / 1;
  place-self: start;
  z-index: 1;
  margin: 1rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--color-cream) 90%, transparent);
  padding: 0.25rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-teal-deep);
  position: relative;
  left: auto;
  top: auto;
}
.theme-product-info .eyebrow { pointer-events: none; cursor: default; }

.theme-product-info { display: flex; flex-direction: column; }
.theme-product-info__title { margin-top: 0.75rem; font-weight: 500; line-height: 1.2; color: var(--color-teal-deep); font-size: clamp(1.85rem, 4vw, 3rem); }
.theme-product-info__price { margin-top: 1.25rem; font-family: var(--font-display); font-size: 1.875rem; font-weight: 600; color: var(--color-teal-deep); }
.theme-product-info__price ins { text-decoration: none; }
.theme-product-info__unit { margin-top: 0.25rem; font-size: 0.875rem; color: color-mix(in srgb, var(--color-teal-deep) 70%, transparent); }
.theme-product-info__stock.is-out-of-stock { margin-top: 0.75rem; display: inline-flex; width: fit-content; border-radius: 999px; background: var(--color-coral-deep); color: var(--color-cream); padding: 0.35rem 0.9rem; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; }
.theme-product-info__description { margin-top: 1.5rem; font-size: 1.125rem; line-height: 1.75; color: color-mix(in srgb, var(--color-teal-deep) 85%, transparent); overflow-wrap: break-word; word-break: break-word; }
.theme-product-info__description p { margin-bottom: 1em; }

.theme-add-to-cart-area { margin-top: 2rem; display: flex; align-items: stretch; flex-wrap: wrap; gap: 0.75rem; }
.theme-product-info .single_add_to_cart_button { flex: 1 1 auto; min-width: 160px; }

.theme-quantity-wrapper { display: inline-flex; align-items: center; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--color-teal) 25%, transparent); background: var(--color-cream); flex-shrink: 0; }
.theme-qty-minus, .theme-qty-plus { display: inline-flex; align-items: center; justify-content: center; height: 2.75rem; width: 2.75rem; border-radius: 50%; background: transparent; border: none; color: var(--color-teal-deep); font-size: 1.125rem; transition: background-color 0.2s ease, color 0.2s ease; }
.theme-qty-minus:hover, .theme-qty-plus:hover { color: var(--color-coral-deep); background: color-mix(in srgb, var(--color-aqua) 50%, transparent); }
.theme-qty-input { width: 2.5rem; border: none; background: transparent; text-align: center; font-weight: 600; color: var(--color-teal-deep); -moz-appearance: textfield; }
.theme-qty-input::-webkit-outer-spin-button, .theme-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.theme-quantity-wrapper--sm .theme-qty-minus, .theme-quantity-wrapper--sm .theme-qty-plus { height: 2.25rem; width: 2.25rem; font-size: 1rem; }
.theme-quantity-wrapper--sm .theme-qty-input, .theme-quantity-wrapper--sm .theme-quantity-wrapper__value { width: 2rem; font-size: 0.875rem; }
.theme-quantity-wrapper__value { min-width: 2.25rem; text-align: center; font-weight: 600; color: var(--color-teal-deep); font-size: 0.875rem; }
.theme-qty-input--sm { width: 2rem; }

.theme-product-info__added-msg { margin-top: 1rem; min-height: 1.5rem; font-size: 0.875rem; font-weight: 600; color: var(--color-coral-deep); }
.theme-product-info__links { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.theme-product-info__details-box { margin-top: 2rem; border-radius: 1rem; border: 1px solid color-mix(in srgb, var(--color-teal) 20%, transparent); background: var(--color-cream); padding: 1.25rem; font-size: 0.95rem; line-height: 1.6; color: color-mix(in srgb, var(--color-teal-deep) 85%, transparent); }
.theme-product-info__details-title { font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.75rem; color: var(--color-coral-deep); margin-bottom: 0.5rem; }
.theme-product-info__note { margin-top: 2rem; border-radius: 1rem; border: 1px solid color-mix(in srgb, var(--color-teal) 20%, transparent); background: var(--color-cream); padding: 1rem; font-size: 0.875rem; line-height: 1.6; color: color-mix(in srgb, var(--color-teal-deep) 75%, transparent); }

.posted_in a { color: var(--color-coral-deep); }

.related-products-section { background: var(--color-cream); padding: 4rem 0 5rem; }
@media (min-width: 1024px) { .related-products-section { padding: 5rem 0; } }
.related-products-section__inner { max-width: var(--container-max); margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .related-products-section__inner { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .related-products-section__inner { padding: 0 2rem; } }
.related-products-section__header { display: flex; flex-direction: column; align-items: center; text-align: center; }
.related-products-section__heading { margin-top: 0.75rem; font-family: var(--font-display); font-weight: 500; color: var(--color-teal-deep); font-size: 1.875rem; }
@media (min-width: 640px) { .related-products-section__heading { font-size: 2.25rem; } }

/* Variations table layout — stack label above control */
.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; font-weight: 600; }
.single-product .variations tbody td.value { padding-top: 0; }
.theme-attr-select-hidden { display: none !important; }

/* ==========================================================================
   15. CART DRAWER
   ========================================================================== */
#theme-cart-overlay { position: fixed; inset: 0; z-index: 79; background: color-mix(in srgb, var(--color-teal-deep) 50%, transparent); backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity 0.3s ease; border: none; }
body.cart-open #theme-cart-overlay { opacity: 1; pointer-events: auto; }

#theme-cart-drawer { position: fixed; inset: 0; z-index: 80; pointer-events: none; }
body.cart-open #theme-cart-drawer { pointer-events: auto; }
.theme-cart-drawer__panel {
  position: absolute; inset-block: 0; right: 0; display: flex; flex-direction: column; width: 100%; max-width: 28rem;
  background: var(--color-cream); box-shadow: -20px 0 50px -20px rgba(0,0,0,.35);
  transform: translateX(100%); transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
body.cart-open .theme-cart-drawer__panel { transform: translateX(0); }
#theme-cart-drawer.is-updating { opacity: 0.6; pointer-events: none; }

.theme-cart-drawer__header { flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; height: 5rem; padding: 0 1.25rem; border-bottom: 1px solid color-mix(in srgb, var(--color-teal) 15%, transparent); }
@media (min-width: 640px) { .theme-cart-drawer__header { padding: 0 1.5rem; } }
.theme-cart-drawer__count { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: var(--color-teal-deep); }
.theme-cart-drawer__close { height: 2.75rem; width: 2.75rem; border-radius: 50%; border: none; display: inline-flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--color-aqua) 60%, transparent); color: var(--color-teal-deep); }

.theme-cart-drawer__body { flex: 1; overflow-y: auto; padding: 1.25rem; }
@media (min-width: 640px) { .theme-cart-drawer__body { padding: 1.25rem 1.5rem; } }
.theme-cart-drawer__empty { display: flex; height: 100%; min-height: 20rem; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 0.5rem; }
.theme-cart-drawer__empty-title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; color: var(--color-teal-deep); }
.theme-cart-drawer__empty-subtitle { color: color-mix(in srgb, var(--color-teal-deep) 75%, transparent); }
.theme-cart-drawer__empty .btn-hero-primary { margin-top: 1rem; }

.theme-cart-drawer__list { display: flex; flex-direction: column; gap: 1rem; }
.theme-cart-drawer__item { display: flex; gap: 1rem; border-radius: 1rem; border: 1px solid color-mix(in srgb, var(--color-teal) 20%, transparent); padding: 0.75rem; }
.theme-cart-drawer__item-img { display: block; height: 5rem; width: 5rem; flex-shrink: 0; overflow: hidden; border-radius: 0.75rem; background: color-mix(in srgb, var(--color-aqua) 40%, transparent); }
.theme-cart-drawer__item-body { min-width: 0; flex: 1; }
.theme-cart-drawer__item-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.5rem; }
.theme-cart-drawer__item-name { font-family: var(--font-display); font-size: 1rem; font-weight: 500; color: var(--color-teal-deep); min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.theme-cart-drawer__item-name:hover { color: var(--color-coral-deep); }
.theme-cart-drawer__item-remove { flex-shrink: 0; height: 2rem; width: 2rem; border-radius: 50%; border: none; background: transparent; color: color-mix(in srgb, var(--color-teal-deep) 70%, transparent); display: inline-flex; align-items: center; justify-content: center; }
.theme-cart-drawer__item-remove:hover { background: color-mix(in srgb, var(--color-coral) 25%, transparent); color: var(--color-coral-deep); }
.theme-cart-drawer__item-price { margin-top: 0.25rem; font-size: 0.875rem; color: color-mix(in srgb, var(--color-teal-deep) 70%, transparent); }
.theme-cart-drawer__item-footer { margin-top: 0.75rem; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.theme-cart-drawer__item-total { font-weight: 600; color: var(--color-teal-deep); }

.theme-cart-drawer__footer { flex-shrink: 0; border-top: 1px solid color-mix(in srgb, var(--color-teal) 15%, transparent); background: color-mix(in srgb, var(--color-shell) 25%, var(--color-cream)); padding: 1.25rem; }
@media (min-width: 640px) { .theme-cart-drawer__footer { padding: 1.25rem 1.5rem; } }
.theme-cart-drawer__row { display: flex; align-items: center; justify-content: space-between; font-size: 1rem; color: color-mix(in srgb, var(--color-teal-deep) 85%, transparent); }
.theme-cart-drawer__row-value { font-weight: 600; }
.theme-cart-drawer__row--total { margin-top: 0.5rem; font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: var(--color-teal-deep); }
.theme-cart-drawer__actions { margin-top: 1.25rem; display: flex; flex-direction: column; gap: 0.75rem; }
.theme-cart-drawer__actions-row { display: flex; gap: 0.75rem; }

/* ==========================================================================
   16. CART PAGE
   ========================================================================== */
.cart-page-hero { position: relative; overflow: hidden; background: var(--color-ivory); padding: 3.5rem 0; text-align: center; }
@media (min-width: 1024px) { .cart-page-hero { padding: 5rem 0; } }
.cart-page-hero__inner { max-width: 72rem; margin: 0 auto; padding: 0 1rem; }
.cart-page-hero__heading { margin-top: 0.75rem; font-weight: 500; line-height: 1.2; color: var(--color-teal-deep); font-size: clamp(2rem, 4.6vw, 3.25rem); }

.cart-page { background: var(--color-cream); padding: 3.5rem 0; }
@media (min-width: 1024px) { .cart-page { padding: 5rem 0; } }
.cart-page__inner { max-width: 72rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .cart-page__inner { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .cart-page__inner { padding: 0 2rem; } }
.cart-page__empty-box { max-width: 32rem; margin: 0 auto; border-radius: 1.5rem; border: 1px solid color-mix(in srgb, var(--color-teal) 20%, transparent); padding: 2rem; text-align: center; }
.cart-page__empty-title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; color: var(--color-teal-deep); }
.cart-page__empty-subtitle { margin-top: 0.75rem; color: color-mix(in srgb, var(--color-teal-deep) 80%, transparent); }
.cart-page__empty-box .btn-hero-primary { margin-top: 1.75rem; }

.cart-page__grid { display: grid; gap: 2rem; }
@media (min-width: 1024px) { .cart-page__grid { grid-template-columns: 1.6fr 1fr; gap: 2.5rem; } }
.cart-page__list { min-width: 0; display: flex; flex-direction: column; gap: 1rem; }
.cart-page__item { display: flex; flex-direction: column; gap: 1rem; border-radius: 1rem; border: 1px solid color-mix(in srgb, var(--color-teal) 20%, transparent); padding: 1rem; }
@media (min-width: 640px) { .cart-page__item { flex-direction: row; align-items: center; padding: 1.25rem; } }
.cart-page__item-img { display: block; height: 7rem; width: 100%; flex-shrink: 0; overflow: hidden; border-radius: 0.75rem; background: color-mix(in srgb, var(--color-aqua) 40%, transparent); }
@media (min-width: 640px) { .cart-page__item-img { height: 6rem; width: 6rem; } }
.cart-page__item-body { min-width: 0; flex: 1; }
.cart-page__item-name { font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; color: var(--color-teal-deep); }
.cart-page__item-name:hover { color: var(--color-coral-deep); }
.cart-page__item-price { margin-top: 0.25rem; font-size: 0.875rem; color: color-mix(in srgb, var(--color-teal-deep) 70%, transparent); }
.cart-page__item-controls { margin-top: 1rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.cart-page__remove-link { font-size: 0.875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: color-mix(in srgb, var(--color-teal-deep) 70%, transparent); }
.cart-page__remove-link:hover { color: var(--color-coral-deep); }
.cart-page__item-subtotal { text-align: right; }
@media (max-width: 639px) { .cart-page__item-subtotal { text-align: left; } }
.cart-page__item-subtotal-label { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.18em; color: color-mix(in srgb, var(--color-teal-deep) 60%, transparent); }
.cart-page__item-subtotal-value { margin-top: 0.25rem; font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: var(--color-teal-deep); }

.cart-page__summary { position: sticky; top: 8rem; height: fit-content; border-radius: 1.5rem; border: 1px solid color-mix(in srgb, var(--color-teal) 20%, transparent); background: color-mix(in srgb, var(--color-shell) 25%, var(--color-cream)); padding: 1.5rem; }
@media (min-width: 640px) { .cart-page__summary { padding: 1.75rem; } }
.cart-page__summary-list { margin-top: 1.25rem; display: flex; flex-direction: column; gap: 0.75rem; font-size: 1rem; color: color-mix(in srgb, var(--color-teal-deep) 85%, transparent); }
.cart-page__summary-row { display: flex; align-items: center; justify-content: space-between; }
.cart-page__summary-total { margin-top: 1rem; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid color-mix(in srgb, var(--color-teal) 20%, transparent); padding-top: 1rem; font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--color-teal-deep); }
.cart-page__summary .btn-hero-primary, .cart-page__summary .btn-outline-pill { margin-top: 1.5rem; }
.cart-page__note { margin-top: 1.25rem; font-size: 0.875rem; line-height: 1.6; color: color-mix(in srgb, var(--color-teal-deep) 70%, transparent); }

/* ==========================================================================
   17. WOOCOMMERCE CORE OVERRIDES (Section 14 / 11.4.1 / 11.4.2)
   ========================================================================== */
.woocommerce-message, .woocommerce-info, .woocommerce-error {
  border-radius: 0.75rem; padding: 1rem 1.25rem; font-family: var(--font-body); list-style: none;
  border: 1px solid color-mix(in srgb, var(--color-teal) 25%, transparent); background: var(--color-cream); color: var(--color-teal-deep);
}
.woocommerce-error { border-color: var(--color-coral-deep); }
.single-product .woocommerce-message, .single-product .woocommerce-info { display: none; }
#theme-cart-drawer .woocommerce-message { display: none; }

.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; }

.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-button-text) !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;
}
.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-button-text) !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,
.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;
}
.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; }

/* Card compact button override — after the global rules (scoped) */
.theme-product-card .add_to_cart_button.ajax_add_to_cart {
  min-height: 2.75rem !important;
  padding: 0.75rem 1.25rem !important;
  border-radius: 999px !important;
}

.single-product .single_add_to_cart_button, .single-product .theme-btn-primary { text-transform: var(--btn-text-transform); }

/* ==========================================================================
   18. CHECKOUT (WooCommerce Blocks) — Section 13
   ========================================================================== */
body.woocommerce-checkout .site-container,
body.woocommerce-cart .site-container,
body.woocommerce-account .site-container { max-width: var(--container-max); }

body.woocommerce-checkout .entry-content { max-width: 100%; }
body.woocommerce-checkout .site-main,
body.woocommerce-checkout main {
  padding-top: calc(var(--header-height) + 2.5rem);
  padding-bottom: 4rem;
}
/* Order-received keeps its own thank-you spacing (more specific). */
body.theme-thankyou-page.woocommerce-checkout main#main-content,
body.theme-thankyou-page.woocommerce-checkout main.generic-page {
  padding-top: calc(var(--header-height) + 2.5rem);
  padding-bottom: 4rem;
}

body.woocommerce-checkout .wc-block-checkout { display: block; font-family: var(--font-body); color: var(--color-teal-deep); }

@media (min-width: 768px) {
  body.woocommerce-checkout .wc-block-components-sidebar-layout.wc-block-checkout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    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-components-text-input input,
body.woocommerce-checkout .wc-block-components-select select,
body.woocommerce-checkout .wc-block-components-textarea textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-teal-deep);
  border: 1px solid color-mix(in srgb, var(--color-teal) 25%, transparent);
  border-radius: 0.75rem;
  background-color: var(--color-cream);
  width: 100% !important;
  max-width: none !important;
}
body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-select select:focus {
  border-color: var(--color-teal);
  outline: none;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-teal) 25%, transparent);
}
body.woocommerce-checkout .wc-block-components-text-input input::placeholder { color: color-mix(in srgb, var(--color-teal-deep) 40%, transparent); }

body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
  background-color: var(--color-teal-deep) !important;
  color: var(--color-cream) !important;
  border-radius: var(--btn-radius) !important;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  min-height: 3rem;
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover { background-color: var(--color-coral-deep) !important; }

body.woocommerce-checkout .wc-block-components-notice-banner {
  border-radius: 0.75rem;
  font-family: var(--font-body);
}

body.woocommerce-checkout .wc-block-checkout__sidebar {
  background-color: color-mix(in srgb, var(--color-shell) 25%, var(--color-cream));
  border-radius: 1.5rem;
  padding: 2rem;
}
body.woocommerce-checkout .wc-block-cart-items { font-family: var(--font-body); }

body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .woocommerce-checkout .form-row .input-text,
body.woocommerce-checkout .woocommerce-checkout .form-row select {
  padding: revert;
}

/* ==========================================================================
   19. THANK YOU PAGE
   ========================================================================== */
body.theme-thankyou-page { overflow-x: hidden; }
/* Checkout CSS sets main padding-top: 1rem; clear the fixed header on order-received. */
body.theme-thankyou-page main#main-content,
body.theme-thankyou-page main.generic-page {
  padding-top: calc(var(--header-height) + 2.5rem);
  padding-bottom: 4rem;
}
body.theme-thankyou-page .woocommerce-order { max-width: 56rem; margin: 0 auto; }
body.theme-thankyou-page .woocommerce-order h2,
body.theme-thankyou-page .woocommerce-order-details__title {
  font-family: var(--font-display); font-weight: 500; font-size: 1.5rem; color: var(--color-teal-deep); padding: 0 0 1rem 0;
}
body.theme-thankyou-page .woocommerce-order-overview {
  display: flex; flex-wrap: wrap; gap: 1rem; list-style: none; padding: 0; margin: 0 0 2rem;
}
body.theme-thankyou-page .woocommerce-order-overview li {
  border-radius: 0.75rem; border: 1px solid color-mix(in srgb, var(--color-teal) 20%, transparent); padding: 0.75rem 1.25rem; font-size: 0.9rem;
}
body.theme-thankyou-page .woocommerce-order-details table { width: 100%; table-layout: fixed; border-collapse: collapse; margin-bottom: 2rem; }
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 color-mix(in srgb, var(--color-teal) 15%, transparent); }
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-customer-details { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 2rem; }
body.theme-thankyou-page .woocommerce-customer-details address { max-width: 30rem; overflow-wrap: break-word; font-style: normal; }
@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; }
}
