/* =============================================================================
   SEW CUTE DESIGNS — THEME.CSS
   ============================================================================= */

/* ---------------------------------------------------------------------------
   CSS CUSTOM PROPERTIES
   --------------------------------------------------------------------------- */

:root {
  /* Colors (overridden by wp_add_inline_style) */
  --color-primary:            #7c6f9e;
  --color-primary-foreground: #faf7f5;
  --color-background:         #f7f3ef;
  --color-foreground:         #2d2540;
  --color-muted:              #c4b8c9;
  --color-muted-foreground:   #6b6175;
  --color-border:             #d9cedd;
  --color-butter:             #e8d8e3;
  --color-card:               #ecdde8;

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Nunito', system-ui, sans-serif;

  /* Shadows */
  --shadow-soft:     0 4px 20px -4px rgba(45, 37, 64, 0.06);
  --shadow-elevated: 0 8px 40px -8px rgba(45, 37, 64, 0.12);

  /* Border radius */
  --radius:      0.75rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);

  /* Button */
  --btn-height:          3.25rem;
  --btn-padding:         0 2.5rem;
  --btn-radius:          9999px;
  --btn-font-size:       0.8125rem;
  --btn-font-weight:     500;
  --btn-letter-spacing:  0.16em;
  --btn-text-transform:  uppercase;

  /* Logo */
  --logo-height: 60px;

  /* Header */
  --header-height: 80px;

  /* Card */
  --card-radius: var(--radius);
}

/* ---------------------------------------------------------------------------
   RESET & BASE
   --------------------------------------------------------------------------- */

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

html, body { max-width: 100%; overflow-x: clip; }

body {
  font-family: var(--font-body);
  background-color: var(--color-background);
  color: var(--color-foreground);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  letter-spacing: -0.015em;
  line-height: 1.1;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { background: none; border: none; cursor: pointer; font-family: inherit; color: inherit; }
input, textarea, select { font-family: inherit; }

/* ---------------------------------------------------------------------------
   LAYOUT UTILITIES
   --------------------------------------------------------------------------- */

.container-wide {
  width: 100%;
  max-width: 80rem; /* ~1280px */
  margin-inline: auto;
  padding-inline: 1.5rem;
}
@media (min-width: 1024px) {
  .container-wide { padding-inline: 2rem; }
}

.scroll-mt { scroll-margin-top: 6rem; }
.hidden { display: none !important; }
.desktop-only { display: none; }
@media (min-width: 1024px) { .desktop-only { display: flex; } }
.lg-hidden { display: flex; }
@media (min-width: 1024px) { .lg-hidden { display: none !important; } }

/* ---------------------------------------------------------------------------
   ANIMATIONS
   --------------------------------------------------------------------------- */

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.85); } to { opacity: 1; transform: scale(1); } }

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

.js-animate-section { opacity: 0; transform: translateY(32px); transition: opacity 0.7s var(--transition-smooth), transform 0.7s var(--transition-smooth); }
.js-animate-section.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js-animate-section { opacity: 1; transform: none; transition: none; }
}

/* ---------------------------------------------------------------------------
   LINK-UNDERLINE
   --------------------------------------------------------------------------- */

.link-underline {
  position: relative;
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-foreground);
}
.link-underline::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.3s var(--transition-smooth);
}
.link-underline:hover::after { transform: scaleX(1); }

/* ---------------------------------------------------------------------------
   BUTTONS
   --------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  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);
  min-height: var(--btn-height);
  padding: var(--btn-padding);
  border-radius: var(--btn-radius);
  cursor: pointer;
  transition: opacity 0.2s ease, background-color 0.2s ease;
  border: 1px solid transparent;
  text-decoration: none;
}

.btn--primary {
  background-color: var(--color-foreground);
  color: var(--color-background);
}
.btn--primary:hover { opacity: 0.85; }

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

.btn--rounded { border-radius: var(--radius-full); }

/* ---------------------------------------------------------------------------
   ANNOUNCEMENT BAR
   --------------------------------------------------------------------------- */

.announcement-bar {
  position: relative;
  background-color: var(--color-foreground);
  color: var(--color-background);
}
.announcement-bar__inner { padding-block: 0.5rem; text-align: center; }
.announcement-bar__text {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.announcement-bar__close {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  padding: 0.25rem;
  opacity: 0.7;
  transition: opacity 0.2s;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
}
.announcement-bar__close:hover { opacity: 1; }

/* ---------------------------------------------------------------------------
   HEADER
   --------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background-color: var(--color-background);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s, border-color 0.3s;
}
.site-header.is-solid,
.site-header.is-scrolled {
  background-color: rgba(247, 243, 239, 0.95);
  backdrop-filter: blur(6px);
  border-bottom-color: var(--color-border);
}

.site-header__nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--header-height);
}

.site-header__left {
  position: absolute;
  left: 0;
  display: flex;
  align-items: center;
}

.site-header__right {
  position: absolute;
  right: 0;
  display: flex;
  align-items: center;
}

.site-header__logo {
  display: flex;
  align-items: center;
}

/* Logo */
.site-logo-img {
  height: var(--logo-height) !important;
  width: auto !important;
  display: block !important;
  object-fit: contain;
  transition: all 0.3s;
}
.site-logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: var(--logo-height);
  display: block;
}

/* Desktop nav */
.theme-nav-list {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.theme-nav-list li a,
.theme-nav-list li button {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-foreground);
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  display: inline-block;
  transition: color 0.3s;
}
.theme-nav-list li a::after,
.theme-nav-list li button::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.3s var(--transition-smooth);
}
.theme-nav-list li a:hover::after,
.theme-nav-list li button:hover::after { transform: scaleX(1); }

/* Cart button */
.site-header__cart-btn {
  position: relative;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-foreground);
  transition: opacity 0.2s;
}
.site-header__cart-btn:hover { opacity: 0.6; }
.site-header__cart-btn svg { display: block; }

.theme-cart-count {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 1.25rem;
  height: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  background-color: var(--color-primary);
  color: var(--color-primary-foreground);
  border-radius: 50%;
}
.theme-cart-count:empty { display: none; }

/* Mobile menu toggle */
.site-header__mobile-toggle {
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-foreground);
  transition: opacity 0.2s;
}
.site-header__mobile-toggle:hover { opacity: 0.6; }

/* Mobile nav */
.site-header__mobile-nav {
  border-top: 1px solid var(--color-border);
  padding-block: 1rem;
  animation: fadeIn 0.2s ease;
}
.site-header__mobile-nav-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.site-header__mobile-nav-link {
  display: block;
  font-family: var(--font-body);
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  padding-block: 0.5rem;
  color: var(--color-foreground);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: color 0.2s;
}
.site-header__mobile-nav-link:hover { color: var(--color-muted-foreground); }

/* ---------------------------------------------------------------------------
   HERO SECTION
   --------------------------------------------------------------------------- */

.hero-section { background-color: var(--color-background); }

/* Mobile hero */
.hero-mobile { display: block; }
@media (min-width: 1280px) { .hero-mobile { display: none; } }

.hero-mobile__image {
  width: 100%;
  aspect-ratio: 16/9;
  max-height: 60vh;
  object-fit: cover;
}
.hero-mobile__content {
  padding: 2rem 1.5rem;
  text-align: center;
}
@media (min-width: 768px) { .hero-mobile__content { padding-block: 1.5rem; } }

/* Desktop hero */
.hero-desktop { display: none; }
@media (min-width: 1280px) {
  .hero-desktop {
    display: block;
    position: relative;
    min-height: 560px;
    overflow: hidden;
  }
}
.hero-desktop__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left;
}
.hero-desktop__content {
  position: relative;
  z-index: 10;
  display: flex;
  min-height: 560px;
  align-items: center;
  justify-content: flex-end;
  padding-inline: 3.5rem;
}
@media (min-width: 1280px) { .hero-desktop__content { padding-inline: 5rem; } }
.hero-desktop__inner { max-width: 28rem; text-align: left; }

/* Shared hero text */
.hero__eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-muted-foreground);
  margin-bottom: 1rem;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.04;
  color: var(--color-foreground);
  margin-bottom: 1.25rem;
}
.hero__title--lg { font-size: clamp(2.75rem, 6vw, 3.75rem); }
.hero__subtitle {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(45, 37, 64, 0.75);
  margin-bottom: 2rem;
  max-width: 28rem;
}
@media (min-width: 768px) { .hero__subtitle { margin-inline: auto; } }
@media (min-width: 1280px) { .hero__subtitle { margin-inline: 0; } }

.hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-foreground);
  color: var(--color-background);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0 2.5rem;
  min-height: var(--btn-height);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-soft);
  transition: opacity 0.2s;
  text-decoration: none;
}
.hero__cta:hover { opacity: 0.85; }

/* ---------------------------------------------------------------------------
   SECTION HEADERS
   --------------------------------------------------------------------------- */

.section-header { margin-bottom: 2.5rem; }
.section-header--center { text-align: center; }

.section-eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-muted-foreground);
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.75rem, 4vw, 3rem);
  color: var(--color-foreground);
}
.section-title__italic {
  font-style: italic;
  font-weight: 300;
  color: rgba(107, 97, 117, 0.8);
  margin-right: 0.5rem;
}

/* ---------------------------------------------------------------------------
   CATEGORIES SECTION
   --------------------------------------------------------------------------- */

.categories-section { background-color: var(--color-background); padding-block: 4rem; }
@media (min-width: 768px) { .categories-section { padding-block: 5rem; } }
.categories-section .section-header { margin-bottom: 2.5rem; }

.categories-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 768px) {
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.category-tile {
  position: relative;
  display: block;
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: var(--radius);
  text-decoration: none;
}
.category-tile__image-wrap { position: absolute; inset: 0; }
.category-tile__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--transition-smooth);
}
.category-tile:hover .category-tile__image { transform: scale(1.05); }
.category-tile__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(45,37,64,0.55) 0%, rgba(45,37,64,0.1) 50%, transparent 100%);
  transition: background 0.5s;
}
.category-tile:hover .category-tile__overlay {
  background: linear-gradient(to top, rgba(45,37,64,0.65) 0%, rgba(45,37,64,0.15) 50%, transparent 100%);
}
.category-tile__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  color: var(--color-background);
}
@media (min-width: 768px) { .category-tile__content { padding: 1.75rem; } }
.category-tile__tagline {
  display: block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 0.5rem;
}
.category-tile__label {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 3vw, 1.875rem);
  font-weight: 400;
  margin-bottom: 0.5rem;
}
.category-tile__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.9;
}

/* ---------------------------------------------------------------------------
   FEATURED SECTION
   --------------------------------------------------------------------------- */

.featured-section { background-color: var(--color-background); padding-block: 4rem; }
@media (min-width: 768px) { .featured-section { padding-block: 6rem; } }
.featured-section .section-header { margin-bottom: 3.5rem; }

.featured-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.section-cta-row { text-align: center; margin-top: 3.5rem; }

/* ---------------------------------------------------------------------------
   PRODUCT CARD (shared)
   --------------------------------------------------------------------------- */

.theme-product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: stretch;
}
@media (min-width: 768px) {
  .theme-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 3rem; }
}
@media (min-width: 1024px) {
  .theme-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 3rem; }
}

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

.theme-product-card-wrap { display: contents; }

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

.theme-product-card__image-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
}
.theme-product-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.7s var(--transition-smooth);
}
.theme-product-card:hover .theme-product-card__image { transform: scale(1.04); }
.theme-product-card__image.is-sold-out { opacity: 0.6; }

.theme-product-card__sold-out-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  padding: 0.25rem 0.75rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background-color: var(--color-foreground);
  color: var(--color-background);
  border-radius: var(--radius-full);
}

.theme-product-card__quick-add {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--color-background);
  color: var(--color-foreground);
  box-shadow: var(--shadow-soft);
  opacity: 0;
  transition: opacity 0.3s, transform 0.2s;
  text-decoration: none;
  pointer-events: auto;
}
@media (hover: none) { .theme-product-card__quick-add { opacity: 1; } }
.theme-product-card:hover .theme-product-card__quick-add { opacity: 1; }
.theme-product-card__quick-add:hover { transform: scale(1.08); }

.theme-product-card__info {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.theme-product-card__link { text-decoration: none; color: inherit; }
.theme-product-card__title {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--color-foreground);
  transition: color 0.3s;
}
@media (min-width: 768px) { .theme-product-card__title { font-size: 1.25rem; } }
.theme-product-card:hover .theme-product-card__title { color: var(--color-primary); }
.theme-product-card__price {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-muted-foreground);
  font-weight: 400;
}
@media (min-width: 768px) { .theme-product-card__price { font-size: 1.125rem; } }

.initially-hidden { display: none !important; }

/* ---------------------------------------------------------------------------
   ABOUT SECTION
   --------------------------------------------------------------------------- */

.about-section { background-color: var(--color-butter); padding-block: 3rem; }
@media (min-width: 768px) { .about-section { padding-block: 4rem; } }
.about-inner { max-width: 42rem; margin-inline: auto; text-align: center; }
.about-portrait-wrap { display: flex; justify-content: center; margin-bottom: 1.5rem; }
.about-portrait {
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-soft);
}
@media (min-width: 768px) { .about-portrait { width: 7rem; height: 7rem; } }
.about-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  line-height: 1.4;
  color: rgba(45,37,64,0.85);
  margin-bottom: 1.5rem;
}
.about-bio {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(45,37,64,0.7);
  margin-bottom: 1rem;
}
.about-bio:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------------------
   PROCESS SECTION
   --------------------------------------------------------------------------- */

.process-section { background-color: var(--color-background); padding-block: 5rem; }
@media (min-width: 768px) { .process-section { padding-block: 7rem; } }
.process-section .section-header { margin-bottom: 3.5rem; }

.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background-color: var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (min-width: 768px) { .process-grid { grid-template-columns: repeat(3, 1fr); } }

.process-step {
  background-color: var(--color-background);
  padding: 2.5rem;
}
@media (min-width: 768px) { .process-step { padding: 3rem; } }

.process-step__icon {
  display: flex;
  width: 3rem;
  height: 3rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(124, 111, 158, 0.25);
  color: rgba(124, 111, 158, 0.75);
  margin-bottom: 1.5rem;
}
.process-step__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
}
.process-step__desc {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
  line-height: 1.7;
}

/* ---------------------------------------------------------------------------
   SHOP SECTION
   --------------------------------------------------------------------------- */

.shop-section { background-color: var(--color-background); padding-block: 4rem; }
@media (min-width: 768px) { .shop-section { padding-block: 6rem; } }
.shop-section .section-header { margin-bottom: 3rem; }

/* Search */
.shop-search-wrap {
  position: relative;
  max-width: 28rem;
  margin-inline: auto;
  margin-bottom: 2rem;
}
.shop-search-icon {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-muted-foreground);
  display: block;
}
.shop-search-input {
  width: 100%;
  padding: 0.5rem 0 0.5rem 1.5rem;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-border);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-foreground);
  outline: none;
  transition: border-color 0.3s;
}
.shop-search-input::placeholder { color: var(--color-muted-foreground); }
.shop-search-input:focus { border-bottom-color: var(--color-foreground); }

/* Category filters */
.shop-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.shop-filter-btn {
  padding: 0.5rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--color-foreground);
  cursor: pointer;
  transition: all 0.3s;
}
.shop-filter-btn:hover { border-color: var(--color-foreground); }
.shop-filter-btn.is-active {
  background-color: var(--color-foreground);
  color: var(--color-background);
  border-color: var(--color-foreground);
}

/* Price filter */
.shop-price-filter-wrap { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; margin-bottom: 3rem; }

.shop-price-filter-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-muted-foreground);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.3s;
}
.shop-price-filter-toggle:hover { color: var(--color-foreground); }
.shop-price-filter-range-display { font-size: 0.8125rem; opacity: 0.7; text-transform: none; letter-spacing: 0; }
.price-filter-chevron { transition: transform 0.3s; }
.price-filter-chevron.is-open { transform: rotate(180deg); }

.shop-price-filter-body {
  width: 100%;
  max-width: 24rem;
  padding-block: 0.5rem;
  overflow: hidden;
}

/* Price range slider — full-width dual inputs (thumbs align to bar ends) */
.price-range-wrapper {
  position: relative;
  height: 2rem;
  margin-bottom: 0.75rem;
}
.range-track-bg {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 4px;
  background-color: var(--color-border);
  border-radius: 2px;
  pointer-events: none;
  z-index: 0;
}
.range-track-fill {
  position: absolute;
  height: 4px;
  background-color: var(--color-primary);
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  border-radius: 2px;
  z-index: 1;
}
.price-range-input {
  position: absolute;
  left: 0;
  width: 100%;
  top: 50%;
  transform: translateY(-50%);
  height: 2rem;
  margin: 0;
  padding: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
  cursor: pointer;
  pointer-events: none;
  z-index: 2;
}
.price-range-input--max { z-index: 3; }
.price-range-input::-webkit-slider-runnable-track {
  width: 100%;
  height: 4px;
  background: transparent;
  border-radius: 2px;
}
.price-range-input::-moz-range-track {
  width: 100%;
  height: 4px;
  background: transparent;
  border-radius: 2px;
}
.price-range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--color-foreground);
  cursor: pointer;
  border: 2px solid var(--color-background);
  box-shadow: var(--shadow-soft);
  pointer-events: auto;
  margin-top: calc(-0.625rem + 2px);
}
.price-range-input::-moz-range-thumb {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--color-foreground);
  cursor: pointer;
  border: 2px solid var(--color-background);
  pointer-events: auto;
}
.price-range-labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
}

/* Show more / no results */
.shop-show-more-wrap { text-align: center; margin-top: 3rem; }
.shop-no-results { text-align: center; padding-block: 5rem; }
.shop-no-results p, .shop-no-results-text { font-family: var(--font-body); color: var(--color-muted-foreground); }

/* ---------------------------------------------------------------------------
   CTA SECTION
   --------------------------------------------------------------------------- */

.cta-section {
  position: relative;
  background-color: var(--color-butter);
  overflow: hidden;
}
.cta-section__bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cta-section__inner {
  position: relative;
  z-index: 1;
  padding-block: 5rem;
}
@media (min-width: 768px) { .cta-section__inner { padding-block: 7rem; } }
.cta-section__content {
  max-width: 42rem;
  margin-inline: auto;
  text-align: center;
}
.cta-section__title { font-size: clamp(1.75rem, 4vw, 3rem); margin-bottom: 1.5rem; }
.cta-section__text {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(45,37,64,0.75);
  max-width: 28rem;
  margin-inline: auto;
  margin-bottom: 2.5rem;
}
.cta-section__buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}
@media (min-width: 640px) { .cta-section__buttons { flex-direction: row; justify-content: center; } }

/* ---------------------------------------------------------------------------
   FOOTER
   --------------------------------------------------------------------------- */

.site-footer { border-top: 1px solid var(--color-border); }
.site-footer > .container-wide { padding-block: 2.5rem; }
@media (min-width: 1024px) { .site-footer > .container-wide { padding-block: 3rem; } }

.site-footer__main {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
@media (min-width: 768px) {
  .site-footer__main {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.site-footer__nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
@media (min-width: 768px) { .site-footer__nav { gap: 2rem; } }

.site-footer__nav-link {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-muted-foreground);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
  text-decoration: none;
  display: block;
}
.site-footer__nav-link:hover { color: var(--color-foreground); }

.site-footer__contact {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
@media (min-width: 640px) { .site-footer__contact { flex-direction: row; align-items: center; gap: 1.25rem; } }

.site-footer__contact-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
  text-decoration: none;
  transition: color 0.2s;
}
.site-footer__contact-link:hover { color: var(--color-foreground); }

.site-footer__social {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.site-footer__social-link {
  color: var(--color-muted-foreground);
  transition: color 0.2s;
  text-decoration: none;
}
.site-footer__social-link:hover { color: var(--color-foreground); }

.site-footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}
@media (min-width: 640px) {
  .site-footer__bottom { flex-direction: row; justify-content: space-between; }
}
.site-footer__copyright,
.site-footer__credit {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--color-muted-foreground);
  letter-spacing: 0.03em;
}
.site-footer__credit a {
  text-decoration: underline;
  color: inherit;
  transition: color 0.2s;
}
.site-footer__credit a:hover { color: var(--color-foreground); }

/* ---------------------------------------------------------------------------
   CONTACT MODAL
   --------------------------------------------------------------------------- */

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.contact-modal[hidden] { display: none; }
.contact-modal.is-open { display: flex; }

.contact-modal__overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(45, 37, 64, 0.2);
  animation: fadeIn 0.3s ease;
  cursor: pointer;
}
.contact-modal__box {
  position: relative;
  background-color: var(--color-background);
  border-radius: var(--radius);
  padding: 2rem;
  width: 100%;
  max-width: 32rem;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-elevated);
  animation: slideUp 0.35s var(--transition-smooth);
  z-index: 1;
}
.contact-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.25rem;
  color: var(--color-foreground);
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
}
.contact-modal__close:hover { opacity: 1; }
.contact-modal__header { margin-bottom: 1rem; }
.contact-modal__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}
.contact-modal__desc {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--color-muted-foreground);
}
.contact-modal__contact-info {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.contact-modal__contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
}
.contact-modal__contact-item a { transition: color 0.2s; text-decoration: none; }
.contact-modal__contact-item a:hover { color: var(--color-foreground); }

.contact-modal__form { display: flex; flex-direction: column; gap: 1rem; }
.contact-modal__form-row { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 540px) { .contact-modal__form-row { grid-template-columns: 1fr 1fr; } }
.contact-modal__field { display: flex; flex-direction: column; gap: 0.375rem; }
.contact-modal__label { font-family: var(--font-body); font-size: 0.875rem; font-weight: 500; color: var(--color-foreground); }
.contact-modal__input,
.contact-modal__textarea {
  width: 100%;
  padding: 0.625rem 0.75rem;
  background-color: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: calc(var(--radius) - 2px);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-foreground);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.contact-modal__input::placeholder,
.contact-modal__textarea::placeholder { color: var(--color-muted-foreground); }
.contact-modal__input:focus,
.contact-modal__textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(124, 111, 158, 0.1);
}
.contact-modal__textarea { resize: none; }
.contact-modal__form-footer { display: flex; justify-content: flex-end; }
.contact-modal__submit {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  background-color: var(--color-foreground);
  color: var(--color-background);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  border: none;
  border-radius: calc(var(--radius) - 2px);
  cursor: pointer;
  transition: opacity 0.2s;
}
.contact-modal__submit:hover { opacity: 0.85; }
.contact-modal__submit:disabled { opacity: 0.6; cursor: not-allowed; }

/* Success state */
.contact-modal__success { text-align: center; padding-block: 2rem; }
.contact-modal__success-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: var(--color-primary-foreground);
  margin-inline: auto;
  margin-bottom: 1rem;
  animation: scaleIn 0.4s var(--transition-smooth);
}
.contact-modal__success-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}
.contact-modal__success-msg {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--color-muted-foreground);
}

/* ---------------------------------------------------------------------------
   CART DRAWER
   --------------------------------------------------------------------------- */

#theme-cart-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(45, 37, 64, 0.2);
  z-index: 60;
  display: none;
  cursor: pointer;
}
body.cart-open #theme-cart-overlay {
  display: block;
  animation: fadeIn 0.3s ease;
}

#theme-cart-drawer {
  position: fixed;
  right: 0;
  top: 0;
  height: 100%;
  width: 100%;
  max-width: 28rem;
  background-color: var(--color-background);
  z-index: 70;
  box-shadow: var(--shadow-elevated);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s var(--transition-smooth);
}
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: 700;
}
.cart-drawer__close {
  padding: 0.25rem;
  color: var(--color-foreground);
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
  display: flex;
}
.cart-drawer__close:hover { opacity: 1; }

.cart-drawer__empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
  gap: 1rem;
}
.cart-drawer__empty svg { color: var(--color-muted-foreground); }
.cart-drawer__empty-text {
  font-family: var(--font-body);
  color: var(--color-muted-foreground);
}
.cart-drawer__empty .btn { min-height: 2.5rem; }

.cart-drawer__items {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.cart-drawer__item {
  display: flex;
  gap: 1rem;
}
.cart-drawer__item-image-link {
  display: block;
  width: 5rem;
  height: 6rem;
  flex-shrink: 0;
  overflow: hidden;
  background-color: var(--color-card);
}
.cart-drawer__item-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cart-drawer__item-details {
  flex: 1;
  min-width: 0;
}
.cart-drawer__item-name {
  display: block;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-foreground);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 0.2s;
}
.cart-drawer__item-name:hover { opacity: 0.7; }
.cart-drawer__item-price {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
  margin-top: 0.125rem;
}
.cart-drawer__item-meta {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--color-muted-foreground);
  margin-top: 0.25rem;
}
.cart-drawer__item-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
}
.cart-drawer__qty-btn {
  padding: 0.25rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-foreground);
  border-radius: calc(var(--radius) - 4px);
  display: flex;
  transition: background-color 0.2s;
}
.cart-drawer__qty-btn:hover { background-color: var(--color-card); }
.cart-drawer__qty-display {
  font-family: var(--font-body);
  font-size: 0.875rem;
  min-width: 1.5rem;
  text-align: center;
}
.cart-drawer__remove-btn {
  margin-left: auto;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}
.cart-drawer__remove-btn: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;
  flex-shrink: 0;
}
.cart-drawer__subtotal-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-body);
  font-size: 0.875rem;
}
.cart-drawer__subtotal-label { color: var(--color-muted-foreground); }
.cart-drawer__subtotal-value { font-weight: 500; }
.cart-drawer__shipping-note {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
}
.cart-drawer__checkout-btn {
  width: 100%;
  min-height: var(--btn-height);
  border-radius: calc(var(--radius) - 2px);
}

/* ---------------------------------------------------------------------------
   SINGLE PRODUCT PAGE
   --------------------------------------------------------------------------- */

.single-product .site-main { padding-bottom: 6rem; }

.product-breadcrumb {
  padding-block: 1.5rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted-foreground);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.product-breadcrumb__link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
.product-breadcrumb__link:hover { color: var(--color-foreground); }
.product-breadcrumb__sep { opacity: 0.5; }
.product-breadcrumb__current { color: var(--color-foreground); }

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

/* Gallery */
.theme-product-gallery { min-width: 0; }
.product-gallery-mobile { display: block; }
@media (min-width: 1024px) { .product-gallery-mobile { display: none; } }
.product-gallery-desktop { display: none; }
@media (min-width: 1024px) { .product-gallery-desktop { display: flex; flex-direction: column; gap: 1rem; } }

.product-gallery__main-wrap {
  aspect-ratio: 1/1;
  background-color: var(--color-card);
  overflow: hidden;
  margin-bottom: 1rem;
}
.product-gallery__main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s;
}
.product-gallery__thumbnails {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  max-width: 100%;
  flex-wrap: wrap;
}
.product-gallery__thumb-btn {
  position: relative;
  width: 5rem;
  height: 5rem;
  flex-shrink: 0;
  overflow: hidden;
  background-color: var(--color-card);
  border: none;
  cursor: pointer;
  padding: 0;
}
.product-gallery__thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.product-gallery__thumb-btn.is-active img,
.product-gallery__thumb-btn:hover img { opacity: 1; }
.product-gallery__thumb-indicator {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background-color: var(--color-foreground);
  opacity: 0;
  transition: opacity 0.2s;
}
.product-gallery__thumb-btn.is-active .product-gallery__thumb-indicator { opacity: 1; }

.product-gallery__desktop-img-wrap {
  aspect-ratio: 1/1;
  background-color: var(--color-card);
  overflow: hidden;
}
.product-gallery__desktop-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Product info */
.theme-product-info {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
}
@media (min-width: 1024px) {
  .theme-product-info {
    position: sticky;
    top: 7rem;
  }
}
.product-info__category {
  display: block;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-muted-foreground);
  overflow-wrap: break-word;
  word-break: break-word;
}
.product-info__category a { color: inherit; text-decoration: none; }
.product-info__category a:hover { color: var(--color-foreground); }
.product-info__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  line-height: 1.1;
  margin-top: 0.75rem;
  margin-bottom: 1.25rem;
}
.product-info__price {
  font-family: var(--font-body);
  font-size: 1.25rem;
  color: var(--color-foreground);
  margin-bottom: 1.5rem;
}
.product-info__price .woocommerce-Price-amount { font-size: inherit; }
.product-info__description {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(45, 37, 64, 0.7);
  margin-bottom: 2rem;
  overflow-wrap: break-word;
  word-break: break-word;
}
.product-info__stock.out-of-stock {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
  margin-bottom: 1rem;
}
.product-info__field-label {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted-foreground);
  margin-bottom: 0.75rem;
}

/* Quantity control */
.theme-quantity-wrapper { margin-bottom: 1rem; }
.theme-qty-controls {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--color-border);
}
.theme-qty-minus,
.theme-qty-plus {
  padding: 0.5rem 0.75rem;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  color: var(--color-foreground);
  transition: background-color 0.2s;
}
.theme-qty-minus:hover,
.theme-qty-plus:hover { background-color: var(--color-card); }
.theme-qty-input {
  width: 2.75rem;
  text-align: center;
  padding: 0.5rem 0;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-foreground);
  outline: none;
  -moz-appearance: textfield;
}
.theme-qty-input::-webkit-inner-spin-button,
.theme-qty-input::-webkit-outer-spin-button { -webkit-appearance: none; }

/* Add-to-cart area */
.theme-add-to-cart-area {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

/* Theme primary button */
.theme-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-foreground);
  color: var(--color-background);
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, background-color 0.2s;
  text-decoration: none;
  width: 100%;
}
.theme-btn-primary:hover { opacity: 0.9; }
.theme-btn-primary.disabled,
.theme-btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

/* WooCommerce add-to-cart button overrides */
.single_add_to_cart_button.button,
.add_to_cart_button.button,
a.single_add_to_cart_button,
a.add_to_cart_button {
  background-color: var(--color-foreground) !important;
  color: var(--color-background) !important;
  border: none !important;
  border-radius: var(--radius-full) !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;
  width: 100%;
}
.single_add_to_cart_button.button:hover,
.add_to_cart_button.button:hover {
  opacity: 0.85 !important;
  background-color: var(--color-foreground) !important;
  color: var(--color-background) !important;
}
.single_add_to_cart_button.button:disabled,
.single_add_to_cart_button.button.disabled,
.add_to_cart_button.button:disabled,
.add_to_cart_button.button.disabled {
  cursor: not-allowed !important;
  opacity: 0.4 !important;
  pointer-events: none !important;
}
.single_add_to_cart_button.button:disabled:hover,
.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-foreground) !important;
}

/* Card quick-add 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.5rem !important;
  height: 2.5rem !important;
  background-color: var(--color-background) !important;
  color: var(--color-foreground) !important;
  box-shadow: var(--shadow-soft) !important;
}

/* Hide "View cart" link injected by WooCommerce */
.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;
}

/* 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; }
.single-product .variations select {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: calc(var(--radius) - 2px);
  background-color: var(--color-background);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--color-foreground);
  outline: none;
  margin-bottom: 0.75rem;
}
.theme-attr-select-hidden { display: none !important; }

/* Accordion */
.product-accordion { border-top: 1px solid var(--color-border); }
.product-accordion__trigger {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.25rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  color: var(--color-foreground);
}
.product-accordion__chevron { transition: transform 0.3s; }
.product-accordion__trigger[aria-expanded="true"] .product-accordion__chevron { transform: rotate(180deg); }
.product-accordion__body {
  padding-bottom: 1.5rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--color-muted-foreground);
  line-height: 1.7;
  overflow: hidden;
}
.product-accordion__body p { margin-bottom: 0.75rem; }
.product-accordion__body p:last-child { margin-bottom: 0; }
.product-accordion__body ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.product-accordion__body ul li { display: flex; align-items: flex-start; }
.product-accordion__body ul li::before {
  content: '';
  display: inline-block;
  width: 0.25rem;
  height: 0.25rem;
  border-radius: 50%;
  background-color: var(--color-foreground);
  margin-top: 0.6rem;
  margin-right: 0.75rem;
  flex-shrink: 0;
}
.product-accordion__body.is-collapsed { display: none; }
.product-accordion__border-bottom { border-bottom: 1px solid var(--color-border); }

/* Single product responsive */
.single-product .theme-product-layout { min-width: 0; }
.single-product .theme-product-gallery,
.single-product .theme-product-info { min-width: 0; max-width: 100%; }
.single-product .theme-product-thumbnails { flex-wrap: wrap; max-width: 100%; }
.single-product .theme-add-to-cart-area { flex-wrap: wrap; gap: 0.75rem; }
.single-product .single_add_to_cart_button { flex: 1 1 auto; min-width: 160px; }
.single-product .woocommerce-product-details__short-description,
.single-product .woocommerce-variation-description,
.single-product .posted_in { overflow-wrap: break-word; word-break: break-word; }

/* Related products */
.related-products { padding-block: 5rem; border-top: 1px solid var(--color-border); }
.related-products__header { text-align: center; margin-bottom: 3rem; }
.related-products__header-italic {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--color-muted-foreground);
  margin-bottom: 0.5rem;
}
.related-products__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 400;
}
.related-products__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 1024px) {
  .related-products__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* WooCommerce notices */
.single-product .woocommerce-message,
.single-product .woocommerce-info { display: none; }

/* ---------------------------------------------------------------------------
   PAGE.PHP / INNER PAGES
   --------------------------------------------------------------------------- */

.site-main {
  padding-top: var(--header-height);
  min-height: 60vh;
}
.site-main > .container-wide { padding-block: 3rem; }

.page-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.entry-content {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-foreground);
}

/* ---------------------------------------------------------------------------
   404 PAGE
   --------------------------------------------------------------------------- */

.error-404 {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-block: 6rem;
  gap: 1rem;
}
.error-404__code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 15vw, 9rem);
  font-weight: 400;
  color: var(--color-muted);
  line-height: 1;
}
.error-404__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
}
.error-404__desc {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-muted-foreground);
  margin-bottom: 1rem;
}

/* ---------------------------------------------------------------------------
   CHECKOUT & THANK YOU PAGE
   --------------------------------------------------------------------------- */

body.woocommerce-checkout .site-main {
  padding-top: var(--header-height);
  padding-bottom: 4rem;
}
body.woocommerce-checkout .wc-block-checkout {
  display: block;
}
@media (min-width: 768px) {
  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-card);
  border-radius: var(--card-radius);
  padding: 2rem;
}
body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-select select {
  width: 100% !important;
  max-width: none !important;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-foreground);
  border: 1px solid var(--color-border);
  border-radius: calc(var(--radius) - 2px);
  background-color: var(--color-background);
  outline: none;
}
body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-select select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(124, 111, 158, 0.1);
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
  background-color: var(--color-foreground) !important;
  color: var(--color-background) !important;
  border: none !important;
  border-radius: var(--radius-full) !important;
  font-family: var(--font-body) !important;
  font-size: var(--btn-font-size) !important;
  letter-spacing: var(--btn-letter-spacing) !important;
  text-transform: var(--btn-text-transform) !important;
  padding: var(--btn-padding) !important;
  min-height: var(--btn-height) !important;
  width: 100% !important;
}
body.woocommerce-checkout .page-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 400;
  margin-bottom: 2rem;
}

/* Thank you page */
body.theme-thankyou-page .woocommerce-order { font-family: var(--font-body); }
body.theme-thankyou-page .woocommerce-order-overview {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  background-color: var(--color-card);
  border-radius: var(--card-radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
}
body.theme-thankyou-page .woocommerce-order-overview li {
  font-family: var(--font-body);
  font-size: 0.9375rem;
}
body.theme-thankyou-page .woocommerce-order h2,
body.theme-thankyou-page .woocommerce-order-details__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  padding: 0 0 1rem 0;
}
body.theme-thankyou-page .woocommerce-order-details table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}
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 { overflow-x: hidden; }

/* ---------------------------------------------------------------------------
   WOOCOMMERCE GENERAL OVERRIDES
   --------------------------------------------------------------------------- */

/* Notices */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  font-family: var(--font-body);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}
.woocommerce-error { border-left: 4px solid #c0392b; }

/* Pagination */
.woocommerce-pagination ul {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  list-style: none;
  padding: 2rem 0 0;
}
.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--color-border);
  border-radius: calc(var(--radius) - 2px);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--color-foreground);
  text-decoration: none;
  transition: all 0.2s;
}
.woocommerce-pagination ul li a:hover { border-color: var(--color-foreground); }
.woocommerce-pagination ul li span.current { background-color: var(--color-foreground); color: var(--color-background); border-color: var(--color-foreground); }
