/*
Theme Name: UPHARE Originaal
Theme URI: https://uphare.ee
Author: UPHARE demo
Description: UPHARE brändi originaalfailidel põhinev WordPressi tootekataloog (ilma ostukorvita).
Version: 1.1.0
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: uphare
*/

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800;900&display=swap');
:root{--green:#003b30;--copper:#b87848;--paper:#fbfaf8;--muted:#eae3db}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--green);font-family:'DM Sans',Arial,sans-serif}button,input,textarea,select{font:inherit}button{cursor:pointer}a{color:inherit}header{height:88px;background:#fffdfb;display:flex;align-items:center;justify-content:space-between;gap:22px;padding:0 5%;position:sticky;top:0;z-index:20;box-shadow:0 2px 15px #00291c08}.logo{display:flex;align-items:center;gap:8px;font-size:32px;letter-spacing:-2px;font-weight:900;text-decoration:none;white-space:nowrap}.logo span span{color:var(--copper)}.mark{width:49px;height:58px}nav{display:flex;align-items:center;gap:26px}nav button{background:none;border:0;color:var(--green);font-size:14px;white-space:nowrap;padding:12px 0}nav button.active{border-bottom:2px solid var(--copper)}.pill{border:0;border-radius:100px;background:var(--green);color:white;padding:16px 27px;white-space:nowrap}.pill:hover{background:#065b48}.pill.outline{border:2px solid var(--green);background:transparent;color:var(--green)}.pill.outline:hover{background:#e9eee9}.mobile-menu{display:none}.page{display:none;min-height:calc(100vh - 88px);position:relative;overflow:hidden;padding:74px 5% 70px}.page.active{display:block}.page>*:not(.decoration){position:relative;z-index:2}.decoration{position:absolute;z-index:0;right:-11%;top:3%;width:53%;height:100%;pointer-events:none;opacity:1}.decoration svg{width:100%;height:100%}.eyebrow{font-size:17px;font-weight:800;letter-spacing:5px;margin:0 0 20px}.hero-title{font-size:clamp(48px,6.4vw,108px);line-height:.94;letter-spacing:-.075em;font-weight:900;margin:0 0 24px;max-width:930px}.hero-title .copper{color:var(--copper)}.lead{font-size:clamp(18px,1.8vw,27px);line-height:1.42;max-width:770px;margin:0 0 30px}.actions{display:flex;gap:16px;flex-wrap:wrap}.home-title{max-width:750px}.home-lead{max-width:680px}.discount{position:absolute!important;top:65px;left:54%;width:225px;height:225px;background:var(--copper);border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:white;transform:rotate(-4deg);box-shadow:0 12px 35px #68421a17}.discount strong{font-size:74px;line-height:1;font-weight:900}.discount small{font-size:18px}.features{display:grid;grid-template-columns:repeat(4,1fr);gap:0;margin-top:75px;background:#ffffffb0;padding:25px 0;border-radius:16px;max-width:1200px}.feature{text-align:center;border-right:1px solid #aab8b2;font-size:20px;font-weight:800}.feature:last-child{border:0}.feature svg{height:52px;width:52px;display:block;margin:0 auto 12px;stroke:var(--green);stroke-width:1.7;fill:none}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;max-width:930px;margin-top:36px}.product-card,.info-card,.step,.panel{background:#ffffffd9;border:1px solid #ffffff;border-radius:20px;box-shadow:0 10px 28px #2a241511}.product-card{padding:14px 14px 20px}.product-card img{width:100%;height:215px;object-fit:contain;background:#fbfaf8;border-radius:15px}.product-card h3{margin:14px 4px 8px;font-size:21px}.product-card p{font-size:14px;line-height:1.5;margin:4px;color:#3b6157}.card-foot{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:4px}.link-btn{border:0;background:transparent;color:var(--green);font-weight:800;padding:8px}.link-btn:hover{text-decoration:underline}.info-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px;max-width:830px;margin-top:44px}.info-card{padding:26px;min-height:255px}.icon-square{display:grid;place-items:center;width:70px;height:70px;background:#f1e7df;border-radius:16px;font-size:37px;margin-bottom:16px}.info-card h3{font-size:25px;margin:0 0 10px}.info-card p{font-size:21px;line-height:1.45;margin:0}.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:30px;max-width:1200px;margin:45px 0 30px}.step{padding:25px;display:flex;gap:16px;align-items:center}.step .bubble{background:#eee2d8;border-radius:50%;width:78px;height:78px;display:grid;place-items:center;font-size:36px;flex-shrink:0}.step h3{margin:0 0 5px;font-size:19px}.step p{margin:0;line-height:1.45}.sportlex{max-width:1200px;padding:27px 35px;background:#fff9;border-radius:20px;display:flex;align-items:center;gap:45px;font-size:20px}.sportlex strong{font-size:35px;letter-spacing:4px;color:#00bfc3;font-weight:400}.sportlex a{color:var(--copper)}.process{display:grid;grid-template-columns:repeat(4,1fr);max-width:850px;gap:20px;margin:32px 0}.process div{text-align:center}.process .bubble{font-size:34px;background:#f0e6df;width:82px;height:82px;border-radius:50%;display:grid;place-items:center;margin:0 auto 10px}.process strong{display:block;font-size:17px}.process p{margin:4px;font-size:15px}.about-grid{display:grid;grid-template-columns:1.4fr 1fr;gap:32px;align-items:end}.ratings{padding:22px;background:#ffffffa8;border-radius:20px}.ratings h3{letter-spacing:3px}.ratings div{padding:12px;border-bottom:1px solid #eee}.ratings b{display:inline-block;background:#eae7df;padding:8px 12px;margin-right:15px;border-radius:7px}.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:50px;align-items:start;max-width:1250px;margin-top:36px}.contact-list{display:grid;gap:30px;padding-top:30px}.contact-list p{font-size:22px;margin:0}.contact-list a{text-decoration:none}.contact-list .symbol{font-size:32px;margin-right:24px}.form{background:#fffefaed;border-radius:24px;padding:28px;box-shadow:0 10px 30px #382a1615;display:grid;gap:13px}.form input,.form textarea,.admin input,.admin textarea,.admin select{border:1px solid #d9d9d9;border-radius:13px;padding:16px;background:transparent;width:100%;color:var(--green)}.form textarea{min-height:125px}.form button{width:100%}.catalog-toolbar{display:flex;gap:10px;flex-wrap:wrap;margin:26px 0}.catalog-toolbar button{padding:10px 18px;border:1px solid var(--green);background:#fff;border-radius:30px;color:var(--green)}.catalog-toolbar button.selected{background:var(--green);color:white}.catalog-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;max-width:1100px}.admin-toggle{position:fixed;bottom:20px;right:20px;z-index:40;background:#b87848;color:#fff;border:0;border-radius:50px;padding:13px 18px;box-shadow:0 8px 24px #0003;font-size:14px;font-weight:800}.admin{position:fixed;inset:0;background:#001c17aa;z-index:60;display:none;align-items:center;justify-content:center;padding:20px}.admin.open{display:flex}.admin-box{background:#fffdfb;border-radius:20px;padding:25px;max-width:740px;width:100%;max-height:92vh;overflow:auto}.admin-head{display:flex;justify-content:space-between;align-items:center}.admin-head h2{margin:0 0 12px}.admin-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}.admin label{font-size:13px;font-weight:700;display:block;margin:8px 0}.admin textarea{min-height:80px}.admin-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}.admin-note{font-size:13px;color:#587269}.edit-mode [data-edit]{outline:1px dashed #b87848;outline-offset:4px;cursor:text}.edit-mode [data-edit]:focus{outline:2px solid #b87848}.footer{padding:25px 5%;background:#003b30;color:white;display:flex;justify-content:space-between;gap:15px;flex-wrap:wrap}.footer a{color:#fff}.toast{position:fixed;left:50%;bottom:25px;transform:translateX(-50%);padding:13px 20px;background:#003b30;color:#fff;border-radius:12px;display:none;z-index:80}@media(max-width:1150px){nav{gap:12px}nav button{font-size:12px}.logo{font-size:25px}.discount{left:61%;width:170px;height:170px}.discount strong{font-size:55px}}@media(max-width:850px){header{height:75px}.mobile-menu{display:block;background:none;border:0;font-size:27px;color:var(--green)}nav{display:none;position:absolute;top:75px;left:0;right:0;background:white;flex-direction:column;align-items:stretch;padding:20px 6%;box-shadow:0 12px 20px #0001}nav.open{display:flex}nav button{text-align:left;font-size:16px}.header-contact{display:none}.page{padding:55px 6%}.decoration{opacity:.18;width:95%;right:-45%}.discount{position:relative!important;left:auto;top:auto;margin:30px 0;width:145px;height:145px}.discount strong{font-size:45px}.discount small{font-size:13px}.hero-title{font-size:clamp(45px,10vw,75px)}.cards,.catalog-grid{grid-template-columns:repeat(2,1fr)}.features,.process{grid-template-columns:repeat(2,1fr);row-gap:22px}.feature:nth-child(2){border:0}.steps{grid-template-columns:1fr}.about-grid,.contact-grid{grid-template-columns:1fr}.sportlex{flex-direction:column;align-items:flex-start;gap:12px}}@media(max-width:530px){.cards,.catalog-grid,.info-grid{grid-template-columns:1fr}.hero-title{font-size:48px}.lead{font-size:18px}.features{margin-top:38px}.feature{font-size:15px}.admin-fields{grid-template-columns:1fr}.sportlex strong{font-size:27px}.logo{font-size:25px}}

/* Originaalbränding */
.logo img{width:225px;max-width:26vw;height:auto;display:block}.page{background-image:linear-gradient(90deg,rgba(251,250,248,.97) 0%,rgba(251,250,248,.86) 48%,rgba(251,250,248,.08) 100%),url('assets/uphare-cover.png');background-repeat:no-repeat;background-position:center right;background-size:cover}.decoration{display:none}.sportlex img{width:265px;max-width:100%;height:auto;mix-blend-mode:multiply}.catalog-grid{margin-top:20px}.product-card img{object-fit:contain}.wp-admin-link{font-size:13px;text-decoration:underline}.page .wp-content-edit{display:block;margin-top:16px}.wp-content-edit a{font-size:12px;color:var(--green)}@media(max-width:850px){.page{background-image:linear-gradient(90deg,rgba(251,250,248,.93),rgba(251,250,248,.68)),url('assets/uphare-cover.png');background-position:60% center}.logo img{width:180px;max-width:65vw}}

nav .nav-external{font-size:14px;text-decoration:none;white-space:nowrap;padding:12px 0}nav .nav-external:hover{text-decoration:underline}@media(max-width:850px){nav .nav-external{font-size:16px}}

/* UPHARE v1.3 — neatly typeset promotional roundel */
.discount {
  width: clamp(210px, 19vw, 270px);
  height: auto;
  aspect-ratio: 1;
  padding: 24px 18px;
  gap: 3px;
  transform: none;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 16px 38px rgba(87, 52, 25, .12);
}
.discount small { display:block; font-size:clamp(14px,1.3vw,19px); line-height:1.15; font-weight:500; letter-spacing:.025em; }
.discount strong { display:block; font-size:clamp(67px,6.2vw,91px); line-height:.98; letter-spacing:-.065em; font-weight:900; white-space:nowrap; margin:4px 0 5px; }
.discount small:last-child { font-size:clamp(12px,1.1vw,16px); line-height:1.27; letter-spacing:0; max-width:100%; overflow-wrap:normal; word-break:normal; }
@media(max-width:1150px){
 .discount { width:clamp(175px,19vw,220px); height:auto; padding:17px 12px; }
 .discount strong { font-size:clamp(55px,6vw,76px); }
 .discount small { font-size:15px; }
 .discount small:last-child { font-size:clamp(10px,1.15vw,13px); }
}
@media(max-width:850px){
 .discount { width:175px; height:auto; margin:30px 0; padding:16px 11px; }
 .discount strong { font-size:60px; }
 .discount small:last-child { font-size:11px; }
}

/* User-selected step icons */
.step .bubble .uphare-step-icon{display:block;width:46px;height:46px;max-width:75%;max-height:75%;object-fit:contain}

/* Unified beige icon surfaces across all pages; no native emoji rendering. */
:root{--uphare-icon-beige:#f0e6dc}
.icon-square,.step .bubble,.process .bubble,.contact-list .symbol{background:var(--uphare-icon-beige)!important;color:var(--green);box-shadow:none}
.icon-square,.step .bubble,.process .bubble{display:grid;place-items:center}
.uphare-icon-svg{width:55%;height:55%;display:block;flex:none;color:var(--green)}
.icon-square .uphare-icon-svg{width:42px;height:42px}
.step .bubble .uphare-icon-svg{width:46px;height:46px}
.process .bubble .uphare-icon-svg{width:45px;height:45px}
.contact-list .symbol{display:inline-flex;align-items:center;justify-content:center;width:49px;height:49px;border-radius:13px;margin-right:16px;vertical-align:middle;flex-shrink:0}
.contact-list .symbol .uphare-icon-svg{width:27px;height:27px}
/* Blend user-uploaded beige square PNG backgrounds into their containers. */
.icon-square img,.step .bubble img,.process .bubble img,.contact-list .symbol img{max-width:78%;max-height:78%;width:auto;height:auto;object-fit:contain;mix-blend-mode:multiply}

/* 2026: keep uploaded square icon art inside one seamless beige circular badge. */
:root{--uphare-icon-beige:#eee2d8}
.step .bubble,.process .bubble,.icon-square{overflow:hidden;background:var(--uphare-icon-beige)!important}
.step .bubble img,.process .bubble img,.icon-square img{width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:cover!important;border-radius:inherit!important;mix-blend-mode:normal!important;display:block}
.step .bubble .uphare-icon-svg,.process .bubble .uphare-icon-svg{width:56%;height:56%}
/* Sportlex logo and readable, naturally wrapping text. */
.sportlex{display:grid!important;grid-template-columns:minmax(175px,300px) minmax(0,1fr);gap:clamp(20px,3vw,45px)!important;align-items:center;padding:clamp(24px,3vw,42px)!important;max-width:1200px}
.sportlex img{width:100%!important;max-width:300px!important;mix-blend-mode:multiply}
.sportlex-copy{min-width:0;font-size:clamp(17px,1.5vw,23px);line-height:1.55}
.sportlex-copy p{margin:0}
.sportlex-copy a{display:inline;color:#aa673b;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}
@media(max-width:700px){.sportlex{grid-template-columns:1fr!important;gap:20px!important}.sportlex img{max-width:245px!important}.sportlex-copy{font-size:18px}}

/* UPHARE header logo: transparent cropped image stays inside the header. */
header{min-width:0;overflow:visible}
header .logo{display:flex;align-items:center;flex:0 0 auto;min-width:0;max-width:clamp(175px,20vw,245px);overflow:hidden;background:transparent!important;line-height:1}
header .logo img{display:block;width:100%!important;max-width:100%!important;height:auto!important;max-height:68px!important;object-fit:contain;object-position:left center;background:transparent!important}
header nav{min-width:0}
@media(max-width:1150px){header{gap:14px;padding-inline:3%}header .logo{max-width:205px}header nav{gap:clamp(8px,1.2vw,18px)}}
@media(max-width:850px){header .logo{max-width:190px}header .logo img{max-height:56px!important}}
@media(max-width:530px){header .logo{max-width:175px}}
/* Less heavy, consistent fine-line pictograms in every circular badge. */
.process .bubble .uphare-icon-svg{width:43%!important;height:43%!important;stroke-width:1.4!important}
.step .bubble .uphare-icon-svg{width:51%!important;height:51%!important;stroke-width:1.5!important}
.icon-square .uphare-icon-svg{width:52%!important;height:52%!important;stroke-width:1.5!important}
.contact-list .symbol .uphare-icon-svg{stroke-width:1.5!important}

/* Contact details: thin matching icons, tidy two-line grid, working links. */
.contact-list{gap:24px!important}
.contact-list .uphare-contact-row{display:grid;grid-template-columns:56px minmax(0,1fr);column-gap:17px;row-gap:5px;align-items:center;margin:0!important;line-height:1.4;min-width:0}
.contact-list .uphare-contact-row>.symbol{grid-column:1;grid-row:1 / span 2;width:56px;height:56px;margin:0!important;background:var(--uphare-icon-beige)!important;border-radius:16px}
.contact-list .uphare-contact-row>.symbol .uphare-icon-svg{width:29px;height:29px;stroke-width:1.5!important}
.contact-list .uphare-contact-label{grid-column:2;grid-row:1;font-weight:600}
.contact-list .uphare-contact-row>a,.contact-list .uphare-contact-row>span:not(.symbol):not(.uphare-contact-label){grid-column:2;grid-row:2;margin-left:0!important;overflow-wrap:anywhere}
.contact-list .uphare-contact-row>a:hover{text-decoration:underline}
.contact-list .uphare-contact-row:last-child{display:flex;align-items:center;gap:17px;flex-wrap:wrap}
.contact-list .uphare-contact-row:last-child>.symbol{flex:none}
.sportlex-copy a:hover,.sportlex-copy a:focus-visible{text-decoration-thickness:2px;color:var(--green)}

/* Restore the bundled UPHARE logo independently of stale Customizer media URLs. */
header>a.logo{display:flex!important;align-items:center!important;justify-content:flex-start!important;visibility:visible!important;opacity:1!important;width:clamp(170px,19vw,245px)!important;max-width:245px!important;min-height:58px!important;padding:0!important;background:none!important;overflow:visible!important;flex-shrink:0!important}
header>a.logo>img{display:block!important;visibility:visible!important;opacity:1!important;width:100%!important;height:auto!important;max-height:74px!important;object-fit:contain!important;object-position:left center!important;mix-blend-mode:normal!important}
@media(max-width:850px){header>a.logo{width:175px!important;min-height:48px!important}header>a.logo>img{max-height:58px!important}}

/* Visible header logo embedded from theme asset, independent of uploads URLs. */
header>a.logo{display:flex!important;visibility:visible!important;opacity:1!important;min-width:180px!important;width:clamp(180px,20vw,245px)!important;height:76px!important;align-items:center!important;background:transparent!important;overflow:visible!important}header>a.logo img{display:block!important;visibility:visible!important;opacity:1!important;width:100%!important;height:auto!important;max-height:68px!important;object-fit:contain!important;mix-blend-mode:normal!important}@media(max-width:850px){header>a.logo{min-width:155px!important;width:175px!important;height:65px!important}}

/* Correct original-color logo: header fits its real aspect ratio. */
header>a.logo{display:flex!important;align-items:center!important;justify-content:flex-start!important;flex:0 0 clamp(170px,20vw,245px)!important;width:clamp(170px,20vw,245px)!important;min-width:0!important;max-width:245px!important;height:72px!important;min-height:0!important;overflow:visible!important;background:transparent!important}header>a.logo>img{display:block!important;width:100%!important;height:auto!important;max-height:66px!important;object-fit:contain!important;opacity:1!important;visibility:visible!important}@media(max-width:850px){header>a.logo{flex-basis:175px!important;width:175px!important;height:60px!important}header>a.logo>img{max-height:54px!important}}

/* UPHARE Meist: compact single-line condition grades and consistent light-weight icons. */
@media (min-width:1051px){
  #meist .about-grid,.page[data-page="meist"] .about-grid,.page .about-grid{grid-template-columns:minmax(0,1.23fr) minmax(490px,1fr)!important;gap:26px!important;align-items:stretch!important}
}
.about-grid>.ratings{min-width:0!important;padding:24px 25px!important}
.about-grid>.ratings h3{font-size:clamp(17px,1.55vw,23px);margin:0 0 18px!important;letter-spacing:2.3px!important}
.about-grid>.ratings>div{display:flex!important;align-items:center!important;gap:9px!important;white-space:nowrap!important;padding:13px 0!important;font-size:clamp(12px,1.02vw,16px)!important;line-height:1.35!important;min-width:0!important}
.about-grid>.ratings>div b{flex:0 0 49px!important;min-width:49px!important;text-align:center!important;margin:0 7px 0 0!important;padding:9px 5px!important;font-size:15px!important}
.about-grid>.ratings>div strong{font-weight:750!important;flex-shrink:0!important}
.process .bubble{width:80px!important;height:80px!important;background:var(--uphare-icon-beige,#eee3d9)!important}
.process .bubble .uphare-icon-svg{width:39%!important;height:39%!important;stroke-width:1.45!important;stroke-linecap:round!important;stroke-linejoin:round!important}
@media (max-width:1050px){.about-grid{grid-template-columns:1fr!important}.about-grid>.ratings{width:100%!important}.about-grid>.ratings>div{font-size:clamp(12px,2vw,16px)!important}}
@media (max-width:480px){.about-grid>.ratings{padding:16px!important;overflow-x:auto!important}.about-grid>.ratings>div{font-size:12px!important;gap:5px!important}.about-grid>.ratings>div b{flex-basis:37px!important;min-width:37px!important;margin-right:2px!important}.process{gap:12px!important}}

/* Final about-page refinement: compact, balanced ratings card and clear circular-economy symbol. */
@media(min-width:1051px){
 #meist .about-grid{grid-template-columns:minmax(0,1.1fr) minmax(440px,.95fr)!important;gap:32px!important;align-items:start!important}
 #meist .about-grid>.ratings{align-self:start!important;height:auto!important;min-height:0!important;margin-top:0!important}
}
#meist .ratings{padding:26px 28px!important;border-radius:22px!important;background:rgba(255,255,255,.83)!important;box-shadow:0 12px 30px rgba(25,48,39,.08)!important;backdrop-filter:blur(6px)}
#meist .ratings h3{font-size:clamp(17px,1.6vw,22px)!important;letter-spacing:2px!important;line-height:1.25!important;margin:0 0 14px!important}
#meist .ratings>div{display:flex!important;align-items:center!important;gap:7px!important;min-width:0!important;white-space:nowrap!important;font-size:clamp(12px,1vw,15px)!important;padding:13px 0!important;line-height:1.3!important}
#meist .ratings>div:last-child{border-bottom:0!important}
#meist .ratings>div b{display:inline-flex!important;justify-content:center!important;align-items:center!important;flex:0 0 48px!important;min-width:48px!important;min-height:43px!important;margin-right:8px!important;padding:7px 4px!important;background:#eee7de!important;border-radius:10px!important;font-size:17px!important}
#meist .ratings>div strong{font-weight:750!important;flex:0 0 auto!important}
#meist .process .bubble{width:78px!important;height:78px!important;border-radius:50%!important}
#meist .process .bubble .uphare-icon-svg{width:47%!important;height:47%!important;stroke-width:1.65!important}
@media(min-width:1051px) and (max-width:1230px){#meist .about-grid{grid-template-columns:1fr!important}#meist .ratings{max-width:760px!important}}
@media(max-width:1050px){#meist .ratings{width:100%!important;max-width:760px!important}}
@media(max-width:570px){#meist .ratings{padding:19px 14px!important}#meist .ratings>div{font-size:11px!important;gap:5px!important;white-space:normal!important}#meist .ratings>div b{flex-basis:39px!important;min-width:39px!important;margin-right:4px!important}}
