/* ==========================================================
   Avadh Agritech — shared styles for inner pages
   (category pages, products, catalogue, dealer)
   Same tokens & components as the homepage.
   ========================================================== */
:root{--bg:#f8f5ee;--bg-alt:#f0ead9;--card:#ffffff;--ink:#1f2a1a;--ink-dim:#5c6b52;--green:#2f6d3a;--green-dark:#1e4d27;--green-light:#7cb668;--brown:#8b5e34;--gold:#d4a24c;--border:rgba(47,109,58,.15)}
*{margin:0;padding:0;box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html{width:100%;background:var(--bg);overflow-x:hidden;scroll-behavior:smooth}
body{width:100%;background:var(--bg);color:var(--ink);font-family:'Poppins',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
img,svg{max-width:100%;display:block}
img{height:auto}
::-webkit-scrollbar{width:11px}::-webkit-scrollbar-track{background:var(--bg-alt)}::-webkit-scrollbar-thumb{background:var(--green-light);border-radius:999px;border:2px solid var(--bg-alt)}
a:focus-visible,button:focus-visible,input:focus-visible{outline:2px solid var(--gold);outline-offset:2px}

.btn{font-family:'Poppins',sans-serif;padding:14px 30px;border-radius:999px;font-size:.85rem;font-weight:600;cursor:pointer;transition:transform .3s,box-shadow .3s;text-decoration:none;display:inline-flex;align-items:center;gap:8px;border:none}
.btn svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:2}
.btn-primary{background:linear-gradient(90deg,var(--green),var(--green-light));color:#fff;box-shadow:0 8px 24px rgba(47,109,58,.28)}
.btn-primary:hover{transform:translateY(-2px);box-shadow:0 12px 32px rgba(47,109,58,.4)}
.btn-ghost{background:var(--card);color:var(--green-dark);border:1px solid var(--border)}
.btn-ghost:hover{border-color:var(--green);transform:translateY(-2px)}
.text-link{font-size:.9rem;font-weight:600;color:var(--green-dark);text-decoration:none;border-bottom:1.5px solid var(--green-light);padding-bottom:2px;transition:border-color .25s}
.text-link:hover{border-color:var(--green-dark)}

/* Category hero */
.cat-hero{position:relative;padding:150px 6vw 56px;max-width:1200px;margin:0 auto}
.cat-hero::before{content:'';position:absolute;top:-40px;left:-120px;width:360px;height:360px;border-radius:50%;background:radial-gradient(circle,rgba(124,182,104,.18),transparent 70%);pointer-events:none;z-index:-1}
.cat-hero .kicker{display:inline-block;font-size:.78rem;font-weight:600;color:var(--green);background:rgba(124,182,104,.14);border:1px solid var(--border);padding:6px 14px;border-radius:999px;margin-bottom:18px}
.cat-hero h1{font-family:'Fraunces',serif;font-weight:600;font-size:clamp(2rem,4.6vw,3.1rem);line-height:1.18;color:var(--ink);margin-bottom:14px;max-width:760px}
.cat-hero p{color:var(--ink-dim);font-size:1.02rem;line-height:1.75;max-width:600px}
.cat-hero .hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:26px}

.section{padding:8vh 6vw;max-width:1200px;margin:0 auto}
.shead{max-width:560px;margin-bottom:40px}
.shead h2{font-family:'Fraunces',serif;font-weight:600;font-size:clamp(1.7rem,4vw,2.4rem);line-height:1.22;color:var(--ink);margin-bottom:12px}
.shead p{color:var(--ink-dim);font-size:1rem;line-height:1.7}

/* Sub-type cards (dealer page) */
.subtype-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.subtype-card{background:var(--card);border:1px solid var(--border);border-radius:20px;padding:28px 24px}
.subtype-ic{width:44px;height:44px;border-radius:12px;background:rgba(124,182,104,.14);color:var(--green);display:flex;align-items:center;justify-content:center;margin-bottom:18px}
.subtype-ic svg{width:22px;height:22px;stroke:currentColor;fill:none}
.subtype-card h3{font-family:'Fraunces',serif;font-size:1.08rem;font-weight:600;margin-bottom:8px;color:var(--ink)}
.subtype-card p{font-size:.87rem;color:var(--ink-dim);line-height:1.65}
@media(max-width:960px){.subtype-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.subtype-grid{grid-template-columns:1fr}}

/* Why band */
.why-band{background:var(--bg-alt)}
.why-list{display:flex;border-top:1px solid var(--border);border-bottom:1px solid var(--border)}
.why-item{flex:1;padding:34px 28px;display:flex;gap:16px;align-items:flex-start;border-right:1px solid var(--border)}
.why-item:last-child{border-right:none}
.why-ic{width:26px;height:26px;flex-shrink:0;color:var(--green);margin-top:2px}
.why-ic svg{width:100%;height:100%;stroke:currentColor;fill:none}
.why-item h3{font-family:'Fraunces',serif;font-size:1.05rem;font-weight:600;margin-bottom:6px;color:var(--ink)}
.why-item p{font-size:.86rem;color:var(--ink-dim);line-height:1.6}
@media(max-width:860px){.why-list{flex-direction:column}.why-item{border-right:none;border-bottom:1px solid var(--border);padding:26px 4px}.why-item:last-child{border-bottom:none}}

/* Highlight box */
.cert-box{display:flex;gap:22px;align-items:flex-start;background:var(--card);border:1px solid var(--border);border-left:4px solid var(--gold);border-radius:20px;padding:30px 32px}
.cert-ic{width:44px;height:44px;flex-shrink:0;color:var(--green)}
.cert-ic svg{width:100%;height:100%;stroke:currentColor;fill:none}
.cert-box h3{font-family:'Fraunces',serif;font-size:1.2rem;font-weight:600;margin-bottom:8px}
.cert-box p{color:var(--ink-dim);font-size:.92rem;line-height:1.7;max-width:760px}
.cert-box .text-link{display:inline-block;margin-top:12px}

/* Product detail blocks (category pages) */
.pd-list{display:flex;flex-direction:column;gap:28px}
.pd{display:grid;grid-template-columns:minmax(260px,.82fr) 1.3fr;gap:0;background:var(--card);border:1px solid var(--border);border-radius:26px;overflow:hidden;scroll-margin-top:110px}
.pd.flip{grid-template-columns:1.3fr minmax(260px,.82fr)}
.pd.flip .pd-media{order:2}
.pd-media{position:relative;background:linear-gradient(160deg,#ece5d2,#d9d0b4);display:flex;align-items:center;justify-content:center;padding:44px 30px;min-height:380px}
.pd-media::before{content:'';position:absolute;width:72%;aspect-ratio:1;border-radius:50%;background:radial-gradient(circle,rgba(255,255,255,.85),rgba(255,255,255,0) 70%)}
.pd-media img{position:relative;max-height:380px;width:auto;max-width:88%;filter:drop-shadow(0 18px 22px rgba(31,42,26,.28))}
.pd-media .pd-cat{position:absolute;top:18px;left:18px;background:var(--green-dark);color:#fff;font-size:.7rem;font-weight:600;padding:6px 12px;border-radius:999px}
.pd-body{padding:38px 40px;display:flex;flex-direction:column}
.pd-hi{font-size:.95rem;color:var(--brown);font-weight:600;margin-bottom:2px}
.pd-body h2{font-family:'Fraunces',serif;font-weight:600;font-size:clamp(1.6rem,3vw,2.1rem);line-height:1.15;color:var(--ink)}
.pd-sub{font-size:.9rem;color:var(--green);font-weight:600;margin:6px 0 16px}
.pd-desc{color:var(--ink-dim);font-size:.94rem;line-height:1.75;margin-bottom:20px;max-width:620px}
.pd-h{font-size:.82rem;font-weight:600;color:var(--ink);margin-bottom:10px}
.pd-ben{list-style:none;display:grid;grid-template-columns:1fr 1fr;gap:10px 22px;margin-bottom:22px}
.pd-ben li{position:relative;padding-left:26px;font-size:.87rem;line-height:1.55;color:var(--ink)}
.pd-ben li::before{content:'';position:absolute;left:0;top:3px;width:16px;height:16px;border-radius:50%;background:var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.3 2.2 4.7-5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat}
.pd-comp{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:var(--border);border:1px solid var(--border);border-radius:14px;overflow:hidden;margin-bottom:22px}
.pd-comp div{background:var(--bg);padding:10px 14px}
.pd-comp span{display:block;font-size:.72rem;color:var(--ink-dim)}
.pd-comp b{font-size:.92rem;color:var(--green-dark);font-weight:600}
.chips{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:24px}
.chip{font-size:.78rem;background:rgba(124,182,104,.14);color:var(--green-dark);padding:5px 12px;border-radius:999px;font-weight:500}
.pd-specs{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));border-top:1px solid var(--border);border-bottom:1px solid var(--border);margin-bottom:24px}
.pd-specs div{padding:14px 16px 14px 0}
.pd-specs div+div{padding-left:16px;border-left:1px solid var(--border)}
.pd-specs span{display:block;font-size:.72rem;color:var(--ink-dim);margin-bottom:2px}
.pd-specs b{font-size:.88rem;color:var(--ink);font-weight:600}
.pd-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:auto}
@media(max-width:900px){.pd,.pd.flip{grid-template-columns:1fr}.pd.flip .pd-media{order:0}.pd-media{min-height:300px}.pd-media img{max-height:300px}}
@media(max-width:600px){.pd-body{padding:28px 22px}.pd-ben{grid-template-columns:1fr}.pd-comp{grid-template-columns:repeat(2,1fr)}}

/* Product cards (products page) */
.filter-bar{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:32px}
.filter-bar button{font-family:'Poppins',sans-serif;font-size:.82rem;font-weight:500;padding:9px 18px;border-radius:999px;border:1px solid var(--border);background:var(--card);color:var(--ink);cursor:pointer;transition:.2s}
.filter-bar button:hover{border-color:var(--green)}
.filter-bar button.on{background:var(--green-dark);color:#fff;border-color:var(--green-dark)}
.pc-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.pc{background:var(--card);border:1px solid var(--border);border-radius:22px;overflow:hidden;display:flex;flex-direction:column;text-decoration:none;color:inherit;transition:border-color .25s}
.pc:hover{border-color:var(--green-light)}
.pc[hidden]{display:none}
.pc-img{position:relative;height:270px;background:linear-gradient(160deg,#ece5d2,#d9d0b4);display:flex;align-items:center;justify-content:center;padding:24px}
.pc-img img{max-height:100%;width:auto;filter:drop-shadow(0 14px 18px rgba(31,42,26,.25));transition:transform .5s}
.pc:hover .pc-img img{transform:translateY(-4px)}
.pc-body{padding:22px 24px 24px;display:flex;flex-direction:column;flex:1}
.pc-cat{font-size:.74rem;color:var(--green);font-weight:600;margin-bottom:6px}
.pc h3{font-family:'Fraunces',serif;font-weight:600;font-size:1.25rem;color:var(--ink);line-height:1.2}
.pc .pc-hi{font-size:.85rem;color:var(--brown);margin-top:2px}
.pc p{font-size:.86rem;color:var(--ink-dim);line-height:1.6;margin:10px 0 16px}
.pc-foot{margin-top:auto;display:flex;justify-content:space-between;align-items:center;gap:10px;padding-top:14px;border-top:1px solid var(--border);font-size:.8rem}
.pc-foot span{color:var(--ink-dim)}
.pc-foot b{color:var(--green-dark);font-weight:600}
@media(max-width:960px){.pc-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){.pc-grid{grid-template-columns:1fr}}

/* Crop guide table */
.guide{background:var(--card);border:1px solid var(--border);border-radius:22px;overflow:hidden}
.guide-row{display:grid;grid-template-columns:200px 1fr;border-bottom:1px solid var(--border)}
.guide-row:last-child{border-bottom:none}
.guide-row>div{padding:16px 22px}
.guide-crop{font-family:'Fraunces',serif;font-weight:600;color:var(--ink);background:var(--bg)}
.guide-prods{display:flex;flex-wrap:wrap;gap:8px}
.guide-prods a{font-size:.8rem;text-decoration:none;color:var(--green-dark);border:1px solid var(--border);padding:5px 12px;border-radius:999px;transition:.2s}
.guide-prods a:hover{background:var(--green-dark);color:#fff}
.guide-note{font-size:.8rem;color:var(--ink-dim);margin-top:14px}
@media(max-width:600px){.guide-row{grid-template-columns:1fr}.guide-crop{padding-bottom:8px!important}}

/* Catalogue CTA band */
.cta-band{display:grid;grid-template-columns:1.2fr .8fr;gap:30px;align-items:center;background:linear-gradient(165deg,#28401f 0%,#162110 100%);border-radius:28px;padding:44px 48px;color:#fff;overflow:hidden}
.cta-band h2{font-family:'Fraunces',serif;font-weight:600;font-size:clamp(1.5rem,3vw,2.1rem);line-height:1.25;margin-bottom:10px}
.cta-band p{color:rgba(255,255,255,.7);font-size:.95rem;line-height:1.7;margin-bottom:22px}
.cta-band .btns{display:flex;gap:12px;flex-wrap:wrap}
.cta-band .btn-ghost{background:rgba(255,255,255,.08);color:#fff;border-color:rgba(255,255,255,.25)}
.cta-covers{position:relative;height:250px}
.cta-covers img{position:absolute;height:240px;width:auto;border-radius:8px;box-shadow:0 18px 34px rgba(0,0,0,.4)}
.cta-covers img:first-child{left:12%;top:10px;transform:rotate(-7deg)}
.cta-covers img:last-child{left:44%;top:0;transform:rotate(6deg)}
@media(max-width:860px){.cta-band{grid-template-columns:1fr;padding:34px 26px}.cta-covers{height:220px}.cta-covers img{height:200px}}

/* Catalogue page */
.cat-cards{display:grid;grid-template-columns:1fr 1fr;gap:24px}
.cat-card{background:var(--card);border:1px solid var(--border);border-radius:24px;padding:26px;display:grid;grid-template-columns:150px 1fr;gap:24px;align-items:center}
.cat-card img{width:100%;border-radius:8px;box-shadow:0 12px 26px rgba(31,42,26,.22)}
.cat-card .lang{font-size:.78rem;font-weight:600;color:var(--green)}
.cat-card h3{font-family:'Fraunces',serif;font-weight:600;font-size:1.35rem;margin:4px 0 8px;line-height:1.25}
.cat-card p{font-size:.86rem;color:var(--ink-dim);line-height:1.6;margin-bottom:18px}
.cat-card .btns{display:flex;gap:10px;flex-wrap:wrap}
.cat-card .btn{padding:11px 20px;font-size:.8rem}
.viewer{margin-top:44px;background:var(--card);border:1px solid var(--border);border-radius:24px;overflow:hidden}
.viewer-bar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;padding:14px 18px;border-bottom:1px solid var(--border);background:var(--bg)}
.tabs{display:flex;gap:6px;background:var(--bg-alt);padding:4px;border-radius:999px}
.tabs button{font-family:'Poppins',sans-serif;font-size:.82rem;font-weight:600;border:none;background:none;padding:8px 18px;border-radius:999px;cursor:pointer;color:var(--ink-dim)}
.tabs button.on{background:var(--card);color:var(--green-dark);box-shadow:0 2px 8px rgba(31,42,26,.1)}
.viewer iframe{display:block;width:100%;height:82vh;min-height:560px;border:0;background:#525659}
.viewer-fallback{display:none;padding:40px 24px;text-align:center}
.viewer-fallback p{color:var(--ink-dim);font-size:.9rem;margin-bottom:16px}
@media(max-width:860px){.cat-cards{grid-template-columns:1fr}}
@media(max-width:520px){.cat-card{grid-template-columns:110px 1fr;gap:16px;padding:20px}}
@media(max-width:760px){.viewer iframe{display:none}.viewer-fallback{display:block}}

/* Contact block */
.cgrid{display:grid;grid-template-columns:1fr 1.05fr;gap:24px;align-items:stretch}
.contact-form-card{background:var(--card);border:1px solid var(--border);border-radius:24px;padding:38px}
.contact-form-card h3{font-family:'Fraunces',serif;font-weight:600;font-size:1.35rem;margin-bottom:6px;color:var(--ink)}
.contact-form-card .lead{color:var(--ink-dim);font-size:.9rem;margin-bottom:24px}
.f{margin-bottom:16px}
.f label{display:block;font-size:.78rem;color:var(--ink-dim);font-weight:500;margin-bottom:7px}
.f input,.f select{width:100%;padding:13px 15px;border-radius:12px;background:var(--bg);border:1px solid var(--border);color:var(--ink);font-family:'Poppins',sans-serif;font-size:14px;outline:none;transition:border-color .2s}
.f input:focus,.f select:focus{border-color:var(--green)}
.f input::placeholder{color:#a3ac99}
.sub-btn{width:100%;margin-top:4px;padding:15px;border-radius:12px;border:none;cursor:pointer;font-family:'Poppins',sans-serif;font-weight:600;font-size:.85rem;background:linear-gradient(90deg,var(--green),var(--green-light));color:#fff;transition:.25s}
.sub-btn:hover{transform:translateY(-2px)}
.sub-btn:disabled{opacity:.6;cursor:default;transform:none}
.msg{margin-top:12px;font-size:12.5px;line-height:1.5;min-height:18px}
.msg.ok{color:var(--green-dark);font-weight:600}.msg.err{color:#b3492f}
.contact-panel{background:linear-gradient(165deg,#28401f 0%,#162110 100%);border-radius:24px;padding:38px;color:#fff;display:flex;flex-direction:column;gap:18px}
.contact-panel h3{font-family:'Fraunces',serif;font-weight:600;font-size:1.3rem}
.contact-panel p{color:rgba(255,255,255,.65);font-size:.9rem;line-height:1.65}
.contact-panel ul{list-style:none;display:flex;flex-direction:column;gap:10px}
.contact-panel li{position:relative;padding-left:20px;font-size:.88rem;color:rgba(255,255,255,.85)}
.contact-panel li::before{content:'';position:absolute;left:0;top:8px;width:7px;height:7px;border-radius:50%;background:var(--gold)}
.contact-panel a{color:#fff}
@media(max-width:860px){.cgrid{grid-template-columns:1fr}}
@media(max-width:600px){.section{padding:7vh 5vw}.cat-hero{padding:130px 5vw 40px}.contact-form-card,.contact-panel{padding:26px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

/* ---- crop protection + flat label images (v2) ---- */
.pd-media.card img{border-radius:10px;box-shadow:0 14px 28px rgba(31,42,26,.25);filter:none;max-height:320px}
.pc-img.card img{border-radius:8px;box-shadow:0 10px 20px rgba(31,42,26,.22);filter:none;max-height:92%;max-width:92%}
.safe-box{border-left-color:#d9822b;background:#fffaf0}
.safe-box .cert-ic{color:#d9822b}
.safe-list{list-style:none;display:flex;flex-direction:column;gap:6px;margin-top:4px}
.safe-list li{position:relative;padding-left:18px;color:var(--ink-dim);font-size:.9rem;line-height:1.6}
.safe-list li::before{content:'';position:absolute;left:0;top:9px;width:7px;height:7px;border-radius:50%;background:#d9822b}
.filter-bar button{white-space:nowrap}
