/*
Theme Name: BathSmartly
Theme URI: https://bathsmartly.com/
Author: BathSmartly
Description: Lightweight, responsive editorial WordPress theme for bathroom guides and affiliate content.
Version: 1.8.3
Text Domain: bathsmartly
Tags: accessibility-ready, blog, custom-logo, custom-menu, featured-images, responsive-layout, rtl-language-support, threaded-comments, translation-ready
*/
:root{--green:#315c4b;--dark:#202b27;--terracotta:#c9825b;--brass:#b99a68;--ivory:#faf8f3;--stone:#ede9e1;--text:#4f5a55;--border:#dcd8cf;--white:#fff;--shadow:0 16px 40px rgba(32,43,39,.10)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--ivory);color:var(--text);font-family:"DM Sans",system-ui,-apple-system,"Segoe UI",Arial,sans-serif;font-size:17px;line-height:1.7}a{color:var(--green);text-decoration:none;transition:.25s ease}a:hover{color:var(--terracotta)}img{max-width:100%;height:auto;display:block}.container{width:min(1180px,92%);margin:auto}.skip-link{position:absolute;left:-9999px}.skip-link:focus{left:1rem;top:1rem;background:var(--dark);color:#fff;padding:.7rem;z-index:1000}
.site-header{position:sticky;top:0;z-index:100;background:rgba(255,255,255,.98);border-bottom:1px solid var(--border);backdrop-filter:saturate(140%) blur(8px)}.header-inner{min-height:78px;display:flex;align-items:center;gap:1.5rem}.site-brand{display:flex;align-items:center;line-height:1;flex:0 0 auto}.site-brand img{width:190px;max-height:64px;object-fit:contain}.primary-navigation{margin-left:auto}.primary-menu{display:flex;gap:1.45rem;align-items:center;list-style:none;margin:0;padding:0}.primary-menu a{color:var(--dark);font-weight:600;position:relative;white-space:nowrap}.primary-menu a:after{content:"";position:absolute;left:0;bottom:-7px;width:0;height:2px;background:var(--terracotta);transition:.25s}.primary-menu a:hover:after,.primary-menu .current-menu-item a:after{width:100%}.header-actions{display:flex;align-items:center;gap:.45rem;flex:0 0 auto}.header-search-form{display:flex;align-items:center;width:235px;height:42px;border:1px solid var(--border);border-radius:999px;background:var(--white);overflow:hidden;transition:border-color .2s,box-shadow .2s}.header-search-form:focus-within{border-color:var(--green);box-shadow:0 0 0 3px rgba(49,92,75,.10)}.header-search-form input{min-width:0;flex:1;height:100%;border:0;outline:0;background:transparent;color:var(--dark);padding:0 .95rem;font:inherit;font-size:.88rem}.header-search-form input::placeholder{color:#7b837f}.header-search-form button,.search-toggle{display:grid;place-items:center;border:0;background:transparent;color:var(--dark);cursor:pointer}.header-search-form button{width:42px;height:42px;flex:0 0 42px}.header-search-form svg,.search-toggle svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}.header-search-form button:hover,.search-toggle:hover{color:var(--terracotta)}.search-toggle{display:none;width:42px;height:42px;border-radius:50%}.menu-toggle{display:none;width:42px;height:42px;background:transparent;border:0;color:var(--dark);cursor:pointer;padding:9px;border-radius:50%}.menu-toggle span{display:block;height:2px;background:currentColor;margin:5px 0;border-radius:2px;transition:transform .2s,opacity .2s}.menu-toggle[aria-expanded="true"] span:nth-child(1){transform:translateY(7px) rotate(45deg)}.menu-toggle[aria-expanded="true"] span:nth-child(2){opacity:0}.menu-toggle[aria-expanded="true"] span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}.header-search-panel{background:var(--white);border-top:1px solid var(--border);border-bottom:1px solid var(--border);box-shadow:0 12px 28px rgba(32,43,39,.10);padding:1rem 0}.header-search-panel[hidden]{display:none}.mobile-search-form{display:flex;gap:.55rem;max-width:760px;margin:0 auto}.mobile-search-form input{min-width:0;flex:1;border:1px solid var(--border);border-radius:999px;padding:.85rem 1rem;color:var(--dark);background:var(--ivory);font:inherit;outline:0}.mobile-search-form input:focus{border-color:var(--green);box-shadow:0 0 0 3px rgba(49,92,75,.10)}.mobile-search-form button{border:0;border-radius:999px;padding:.85rem 1.25rem;background:var(--green);color:#fff;font-weight:700;cursor:pointer}.mobile-search-form button:hover{background:var(--terracotta)}
.hero{position:relative;min-height:620px;display:flex;align-items:center;color:#fff;overflow:hidden}.hero-media,.hero-overlay{position:absolute;inset:0}.hero-media img{width:100%;height:100%;object-fit:cover}.hero-overlay{background:linear-gradient(90deg,rgba(32,43,39,.84) 0%,rgba(32,43,39,.60) 42%,rgba(32,43,39,.10) 78%)}.hero-content{position:relative;z-index:1;max-width:620px;padding:5rem 0;text-align:left;margin-left:6%}.eyebrow{text-transform:uppercase;letter-spacing:.18em;font-size:.78rem;color:#f0d9c8;font-weight:700}.hero h1,.page-title{font-family:"Cormorant Garamond",Georgia,"Times New Roman",serif;font-weight:700;line-height:1.05;color:inherit;font-size:clamp(2.6rem,6vw,5rem);margin:1rem 0}.hero p{font-size:1.15rem;max-width:560px;margin:0 0 2rem}.button{display:inline-flex;align-items:center;gap:.55rem;background:var(--green);color:#fff;padding:.85rem 1.35rem;border-radius:4px;font-weight:700;border:1px solid var(--green);transition:.25s}.button:hover{background:var(--terracotta);border-color:var(--terracotta);color:#fff;transform:translateY(-3px);box-shadow:0 10px 22px rgba(32,43,39,.18)}.button.alt{background:transparent;border-color:#fff;margin-left:.5rem}
.section{padding:5rem 0}.section-heading{text-align:center;max-width:760px;margin:0 auto 2.5rem}.section-heading h2{font-family:"Cormorant Garamond",Georgia,"Times New Roman",serif;color:var(--dark);font-size:clamp(2rem,3.4vw,3.1rem);line-height:1.1;margin:.4rem 0}.section-heading p{margin:0}.category-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1.25rem}.category-card,.post-card{background:var(--white);border:1px solid var(--border);border-radius:8px;overflow:hidden;box-shadow:0 4px 15px rgba(32,43,39,.04);transition:.3s}.category-card:hover,.post-card:hover{transform:translateY(-6px);border-color:var(--terracotta);box-shadow:var(--shadow)}.card-image{height:210px;overflow:hidden;background:var(--stone);position:relative}.card-image img{width:100%;height:100%;object-fit:cover;transition:.5s}.category-card:hover img,.post-card:hover img{transform:scale(1.04)}.card-body{padding:1.35rem}.icon{width:42px;height:42px;border:1px solid var(--brass);border-radius:50%;display:grid;place-items:center;color:var(--green);font-size:1.15rem;margin-bottom:.7rem}.card-body h3,.post-card h3,.card-title{font-family:"Cormorant Garamond",Georgia,"Times New Roman",serif;font-size:1.5rem;line-height:1.15;color:var(--dark);margin:.3rem 0}.card-body p{font-size:.98rem}.text-link{font-weight:700;color:var(--terracotta)}
.split{display:grid;grid-template-columns:1fr 1fr;align-items:stretch}.split-image{min-height:430px;overflow:hidden}.split-image img{width:100%;height:100%;object-fit:cover}.split-content{background:var(--stone);padding:4rem clamp(2rem,5vw,5rem);display:flex;flex-direction:column;justify-content:center}.split-content h2{font-family:"Cormorant Garamond",Georgia,"Times New Roman",serif;color:var(--dark);font-size:2.6rem;line-height:1.1;margin:.5rem 0 1rem}.post-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.4rem}.post-card .card-image{height:230px}.post-meta-line{display:flex;flex-wrap:wrap;gap:.45rem .9rem;align-items:center;font-size:.79rem;color:var(--text);margin-bottom:.8rem}.post-meta-line span,.post-meta-line a{position:relative}.post-meta-line span+span:before,.post-meta-line a+span:before{content:"•";margin-right:.9rem;color:var(--brass)}.post-category{font-weight:700;color:var(--terracotta)}.post-stats{position:absolute;right:.7rem;top:.7rem;display:flex;gap:.4rem;flex-wrap:wrap;justify-content:flex-end;z-index:2}.post-stats span{background:rgba(32,43,39,.84);color:#fff;border-radius:999px;padding:.25rem .55rem;font-size:.68rem;font-weight:600;line-height:1.3;white-space:nowrap}.newsletter{color:#fff;text-align:center;background:linear-gradient(rgba(49,92,75,.83),rgba(49,92,75,.88)),url("https://images.unsplash.com/photo-1552321554-5fefe8c9ef14?auto=format&fit=crop&w=1600&q=76&fm=webp") center/cover}.newsletter h2{font-family:"Cormorant Garamond",Georgia,"Times New Roman",serif;font-size:2.6rem;margin:.4rem 0}.newsletter form{display:flex;max-width:550px;margin:1.5rem auto 0}.newsletter input{flex:1;padding:1rem;border:0;border-radius:4px 0 0 4px}.newsletter button{border:0;border-radius:0 4px 4px 0;background:var(--terracotta);color:#fff;padding:0 1.3rem;font-weight:700}
.site-footer{background:var(--dark);color:#cbd4ce;padding:4rem 0 1.5rem}.footer-grid{display:grid;grid-template-columns:2fr 1fr 1.5fr 1fr;gap:2rem}.site-footer h3{font-family:"Cormorant Garamond",Georgia,"Times New Roman",serif;color:#fff;font-size:1.4rem;margin-top:0}.site-footer a{color:#cbd4ce}.site-footer a:hover{color:#f0c4aa}.footer-bottom{border-top:1px solid rgba(255,255,255,.15);margin-top:3rem;padding-top:1rem;font-size:.85rem;display:flex;justify-content:space-between}.socials{display:flex;gap:.8rem}.socials a{border:1px solid rgba(255,255,255,.25);width:34px;height:34px;border-radius:50%;display:grid;place-items:center}
.page-hero{padding:5rem 0;background:var(--stone)}.page-hero .page-title{color:var(--dark);font-size:clamp(2.6rem,5vw,4.4rem)}.breadcrumbs{font-size:.85rem;margin-bottom:1rem}.category-description{max-width:820px;font-size:1.12rem}.single-category{display:inline-block;text-transform:uppercase;letter-spacing:.13em;font-size:.78rem;font-weight:800;color:var(--terracotta);margin-top:.4rem}.single-hero .page-title{margin:.5rem 0 1rem}.single-stats{margin-top:.8rem}.single-stats .post-stats{position:static;justify-content:flex-start}.content-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:3rem}.article-list{display:grid;gap:1.5rem}.article-card{display:grid;grid-template-columns:260px 1fr;background:#fff;border:1px solid var(--border);border-radius:8px;overflow:hidden}.article-image-wrap{position:relative;min-height:230px}.article-card img{height:100%;width:100%;object-fit:cover}.article-card .card-body{padding:1.5rem}.sidebar{background:var(--stone);padding:1.5rem;height:max-content;border-radius:8px}.sidebar h3{font-family:"Cormorant Garamond",Georgia,"Times New Roman",serif;color:var(--dark);font-size:1.5rem}.entry-content{background:#fff;padding:clamp(1.5rem,4vw,4rem);border-radius:8px;border:1px solid var(--border)}.entry-content>img{width:100%;height:auto;border-radius:6px;margin-bottom:2rem}.entry-content h2,.entry-content h3{font-family:"Cormorant Garamond",Georgia,"Times New Roman",serif;color:var(--dark);line-height:1.2}.entry-content h2{font-size:2rem}.entry-content h3{font-size:1.5rem}.entry-content blockquote{border-left:4px solid var(--terracotta);padding-left:1rem;font-style:italic}.pagination{margin-top:2rem}.pagination ul{display:flex;gap:.4rem;list-style:none;padding:0;flex-wrap:wrap}.pagination a,.pagination span{display:inline-block;padding:.45rem .7rem;border:1px solid var(--border);border-radius:4px}.pagination .current{background:var(--green);color:#fff;border-color:var(--green)}.comments-area{margin-top:3rem;padding-top:2rem;border-top:1px solid var(--border)}
.blog-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:2rem}.blog-main{min-width:0}.blog-sidebar{display:grid;gap:1.25rem;align-content:start}.sidebar-box{background:#fff;border:1px solid var(--border);border-radius:8px;padding:1.35rem}.sidebar-box h3{font-family:"Cormorant Garamond",Georgia,"Times New Roman",serif;color:var(--dark);font-size:1.55rem;margin:.1rem 0 1rem}.sidebar-box ul{list-style:none;padding:0;margin:0}.sidebar-box li{border-bottom:1px solid var(--border);padding:.55rem 0}.sidebar-box li:last-child{border-bottom:0}.search-form{display:flex;gap:.4rem}.search-form input{min-width:0;flex:1;padding:.75rem;border:1px solid var(--border);border-radius:4px}.search-form button{background:var(--green);color:#fff;border:0;border-radius:4px;padding:.7rem 1rem}.sidebar-newsletter{background:var(--stone)}.sidebar-newsletter input{width:100%;padding:.75rem;border:1px solid var(--border);border-radius:4px;margin:.35rem 0}.sidebar-newsletter button{width:100%;padding:.75rem;background:var(--terracotta);border:0;color:#fff;border-radius:4px;font-weight:700}
.menu-toggle:focus-visible,.primary-menu a:focus-visible,.button:focus-visible,a:focus-visible{outline:3px solid var(--terracotta);outline-offset:4px}.newsletter form input:focus,.search-form input:focus{outline:2px solid var(--terracotta);outline-offset:2px}
@media(max-width:900px){.primary-navigation{display:none}.header-search-form{display:none}.search-toggle,.menu-toggle{display:grid}.header-inner{min-height:72px;gap:.35rem}.site-brand{margin-right:auto}.site-brand img{width:175px}.category-grid{grid-template-columns:repeat(2,1fr)}.post-grid{grid-template-columns:1fr 1fr}.footer-grid{grid-template-columns:1fr 1fr}.content-layout{grid-template-columns:1fr}.primary-menu{gap:1rem}.hero-content{margin-left:0}.hero{background-position:center}}
@media(max-width:800px){.blog-layout{grid-template-columns:1fr}}
@media(max-width:650px){.header-inner{min-height:68px}.site-brand img{width:155px}.header-actions{gap:.15rem}.search-toggle,.menu-toggle{width:40px;height:40px}.primary-navigation{display:block;position:absolute;left:0;right:0;top:68px;background:#fff;border-bottom:1px solid var(--border);box-shadow:0 12px 28px rgba(32,43,39,.08);z-index:2}.primary-menu{display:none;padding:1rem 4%;flex-direction:column;align-items:flex-start;gap:.85rem}.primary-menu.is-open{display:flex}.primary-menu li{width:100%}.primary-menu a{display:block;padding:.15rem 0}.header-search-panel .container{width:92%}.hero{min-height:560px}.hero-content{padding:4rem 0}.hero h1{font-size:clamp(2.4rem,9vw,4rem)}.button.alt{margin:.6rem 0 0}.category-grid,.post-grid{grid-template-columns:1fr}.split{grid-template-columns:1fr}.split-image{min-height:300px}.article-card{grid-template-columns:1fr}.article-image-wrap{min-height:230px}.article-card img{height:230px}.newsletter form{display:block}.newsletter input,.newsletter button{width:100%;border-radius:4px;margin:.25rem 0;padding:1rem}.footer-grid{grid-template-columns:1fr}.footer-bottom{display:block}.footer-bottom>*{margin:.5rem 0}.post-meta-line{gap:.3rem .65rem}}
.comment-list{margin:1.5rem 0;padding:0;list-style:none}.comment-list .comment{padding:1rem 0;border-bottom:1px solid var(--border)}.comment-list .children{list-style:none;margin:1rem 0 0 1.5rem;padding:0}.comment-meta{font-size:.85rem}.comment-content{margin-top:.5rem}.comment-form-comment textarea,.comment-form-author input,.comment-form-email input,.comment-form-url input{width:100%;padding:.75rem;border:1px solid var(--border);border-radius:4px}.comment-form input:focus,.comment-form textarea:focus{outline:2px solid var(--terracotta);outline-offset:2px}.comment-form .submit{background:var(--green);color:#fff;border:1px solid var(--green);border-radius:4px;padding:.75rem 1.2rem;font-weight:700;cursor:pointer}

/* Final category card structure: image + icon + title + unique description + button */
.category-grid .category-card{display:flex;flex-direction:column;min-height:100%;background:var(--white);color:var(--text)}
.category-grid .category-card .card-image{display:block;flex:0 0 210px;height:210px;margin:0;padding:0;background:var(--stone);overflow:hidden}
.category-grid .category-card .card-image a{display:block;width:100%;height:100%;margin:0;padding:0}
.category-grid .category-card .card-image img{display:block;width:100%;height:100%;max-width:none;object-fit:cover}
.category-grid .category-card .card-body{display:flex;flex:1;flex-direction:column;align-items:flex-start;padding:1.35rem}
.category-grid .category-card .icon{display:grid;visibility:visible;opacity:1;flex:0 0 42px;width:42px;height:42px;margin:0 0 .7rem;place-items:center}
.category-grid .category-card h3{display:block;visibility:visible;opacity:1;width:100%;margin:.3rem 0 .65rem}
.category-grid .category-card h3 a{display:inline;color:var(--dark);visibility:visible;opacity:1}
.category-grid .category-card p{display:block;visibility:visible;opacity:1;width:100%;margin:0 0 1rem;color:var(--text);font-size:.98rem;line-height:1.65}
.category-grid .category-card .text-link{display:inline-flex;visibility:visible;opacity:1;margin-top:auto;align-items:center;color:var(--terracotta);font-weight:700}
.category-grid .category-card .text-link:hover{color:var(--green)}
@media(max-width:650px){.category-grid .category-card .card-image{height:220px;flex-basis:220px}}

.category-archive-meta{margin-top:1rem;color:var(--text);font-size:.88rem;font-weight:600}

/* Dynamic category article counts */
.category-count{display:inline-block;margin-left:.35rem;color:var(--terracotta);font-size:.82em;font-weight:700;white-space:nowrap}
.blog-sidebar .sidebar-box ul li a{display:flex;align-items:baseline;gap:.15rem;flex-wrap:wrap}

.category-article-count{margin:.25rem 0 1rem;color:var(--dark);font-size:.84rem;font-weight:700;letter-spacing:.03em}.category-count{float:right;color:var(--terracotta);font-weight:700;font-size:.78rem}

/* Category page shares the blog page's search/browse-categories/subscribe sidebar structure */
.blog-layout .category-post-grid{grid-template-columns:repeat(2,1fr)}
@media(max-width:650px){.blog-layout .category-post-grid{grid-template-columns:1fr}}
