/**
 * Devine Custom Theme - Main Stylesheet (Mobile-First Architecture)
 * Fully responsive across all viewports (360px, 390px, 414px, 768px, 1024px, 1280px+).
 */

/* ── 1. Custom Properties & Tokens ── */
:root {
  --saffron: #1B5E47;         /* Deep emerald / sacred green */
  --earth: #0D3B2E;           /* Dark forest green */
  --ivory: #FDFBF7;           /* Warm sacred cream background */
  --gold: #C9A14A;            /* Golden amber */
  --gold-light: #E5C77A;
  --gold-foreground: #2C221E;
  --charcoal: #2C221E;        /* Deep earth typography */
  --rose: #C0524A;            /* Sale badge accent */
  --border: #EAE6DE;          /* Subtle border */
  --card-bg: #FFFFFF;
  --secondary-bg: #F4EFEB;
  --radius: 1rem;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ── 2. Universal Reset & Global Safety Net ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

body {
  background-color: var(--ivory);
  color: var(--charcoal);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  position: relative;
}

h1, h2, h3, h4, h5, h6, .font-serif {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--earth);
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

h1 { font-size: clamp(1.75rem, 5.5vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 4.5vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 3.5vw, 1.6rem); }
h4 { font-size: clamp(1.05rem, 3vw, 1.3rem); }

p, span, a, li, label, blockquote {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: 16px; /* 16px prevents iOS Safari auto-zoom on focus */
  max-width: 100%;
  box-sizing: border-box;
}

/* ── 3. Fluid Containers & Responsive Grids (Mobile-First) ── */
.devine-container {
  width: 100%;
  max-width: 80rem; /* 1280px */
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1rem, 3.5vw, 2rem);
  padding-right: clamp(1rem, 3.5vw, 2rem);
  box-sizing: border-box;
}

/* 2-Column Grid: 1 column on mobile, 2 columns on tablet & desktop */
.devine-grid-2 {
  display: grid;
  grid-template-columns: 100%;
  gap: 2rem;
}

@media (min-width: 768px) {
  .devine-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .devine-grid-2 {
    gap: 3.5rem;
  }
}

/* 3-Column Grid: 1 col on mobile, 2 on tablet, 3 on desktop */
.devine-grid-3 {
  display: grid;
  grid-template-columns: 100%;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .devine-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .devine-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
  }
}

/* 4-Column Grid: 2 cols on mobile, 2 cols on tablet, 4 cols on desktop */
.devine-grid-4 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .devine-grid-4 {
    gap: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .devine-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

/* WooCommerce Standard Product Loops */
ul.products, .woocommerce ul.products, .related.products ul.products, .upsells.products ul.products {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 0.75rem !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 2rem 0 !important;
}

@media (min-width: 640px) {
  ul.products, .woocommerce ul.products, .related.products ul.products, .upsells.products ul.products {
    gap: 1.25rem !important;
  }
}

@media (min-width: 1024px) {
  ul.products, .woocommerce ul.products, .related.products ul.products, .upsells.products ul.products {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 1.5rem !important;
  }
}

ul.products li.product, .woocommerce ul.products li.product {
  margin: 0 !important;
  width: 100% !important;
  float: none !important;
}

.gold-divider {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  border-radius: 999px;
  margin: 1.25rem auto;
}

/* ── 4. Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 9999px;
  background-color: var(--saffron);
  padding: 0.75rem 1.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #FFFFFF !important;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 18px -4px rgba(27, 94, 71, 0.4);
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  outline: none;
  min-height: 44px;
  text-align: center;
  box-sizing: border-box;
}

.btn-primary:hover {
  background-color: var(--earth);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -4px rgba(13, 59, 46, 0.5);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 9999px;
  border: 1.5px solid var(--gold);
  padding: 0.75rem 1.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--earth);
  background: transparent;
  transition: all 0.2s ease;
  cursor: pointer;
  min-height: 44px;
  box-sizing: border-box;
}

.btn-outline:hover {
  background-color: var(--gold);
  color: #FFFFFF;
}

/* ── 5. Header & Announcement Bar ── */
.announcement-bar {
  background: linear-gradient(90deg, var(--earth) 0%, #154D3B 50%, var(--earth) 100%);
  color: #FFFFFF;
  font-size: clamp(9.5px, 2.5vw, 11px);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 0.5rem 0.75rem;
  text-align: center;
  line-height: 1.4;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: #FFFFFF;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  width: 100%;
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0;
  gap: 0.5rem;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  flex-shrink: 0;
}

.site-logo-img {
  height: 42px;
  width: auto;
  max-height: 44px;
  max-width: 160px;
  object-fit: contain;
  display: block;
}

@media (max-width: 768px) {
  .site-logo-img {
    height: 34px;
    max-height: 36px;
    max-width: 125px;
  }
}

.footer-logo-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  padding: 0.35rem 0.75rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(201, 161, 74, 0.45);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  margin-bottom: 1.15rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.footer-logo-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.footer-logo-img {
  height: 36px;
  width: auto;
  max-width: 145px;
  object-fit: contain;
  display: block;
}

.logo-badge {
  display: inline-flex;
  height: clamp(2rem, 5vw, 2.5rem);
  width: clamp(2rem, 5vw, 2.5rem);
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  font-family: var(--font-serif);
  font-size: clamp(1rem, 3vw, 1.25rem);
  color: #FFFFFF;
  background: linear-gradient(135deg, var(--saffron) 0%, var(--earth) 100%);
  box-shadow: 0 4px 10px rgba(27, 94, 71, 0.3);
  flex-shrink: 0;
}

.logo-title {
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 3.8vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--earth);
  line-height: 1.1;
  white-space: nowrap;
}

.logo-subtitle {
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
  font-weight: 600;
  white-space: nowrap;
}

@media (max-width: 380px) {
  .logo-subtitle {
    display: none;
  }
}

.nav-desktop {
  display: none;
}

@media (min-width: 1024px) {
  .nav-desktop {
    display: flex;
    align-items: center;
    gap: 1.25rem;
  }
}

.nav-item {
  position: relative;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--charcoal);
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-item:hover {
  color: var(--saffron);
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 14rem;
  background-color: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease;
  z-index: 50;
}

.nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  border-radius: 0.5rem;
  color: var(--charcoal);
  transition: all 0.15s ease;
}

.dropdown-link:hover {
  background-color: var(--secondary-bg);
  color: var(--saffron);
  padding-left: 1rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .header-actions {
    gap: 0.65rem;
  }
}

.action-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  color: var(--earth);
  transition: all 0.2s ease;
  border: none;
  background: transparent;
  cursor: pointer;
}

.action-btn:hover {
  background-color: var(--secondary-bg);
}

/* Hide non-essential top bar icons on narrow mobile (<420px) to prevent header wrapping */
@media (max-width: 420px) {
  .action-btn-secondary {
    display: none;
  }
}

.cart-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  display: flex;
  height: 1.1rem;
  width: 1.1rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background-color: var(--saffron);
  color: #FFFFFF;
  font-size: 9.5px;
  font-weight: 700;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cart-badge.bump-animate {
  animation: badgeBump 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes badgeBump {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); background-color: var(--gold); }
  100% { transform: scale(1); }
}

/* Mobile Nav Drawer */
.mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0.5rem;
  color: var(--earth);
  background: transparent;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .mobile-menu-toggle {
    display: none;
  }
}

.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-drawer.active {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer-content {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 85%;
  max-width: 22rem;
  background-color: #FFFFFF;
  padding: 1.5rem;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-drawer.active .mobile-drawer-content {
  transform: translateX(0);
}

/* ── 6. Clean Professional Sacred Hero Banner ── */
.hero-clean-banner {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  background-color: #0E0A06;
  background-image: 
    linear-gradient(to bottom, rgba(14, 10, 6, 0.94) 0%, rgba(14, 10, 6, 0.82) 45%, rgba(14, 10, 6, 0.65) 100%),
    url('../images/hero-bg-mobile.jpg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  color: #FFFFFF;
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  border-bottom: 1px solid rgba(201, 161, 74, 0.25);
  overflow: hidden;
  width: 100%;
}

@media (min-width: 768px) {
  .hero-clean-banner {
    min-height: 640px;
    background-image: 
      linear-gradient(to right, rgba(14, 10, 6, 0.95) 0%, rgba(14, 10, 6, 0.85) 38%, rgba(14, 10, 6, 0.45) 65%, rgba(14, 10, 6, 0.1) 85%, transparent 100%),
      url('../images/hero-bg-desktop.jpg');
    background-position: right center;
  }
}

@media (min-width: 1200px) {
  .hero-clean-banner {
    min-height: 680px;
  }
}

.hero-clean-content {
  max-width: 38rem;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  border: 1px solid rgba(201, 161, 74, 0.55);
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  padding: 0.35rem 0.95rem;
  font-size: clamp(10px, 2.5vw, 11px);
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--gold-light);
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  align-self: flex-start;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  max-width: 100%;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 6.5vw, 3.85rem);
  font-weight: 500;
  line-height: 1.16;
  color: #FFFFFF;
  letter-spacing: -0.02em;
  margin-bottom: 1.15rem;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.5);
  word-break: break-word;
}

.hero-title-highlight {
  font-style: italic;
  color: var(--gold-light);
  display: inline-block;
  text-shadow: 0 2px 14px rgba(201, 161, 74, 0.35);
}

.hero-desc {
  font-size: clamp(0.925rem, 2.8vw, 1.05rem);
  color: #F0EAE1;
  max-width: 34rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

.hero-btn-group {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.85rem;
  margin-bottom: 2.25rem;
  width: 100%;
}

@media (min-width: 480px) {
  .hero-btn-group {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem;
  }
}

.hero-btn-main {
  background: linear-gradient(135deg, #1B5E47 0%, #154D3B 100%);
  border: 1px solid rgba(201, 161, 74, 0.6);
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.5), 0 0 18px rgba(201, 161, 74, 0.25);
  padding: 0.85rem 2rem;
  font-size: 0.95rem;
  width: 100%;
  justify-content: center;
}

@media (min-width: 480px) {
  .hero-btn-main {
    width: auto;
  }
}

.hero-btn-main:hover {
  background: linear-gradient(135deg, #237A5C 0%, #1B5E47 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -4px rgba(0, 0, 0, 0.6), 0 0 24px rgba(201, 161, 74, 0.4);
}

.hero-link-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  color: #FFFFFF;
  font-weight: 600;
  font-size: 0.925rem;
  transition: all 0.2s ease;
  padding: 0.5rem;
  text-align: center;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.hero-link-secondary:hover {
  color: var(--gold-light);
  transform: translateX(3px);
}

.hero-trust-bar {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.8125rem;
  color: #E2DDD5;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.35rem;
  width: 100%;
}

@media (min-width: 640px) {
  .hero-trust-bar {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem;
  }
}

.hero-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
}

.hero-trust-icon {
  color: var(--gold);
}

.hero-trust-sep {
  display: none;
  color: rgba(255, 255, 255, 0.3);
}

@media (min-width: 640px) {
  .hero-trust-sep {
    display: inline;
  }
}

/* ── 7. Trust Bar ── */
.trust-bar-section {
  background-color: #FFFFFF;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: clamp(2rem, 5vw, 2.75rem) 0;
  width: 100%;
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.trust-icon-box {
  display: flex;
  height: 2.75rem;
  width: 2.75rem;
  min-width: 2.75rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 0.85rem;
  background: linear-gradient(135deg, rgba(27, 94, 71, 0.08) 0%, rgba(201, 161, 74, 0.12) 100%);
  color: var(--saffron);
}

.trust-title {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 3.5vw, 1.125rem);
  font-weight: 600;
  color: var(--earth);
  margin-bottom: 0.2rem;
}

.trust-desc {
  font-size: 0.8125rem;
  color: #666666;
  line-height: 1.4;
}

/* ── 8. Visual Category Grid: Luxury Full-Image Cards ── */
.category-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 1.25rem;
  background-color: #FFFFFF;
  border: 1px solid rgba(201, 161, 74, 0.25);
  box-shadow: 0 4px 18px rgba(13, 59, 46, 0.04);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
  text-decoration: none;
}

.category-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: 0 16px 36px rgba(13, 59, 46, 0.12);
}

.category-thumb-wrap {
  width: 100%;
  height: clamp(140px, 18vw, 210px);
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at center, #FFFFFF 0%, #F5EFE3 100%);
  border-bottom: 1px solid rgba(201, 161, 74, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.category-card:hover .category-thumb-wrap img {
  transform: scale(1.08);
}

.category-content-wrap {
  padding: clamp(0.9rem, 2vw, 1.25rem) clamp(0.75rem, 1.5vw, 1rem);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
  background: #FFFFFF;
}

.category-name {
  font-family: var(--font-serif);
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  font-weight: 600;
  color: var(--earth);
  margin-bottom: 0.35rem;
  line-height: 1.3;
  transition: color 0.2s ease;
}

.category-card:hover .category-name {
  color: #B8860B;
}

.category-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 11px;
  color: #777777;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.category-count {
  background: rgba(201, 161, 74, 0.1);
  color: var(--earth);
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 10.5px;
}

.category-arrow {
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  transition: transform 0.25s ease;
}

.category-card:hover .category-arrow {
  transform: translateX(3px);
}

/* ── 9. Product Card (Pixel-Perfect Responsive) ── */
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 0.85rem;
  background-color: #FFFFFF;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
  box-sizing: border-box;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 161, 74, 0.5);
  box-shadow: 0 16px 32px rgba(13, 59, 46, 0.1);
}

.product-thumb-link {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: var(--secondary-bg);
  overflow: hidden;
}

.product-thumb-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .product-thumb-link img {
  transform: scale(1.08);
}

.badge-sale {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  border-radius: 9999px;
  background-color: var(--rose);
  color: #FFFFFF;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.15rem 0.5rem;
  z-index: 5;
}

.badge-certified {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  border-radius: 9999px;
  background-color: var(--earth);
  color: #FFFFFF;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.15rem 0.5rem;
  z-index: 5;
}

.wishlist-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 9999px;
  background-color: #FFFFFF;
  color: var(--earth);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease;
  z-index: 5;
}

.wishlist-btn:hover {
  transform: scale(1.12);
}

.product-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: clamp(0.65rem, 2vw, 1rem);
  gap: 0.25rem;
}

.product-category-meta {
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  font-weight: 700;
}

.product-title {
  font-family: var(--font-serif);
  font-size: clamp(0.875rem, 2.5vw, 1.05rem);
  line-height: 1.3;
  color: var(--earth);
  font-weight: 600;
  transition: color 0.15s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-title:hover {
  color: var(--saffron);
}

.star-rating-wrap {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.7rem;
  color: #D4A94A;
  margin-top: 0.1rem;
}

.product-price-row {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
  gap: 0.35rem;
}

/* ── Product Price Typography (Clean Sans-Serif) ── */
.price,
.price-current,
.price-regular,
.single-product-price,
.summary .price,
.single-product .price,
.product-card .price,
ul.products li.product .price,
.woocommerce-Price-amount,
.woocommerce-Price-currencySymbol {
  font-family: var(--font-sans) !important;
  font-style: normal;
}

.price-regular,
del,
del .woocommerce-Price-amount {
  font-family: var(--font-sans) !important;
  font-size: 0.8em;
  color: #999999;
  font-weight: 400;
  text-decoration: line-through;
  margin-right: 0.35rem;
  opacity: 0.85;
}

.price-current,
ins,
ins .woocommerce-Price-amount {
  font-family: var(--font-sans) !important;
  font-size: clamp(0.95rem, 2.8vw, 1.25rem);
  font-weight: 700;
  color: var(--earth);
  text-decoration: none;
}

.single-product-price {
  font-family: var(--font-sans) !important;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--earth);
  margin: 0.5rem 0;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.single-product-price del,
.single-product-price del .woocommerce-Price-amount {
  font-size: 1.15rem;
  color: #888888;
  font-weight: 400;
}

.single-product-price ins,
.single-product-price ins .woocommerce-Price-amount {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--earth);
  text-decoration: none;
}

/* ── 10. Lab & Authenticity Banner ── */
.lab-banner-section {
  background: linear-gradient(135deg, #09281F 0%, var(--earth) 50%, #154D3B 100%);
  color: #FFFFFF;
  padding: clamp(3rem, 7vw, 5rem) 0;
  position: relative;
  overflow: hidden;
  width: 100%;
}

.cert-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(201, 161, 74, 0.3);
  padding: 0.65rem 0.85rem;
  font-size: 0.8125rem;
}

/* ── 11. Single Product Page ── */
.single-product-container {
  padding: clamp(2rem, 5vw, 3.5rem) 0;
  width: 100%;
}

.product-gallery-main {
  border-radius: 1.25rem;
  overflow: hidden;
  background-color: var(--secondary-bg);
  border: 1px solid var(--border);
  aspect-ratio: 1 / 1;
  width: 100%;
}

.product-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-thumbnails {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.35rem;
  width: 100%;
}

.product-thumb-item {
  width: 4rem;
  height: 4rem;
  min-width: 4rem;
  border-radius: 0.65rem;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  background-color: var(--secondary-bg);
  flex-shrink: 0;
}

.product-thumb-item.active {
  border-color: var(--saffron);
}

.product-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-details-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
}

.lab-cert-banner {
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #FAF6EE 0%, #F5EDE0 100%);
  border: 1px solid rgba(201, 161, 74, 0.4);
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Single Product Add to Cart Form */
.single-product form.cart {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

.single-product form.cart .quantity {
  width: auto;
  min-width: 4.5rem;
}

.single-product form.cart .quantity input.qty {
  width: 4rem;
  height: 48px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  font-size: 1rem;
  background: #FFFFFF;
}

.single-product form.cart .single_add_to_cart_button {
  flex: 1 1 14rem;
  min-height: 48px;
  width: 100%;
  border-radius: 9999px;
  background-color: var(--saffron);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  box-shadow: 0 4px 18px -4px rgba(27, 94, 71, 0.4);
}

.single-product form.cart .single_add_to_cart_button:hover {
  background-color: var(--earth);
}

/* ── 12. Cart & Checkout Responsive Overhauls ── */
.devine-cart-card,
.devine-checkout-card {
  background: #FFFFFF;
  border-radius: 1.25rem;
  border: 1px solid var(--border);
  padding: clamp(1rem, 3.5vw, 2.25rem);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.devine-checkout-grid {
  gap: clamp(1.5rem, 4vw, 3rem) !important;
  align-items: start;
}

@media (min-width: 1024px) {
  .devine-order-review-card {
    position: sticky;
    top: 6rem;
  }
}

/* Universal Shop Table & Order Review Table Safety */
table.shop_table {
  width: 100% !important;
  max-width: 100% !important;
  border-collapse: collapse !important;
  box-sizing: border-box !important;
}

/* Checkout Review Order Table - Prevents Price Overflow on Mobile */
table.woocommerce-checkout-review-order-table {
  width: 100% !important;
  max-width: 100% !important;
  table-layout: fixed !important;
  border-collapse: collapse !important;
  box-sizing: border-box !important;
}

table.woocommerce-checkout-review-order-table thead th {
  border-bottom: 2px solid var(--border) !important;
  padding: 0.75rem 0 !important;
  font-family: var(--font-serif) !important;
  font-size: 1.05rem !important;
  color: var(--earth) !important;
}

table.woocommerce-checkout-review-order-table th.product-name,
table.woocommerce-checkout-review-order-table td.product-name {
  width: 60% !important;
  padding: 0.75rem 0.5rem 0.75rem 0 !important;
  text-align: left !important;
  font-size: clamp(0.85rem, 3vw, 0.95rem) !important;
  line-height: 1.4 !important;
  color: var(--earth) !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
  hyphens: auto !important;
  vertical-align: middle !important;
}

table.woocommerce-checkout-review-order-table td.product-name .product-quantity {
  font-weight: 700 !important;
  color: var(--charcoal) !important;
  white-space: nowrap !important;
}

table.woocommerce-checkout-review-order-table th.product-total,
table.woocommerce-checkout-review-order-table td.product-total {
  width: 40% !important;
  padding: 0.75rem 0 0.75rem 0.5rem !important;
  text-align: right !important;
  white-space: nowrap !important;
  font-family: var(--font-serif) !important;
  font-size: clamp(0.95rem, 3.2vw, 1.15rem) !important;
  font-weight: 700 !important;
  color: var(--earth) !important;
  vertical-align: middle !important;
}

table.woocommerce-checkout-review-order-table tfoot tr {
  border-top: 1px solid var(--border) !important;
}

table.woocommerce-checkout-review-order-table tfoot th {
  width: 50% !important;
  padding: 0.75rem 0 !important;
  text-align: left !important;
  font-size: 0.9rem !important;
  color: #666 !important;
}

table.woocommerce-checkout-review-order-table tfoot td {
  width: 50% !important;
  padding: 0.75rem 0 !important;
  text-align: right !important;
  white-space: nowrap !important;
  font-family: var(--font-serif) !important;
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  color: var(--earth) !important;
}

table.woocommerce-checkout-review-order-table tfoot tr.order-total th {
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  color: var(--earth) !important;
  border-top: 2px solid var(--border) !important;
}

table.woocommerce-checkout-review-order-table tfoot tr.order-total td {
  font-size: 1.35rem !important;
  font-weight: 700 !important;
  color: var(--earth) !important;
  border-top: 2px solid var(--border) !important;
}

/* Payment Methods List Container */
#payment.woocommerce-checkout-payment {
  background: var(--ivory) !important;
  border-radius: 0.85rem !important;
  padding: 1rem !important;
  margin-top: 1.5rem !important;
  border: 1px solid var(--border) !important;
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
}

#payment.woocommerce-checkout-payment ul.wc_payment_methods {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 1rem 0 !important;
}

#payment.woocommerce-checkout-payment ul.wc_payment_methods li {
  margin-bottom: 0.75rem !important;
}

#payment.woocommerce-checkout-payment ul.wc_payment_methods li label {
  font-weight: 600 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.4rem !important;
}

#place_order {
  width: 100% !important;
  min-height: 50px !important;
  border-radius: 9999px !important;
  background: linear-gradient(135deg, var(--saffron) 0%, var(--earth) 100%) !important;
  color: #FFFFFF !important;
  font-weight: 700 !important;
  font-size: 1.05rem !important;
  border: none !important;
  cursor: pointer !important;
  box-shadow: 0 6px 20px -4px rgba(27, 94, 71, 0.4) !important;
  transition: opacity 0.2s ease !important;
}

#place_order:hover {
  opacity: 0.95 !important;
}

/* Cart Page Responsive Overhaul */
@media (max-width: 767px) {
  .woocommerce-cart-form table.shop_table.cart {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    border: none !important;
  }
  .woocommerce-cart-form table.shop_table.cart thead {
    display: none !important;
  }
  .woocommerce-cart-form table.shop_table.cart tbody {
    display: block !important;
    width: 100% !important;
  }
  .woocommerce-cart-form table.shop_table.cart tr.cart_item {
    display: grid !important;
    grid-template-columns: 4.5rem 1fr auto !important;
    grid-template-rows: auto auto auto !important;
    column-gap: 0.75rem !important;
    row-gap: 0.35rem !important;
    align-items: center !important;
    position: relative !important;
    padding: 1rem !important;
    margin-bottom: 1rem !important;
    background: #FFFFFF !important;
    border: 1px solid var(--border) !important;
    border-radius: 1rem !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02) !important;
    box-sizing: border-box !important;
  }
  .woocommerce-cart-form table.shop_table.cart td {
    display: block !important;
    padding: 0 !important;
    border: none !important;
    text-align: left !important;
    box-sizing: border-box !important;
  }
  .woocommerce-cart-form table.shop_table.cart td.product-remove {
    grid-column: 3 / 4 !important;
    grid-row: 1 / 2 !important;
    text-align: right !important;
  }
  .woocommerce-cart-form table.shop_table.cart td.product-thumbnail {
    grid-column: 1 / 2 !important;
    grid-row: 1 / 4 !important;
    width: 4.5rem !important;
    height: 4.5rem !important;
    margin: 0 !important;
    float: none !important;
  }
  .woocommerce-cart-form table.shop_table.cart td.product-thumbnail img {
    width: 4.5rem !important;
    height: 4.5rem !important;
    object-fit: cover !important;
    border-radius: 0.5rem !important;
  }
  .woocommerce-cart-form table.shop_table.cart td.product-name {
    grid-column: 2 / 3 !important;
    grid-row: 1 / 2 !important;
    padding-right: 0.5rem !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
  }
  .woocommerce-cart-form table.shop_table.cart td.product-price {
    grid-column: 2 / 4 !important;
    grid-row: 2 / 3 !important;
    font-size: 0.85rem !important;
    color: #666 !important;
  }
  .woocommerce-cart-form table.shop_table.cart td.product-quantity {
    grid-column: 2 / 3 !important;
    grid-row: 3 / 4 !important;
    padding-top: 0.25rem !important;
    clear: none !important;
  }
  .woocommerce-cart-form table.shop_table.cart td.product-subtotal {
    grid-column: 3 / 4 !important;
    grid-row: 3 / 4 !important;
    text-align: right !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: var(--earth) !important;
    white-space: nowrap !important;
  }
  .woocommerce-cart-form table.shop_table.cart td.actions {
    display: block !important;
    text-align: center !important;
    padding: 1rem 0 !important;
    width: 100% !important;
  }
  .woocommerce-cart-form table.shop_table.cart td.actions .btn-outline {
    width: 100% !important;
  }
  .cart-collaterals {
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 2rem !important;
  }
  .cart-collaterals .cart_totals {
    width: 100% !important;
    max-width: 100% !important;
    background: #FFFFFF !important;
    border-radius: 1rem !important;
    border: 1px solid var(--border) !important;
    padding: 1.25rem !important;
    box-sizing: border-box !important;
  }
  .cart-collaterals table.shop_table {
    table-layout: fixed !important;
    width: 100% !important;
  }
  .cart-collaterals table.shop_table th {
    width: 45% !important;
    text-align: left !important;
  }
  .cart-collaterals table.shop_table td {
    width: 55% !important;
    text-align: right !important;
    white-space: nowrap !important;
  }
}

/* Checkout inputs & Form Elements */
.woocommerce-checkout form.checkout .form-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
  width: 100%;
}

.woocommerce-checkout form.checkout input.input-text,
.woocommerce-checkout form.checkout select,
.woocommerce-checkout form.checkout textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: var(--ivory);
  font-size: 16px;
  box-sizing: border-box;
}

/* ── 12b. Gutenberg Cart & Checkout Blocks (Modern WooCommerce) ── */
.devine-page-card {
  background: #FFFFFF;
  border-radius: 1.25rem;
  border: 1px solid var(--border);
  padding: clamp(1rem, 3.5vw, 2.5rem);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.devine-page-container {
  max-width: 64rem;
  width: 100%;
  box-sizing: border-box;
}

/* Block Cart Container & Overall Layout */
.wp-block-woocommerce-cart,
.wc-block-cart,
.wc-block-cart__main,
.wc-block-cart__form,
.wc-block-cart-items,
.wp-block-woocommerce-checkout,
.wc-block-checkout {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow-x: hidden !important;
}

.wc-block-cart-items {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* Block Cart Item Rows (Desktop & Universal) */
.wc-block-cart-items__row,
.wc-block-components-cart-item {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
}

.wc-block-components-cart-item__product {
  min-width: 0 !important;
  box-sizing: border-box !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
}

.wc-block-components-cart-item__product .wc-block-components-product-name {
  font-family: var(--font-serif) !important;
  font-size: clamp(1rem, 3.5vw, 1.25rem) !important;
  font-weight: 600 !important;
  color: var(--earth) !important;
  line-height: 1.3 !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
}

.wc-block-components-product-details__short-description,
.wc-block-components-cart-item__product p {
  font-size: 0.825rem !important;
  line-height: 1.45 !important;
  color: #666666 !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
  max-width: 100% !important;
}

/* Mobile Layout for WooCommerce Block Cart (< 768px) */
@media (max-width: 768px) {
  .wp-block-woocommerce-cart,
  .wc-block-cart {
    padding: 0 !important;
    margin: 0 !important;
  }

  /* Force Cart Item to 100% width with no horizontal push */
  .wc-block-cart-items__row,
  .wc-block-components-cart-item {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    position: relative !important;
    padding: 1.25rem 0 !important;
    border-bottom: 1px solid var(--border) !important;
    gap: 0.75rem !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Cart Item Thumbnail on Left */
  .wc-block-components-cart-item__image {
    width: 4.5rem !important;
    max-width: 4.5rem !important;
    height: 4.5rem !important;
    flex: 0 0 4.5rem !important;
    margin: 0 !important;
  }

  .wc-block-components-cart-item__image img {
    width: 4.5rem !important;
    height: 4.5rem !important;
    object-fit: cover !important;
    border-radius: 0.5rem !important;
  }

  /* Main Product Info in Center/Right */
  .wc-block-components-cart-item__product {
    flex: 1 1 calc(100% - 5.5rem) !important;
    max-width: calc(100% - 5.5rem) !important;
    min-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* Subtotal / Price in Block Cart - Keep cleanly contained inside the card */
  .wc-block-components-cart-item__total,
  .wc-block-components-cart-item__price,
  .wc-block-components-cart-item .wc-block-components-product-price {
    display: block !important;
    text-align: left !important;
    font-family: var(--font-serif) !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: var(--earth) !important;
    white-space: nowrap !important;
    margin: 0.25rem 0 !important;
  }

  /* Stepper & Trash Controls */
  .wc-block-components-cart-item__quantity,
  .wc-block-components-quantity-selector {
    display: inline-flex !important;
    align-items: center !important;
    margin-top: 0.5rem !important;
    max-width: 100% !important;
  }

  .wc-block-components-cart-item__remove {
    margin-left: 0.5rem !important;
    align-self: center !important;
  }

  /* Block Cart Totals Sidebar on Mobile */
  .wc-block-cart__sidebar,
  .wc-block-components-totals-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 1.5rem !important;
    padding: 1.25rem !important;
    background: #FAFAF8 !important;
    border-radius: 1rem !important;
    border: 1px solid var(--border) !important;
    box-sizing: border-box !important;
  }
}

/* ── 13. Footer ── */
.site-footer {
  background-color: #0F2B22;
  color: #D4D4D4;
  padding: clamp(2.5rem, 6vw, 4rem) 0 2rem;
  border-top: 3px solid var(--gold);
  width: 100%;
}

.site-footer .devine-grid-4 {
  grid-template-columns: 100%;
  gap: 2.25rem;
}

@media (min-width: 640px) {
  .site-footer .devine-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .site-footer .devine-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.footer-col-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: #FFFFFF;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

.footer-link-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-link-list a:hover {
  color: var(--gold-light);
  padding-left: 0.25rem;
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  font-size: 0.8125rem;
  color: #888888;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}
