/* =============================================================
   RUGGED RAVEN THEME — theme.css
   ============================================================= */

/* ---- Default CSS variables (overridden by Customizer inline styles) ---- */
:root {
  --color-primary:    #943D20;
  --color-primary-fg: #F5EDE4;
  --color-bg:         #F6F1EB;
  --color-fg:         #1A1614;
  --color-secondary:  #E3DAD0;
  --color-muted-fg:   #6E635A;
  --color-border:     #C9BEB3;
  --color-card:       #E8E1D8;
  --color-obsidian:   #1A1614;
  --color-parchment:  #F2EBE0;

  --font-display: 'Cinzel', serif;
  --font-body:    'Raleway', sans-serif;

  --radius:         0.375rem;
  --radius-lg:      0.75rem;
  --radius-xl:      1rem;
  --radius-2xl:     1.5rem;
  --shadow-soft:    0 4px 20px -4px rgba(26,22,20,0.08);
  --shadow-elevated:0 8px 40px -8px rgba(26,22,20,0.15);
  --transition:     cubic-bezier(0.4,0,0.2,1);

  --btn-radius:        var(--radius);
  --btn-height:        3rem;
  --btn-padding:       0 2rem;
  --btn-font-size:     0.875rem;
  --btn-font-weight:   500;
  --btn-letter-spacing:0.025em;
  --btn-text-transform:none;

  --header-height: 80px;
  --logo-height:   40px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.2;
}

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

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

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

.font-display { font-family: var(--font-display); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: var(--btn-padding);
  min-height: var(--btn-height);
  border-radius: var(--btn-radius);
  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);
  cursor: pointer;
  border: 1px solid transparent;
  transition: opacity 0.2s var(--transition), background-color 0.2s var(--transition), color 0.2s var(--transition);
}
.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-primary-fg);
  border-color: var(--color-primary);
}
.btn-primary:hover { opacity: 0.9; }
.btn-outline {
  background-color: transparent;
  color: var(--color-fg);
  border-color: var(--color-border);
}
.btn-outline:hover { background-color: var(--color-secondary); }

/* ---- Header ---- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background-color 0.3s var(--transition), border-color 0.3s var(--transition);
  border-bottom: 1px solid transparent;
}
.site-header.is-solid {
  background-color: rgba(246,241,235,0.97);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-bottom-color: var(--color-border);
}

/* Logged-in preview: keep header below the WordPress admin bar */
body.admin-bar .site-header {
  top: 32px;
}
@media screen and (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
@media (min-width: 1024px) { .site-nav { height: 80px; } }

.site-logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.site-logo-img {
  height: var(--logo-height) !important;
  width: auto !important;
  display: block;
  border-radius: 50%;
  object-fit: cover;
}
.site-logo-text {
  font-family: var(--font-display);
  font-size: 0.875rem;
  letter-spacing: 0.1em;
}
@media (min-width: 1024px) { .site-logo-text { font-size: 1rem; } }

/* Solo el menú horizontal del header: oculto en móvil (el panel usa .theme-mobile-nav-list). */
.site-nav-links .theme-nav-list {
  display: none;
  list-style: none;
  gap: 2rem;
}
@media (min-width: 768px) {
  .site-nav-links .theme-nav-list { display: flex; }
}
.theme-nav-list a,
.theme-nav-list li > a {
  font-size: 0.875rem;
  letter-spacing: 0.025em;
  position: relative;
  display: inline-block;
}
.theme-nav-list a::after,
.theme-nav-list li > a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--transition);
}
.theme-nav-list a:hover::after,
.theme-nav-list li > a:hover::after { transform: scaleX(1); }

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

.cart-btn {
  position: relative;
  padding: 0.5rem;
  transition: opacity 0.2s;
  color: inherit;
}
.cart-btn:hover { opacity: 0.6; }

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

.mobile-menu-btn {
  padding: 0.5rem;
  display: block;
  color: inherit;
  transition: opacity 0.2s, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.mobile-menu-btn:hover { opacity: 0.6; }
@media (min-width: 768px) { .mobile-menu-btn { display: none; } }
.site-header.mobile-nav-open .mobile-menu-btn {
  transform: rotate(90deg);
}

/* ---- Mobile navigation panel (single column, high contrast, animated) ---- */
@media (max-width: 767.98px) {
  body.mobile-menu-open {
    overflow: hidden;
    touch-action: none;
  }
}

.mobile-menu {
  --mobile-nav-pad: 1rem;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  padding: 0;
  margin: 0;
  border-top: 1px solid transparent;
  background: rgba(246, 241, 235, 0.98);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition:
    max-height 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0.55s,
    border-color 0.3s ease,
    padding 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.mobile-menu.is-visible {
  max-height: min(78vh, 560px);
  opacity: 1;
  visibility: visible;
  padding: var(--mobile-nav-pad) 0 calc(var(--mobile-nav-pad) + 0.25rem);
  border-top-color: var(--color-border);
  transition-delay: 0s, 0s, 0s, 0s, 0s;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Dark hero header: keep panel readable */
.site-header:not(.is-solid) .mobile-menu {
  background: rgba(26, 22, 20, 0.94);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.site-header:not(.is-solid) .mobile-menu.is-visible {
  border-top-color: rgba(255, 255, 255, 0.12);
}

.theme-mobile-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.25rem;
  width: 100%;
}
.theme-mobile-nav-list li {
  width: 100%;
  margin: 0;
}
.theme-mobile-nav-list > li > a,
.theme-mobile-nav-list > li > button {
  display: block;
  width: 100%;
  text-align: left;
}

/* Submenus: same column, indented */
.theme-mobile-nav-list .sub-menu {
  list-style: none;
  margin: 0.25rem 0 0.5rem;
  padding: 0.25rem 0 0.25rem 0.75rem;
  border-left: 2px solid var(--color-primary);
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  width: 100%;
}
.site-header:not(.is-solid) .theme-mobile-nav-list .sub-menu {
  border-left-color: rgba(255, 255, 255, 0.35);
}

.theme-mobile-nav-list a,
.theme-mobile-nav-list li > a {
  display: block;
  width: 100%;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.04em;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-lg);
  color: var(--color-fg);
  text-decoration: none;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.theme-mobile-nav-list .sub-menu a {
  font-size: 0.9375rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--color-muted-fg);
  padding: 0.625rem 0.75rem;
}

.site-header:not(.is-solid) .theme-mobile-nav-list a,
.site-header:not(.is-solid) .theme-mobile-nav-list li > a {
  color: rgba(255, 255, 255, 0.95);
}
.site-header:not(.is-solid) .theme-mobile-nav-list .sub-menu a {
  color: rgba(255, 255, 255, 0.78);
}

.theme-mobile-nav-list a:hover,
.theme-mobile-nav-list li > a:hover {
  background-color: rgba(148, 61, 32, 0.08);
  color: var(--color-primary);
}
.site-header:not(.is-solid) .theme-mobile-nav-list a:hover,
.site-header:not(.is-solid) .theme-mobile-nav-list li > a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.theme-mobile-nav-list a:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}
.site-header:not(.is-solid) .theme-mobile-nav-list a:focus-visible {
  outline-color: rgba(255, 255, 255, 0.9);
}

/* Staggered reveal when panel opens (top-level links) */
.mobile-menu.is-visible .theme-mobile-nav-list > li > a {
  animation: mobileNavLinkIn 0.48s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.mobile-menu.is-visible .theme-mobile-nav-list .sub-menu a {
  animation: mobileNavLinkIn 0.42s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.18s;
}
.mobile-menu.is-visible .theme-mobile-nav-list > li:nth-child(1) > a { animation-delay: 0.04s; }
.mobile-menu.is-visible .theme-mobile-nav-list > li:nth-child(2) > a { animation-delay: 0.08s; }
.mobile-menu.is-visible .theme-mobile-nav-list > li:nth-child(3) > a { animation-delay: 0.12s; }
.mobile-menu.is-visible .theme-mobile-nav-list > li:nth-child(4) > a { animation-delay: 0.16s; }
.mobile-menu.is-visible .theme-mobile-nav-list > li:nth-child(5) > a { animation-delay: 0.2s; }
.mobile-menu.is-visible .theme-mobile-nav-list > li:nth-child(6) > a { animation-delay: 0.24s; }
.mobile-menu.is-visible .theme-mobile-nav-list > li:nth-child(7) > a { animation-delay: 0.28s; }
.mobile-menu.is-visible .theme-mobile-nav-list > li:nth-child(8) > a { animation-delay: 0.32s; }
.mobile-menu.is-visible .theme-mobile-nav-list > li:nth-child(n+9) > a { animation-delay: 0.36s; }

@keyframes mobileNavLinkIn {
  from { transform: translate3d(-14px, 0, 0); }
  to { transform: translate3d(0, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-menu.is-visible .theme-mobile-nav-list > li > a,
  .mobile-menu.is-visible .theme-mobile-nav-list .sub-menu a {
    animation: none;
    transform: none;
  }
}

/* Transparent header text */
.site-header:not(.is-solid) .site-nav,
.site-header:not(.is-solid) .site-logo-text,
.site-header:not(.is-solid) .theme-nav-list a,
.site-header:not(.is-solid) .theme-nav-list li > a,
.site-header:not(.is-solid) .cart-btn,
.site-header:not(.is-solid) .mobile-menu-btn {
  color: white;
}

/* ---- Hero ---- */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--color-fg);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.7) 100%);
  z-index: 1;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.4;
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-top: 5rem;
  padding-bottom: 5rem;
  color: white;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 1rem;
  animation: fadeInDown 0.8s ease 0.4s both;
}
.hero-heading {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: white;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.9s ease 0.5s both;
}
.hero-subtext {
  color: rgba(255,255,255,0.75);
  max-width: 32rem;
  margin: 0 auto 2.5rem;
  font-weight: 300;
  animation: fadeInUp 0.7s ease 0.7s both;
}
.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  animation: fadeInUp 0.7s ease 0.9s both;
}
@media (min-width: 640px) { .hero-buttons { flex-direction: row; } }
.hero-btn-story {
  border-color: rgba(255,255,255,0.4);
  color: white;
  background-color: rgba(255,255,255,0.1);
  backdrop-filter: blur(4px);
}
.hero-btn-story:hover { background-color: rgba(255,255,255,0.2); }
.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 1s infinite 1.2s;
}
.hero-scroll-btn {
  display: block;
  padding: 0.5rem;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}
.hero-scroll-btn:hover { color: white; }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- About Section ---- */
.about-section {
  background-color: var(--color-secondary);
}
.about-section .container-wide { padding-top: 5rem; padding-bottom: 5rem; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 56rem;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .about-grid { grid-template-columns: 1fr 1fr; }
}
.about-image-wrap { min-width: 0; }
.about-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
}
.about-content { min-width: 0; }
.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted-fg);
  margin-bottom: 0.75rem;
}
.about-heading {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin-bottom: 1.25rem;
}
.about-text { display: flex; flex-direction: column; gap: 1rem; color: var(--color-muted-fg); line-height: 1.75; }

/* ---- Shop Section ---- */
.shop-section { padding-top: 5rem; padding-bottom: 5rem; }
.shop-header { text-align: center; margin-bottom: 3rem; }
.shop-heading {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin-top: 0.5rem;
  margin-bottom: 2rem;
}

/* Category filter pills */
.category-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.cat-pill {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  border-radius: 9999px;
  background-color: var(--color-secondary);
  color: var(--color-fg);
  border: none;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s, transform 0.1s;
  font-family: var(--font-body);
}
.cat-pill:hover { background-color: var(--color-border); }
.cat-pill.is-active {
  background-color: var(--color-primary);
  color: var(--color-primary-fg);
}
.cat-pill:active { transform: scale(0.95); }

/* Price filter (dual-thumb range) */
.price-filter-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.price-filter-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  border-radius: 9999px;
  background-color: var(--color-secondary);
  color: var(--color-fg);
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.1s ease;
  font-family: var(--font-body);
}
.price-filter-toggle:hover { background-color: var(--color-border); }
.price-filter-toggle:active { transform: scale(0.98); }
.price-filter-current {
  font-size: 0.75rem;
  opacity: 0.7;
  font-weight: 400;
}
.chevron-icon { transition: transform 0.3s ease; flex-shrink: 0; }
.price-filter-toggle.is-open .chevron-icon { transform: rotate(180deg); }
.price-filter-panel {
  width: 100%;
  max-width: 24rem;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  padding: 0;
  transition: max-height 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}
.price-filter-panel.is-open {
  max-height: 6rem;
  opacity: 1;
  padding: 0.5rem 0 0;
}
.price-slider {
  position: relative;
  width: 100%;
  height: 28px;
  margin-bottom: 0.75rem;
}
.price-slider__track {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 8px;
  border-radius: 9999px;
  background-color: var(--color-secondary);
  pointer-events: none;
  z-index: 0;
}
.price-slider__range {
  position: absolute;
  left: 0;
  width: 100%;
  top: 50%;
  transform: translateY(-50%);
  height: 8px;
  border-radius: 9999px;
  background-color: var(--color-primary);
  pointer-events: none;
  z-index: 1;
}
.price-slider__input {
  position: absolute;
  left: 0;
  width: 100%;
  top: 0;
  height: 28px;
  margin: 0;
  padding: 0;
  background: none;
  -webkit-appearance: none;
  appearance: none;
  pointer-events: none;
  z-index: 2;
}
.price-slider__input--max { z-index: 3; }
.price-slider__input::-webkit-slider-runnable-track {
  height: 8px;
  background: transparent;
  border: none;
}
.price-slider__input::-webkit-slider-thumb {
  pointer-events: auto;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  margin-top: -6px;
  border-radius: 50%;
  background-color: var(--color-bg);
  border: 2px solid var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary);
  cursor: grab;
}
.price-slider__input::-moz-range-track {
  height: 8px;
  background: transparent;
  border: none;
}
.price-slider__input::-moz-range-thumb {
  pointer-events: auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--color-bg);
  border: 2px solid var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary);
  cursor: grab;
}
.price-range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--color-muted-fg);
}

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

/* Related products — 4 column */
.theme-related-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 1024px) {
  .theme-related-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.theme-product-card-wrap {
  height: 100%;
}
.theme-product-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: 1rem;
  background-color: var(--color-card);
  transition: box-shadow 0.3s var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}
.theme-product-card:hover { box-shadow: var(--shadow-elevated); }

.theme-product-card__image-wrapper {
  position: relative;
  aspect-ratio: 1 / 1;
  background-color: var(--color-secondary);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 1rem;
}
.theme-product-card__image-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
}
.theme-product-card__image {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.theme-product-card:hover .theme-product-card__image { transform: scale(1.05); }
.theme-product-card__image.is-dimmed { opacity: 0.6; }

/* Card badges */
.badge {
  position: absolute;
  top: 0.5rem; left: 0.5rem;
  padding: 0.25rem 0.5rem;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  z-index: 2;
}
@media (min-width: 768px) {
  .badge { top: 0.75rem; left: 0.75rem; padding: 0.375rem 0.75rem; font-size: 0.75rem; }
}
.badge-sold-out {
  background-color: var(--color-obsidian);
  color: var(--color-parchment);
}

/* Card add-to-cart button */
.theme-card-add-btn {
  position: absolute;
  bottom: 0.75rem; right: 0.75rem;
  width: 2.5rem; height: 2.5rem;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: var(--color-primary-fg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  opacity: 1;
  transition: opacity 0.3s, transform 0.2s;
  box-shadow: var(--shadow-soft);
  pointer-events: auto !important;
}
@media (min-width: 768px) {
  .theme-card-add-btn { opacity: 0; }
  .theme-product-card:hover .theme-card-add-btn { opacity: 1; }
}
.theme-card-add-btn:hover { transform: scale(1.1); }

.theme-product-card__info {
  flex: 1;
  padding: 0 0.25rem 0.25rem;
}
.theme-product-card__title-link { display: block; }
.theme-product-card__title {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.25rem;
  transition: opacity 0.2s;
}
.theme-product-card:hover .theme-product-card__title { opacity: 0.7; }
.theme-product-card__price {
  font-size: 0.875rem;
  color: var(--color-muted-fg);
}
.theme-product-card__sold-out-text {
  font-size: 0.75rem;
  color: var(--color-muted-fg);
  display: block;
  margin-top: 0.25rem;
}

/* Shop section load more / empty */
.shop-view-all-wrap { text-align: center; margin-top: 2.5rem; }
.shop-empty-state { text-align: center; padding: 5rem 0; color: var(--color-muted-fg); }
.shop-load-more { padding-left: 2.5rem; padding-right: 2.5rem; }

/* ---- CTA Section ---- */
.cta-section { padding-top: 5rem; padding-bottom: 5rem; }
.cta-card {
  display: grid;
  grid-template-columns: 1fr;
  border-radius: var(--radius-2xl);
  background-color: var(--color-fg);
  color: var(--color-bg);
  overflow: hidden;
}
@media (min-width: 768px) { .cta-card { grid-template-columns: 1fr 1fr; } }
.cta-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.5rem;
}
@media (min-width: 1024px) { .cta-content { padding: 4rem; } }
.cta-heading {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin-bottom: 1rem;
}
.cta-text {
  color: rgba(246,241,235,0.7);
  margin-bottom: 2rem;
  max-width: 28rem;
  line-height: 1.7;
}
.cta-image-wrap {
  position: relative;
  min-height: 280px;
}
@media (min-width: 768px) { .cta-image-wrap { min-height: 0; } }
.cta-image {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.cta-image-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(26,22,20,0.2);
}

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--color-border);
  margin-top: 5rem;
}
.site-footer .container-wide { padding-top: 3rem; padding-bottom: 3rem; }
@media (min-width: 1024px) { .site-footer .container-wide { padding-top: 4rem; padding-bottom: 4rem; } }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, 1fr); gap: 3rem; } }
.footer-brand .site-logo-link { display: flex; align-items: center; gap: 0.75rem; }
.footer-description {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--color-muted-fg);
  max-width: 24rem;
  line-height: 1.7;
}
.footer-col-title {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
}
.theme-footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.theme-footer-nav-list a,
.theme-footer-nav-list li > a {
  font-size: 0.875rem;
  color: var(--color-muted-fg);
  transition: color 0.2s;
}
.theme-footer-nav-list a:hover,
.theme-footer-nav-list li > a:hover { color: var(--color-fg); }
.footer-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-contact-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-muted-fg);
}
.footer-contact-link {
  transition: color 0.2s;
}
.footer-contact-link:hover { color: var(--color-fg); }
.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
@media (min-width: 640px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }
.footer-copyright, .footer-credit { font-size: 0.75rem; color: var(--color-muted-fg); }
.footer-credit { transition: color 0.2s; }
.footer-credit:hover { color: var(--color-fg); }

/* ---- Pages (inner pages) ---- */
.site-main {
  padding-top: calc(var(--header-height) + 1rem);
  min-height: 60vh;
}
.page-content { padding-top: 2rem; padding-bottom: 4rem; }
.page-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  margin-bottom: 2rem;
}
.entry-content { max-width: 100%; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-muted-fg);
  margin-bottom: 2rem;
  transition: color 0.2s;
}
.back-link:hover { color: var(--color-fg); }

/* ---- Contact Page ---- */
.contact-page { padding-top: 1rem; padding-bottom: 4rem; }
.contact-header { text-align: center; margin-bottom: 3rem; }
.contact-page-heading {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin-bottom: 1rem;
}
.contact-page-subtext { color: var(--color-muted-fg); }
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  max-width: 56rem;
  margin: 0 auto;
}
@media (min-width: 1024px) { .contact-layout { grid-template-columns: 1fr 2fr; } }
.contact-sidebar-card {
  background-color: var(--color-secondary);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.contact-sidebar-heading {
  font-family: var(--font-display);
  font-size: 1.125rem;
  margin-bottom: 1rem;
}
.contact-sidebar-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-sidebar-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--color-fg);
}
.contact-sidebar-list svg { color: var(--color-primary); flex-shrink: 0; }
.contact-link { transition: color 0.2s; word-break: break-all; }
.contact-link:hover { color: var(--color-primary); }

/* Contact form */
.contact-form { display: flex; flex-direction: column; gap: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px) { .form-row-2 { grid-template-columns: 1fr 1fr; } }
.form-field { display: flex; flex-direction: column; gap: 0.5rem; }
.form-label { font-size: 0.875rem; font-weight: 500; }
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  color: var(--color-fg);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input::placeholder { color: var(--color-muted-fg); }
.form-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary);
}
.form-textarea { resize: none; }
.form-select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236E635A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.75rem center; padding-right: 2.5rem; }
.contact-submit-btn { align-self: flex-start; padding: 0 2rem; }
.form-error {
  padding: 0.75rem 1rem;
  background-color: #FEE2E2;
  border: 1px solid #FCA5A5;
  border-radius: var(--radius);
  font-size: 0.875rem;
  color: #B91C1C;
}
.contact-success {
  text-align: center;
  padding: 3rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.contact-success-icon {
  width: 4rem; height: 4rem;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: var(--color-primary-fg);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- WooCommerce: Cart Drawer ---- */
#theme-cart-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(26,22,20,0.2);
  z-index: 149;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
body.cart-open #theme-cart-overlay {
  opacity: 1;
  pointer-events: auto;
}

#theme-cart-drawer {
  position: fixed;
  top: 0; right: 0;
  height: 100%;
  width: 100%;
  max-width: 28rem;
  background-color: var(--color-bg);
  z-index: 150;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-elevated);
  transform: translateX(100%);
  transition: transform 0.3s var(--transition);
}
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);
}
.cart-drawer-title { font-size: 1.125rem; }
.cart-drawer-close { padding: 0.25rem; transition: opacity 0.2s; }
.cart-drawer-close:hover { opacity: 0.6; }

.cart-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem;
  text-align: center;
}
.cart-empty svg { color: var(--color-muted-fg); }
.cart-empty p { color: var(--color-muted-fg); }

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

.cart-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.cart-subtotal-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
}
.cart-subtotal-label { color: var(--color-muted-fg); }
.cart-subtotal-value { font-weight: 500; }
.cart-shipping-note { font-size: 0.75rem; color: var(--color-muted-fg); }
.cart-checkout-btn { width: 100%; }

/* ---- 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-primary) !important;
  color: var(--color-primary-fg) !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-primary-fg) !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;
}

/* Card compact button override */
.theme-product-card .add_to_cart_button.ajax_add_to_cart,
.theme-card-add-btn {
  min-height: unset !important;
  padding: 0 !important;
  border-radius: 50% !important;
  width: 2.5rem !important;
  height: 2.5rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

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

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

/* WC notices on shop/archive pages */
.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-size: 0.875rem;
}
.woocommerce-message { background-color: #D1FAE5; border: 1px solid #6EE7B7; color: #065F46; }
.woocommerce-error { background-color: #FEE2E2; border: 1px solid #FCA5A5; color: #B91C1C; }
.woocommerce-info { background-color: #DBEAFE; border: 1px solid #93C5FD; color: #1D4ED8; }

/* ---- WooCommerce: Single Product ---- */
.single-product .site-main { padding-bottom: 4rem; }
.product-back-link-wrap { padding: 1.5rem 0; }

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

.theme-product-main-img-wrap {
  background-color: var(--color-secondary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
}
.theme-product-main-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.theme-product-thumbnails {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  max-width: 100%;
  margin-top: 0.75rem;
}
.theme-product-thumb-btn {
  width: 4rem; height: 4rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid transparent;
  flex-shrink: 0;
  transition: border-color 0.2s;
}
.theme-product-thumb-btn img { width: 100%; height: 100%; object-fit: cover; display: block; }
.theme-product-thumb-btn.is-active { border-color: var(--color-fg); }
.theme-product-thumb-btn:hover { border-color: var(--color-muted-fg); }

.theme-product-info { padding-top: 0; }
@media (min-width: 1024px) { .theme-product-info { padding-top: 2.5rem; } }

.product-categories {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted-fg);
  margin-bottom: 0.5rem;
}
.product-categories a { color: inherit; transition: color 0.2s; }
.product-categories a:hover { color: var(--color-fg); }
.product-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: 1rem;
}
.product-price {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}
.product-sold-out-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: var(--color-secondary);
  color: var(--color-muted-fg);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}
.product-description {
  color: var(--color-muted-fg);
  line-height: 1.75;
  margin-bottom: 2rem;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Variable product attr 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; font-size: 0.875rem; font-weight: 500; }
.single-product .variations tbody td.value { padding-top: 0; margin-bottom: 1rem; }
.single-product .variations select {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background-color: var(--color-bg);
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-fg);
  appearance: none;
  cursor: pointer;
}

/* Quantity + Add to Cart area */
.theme-add-to-cart-area {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
  align-items: center;
}
.theme-quantity-wrapper {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.theme-qty-minus,
.theme-qty-plus {
  padding: 0.75rem 1rem;
  background: none;
  border: none;
  color: var(--color-fg);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  transition: background-color 0.2s;
}
.theme-qty-minus:hover,
.theme-qty-plus:hover { background-color: var(--color-secondary); }
.theme-qty-input {
  width: 3rem;
  border: none;
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.875rem;
  background: none;
  color: var(--color-fg);
  -moz-appearance: textfield;
  padding: 0.75rem 0;
}
.theme-qty-input::-webkit-outer-spin-button,
.theme-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.theme-btn-primary {
  background-color: var(--color-primary);
  color: var(--color-primary-fg);
  border: none;
  border-radius: var(--btn-radius);
  min-height: var(--btn-height);
  padding: var(--btn-padding);
  font-family: var(--font-body);
  font-size: var(--btn-font-size);
  font-weight: var(--btn-font-weight);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
  flex: 1 1 auto;
  min-width: 10rem;
}
.theme-btn-primary:hover { opacity: 0.9; }
.theme-btn-primary:disabled,
.theme-btn-primary.disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }

/* Product form */
.theme-product-form { margin-bottom: 1rem; }
.single_variation_wrap { margin-top: 1rem; }
.single_variation_wrap .theme-add-to-cart-area,
.single_variation_wrap .theme-quantity-wrapper { margin-bottom: 0; }
.woocommerce-variation-price { margin-bottom: 1rem; }

/* Details section */
.product-details-section {
  border-top: 1px solid var(--color-border);
  padding-top: 2rem;
  margin-top: 1rem;
}
.product-details-heading {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
}
.product-details-content { color: var(--color-muted-fg); font-size: 0.875rem; line-height: 1.75; }
.product-details-content ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.product-details-content ul li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.product-details-content ul li::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background-color: var(--color-muted-fg);
  flex-shrink: 0;
  margin-top: 0.5rem;
}
.product-details-content p { overflow-wrap: break-word; word-break: break-word; }

/* Related Products */
.related-products {
  padding-top: 5rem;
  border-top: 1px solid var(--color-border);
}
.related-products-heading {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  margin-bottom: 2.5rem;
}

/* 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: 10rem; }
.single-product .woocommerce-product-details__short-description,
.single-product .woocommerce-variation-description,
.single-product .posted_in { overflow-wrap: break-word; word-break: break-word; }

/* ---- WooCommerce: Archive / Shop Page ---- */
.shop-archive-section { padding-top: 5rem; padding-bottom: 5rem; }
.shop-archive-header { margin-bottom: 3rem; }
.shop-archive-header .woocommerce-products-header__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin-top: 0.5rem;
}

/* Pagination */
.woocommerce-pagination ul { list-style: none; display: flex; gap: 0.5rem; justify-content: center; padding-top: 2rem; }
.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem; height: 2.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  font-size: 0.875rem;
  transition: background-color 0.2s;
}
.woocommerce-pagination ul li .current,
.woocommerce-pagination ul li a:hover {
  background-color: var(--color-primary);
  color: var(--color-primary-fg);
  border-color: var(--color-primary);
}

/* ---- Checkout ---- */
body.woocommerce-checkout .site-main {
  padding-top: calc(var(--header-height) + 2rem);
  padding-bottom: 4rem;
}
body.woocommerce-checkout .page-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin-bottom: 2rem;
}
body.woocommerce-checkout .entry-content { max-width: 100%; }
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-secondary);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-select select,
body.woocommerce-checkout .wc-block-components-textarea textarea {
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius) !important;
  background-color: var(--color-bg) !important;
  color: var(--color-fg) !important;
  font-family: var(--font-body) !important;
  font-size: 0.875rem !important;
  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-primary) !important;
  box-shadow: 0 0 0 1px var(--color-primary) !important;
  outline: none !important;
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
  background-color: var(--color-primary) !important;
  color: var(--color-primary-fg) !important;
  border: none !important;
  border-radius: var(--btn-radius) !important;
  font-family: var(--font-body) !important;
  font-size: var(--btn-font-size) !important;
  font-weight: var(--btn-font-weight) !important;
  min-height: var(--btn-height) !important;
  width: 100% !important;
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover {
  opacity: 0.9 !important;
}

/* ---- Thank You Page ---- */
.thankyou-wrap { padding: 1rem 0 3rem; }
body.theme-thankyou-page .woocommerce-order { max-width: 48rem; }
body.theme-thankyou-page .woocommerce-order h2,
body.theme-thankyou-page .woocommerce-order-details__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  padding: 0 0 1rem 0;
}
body.theme-thankyou-page .woocommerce-order-overview {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  background-color: var(--color-secondary);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
}
body.theme-thankyou-page .woocommerce-order-overview li {
  font-size: 0.875rem;
  color: var(--color-muted-fg);
}
body.theme-thankyou-page .woocommerce-order-overview strong { color: var(--color-fg); }
body.theme-thankyou-page .woocommerce-customer-details { display: flex; flex-direction: column; gap: 1.5rem; }
body.theme-thankyou-page .woocommerce-customer-details address { max-width: 30rem; overflow-wrap: break-word; font-style: normal; }
body.theme-thankyou-page .woocommerce-order-details table {
  width: 100%; table-layout: fixed;
  border-collapse: collapse; margin-bottom: 1.5rem;
}
body.theme-thankyou-page .woocommerce-order-details table th,
body.theme-thankyou-page .woocommerce-order-details table td {
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.875rem;
}
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; }

/* ---- Shop Archive Section Responsive ---- */
.shop-archive-section .theme-product-grid { margin-top: 2rem; }

/* ---- JS Fade in ---- */
.js-fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js-fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- WooCommerce default form elements ---- */
.woocommerce-invalid input { border-color: #EF4444 !important; }
.woocommerce-checkout .form-row .input-text,
.woocommerce-checkout .form-row select {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.875rem;
}

/* ---- hidden attr select for variable products ---- */
.theme-attr-select-hidden { display: none !important; }
