/*
Theme Name: Farmácia PRO
Theme URI: https://farmaciapro.com.br
Author: Farmácia PRO
Author URI: https://farmaciapro.com.br
Description: Tema WordPress WooCommerce para farmácias e drogarias. Design moderno com integração WhatsApp, upload de receita e checkout otimizado.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: farmacia-pro
Tags: e-commerce, woocommerce, pharmacy, farmacia
WC requires at least: 7.0
WC tested up to: 8.8
*/

/* =============================================
   FARMÁCIA PRO — TEMA WORDPRESS WOOCOMMERCE
   Paleta: #00a9a4 · #fdb813 · #d7181f
   ============================================= */
:root {
  --farm-primary: #00a9a4;
  --farm-primary-dark: #007f7b;
  --farm-primary-light: #e6f7f7;
  --farm-primary-mid: #b2e6e5;
  --farm-accent: #fdb813;
  --farm-accent-dark: #d49800;
  --farm-accent-soft: #fff8e1;
  --farm-danger: #d7181f;
  --farm-danger-light: #fdecea;
  --farm-whatsapp: #25D366;
  --farm-whatsapp-dark: #128C7E;
  --farm-text: #1a1a1a;
  --farm-text-muted: #6B7280;
  --farm-text-light: #9CA3AF;
  --farm-bg: #f7fafa;
  --farm-white: #FFFFFF;
  --farm-border: #E5E7EB;
  --farm-border-soft: #eff6f6;
  --farm-shadow: 0 2px 8px rgba(0,169,164,0.10);
  --farm-shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --farm-radius: 12px;
  --farm-radius-sm: 8px;
  --farm-radius-pill: 999px;
  --font-heading: 'Nunito', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--farm-bg);
  color: var(--farm-text);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Logo ── */
.site-logo {
  display: flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
  flex-shrink: 0;
}
.site-logo-img {
  height: 52px;
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.20));
  transition: transform .15s;
}
.site-logo-img:hover { transform: scale(1.04); }
.site-logo-img-sm {
  height: 48px;
  width: auto;
  display: block;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  background: var(--farm-primary);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 12px rgba(0,169,164,0.25);
}
.header-top {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 20px;
  max-width: 1200px; margin: 0 auto;
}
.site-logo {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 22px;
  color: white;
  letter-spacing: -0.5px;
  display: flex; align-items: center; gap: 6px;
  white-space: nowrap;
}
.search-bar {
  flex: 1;
  display: flex; align-items: center;
  background: white;
  border-radius: var(--farm-radius-sm);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  max-width: 520px;
}
.search-bar input {
  flex: 1; border: none; outline: none;
  padding: 11px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--farm-text);
}
.search-bar input::placeholder { color: var(--farm-text-light); }
.search-btn {
  background: var(--farm-primary-dark);
  color: white;
  padding: 11px 16px;
  display: flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600;
  transition: background .15s;
  border: none; cursor: pointer;
}
.search-btn:hover { background: #006560; }
.header-actions {
  display: flex; align-items: center; gap: 8px; margin-left: auto;
}
.header-icon-btn {
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  color: white; position: relative; transition: background .15s;
}
.header-icon-btn:hover { background: rgba(255,255,255,0.25); }
.cart-count {
  position: absolute; top: -2px; right: -2px;
  background: var(--farm-accent);
  color: white; font-size: 10px; font-weight: 700;
  width: 17px; height: 17px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--farm-primary);
}

/* Category bar */
.category-bar {
  background: var(--farm-primary-dark);
  padding: 0 20px;
  overflow-x: auto; scrollbar-width: none;
}
.category-bar::-webkit-scrollbar { display: none; }
.category-list {
  display: flex; gap: 2px;
  list-style: none;
  max-width: 1200px; margin: 0 auto;
  padding: 0;
  white-space: nowrap;
}
.category-list li a {
  display: block;
  padding: 10px 16px;
  font-size: 13px; font-weight: 600;
  color: rgba(255,255,255,0.85);
  transition: all .15s;
  border-bottom: 2px solid transparent;
}
.category-list li a:hover,
.category-list li a.active,
.category-list li.current-cat a {
  color: white;
  border-bottom-color: var(--farm-accent);
}

/* ============================================
   LAYOUT
   ============================================ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Hero banner */
.hero-banner {
  background: linear-gradient(135deg, var(--farm-primary) 0%, var(--farm-primary-dark) 60%, #005250 100%);
  padding: 40px 20px;
  position: relative; overflow: hidden;
}
.hero-banner::before {
  content: '';
  position: absolute; top: -60px; right: -60px;
  width: 320px; height: 320px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}
.hero-banner::after {
  content: '';
  position: absolute; bottom: -80px; right: 80px;
  width: 200px; height: 200px;
  background: rgba(255,255,255,0.03);
  border-radius: 50%;
}
.hero-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; position: relative; z-index: 1;
}
.hero-text .tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--farm-accent);
  color: white; font-size: 12px; font-weight: 700;
  padding: 4px 12px; border-radius: 999px;
  margin-bottom: 12px; text-transform: uppercase; letter-spacing: .5px;
}
.hero-text h1 {
  font-family: var(--font-heading);
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 900;
  color: white;
  line-height: 1.15;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}
.hero-text p {
  color: rgba(255,255,255,0.75);
  font-size: 15px; margin-bottom: 20px;
}
.hero-cta {
  display: flex; gap: 10px; flex-wrap: wrap;
}
.btn-primary {
  background: var(--farm-accent);
  color: var(--farm-text);
  padding: 12px 24px;
  border-radius: var(--farm-radius-pill);
  font-weight: 700; font-size: 14px;
  transition: all .15s; display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 4px 12px rgba(253,184,19,0.40);
}
.btn-primary:hover { background: var(--farm-accent-dark); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(253,184,19,0.50); }
.btn-outline-white {
  background: rgba(255,255,255,0.12);
  color: white;
  padding: 12px 24px;
  border-radius: var(--farm-radius-pill);
  font-weight: 700; font-size: 14px;
  transition: all .15s; display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(255,255,255,0.25);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.2); }
.hero-badges {
  display: flex; flex-direction: column; gap: 10px; flex-shrink: 0;
}
.hero-badge {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--farm-radius);
  padding: 12px 16px;
  color: white; min-width: 160px; text-align: center;
}
.hero-badge .badge-num {
  font-family: var(--font-heading);
  font-size: 24px; font-weight: 900; display: block;
}
.hero-badge .badge-label { font-size: 12px; opacity: .75; }

/* Info strips */
.info-strip {
  background: var(--farm-primary-light);
  border-bottom: 1px solid var(--farm-primary-mid);
  padding: 0 20px;
}
.info-strip-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; gap: 0;
  overflow-x: auto; scrollbar-width: none;
}
.info-strip-inner::-webkit-scrollbar { display: none; }
.info-item {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 20px;
  font-size: 13px; font-weight: 600;
  color: var(--farm-primary-dark);
  white-space: nowrap;
  border-right: 1px solid var(--farm-primary-mid);
}
.info-item svg { width: 16px; height: 16px; color: var(--farm-primary); flex-shrink: 0; }

/* Section header */
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-heading);
  font-size: 20px; font-weight: 800;
  color: var(--farm-text);
  display: flex; align-items: center; gap: 8px;
}
.section-title::before {
  content: '';
  display: block; width: 4px; height: 20px;
  background: var(--farm-primary);
  border-radius: 2px;
}
.see-all {
  font-size: 13px; font-weight: 700;
  color: var(--farm-primary);
  display: flex; align-items: center; gap: 4px;
}
.see-all:hover { color: var(--farm-primary-dark); }

/* Category pills */
.category-pills-section { padding: 24px 0 8px; }
.category-pills {
  display: flex; gap: 10px;
  overflow-x: auto; scrollbar-width: none;
  padding-bottom: 4px;
}
.category-pills::-webkit-scrollbar { display: none; }
.cat-pill {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  flex-shrink: 0; cursor: pointer;
  transition: transform .15s;
}
.cat-pill:hover { transform: translateY(-2px); }
.cat-pill-icon {
  width: 64px; height: 64px;
  background: var(--farm-primary-light);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  border: 2px solid transparent;
  transition: all .15s;
}
.cat-pill:hover .cat-pill-icon,
.cat-pill.active .cat-pill-icon {
  background: var(--farm-primary-mid);
  border-color: var(--farm-primary);
}
.cat-pill span {
  font-size: 12px; font-weight: 700;
  color: var(--farm-text-muted); text-align: center;
  max-width: 72px; line-height: 1.2;
}

/* ============================================
   PRODUCT GRID
   ============================================ */
.products-section { padding: 20px 0 32px; }
.products-grid,
ul.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.product-card,
ul.products li.product {
  background: var(--farm-white);
  border-radius: var(--farm-radius);
  overflow: hidden;
  border: 1px solid var(--farm-border);
  transition: all .2s; cursor: pointer;
  box-shadow: var(--farm-shadow);
  list-style: none;
  padding: 0;
  margin: 0;
}
.product-card:hover,
ul.products li.product:hover {
  transform: translateY(-3px);
  box-shadow: var(--farm-shadow-md);
  border-color: var(--farm-primary-mid);
}
.product-img,
ul.products li.product .attachment-woocommerce_thumbnail {
  background: var(--farm-primary-light);
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  font-size: 52px;
  position: relative;
  object-fit: contain;
  width: 100%;
}
.product-badge {
  position: absolute; top: 8px; left: 8px;
  background: var(--farm-accent);
  color: white; font-size: 10px; font-weight: 700;
  padding: 3px 8px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: .5px;
  z-index: 2;
}
.product-badge.receita {
  background: var(--farm-danger);
  right: 8px; left: auto;
}
.product-info { padding: 12px; }
.product-brand {
  font-size: 10px; font-weight: 700; color: var(--farm-text-light);
  text-transform: uppercase; letter-spacing: .5px;
  margin-bottom: 3px;
}
.product-name {
  font-size: 13px; font-weight: 700; color: var(--farm-text);
  line-height: 1.3; margin-bottom: 4px;
}
.product-unit { font-size: 11px; color: var(--farm-text-muted); margin-bottom: 8px; }
.product-price-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 4px;
}
.product-price {
  font-family: var(--font-heading);
  font-size: 18px; font-weight: 900;
  color: var(--farm-primary);
}
.product-price-old {
  font-size: 11px; color: var(--farm-text-light);
  text-decoration: line-through; font-weight: 400;
  display: block;
}
.add-btn {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--farm-primary);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700;
  transition: all .15s; flex-shrink: 0;
  border: none; cursor: pointer;
}
.add-btn:hover { background: var(--farm-primary-dark); transform: scale(1.1); }
.whatsapp-mini {
  display: flex; align-items: center; gap: 4px;
  background: #E8F9F0;
  border: 1px solid #C3E6D2;
  color: var(--farm-whatsapp-dark);
  font-size: 11px; font-weight: 700;
  padding: 6px 10px; border-radius: 6px;
  width: 100%; justify-content: center;
  margin-top: 8px; transition: all .15s;
}
.whatsapp-mini:hover { background: #D0F5E4; }

/* Promo banner */
.promo-banner {
  background: linear-gradient(135deg, #fdb813 0%, #d49800 100%);
  border-radius: var(--farm-radius);
  padding: 20px 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin: 8px 0 24px;
  overflow: hidden; position: relative;
}
.promo-banner::after {
  content: '';
  position: absolute; right: 160px; top: 50%;
  transform: translateY(-50%);
  font-size: 48px; opacity: 0.12;
}
.promo-banner h3 {
  font-family: var(--font-heading);
  font-size: 18px; font-weight: 900;
  color: #1a1a1a; margin-bottom: 4px;
}
.promo-banner p { color: rgba(0,0,0,0.65); font-size: 13px; }
.btn-promo {
  background: white; color: var(--farm-primary-dark);
  padding: 10px 20px; border-radius: 999px;
  font-weight: 800; font-size: 13px;
  white-space: nowrap; transition: all .15s;
  flex-shrink: 0;
}
.btn-promo:hover { background: var(--farm-primary-light); }

/* ============================================
   SINGLE PRODUCT PAGE
   ============================================ */
.product-page { background: var(--farm-bg); min-height: 100vh; }
.breadcrumb,
.woocommerce-breadcrumb {
  padding: 14px 20px; font-size: 12px; color: var(--farm-text-muted);
  display: flex; align-items: center; gap: 6px;
  max-width: 1200px; margin: 0 auto;
}
.breadcrumb a,
.woocommerce-breadcrumb a { color: var(--farm-primary); }
.breadcrumb span,
.woocommerce-breadcrumb span { color: var(--farm-text-light); }

.product-layout {
  max-width: 1200px; margin: 0 auto;
  padding: 0 20px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.product-gallery {
  background: var(--farm-white);
  border-radius: var(--farm-radius);
  border: 1px solid var(--farm-border);
  overflow: hidden;
  box-shadow: var(--farm-shadow);
}
.product-main-img {
  background: var(--farm-primary-light);
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  font-size: 120px; position: relative;
}
.product-main-img img {
  width: 100%; height: 100%;
  object-fit: contain; padding: 20px;
}
.product-badge-large {
  position: absolute; top: 16px; left: 16px;
  background: var(--farm-accent);
  color: white; font-size: 13px; font-weight: 700;
  padding: 6px 14px; border-radius: 999px;
  z-index: 2;
}
.product-thumbs {
  display: flex; gap: 8px; padding: 12px;
}
.product-thumb {
  width: 60px; height: 60px;
  background: var(--farm-primary-light);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; cursor: pointer;
  border: 2px solid transparent; transition: border .15s;
  overflow: hidden;
}
.product-thumb.active { border-color: var(--farm-primary); }
.product-thumb img { width: 100%; height: 100%; object-fit: contain; }

.product-details {
  display: flex; flex-direction: column; gap: 16px;
}
.product-meta-top {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.meta-tag {
  background: var(--farm-primary-light);
  color: var(--farm-primary-dark);
  font-size: 11px; font-weight: 700;
  padding: 4px 10px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: .5px;
}
.meta-tag.purple { background: var(--farm-danger-light); color: var(--farm-danger); }
.product-title,
.single-product .product_title {
  font-family: var(--font-heading);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 900; color: var(--farm-text);
  line-height: 1.2; letter-spacing: -0.5px;
}
.product-subtitle {
  font-size: 14px; color: var(--farm-text-muted);
  margin-top: 4px;
}
.product-info-table {
  background: var(--farm-bg);
  border: 1px solid var(--farm-border);
  border-radius: var(--farm-radius-sm);
  overflow: hidden;
}
.info-row {
  display: flex; align-items: center;
  padding: 9px 14px;
  border-bottom: 1px solid var(--farm-border);
  font-size: 13px;
}
.info-row:last-child { border-bottom: none; }
.info-label { color: var(--farm-text-muted); font-weight: 600; min-width: 140px; }
.info-value { color: var(--farm-text); font-weight: 500; }

.price-section {
  background: var(--farm-white);
  border: 1px solid var(--farm-border);
  border-radius: var(--farm-radius);
  padding: 20px;
  box-shadow: var(--farm-shadow);
}
.price-label { font-size: 12px; font-weight: 700; color: var(--farm-text-muted); text-transform: uppercase; letter-spacing: .5px; }
.price-main,
.single-product .price {
  font-family: var(--font-heading);
  font-size: 38px; font-weight: 900;
  color: var(--farm-primary); line-height: 1;
  margin: 4px 0 2px;
}
.price-pix {
  font-size: 13px; color: var(--farm-primary-dark);
  background: var(--farm-primary-light);
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px; border-radius: 999px;
  font-weight: 600; margin-bottom: 16px;
}
.qty-row {
  display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
}
.qty-label { font-size: 13px; font-weight: 700; color: var(--farm-text-muted); }
.qty-control {
  display: flex; align-items: center; gap: 0;
  border: 1.5px solid var(--farm-border);
  border-radius: 8px; overflow: hidden;
}
.qty-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700;
  color: var(--farm-primary);
  background: var(--farm-bg);
  transition: background .1s;
  border: none; cursor: pointer;
}
.qty-btn:hover { background: var(--farm-primary-light); }
.qty-num {
  width: 40px; text-align: center;
  font-size: 16px; font-weight: 700;
  color: var(--farm-text);
  border-left: 1.5px solid var(--farm-border);
  border-right: 1.5px solid var(--farm-border);
  line-height: 36px;
}
.action-buttons { display: flex; flex-direction: column; gap: 10px; }
.btn-whatsapp {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--farm-whatsapp);
  color: white;
  padding: 15px 20px; border-radius: var(--farm-radius);
  font-weight: 800; font-size: 16px;
  transition: all .15s;
  box-shadow: 0 4px 14px rgba(37,211,102,0.35);
  border: none; cursor: pointer;
}
.btn-whatsapp:hover { background: var(--farm-whatsapp-dark); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(37,211,102,0.4); }
.btn-cart-large {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--farm-bg);
  border: 2px solid var(--farm-primary);
  color: var(--farm-primary);
  padding: 14px 20px; border-radius: var(--farm-radius);
  font-weight: 800; font-size: 15px;
  transition: all .15s;
  cursor: pointer;
}
.btn-cart-large:hover { background: var(--farm-primary-light); }

/* Receita upload */
.receita-box {
  background: var(--farm-danger-light);
  border: 1.5px dashed #f4a0a4;
  border-radius: var(--farm-radius);
  padding: 16px;
}
.receita-box h4 {
  font-size: 14px; font-weight: 800; color: var(--farm-danger);
  display: flex; align-items: center; gap: 6px; margin-bottom: 6px;
}
.receita-box p { font-size: 12px; color: #6B7280; margin-bottom: 12px; }
.upload-area {
  background: white; border: 1.5px dashed #f4a0a4;
  border-radius: 8px; padding: 14px;
  text-align: center; cursor: pointer; transition: all .15s;
}
.upload-area:hover { background: var(--farm-danger-light); border-color: var(--farm-danger); }
.upload-area p { font-size: 12px; color: var(--farm-danger); font-weight: 600; margin-top: 6px; }
.upload-area span { font-size: 11px; color: #9CA3AF; }

/* Delivery options */
.delivery-options { display: flex; flex-direction: column; gap: 8px; }
.delivery-opt {
  display: flex; align-items: center; gap: 12px;
  background: var(--farm-white);
  border: 1.5px solid var(--farm-border);
  border-radius: var(--farm-radius-sm);
  padding: 12px 14px; cursor: pointer; transition: all .15s;
}
.delivery-opt:hover, .delivery-opt.selected {
  border-color: var(--farm-primary);
  background: var(--farm-primary-light);
}
.delivery-opt-icon {
  width: 36px; height: 36px;
  background: var(--farm-primary-light);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.delivery-opt-info { flex: 1; }
.delivery-opt-name { font-size: 13px; font-weight: 700; color: var(--farm-text); }
.delivery-opt-desc { font-size: 11px; color: var(--farm-text-muted); }
.delivery-opt-price {
  font-family: var(--font-heading);
  font-size: 16px; font-weight: 900;
  color: var(--farm-primary);
}
.delivery-opt-price.free { color: var(--farm-whatsapp-dark); }

/* ============================================
   CHECKOUT
   ============================================ */
.checkout-page,
.woocommerce-checkout { background: var(--farm-bg); min-height: 100vh; }
.checkout-header {
  background: var(--farm-white);
  border-bottom: 1px solid var(--farm-border);
  padding: 16px 20px;
}
.checkout-header-inner {
  max-width: 900px; margin: 0 auto;
  display: flex; align-items: center; gap: 12px;
}
.checkout-header h1 {
  font-family: var(--font-heading);
  font-size: 20px; font-weight: 900;
}
.checkout-steps {
  display: flex; align-items: center; gap: 4px;
  margin-left: auto; font-size: 12px;
}
.step {
  padding: 4px 12px; border-radius: 999px;
  font-weight: 700; color: var(--farm-text-light);
  background: var(--farm-bg); border: 1px solid var(--farm-border);
}
.step.active { background: var(--farm-primary); color: white; border-color: var(--farm-primary); }
.step.done { background: var(--farm-primary-light); color: var(--farm-primary); border-color: var(--farm-primary-mid); }
.step-sep { color: var(--farm-border); font-size: 14px; }

.checkout-layout {
  max-width: 900px; margin: 0 auto;
  padding: 24px 20px;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 20px;
  align-items: start;
}

.checkout-form-section {
  background: var(--farm-white);
  border-radius: var(--farm-radius);
  border: 1px solid var(--farm-border);
  overflow: hidden;
  box-shadow: var(--farm-shadow);
}
.form-section-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--farm-border);
  display: flex; align-items: center; gap: 10px;
}
.form-section-header h3 {
  font-family: var(--font-heading);
  font-size: 15px; font-weight: 800;
}
.form-section-num {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--farm-primary); color: white;
  font-size: 12px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.form-body { padding: 20px; }
.form-row { display: flex; gap: 12px; }
.form-group { flex: 1; display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.form-group label {
  font-size: 12px; font-weight: 700; color: var(--farm-text-muted);
  text-transform: uppercase; letter-spacing: .5px;
}
.form-group input,
.form-group textarea,
.form-group select,
.woocommerce input.input-text,
.woocommerce select,
.woocommerce textarea {
  padding: 11px 14px;
  border: 1.5px solid var(--farm-border);
  border-radius: var(--farm-radius-sm);
  font-family: var(--font-body);
  font-size: 15px; color: var(--farm-text);
  background: var(--farm-white);
  transition: border .15s; outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus,
.woocommerce input.input-text:focus,
.woocommerce select:focus,
.woocommerce textarea:focus {
  border-color: var(--farm-primary);
  box-shadow: 0 0 0 3px rgba(0,169,164,0.1);
}
.form-group textarea { resize: vertical; min-height: 80px; }
.required { color: var(--farm-accent); }

/* Payment methods */
.payment-options { display: flex; flex-direction: column; gap: 8px; }
.payment-opt {
  display: flex; align-items: center; gap: 12px;
  background: var(--farm-bg);
  border: 1.5px solid var(--farm-border);
  border-radius: var(--farm-radius-sm);
  padding: 13px 16px; cursor: pointer; transition: all .15s;
}
.payment-opt:hover, .payment-opt.selected {
  border-color: var(--farm-primary);
  background: var(--farm-primary-light);
}
.payment-radio {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--farm-border);
  flex-shrink: 0; transition: all .15s;
  display: flex; align-items: center; justify-content: center;
}
.payment-opt.selected .payment-radio {
  border-color: var(--farm-primary);
  background: var(--farm-primary);
}
.payment-opt.selected .payment-radio::after {
  content: '';
  width: 7px; height: 7px; border-radius: 50%;
  background: white;
}
.payment-opt-label { font-size: 14px; font-weight: 600; }
.payment-opt-badge {
  margin-left: auto;
  background: var(--farm-accent-soft);
  color: var(--farm-accent);
  font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: 999px;
  text-transform: uppercase;
}

/* Order summary */
.order-summary {
  background: var(--farm-white);
  border-radius: var(--farm-radius);
  border: 1px solid var(--farm-border);
  overflow: hidden;
  box-shadow: var(--farm-shadow);
  position: sticky; top: 100px;
}
.summary-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--farm-border);
  font-family: var(--font-heading);
  font-size: 15px; font-weight: 800;
}
.summary-items { padding: 16px 20px; display: flex; flex-direction: column; gap: 12px; }
.summary-item {
  display: flex; align-items: center; gap: 10px;
}
.summary-item-img {
  width: 48px; height: 48px;
  background: var(--farm-primary-light);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; flex-shrink: 0;
  overflow: hidden;
}
.summary-item-img img { width: 100%; height: 100%; object-fit: contain; }
.summary-item-info { flex: 1; min-width: 0; }
.summary-item-name { font-size: 13px; font-weight: 700; color: var(--farm-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.summary-item-qty { font-size: 11px; color: var(--farm-text-muted); }
.summary-item-price {
  font-family: var(--font-heading);
  font-size: 15px; font-weight: 800; color: var(--farm-text);
}
.summary-divider { height: 1px; background: var(--farm-border); margin: 0 20px; }
.summary-totals { padding: 14px 20px; display: flex; flex-direction: column; gap: 8px; }
.total-row {
  display: flex; justify-content: space-between;
  font-size: 13px; color: var(--farm-text-muted);
}
.total-row.main {
  font-size: 16px; font-weight: 800; color: var(--farm-text);
  padding-top: 8px; border-top: 1px solid var(--farm-border);
  margin-top: 4px;
}
.total-row.main .total-val { color: var(--farm-primary); font-family: var(--font-heading); font-size: 20px; }
.summary-footer { padding: 16px 20px; background: var(--farm-bg); border-top: 1px solid var(--farm-border); }
.btn-checkout-final {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--farm-primary);
  color: white; width: 100%;
  padding: 16px;
  border-radius: var(--farm-radius);
  font-weight: 800; font-size: 16px;
  transition: all .15s;
  box-shadow: 0 4px 14px rgba(0,169,164,0.30);
  border: none; cursor: pointer;
}
.btn-checkout-final:hover { background: var(--farm-primary-dark); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,169,164,0.40); }
.checkout-note {
  text-align: center; font-size: 11px;
  color: var(--farm-text-muted); margin-top: 10px;
  display: flex; align-items: center; justify-content: center; gap: 4px;
}
.btn-whatsapp-checkout {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--farm-whatsapp);
  color: white; width: 100%;
  padding: 14px;
  border-radius: var(--farm-radius);
  font-weight: 800; font-size: 15px;
  transition: all .15s; margin-top: 8px;
  box-shadow: 0 4px 14px rgba(37,211,102,0.25);
  border: none; cursor: pointer;
}
.btn-whatsapp-checkout:hover { background: var(--farm-whatsapp-dark); transform: translateY(-1px); }

/* ============================================
   WHATSAPP FLOAT BUTTON
   ============================================ */
.whatsapp-float {
  position: fixed;
  bottom: 24px; right: 24px; z-index: 1000;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--farm-whatsapp);
  color: white;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.5);
  transition: all .2s; cursor: pointer;
  animation: pulse-wpp 2.5s ease-in-out infinite;
  border: none;
}
.whatsapp-float:hover { background: var(--farm-whatsapp-dark); transform: scale(1.08); animation: none; }
@keyframes pulse-wpp {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.5); }
  50% { box-shadow: 0 4px 30px rgba(37,211,102,0.8), 0 0 0 8px rgba(37,211,102,0.1); }
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--farm-text);
  color: rgba(255,255,255,0.7);
  padding: 40px 20px 20px;
  margin-top: 40px;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 32px; padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .site-logo { margin-bottom: 12px; }
.footer-brand p { font-size: 13px; line-height: 1.6; max-width: 280px; }
.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 13px; font-weight: 800;
  color: white; text-transform: uppercase;
  letter-spacing: .5px; margin-bottom: 12px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li { font-size: 13px; }
.footer-col ul li a { color: rgba(255,255,255,0.65); transition: color .15s; }
.footer-col ul li a:hover { color: white; }
.footer-bottom {
  max-width: 1200px; margin: 0 auto;
  padding-top: 20px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 8px;
  font-size: 12px;
}
.footer-bottom a { color: var(--farm-primary); }

/* ============================================
   WOOCOMMERCE OVERRIDES
   ============================================ */
.woocommerce .woocommerce-ordering,
.woocommerce .woocommerce-result-count {
  margin-bottom: 16px;
}
.woocommerce nav.woocommerce-pagination ul {
  border: none;
  display: flex; gap: 4px; justify-content: center;
  margin-top: 24px;
}
.woocommerce nav.woocommerce-pagination ul li {
  border: none;
}
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  padding: 8px 14px;
  border-radius: var(--farm-radius-sm);
  font-weight: 700; font-size: 14px;
  color: var(--farm-text-muted);
  background: var(--farm-white);
  border: 1px solid var(--farm-border);
}
.woocommerce nav.woocommerce-pagination ul li span.current {
  background: var(--farm-primary);
  color: white;
  border-color: var(--farm-primary);
}
.woocommerce nav.woocommerce-pagination ul li a:hover {
  background: var(--farm-primary-light);
  color: var(--farm-primary);
}

/* WooCommerce notices */
.woocommerce-message,
.woocommerce-info {
  border-top-color: var(--farm-primary);
  background: var(--farm-primary-light);
  color: var(--farm-primary-dark);
}
.woocommerce-error {
  border-top-color: var(--farm-danger);
  background: var(--farm-danger-light);
  color: var(--farm-danger);
}
.woocommerce-message::before,
.woocommerce-info::before {
  color: var(--farm-primary);
}

/* WooCommerce buttons */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  background: var(--farm-primary);
  color: white;
  border-radius: var(--farm-radius-sm);
  font-weight: 700;
  padding: 12px 24px;
  border: none;
  transition: all .15s;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover {
  background: var(--farm-primary-dark);
  color: white;
}
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
  background: var(--farm-primary);
}
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover {
  background: var(--farm-primary-dark);
}

/* Sale badge WooCommerce */
.woocommerce span.onsale {
  background: var(--farm-accent);
  color: white;
  font-weight: 700;
  border-radius: 999px;
  padding: 4px 12px;
  min-height: auto;
  min-width: auto;
  line-height: 1.5;
}

/* Star ratings */
.woocommerce .star-rating {
  color: var(--farm-accent);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .product-layout { grid-template-columns: 1fr; }
  .checkout-layout { grid-template-columns: 1fr; }
  .hero-badges { display: none; }
  .products-grid,
  ul.products { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .header-actions .header-icon-btn span { display: none; }
}
@media (max-width: 480px) {
  .products-grid,
  ul.products { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .hero-text h1 { font-size: 22px; }
  .product-info { padding: 8px; }
  .product-name { font-size: 12px; }
  .product-price { font-size: 16px; }
}
