/*
 Theme Name:   Hemp Flower Co
 Theme URI:    https://hempflowerco.co.uk
 Description:  Category-led SEO child theme for Hemp Flower Co. Built on Astra.
 Author:       Hemp Flower Co
 Template:     astra
 Version:      1.0.0
 Text Domain:  hfc
*/

/* ==========================================================================
   DESIGN SYSTEM — HEMP FLOWER CO
   Premium botanical commerce. Soft, corporate, trustworthy.
   ========================================================================== */

/* ---------- CSS Variables / Design Tokens ---------- */
:root {
  /* Primary Palette */
  --hfc-forest: #1B4332;
  --hfc-forest-light: #2D6A4F;
  --hfc-sage: #52796F;
  --hfc-sage-light: #74A69D;
  --hfc-mint: #B7E4C7;
  --hfc-mint-pale: #D8F3DC;

  /* Neutrals */
  --hfc-cream: #FAFAF5;
  --hfc-warm-white: #F5F3EE;
  --hfc-sand: #E8E4DD;
  --hfc-stone: #C4BFAE;
  --hfc-gray: #8A8578;
  --hfc-charcoal: #3D3B37;
  --hfc-near-black: #1A1917;

  /* Accent */
  --hfc-gold: #C9A84C;
  --hfc-gold-light: #E0CA82;

  /* Functional */
  --hfc-success: #2D6A4F;
  --hfc-sale: #C0392B;
  --hfc-badge-new: #1B4332;
  --hfc-link: #2D6A4F;
  --hfc-link-hover: #1B4332;

  /* Typography */
  --hfc-font-display: 'Outfit', sans-serif;
  --hfc-font-body: 'DM Sans', sans-serif;
  --hfc-font-mono: 'JetBrains Mono', monospace;

  /* Type Scale (clamp for fluid) */
  --hfc-text-xs: clamp(0.7rem, 0.65rem + 0.2vw, 0.75rem);
  --hfc-text-sm: clamp(0.8rem, 0.75rem + 0.25vw, 0.875rem);
  --hfc-text-base: clamp(0.9rem, 0.85rem + 0.3vw, 1rem);
  --hfc-text-lg: clamp(1.05rem, 0.95rem + 0.4vw, 1.15rem);
  --hfc-text-xl: clamp(1.2rem, 1rem + 0.6vw, 1.4rem);
  --hfc-text-2xl: clamp(1.5rem, 1.2rem + 1vw, 1.875rem);
  --hfc-text-3xl: clamp(1.8rem, 1.4rem + 1.5vw, 2.5rem);
  --hfc-text-4xl: clamp(2.2rem, 1.6rem + 2vw, 3.25rem);

  /* Spacing */
  --hfc-space-xs: 0.25rem;
  --hfc-space-sm: 0.5rem;
  --hfc-space-md: 1rem;
  --hfc-space-lg: 1.5rem;
  --hfc-space-xl: 2.5rem;
  --hfc-space-2xl: 4rem;
  --hfc-space-3xl: 6rem;

  /* Layout */
  --hfc-max-width: 1280px;
  --hfc-max-width-narrow: 960px;
  --hfc-gutter: clamp(1rem, 3vw, 2rem);
  --hfc-grid-gap: clamp(1rem, 2vw, 1.5rem);

  /* Radii */
  --hfc-radius-sm: 6px;
  --hfc-radius-md: 10px;
  --hfc-radius-lg: 16px;
  --hfc-radius-xl: 24px;
  --hfc-radius-pill: 999px;

  /* Shadows */
  --hfc-shadow-sm: 0 1px 3px rgba(27, 67, 50, 0.06);
  --hfc-shadow-md: 0 4px 12px rgba(27, 67, 50, 0.08);
  --hfc-shadow-lg: 0 8px 30px rgba(27, 67, 50, 0.10);
  --hfc-shadow-xl: 0 16px 48px rgba(27, 67, 50, 0.12);
  --hfc-shadow-card: 0 2px 8px rgba(27, 67, 50, 0.05), 0 1px 2px rgba(27, 67, 50, 0.04);
  --hfc-shadow-card-hover: 0 8px 24px rgba(27, 67, 50, 0.10), 0 2px 6px rgba(27, 67, 50, 0.06);

  /* Transitions */
  --hfc-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --hfc-ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --hfc-duration-fast: 150ms;
  --hfc-duration: 300ms;
  --hfc-duration-slow: 500ms;
}


/* ==========================================================================
   RESET / ASTRA OVERRIDES
   Strip Astra's default WooCommerce styling
   ========================================================================== */

/* Kill Astra's default container widths on catalog pages */
.ast-separate-container .ast-article-post,
.ast-separate-container .ast-article-single,
.ast-separate-container .ast-comment-list li.depth-1,
.ast-separate-container .comment-respond {
  padding: 0;
}

/* === FULL-WIDTH OVERRIDES — Shop, Category, Homepage === */
body.tax-product_cat .ast-container,
body.tax-product_cat #primary,
body.post-type-archive-product .ast-container,
body.post-type-archive-product #primary,
body.page-template-front-page .ast-container,
body.page-template-front-page #primary,
body.home:not(.blog) .ast-container,
body.home:not(.blog) #primary {
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

body.tax-product_cat #secondary,
body.tax-product_cat .ast-sidebar-layout-configuration,
body.post-type-archive-product #secondary,
body.post-type-archive-product .ast-sidebar-layout-configuration,
body.page-template-front-page #secondary,
body.home:not(.blog) #secondary {
  display: none !important;
}

body.tax-product_cat .ast-woocommerce-container,
body.post-type-archive-product .ast-woocommerce-container {
  max-width: 100% !important;
}

body.tax-product_cat .site-content > .ast-container,
body.post-type-archive-product .site-content > .ast-container,
body.page-template-front-page .site-content > .ast-container,
body.home:not(.blog) .site-content > .ast-container {
  max-width: 100% !important;
  padding: 0 !important;
}

body.tax-product_cat .entry-content,
body.post-type-archive-product .entry-content,
body.page-template-front-page .entry-content,
body.home:not(.blog) .entry-content {
  margin: 0 !important;
}

body.tax-product_cat .site-content,
body.post-type-archive-product .site-content,
body.page-template-front-page .site-content,
body.home:not(.blog) .site-content {
  padding: 0 !important;
}

body.tax-product_cat #content .ast-container,
body.post-type-archive-product #content .ast-container,
body.page-template-front-page #content .ast-container,
body.home:not(.blog) #content .ast-container {
  display: block !important;
  max-width: 100% !important;
  padding: 0 !important;
}

/* Astra's separate container box styling — kill it */
body.tax-product_cat.ast-separate-container #primary,
body.post-type-archive-product.ast-separate-container #primary,
body.page-template-front-page.ast-separate-container #primary,
body.home:not(.blog).ast-separate-container #primary {
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
}

body.tax-product_cat.ast-separate-container .ast-article-post,
body.post-type-archive-product.ast-separate-container .ast-article-post,
body.page-template-front-page.ast-separate-container .ast-article-post,
body.home:not(.blog).ast-separate-container .ast-article-post,
body.tax-product_cat.ast-separate-container .ast-article-single,
body.post-type-archive-product.ast-separate-container .ast-article-single,
body.page-template-front-page.ast-separate-container .ast-article-single,
body.home:not(.blog).ast-separate-container .ast-article-single {
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
}

/* Hide default Astra WooCommerce elements we're replacing */
body.tax-product_cat .ast-woocommerce-container .woocommerce-result-count,
body.tax-product_cat .ast-woocommerce-container .woocommerce-ordering,
body.tax-product_cat .woocommerce-breadcrumb,
body.tax-product_cat .term-description,
body.tax-product_cat .page-title {
  display: none !important;
}


/* ==========================================================================
   BASE TYPOGRAPHY
   ========================================================================== */

body.tax-product_cat {
  font-family: var(--hfc-font-body);
  font-size: var(--hfc-text-base);
  line-height: 1.65;
  color: var(--hfc-charcoal);
  background-color: var(--hfc-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.hfc-h1, .hfc-h2, .hfc-h3, .hfc-h4 {
  font-family: var(--hfc-font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--hfc-near-black);
  letter-spacing: -0.02em;
}

.hfc-h1 { font-size: var(--hfc-text-4xl); font-weight: 700; }
.hfc-h2 { font-size: var(--hfc-text-3xl); }
.hfc-h3 { font-size: var(--hfc-text-2xl); }
.hfc-h4 { font-size: var(--hfc-text-xl); }

.hfc-label {
  font-family: var(--hfc-font-display);
  font-size: var(--hfc-text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--hfc-sage);
}


/* ==========================================================================
   LAYOUT UTILITIES
   ========================================================================== */

.hfc-container {
  width: 100%;
  max-width: var(--hfc-max-width);
  margin: 0 auto;
  padding: 0 var(--hfc-gutter);
}

.hfc-container--narrow {
  max-width: var(--hfc-max-width-narrow);
}

.hfc-section {
  padding: var(--hfc-space-3xl) 0;
}

.hfc-section--tight {
  padding: var(--hfc-space-2xl) 0;
}


/* ==========================================================================
   CATEGORY HERO SECTION
   ========================================================================== */

.hfc-hero {
  position: relative;
  padding: var(--hfc-space-3xl) 0 var(--hfc-space-2xl);
  background: linear-gradient(
    165deg,
    var(--hfc-forest) 0%,
    var(--hfc-forest-light) 45%,
    var(--hfc-sage) 100%
  );
  overflow: hidden;
}

.hfc-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(183, 228, 199, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(201, 168, 76, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.hfc-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hfc-hero__inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hfc-hero__breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: var(--hfc-space-xs);
  margin-bottom: var(--hfc-space-lg);
  font-size: var(--hfc-text-sm);
  color: rgba(255, 255, 255, 0.6);
}

.hfc-hero__breadcrumb a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color var(--hfc-duration) var(--hfc-ease);
}

.hfc-hero__breadcrumb a:hover {
  color: rgba(255, 255, 255, 0.9);
}

.hfc-hero__breadcrumb .hfc-sep {
  font-size: 0.7em;
  opacity: 0.5;
}

.hfc-hero__title {
  font-family: var(--hfc-font-display);
  font-size: var(--hfc-text-4xl);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 var(--hfc-space-md);
}

.hfc-hero__subtitle {
  font-size: var(--hfc-text-lg);
  color: rgba(255, 255, 255, 0.75);
  max-width: 580px;
  margin: 0 auto var(--hfc-space-xl);
  line-height: 1.6;
}

/* Trust Badges Row */
.hfc-hero__badges {
  display: flex;
  justify-content: center;
  gap: var(--hfc-space-xl);
  flex-wrap: wrap;
}

.hfc-badge {
  display: flex;
  align-items: center;
  gap: var(--hfc-space-sm);
  font-size: var(--hfc-text-sm);
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

.hfc-badge__icon {
  width: 20px;
  height: 20px;
  fill: var(--hfc-mint);
  flex-shrink: 0;
}

/* Product count pill */
.hfc-hero__count {
  display: inline-block;
  margin-top: var(--hfc-space-lg);
  padding: var(--hfc-space-xs) var(--hfc-space-md);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--hfc-radius-pill);
  font-size: var(--hfc-text-sm);
  color: rgba(255, 255, 255, 0.8);
}


/* ==========================================================================
   PRODUCT GRID
   ========================================================================== */

.hfc-products-section {
  padding: var(--hfc-space-3xl) 0;
  background: var(--hfc-cream);
}

.hfc-products-section .hfc-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: var(--hfc-space-xl);
  padding-bottom: var(--hfc-space-md);
  border-bottom: 1px solid var(--hfc-sand);
}

.hfc-section-header__title {
  font-family: var(--hfc-font-display);
  font-size: var(--hfc-text-2xl);
  font-weight: 600;
  color: var(--hfc-near-black);
  letter-spacing: -0.02em;
}

.hfc-sort-wrap {
  position: relative;
}

.hfc-sort-wrap select {
  appearance: none;
  background: var(--hfc-warm-white);
  border: 1px solid var(--hfc-sand);
  border-radius: var(--hfc-radius-md);
  padding: var(--hfc-space-sm) var(--hfc-space-xl) var(--hfc-space-sm) var(--hfc-space-md);
  font-family: var(--hfc-font-body);
  font-size: var(--hfc-text-sm);
  color: var(--hfc-charcoal);
  cursor: pointer;
  transition: border-color var(--hfc-duration) var(--hfc-ease);
}

.hfc-sort-wrap select:hover,
.hfc-sort-wrap select:focus {
  border-color: var(--hfc-sage-light);
  outline: none;
}

.hfc-sort-wrap::after {
  content: '';
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--hfc-gray);
  pointer-events: none;
}

/* Product Grid Layout */
.hfc-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--hfc-grid-gap);
}

/* Product Card */
.hfc-product-card {
  background: #fff;
  border-radius: var(--hfc-radius-lg);
  overflow: hidden;
  box-shadow: var(--hfc-shadow-card);
  transition:
    box-shadow var(--hfc-duration) var(--hfc-ease),
    transform var(--hfc-duration) var(--hfc-ease);
  position: relative;
}

.hfc-product-card:hover {
  box-shadow: var(--hfc-shadow-card-hover);
  transform: translateY(-4px);
}

.hfc-product-card__image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--hfc-warm-white);
}

.hfc-product-card__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--hfc-duration-slow) var(--hfc-ease);
}

.hfc-product-card:hover .hfc-product-card__image-wrap img {
  transform: scale(1.05);
}

.hfc-product-card__badges {
  position: absolute;
  top: var(--hfc-space-sm);
  left: var(--hfc-space-sm);
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 2;
}

.hfc-product-card__badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--hfc-radius-pill);
  font-family: var(--hfc-font-display);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hfc-product-card__badge--sale {
  background: var(--hfc-sale);
  color: #fff;
}

.hfc-product-card__badge--new {
  background: var(--hfc-badge-new);
  color: #fff;
}

.hfc-product-card__body {
  padding: var(--hfc-space-md) var(--hfc-space-md) var(--hfc-space-lg);
}

.hfc-product-card__title {
  font-family: var(--hfc-font-display);
  font-size: var(--hfc-text-base);
  font-weight: 600;
  color: var(--hfc-near-black);
  line-height: 1.3;
  margin: 0 0 var(--hfc-space-sm);
}

.hfc-product-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color var(--hfc-duration-fast) var(--hfc-ease);
}

.hfc-product-card__title a:hover {
  color: var(--hfc-forest-light);
}

.hfc-product-card__meta {
  font-size: var(--hfc-text-sm);
  color: var(--hfc-gray);
  margin-bottom: var(--hfc-space-sm);
}

.hfc-product-card__price {
  display: flex;
  align-items: baseline;
  gap: var(--hfc-space-sm);
  margin-bottom: var(--hfc-space-md);
}

.hfc-product-card__price .amount {
  font-family: var(--hfc-font-display);
  font-size: var(--hfc-text-xl);
  font-weight: 700;
  color: var(--hfc-forest);
}

.hfc-product-card__price del .amount {
  font-size: var(--hfc-text-sm);
  font-weight: 400;
  color: var(--hfc-stone);
  text-decoration: line-through;
}

.hfc-product-card__price ins {
  text-decoration: none;
}

.hfc-product-card__cta {
  display: block;
  width: 100%;
  padding: var(--hfc-space-sm) var(--hfc-space-md);
  background: var(--hfc-forest);
  color: #fff;
  border: none;
  border-radius: var(--hfc-radius-md);
  font-family: var(--hfc-font-display);
  font-size: var(--hfc-text-sm);
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    background var(--hfc-duration) var(--hfc-ease),
    transform var(--hfc-duration-fast) var(--hfc-ease);
}

.hfc-product-card__cta:hover {
  background: var(--hfc-forest-light);
  color: #fff;
}

.hfc-product-card__cta:active {
  transform: scale(0.98);
}

/* Quick view overlay */
.hfc-product-card__quickview {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(27, 67, 50, 0.0);
  opacity: 0;
  transition:
    opacity var(--hfc-duration) var(--hfc-ease),
    background var(--hfc-duration) var(--hfc-ease);
  z-index: 3;
  pointer-events: none;
}

.hfc-product-card:hover .hfc-product-card__quickview {
  opacity: 1;
  background: rgba(27, 67, 50, 0.15);
  pointer-events: auto;
}


/* ==========================================================================
   CATEGORY CONTENT HUB
   ========================================================================== */

.hfc-content-hub {
  padding: var(--hfc-space-3xl) 0;
  background: var(--hfc-warm-white);
}

.hfc-content-hub__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--hfc-space-2xl);
}

/* Category Description (rendered from WooCommerce category desc) */
.hfc-category-desc {
  max-width: var(--hfc-max-width-narrow);
  margin: 0 auto;
}

.hfc-category-desc h2,
.hfc-category-desc h3 {
  font-family: var(--hfc-font-display);
  color: var(--hfc-near-black);
  letter-spacing: -0.02em;
  margin: var(--hfc-space-xl) 0 var(--hfc-space-md);
}

.hfc-category-desc h2 { font-size: var(--hfc-text-2xl); }
.hfc-category-desc h3 { font-size: var(--hfc-text-xl); }

.hfc-category-desc p {
  color: var(--hfc-charcoal);
  line-height: 1.75;
  margin-bottom: var(--hfc-space-md);
}

.hfc-category-desc a {
  color: var(--hfc-link);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(45, 106, 79, 0.3);
  transition: text-decoration-color var(--hfc-duration) var(--hfc-ease);
}

.hfc-category-desc a:hover {
  text-decoration-color: var(--hfc-link-hover);
}

/* Info Cards Grid */
.hfc-info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--hfc-grid-gap);
  max-width: var(--hfc-max-width);
  margin: 0 auto;
  padding: 0 var(--hfc-gutter);
}

.hfc-info-card {
  background: #fff;
  border-radius: var(--hfc-radius-lg);
  padding: var(--hfc-space-xl);
  box-shadow: var(--hfc-shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: box-shadow var(--hfc-duration) var(--hfc-ease);
}

.hfc-info-card:hover {
  box-shadow: var(--hfc-shadow-md);
}

.hfc-info-card__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--hfc-mint-pale);
  border-radius: var(--hfc-radius-md);
  margin-bottom: var(--hfc-space-md);
}

.hfc-info-card__icon svg {
  width: 20px;
  height: 20px;
  fill: var(--hfc-forest);
}

.hfc-info-card__title {
  font-family: var(--hfc-font-display);
  font-size: var(--hfc-text-lg);
  font-weight: 600;
  color: var(--hfc-near-black);
  margin-bottom: var(--hfc-space-sm);
}

.hfc-info-card__text {
  font-size: var(--hfc-text-sm);
  color: var(--hfc-gray);
  line-height: 1.65;
}


/* ==========================================================================
   FAQ / SCHEMA SECTION
   ========================================================================== */

.hfc-faq {
  padding: var(--hfc-space-3xl) 0;
  background: var(--hfc-cream);
}

.hfc-faq__header {
  text-align: center;
  margin-bottom: var(--hfc-space-2xl);
}

.hfc-faq__list {
  max-width: var(--hfc-max-width-narrow);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--hfc-space-sm);
}

.hfc-faq__item {
  background: #fff;
  border-radius: var(--hfc-radius-md);
  border: 1px solid var(--hfc-sand);
  overflow: hidden;
  transition: border-color var(--hfc-duration) var(--hfc-ease);
}

.hfc-faq__item:hover {
  border-color: var(--hfc-sage-light);
}

.hfc-faq__question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: var(--hfc-space-lg) var(--hfc-space-xl);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--hfc-font-display);
  font-size: var(--hfc-text-base);
  font-weight: 600;
  color: var(--hfc-near-black);
  text-align: left;
  line-height: 1.4;
  transition: color var(--hfc-duration) var(--hfc-ease);
}

.hfc-faq__question:hover {
  color: var(--hfc-forest-light);
}

.hfc-faq__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-left: var(--hfc-space-md);
  transition: transform var(--hfc-duration) var(--hfc-ease);
  color: var(--hfc-sage);
}

.hfc-faq__item.is-open .hfc-faq__icon {
  transform: rotate(180deg);
}

.hfc-faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--hfc-duration-slow) var(--hfc-ease);
}

.hfc-faq__item.is-open .hfc-faq__answer {
  max-height: 600px;
}

.hfc-faq__answer-inner {
  padding: 0 var(--hfc-space-xl) var(--hfc-space-xl);
  font-size: var(--hfc-text-base);
  line-height: 1.75;
  color: var(--hfc-charcoal);
}


/* ==========================================================================
   INTERNAL LINKING ENGINE — "Explore More"
   ========================================================================== */

.hfc-explore {
  padding: var(--hfc-space-3xl) 0;
  background: var(--hfc-warm-white);
}

.hfc-explore__header {
  text-align: center;
  margin-bottom: var(--hfc-space-2xl);
}

.hfc-explore__groups {
  max-width: var(--hfc-max-width);
  margin: 0 auto;
  padding: 0 var(--hfc-gutter);
  display: flex;
  flex-direction: column;
  gap: var(--hfc-space-2xl);
}

.hfc-explore__group-label {
  font-family: var(--hfc-font-display);
  font-size: var(--hfc-text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--hfc-sage);
  margin-bottom: var(--hfc-space-md);
  padding-bottom: var(--hfc-space-sm);
  border-bottom: 1px solid var(--hfc-sand);
}

.hfc-explore__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--hfc-space-sm);
}

.hfc-explore__link {
  display: inline-flex;
  align-items: center;
  gap: var(--hfc-space-xs);
  padding: var(--hfc-space-sm) var(--hfc-space-lg);
  background: #fff;
  border: 1px solid var(--hfc-sand);
  border-radius: var(--hfc-radius-pill);
  font-family: var(--hfc-font-display);
  font-size: var(--hfc-text-sm);
  font-weight: 500;
  color: var(--hfc-charcoal);
  text-decoration: none;
  transition:
    background var(--hfc-duration) var(--hfc-ease),
    border-color var(--hfc-duration) var(--hfc-ease),
    color var(--hfc-duration) var(--hfc-ease),
    box-shadow var(--hfc-duration) var(--hfc-ease);
}

.hfc-explore__link:hover {
  background: var(--hfc-forest);
  border-color: var(--hfc-forest);
  color: #fff;
  box-shadow: var(--hfc-shadow-md);
}

.hfc-explore__link--active {
  background: var(--hfc-forest);
  border-color: var(--hfc-forest);
  color: #fff;
  pointer-events: none;
}

.hfc-explore__link svg {
  width: 14px;
  height: 14px;
  opacity: 0.5;
}

.hfc-explore__link:hover svg {
  opacity: 0.8;
}


/* ==========================================================================
   MEGA NAVIGATION
   ========================================================================== */

.hfc-mega-nav {
  background: #fff;
  border-bottom: 1px solid var(--hfc-sand);
  position: sticky;
  top: 0;
  z-index: 100;
}

.hfc-mega-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--hfc-max-width);
  margin: 0 auto;
  padding: 0 var(--hfc-gutter);
  height: 64px;
}

.hfc-mega-nav__logo {
  font-family: var(--hfc-font-display);
  font-size: var(--hfc-text-xl);
  font-weight: 700;
  color: var(--hfc-forest);
  text-decoration: none;
  letter-spacing: -0.03em;
}

.hfc-mega-nav__links {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hfc-mega-nav__item {
  position: relative;
}

.hfc-mega-nav__trigger {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: var(--hfc-space-md) var(--hfc-space-lg);
  font-family: var(--hfc-font-display);
  font-size: var(--hfc-text-sm);
  font-weight: 500;
  color: var(--hfc-charcoal);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: color var(--hfc-duration-fast) var(--hfc-ease);
}

.hfc-mega-nav__trigger:hover {
  color: var(--hfc-forest);
}

.hfc-mega-nav__trigger svg {
  width: 12px;
  height: 12px;
  transition: transform var(--hfc-duration) var(--hfc-ease);
}

.hfc-mega-nav__item:hover .hfc-mega-nav__trigger svg {
  transform: rotate(180deg);
}

/* Dropdown Panel */
.hfc-mega-nav__dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 280px;
  background: #fff;
  border: 1px solid var(--hfc-sand);
  border-radius: var(--hfc-radius-lg);
  box-shadow: var(--hfc-shadow-xl);
  padding: var(--hfc-space-lg);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--hfc-duration) var(--hfc-ease),
    transform var(--hfc-duration) var(--hfc-ease);
  z-index: 200;
}

.hfc-mega-nav__item:hover .hfc-mega-nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.hfc-mega-nav__dropdown-group {
  margin-bottom: var(--hfc-space-md);
}

.hfc-mega-nav__dropdown-group:last-child {
  margin-bottom: 0;
}

.hfc-mega-nav__dropdown-label {
  font-family: var(--hfc-font-display);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--hfc-stone);
  margin-bottom: var(--hfc-space-sm);
  padding-bottom: var(--hfc-space-xs);
  border-bottom: 1px solid var(--hfc-sand);
}

.hfc-mega-nav__dropdown-link {
  display: block;
  padding: 6px 0;
  font-family: var(--hfc-font-body);
  font-size: var(--hfc-text-sm);
  color: var(--hfc-charcoal);
  text-decoration: none;
  transition: color var(--hfc-duration-fast) var(--hfc-ease);
}

.hfc-mega-nav__dropdown-link:hover {
  color: var(--hfc-forest);
}

/* Mobile toggle */
.hfc-mega-nav__toggle {
  display: none;
  background: none;
  border: none;
  padding: var(--hfc-space-sm);
  cursor: pointer;
}

.hfc-mega-nav__toggle svg {
  width: 24px;
  height: 24px;
  color: var(--hfc-charcoal);
}


/* ==========================================================================
   ANIMATIONS (scroll-triggered via IntersectionObserver in JS)
   ========================================================================== */

.hfc-animate {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity var(--hfc-duration-slow) var(--hfc-ease),
    transform var(--hfc-duration-slow) var(--hfc-ease);
}

.hfc-animate.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hfc-animate--delay-1 { transition-delay: 100ms; }
.hfc-animate--delay-2 { transition-delay: 200ms; }
.hfc-animate--delay-3 { transition-delay: 300ms; }
.hfc-animate--delay-4 { transition-delay: 400ms; }

/* Stagger for grid items */
.hfc-product-grid .hfc-product-card:nth-child(1) { transition-delay: 0ms; }
.hfc-product-grid .hfc-product-card:nth-child(2) { transition-delay: 80ms; }
.hfc-product-grid .hfc-product-card:nth-child(3) { transition-delay: 160ms; }
.hfc-product-grid .hfc-product-card:nth-child(4) { transition-delay: 240ms; }
.hfc-product-grid .hfc-product-card:nth-child(5) { transition-delay: 320ms; }
.hfc-product-grid .hfc-product-card:nth-child(6) { transition-delay: 400ms; }
.hfc-product-grid .hfc-product-card:nth-child(7) { transition-delay: 480ms; }
.hfc-product-grid .hfc-product-card:nth-child(8) { transition-delay: 560ms; }


/* ==========================================================================
   PAGINATION
   ========================================================================== */

.hfc-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--hfc-space-sm);
  margin-top: var(--hfc-space-2xl);
}

.hfc-pagination a,
.hfc-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 var(--hfc-space-sm);
  border-radius: var(--hfc-radius-md);
  font-family: var(--hfc-font-display);
  font-size: var(--hfc-text-sm);
  font-weight: 500;
  text-decoration: none;
  transition:
    background var(--hfc-duration) var(--hfc-ease),
    color var(--hfc-duration) var(--hfc-ease);
}

.hfc-pagination a {
  color: var(--hfc-charcoal);
  background: #fff;
  border: 1px solid var(--hfc-sand);
}

.hfc-pagination a:hover {
  background: var(--hfc-forest);
  border-color: var(--hfc-forest);
  color: #fff;
}

.hfc-pagination span.current {
  background: var(--hfc-forest);
  color: #fff;
}


/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
  .hfc-product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .hfc-product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hfc-hero {
    padding: var(--hfc-space-2xl) 0 var(--hfc-space-xl);
  }

  .hfc-hero__badges {
    gap: var(--hfc-space-md);
  }

  .hfc-products-section .hfc-section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--hfc-space-md);
  }

  .hfc-info-cards {
    grid-template-columns: 1fr;
  }

  .hfc-mega-nav__links {
    display: none;
  }

  .hfc-mega-nav__toggle {
    display: block;
  }

  /* Mobile nav drawer */
  .hfc-mega-nav__links.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    padding: var(--hfc-space-lg);
    overflow-y: auto;
    z-index: 200;
  }

  .hfc-mega-nav__links.is-open .hfc-mega-nav__dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: none;
    padding: 0 0 0 var(--hfc-space-md);
    display: none;
  }

  .hfc-mega-nav__links.is-open .hfc-mega-nav__item.is-open .hfc-mega-nav__dropdown {
    display: block;
  }
}

@media (max-width: 480px) {
  .hfc-product-grid {
    grid-template-columns: 1fr;
    gap: var(--hfc-space-md);
  }

  .hfc-product-card__body {
    padding: var(--hfc-space-md);
  }
}


/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

.hfc-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.hfc-text-center { text-align: center; }
.hfc-text-muted { color: var(--hfc-gray); }
.hfc-mb-0 { margin-bottom: 0; }
.hfc-mb-sm { margin-bottom: var(--hfc-space-sm); }
.hfc-mb-md { margin-bottom: var(--hfc-space-md); }
.hfc-mb-lg { margin-bottom: var(--hfc-space-lg); }
