/*
Theme Name: PetDigest
Theme URI: https://petdigest.example
Author: PetDigest
Description: Clean, fast, responsive pet-care theme: hero, categories, Top Picks, reviews, guides, shop, blog, newsletter.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: petdigest
*/
:root{--g:#065f3f;--gd:#0b3d33;--mint:#eaf5ee;--o:#ff6a1a;--ink:#16302b;--mut:#5d6f6a;--line:#e5ece8;--r:14px}
*{box-sizing:border-box}html{scroll-behavior:smooth}
body{margin:0;font-family:Poppins,system-ui,sans-serif;color:var(--ink);background:#fff;line-height:1.55;-webkit-text-size-adjust:100%}
img{max-width:100%;height:auto;display:block}a{color:inherit;text-decoration:none}
h1,h2,h3{line-height:1.2;margin:0 0 .4em}ul{list-style:none;margin:0;padding:0}
.wrap{max-width:1200px;margin:0 auto;padding:0 20px}.narrow{max-width:800px}
.screen-reader-text,.skip:not(:focus){position:absolute;left:-9999px}
:focus-visible{outline:3px solid var(--o);outline-offset:2px}
/* header */
.site-header{position:sticky;top:0;z-index:50;background:#fff;border-bottom:1px solid var(--line)}
.hdr{display:flex;align-items:center;gap:28px;min-height:68px}
.brand{display:flex;align-items:center;gap:10px;color:var(--g)}.brand img{max-height:52px;width:auto}
.brand-text strong{display:block;font-size:30px;font-weight:800;line-height:1;color:var(--ink)}.brand-text em{font-style:normal;color:var(--g)}
.brand-text small{display:block;font-size:11px;color:var(--mut);margin-top:3px}
.primary-nav{flex:1}.primary-nav .menu{display:flex;gap:22px;flex-wrap:wrap}
.primary-nav a{font-size:13px;font-weight:600;padding:6px 0;border-bottom:2px solid transparent}
.primary-nav .current-menu-item>a,.primary-nav a:hover{color:var(--g);border-color:var(--g)}
.hdr-actions{display:flex;align-items:center;gap:8px}
.icon-btn{background:none;border:0;cursor:pointer;color:var(--ink);padding:8px;position:relative;display:inline-flex}
.cart-count{position:absolute;top:0;right:0;background:var(--g);color:#fff;font-size:10px;border-radius:99px;min-width:17px;height:17px;display:grid;place-items:center}
.nav-toggle{display:none;flex-direction:column;gap:5px}.nav-toggle span{width:24px;height:2.5px;background:var(--ink);border-radius:2px}
.header-search{display:none;border-top:1px solid var(--line);padding:12px 0;background:#fff}.header-search.open{display:block}
.searchform{display:flex;gap:8px}.searchform input{flex:1;padding:12px 14px;border:1px solid var(--line);border-radius:10px;font:inherit}
.searchform button,.newsletter button{background:var(--g);color:#fff;border:0;border-radius:10px;padding:0 20px;font:600 14px Poppins;cursor:pointer}
/* buttons */
.btn{display:inline-block;font-weight:700;border-radius:10px;padding:12px 22px;font-size:14px;transition:.2s}
.btn-orange{background:var(--o);color:#fff;border-radius:99px;padding:14px 28px;font-size:16px;box-shadow:0 6px 16px rgba(255,106,26,.3)}
.btn-green{background:var(--g);color:#fff;padding:9px 16px;font-size:13px}.btn.sm{display:block;text-align:center}
.btn:hover{filter:brightness(1.1);transform:translateY(-1px)}
/* hero */
.hero{background:linear-gradient(135deg,#0b3d33,#2f7d4f) var(--hero) center/cover no-repeat;color:#fff;position:relative;min-height:268px;display:flex;align-items:center}
.hero::before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,0,0,.55),rgba(0,0,0,.15) 55%,transparent)}
.hero-in{position:relative;padding-top:38px;padding-bottom:38px;width:100%}
.hero-in>*{max-width:520px}
.pill{display:inline-block;background:var(--g);padding:5px 14px;border-radius:99px;font-weight:600;font-size:14px;margin-bottom:14px}
.hero h1{font-size:clamp(28px,4.2vw,40px);font-weight:700}.hero p{font-size:16px;margin:0 0 20px;max-width:440px}
/* categories */
.cats{display:grid;grid-template-columns:repeat(5,1fr);background:var(--mint);border-radius:var(--r);margin-top:0;padding:14px 8px}
.cats a{text-align:center;padding:8px 10px;border-right:1px solid #cfe0d6;display:flex;flex-direction:column;align-items:center}
.cats a:last-child{border:0}.cats strong{font-size:14px}.cats small{font-size:12px;color:var(--mut)}
.ci{width:50px;height:50px;border-radius:50%;background:#d6eadf;display:grid;place-items:center;font-size:24px;margin-bottom:6px}
.cats a:hover .ci{background:var(--g)}
/* sections */
.sec{margin-top:34px}.sec-head{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;margin-bottom:16px}
.sec-head h2{font-size:26px;font-weight:700;margin:0}.sec-head.sm h2{font-size:18px}.star{color:#f5a623}
.sub{margin:2px 0 0;color:var(--mut);font-size:14px}.all{font-size:12px;font-weight:600;color:var(--g);white-space:nowrap}
.grid-4{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.card{border:1px solid var(--line);border-radius:var(--r);overflow:hidden;background:#fff;display:flex;flex-direction:column}
.card-img{position:relative;aspect-ratio:10/7;background:var(--mint);overflow:hidden;display:block}
.card-img img{width:100%;height:100%;object-fit:cover}.ph{display:block;width:100%;height:100%;background:linear-gradient(135deg,#dcefe3,#f3e6d8)}
.badge{position:absolute;top:10px;right:10px;color:#fff;font-size:12px;font-weight:600;padding:3px 12px;border-radius:99px}
.b1{background:var(--g)}.b2{background:#1f7ae0}.b3{background:var(--o)}.b4{background:#7a3fc4}
.card-body{padding:14px;display:flex;flex-direction:column;gap:6px;flex:1}.card-body h3{font-size:15px;margin:0}
.card-body p{font-size:13px;color:var(--mut);margin:0;flex:1}.pick .btn{align-self:flex-start}
.rate{font-size:12px;color:var(--mut)}.rate b{color:var(--ink)}.stars i{font-style:normal;color:#d5dcd8}.stars i.on{color:#f5a623}.stars i.half{color:#f9c566}
.tag{display:inline-block;align-self:flex-start;background:#e3f4ea;color:var(--g);font-size:11px;font-weight:600;padding:2px 10px;border-radius:99px}
.more{font-size:13px;font-weight:600;color:var(--g)}.post-card h3{font-size:17px}
/* offer */
.offer{margin-top:30px;border-radius:var(--r);background:linear-gradient(90deg,#fdf1e3,#fff7ee);display:grid;grid-template-columns:200px 1fr auto;align-items:center;gap:24px;padding:20px 28px;border:1px solid #f6e3cc}
.offer-img{position:relative;min-height:120px}.offer-img img{max-height:140px;margin:auto}
.limited{position:absolute;top:-6px;left:-8px;background:#e5252a;color:#fff;font-size:12px;font-weight:700;padding:4px 14px;border-radius:99px;transform:rotate(-6deg);z-index:2}
.offer small{color:var(--g);font-weight:700;font-size:12px;letter-spacing:.04em}.offer h2{font-size:26px;margin:2px 0}.offer p{margin:0 0 10px;color:var(--mut)}
.offer ul{display:flex;gap:18px;flex-wrap:wrap;font-size:13px;font-weight:600}.offer-cta{text-align:center}.offer-cta small{display:block;color:var(--mut);font-weight:400;letter-spacing:0;margin-top:8px}
/* trio */
.trio{display:grid;grid-template-columns:1.1fr 1.2fr 1fr;gap:30px;margin:40px 0}
.row{display:flex;gap:14px;padding:10px 0;border-bottom:1px solid var(--line);align-items:center}
.row .thumb{flex:0 0 100px;aspect-ratio:10/7;border-radius:8px;overflow:hidden}.row .thumb img{width:100%;height:100%;object-fit:cover}
.row h3{font-size:14px;margin:0 0 4px}.meta{font-size:12px;color:var(--mut);display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.guides{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.guide{border:1px solid var(--line);border-radius:10px;padding:10px;display:flex;flex-direction:column;gap:6px}
.gimg{aspect-ratio:3/2;background:var(--mint);border-radius:8px;overflow:hidden}.gimg img{width:100%;height:100%;object-fit:cover}
.guide h3{font-size:13px;margin:0}.guide p{font-size:12px;color:var(--mut);margin:0;flex:1}
.shoplist{border:1px solid var(--line);border-radius:10px}.shoplist li+li{border-top:1px solid var(--line)}
.shoplist a{display:flex;justify-content:space-between;padding:12px 16px;font-size:14px;font-weight:500}.shoplist a:hover{background:var(--mint);color:var(--g)}
.empty{color:var(--mut);font-size:14px}
/* inner pages */
.page-wrap{padding-top:34px;padding-bottom:50px}.page-head{margin-bottom:24px}.page-head h1{font-size:clamp(26px,4vw,38px)}
.feat{border-radius:var(--r);overflow:hidden;margin-bottom:24px}.entry{font-size:17px;line-height:1.8}.entry h2{margin-top:1.6em}.entry a{color:var(--g);text-decoration:underline}
.pager{margin-top:30px;text-align:center}.pager .page-numbers{display:inline-block;padding:8px 14px;border:1px solid var(--line);border-radius:8px;margin:0 3px}.pager .current{background:var(--g);color:#fff}
.comments{margin-top:40px}.clist{padding-left:0;list-style:none}.clist li{padding:12px 0;border-bottom:1px solid var(--line)}
.comments input[type=text],.comments input[type=email],.comments textarea{width:100%;padding:10px;border:1px solid var(--line);border-radius:8px;font:inherit}
.comments input[type=submit]{background:var(--g);color:#fff;border:0;padding:12px 22px;border-radius:10px;font:600 14px Poppins;cursor:pointer}
/* footer */
.site-footer{background:var(--gd);color:#fff;margin-top:20px}
.ftr{display:flex;align-items:center;justify-content:space-between;gap:24px;padding-top:26px;padding-bottom:26px;flex-wrap:wrap}
.brand.light{color:#fff}.brand.light strong{color:#fff;font-size:24px}.brand.light em{color:#fff}.brand.light small{color:#b9d3c9}
.ftr-nav .menu{display:flex;gap:0;font-size:12px}.ftr-nav li+li::before{content:"|";margin:0 14px;opacity:.6}
.ftr-right{display:flex;align-items:center;gap:20px;flex-wrap:wrap}.social{display:flex;gap:8px}
.social a{width:30px;height:30px;border-radius:50%;background:rgba(255,255,255,.12);display:grid;place-items:center;font-size:12px;font-weight:700}.social a:hover{background:var(--o)}
.newsletter{display:flex;background:#fff;border-radius:8px;overflow:hidden}.newsletter input{border:0;padding:11px 14px;font:13px Poppins;min-width:210px}
.newsletter button{border-radius:0;background:#0a8a5a}
.ftr-bottom{display:flex;justify-content:space-between;gap:10px;border-top:1px solid rgba(255,255,255,.12);padding-top:12px;padding-bottom:12px;font-size:12px;flex-wrap:wrap}
.ftr-bottom svg{vertical-align:-2px}
/* responsive */
@media(max-width:1100px){.primary-nav .menu{gap:14px}.grid-4{grid-template-columns:repeat(2,1fr)}.trio{grid-template-columns:1fr 1fr}.trio .col:first-child{grid-column:1/-1}}
@media(max-width:960px){
  .nav-toggle{display:flex}.hdr{gap:12px;justify-content:space-between}.hdr-actions{margin-left:auto}
  .primary-nav{position:absolute;left:0;right:0;top:100%;background:#fff;border-bottom:1px solid var(--line);display:none;padding:10px 20px 18px;flex:none}
  .primary-nav.open{display:block}.primary-nav .menu{flex-direction:column;gap:0}.primary-nav a{display:block;padding:12px 0;font-size:15px;border-bottom:1px solid var(--line)}
  .cats{grid-template-columns:repeat(3,1fr)}.cats a{border:0}
  .offer{grid-template-columns:1fr;text-align:center;justify-items:center}.offer ul{justify-content:center}.grid-3{grid-template-columns:1fr 1fr}
}
@media(max-width:640px){
  .brand-text strong{font-size:24px}.brand-text small{display:none}
  .hero{min-height:300px;align-items:flex-end}.hero::before{background:linear-gradient(0deg,rgba(0,0,0,.7),rgba(0,0,0,.1))}
  .cats{grid-template-columns:repeat(2,1fr)}.cats small{display:none}
  .grid-4,.grid-3,.trio,.guides{grid-template-columns:1fr}.sec-head h2{font-size:22px}
  .ftr{flex-direction:column;align-items:flex-start}.newsletter{width:100%}.newsletter input{flex:1;min-width:0}
}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
