﻿/*
Theme Name: Pharmavello 4
Description: Pharmavello healthcare & wellness storefront theme.
Version: 1.0
Text Domain: pharmavello
*/
:root{--blue:#0b3b6f;--teal:#0e8fa3;--teal-d:#0a7487;--bg:#f1f8fc;--line:#dbe8f0;--ink:#1d2f44;--muted:#52667a;--white:#fff}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Inter,"Segoe UI",system-ui,sans-serif;color:var(--ink);background:#fff;line-height:1.6}
img{max-width:100%;display:block}
a{color:var(--teal-d)}
.wrap{max-width:1180px;margin:0 auto;padding:0 20px}
.skip{position:absolute;left:-999px}.skip:focus{left:10px;top:10px;background:#fff;padding:8px;z-index:99}
:focus-visible{outline:3px solid #f5a623;outline-offset:2px}
h1,h2,h3{color:var(--blue);line-height:1.2;margin:0 0 .5em}
h1{font-size:clamp(2.2rem,5vw,3.4rem)}h2{font-size:clamp(1.6rem,3vw,2.2rem)}h3{font-size:1.1rem}
.eyebrow{color:var(--teal-d);font-weight:600;letter-spacing:.06em;text-transform:uppercase;font-size:.8rem;margin:0 0 .6rem}
.btn{display:inline-flex;align-items:center;gap:8px;padding:13px 26px;border-radius:999px;font-weight:600;text-decoration:none;border:2px solid var(--teal);background:var(--teal);color:#fff;cursor:pointer;font-size:1rem;transition:.2s}
.btn:hover{background:var(--teal-d);border-color:var(--teal-d)}
.btn.ghost{background:#fff;color:var(--teal-d)}.btn.ghost:hover{background:var(--bg)}
.btn.sm{padding:9px 18px;font-size:.9rem}
/* header */
header.site{position:sticky;top:0;background:#fff;border-bottom:1px solid var(--line);z-index:50}
.bar{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:72px}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none}
.brand b{display:block;color:var(--blue);font-size:1.45rem;line-height:1}
.brand small{color:var(--teal-d);font-size:.72rem}
nav.main ul{display:flex;gap:26px;list-style:none;margin:0;padding:0}
nav.main a{text-decoration:none;color:var(--ink);font-weight:500;font-size:.93rem;padding:6px 0;border-bottom:2px solid transparent}
nav.main a:hover,nav.main a[aria-current]{color:var(--teal-d);border-color:var(--teal)}
.actions{display:flex;gap:22px}
.actions a{display:flex;flex-direction:column;align-items:center;font-size:.75rem;font-weight:600;color:var(--blue);text-decoration:none}
.actions svg{width:22px;height:22px}
.menu-btn{display:none;background:none;border:1px solid var(--line);border-radius:8px;padding:8px 12px;font-weight:600;color:var(--blue)}
/* hero */
.hero{background:linear-gradient(90deg,#e8f4fa,#f4fafd)}
.hero .wrap{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:30px;padding-top:50px;padding-bottom:50px}
.hero p.lead{color:var(--muted);max-width:500px;font-size:1.05rem}
.hero .cta{display:flex;gap:14px;flex-wrap:wrap;margin-top:26px}
.hero-img{border-radius:22px;overflow:hidden;aspect-ratio:16/9;box-shadow:0 16px 40px rgba(11,59,111,.15)}
.hero-img img{width:100%;height:100%;object-fit:cover;object-position:center}
.strip{background:var(--bg)}
.strip ul{list-style:none;margin:0;padding:22px 0;display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.strip li{display:flex;gap:14px;align-items:center}
.strip svg{width:40px;height:40px;flex:none;color:var(--teal)}
.strip b{display:block;color:var(--blue);font-size:.92rem}.strip span{font-size:.8rem;color:var(--muted)}
section.s{padding:64px 0}section.alt{background:var(--bg)}
.center{text-align:center}.center p{max-width:620px;margin-inline:auto;color:var(--muted)}
/* cards */
.grid{display:grid;gap:20px}
.cats{grid-template-columns:repeat(auto-fit,minmax(165px,1fr));margin-top:34px}
.card{background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:0 4px 14px rgba(11,59,111,.06);overflow:hidden;text-decoration:none;color:inherit;display:block}
.card .ph{aspect-ratio:4/3;background:linear-gradient(135deg,#e3f2f8,#f6fbfd);display:grid;place-items:center;color:var(--teal)}
.card .ph img{width:100%;height:100%;object-fit:cover}
.card .ph svg{width:64px;height:64px}
.card .body{padding:16px}.card p{margin:.3em 0 0;font-size:.88rem;color:var(--muted)}
a.card:hover{box-shadow:0 8px 22px rgba(11,59,111,.14);transform:translateY(-2px);transition:.2s}
.prods{grid-template-columns:repeat(auto-fill,minmax(230px,1fr));margin-top:30px}
.price{font-weight:700;color:var(--blue)}.stock{font-size:.8rem;color:var(--muted)}
.feat{grid-template-columns:repeat(auto-fit,minmax(230px,1fr));margin-top:30px}
.feat .card{padding:22px}.feat svg{width:34px;height:34px;color:var(--teal);margin-bottom:8px}
.steps{counter-reset:s;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));margin-top:30px;list-style:none;padding:0}
.steps li{counter-increment:s;background:#fff;border:1px solid var(--line);border-radius:16px;padding:22px}
.steps li:before{content:counter(s);display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:var(--teal);color:#fff;font-weight:700;margin-bottom:10px}
.split{display:grid;grid-template-columns:1fr 1fr;gap:44px;align-items:center}
.split img{border-radius:22px;box-shadow:0 12px 30px rgba(11,59,111,.15)}
.notice{border-left:5px solid var(--teal);background:#fff;border-radius:12px;padding:24px 28px;box-shadow:0 4px 14px rgba(11,59,111,.06)}
details{background:#fff;border:1px solid var(--line);border-radius:12px;margin-bottom:10px}
summary{padding:16px 20px;font-weight:600;color:var(--blue);cursor:pointer}
details p{margin:0;padding:0 20px 16px;color:var(--muted)}
.news{background:linear-gradient(90deg,#0b6f8a,#14a3b0);color:#fff;padding:34px 0}
.news .wrap{display:flex;justify-content:space-between;align-items:center;gap:24px;flex-wrap:wrap}
.news h2{color:#fff;margin:0}.news p{margin:.2em 0 0;opacity:.9}
.news form{display:flex;background:#fff;border-radius:999px;padding:5px;flex:1;min-width:280px;max-width:520px}
.news input{flex:1;border:0;padding:0 18px;font-size:1rem;background:none;min-width:0}
.news small{display:block;width:100%;opacity:.85;margin-top:8px}
.todo{background:#fff6dd;border:1px dashed #d9a400;padding:2px 8px;border-radius:6px;font-size:.9em}
footer.site{background:#fff;border-top:1px solid var(--line);padding:44px 0 20px}
footer .cols{display:grid;grid-template-columns:1.3fr 1fr 1fr 1.3fr;gap:30px}
footer h3{font-size:.95rem}footer ul{list-style:none;padding:0;margin:0}footer li{margin:.4em 0;font-size:.88rem}
footer a{text-decoration:none;color:var(--muted)}footer a:hover{color:var(--teal-d)}
.copy{border-top:1px solid var(--line);margin-top:28px;padding-top:16px;font-size:.8rem;color:var(--muted);display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px}
.page-wrap{padding:50px 0 70px;max-width:820px}.page-wrap h2{margin-top:1.6em;font-size:1.4rem}
@media(max-width:900px){
 .hero .wrap,.split{grid-template-columns:1fr}
 .strip ul{grid-template-columns:1fr 1fr}
 footer .cols{grid-template-columns:1fr 1fr}
 .menu-btn{display:block}
 nav.main{display:none;position:absolute;top:100%;left:0;right:0;background:#fff;border-bottom:1px solid var(--line);padding:10px 20px}
 nav.main.open{display:block}nav.main ul{flex-direction:column;gap:6px}
 .actions span{display:none}
}
@media(max-width:560px){.strip ul,footer .cols{grid-template-columns:1fr}}
/* sub pages */
.sub-hero{background:#dff1fa var(--hero) right center/cover no-repeat;min-height:360px;display:flex;align-items:center}
.sub-hero .txt{max-width:540px;padding:56px 0}
.sub-hero p{color:var(--muted)}.sub-hero h1{margin-bottom:.4em}
.sub-hero .btn{margin-top:10px}
.faq-hero{background:linear-gradient(90deg,#e3f3fa,#f4fafd);min-height:300px}
.faq-hero .txt{max-width:640px}
.faq-search{display:flex;gap:10px;margin-top:18px;flex-wrap:wrap}
.faq-search input{flex:1;min-width:220px;padding:13px 20px;border:1px solid var(--line);border-radius:999px;font-size:1rem}
.faq-search svg{width:18px;height:18px}
.intro{max-width:760px;color:var(--muted)}
.btn.light{background:#fff;color:var(--teal-d);border-color:#fff}.btn.light:hover{background:var(--bg)}
.banner{border-radius:22px;overflow:hidden;background:#0b6f8a var(--hero) right center/cover no-repeat;min-height:260px;display:flex;align-items:center;color:#fff}
.banner .txt{max-width:520px;padding:40px}.banner h2{color:#fff}.banner p{opacity:.95}
.notice.row{display:flex;gap:22px;align-items:flex-start}
.notice.row>svg{width:46px;height:46px;flex:none;color:var(--teal)}
.two{display:grid;grid-template-columns:1fr 1.1fr;gap:36px;align-items:start}
.info{display:flex;gap:16px;background:var(--bg);border-radius:14px;padding:18px 20px;margin-bottom:14px}
.info>svg{width:34px;height:34px;flex:none;color:var(--teal)}.info h3{margin:0 0 4px}.info p{margin:.2em 0;color:var(--muted);font-size:.92rem}
.formbox{background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:0 6px 20px rgba(11,59,111,.08);padding:28px}
.formbox label{display:block;font-weight:600;font-size:.88rem;margin:14px 0 5px;color:var(--blue)}
.formbox input,.formbox textarea{width:100%;padding:12px 14px;border:1px solid #c9d9e4;border-radius:10px;font:inherit}
.formbox .btn{margin-top:18px;width:100%;justify-content:center}
.hp{position:absolute;left:-9999px}
.msg{padding:12px 16px;border-radius:10px;margin:14px 0}.msg.ok{background:#e6f6ee;color:#14532d}.msg.bad{background:#fdecec;color:#7f1d1d}
.chips{grid-template-columns:repeat(auto-fit,minmax(230px,1fr));margin-top:18px}
.chip{display:flex;gap:14px;text-align:left;padding:16px;cursor:pointer;font:inherit;color:inherit}
.chip svg{width:30px;height:30px;flex:none;color:var(--teal)}.chip small{display:block;color:var(--muted);font-size:.82rem;margin-top:3px}
.chip[aria-pressed=true]{border-color:var(--teal);background:var(--bg)}
.arts{grid-template-columns:repeat(auto-fill,minmax(280px,1fr));margin-top:20px}
.art .ph{aspect-ratio:16/10}.art .ph svg{width:56px;height:56px}
.tag{display:inline-block;font-size:.72rem;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:var(--teal-d);background:var(--bg);padding:3px 10px;border-radius:999px}
.art h3{margin:.6em 0 .3em}.soon{font-size:.8rem!important;font-style:italic}
.art[hidden],.faq[hidden],.faq-group[hidden],.msg[hidden]{display:none}
.faq-h{display:flex;align-items:center;gap:10px;margin-top:30px}.faq-h svg{width:26px;height:26px;color:var(--teal)}
@media(max-width:900px){.two{grid-template-columns:1fr}.sub-hero{background-image:linear-gradient(rgba(241,248,252,.9),rgba(241,248,252,.82)),var(--hero);background-position:right center}.faq-hero{background-image:none}.banner{background-image:linear-gradient(rgba(11,111,138,.88),rgba(11,111,138,.8)),var(--hero)}.notice.row{flex-direction:column}}
.sub-hero>.wrap{width:100%}
.logo{height:44px;width:auto;display:block}
footer .logo{height:40px}
.legal-hero{background:linear-gradient(90deg,#e3f3fa,#f4fafd);min-height:260px}
.legal-hero .txt{max-width:720px}.updated{font-size:.85rem}
.legal{display:grid;grid-template-columns:240px 1fr;gap:40px;align-items:start}
.toc{position:sticky;top:96px;background:var(--bg);border-radius:14px;padding:18px 20px;font-size:.88rem}
.toc ol{margin:.6em 0 0;padding-left:1.1em}.toc li{margin:.35em 0}.toc a{text-decoration:none}
.legal .body{max-width:780px}.legal h2{font-size:1.25rem;margin-top:1.8em}
.legal .body li{margin:.35em 0}
.notice.draft{border-left-color:#d9a400;background:#fff9e6}
@media(max-width:900px){.legal{grid-template-columns:1fr}.toc{position:static}}

/* Featured products: equal-height cards, image fills the frame, buttons aligned */
.prods{grid-template-columns:repeat(auto-fit,minmax(230px,1fr));align-items:stretch}
.prods .card{display:flex;flex-direction:column;height:100%}
.prods .card .ph{aspect-ratio:1/1;width:100%;flex:none;overflow:hidden}
.prods .card .ph img{width:100%;height:100%;object-fit:cover;display:block}
.prods .card .body{display:flex;flex-direction:column;flex:1}
.prods .card .body h3{min-height:2.6em;margin:0 0 .2em}
.prods .card .body h3+p{flex:1}
.prods .card .body p:last-child{padding-top:12px}
