/*
Theme Name: Boja Seeds
Theme URI: https://bojaseeds.pk
Author: Boja Seeds
Description: A modern, mobile-friendly WooCommerce theme for agricultural input stores in Pakistan - seeds, fertilizers, micronutrients, crop protection, bio-stimulants and tools. Shop by crop, pest, disease and nutrient deficiency.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.6
WC requires at least: 8.0
WC tested up to: 9.0
Text Domain: boja-seeds
*/

:root{
  --bg:#F7F4EC;
  --ink:#1E2318;
  --ink-soft:#585245;
  --forest:#204936;
  --forest-deep:#153327;
  --leaf:#4F8F63;
  --leaf-light:#E4EEE2;
  --sky:#2C5D74;
  --sky-light:#E3EDF1;
  --harvest:#D9A441;
  --harvest-deep:#B9852B;
  --line:#DFD8C4;
  --card:#FFFFFF;
  --radius:10px;
  --shadow:0 4px 18px rgba(30,35,24,0.06);
  --ease:cubic-bezier(.22,.68,0,1);
}
*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  background:var(--bg); color:var(--ink);
  font-family:'Inter',sans-serif; line-height:1.5;
  -webkit-font-smoothing:antialiased; margin:0;
}
h1,h2,h3,h4{font-family:'Space Grotesk',sans-serif; color:var(--forest-deep); line-height:1.15; margin:0;}
.mono{font-family:'IBM Plex Mono',monospace; letter-spacing:0.02em;}
a{color:inherit; text-decoration:none;}
img{max-width:100%; height:auto; display:block;}
ul{list-style:none; margin:0; padding:0;}
.wrap{max-width:1200px; margin:0 auto; padding:0 24px;}
section{padding:64px 0;}
.eyebrow{font-family:'IBM Plex Mono',monospace; font-size:12px; letter-spacing:.12em; text-transform:uppercase; color:var(--leaf); font-weight:600; margin-bottom:10px; display:block;}
.btn{display:inline-flex; align-items:center; gap:8px; padding:13px 26px; border-radius:999px; font-weight:600; font-size:14.5px; border:1.5px solid transparent; cursor:pointer; transition:transform .2s var(--ease), box-shadow .2s var(--ease); }
.btn:hover{transform:translateY(-2px);}
.btn:active{transform:translateY(0) scale(.97);}
.btn-primary{background:var(--forest); color:#fff;}
.btn-primary:hover{box-shadow:0 8px 20px rgba(32,73,54,.3);}
.btn-gold{background:var(--harvest); color:var(--forest-deep);}
.btn-gold:hover{box-shadow:0 8px 20px rgba(217,164,65,.35);}
.btn-outline{background:transparent; border-color:var(--forest); color:var(--forest);}
.sec-head{display:flex; justify-content:space-between; align-items:flex-end; margin-bottom:30px; gap:16px; flex-wrap:wrap;}
.sec-head h2{font-size:28px;}
.sec-head a.viewall{font-weight:700; font-size:13.5px; color:var(--sky); border-bottom:2px solid var(--sky); padding-bottom:2px;}

/* ---------- Scroll reveal animation system ---------- */
.reveal{opacity:0; transform:translateY(24px); transition:opacity .7s var(--ease), transform .7s var(--ease);}
.reveal.is-visible{opacity:1; transform:translateY(0);}
.reveal-stagger > *{opacity:0; transform:translateY(20px); transition:opacity .6s var(--ease), transform .6s var(--ease);}
.reveal-stagger.is-visible > *{opacity:1; transform:translateY(0);}
.reveal-stagger.is-visible > *:nth-child(1){transition-delay:.03s;}
.reveal-stagger.is-visible > *:nth-child(2){transition-delay:.09s;}
.reveal-stagger.is-visible > *:nth-child(3){transition-delay:.15s;}
.reveal-stagger.is-visible > *:nth-child(4){transition-delay:.21s;}
.reveal-stagger.is-visible > *:nth-child(5){transition-delay:.27s;}
.reveal-stagger.is-visible > *:nth-child(6){transition-delay:.33s;}
.reveal-stagger.is-visible > *:nth-child(7){transition-delay:.39s;}
.reveal-stagger.is-visible > *:nth-child(8){transition-delay:.45s;}
@media (prefers-reduced-motion:reduce){
  .reveal,.reveal-stagger > *{opacity:1 !important; transform:none !important; transition:none !important;}
  *{animation:none !important;}
}

/* ---------- Top trust strip ---------- */
.topstrip{background:var(--forest-deep); color:#EDEBE0; font-size:12.5px;}
.topstrip .wrap{display:flex; justify-content:space-between; align-items:center; padding:8px 24px; gap:16px; overflow-x:auto;}
.topstrip ul{display:flex; gap:22px; white-space:nowrap;}
.topstrip li{display:flex; align-items:center; gap:6px; opacity:.92;}
.topstrip .lang{display:flex; gap:14px; white-space:nowrap;}

/* ---------- Header ---------- */
.site-header{background:var(--bg); border-bottom:1px solid var(--line); position:sticky; top:0; z-index:50; transition:box-shadow .3s ease, padding .3s ease;}
.site-header.is-stuck{box-shadow:0 6px 20px rgba(20,25,15,.08);}
.header-row{display:flex; align-items:center; gap:24px; padding:16px 24px; transition:padding .3s ease;}
.site-header.is-stuck .header-row{padding:10px 24px;}
.logo{display:flex; align-items:center; gap:10px; font-family:'Space Grotesk',sans-serif; font-weight:700; font-size:21px; color:var(--forest-deep); flex-shrink:0;}
.logo img{max-height:38px; width:auto;}
.logo .mark{width:38px; height:38px; border-radius:9px; background:linear-gradient(145deg,var(--leaf),var(--forest)); display:flex; align-items:center; justify-content:center; color:#fff; font-size:18px;}
.searchbar{flex:1; display:flex; align-items:center; background:#fff; border:1.5px solid var(--line); border-radius:999px; padding:6px 6px 6px 18px; max-width:560px; transition:border-color .2s ease;}
.searchbar:focus-within{border-color:var(--leaf);}
.searchbar input{flex:1; border:none; outline:none; font-size:14px; background:transparent; color:var(--ink);}
.searchbar button{background:var(--forest); color:#fff; border:none; border-radius:999px; width:36px; height:36px; cursor:pointer;}
.header-icons{display:flex; align-items:center; gap:18px; flex-shrink:0;}
.header-icons .icon-btn{position:relative; display:flex; flex-direction:column; align-items:center; font-size:11px; color:var(--ink-soft); font-weight:600; gap:3px; cursor:pointer;}
.badge{position:absolute; top:-6px; right:-9px; background:var(--harvest); color:var(--forest-deep); font-size:10px; font-weight:700; border-radius:999px; padding:1px 5px; transition:transform .3s var(--ease);}
.badge.bump{animation:bump .4s var(--ease);}
@keyframes bump{0%{transform:scale(1);}40%{transform:scale(1.5);}100%{transform:scale(1);}}
.burger{display:none; flex-direction:column; gap:4px; cursor:pointer; background:none; border:none;}
.burger span{width:22px; height:2px; background:var(--forest-deep); transition:transform .25s ease, opacity .25s ease;}
.burger.open span:nth-child(1){transform:translateY(6px) rotate(45deg);}
.burger.open span:nth-child(2){opacity:0;}
.burger.open span:nth-child(3){transform:translateY(-6px) rotate(-45deg);}

nav.catnav{background:var(--forest);}
nav.catnav .wrap{display:flex; align-items:center; gap:0; padding:0 24px; overflow-x:auto;}
nav.catnav ul{display:flex; gap:28px;}
nav.catnav a{color:#EDEBE0; font-size:13.5px; font-weight:600; padding:13px 0; white-space:nowrap; border-bottom:2px solid transparent; display:block; transition:color .2s ease, border-color .2s ease;}
nav.catnav a:hover, nav.catnav .current-menu-item > a{color:#fff; border-color:var(--harvest);}

.mobile-menu{display:none; flex-direction:column; background:#fff; border-bottom:1px solid var(--line); padding:12px 24px 18px; max-height:0; overflow:hidden; transition:max-height .35s var(--ease);}
.mobile-menu.open{display:flex; max-height:600px;}
.mobile-menu a{padding:10px 0; border-bottom:1px solid var(--line); font-weight:600; font-size:14px; color:var(--forest-deep);}

/* ---------- Hero ---------- */
.hero{background:linear-gradient(180deg,var(--leaf-light) 0%,var(--bg) 78%); padding:56px 0 40px; overflow:hidden;}
.hero .wrap{display:grid; grid-template-columns:1.05fr .95fr; gap:48px; align-items:center;}
.hero h1{font-size:44px; margin-bottom:16px; letter-spacing:-.5px;}
.hero h1 span{color:var(--leaf);}
.hero p.lead{color:var(--ink-soft); font-size:16px; max-width:480px; margin-bottom:26px;}
.hero-ctas{display:flex; gap:14px; margin-bottom:34px; flex-wrap:wrap;}

.finder{background:var(--card); border:1px solid var(--line); border-radius:16px; box-shadow:var(--shadow); padding:22px 22px 24px; max-width:540px;}
.finder-title{font-weight:700; font-size:14.5px; color:var(--forest-deep); margin-bottom:14px; display:flex; align-items:center; gap:8px;}
.finder-tabs{display:flex; gap:6px; background:var(--leaf-light); border-radius:999px; padding:4px; margin-bottom:16px; position:relative;}
.finder-tabs button{flex:1; border:none; background:transparent; padding:9px 6px; border-radius:999px; font-size:12.5px; font-weight:700; color:var(--forest-deep); cursor:pointer; position:relative; z-index:1; transition:color .25s ease;}
.finder-tabs button.active{color:#fff;}
.finder-tabs .slider{position:absolute; top:4px; bottom:4px; left:4px; width:calc(25% - 4px); background:var(--forest); border-radius:999px; transition:transform .3s var(--ease); z-index:0;}
.finder-chips{display:flex; flex-wrap:wrap; gap:8px;}
.chip{border:1.5px solid var(--line); background:#fff; padding:8px 14px; border-radius:999px; font-size:12.5px; font-weight:600; color:var(--ink-soft); cursor:pointer; transition:.2s var(--ease);}
.chip:hover{border-color:var(--leaf); color:var(--forest-deep); background:var(--leaf-light); transform:translateY(-2px);}
.finder-panel{display:none; flex-wrap:wrap; gap:8px; animation:fadeIn .35s var(--ease);}
.finder-panel.active{display:flex;}
@keyframes fadeIn{from{opacity:0; transform:translateY(6px);} to{opacity:1; transform:translateY(0);}}
.finder-go{margin-top:16px; width:100%; justify-content:center;}

.hero-visual{position:relative; aspect-ratio:1/1; max-width:420px; margin:0 auto;}
.hv-blob{position:absolute; inset:0; background:radial-gradient(circle at 30% 30%,var(--leaf) 0%,var(--forest) 70%); border-radius:42% 58% 62% 38%/45% 40% 60% 55%; opacity:.14; animation:float 7s ease-in-out infinite;}
@keyframes float{0%,100%{transform:translateY(0) rotate(0deg);}50%{transform:translateY(-14px) rotate(4deg);}}
.hv-card{position:absolute; background:#fff; border-radius:14px; box-shadow:var(--shadow); padding:14px 16px; font-size:12.5px; font-weight:700; color:var(--forest-deep); display:flex; align-items:center; gap:10px; animation:float 6s ease-in-out infinite;}
.hv-1{top:6%; left:2%; animation-delay:.2s;} .hv-2{bottom:14%; right:0; animation-delay:.9s;} .hv-3{top:44%; left:32%; background:var(--forest); color:#fff; animation-delay:1.6s;}
.hv-dot{width:8px; height:8px; border-radius:50%; background:var(--harvest);}

/* ---------- Stats ---------- */
.stats{background:var(--forest); color:#fff;}
.stats .wrap{display:grid; grid-template-columns:repeat(4,1fr); gap:24px; text-align:center;}
.stats h3{color:#fff; font-size:30px;}
.stats span{font-size:12.5px; color:#C9DBCF; font-weight:600;}

/* ---------- Category grid ---------- */
.cat-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:18px;}
.cat-card{background:var(--card); border:1px solid var(--line); border-radius:var(--radius); padding:22px 18px; text-align:center; transition:.25s var(--ease);}
.cat-card:hover{border-color:var(--leaf); transform:translateY(-5px); box-shadow:var(--shadow);}
.cat-icon{width:52px; height:52px; border-radius:12px; margin:0 auto 14px; display:flex; align-items:center; justify-content:center; font-size:24px; transition:transform .3s var(--ease);}
.cat-card:hover .cat-icon{transform:scale(1.1) rotate(-4deg);}
.cat-card h4{font-size:14.5px; margin-bottom:5px;}
.cat-card p{font-size:12px; color:var(--ink-soft); margin:0;}

/* ---------- Crop chips row ---------- */
.crop-row{display:flex; gap:12px; overflow-x:auto; padding-bottom:8px;}
.crop-pill{flex-shrink:0; background:var(--sky-light); color:var(--sky); font-weight:700; font-size:13px; padding:10px 20px; border-radius:999px; display:flex; align-items:center; gap:8px; border:1px solid transparent; transition:.2s ease;}
.crop-pill:hover{border-color:var(--sky); transform:translateY(-2px);}

/* ---------- Product cards ---------- */
.prod-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:20px;}
.prod-card{background:var(--card); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; transition:.25s var(--ease); position:relative;}
.prod-card:hover{box-shadow:var(--shadow); transform:translateY(-5px);}
.prod-thumb{aspect-ratio:1/0.85; display:flex; align-items:center; justify-content:center; font-size:38px; position:relative; overflow:hidden; background-size:cover; background-position:center;}
.prod-thumb img{width:100%; height:100%; object-fit:cover; transition:transform .4s var(--ease);}
.prod-card:hover .prod-thumb img{transform:scale(1.06);}
.prod-tag{position:absolute; top:10px; left:10px; background:var(--harvest); color:var(--forest-deep); font-size:10.5px; font-weight:700; padding:3px 9px; border-radius:999px; text-transform:uppercase; letter-spacing:.03em; z-index:2;}
.prod-tag.new{background:var(--sky); color:#fff;}
.prod-body{padding:14px 16px 18px;}
.prod-brand{font-size:11px; color:var(--leaf); font-weight:700; text-transform:uppercase; letter-spacing:.04em; margin-bottom:4px;}
.prod-body h4{font-size:14.5px; color:var(--ink); font-family:'Inter'; font-weight:700; margin-bottom:6px;}
.prod-body h4 a{color:inherit;}
.prod-pack{font-size:11.5px; color:var(--ink-soft); margin-bottom:10px;}
.prod-foot{display:flex; align-items:center; justify-content:space-between;}
.prod-price{font-family:'IBM Plex Mono',monospace; font-weight:600; font-size:15px; color:var(--forest-deep);}
.prod-price del{font-size:11.5px; color:#A79E8C; font-weight:500; margin-right:6px;}
.prod-price ins{text-decoration:none;}
.add-btn, .prod-card a.add_to_cart_button, .prod-card a.button{width:34px; height:34px; border-radius:9px; background:var(--forest); color:#fff !important; border:none; font-size:17px; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s var(--ease), background .2s ease; text-indent:-9999px; position:relative;}
.add-btn::after, .prod-card a.add_to_cart_button::after{content:"+"; text-indent:0; position:absolute; inset:0; display:flex; align-items:center; justify-content:center; font-size:18px;}
.add-btn:hover, .prod-card a.button:hover{transform:scale(1.08); background:var(--forest-deep);}
.add-btn.added::after{content:"✓";}

/* ---------- Deal banner ---------- */
.deal-banner{background:linear-gradient(120deg,var(--forest-deep),var(--forest) 60%,var(--leaf)); border-radius:18px; padding:40px; color:#fff; display:flex; justify-content:space-between; align-items:center; gap:24px; flex-wrap:wrap; position:relative; overflow:hidden;}
.deal-banner h2{color:#fff; font-size:26px; margin-bottom:8px;}
.deal-banner p{color:#DCEADF; font-size:14px; max-width:420px; margin:0;}
.countdown{display:flex; gap:10px;}
.countdown div{background:rgba(255,255,255,.12); border-radius:10px; padding:10px 14px; text-align:center; min-width:58px;}
.countdown span{display:block; font-family:'IBM Plex Mono'; font-size:20px; font-weight:700;}
.countdown small{font-size:10px; color:#CFE3D3;}

/* ---------- Brands ---------- */
.brand-row{display:grid; grid-template-columns:repeat(6,1fr); gap:16px;}
.brand-tile{background:var(--card); border:1px solid var(--line); border-radius:var(--radius); padding:22px 10px; text-align:center; font-family:'Space Grotesk'; font-weight:700; color:var(--ink-soft); font-size:13px; transition:.2s ease;}
.brand-tile:hover{border-color:var(--leaf); color:var(--forest-deep); transform:translateY(-3px);}

/* ---------- Why us ---------- */
.why-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:20px;}
.why-icon{width:46px; height:46px; border-radius:12px; background:var(--leaf-light); color:var(--forest); display:flex; align-items:center; justify-content:center; font-size:21px; margin-bottom:14px; transition:transform .3s var(--ease);}
.why-card:hover .why-icon{transform:scale(1.12) rotate(6deg);}
.why-card h4{font-size:15px; margin-bottom:6px;}
.why-card p{font-size:13px; color:var(--ink-soft); margin:0;}

/* ---------- Diagnose CTA ---------- */
.diag-cta{background:var(--sky-light); border-radius:18px; padding:44px; display:flex; justify-content:space-between; align-items:center; gap:24px; flex-wrap:wrap;}
.diag-cta h2{font-size:24px; max-width:480px; margin-bottom:10px;}
.diag-cta p{color:var(--ink-soft); font-size:14px; max-width:460px; margin:0;}

/* ---------- Testimonials ---------- */
.testi-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:20px;}
.testi-card{background:var(--card); border:1px solid var(--line); border-radius:var(--radius); padding:24px; transition:.2s ease;}
.testi-card:hover{transform:translateY(-4px); box-shadow:var(--shadow);}
.testi-card p{font-size:13.5px; color:var(--ink); margin-bottom:16px; font-style:italic;}
.testi-who{display:flex; align-items:center; gap:10px;}
.testi-avatar{width:38px; height:38px; border-radius:50%; background:var(--forest); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:14px;}
.testi-who strong{display:block; font-size:13px;}
.testi-who span{font-size:11.5px; color:var(--ink-soft);}

/* ---------- Newsletter ---------- */
.news{background:var(--forest-deep); color:#fff; border-radius:18px; padding:40px; display:flex; justify-content:space-between; align-items:center; gap:24px; flex-wrap:wrap;}
.news h2{color:#fff; font-size:22px; margin-bottom:6px;}
.news p{color:#CFE3D3; font-size:13.5px; margin:0;}
.news-form{display:flex; gap:10px; flex-wrap:wrap;}
.news-form input{padding:12px 16px; border-radius:999px; border:none; outline:none; font-size:13.5px; min-width:220px;}

/* ---------- Footer ---------- */
.site-footer{background:var(--forest-deep); color:#CFE3D3; padding-top:56px;}
.foot-grid{display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr 1.2fr; gap:30px; padding-bottom:40px; border-bottom:1px solid rgba(255,255,255,.12);}
.foot-grid h5{color:#fff; font-size:13.5px; margin-bottom:16px; letter-spacing:.03em;}
.foot-grid li{margin-bottom:10px; font-size:13px; opacity:.85;}
.foot-logo{display:flex; align-items:center; gap:10px; font-family:'Space Grotesk'; font-weight:700; color:#fff; font-size:19px; margin-bottom:14px;}
.foot-grid p.about{font-size:13px; opacity:.8; max-width:260px; margin-bottom:16px;}
.pay-icons{display:flex; gap:8px; flex-wrap:wrap;}
.pay-icons span{background:rgba(255,255,255,.1); border-radius:6px; padding:6px 10px; font-size:11px; font-weight:700;}
.bottom-bar{display:flex; justify-content:space-between; padding:20px 0; font-size:12px; opacity:.7; flex-wrap:wrap; gap:10px;}

/* ---------- WooCommerce default page restyling (shop archive, single product, cart, checkout, account) ---------- */
.woocommerce{background:var(--bg);}
.woocommerce .content-area, .woocommerce-page .content-area{max-width:1200px; margin:0 auto; padding:40px 24px 80px;}
.woocommerce ul.products{display:grid; grid-template-columns:repeat(4,1fr); gap:20px; list-style:none; margin:0;}
.woocommerce ul.products li.product{background:var(--card); border:1px solid var(--line); border-radius:var(--radius); padding:16px; transition:.25s var(--ease); position:relative;}
.woocommerce ul.products li.product:hover{transform:translateY(-5px); box-shadow:var(--shadow);}
.woocommerce ul.products li.product img{border-radius:8px; margin-bottom:12px;}
.woocommerce ul.products li.product .woocommerce-loop-product__title{font-family:'Inter'; font-size:14.5px; font-weight:700; color:var(--ink); margin:0 0 6px;}
.woocommerce ul.products li.product .price{font-family:'IBM Plex Mono',monospace; color:var(--forest-deep); font-weight:600;}
.woocommerce ul.products li.product .button{background:var(--forest); color:#fff; border-radius:999px; padding:9px 18px; font-size:12.5px; font-weight:700; border:none;}
.woocommerce ul.products li.product .button:hover{background:var(--forest-deep);}
.woocommerce span.onsale{background:var(--harvest); color:var(--forest-deep); border-radius:999px; font-weight:700; font-size:11px; min-height:auto; min-width:auto; padding:4px 10px; line-height:1; top:12px; left:12px;}
.woocommerce div.product .woocommerce-tabs ul.tabs li{border-radius:8px 8px 0 0;}
.woocommerce #respond input#submit, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button{background:var(--forest); color:#fff; border-radius:999px; padding:12px 24px; font-weight:600; border:none; transition:.2s ease;}
.woocommerce #respond input#submit:hover, .woocommerce a.button:hover, .woocommerce button.button:hover{background:var(--forest-deep); transform:translateY(-2px);}
.woocommerce div.product p.price, .woocommerce div.product span.price{color:var(--forest-deep); font-family:'IBM Plex Mono';}
.woocommerce-message, .woocommerce-info{border-top-color:var(--leaf);}
.woocommerce-message::before, .woocommerce-info::before{color:var(--leaf);}
.woocommerce table.shop_table{border-radius:var(--radius); overflow:hidden; border-color:var(--line);}
.woocommerce-checkout #payment{background:var(--card); border-radius:var(--radius);}
.woocommerce form .form-row input.input-text, .woocommerce form .form-row select{border-radius:8px; border-color:var(--line);}

@media (max-width:1024px){
  .cat-grid{grid-template-columns:repeat(3,1fr);}
  .prod-grid, .woocommerce ul.products{grid-template-columns:repeat(3,1fr);}
  .why-grid{grid-template-columns:repeat(2,1fr);}
  .testi-grid{grid-template-columns:repeat(1,1fr);}
  .brand-row{grid-template-columns:repeat(3,1fr);}
  .foot-grid{grid-template-columns:1fr 1fr; row-gap:32px;}
  .hero .wrap{grid-template-columns:1fr;}
  .hero-visual{order:-1; max-width:280px;}
}
@media (max-width:768px){
  section{padding:44px 0;}
  .searchbar{display:none;}
  nav.catnav{display:none;}
  .burger{display:flex;}
  .cat-grid{grid-template-columns:repeat(2,1fr);}
  .prod-grid, .woocommerce ul.products{grid-template-columns:repeat(2,1fr) !important;}
  .why-grid{grid-template-columns:1fr;}
  .stats .wrap{grid-template-columns:repeat(2,1fr); gap:20px;}
  .hero h1{font-size:32px;}
  .deal-banner,.diag-cta,.news{flex-direction:column; text-align:left; align-items:flex-start;}
}
