/*
Theme Name: Seed & Stone
Theme URI: http://seedstones.local
Author: Seed & Stone
Description: 1:1 WordPress conversion of the _design-source Seed & Stone botanical apothecary design. All design CSS/JS/images/fonts are reused as-is from the design fragments in /design.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: Proprietary
Text Domain: seedstone
*/

/* Design styles live inline in the design fragments (Tailwind CDN + inline <style>),
   reused as-is. This file carries the theme header only.
   WooCommerce cart/checkout restyling is in assets/woo.css (CSS-only). */

/* Marquee keyframes — identical to the design/live-site rules, provided here so
   the shared header's ticker animates on EVERY page (fragments other than
   index.html do not define it). */
@keyframes marquee {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
  will-change: transform;
}
.marquee-container:hover .marquee-track {
  animation-play-state: paused;
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
    overflow-x: auto;
  }
}

/* Mobile navigation and small-screen corrections. Desktop rules start at 1024px. */
.seedstone-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  padding: 0;
  border: 0;
  border-radius: 9999px;
  background: transparent;
  color: #1e1b18;
  cursor: pointer;
}
.seedstone-menu-toggle:hover,
.seedstone-menu-toggle:focus-visible {
  background: #f4ece7;
  color: #894d0f;
}
.seedstone-menu-toggle:focus-visible,
.seedstone-mobile-link:focus-visible {
  outline: 2px solid #894d0f;
  outline-offset: 2px;
}
.seedstone-menu-icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 22px;
  height: 18px;
}
.seedstone-menu-icon span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}
.seedstone-menu-toggle[aria-expanded="true"] .seedstone-menu-icon span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.seedstone-menu-toggle[aria-expanded="true"] .seedstone-menu-icon span:nth-child(2) {
  opacity: 0;
}
.seedstone-menu-toggle[aria-expanded="true"] .seedstone-menu-icon span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.seedstone-mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: calc(100dvh - 109px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff8f4;
  border-bottom: 1px solid #d7c3b4;
  box-shadow: 0 12px 24px rgba(35, 27, 21, 0.12);
}
.seedstone-mobile-menu[hidden] {
  display: none !important;
}
.seedstone-mobile-nav {
  display: flex;
  flex-direction: column;
  max-width: 1360px;
  margin: 0 auto;
  padding: 8px 16px 16px;
}
.seedstone-mobile-link {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 8px;
  border-bottom: 1px solid rgba(215, 195, 180, 0.55);
  color: #524439;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
}
.seedstone-mobile-link:last-child {
  border-bottom: 0;
}
.seedstone-mobile-link:hover,
.seedstone-mobile-link.is-active {
  color: #894d0f;
}
.seedstone-mobile-link.is-active {
  font-weight: 700;
}
.seedstone-page-content {
  max-width: 56rem;
  margin: 0 auto;
  color: #524439;
  font-size: 15px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.seedstone-page-content h1 {
  margin: 0 0 1rem;
  color: #1e1b18;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.15;
}
.seedstone-page-content h2 {
  margin: 2.25rem 0 0.75rem;
  color: #1e1b18;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.5rem;
  line-height: 1.3;
}
.seedstone-page-content h3 {
  margin: 1.5rem 0 0.5rem;
  color: #1e1b18;
  font-size: 1rem;
  font-weight: 700;
}
.seedstone-page-content p,
.seedstone-page-content ul,
.seedstone-page-content ol {
  margin: 0 0 1rem;
}
.seedstone-page-content ul,
.seedstone-page-content ol {
  padding-left: 1.5rem;
}
.seedstone-page-content li {
  margin-bottom: 0.4rem;
}
.seedstone-page-content a {
  color: #894d0f;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.seedstone-page-content .seedstone-terms-updated {
  margin-bottom: 2rem;
  color: #655a52;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 1023px) {
  .seedstone-menu-toggle {
    display: inline-flex;
  }
  header .seedstone-header-bar {
    gap: 0.5rem;
    padding-left: 12px;
    padding-right: 12px;
  }
  header .seedstone-header-brand {
    min-width: 0;
    flex-shrink: 1;
    overflow: hidden;
    gap: 8px;
  }
  header .seedstone-header-logo {
    height: 28px;
  }
  header .seedstone-header-title {
    font-size: 16px;
    letter-spacing: 0.12em;
    white-space: nowrap;
  }
  header .seedstone-header-subtitle {
    font-size: 8px;
    letter-spacing: 0.2em;
  }
  header .seedstone-header-actions {
    gap: 2px;
  }
  header .seedstone-header-cart {
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    gap: 2px;
    padding: 4px;
  }
}

@media (max-width: 639px) {
  html,
  body {
    overflow-x: clip;
  }
  header .seedstone-header-title {
    font-size: 14px;
    letter-spacing: 0.1em;
  }
  header .seedstone-header-subtitle {
    font-size: 7px;
    letter-spacing: 0.16em;
  }
  header .seedstone-header-brand {
    gap: 6px;
  }
  header .seedstone-header-logo {
    height: 26px;
  }
  header .seedstone-header-cart {
    gap: 0;
  }
  header .seedstone-header-cart #header-bag-count {
    padding-left: 4px;
    padding-right: 4px;
    font-size: 10px;
  }
  .seedstone-product-drawer-link {
    display: none !important;
  }
  .seedstone-catalog-toolbar {
    flex-wrap: wrap;
    gap: 12px;
  }
  .seedstone-catalog-toolbar > div:last-child {
    width: 100%;
    min-width: 0;
    justify-content: space-between;
    gap: 8px;
  }
  #sort-select {
    width: auto;
    max-width: 72%;
    min-width: 0;
    font-size: 10px;
  }
}

@media (max-width: 359px) {
  header .seedstone-header-title {
    font-size: 13px;
    letter-spacing: 0.08em;
  }
  header .seedstone-header-subtitle {
    font-size: 6.5px;
  }
}
