/*
Theme Name: Happy Chicks
Theme URI: https://example.com/happy-chicks
Author: Happy Chicks
Description: A warm, farm-fresh WooCommerce theme for selling day-old chicks, 2-week-old chicks, and poultry accessories. Happy farm colours (orange, green, white), Paynow-ready.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: happy-chicks
Tags: e-commerce, woocommerce, poultry, agriculture, custom-colors
*/

/* ============================================================
   DESIGN TOKENS — Happy farm: orange, green, white
   ============================================================ */
:root {
  /* Palette */
  --hc-orange:      #F5871F;   /* warm chick orange — primary action */
  --hc-orange-deep: #E06A0C;   /* pressed / hover */
  --hc-green:       #3FA34D;   /* farm green — growth, health */
  --hc-green-deep:  #2E7D3A;   /* dark green — headings, footer */
  --hc-green-soft:  #EAF6EC;   /* pale green wash */
  --hc-cream:       #FFF8EF;   /* warm white background */
  --hc-white:       #FFFFFF;
  --hc-ink:         #23331F;   /* near-black warm green-black text */
  --hc-ink-soft:    #5C6B55;   /* muted body text */
  --hc-line:        #ECE4D8;   /* warm hairline */
  --hc-yellow:      #FFD34E;   /* chick-fluff highlight */
  --hc-sun:         #FFF3D6;   /* soft sun wash */

  /* Type */
  --hc-display: 'Fredoka', 'Baloo 2', system-ui, sans-serif;
  --hc-body: 'Nunito', system-ui, -apple-system, sans-serif;

  /* Shape */
  --hc-radius: 18px;
  --hc-radius-lg: 28px;
  --hc-shadow: 0 10px 30px rgba(63, 79, 45, 0.10);
  --hc-shadow-lift: 0 18px 44px rgba(224, 106, 12, 0.18);
  --hc-maxw: 1200px;
}

/* ============================================================
   BASE
   ============================================================ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--hc-body);
  color: var(--hc-ink);
  background: var(--hc-cream);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: var(--hc-display);
  color: var(--hc-green-deep);
  line-height: 1.1;
  margin: 0 0 0.4em;
  font-weight: 600;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.3rem; }
a { color: var(--hc-orange-deep); text-decoration: none; }
a:hover { color: var(--hc-orange); }
img { max-width: 100%; height: auto; display: block; }
p { margin: 0 0 1em; }

.hc-container { max-width: var(--hc-maxw); margin: 0 auto; padding: 0 24px; }
.hc-section { padding: 72px 0; }
.hc-section-tight { padding: 48px 0; }

.hc-eyebrow {
  display: inline-block;
  font-family: var(--hc-display);
  font-weight: 600;
  color: var(--hc-orange-deep);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.hc-btn,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--hc-display);
  font-weight: 600;
  font-size: 1rem;
  padding: 13px 26px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: var(--hc-orange);
  color: #fff;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
  box-shadow: 0 6px 16px rgba(224,106,12,.28);
  line-height: 1;
  text-align: center;
}
.hc-btn:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover {
  background: var(--hc-orange-deep);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--hc-shadow-lift);
}
.hc-btn-green {
  background: var(--hc-green);
  box-shadow: 0 6px 16px rgba(46,125,58,.28);
}
.hc-btn-green:hover { background: var(--hc-green-deep); }
.hc-btn-ghost {
  background: transparent;
  color: var(--hc-green-deep);
  border: 2px solid var(--hc-green);
  box-shadow: none;
}
.hc-btn-ghost:hover { background: var(--hc-green-soft); color: var(--hc-green-deep); }

/* ============================================================
   HEADER
   ============================================================ */
.hc-topbar {
  background: var(--hc-green-deep);
  color: #fff;
  font-size: 0.9rem;
  font-family: var(--hc-body);
}
.hc-topbar .hc-container {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 8px; padding-bottom: 8px; gap: 16px; flex-wrap: wrap;
}
.hc-topbar a { color: #fff; }
.hc-topbar-social { display: flex; gap: 14px; }

.hc-header {
  background: var(--hc-white);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 14px rgba(63,79,45,.06);
}
.hc-header .hc-container {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px; gap: 20px;
}
.hc-logo { font-family: var(--hc-display); font-weight: 700; font-size: 1.6rem; color: var(--hc-green-deep); display: flex; align-items: center; gap: 8px; }
.hc-logo span { color: var(--hc-orange); }
.hc-logo img { max-height: 52px; width: auto; }

.hc-nav { display: flex; align-items: center; gap: 26px; }
.hc-nav ul { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; }
.hc-nav a {
  font-family: var(--hc-display);
  font-weight: 500;
  color: var(--hc-ink);
  font-size: 1rem;
  padding: 6px 2px;
  border-bottom: 3px solid transparent;
  transition: color .15s, border-color .15s;
}
.hc-nav a:hover, .hc-nav .current-menu-item > a {
  color: var(--hc-orange-deep);
  border-bottom-color: var(--hc-orange);
}
.hc-header-actions { display: flex; align-items: center; gap: 14px; }
.hc-cart-link { position: relative; color: var(--hc-green-deep); display: flex; align-items: center; }
.hc-cart-count {
  position: absolute; top: -8px; right: -10px;
  background: var(--hc-orange); color: #fff;
  font-size: 0.72rem; font-weight: 800;
  min-width: 18px; height: 18px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center; padding: 0 5px;
}
.hc-menu-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--hc-green-deep); }

/* ============================================================
   HERO
   ============================================================ */
.hc-hero {
  position: relative;
  background:
    radial-gradient(1200px 400px at 80% -10%, var(--hc-sun), transparent 60%),
    linear-gradient(180deg, var(--hc-green-soft), var(--hc-cream));
  overflow: hidden;
}
.hc-hero .hc-container {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center;
  padding-top: 64px; padding-bottom: 64px;
}
.hc-hero h1 { color: var(--hc-green-deep); }
.hc-hero h1 em { color: var(--hc-orange); font-style: normal; }
.hc-hero-lead { font-size: 1.2rem; color: var(--hc-ink-soft); max-width: 46ch; }
.hc-hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 20px; }
.hc-hero-media { position: relative; }
.hc-hero-media img { border-radius: var(--hc-radius-lg); box-shadow: var(--hc-shadow-lift); }
.hc-hero-badge {
  position: absolute; bottom: 18px; left: -14px;
  background: #fff; border-radius: var(--hc-radius);
  box-shadow: var(--hc-shadow); padding: 12px 18px;
  display: flex; align-items: center; gap: 10px;
  font-family: var(--hc-display); font-weight: 600; color: var(--hc-green-deep);
}
.hc-hero-badge .hc-dot { width: 12px; height: 12px; border-radius: 999px; background: var(--hc-green); box-shadow: 0 0 0 4px var(--hc-green-soft); }

.hc-trust {
  display: flex; gap: 28px; flex-wrap: wrap;
  padding: 20px 0; border-top: 1px dashed var(--hc-line);
  margin-top: 28px; color: var(--hc-ink-soft); font-weight: 700;
  font-family: var(--hc-display); font-size: 0.98rem;
}
.hc-trust span { display: flex; align-items: center; gap: 8px; }

/* ============================================================
   CATEGORY CARDS
   ============================================================ */
.hc-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.hc-cat-card {
  background: #fff; border-radius: var(--hc-radius-lg);
  overflow: hidden; box-shadow: var(--hc-shadow);
  transition: transform .18s ease, box-shadow .2s ease;
  border: 1px solid var(--hc-line);
  display: flex; flex-direction: column;
}
.hc-cat-card:hover { transform: translateY(-6px); box-shadow: var(--hc-shadow-lift); }
.hc-cat-card-img { aspect-ratio: 4/3; background: var(--hc-green-soft); overflow: hidden; }
.hc-cat-card-img img { width: 100%; height: 100%; object-fit: cover; }
.hc-cat-card-body { padding: 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.hc-cat-card-body h3 { margin: 0; }
.hc-cat-card-body p { color: var(--hc-ink-soft); font-size: 0.98rem; margin: 0; flex: 1; }

/* ============================================================
   PRODUCT GRID (WooCommerce)
   ============================================================ */
.hc-section-head { text-align: center; max-width: 620px; margin: 0 auto 40px; }
.hc-section-head p { color: var(--hc-ink-soft); }

.woocommerce ul.products,
.hc-products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px; margin: 0; padding: 0; list-style: none;
}
.woocommerce ul.products li.product,
.hc-product {
  background: #fff; border-radius: var(--hc-radius-lg);
  border: 1px solid var(--hc-line);
  box-shadow: var(--hc-shadow); overflow: hidden;
  transition: transform .18s ease, box-shadow .2s ease;
  width: auto !important; margin: 0 !important; padding: 0 !important;
  display: flex; flex-direction: column; text-align: left;
}
.woocommerce ul.products li.product:hover,
.hc-product:hover { transform: translateY(-6px); box-shadow: var(--hc-shadow-lift); }
.woocommerce ul.products li.product a img,
.hc-product-img img { border-radius: 0; margin: 0; aspect-ratio: 1/1; object-fit: cover; width: 100%; }
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.hc-product h3 {
  font-family: var(--hc-display); color: var(--hc-green-deep);
  font-size: 1.1rem; padding: 16px 18px 0; margin: 0;
}
.woocommerce ul.products li.product .price,
.hc-product .price {
  color: var(--hc-orange-deep) !important; font-weight: 800;
  font-family: var(--hc-display); font-size: 1.15rem !important;
  padding: 4px 18px 0; display: block;
}
.woocommerce ul.products li.product .price del { color: var(--hc-ink-soft) !important; font-weight: 500; opacity: .6; }
.woocommerce ul.products li.product .button {
  margin: 14px 18px 18px; align-self: flex-start;
}
.woocommerce ul.products li.product .onsale,
.hc-badge {
  background: var(--hc-green); color: #fff; font-family: var(--hc-display);
  font-weight: 600; border-radius: 999px; padding: 4px 12px;
  min-height: 0; min-width: 0; line-height: 1.4; font-size: 0.8rem;
  position: absolute; top: 12px; left: 12px; margin: 0;
}

/* ============================================================
   FEATURE STRIP
   ============================================================ */
.hc-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.hc-feature {
  background: #fff; border-radius: var(--hc-radius); padding: 24px;
  border: 1px solid var(--hc-line); text-align: center;
}
.hc-feature .hc-ico {
  width: 56px; height: 56px; border-radius: 999px; margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--hc-sun); color: var(--hc-orange-deep); font-size: 1.6rem;
}
.hc-feature h3 { font-size: 1.05rem; margin-bottom: 4px; }
.hc-feature p { font-size: 0.92rem; color: var(--hc-ink-soft); margin: 0; }

/* ============================================================
   CTA BANNER
   ============================================================ */
.hc-cta-banner {
  background: linear-gradient(120deg, var(--hc-green-deep), var(--hc-green));
  border-radius: var(--hc-radius-lg); color: #fff;
  padding: 48px; text-align: center; position: relative; overflow: hidden;
}
.hc-cta-banner h2 { color: #fff; }
.hc-cta-banner p { color: rgba(255,255,255,.9); max-width: 52ch; margin: 0 auto 20px; }
.hc-cta-banner .hc-btn { background: var(--hc-yellow); color: var(--hc-green-deep); }
.hc-cta-banner .hc-btn:hover { background: #fff; }

/* ============================================================
   FOOTER
   ============================================================ */
.hc-footer {
  background: var(--hc-green-deep); color: #dfeede;
  padding: 56px 0 0; margin-top: 40px;
}
.hc-footer a { color: #dfeede; }
.hc-footer a:hover { color: var(--hc-yellow); }
.hc-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.hc-footer h4 { color: #fff; font-family: var(--hc-display); margin-bottom: 14px; }
.hc-footer ul { list-style: none; padding: 0; margin: 0; }
.hc-footer li { margin-bottom: 8px; }
.hc-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px;
  padding: 18px 0; text-align: center; font-size: 0.9rem; color: #b9d3b8;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .woocommerce ul.products, .hc-products { grid-template-columns: repeat(3, 1fr); }
  .hc-features { grid-template-columns: repeat(2, 1fr); }
  .hc-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .hc-hero .hc-container { grid-template-columns: 1fr; }
  .hc-hero-media { order: -1; }
  .hc-cats { grid-template-columns: 1fr; }
  .hc-nav { position: fixed; inset: 0 0 0 auto; width: min(80vw, 320px);
    background: #fff; flex-direction: column; align-items: flex-start;
    padding: 80px 28px; transform: translateX(100%); transition: transform .25s ease;
    box-shadow: -10px 0 40px rgba(0,0,0,.15); }
  .hc-nav.is-open { transform: translateX(0); }
  .hc-nav ul { flex-direction: column; gap: 18px; width: 100%; }
  .hc-menu-toggle { display: block; }
}
@media (max-width: 620px) {
  .woocommerce ul.products, .hc-products { grid-template-columns: repeat(2, 1fr); }
  .hc-features { grid-template-columns: 1fr; }
  .hc-footer-grid { grid-template-columns: 1fr; }
  .hc-section { padding: 48px 0; }
}
