:root {
  --green: #1a3a2a;
  --green-mid: #2c5c40;
  --green-light: #3d7a57;
  --gold: #c9a84c;
  --gold-light: #e8c97a;
  --cream: #f5f0e8;
  --cream-dark: #ede6d6;
  --white: #ffffff;
  --text: #1a2318;
  --muted: #6b7c6b;
  --radius: 12px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--text);
  overflow-x: hidden;
  margin: 0;
}

body.is-search-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

ul {
  margin: 0;
  padding: 0;
}

p {
  margin: 0;
}

/* ─── UNIFIED ACTION LOADER ─────────────────────────────────────────── */
@keyframes hyg-spin {
  to {
    transform: rotate(360deg);
  }
}

button.is-loading,
.button.is-loading,
a.is-loading,
.add_to_cart_button.loading {
  position: relative;
  pointer-events: none;
  opacity: 0.86;
}

button.is-loading::after,
.button.is-loading::after,
a.is-loading::after,
.add_to_cart_button.loading::after {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: currentColor;
  display: inline-block;
  margin-left: 8px;
  animation: hyg-spin 0.65s linear infinite;
  vertical-align: middle;
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--cream);
}

::-webkit-scrollbar-thumb {
  background: var(--green-mid);
  border-radius: 99px;
}

/* ─── TOP BAR ────────────────────────────────────────────────────────── */
.top-bar {
  background: var(--green);
  color: var(--gold-light);
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-align: center;
  padding: 8px 20px;
  font-weight: 500;
}

.top-bar span {
  opacity: 0.5;
  margin: 0 10px;
}

/* ─── HEADER ─────────────────────────────────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(245, 240, 232, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(26, 58, 42, 0.1);
  transition: box-shadow var(--transition);
}

header.scrolled {
  box-shadow: 0 4px 32px rgba(26, 58, 42, 0.12);
}

.header-top {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 28px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}

.logo-image-wrap {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-image {
  display: block;
  height: 56px;
  width: auto;
  max-width: 260px;
  max-height: 56px;
  object-fit: contain;
}

header .logo.has-custom-logo .logo-image {
  width: auto !important;
  height: 56px !important;
  max-height: 56px !important;
  max-width: 260px !important;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: var(--green);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.logo-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--green);
  letter-spacing: 0.02em;
}

.logo-tagline {
  font-size: 0.62rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 1px;
}

.logo.has-custom-logo {
  gap: 0;
}

.header-search {
  position: relative;
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
}

.header-search input {
  width: 100%;
  padding: 11px 44px 11px 18px;
  border-radius: 10px;
  border: 1.5px solid rgba(26, 58, 42, 0.18);
  background: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  color: var(--text);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.header-search input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(26, 58, 42, 0.08);
}

.header-search input::placeholder {
  color: var(--muted);
}

.header-search-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1;
  transition: color var(--transition);
}

.header-search-btn:hover {
  color: var(--green);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 7px 10px;
  border-radius: 10px;
  background: transparent;
  color: var(--green);
  transition: background var(--transition);
  text-decoration: none;
  position: relative;
}

.action-btn:hover {
  background: var(--cream-dark);
}

.action-btn .ab-icon {
  font-size: 1.2rem;
  line-height: 1;
}

.action-btn .ab-label {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--green);
  white-space: nowrap;
}

.cart-badge {
  position: absolute;
  top: 4px;
  right: 5px;
  min-width: 18px;
  height: 18px;
  background: var(--gold);
  color: var(--green);
  border-radius: 99px;
  font-size: 0.62rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--cream);
}

.action-divider {
  width: 1px;
  height: 32px;
  background: rgba(26, 58, 42, 0.12);
  margin: 0 4px;
}

.btn-quote-header {
  background: var(--green);
  color: var(--cream);
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
  transition: background var(--transition), transform var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-quote-header:hover {
  background: var(--green-mid);
  transform: translateY(-1px);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: 8px;
  transition: background var(--transition);
  margin-left: 4px;
}

.hamburger:hover {
  background: var(--cream-dark);
}

.hamburger span {
  width: 22px;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
  transition: all 0.3s;
  display: block;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── ROW 2: Navigation bar ── */
.header-nav {
  border-top: 1px solid rgba(26, 58, 42, 0.07);
  background: var(--green);
}

.header-nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2px;
  align-items: center;
}

.nav-links > li {
  position: relative;
}

.nav-links > li > a {
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(245, 240, 232, 0.85);
  padding: 12px 16px;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color var(--transition), background var(--transition);
  position: relative;
}

.nav-links > li > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px 2px 0 0;
  transform: scaleX(0);
  transition: transform var(--transition);
}

.nav-links > li > a:hover {
  color: var(--cream);
}

.nav-links > li > a:hover::after {
  transform: scaleX(1);
}

.nav-links > li > a .caret {
  font-size: 0.55rem;
  opacity: 0.6;
}

.dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: var(--white);
  border: 1px solid rgba(26, 58, 42, 0.1);
  border-radius: var(--radius);
  box-shadow: 0 16px 48px rgba(26, 58, 42, 0.18);
  padding: 8px;
  min-width: 210px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  transform: translateY(8px);
  list-style: none;
  z-index: 100;
}

.nav-links > li:hover .dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.dropdown li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: 0.84rem;
  color: var(--green);
  border-radius: 8px;
  font-weight: 400;
  transition: background var(--transition);
}

.dropdown li a:hover {
  background: var(--cream);
}

.nav-promo {
  margin-left: auto;
  padding: 8px 0;
}

.nav-promo-badge {
  background: var(--gold);
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 99px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

/* ─── MOBILE MENU ────────────────────────────────────────────────────── */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--green);
  z-index: 999;
  padding: 80px 32px 40px;
  flex-direction: column;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu a {
  display: block;
  color: var(--cream);
  font-size: 1.3rem;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: color var(--transition);
}

.mobile-menu-links,
.mobile-menu-links ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mobile-menu-links > li > a {
  display: block;
  color: var(--cream);
  font-size: 1.4rem;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: color var(--transition);
}

.mobile-menu-links .sub-menu {
  margin: 2px 0 6px;
  padding-left: 18px;
}

.mobile-menu-links .sub-menu li a {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.98rem;
  font-weight: 600;
  color: rgba(245, 240, 232, 0.72);
  border-bottom-color: rgba(255, 255, 255, 0.07);
  padding: 10px 0;
  position: relative;
}

.mobile-menu-links .sub-menu li a::before {
  content: "→ ";
  color: rgba(232, 201, 122, 0.9);
}

.mobile-menu a:hover {
  color: var(--gold-light);
}

.mobile-menu .sub-link {
  font-size: 0.95rem;
  font-family: 'DM Sans', sans-serif;
  padding: 9px 0 9px 16px;
  color: rgba(245, 240, 232, 0.65);
}

.mobile-search {
  position: relative;
  margin-bottom: 24px;
}

.mobile-search input {
  width: 100%;
  padding: 12px 44px 12px 16px;
  border-radius: 10px;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: var(--cream);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  outline: none;
}

.mobile-search input::placeholder {
  color: rgba(245, 240, 232, 0.4);
}

.mobile-search-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.95rem;
  opacity: 0.5;
}

/* ─── FOOTER ─────────────────────────────────────────────────────────── */
footer {
  background: var(--green);
  color: var(--cream);
  padding: 86px 24px 0;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1.15fr 1.2fr;
  gap: 34px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo-name {
  color: var(--cream);
  font-size: 1.6rem;
}

.footer-brand .logo-image {
  height: 144px;
  width: auto;
  max-width: 520px;
  max-height: none;
  object-fit: contain;
}

.footer-brand .logo.has-custom-logo {
  display: inline-flex;
  align-items: center;
}

.footer-brand p {
  font-size: 1rem;
  color: rgba(245, 240, 232, 0.6);
  line-height: 1.8;
  margin: 16px 0 28px;
  max-width: 380px;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.action-btn-mobile-search {
  display: none;
}

.social-btn {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--cream);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.social-btn:hover {
  background: var(--gold);
  color: var(--green);
}

.footer-newsletter h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 12px;
}

.footer-col-newsletter .footer-newsletter {
  margin-top: 0;
}

.footer-newsletter-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.footer-newsletter-row input {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  border-radius: 12px;
  border: 1.5px solid rgba(245, 240, 232, 0.3);
  background: rgba(255, 255, 255, 0.12);
  color: var(--cream);
  padding: 14px 18px;
  font-size: 0.95rem;
  font-family: "DM Sans", sans-serif;
}

.footer-newsletter-row input::placeholder {
  color: rgba(245, 240, 232, 0.6);
}

.footer-newsletter-row input:focus {
  outline: none;
  border-color: var(--gold-light);
  box-shadow: 0 0 0 2px rgba(232, 201, 122, 0.22);
}

.footer-newsletter-row button {
  min-height: 48px;
  border-radius: 12px;
  padding: 14px 22px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--green);
  background: var(--gold);
  white-space: nowrap;
  transition: all var(--transition);
}

.footer-newsletter-row button:hover {
  background: var(--gold-light);
}

.footer-newsletter.is-loading .footer-newsletter-row button {
  opacity: 0.75;
  cursor: wait;
}

.footer-newsletter-feedback {
  margin: 8px 2px 0;
  min-height: 1.1em;
  font-size: 0.8rem;
  color: rgba(245, 240, 232, 0.8);
}

.footer-newsletter-feedback.is-success {
  color: #b6f0b8;
}

.footer-newsletter-feedback.is-error {
  color: #ffd2d2;
}

.footer-col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 24px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-col ul a {
  font-size: 1rem;
  color: rgba(245, 240, 232, 0.65);
  transition: color var(--transition);
}

.footer-col ul a:hover {
  color: var(--cream);
}

.footer-contact-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.footer-contact-item .fci-icon {
  width: 19px;
  height: 19px;
  margin-top: 4px;
  opacity: 0.6;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-contact-item .fci-icon-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.footer-contact-item .fci-icon-emoji {
  font-size: 1rem;
  line-height: 1;
}

.footer-contact-item p,
.footer-contact-item a {
  font-size: 1rem;
  color: rgba(245, 240, 232, 0.7);
  line-height: 1.65;
}

.footer-contact-item a:hover {
  color: var(--cream);
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 0.9rem;
  color: rgba(245, 240, 232, 0.4);
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-bottom-links a {
  font-size: 0.9rem;
  color: rgba(245, 240, 232, 0.4);
  transition: color var(--transition);
}

.footer-bottom-links a:hover {
  color: var(--gold-light);
}

/* Hide WooCommerce auto-inserted "View cart" links in cards */
.product-card .added_to_cart.wc-forward,
.products-grid .added_to_cart.wc-forward,
.related-grid .added_to_cart.wc-forward {
  display: none !important;
}

/* ─── CART DRAWER ────────────────────────────────────────────────────── */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 58, 42, 0.5);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  backdrop-filter: blur(4px);
}

.cart-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.cart-drawer {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: 400px;
  max-width: 100%;
  background: var(--white);
  z-index: 2001;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -12px 0 40px rgba(26, 58, 42, 0.18);
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-header {
  padding: 24px;
  border-bottom: 1px solid rgba(26, 58, 42, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--green);
}

.cart-close {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--cream);
  color: var(--green);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.cart-close:hover {
  background: var(--cream-dark);
}

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.cart-empty {
  text-align: center;
  padding: 60px 0;
  color: var(--muted);
}

.cart-empty .ce-icon {
  font-size: 3rem;
  margin-bottom: 12px;
  opacity: 0.4;
}

.cart-empty p {
  font-size: 0.9rem;
  line-height: 1.6;
}

.cart-item {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(26, 58, 42, 0.06);
}

.ci-img {
  width: 70px;
  height: 70px;
  border-radius: 12px;
  background: var(--cream);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.ci-info {
  flex: 1;
}

.ci-name {
  font-size: 0.87rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.4;
}

.ci-price {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--green);
}

.ci-qty {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.ci-qty button {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: var(--cream);
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  transition: background var(--transition);
}

.ci-qty button:hover {
  background: var(--cream-dark);
}

.ci-qty span {
  font-size: 0.85rem;
  font-weight: 600;
  min-width: 20px;
  text-align: center;
}

.cart-footer {
  padding: 20px 24px;
  border-top: 1px solid rgba(26, 58, 42, 0.08);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
}

.cart-total span:first-child {
  font-size: 0.9rem;
  color: var(--muted);
}

.cart-total span:last-child {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--green);
}

.btn-checkout {
  display: block;
  width: 100%;
  background: var(--green);
  color: var(--cream);
  padding: 15px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
  transition: all var(--transition);
}

.btn-checkout:hover {
  background: var(--green-mid);
}

/* ─── TOAST ──────────────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--green);
  color: var(--cream);
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 9999;
  box-shadow: 0 8px 32px rgba(26, 58, 42, 0.35);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

.toast .t-icon {
  color: var(--gold);
}

/* ─── RESPONSIVE ─────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 960px) {
  .action-btn-mobile-search {
    display: none !important;
  }
  .header-nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-menu {
    display: flex;
    top: 78px;
    bottom: auto;
    height: calc(100dvh - 78px);
    padding: 18px 24px 32px;
  }

  .header-top {
    position: relative;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    row-gap: 10px;
    column-gap: 10px;
    align-items: center;
  }

  .logo {
    grid-column: 1 / 2;
    min-width: 0;
    padding-left: 36px;
  }

  .header-actions {
    grid-column: 2 / 3;
    justify-self: end;
    gap: 2px;
  }

  .hamburger {
    position: absolute;
    left: 8px;
    top: 8px;
    order: 0;
    margin: 0;
    z-index: 2;
  }

  .header-search {
    display: block;
    grid-column: 1 / -1;
    grid-row: 2;
    max-width: none;
    width: 100%;
    margin: 0;
  }

  .header-search .search-field {
    min-height: 44px;
    border-radius: 8px;
    background: #f0f0f0;
    border-color: rgba(26, 58, 42, 0.14);
  }

  .header-search-btn {
    right: 14px;
  }

  .cart-drawer {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .header-top {
    padding: 10px 12px 12px;
    gap: 8px;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
  }

  .action-btn-mobile-search {
    display: none !important;
  }

  .logo {
    padding-left: 34px;
  }

  .hamburger {
    left: 6px;
    top: 7px;
  }

  .logo-tagline,
  .btn-quote-header,
  .action-divider {
    display: none;
  }

  .logo-image {
    height: 34px;
    max-width: 150px;
    max-height: 34px;
  }

  header .logo.has-custom-logo .logo-image {
    height: 34px !important;
    max-height: 34px !important;
    max-width: 150px !important;
  }

  .footer-brand .logo-image {
    height: 104px;
    width: auto;
    max-width: 360px;
    max-height: none;
  }

  .logo-name {
    font-size: 1.35rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .header-actions {
    gap: 2px;
  }

  .action-btn {
    padding: 6px 7px;
    border-radius: 8px;
  }

  .action-btn .ab-label {
    display: none;
  }

  .action-btn .ab-icon {
    font-size: 1.2rem;
  }

  .cart-badge {
    top: 2px;
    right: 2px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-bottom: 36px;
  }

  .footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-brand .logo {
    justify-content: center;
    margin: 0 auto;
  }

  .footer-social {
    display: none;
  }

  .footer-brand p {
    font-size: 0.95rem;
    max-width: none;
  }

  .footer-col h4 {
    font-size: 0.8rem;
    margin-bottom: 14px;
  }

  .footer-col ul a,
  .footer-contact-item p,
  .footer-contact-item a {
    font-size: 0.95rem;
  }

  .footer-newsletter-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .footer-col-newsletter .footer-newsletter {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(245, 240, 232, 0.14);
    border-radius: 14px;
    padding: 14px;
  }

  .footer-newsletter h4 {
    font-size: 0.92rem;
    letter-spacing: 0.11em;
    margin-bottom: 10px;
  }

  .footer-newsletter-row input {
    width: 100%;
    min-height: 48px;
    padding: 14px 16px;
    font-size: 0.95rem;
    border-radius: 12px;
  }

  .footer-newsletter-row button {
    width: 100%;
    min-height: 48px;
    font-size: 1rem;
    border-radius: 12px;
  }

  .footer-newsletter-feedback {
    font-size: 0.82rem;
    margin-top: 6px;
  }

  .mobile-menu {
    top: 70px;
    height: calc(100dvh - 70px);
    padding: 14px 20px 28px;
  }

  .header-search .search-field {
    min-height: 42px;
    font-size: 0.9rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .toast {
    width: calc(100% - 32px);
    white-space: normal;
    justify-content: center;
    text-align: center;
  }
}

/* HEADER NAV - WordPress menu compatible */
.header-nav {
  border-top: 1px solid rgba(26, 58, 42, 0.07);
  background: var(--green);
}

.header-nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2px;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-links > li {
  position: relative;
}

.nav-links > li > a {
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(245, 240, 232, 0.85);
  padding: 12px 16px;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color var(--transition), background var(--transition);
  position: relative;
}

.nav-links > li > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px 2px 0 0;
  transform: scaleX(0);
  transition: transform var(--transition);
}

.nav-links > li:hover > a,
.nav-links > li.current-menu-item > a,
.nav-links > li.current-menu-parent > a,
.nav-links > li.current-menu-ancestor > a {
  color: var(--cream);
}

.nav-links > li:hover > a::after,
.nav-links > li.current-menu-item > a::after,
.nav-links > li.current-menu-parent > a::after,
.nav-links > li.current-menu-ancestor > a::after {
  transform: scaleX(1);
}

/* optional caret for parents */
.nav-links > li.menu-item-has-children > a::before {
  content: '▾';
  font-size: 0.55rem;
  opacity: 0.65;
  margin-left: 6px;
  order: 2;
}

/* WordPress submenu */
.nav-links .sub-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: var(--white);
  border: 1px solid rgba(26, 58, 42, 0.1);
  border-radius: var(--radius);
  box-shadow: 0 16px 48px rgba(26, 58, 42, 0.18);
  padding: 8px;
  min-width: 230px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s;
  list-style: none;
  z-index: 100;
}

.nav-links > li:not(.has-mega):hover > .sub-menu,
.nav-links > li:not(.has-mega):focus-within > .sub-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-links .sub-menu li {
  margin: 0;
  position: relative;
}

.nav-links .sub-menu li a {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  font-size: 0.84rem;
  color: var(--green);
  border-radius: 8px;
  font-weight: 400;
  transition: background var(--transition), color var(--transition);
}

.nav-links .sub-menu li a:hover,
.nav-links .sub-menu li.current-menu-item > a {
  background: var(--cream);
  color: var(--green);
}

/* Desktop: show subcategory flyouts (level 3+) to the right */
@media (min-width: 1101px) {
  .nav-links .sub-menu .sub-menu {
    top: -8px;
    left: calc(100% - 6px);
    transform: translateX(8px);
    min-width: 220px;
    z-index: 110;
  }

  .nav-links .sub-menu li:hover > .sub-menu,
  .nav-links .sub-menu li:focus-within > .sub-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
  }

  .nav-links .sub-menu li.menu-item-has-children > a {
    justify-content: space-between;
  }

  .nav-links .sub-menu li.menu-item-has-children > a::after {
    content: '›';
    font-size: 0.8rem;
    opacity: 0.65;
    margin-left: 12px;
    line-height: 1;
  }
}

/* Desktop nav style */
@media (min-width: 1101px) {
  .header-nav {
    border-top: 1px solid rgba(26, 58, 42, 0.08);
    border-bottom: 1px solid rgba(26, 58, 42, 0.08);
    background: var(--white);
  }

  .header-nav-inner {
    gap: 14px;
  }

  .nav-links > li > a {
    color: #2f3137;
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 14px 14px;
    text-transform: uppercase;
  }

  .nav-links > li.menu-item-has-children > a::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 14px;
    margin: 0;
    font-size: 0;
    pointer-events: auto;
  }

  .nav-links > li:hover > a,
  .nav-links > li.current-menu-item > a,
  .nav-links > li.current-menu-parent > a,
  .nav-links > li.current-menu-ancestor > a {
    color: var(--green);
  }

  .nav-links > li > a::after {
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gold);
    border-radius: 0;
  }

  /* Big desktop mega menu */
  .nav-links > li.menu-item-has-children.has-mega {
    position: static;
  }

  .nav-links > li.menu-item-has-children.has-mega > .sub-menu {
    left: 50%;
    top: calc(100% + 2px);
    transform: translate(-50%, 8px);
    width: min(1240px, calc(100vw - 36px));
    min-width: 0;
    border-radius: 0 0 12px 12px;
    border: 1px solid rgba(26, 58, 42, 0.1);
    border-top: 0;
    box-shadow: 0 20px 46px rgba(26, 58, 42, 0.14);
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    transition-delay: 0s;
    z-index: 1000;
    background: #eef2ec;
  }

  .nav-links > li.menu-item-has-children.has-mega > a:hover + .sub-menu,
  .nav-links > li.menu-item-has-children.has-mega > a:focus + .sub-menu,
  .nav-links > li.menu-item-has-children.has-mega > .sub-menu:hover,
  .nav-links > li.menu-item-has-children.has-mega > .sub-menu:focus-within {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
    transition-delay: 120ms;
  }

  .nav-links > li.menu-item-has-children.has-mega > .sub-menu > li {
    padding: 12px 14px 14px;
    border-right: 1px solid rgba(26, 58, 42, 0.08);
    background: #f4f6f3;
  }

  .nav-links > li.menu-item-has-children.has-mega > .sub-menu > li:nth-child(even) {
    background: #edf2ed;
  }

  .nav-links > li.menu-item-has-children.has-mega > .sub-menu > li:nth-child(odd) {
    background: #f6f8f5;
  }

  .nav-links > li.menu-item-has-children.has-mega > .sub-menu > li:last-child {
    border-right: 0;
  }

  .nav-links > li.menu-item-has-children.has-mega > .sub-menu > li > a {
    display: block;
    margin: 0 0 10px;
    padding: 0 0 7px;
    border-bottom: 2px solid rgba(201, 168, 76, 0.5);
    border-radius: 0;
    color: var(--green);
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.25;
    text-transform: none;
    letter-spacing: 0.01em;
  }

  /* In mega panel, nested links should appear as simple column list (not flyout). */
  .nav-links > li.menu-item-has-children.has-mega > .sub-menu > li > .sub-menu {
    position: static;
    top: auto;
    left: auto;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    visibility: inherit;    /* ← changed: respect parent's hidden state */
    pointer-events: none;   /* ← changed: don't accept events when hidden */
    transform: none;
    list-style: none;
  }
  
  /* Re-enable ONLY when mega panel is actually open */
  .nav-links > li.menu-item-has-children.has-mega:hover > .sub-menu > li > .sub-menu {
    pointer-events: auto;
    visibility: visible;
  }

  .nav-links > li.menu-item-has-children.has-mega > .sub-menu > li > .sub-menu > li > a {
    display: block;
    padding: 5px 0;
    border-radius: 0;
    color: #33413a;
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.4;
  }

  .nav-links > li.menu-item-has-children.has-mega > .sub-menu > li > .sub-menu > li > a:hover {
    color: var(--green);
    background: transparent;
    text-decoration: underline;
    text-underline-offset: 2px;
  }

  .nav-links > li.menu-item-has-children.has-mega > .sub-menu li.menu-item-has-children > a::after {
    content: none;
  }

  .nav-promo-badge {
    background: rgba(201, 168, 76, 0.16);
    color: var(--green);
  }
}

.nav-promo {
  margin-left: auto;
  padding: 8px 0;
}

.nav-promo-badge {
  background: var(--gold);
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 99px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.header-search,
.mobile-search {
	position: relative;
}

.header-search form,
.mobile-search form {
	position: relative;
}

.header-search .search-field,
.mobile-search .search-field {
	width: 100%;
	padding: 11px 44px 11px 18px;
	border-radius: 10px;
	border: 1.5px solid rgba(26,58,42,0.18);
	background: #fff;
	font-size: 0.875rem;
	color: #1a2318;
	outline: none;
}

.header-search .search-field:focus,
.mobile-search .search-field:focus {
	border-color: #1a3a2a;
	box-shadow: 0 0 0 3px rgba(26,58,42,0.08);
}

.header-search-btn {
	position: absolute;
	top: 50%;
	right: 12px;
	transform: translateY(-50%);
	background: transparent;
	border: none;
	cursor: pointer;
}

.hygienetic-search-dropdown {
	position: absolute;
	top: calc(100% + 10px);
	left: 0;
	right: 0;
	background: #fff;
	border: 1px solid rgba(26,58,42,0.1);
	border-radius: 14px;
	box-shadow: 0 20px 50px rgba(26,58,42,0.14);
	z-index: 9999;
	overflow: hidden;
}

.hygienetic-search-item,
.hygienetic-search-view-all {
	display: grid;
	grid-template-columns: 56px 1fr auto;
	gap: 12px;
	align-items: center;
	padding: 12px 14px;
	text-decoration: none;
	color: #1a2318;
	border-bottom: 1px solid rgba(26,58,42,0.06);
	background: #fff;
	transition: background 0.2s ease;
}

.hygienetic-search-item:hover,
.hygienetic-search-item.is-active,
.hygienetic-search-view-all:hover,
.hygienetic-search-view-all.is-active {
	background: #f5f0e8;
}

.hygienetic-search-thumb {
	width: 56px;
	height: 56px;
	border-radius: 10px;
	background: #f5f0e8;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.hygienetic-search-thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.hygienetic-search-title {
	font-size: 0.88rem;
	font-weight: 600;
	line-height: 1.35;
	margin-bottom: 4px;
}

.hygienetic-search-sub {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	font-size: 0.72rem;
	color: #6b7c6b;
}

.hygienetic-search-price {
	font-weight: 700;
	color: #1a3a2a;
	font-size: 0.9rem;
	white-space: nowrap;
}

.hygienetic-search-stock.is-in-stock {
	color: #2a7a42;
}

.hygienetic-search-stock.is-out-stock {
	color: #b42318;
}

.hygienetic-search-empty {
	padding: 14px;
	font-size: 0.85rem;
	color: #6b7c6b;
}

.hygienetic-search-view-all {
	grid-template-columns: 1fr;
	font-weight: 600;
	color: #1a3a2a;
	background: #fcfaf6;
	border-bottom: none;
}

@media (max-width: 768px) {
	.hygienetic-search-item,
	.hygienetic-search-view-all {
		grid-template-columns: 48px 1fr;
	}

	.hygienetic-search-price {
		grid-column: 2;
	}
}

@media (max-width: 640px) {
	.mobile-menu .mobile-search .hygienetic-search-dropdown {
		top: calc(100% + 8px);
		border-radius: 12px;
		max-height: 54vh;
		overflow: auto;
	}

	.mobile-menu .mobile-search .hygienetic-search-item,
	.mobile-menu .mobile-search .hygienetic-search-view-all {
		grid-template-columns: 42px 1fr auto;
		gap: 8px;
		padding: 9px 10px;
		font-family: "DM Sans", sans-serif;
		font-size: 0.84rem;
		line-height: 1.25;
		color: #1a2318;
		border-bottom: 1px solid rgba(26, 58, 42, 0.06);
	}

	.mobile-menu .mobile-search .hygienetic-search-view-all {
		grid-template-columns: 1fr;
		font-weight: 700;
	}

	.mobile-menu .mobile-search .hygienetic-search-thumb {
		width: 42px;
		height: 42px;
		border-radius: 8px;
	}

	.mobile-menu .mobile-search .hygienetic-search-title {
		font-size: 0.78rem;
		font-weight: 600;
		color: #1a2318;
		margin-bottom: 2px;
	}

	.mobile-menu .mobile-search .hygienetic-search-sub {
		font-size: 0.66rem;
		gap: 6px;
		color: #5f7260;
	}

	.mobile-menu .mobile-search .hygienetic-search-price {
		font-size: 0.8rem;
		color: #1a3a2a;
	}
}


body.no-hover .nav-links .sub-menu,
body.no-hover .nav-links .dropdown,
body.no-hover .nav-links > li.menu-item-has-children.has-mega > .sub-menu {
  pointer-events: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transition: none !important;
}