/*
Theme Name: Puanla
Theme URI: https://example.com/puanla
Author: Puanla
Description: Product reviews, ratings and customer feedback theme with a dark brown header, yellow accents, front-end sign in and sign up pages, and optional reCAPTCHA. Uses regular Posts as reviews.
Version: 1.3.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: puanla
*/
:root{--bg:#fbf7f2;--surface:#fff;--ink:#3b271b;--muted:#7d6552;--line:#eadccd;--brand:#46301f;--yellow:#f5cf5b;--star:#e8a317;--chip:#f3e9dd;--ph:#eadccd;--good:#2e7d4f;--bad:#b3402f}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--ink);font-family:Poppins,system-ui,-apple-system,"Segoe UI",sans-serif;font-size:14px;line-height:1.6}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto}
.wrap{width:min(840px,100% - 32px);margin-inline:auto}
.screen-reader-text{position:absolute!important;clip:rect(1px,1px,1px,1px);width:1px;height:1px;overflow:hidden}
.skip-link:focus{clip:auto;width:auto;height:auto;background:var(--yellow);color:var(--ink);padding:8px 14px;z-index:99;top:8px;left:8px}

/* header */
.site-header{position:sticky;top:0;background:var(--brand);color:#fff;z-index:50}
.admin-bar .site-header{top:32px}
.bar{display:flex;align-items:center;gap:14px;height:50px}
.logo{display:flex;align-items:center;gap:10px;line-height:1.1}
.logo .mark{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--yellow);color:var(--ink);font-weight:700;font-size:14px}
.logo .custom-logo{max-height:32px;width:auto}
.logo .name{font-weight:700;font-size:14px;display:block}
.logo small{display:block;font-weight:400;font-size:9px;opacity:.75;margin-top:1px}
.main-nav ul{display:flex;gap:4px;list-style:none;margin:0;padding:0}
.main-nav a{display:block;padding:5px 14px;border-radius:999px;font-weight:600;font-size:13px;color:#fff}
.main-nav a:hover{background:rgba(255,255,255,.12)}
.main-nav .current-menu-item>a,.main-nav a.is-current{background:var(--yellow);color:var(--ink)}
.search-form{margin-left:auto;width:162px}
.search-form input[type=search]{width:100%;height:32px;padding:0 14px;border:0;border-radius:999px;background:#fbf4e9;color:var(--ink);font:inherit;font-size:12px;outline:0}
.search-form input[type=search]:focus{box-shadow:0 0 0 2px var(--yellow)}
.search-form input[type=submit]{display:none}
.auth{display:flex;gap:6px}
.btn{display:inline-block;padding:4px 13px;border-radius:999px;font-size:11px;font-weight:600;border:1px solid rgba(255,255,255,.55);color:#fff;line-height:1.7;cursor:pointer}
.btn.p{background:var(--yellow);border-color:var(--yellow);color:var(--ink)}
.btn.dark{background:var(--brand);border-color:var(--brand);color:#fff}

/* hero */
.hero{padding:40px 0 22px}
h1{font-size:clamp(24px,4.4vw,32px);line-height:1.2;margin:0 0 10px;letter-spacing:-.01em;font-weight:700}
.hero p{color:var(--muted);max-width:560px;margin:0 0 18px}
.cats{display:flex;flex-wrap:wrap;gap:8px}
.cats a{padding:6px 13px;border:1px solid var(--line);border-radius:999px;background:var(--surface);font-size:12px;font-weight:500}
.cats a:hover{background:var(--yellow);border-color:var(--yellow)}
.cats b{color:var(--muted);font-weight:500;margin-left:6px}
.archive-head{padding:36px 0 14px}
.archive-head p{color:var(--muted);margin:0}

/* grid */
.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;padding:14px 0 26px}
.card{background:var(--surface);border:1px solid var(--line);border-radius:14px;overflow:hidden;display:flex;flex-direction:column}
.card .img{aspect-ratio:4/3;display:grid;place-items:center;font-size:40px;background:var(--ph);overflow:hidden;color:#fff}
.card .img img{width:100%;height:100%;object-fit:cover;display:block}
.card .body{padding:12px 12px 14px;display:flex;flex-direction:column;gap:6px;flex:1}
.cat{font-size:9px;color:var(--ink);font-weight:600;text-transform:uppercase;letter-spacing:.14em}
.card h2{font-size:13px;line-height:1.25;margin:0;font-weight:700}
.rate{display:flex;align-items:center;gap:7px;font-size:12px;color:var(--muted);flex-wrap:wrap}
.rate strong{color:var(--ink);font-size:12px}
.stars{color:var(--star);letter-spacing:1px;font-size:12px}
.card p{margin:4px 0 0;font-size:13px;color:var(--muted);line-height:1.55;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}

/* pagination */
.pagination{padding-bottom:56px}
.pagination .nav-links{display:flex;gap:6px;flex-wrap:wrap;align-items:center}
.pagination .page-numbers{min-width:30px;height:30px;padding:0 10px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:999px;background:var(--surface);font-size:12px;font-weight:600}
.pagination .current{background:var(--brand);color:#fff;border-color:var(--brand)}
.pagination .dots{border-color:transparent;background:transparent}
.pagination a.page-numbers:hover{background:var(--yellow);border-color:var(--yellow)}

/* single */
.single-wrap{width:min(720px,100% - 32px);margin:0 auto;padding:36px 0 20px}
.single-wrap .cat{display:inline-block;margin-bottom:6px}
.single-wrap .thumb{border-radius:16px;overflow:hidden;margin:16px 0;background:var(--ph)}
.single-wrap .thumb img{display:block;width:100%}
.entry-content{font-size:15px}
.entry-content a{text-decoration:underline;text-decoration-color:var(--yellow);text-underline-offset:3px}
.buy{margin:20px 0}
.buy .btn{font-size:13px;padding:8px 20px}
.comments-area{width:min(720px,100% - 32px);margin:20px auto 40px}
.comment-list{list-style:none;padding:0}
.comment-body{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:12px 16px;margin-bottom:10px}
.comment-respond input[type=text],.comment-respond input[type=email],.comment-respond input[type=url],.comment-respond textarea{width:100%;padding:9px 14px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink);font:inherit}
.comment-respond input[type=submit]{background:var(--yellow);color:var(--ink);font-weight:600;border:0;border-radius:999px;padding:9px 20px;cursor:pointer}

/* amazon data blocks */
.brand-line{margin:0 0 6px;color:var(--muted);font-size:13px}
.distbox{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:14px 20px;margin:16px 0}
.dist-head{font-size:13px;color:var(--muted);margin-bottom:8px}.dist-head strong{color:var(--ink);font-size:18px}
.dist-row{display:grid;grid-template-columns:30px 1fr 38px;align-items:center;gap:10px;font-size:12px;margin:5px 0}
.dist-row .bar{height:8px;border-radius:99px;background:var(--chip);overflow:hidden}
.dist-row .bar i{display:block;height:100%;background:var(--star);border-radius:99px}
.dist-row span:last-child{text-align:right;color:var(--muted)}
.verdict,.cust-summary{border-radius:14px;padding:14px 18px;margin:16px 0}
.verdict{background:#fff8e1;border:1px solid var(--yellow)}
.cust-summary{background:var(--surface);border:1px solid var(--line)}
.verdict h3,.cust-summary h3{margin:0 0 4px;font-size:14px}.verdict p,.cust-summary p{margin:0;font-size:14px}
.owner-reviews{margin:28px 0 8px}.owner-reviews h2{font-size:18px;margin:0 0 12px}
.rv{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:12px 16px;margin-bottom:10px}
.rv-top{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.rv-title{font-weight:600;margin-top:2px}
.rv p{margin:6px 0 0;font-size:13.5px;color:var(--muted)}

/* footer */
.site-footer{background:#fdfbf8;border-top:1px solid var(--line);padding:30px 0 22px;margin-top:20px}
.foot-top{display:flex;justify-content:space-between;gap:24px;flex-wrap:wrap}
.foot-top strong{font-size:14px;font-weight:600}
.foot-top p{margin:2px 0 0;color:var(--muted);max-width:420px}
.foot-nav ul{list-style:none;margin:0;padding:0;text-align:right}
.foot-nav li{margin-bottom:6px}
.foot-nav a{font-weight:600;font-size:13px}
.foot-bottom{margin-top:18px;font-size:11px;color:var(--muted)}

/* wp core */
.alignleft{float:left;margin:0 1em 1em 0}.alignright{float:right;margin:0 0 1em 1em}.aligncenter{display:block;margin:0 auto 1em}
.wp-caption-text,figcaption{font-size:12px;color:var(--muted)}

@media(max-width:782px){.admin-bar .site-header{top:46px}}
@media(max-width:720px){.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.search-form{width:120px}.logo small{display:none}}
@media(max-width:520px){.grid{grid-template-columns:1fr}.bar{gap:8px}.main-nav a{padding:5px 9px}.search-form{display:none}.btn:not(.p){display:none}}

/* sign in / sign up */
.page-template-template-signup,.page-template-template-signin{background:#f4efe6}
.auth-card{width:min(384px,100% - 32px);margin:32px auto 56px;background:#fffdfb;border:1px solid #eadfd0;border-radius:18px;padding:18px 18px 22px;box-shadow:0 10px 30px rgba(70,48,31,.06)}
.auth-card h1{font-size:28px;margin:0 0 6px;line-height:1.15}
.auth-card .lead{color:var(--muted);margin:0 0 6px;font-size:13.5px;line-height:1.6}
.auth-card label{display:block;font-weight:600;font-size:12.5px;margin:14px 0 5px}
.auth-card input[type=text],.auth-card input[type=email],.auth-card input[type=password]{width:100%;height:38px;padding:0 14px;border:1px solid #efe3cf;border-radius:12px;background:#fff;font:inherit;color:var(--ink);outline:0}
.auth-card input:focus{border-color:var(--yellow);box-shadow:0 0 0 3px rgba(245,207,91,.45)}
.auth-card .g-recaptcha{margin-top:14px;overflow:hidden}
.auth-card .submit{width:100%;height:34px;margin-top:14px;border:0;border-radius:999px;background:#3d271a;color:#fff;font:inherit;font-weight:700;font-size:13px;cursor:pointer}
.auth-card .submit:hover{background:#2c1b11}
.auth-card .alt{margin:10px 0 0;font-size:13px}
.auth-card a{color:#3d271a;text-decoration:underline}
.auth-card .row{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:12px;font-size:12.5px}
.auth-card .check{display:flex;align-items:center;gap:7px;margin:0;font-weight:400}
.auth-card .notice{margin:12px 0 0;padding:9px 13px;border-radius:10px;font-size:13px}
.auth-card .notice.error{background:#fdf0ed;border:1px solid #f0c8bf;color:#8a2f20}
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}

/* categories directory page */
.cats .all-cats-pill{font-weight:600}
.breadcrumb{padding:28px 0 14px;font-size:12px;color:var(--muted)}
.breadcrumb a{text-decoration:underline;text-underline-offset:3px;color:var(--ink)}
.cats-hero{padding:0 0 24px}
.cats-hero .eyebrow{display:block;font-size:10px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--ink);margin-bottom:8px}
.cats-hero h1{font-size:clamp(32px,5vw,44px);line-height:1.12;margin:0 0 12px;letter-spacing:-.02em;font-weight:700;max-width:520px}
.cats-hero p{color:var(--muted);max-width:520px;margin:0;font-size:14px;line-height:1.6}
.cat-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:4px 0 56px}
.cat-card{display:flex;align-items:center;gap:16px;background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:10px 16px 10px 10px;transition:border-color .15s ease,transform .15s ease}
.cat-card:hover{border-color:var(--yellow);transform:translateY(-1px)}
.cat-thumb{width:64px;height:64px;border-radius:12px;background:#fff;border:1px solid #f0e6d8;display:grid;place-items:center;overflow:hidden;flex-shrink:0}
.cat-thumb img{width:100%;height:100%;object-fit:contain;display:block;padding:4px}
.cat-fallback{font-size:22px;color:var(--star)}
.cat-info{min-width:0}
.cat-info h2{font-size:15px;font-weight:700;margin:0 0 3px;line-height:1.25;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cat-info span{display:block;font-size:12px;color:var(--muted)}
@media(max-width:640px){.cat-grid{grid-template-columns:1fr}}

/* more reviews section */
.more-reviews{padding:12px 0 40px}
.more-reviews>h2{font-size:18px;font-weight:700;margin:0 0 8px;color:var(--ink)}
.more-reviews .grid{padding-top:8px}

/* adsense & compliance styling */
.single-bc{padding:0 0 12px}
.foot-disclosure{font-size:11.5px;color:var(--muted);margin-top:8px!important;max-width:460px}
.ad-slot{margin:20px 0;padding:10px;background:var(--surface);border:1px solid var(--line);border-radius:12px;text-align:center;min-height:110px}
.ad-label{display:block;font-size:10px;text-transform:uppercase;letter-spacing:.1em;color:var(--muted);margin-bottom:4px}
