/* ============================================
HFN Core — Shared Page Styles
Palette: warm cream, deep forest green, golden honey, charcoal
============================================ */

:root {
  --hfn-green: #2d5016;
  --hfn-green-mid: #4a7c2f;
  --hfn-honey: #c8860a;
  --hfn-cream: #f7f2e8;
  --hfn-cream-dark: #ede5d0;
  --hfn-charcoal: #1e1e1e;
  --hfn-muted: #6b6b6b;
  --hfn-white: #ffffff;
  --hfn-whatsapp: #25d366;

  --hfn-font-display: "Georgia", "Times New Roman", serif;
  --hfn-font-body: system-ui, -apple-system, sans-serif;

  --hfn-radius: 10px;
  --hfn-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
}

/* ── Reset & Base ── */
.hfn-page * {
  box-sizing: border-box;
}

.hfn-page {
  font-family: var(--hfn-font-body);
  color: var(--hfn-charcoal);
  background: var(--hfn-white);
}

/* ── Layout ── */
.hfn-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 10px;
}

.inside-article {
  padding: 20px 10px !important;
}

.hfn-section {
  padding: 72px 0;
}

.hfn-section--tinted {
  background: var(--hfn-cream);
}

/* ── Hero ── */
.hfn-hero {
  background: var(--hfn-green);
  color: var(--hfn-white);
  padding: 96px 0 80px;
  text-align: center;
}

.hfn-hero--short {
  padding: 64px 0 56px;
}

.hfn-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hfn-honey);
  margin-bottom: 16px;
}

.hfn-hero h1 {
  font-family: var(--hfn-font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 16px;
  color: var(--hfn-white);
}

.hfn-hero p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.65;
}

/* ── Hero Banner Image ── */
.hfn-hero-banner {
  width: 100%;
  line-height: 0;
}

.hfn-hero-banner-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* ── Hero Action Bar (short, below banner) ── */
.hfn-hero-actions-bar {
  background: var(--hfn-cream);
  padding: 32px 0;
  text-align: center;
  border-bottom: 5px solid var(--hfn-cream-dark);
}

.hfn-hero-actions-bar h1 {
  font-family: var(--hfn-font-display);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  color: var(--hfn-green);
  margin: 0;
}

/* ── Buttons ── */
.hfn-hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.hfn-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--hfn-radius);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition:
    opacity 0.18s,
    transform 0.18s;
}

.hfn-btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.hfn-btn--primary {
  background: var(--hfn-honey);
  color: var(--hfn-white);
}

.hfn-btn--whatsapp {
  background: var(--hfn-whatsapp);
  color: var(--hfn-white);
}

.hfn-btn--large {
  padding: 16px 36px;
  font-size: 1.05rem;
}

.hfn-btn--outline {
  background: transparent;
  color: var(--hfn-green);
  border: 2px solid var(--hfn-green);
}

.hfn-btn--outline:hover {
  background: var(--hfn-green);
  color: var(--hfn-white);
  opacity: 1;
}

.hfn-section-footer {
  text-align: center;
  margin-top: 32px;
}

/* ── Section Headings ── */
.hfn-section h2,
.hfn-about h2,
.hfn-contact h2 {
  font-family: var(--hfn-font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--hfn-green);
  margin: 0 0 40px;
  text-align: center;
}

/* ── 3-Column Grid ── */
.hfn-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ── Cards (generic feature/icon cards — NOT product cards) ── */
.hfn-card {
  background: var(--hfn-white);
  border: 1px solid var(--hfn-cream-dark);
  border-radius: var(--hfn-radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--hfn-shadow);
}

.hfn-card h3 {
  font-family: var(--hfn-font-display);
  font-size: 1.1rem;
  color: var(--hfn-green);
  margin: 12px 0 8px;
}

.hfn-card p {
  font-size: 0.9rem;
  color: var(--hfn-muted);
  line-height: 1.6;
  margin: 0;
}

.hfn-icon {
  font-size: 2rem;
  display: block;
}

/* ── Two Column (About) ── */
.hfn-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.hfn-text-block h2 {
  text-align: left;
  margin-bottom: 20px;
}

.hfn-text-block p {
  color: var(--hfn-muted);
  line-height: 1.75;
  margin-bottom: 16px;
}

.hfn-image-placeholder {
  background: var(--hfn-cream);
  border-radius: var(--hfn-radius);
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hfn-muted);
  font-size: 0.9rem;
  border: 2px dashed var(--hfn-cream-dark);
}

/* ── Contact Page ── */
.hfn-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.hfn-contact-card--main {
  background: var(--hfn-cream);
  border-radius: var(--hfn-radius);
  padding: 48px 36px;
  text-align: center;
  border: 1px solid var(--hfn-cream-dark);
}

.hfn-contact-card--main h2 {
  text-align: center;
  margin-bottom: 12px;
}

.hfn-contact-card--main p {
  color: var(--hfn-muted);
  margin-bottom: 28px;
  line-height: 1.65;
}

.hfn-contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 16px;
}

.hfn-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.hfn-info-item .hfn-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.hfn-info-item strong {
  display: block;
  color: var(--hfn-green);
  font-size: 0.9rem;
  margin-bottom: 2px;
}

.hfn-info-item p {
  margin: 0;
  color: var(--hfn-muted);
  font-size: 0.95rem;
}

/* ==========================================================================
RESPONSIVE MEDIA QUERIES (core layout only — product card responsive
rules live in hfn-product-card.css)
========================================================================== */
@media (max-width: 768px) {
  .hfn-grid-3,
  .hfn-two-col,
  .hfn-contact-grid {
    grid-template-columns: 1fr;
  }

  .hfn-section {
    padding: 40px 0;
  }

  .hfn-hero-actions-bar {
    padding: 16px 0;
  }

  .hfn-text-block h2 {
    text-align: center;
  }

  /* Menu */
  .site-header .inside-header {
    padding-right: 20px;
    padding-left: 20px;
  }
}

/* ============================================
HFN — WooCommerce Product Card (standalone)
Reusable on any site already running the shared
HFN theme file (:root vars + .hfn-page reset).
============================================ */

/* Clean WooCommerce Grid Container */
.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 16px !important;
  margin: 0 0 32px 0 !important;
  padding: 0 !important;
  list-style: none !important;
  width: 100% !important;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
  display: none !important;
}

/* Individual Product List Item Reset */
.woocommerce ul.products li.product.hfn-product-card-item,
.woocommerce ul.products li.product {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  float: none !important;
  display: flex !important;
}

/* Card Container (Flush Full-Bleed Layout) */
.hfn-product-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 0;
  border: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.25s ease;
}

.hfn-product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

/* Product Thumbnail — zero margin/padding, touches card border directly */
.hfn-card-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  border-radius: 0;
  overflow: hidden;
  background: #f8fafc;
  margin: 0;
  padding: 0;
}

.hfn-thumb-link {
  display: block;
  width: 100%;
  height: 100%;
}

.hfn-thumb-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  border: none !important;
  padding: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hfn-product-card:hover .hfn-thumb-img {
  transform: scale(1.05);
}

/* Star Rating Badge (top-right of image) */
.hfn-card-rating {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(254, 243, 199, 0.95);
  backdrop-filter: blur(4px);
  color: #78350f;
  border: 1px solid rgba(251, 191, 36, 0.4);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  line-height: 1;
  z-index: 2;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

/* Everything below the image lives in one padded wrapper */
.hfn-card-body {
  padding: 10px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* Meta block (category + title) grows to push pricing/CTA to the bottom */
.hfn-card-meta {
  flex-grow: 1;
}

.hfn-card-category {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #059669;
  display: block;
  margin: 0 0 2px;
}

/* !important overrides the theme's default WooCommerce loop rule
   (.woocommerce ul.products li.product h3 { padding: 0.3em 0; }) */
.hfn-card-title {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.25;
  color: #0f172a;
  margin: 0 !important;
  padding: 0 !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hfn-card-title a {
  color: inherit;
  text-decoration: none;
}

.hfn-card-title a:hover {
  color: #059669;
}

/* Bottom Actions & Price Row */
.hfn-card-bottom {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid #f1f5f9;
}

.hfn-card-pricing {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.hfn-price-active {
  font-size: 1.2rem;
  font-weight: 800;
  color: #0c1f18;
  display: inline-flex;
  align-items: baseline;
}

.hfn-price-regular {
  font-size: 0.9rem;
  color: #94a3b8;
  text-decoration: line-through;
}

.hfn-discount-badge {
  font-size: 0.8rem;
  font-weight: 700;
  color: #047857;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 1px 4px;
  border-radius: 4px;
  line-height: 1.2;
}

/* WhatsApp Buy Now Button */
.hfn-whatsapp-btn {
  width: 100%;
  padding: 6px 8px;
  border-radius: 8px;
  background: #0c1f18;
  color: #ffffff !important;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.hfn-whatsapp-btn:hover {
  background: #16382c;
  transform: translateY(-1px);
}

.hfn-whatsapp-btn:active {
  transform: scale(0.98);
}

.hfn-wa-icon {
  width: 14px;
  height: 14px;
  fill: #34d399;
  flex-shrink: 0;
}

/* ── Mobile (product-card rules only) ── */
@media (max-width: 768px) {
  .woocommerce ul.products,
  ul.products.columns-4 {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }

  .hfn-product-card {
    padding: 0;
    border-radius: 12px;
  }

  .hfn-card-body {
    padding: 8px;
  }

  .hfn-card-category {
    font-size: 0.65rem;
  }

  .hfn-card-title {
    font-size: 0.82rem;
  }

  .hfn-price-active {
    font-size: 1.2rem;
  }

  .hfn-whatsapp-btn {
    padding: 5px 6px;
    font-size: 1rem;
  }
}
