/*
Theme Name: AureHerb
Theme URI: https://www.aureherb.com
Author: AureHerb
Description: WooCommerce theme matching the AureHerb Next.js shop — herb sand palette, Fraunces display type, hero oiling video, COD-ready.
Version: 1.0.10
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aureherb
Tags: e-commerce, woocommerce, custom-menu
*/

:root {
  --herb-ink: #1c2d22;
  --herb-leaf: #2f4a38;
  --herb-moss: #6b8f71;
  --herb-gold: #c4a35a;
  --herb-sand: #f7f3eb;
  --herb-clay: #d7d0c3;
  --herb-mist: #5c675f;
  --herb-footer: #f3eee4;
  --whatsapp: #25d366;
  --font-sans: "Source Sans 3", system-ui, sans-serif;
  --font-display: "Fraunces", "Times New Roman", serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--herb-sand);
  color: var(--herb-ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
}

img,
video,
canvas {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--herb-leaf);
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.content-container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 4rem;
  border-bottom: 1px solid var(--herb-clay);
  background: rgba(247, 243, 235, 0.95);
  backdrop-filter: blur(8px);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
  color: var(--herb-mist);
  font-size: 0.8rem;
}

.nav-start,
.nav-end {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-end {
  justify-content: flex-end;
  gap: 1.5rem;
}

.nav-logo img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
}

.nav-wordmark {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--herb-ink);
}

.nav-wordmark:hover {
  color: var(--herb-leaf);
}

.menu-toggle {
  display: flex;
  align-items: center;
  background: none;
  border: 0;
  padding: 0;
  color: var(--herb-mist);
  cursor: pointer;
}

.menu-toggle:hover {
  color: var(--herb-ink);
}

.nav-links {
  display: none;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a:hover {
  color: var(--herb-ink);
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

.site-drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
}

.site-drawer.is-open {
  pointer-events: auto;
}

.site-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 45, 34, 0.3);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.site-drawer.is-open .site-drawer-backdrop {
  opacity: 1;
}

.site-drawer-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: min(20rem, 90vw);
  height: 100%;
  background: var(--herb-sand);
  padding: 1.5rem;
  transform: translateX(-100%);
  transition: transform 0.25s ease;
}

.site-drawer.is-open .site-drawer-panel {
  transform: translateX(0);
}

.site-drawer-panel ul {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
}

.site-drawer-panel li {
  margin-bottom: 1rem;
}

.site-drawer-close {
  background: none;
  border: 0;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--herb-ink);
}

.hero {
  position: relative;
  width: 100%;
  background: var(--herb-sand);
}

.hero-intro {
  padding: 1.5rem 0 0.5rem;
  max-width: 40rem;
}

.hero-intro h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0 0 0.75rem;
}

.hero-intro p {
  margin: 0;
  color: var(--herb-mist);
  font-size: 1.05rem;
}

.hero-link {
  position: relative;
  display: block;
  overflow: hidden;
  box-shadow: 0 12px 28px -10px rgba(0, 0, 0, 0.45);
}

.hero-link:focus-visible {
  outline: 2px solid var(--herb-gold);
  outline-offset: -2px;
}

.hero-poster {
  display: block;
  width: 100%;
  height: auto;
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.hero-video-wrap.is-ready {
  opacity: 1;
}

.hero-video-wrap video {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.hero-video-wrap canvas {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (prefers-reduced-motion: reduce) {
  .hero-video-wrap {
    display: none;
  }
}

.section {
  padding: 4rem 0;
}

.section.content-container {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 400;
  text-align: center;
  color: var(--herb-ink);
  margin: 0;
}

.section-lead {
  text-align: center;
  color: var(--herb-mist);
  max-width: 40rem;
  margin: 0.75rem auto 0;
}

.about {
  border-top: 1px solid var(--herb-clay);
}

.about-inner {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
}

.about p {
  color: var(--herb-mist);
  line-height: 1.75;
}

.testimonial-card {
  max-width: 40rem;
  margin: 2rem auto 0;
  text-align: center;
  border-top: 1px solid var(--herb-clay);
  padding-top: 1.5rem;
}

.testimonial-photo {
  width: 96px;
  height: 96px;
  margin: 0 auto 1.25rem;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--herb-clay);
  box-shadow: 0 0 0 2px var(--herb-sand);
}

.testimonial-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-quote {
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.6;
  color: var(--herb-ink);
  margin: 1rem 0 0;
}

.testimonial-name {
  margin: 1rem 0 0;
  font-size: 0.875rem;
  color: var(--herb-mist);
}

.testimonial-stars {
  letter-spacing: 0.2em;
  color: #6b7c54;
  font-size: 0.875rem;
}

.testimonial-stars .empty {
  color: var(--herb-clay);
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.testimonial-dots button {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  background: var(--herb-clay);
  cursor: pointer;
}

.testimonial-dots button.is-active {
  background: var(--herb-ink);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
}

.product-card {
  background: #fff;
  border: 1px solid var(--herb-clay);
  overflow: hidden;
}

.product-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.product-card-body {
  padding: 1rem;
}

.product-card h2,
.product-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
}

.price {
  color: var(--herb-leaf);
  font-weight: 600;
}

.button,
.wp-block-button__link,
button.button,
input.button,
a.button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce #respond input#submit.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
  display: inline-block;
  background: var(--herb-ink) !important;
  color: #fff !important;
  border: 0;
  border-radius: 999px;
  padding: 0.65rem 1.35rem;
  cursor: pointer;
  font-family: var(--font-sans);
}

.button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover {
  background: var(--herb-leaf) !important;
}

.site-footer {
  border-top: 1px solid var(--herb-clay);
  background: var(--herb-footer);
  padding: 2rem 0 2.5rem;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem 1.5rem;
  padding: 2rem 0 2.5rem;
  align-items: start;
}

@media (max-width: 700px) {
  .footer-cols {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem 1.25rem;
  }
}

.footer-cols h2 {
  font-size: 0.8rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
}

.footer-cols ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-cols li {
  margin: 0.4rem 0;
  color: var(--herb-mist);
  font-size: 0.85rem;
}

.socials {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.socials a {
  display: inline-flex;
  color: var(--herb-mist);
}

.socials a:hover,
.socials a:focus-visible {
  color: var(--herb-ink);
}

.socials svg {
  display: block;
}

.copyright {
  text-align: center;
  color: #7a847c;
  font-size: 0.85rem;
}

.whatsapp-fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1000;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 999px;
  background: var(--whatsapp);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35), 0 2px 8px rgba(37, 211, 102, 0.45);
}

.whatsapp-fab:hover {
  color: #fff;
  transform: scale(1.05);
  background: #20bd5a;
}

.whatsapp-fab svg {
  width: 1.75rem;
  height: 1.75rem;
}

.legal {
  max-width: 44rem;
  margin: 0 auto;
  padding: 3rem 0 4rem;
}

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

.legal h2 {
  font-size: 1.15rem;
  margin-top: 2rem;
}

.page-title {
  font-family: var(--font-display);
  font-size: 2rem;
  margin: 2rem 0 1.5rem;
}

.woocommerce-store-notice,
.woocommerce-info,
.woocommerce-message,
.woocommerce-error {
  border-top-color: var(--herb-gold) !important;
}

.woocommerce div.product .product_title {
  font-family: var(--font-display);
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: var(--herb-leaf) !important;
}

.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
  display: none !important;
}

.woocommerce ul.products li.product {
  width: 100% !important;
  max-width: none !important;
  float: none !important;
  margin: 0 !important;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid var(--herb-clay);
  padding: 1rem !important;
}

.woocommerce ul.products li.product a img {
  width: 100%;
  margin: 0 0 0.75rem;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h2,
.woocommerce ul.products li.product h3 {
  padding: 0;
  margin: 0 0 0.5rem;
}

.woocommerce ul.products li.product .price {
  margin: 0 0 0.75rem;
}

.woocommerce ul.products li.product .button {
  margin-top: 0;
}

.woocommerce ul.products li.product .onsale {
  top: 1.15rem;
  right: 1.15rem;
}

.woocommerce-page .content-container {
  padding: 1.5rem 1.5rem 3rem;
}

.woocommerce form .form-row {
  margin: 0 0 1rem;
  padding: 0;
}

.woocommerce form .form-row-first,
.woocommerce form .form-row-last {
  width: calc(50% - 0.5rem);
}

.woocommerce form .form-row-first {
  float: left;
  clear: both;
}

.woocommerce form .form-row-last {
  float: right;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--herb-clay);
  background: #fff;
}

.woocommerce-checkout .col2-set .col-1,
.woocommerce-checkout .col2-set .col-2 {
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .woocommerce form .form-row-first,
  .woocommerce form .form-row-last {
    width: 100%;
    float: none;
  }
}

.woocommerce-checkout .wc-block-components-address-form {
  row-gap: 1rem !important;
  column-gap: 1rem !important;
}

.woocommerce-checkout .wc-block-components-text-input,
.woocommerce-checkout .wc-block-components-combobox,
.woocommerce-checkout .wc-block-components-country-input,
.woocommerce-checkout .wc-block-components-state-input {
  margin-bottom: 0.25rem;
}

.woocommerce div.product form.cart {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.75rem;
}

.woocommerce div.product form.cart .quantity {
  display: flex;
  align-items: stretch;
  margin: 0;
}

.woocommerce div.product form.cart input.qty {
  box-sizing: border-box;
  height: 100%;
  width: 4rem;
  margin: 0;
  padding: 0.65rem 0.5rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.3;
  text-align: center;
  color: var(--herb-ink);
  background: #fff;
  border: 1px solid var(--herb-clay);
  border-radius: 4px;
}

.cod-note {
  flex-basis: 100%;
  width: 100%;
  margin: 0.25rem 0 1rem;
  color: var(--herb-mist);
  font-size: 0.9rem;
}

.aureherb-google-login {
  margin: 0 0 0.25rem;
}

.aureherb-google-btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  box-sizing: border-box;
  background: #fff !important;
  color: var(--herb-ink) !important;
  border: 1px solid var(--herb-clay) !important;
  border-radius: 999px;
  padding: 0.7rem 1.35rem;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.3;
  text-decoration: none !important;
}

.aureherb-google-btn:hover,
.aureherb-google-btn:focus {
  background: #fff !important;
  color: var(--herb-ink) !important;
  border-color: var(--herb-ink) !important;
}

.aureherb-google-btn svg {
  display: block;
  flex-shrink: 0;
}

.aureherb-google-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0 1.25rem;
  color: var(--herb-mist);
  font-size: 0.85rem;
}

.aureherb-google-divider::before,
.aureherb-google-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--herb-clay);
}

.aureherb-google-checkout {
  margin: 0 0 1.5rem;
  max-width: 28rem;
}

.track-page {
  max-width: 56rem;
  margin: 0 auto;
  padding: 3rem 0 4rem;
}

.track-intro {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 2rem;
}

.track-intro h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0 0 0.75rem;
}

.track-intro p {
  margin: 0;
  color: var(--herb-mist);
}

.track-form,
.track-result {
  border: 1px solid var(--herb-clay);
  background: #fff;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 8px 24px -16px rgba(0, 0, 0, 0.2);
}

.track-form {
  max-width: 28rem;
  margin: 0 auto;
}

.track-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.track-form input[type="text"] {
  width: 100%;
  border: 1px solid var(--herb-clay);
  border-radius: 0.5rem;
  padding: 0.7rem 0.85rem;
  font-family: inherit;
  font-size: 1rem;
}

.track-form-actions {
  margin-top: 1.25rem;
  text-align: center;
}

.track-error {
  margin: 0.85rem 0 0;
  color: #9b2c2c;
  font-size: 0.95rem;
}

.track-result {
  margin-top: 2rem;
}

.track-meta {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .track-meta,
  .track-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .track-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.track-label {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--herb-mist);
}

.track-value {
  margin: 0.25rem 0 0;
  font-weight: 600;
}

.track-status {
  color: var(--herb-leaf);
}

.track-result h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 1.75rem 0 0.75rem;
}

.track-items,
.track-notes {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid #eee7dc;
  border-radius: 0.75rem;
}

.track-items li,
.track-notes li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #eee7dc;
}

.track-items li:last-child,
.track-notes li:last-child {
  border-bottom: 0;
}

.track-notes li {
  display: block;
  color: var(--herb-mist);
}

.track-grid {
  display: grid;
  gap: 2rem;
  margin-top: 0.5rem;
}

.track-grid .track-label {
  margin-top: 0.85rem;
}

.track-row {
  display: flex;
  justify-content: space-between;
  margin: 0.5rem 0;
}

.track-total {
  border-top: 1px dashed var(--herb-clay);
  padding-top: 0.75rem;
  font-weight: 600;
}

.aureherb-track-hint {
  margin: 1rem 0 0;
}
