/* ════════════════════════════════════════════════
   AOE Cosmed — Luxury Styles v3
   Anything of Excellence
════════════════════════════════════════════════ */

:root {
  --aoe-green:      #7EAE43;
  --aoe-green-dark: #5c8a2f;
  --aoe-black:      #000000;
  --aoe-white:      #ffffff;
  --ease:           cubic-bezier(0.4, 0, 0.2, 1);
  --ease-back:      cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── GLOBALS ──────────────────────────────────── */
html { scroll-behavior: smooth; }
::selection { background: var(--aoe-green); color: #000; }
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb { background: var(--aoe-green); border-radius: 2px; }

/* Remove Astra page padding for full-width */
.ast-page-builder-template .site-content,
.hfb-header ~ .ast-container { padding: 0 !important; }
.entry-header.ast-no-thumbnail,
.post-navigation,
.entry-footer { display: none !important; }
.entry-content { margin: 0 !important; }
.ast-container { max-width: 100% !important; padding: 0 !important; }

/* Override Astra auto-centering — target the same selector pattern */
.ast-page-builder-template .entry-content > *,
.ast-page-builder-template .entry-content > :not(.wp-block-group) > *,
.entry-content[data-ast-blocks-layout] > :not(.wp-block-group) > * {
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* ── HERO OVERRIDES ───────────────────────────── */
/* Use absolute positioning to escape Astra's auto-margin entirely */
.aoe-hero {
  position: relative !important;
  display: block !important;
}
.aoe-hero .aoe-hero-text {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 2 !important;
  max-width: none !important;
  width: auto !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  padding: 60px 80px !important;
}
.aoe-hero .aoe-hero-title {
  font-size: clamp(38px, 5vw, 72px) !important;
  font-weight: 800 !important;
  color: #fff !important;
  line-height: 1.05 !important;
  letter-spacing: -0.03em !important;
  margin: 0 0 20px !important;
  max-width: none !important;
}
.aoe-hero .aoe-hero-sub {
  max-width: 500px;
}
.aoe-hero .aoe-hero-scroll {
  position: absolute !important;
  bottom: 32px !important;
  right: 72px !important;
  z-index: 3 !important;
  max-width: none !important;
  margin: 0 !important;
}
@media (max-width: 640px) {
  .aoe-hero .aoe-hero-text { padding: 40px 24px !important; }
  .aoe-hero .aoe-hero-scroll { display: none !important; }
}

/* ── IMAGES ───────────────────────────────────── */
.wp-block-image { overflow: hidden; line-height: 0; }
.wp-block-image img {
  display: block; width: 100%;
  transition: transform 0.8s var(--ease);
}
.wp-block-image:hover img { transform: scale(1.04); }

/* ── BUTTONS ──────────────────────────────────── */
.wp-block-button__link {
  position: relative !important;
  overflow: hidden !important;
  letter-spacing: 0.8px !important;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease) !important;
}
.wp-block-button__link::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
  transition: left 0.55s ease;
  pointer-events: none;
}
.wp-block-button__link:hover::after  { left: 100%; }
.wp-block-button__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(126,174,67,0.38) !important;
}

/* ── MARQUEE ──────────────────────────────────── */
.aoe-marquee-outer { overflow: hidden; }
.aoe-marquee-track {
  display: inline-flex;
  white-space: nowrap;
  animation: aoe-scroll 32s linear infinite;
}
@keyframes aoe-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── SPLIT PRODUCT SECTIONS ───────────────────── */
.aoe-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 580px;
}
.aoe-split-img {
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.aoe-split-img img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 48px;
  transition: transform 0.9s var(--ease);
}
.aoe-split:hover .aoe-split-img img { transform: scale(1.06); }
.aoe-split-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px 60px;
  gap: 0;
}
.aoe-split-num {
  font-size: 80px;
  font-weight: 800;
  line-height: 1;
  color: #1a1a1a;
  letter-spacing: -4px;
  margin-bottom: 16px;
  font-variant-numeric: tabular-nums;
}
.aoe-split-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--aoe-green);
  margin-bottom: 10px;
}
.aoe-split-title {
  font-size: 38px !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
  letter-spacing: -0.03em !important;
  color: #000 !important;
  margin: 0 0 8px !important;
}
.aoe-split-frag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--aoe-green);
  margin-bottom: 20px;
  text-transform: uppercase;
}
.aoe-split-desc {
  font-size: 15px;
  color: #555;
  line-height: 1.85;
  margin-bottom: 28px;
}
.aoe-split-price {
  font-size: 26px;
  font-weight: 800;
  color: #000;
  letter-spacing: -0.5px;
  margin-bottom: 24px;
}
.aoe-split-price span {
  font-size: 14px;
  font-weight: 400;
  color: #bbb;
  text-decoration: line-through;
  margin-left: 8px;
}
@media (max-width: 860px) {
  .aoe-split { grid-template-columns: 1fr; }
  .aoe-split-img { min-height: 320px; }
  .aoe-split-content { padding: 48px 28px; }
  .aoe-split-title { font-size: 28px !important; }
  .aoe-split-num { font-size: 56px; }
}

/* ── STATS ────────────────────────────────────── */
.aoe-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.aoe-stat-item {
  text-align: center;
  padding: 56px 20px;
  border-right: 1px solid #161616;
  transition: background 0.3s ease;
}
.aoe-stat-item:last-child { border-right: none; }
.aoe-stat-item:hover { background: #0a0a0a; }
.aoe-stat-num {
  font-size: 58px;
  font-weight: 800;
  color: var(--aoe-green);
  line-height: 1;
  letter-spacing: -3px;
  display: block;
  font-variant-numeric: tabular-nums;
}
.aoe-stat-unit {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0;
}
.aoe-stat-label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2.5px;
  color: #444;
  margin-top: 10px;
  text-transform: uppercase;
}
@media (max-width: 680px) {
  .aoe-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .aoe-stat-item { border-bottom: 1px solid #161616; }
  .aoe-stat-num { font-size: 44px; }
}

/* ── INGREDIENTS ──────────────────────────────── */
.aoe-ingredient-card {
  padding: 44px;
  border: 1px solid #1a1a1a;
  border-radius: 12px;
  transition: border-color 0.3s ease, transform 0.3s var(--ease);
}
.aoe-ingredient-card:hover {
  border-color: var(--aoe-green);
  transform: translateY(-4px);
}

/* ── HOW TO USE ───────────────────────────────── */
.aoe-step {
  padding: 36px 28px;
  border-left: 2px solid #eee;
  transition: border-color 0.3s ease;
}
.aoe-step:hover { border-color: var(--aoe-green); }
.aoe-step-num {
  font-size: 48px;
  font-weight: 800;
  color: var(--aoe-green);
  line-height: 1;
  letter-spacing: -2px;
  margin-bottom: 12px;
}

/* ── INSTAGRAM / OUR WORLD ────────────────────── */
.aoe-insta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
}
.aoe-insta-item {
  aspect-ratio: 1;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.aoe-insta-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.aoe-insta-item:hover img { transform: scale(1.08); }
.aoe-insta-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.48);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.aoe-insta-overlay span {
  color: #fff;
  font-size: 28px;
  font-weight: 300;
}
.aoe-insta-item:hover .aoe-insta-overlay { opacity: 1; }
@media (max-width: 600px) {
  .aoe-insta-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── SECTION LABELS ───────────────────────────── */
.aoe-eyebrow {
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 3.5px !important;
  color: var(--aoe-green) !important;
  text-transform: uppercase;
  display: block;
  margin-bottom: 12px !important;
}

/* ── FEATURE STRIP ICONS ──────────────────────── */
.aoe-feature-icon {
  font-size: 24px;
  display: block;
  margin-bottom: 8px;
  color: var(--aoe-green);
}

/* ── GENERAL SECTION TRANSITIONS ─────────────── */
[data-aos] { transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important; }

/* ── FOOTER REFINEMENTS ───────────────────────── */
.ast-footer-overlay { border-top: 1px solid #111 !important; }
#ast-footer-widgets { padding: 56px 0 !important; }
#ast-footer-widgets .widget-title {
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 3px !important;
  text-transform: uppercase !important;
  color: #fff !important;
  margin-bottom: 22px !important;
  padding-bottom: 14px !important;
  border-bottom: 1px solid #1e1e1e !important;
}
#ast-footer-widgets a { transition: color 0.2s ease !important; }
#ast-footer-widgets a:hover { color: var(--aoe-green) !important; padding-left: 4px; }
.ast-small-footer {
  border-top: 1px solid #111 !important;
  font-size: 12px !important;
  letter-spacing: 0.5px !important;
}

/* ── HEADER REFINEMENTS ───────────────────────── */
.main-header-bar {
  box-shadow: none !important;
  border-bottom: 1px solid #f0f0f0 !important;
  transition: box-shadow 0.3s ease !important;
}
.main-header-bar.scrolled,
.sticky-header-active .main-header-bar {
  box-shadow: 0 2px 24px rgba(0,0,0,0.08) !important;
}
.main-navigation a { letter-spacing: 0.5px !important; }

/* ── PLACEHOLDER BANNER ───────────────────────── */
.aoe-placeholder {
  background: linear-gradient(135deg, #d6e4c7 0%, #e8f0da 100%);
  border: 2px dashed var(--aoe-green);
  padding: 60px 40px;
  text-align: center;
}

/* ── SHOP PAGE ────────────────────────────────── */
/* Remove Astra's default 100px side padding + 60px margin */
.woocommerce-page .ast-woocommerce-container,
.ast-woocommerce-container { padding: 64px 60px !important; }
.woocommerce-page .content-area { margin: 0 !important; }

/* Product grid — 3 columns, clean gaps */
.woocommerce ul.products,
.woocommerce-page ul.products {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 32px !important;
  margin: 0 !important;
}
@media (max-width: 860px) {
  .woocommerce-page .ast-woocommerce-container { padding: 40px 24px !important; }
  .woocommerce ul.products,
  .woocommerce-page ul.products { grid-template-columns: repeat(2, 1fr) !important; gap: 20px !important; }
}
@media (max-width: 540px) {
  .woocommerce ul.products,
  .woocommerce-page ul.products { grid-template-columns: 1fr !important; }
}

/* Product card */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid #ebebeb;
  transition: border-color 0.3s ease, transform 0.3s var(--ease), box-shadow 0.3s ease;
  background: #fff;
}
.woocommerce ul.products li.product:hover,
.woocommerce-page ul.products li.product:hover {
  border-color: var(--aoe-green);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.08);
}

/* Product image */
.woocommerce ul.products li.product a img {
  width: 100% !important;
  height: 280px !important;
  object-fit: contain !important;
  background: #f8f8f8 !important;
  padding: 24px !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  transition: transform 0.8s var(--ease) !important;
}
.woocommerce ul.products li.product:hover a img { transform: scale(1.04) !important; }

/* Product info area */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce-page ul.products li.product .woocommerce-loop-product__title {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #000 !important;
  letter-spacing: -0.02em !important;
  padding: 20px 20px 4px !important;
  margin: 0 !important;
}
.woocommerce ul.products li.product .price,
.woocommerce-page ul.products li.product .price {
  padding: 0 20px 6px !important;
  display: block !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  color: #000 !important;
}
.woocommerce ul.products li.product .price del,
.woocommerce-page ul.products li.product .price del {
  font-size: 13px !important;
  color: #bbb !important;
  font-weight: 400 !important;
  margin-left: 6px !important;
}
.woocommerce ul.products li.product .price ins {
  text-decoration: none !important;
}

/* Add to cart / Select options button */
.woocommerce ul.products li.product .button,
.woocommerce-page ul.products li.product .button {
  display: block !important;
  width: calc(100% - 40px) !important;
  margin: 0 20px 20px !important;
  background: #000 !important;
  color: #fff !important;
  border: none !important;
  padding: 12px 20px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  text-align: center !important;
  transition: background 0.25s ease, transform 0.25s ease !important;
  border-radius: 0 !important;
}
.woocommerce ul.products li.product .button:hover,
.woocommerce-page ul.products li.product .button:hover {
  background: var(--aoe-green) !important;
  color: #000 !important;
  transform: none !important;
}

/* Shop page header */
.woocommerce-products-header { margin-bottom: 40px; }
.woocommerce-products-header__title {
  font-size: clamp(28px,3.5vw,48px) !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em !important;
  color: #000 !important;
  margin: 0 0 8px !important;
}

/* Ordering + result count bar */
.woocommerce-result-count { font-size: 12px !important; color: #999 !important; }
.woocommerce-ordering select {
  border: 1px solid #e0e0e0 !important;
  font-size: 12px !important;
  padding: 8px 12px !important;
  border-radius: 0 !important;
  background: #fff !important;
}

/* Sale badge */
.woocommerce ul.products li.product .onsale {
  background: var(--aoe-green) !important;
  color: #000 !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 1px !important;
  border-radius: 0 !important;
  padding: 5px 10px !important;
  top: 12px !important;
  left: 12px !important;
  min-height: auto !important;
  line-height: 1.4 !important;
}
