/*
Theme Name: HAIRNEST Haircare & Skincare
Theme URI: https://hairiest.in/
Author: HAIRNEST
Description: Lightweight, responsive, SEO-conscious HAIRNEST haircare and skincare editorial theme with category archives, article navigation and affiliate-friendly layouts.
Version: 1.2.2
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hairnest-beauty
*/
:root{--wine:#8b1e3f;--pink:#f6dbe3;--blush:#fff4f6;--ink:#302b2d;--muted:#746b6f;--line:#eadfe2;--max:1160px}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#fff;color:var(--ink);font-family:Arial,Helvetica,sans-serif;line-height:1.65}a{color:var(--wine);text-decoration:none}a:hover{text-decoration:underline}img{max-width:100%;height:auto}button,input{font:inherit}.wrap{width:min(var(--max),calc(100% - 36px));margin:auto}.topbar{background:var(--wine);color:white;text-align:center;padding:8px 14px;font-size:12px;letter-spacing:.06em}.header{background:white;box-shadow:0 1px 12px #25151b0c;position:relative;z-index:10}.head-inner{min-height:88px;display:flex;align-items:center;justify-content:space-between;gap:24px}.brand img{display:block;width:225px;max-height:72px;object-fit:contain;object-position:left}.brand-name{font-size:28px;font-weight:800;color:var(--wine)}.menu{display:flex;align-items:center;gap:24px;list-style:none;margin:0;padding:0}.menu li{position:relative}.menu a{font-size:14px;font-weight:700;color:#333}.menu .sub-menu{display:none;position:absolute;top:100%;left:0;background:#fff;padding:14px;min-width:190px;box-shadow:0 12px 28px #0002;list-style:none}.menu li:hover>.sub-menu,.menu li:focus-within>.sub-menu{display:block}.nav-search{display:flex;align-items:center;gap:8px}.nav-search input{width:145px;border:1px solid var(--line);border-radius:30px;padding:8px 12px}.nav-search button,.btn{display:inline-block;border:0;border-radius:28px;background:var(--wine);color:white;padding:11px 23px;font-weight:700;cursor:pointer}.nav-search button{padding:8px 13px}.mobile-toggle{display:none;background:white;border:1px solid var(--line);border-radius:8px;padding:7px 12px}.hero{background:linear-gradient(110deg,#fff3f5 0%,#f9e2e7 55%,#f1c7d1 100%);overflow:hidden}.hero-grid{min-height:450px;display:grid;grid-template-columns:1.05fr .95fr;align-items:center;gap:30px}.eyebrow{font-size:12px;letter-spacing:.25em;text-transform:uppercase;color:var(--wine);font-weight:800}.hero h1{font-family:Georgia,serif;font-size:clamp(38px,5vw,64px);line-height:1.12;letter-spacing:-.035em;margin:16px 0;color:#251f21}.hero h1 em{color:var(--wine);font-style:normal}.hero p{font-size:17px;color:#5c4e54;max-width:490px;margin:0 0 26px}.hero-art{min-height:420px;display:flex;align-items:center;justify-content:center;position:relative}.hero-art:before{content:'';position:absolute;width:370px;height:370px;border-radius:50%;background:#ffffff8a;box-shadow:0 0 0 30px #ffffff40}.hero-art img{position:relative;width:min(450px,95%);filter:drop-shadow(0 18px 20px #8b1e3f22)}.trust{display:flex;justify-content:center;gap:35px;flex-wrap:wrap;padding:19px;color:#65434f;background:#fff9fa;font-size:13px;font-weight:700}.section{padding:62px 0}.section.alt{background:#fff8f9}.section-head{text-align:center;margin-bottom:30px}.section-head h2{font-family:Georgia,serif;font-size:35px;margin:0}.section-head p{color:var(--muted);margin:7px 0}.accent{display:block;width:58px;height:3px;background:var(--wine);margin:12px auto}.category-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.category{border-radius:17px;overflow:hidden;background:white;border:1px solid var(--line);box-shadow:0 8px 25px #4510210c;transition:transform .2s}.category:hover{transform:translateY(-4px);text-decoration:none}.category-art{height:175px;display:flex;align-items:center;justify-content:center;font-size:74px;background:linear-gradient(135deg,#f8d6e1,#fff2f4)}.category:nth-child(2) .category-art{background:linear-gradient(135deg,#e9d6cd,#fff6f2)}.category:nth-child(3) .category-art{background:linear-gradient(135deg,#f3c5d5,#f7e4ed)}.category:nth-child(4) .category-art{background:linear-gradient(135deg,#e9d4d9,#fff)}.category-copy{padding:15px 18px}.category-copy strong{display:block;color:var(--ink);font-size:18px}.category-copy small{color:var(--muted)}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.post-card{border:1px solid var(--line);border-radius:16px;overflow:hidden;background:white;box-shadow:0 5px 18px #00000008}.post-card img{width:100%;height:215px;object-fit:cover;display:block}.post-card .fallback{height:215px;display:grid;place-items:center;font-size:70px;background:linear-gradient(135deg,#f6d4df,#fff1f4)}.post-card-body{padding:22px}.post-card h3{font-family:Georgia,serif;font-size:21px;line-height:1.35;margin:8px 0}.post-card h3 a{color:var(--ink)}.post-card p{font-size:14px;color:var(--muted)}.tag{font-size:11px;text-transform:uppercase;letter-spacing:.1em;color:var(--wine);font-weight:800}.more{font-size:13px;font-weight:800}.affiliate-note{font-size:12px;color:var(--muted);text-align:center;margin:24px 0 0}.cta{background:linear-gradient(110deg,#8b1e3f,#b7436b);padding:52px 0;text-align:center;color:white}.cta h2{font-family:Georgia,serif;font-size:32px;margin:0}.cta p{margin:10px 0 22px}.cta .btn{background:white;color:var(--wine)}.footer{background:#3b1826;color:#f8e8ee;padding:48px 0 20px}.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:40px}.footer h3{color:white;margin-top:0}.footer a{color:#f7dce5}.footer ul{list-style:none;padding:0;margin:0}.footer li{margin:8px 0}.footer-bottom{border-top:1px solid #ffffff2b;margin-top:30px;padding-top:20px;color:#e5c8d3;font-size:12px}.content-area{padding:55px 0;min-height:50vh}.content-area h1{font-family:Georgia,serif;font-size:40px;line-height:1.2}.content-area .narrow{max-width:820px;margin:auto}.entry-content{font-size:17px;overflow-wrap:break-word}.entry-content h2,.entry-content h3{font-family:Georgia,serif;line-height:1.3}.entry-content img{border-radius:10px}.entry-meta{color:var(--muted);font-size:13px}.pagination{margin-top:30px}.pagination .page-numbers{padding:8px 13px;border:1px solid var(--line);border-radius:5px;margin-right:4px}.pagination .current{background:var(--wine);color:white}.screen-reader-text{position:absolute;left:-9999px}.wp-block-image img{height:auto}@media(max-width:900px){.head-inner{flex-wrap:wrap;padding:12px 0}.mobile-toggle{display:block}.nav{display:none;width:100%;order:4}.nav.open{display:block}.menu{display:block}.menu li{padding:8px 0}.menu .sub-menu{display:block;position:static;box-shadow:none;padding:5px 18px}.nav-search{margin-left:auto}.hero-grid{grid-template-columns:1fr}.hero-grid>div:first-child{padding-top:55px}.hero-art{min-height:290px}.hero-art:before{width:250px;height:250px}.hero-art img{width:330px}.category-grid{grid-template-columns:repeat(2,1fr)}.cards{grid-template-columns:repeat(2,1fr)}}@media(max-width:600px){.brand img{width:165px}.nav-search input{width:95px}.hero h1{font-size:39px}.hero-art{min-height:230px}.hero-art img{width:250px}.section{padding:40px 0}.section-head h2{font-size:29px}.cards{grid-template-columns:1fr}.category-grid{gap:10px}.category-art{height:125px;font-size:55px}.category-copy{padding:10px}.category-copy strong{font-size:15px}.footer-grid{grid-template-columns:1fr;gap:15px}.trust{gap:12px;font-size:11px}.content-area h1{font-size:32px}}

/* v1.1.0 accessibility, article and responsive refinements */
:focus-visible{outline:3px solid #c75a7b;outline-offset:3px}.breadcrumbs{font-size:13px;color:var(--muted);margin:0 0 16px}.breadcrumbs a{color:var(--wine)}.post-featured-image{margin:22px 0 28px}.post-featured-image img{display:block;width:100%;height:auto;max-height:560px;object-fit:cover}.entry-content{line-height:1.8}.entry-content h2{font-size:clamp(25px,3vw,32px);margin-top:1.7em}.entry-content h3{font-size:23px;margin-top:1.4em}.entry-content a{text-decoration:underline;text-underline-offset:3px}.entry-content ul,.entry-content ol{padding-left:1.5em}.entry-content figure{margin:1.5em 0}.related-posts{margin-top:48px;padding-top:28px;border-top:1px solid var(--line)}.related-posts h2{font-family:Georgia,serif;font-size:28px}.related-posts .cards{grid-template-columns:repeat(3,minmax(0,1fr))}.post-card img{aspect-ratio:3/2;height:auto}.nav .menu a{display:block;padding:8px 0}.nav .menu a:hover{color:var(--wine)}.category-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.category-art{min-height:145px}.content-area .cards{align-items:stretch}.content-area article img{max-width:100%}.pagination a,.pagination span{display:inline-block;margin:4px;padding:8px 12px}.footer a:hover{text-decoration:underline;color:#fff}@media(max-width:900px){.head-inner{gap:12px}.nav-search{order:3;width:100%;margin:0}.nav-search input{width:100%;flex:1}.nav{order:4}.nav .menu{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px}.nav .menu li{border-bottom:1px solid var(--line)}.category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.related-posts .cards{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.wrap{width:min(var(--max),calc(100% - 28px))}.topbar{font-size:10px;padding:7px 8px}.head-inner{min-height:70px}.brand img{width:155px;max-height:58px}.mobile-toggle{font-size:13px}.nav .menu{grid-template-columns:1fr 1fr;gap:0 12px}.hero-grid{min-height:0}.hero-grid>div:first-child{padding-top:38px}.hero h1{font-size:clamp(34px,9vw,42px)}.hero p{font-size:15px}.trust{padding:14px 10px}.category-grid{grid-template-columns:1fr 1fr}.category-art{height:112px;min-height:112px;font-size:48px}.cards,.related-posts .cards{grid-template-columns:1fr}.post-card img{height:auto;aspect-ratio:16/10}.content-area{padding:32px 0}.content-area h1{font-size:30px}.entry-content{font-size:16px}.entry-content img{height:auto}.footer{padding:35px 0 18px}.footer-grid{gap:22px}}

/* v1.1.0 responsive and article refinements */
:focus-visible{outline:3px solid #c75a7b;outline-offset:3px}.breadcrumbs{font-size:13px;color:var(--muted);margin:0 0 16px}.breadcrumbs a{color:var(--wine)}.post-featured-image{margin:22px 0 28px}.post-featured-image img{display:block;width:100%;height:auto;max-height:560px;object-fit:cover}.entry-content{line-height:1.8}.entry-content h2{font-size:clamp(25px,3vw,32px);margin-top:1.7em}.entry-content h3{font-size:23px;margin-top:1.4em}.entry-content a{text-decoration:underline;text-underline-offset:3px}.entry-content ul,.entry-content ol{padding-left:1.5em}.related-posts{margin-top:48px;padding-top:28px;border-top:1px solid var(--line)}.related-posts h2{font-family:Georgia,serif;font-size:28px}.related-posts .cards{grid-template-columns:repeat(3,minmax(0,1fr))}.post-card img{aspect-ratio:3/2;height:auto}.nav .menu a{display:block;padding:8px 0}.category-grid{grid-template-columns:repeat(3,minmax(0,1fr))}@media(max-width:900px){.head-inner{gap:12px}.nav-search{order:3;width:100%;margin:0}.nav-search input{width:100%;flex:1}.nav{order:4}.nav .menu{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px}.nav .menu li{border-bottom:1px solid var(--line)}.category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.related-posts .cards{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.wrap{width:min(var(--max),calc(100% - 28px))}.topbar{font-size:10px;padding:7px 8px}.head-inner{min-height:70px}.brand img{width:155px;max-height:58px}.nav .menu{grid-template-columns:1fr 1fr;gap:0 12px}.hero-grid{min-height:0}.hero-grid>div:first-child{padding-top:38px}.hero h1{font-size:clamp(34px,9vw,42px)}.category-grid{grid-template-columns:1fr 1fr}.category-art{height:112px;min-height:112px;font-size:48px}.cards,.related-posts .cards{grid-template-columns:1fr}.post-card img{height:auto;aspect-ratio:16/10}.content-area{padding:32px 0}.content-area h1{font-size:30px}.entry-content{font-size:16px}.footer{padding:35px 0 18px}}

/* v1.1.0 responsive and article refinements */
:focus-visible{outline:3px solid #c75a7b;outline-offset:3px}.breadcrumbs{font-size:13px;color:var(--muted);margin:0 0 16px}.breadcrumbs a{color:var(--wine)}.post-featured-image{margin:22px 0 28px}.post-featured-image img{display:block;width:100%;height:auto;max-height:560px;object-fit:cover}.entry-content{line-height:1.8}.entry-content h2{font-size:clamp(25px,3vw,32px);margin-top:1.7em}.entry-content h3{font-size:23px;margin-top:1.4em}.entry-content a{text-decoration:underline;text-underline-offset:3px}.entry-content ul,.entry-content ol{padding-left:1.5em}.related-posts{margin-top:48px;padding-top:28px;border-top:1px solid var(--line)}.related-posts h2{font-family:Georgia,serif;font-size:28px}.related-posts .cards{grid-template-columns:repeat(3,minmax(0,1fr))}.post-card img{aspect-ratio:3/2;height:auto}.nav .menu a{display:block;padding:8px 0}.category-grid{grid-template-columns:repeat(3,minmax(0,1fr))}@media(max-width:900px){.head-inner{gap:12px}.nav-search{order:3;width:100%;margin:0}.nav-search input{width:100%;flex:1}.nav{order:4}.nav .menu{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px}.nav .menu li{border-bottom:1px solid var(--line)}.category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.related-posts .cards{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.wrap{width:min(var(--max),calc(100% - 28px))}.topbar{font-size:10px;padding:7px 8px}.head-inner{min-height:70px}.brand img{width:155px;max-height:58px}.nav .menu{grid-template-columns:1fr 1fr;gap:0 12px}.hero-grid{min-height:0}.hero-grid>div:first-child{padding-top:38px}.hero h1{font-size:clamp(34px,9vw,42px)}.category-grid{grid-template-columns:1fr 1fr}.category-art{height:112px;min-height:112px;font-size:48px}.cards,.related-posts .cards{grid-template-columns:1fr}.post-card img{height:auto;aspect-ratio:16/10}.content-area{padding:32px 0}.content-area h1{font-size:30px}.entry-content{font-size:16px}.footer{padding:35px 0 18px}.footer-grid{gap:22px}}

:focus-visible{outline:3px solid #c75a7b;outline-offset:3px}.breadcrumbs{font-size:13px;color:var(--muted);margin:0 0 16px}.breadcrumbs a{color:var(--wine)}.post-featured-image{margin:22px 0 28px}.post-featured-image img{display:block;width:100%;height:auto;max-height:560px;object-fit:cover}.entry-content{line-height:1.8}.entry-content h2{font-size:clamp(25px,3vw,32px);margin-top:1.7em}.entry-content h3{font-size:23px;margin-top:1.4em}.related-posts{margin-top:48px;padding-top:28px;border-top:1px solid var(--line)}.related-posts h2{font-family:Georgia,serif;font-size:28px}.related-posts .cards{grid-template-columns:repeat(3,minmax(0,1fr))}.post-card img{aspect-ratio:3/2;height:auto}.nav .menu a{display:block;padding:8px 0}.category-grid{grid-template-columns:repeat(3,minmax(0,1fr))}@media(max-width:900px){.head-inner{gap:12px}.nav-search{order:3;width:100%;margin:0}.nav-search input{width:100%;flex:1}.nav{order:4}.nav .menu{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px}.nav .menu li{border-bottom:1px solid var(--line)}.category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.related-posts .cards{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.wrap{width:min(var(--max),calc(100% - 28px))}.topbar{font-size:10px;padding:7px 8px}.head-inner{min-height:70px}.brand img{width:155px;max-height:58px}.nav .menu{grid-template-columns:1fr 1fr;gap:0 12px}.hero-grid{min-height:0}.hero-grid>div:first-child{padding-top:38px}.hero h1{font-size:clamp(34px,9vw,42px)}.category-grid{grid-template-columns:1fr 1fr}.category-art{height:112px;min-height:112px;font-size:48px}.cards,.related-posts .cards{grid-template-columns:1fr}.post-card img{height:auto;aspect-ratio:16/10}.content-area{padding:32px 0}.content-area h1{font-size:30px}.entry-content{font-size:16px}.footer{padding:35px 0 18px}.footer-grid{gap:22px}}

/* HAIRNEST v1.2.1: restore reliable touch scrolling on mobile */
html { height: auto; min-height: 100%; overflow-y: auto; scroll-behavior: smooth; }
body { min-height: 100vh; min-height: 100dvh; overflow-y: auto; touch-action: pan-y; -webkit-overflow-scrolling: touch; }
@media (max-width: 900px) {
  html, body { height: auto; }
  body { position: static; }
  .header, .nav, .head-inner { touch-action: pan-y; }
  .nav.open { display: block; }
}

/* HAIRNEST v1.2.2 social profile icons */
.social-links{margin-top:28px}.social-links h3{margin:0 0 12px}.social-links-row{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.social-link{display:inline-flex;align-items:center;gap:8px;color:#fff!important;background:#552238;border:1px solid #ffffff35;border-radius:999px;padding:9px 14px;font-size:13px;font-weight:700;text-decoration:none!important;transition:background .2s,transform .2s}.social-link:hover{background:#8b1e3f;transform:translateY(-2px)}.social-link svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.social-pinterest svg,.social-facebook svg{fill:currentColor;stroke:none}.social-link span{display:inline}@media(max-width:600px){.social-links-row{gap:9px}.social-link{padding:9px 12px}}
