/*
Theme Name: Juhandra
Description: Juhandra looduskosmeetika kujundus Astra ja WooCommerce'i jaoks.
Author: Juhandra
Version: 1.0.1
Template: astra
Text Domain: juhandra
Requires at least: 6.4
Requires PHP: 7.4
License: GPL-2.0-or-later
*/

:root{--jh-paper:#f7f4ed;--jh-ink:#233c32;--jh-muted:#606c60;--jh-line:#d9ddcf;--jh-pale:#e9edde;--ast-global-color-0:#233c32;--ast-global-color-1:#355647;--ast-global-color-2:#233c32;--ast-global-color-3:#606c60;--ast-global-color-4:#f7f4ed;--ast-global-color-5:#f7f4ed}
body.jh-site{background:var(--jh-paper);color:var(--jh-ink);font-family:Arial,sans-serif;line-height:1.65;font-size:16px}
body.jh-site h1,body.jh-site h2,body.jh-site h3{font-family:Georgia,serif;color:var(--jh-ink);font-weight:400}
body.jh-site a{color:var(--jh-ink)}body.jh-site a:hover{color:#49624e}
.jh-site button:focus-visible,.jh-site a:focus-visible,.jh-site input:focus-visible,.jh-site select:focus-visible{outline:3px solid #9e783b;outline-offset:4px}
.jh-wrap{width:88%;max-width:1160px;margin:0 auto}.jh-header{border-bottom:1px solid var(--jh-line);background:var(--jh-paper)}
.jh-header-inner{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:20px 0}
.jh-brand{display:flex;align-items:center;gap:12px;text-decoration:none!important;flex-shrink:0}.jh-brand img{width:62px;height:auto;mix-blend-mode:multiply}.jh-brand strong{display:block;font:28px Georgia,serif;letter-spacing:.08em}.jh-brand small{display:block;font:9px Arial,sans-serif;letter-spacing:.22em;margin-top:5px}
.jh-nav{display:flex;align-items:center;gap:24px;flex-wrap:wrap}.jh-nav a{font-size:14px;text-decoration:none;padding:10px 0}.jh-nav a[aria-current=page]{text-decoration:underline;text-underline-offset:6px}.jh-nav .jh-cart{border:1px solid var(--jh-line);padding:8px 14px}
.jh-footer{border-top:1px solid var(--jh-line);padding:36px 0;background:var(--jh-paper);font-size:13px;color:var(--jh-muted)}.jh-footer-inner{display:flex;gap:20px;justify-content:space-between;flex-wrap:wrap}.jh-footer nav{display:flex;gap:20px;flex-wrap:wrap}
.jh-site #content>.ast-container{max-width:1320px;padding-left:6%;padding-right:6%}.jh-site #primary{margin-top:45px;margin-bottom:60px}.jh-site.ast-separate-container .ast-article-single,.jh-site.ast-separate-container .ast-article-post,.jh-site.ast-separate-container .ast-woocommerce-container{background:transparent;padding:0}
.jh-site.home #content>.ast-container{display:block;max-width:none;padding:0}.jh-site.home #primary{margin:0;width:100%}
.jh-hero{display:grid;grid-template-columns:1fr 1fr;gap:7%;align-items:center;padding:54px 0}.jh-eyebrow{font:11px/1.6 Arial,sans-serif;letter-spacing:.18em;text-transform:uppercase;margin-bottom:22px;color:var(--jh-muted)}
.jh-hero h1{font-size:clamp(42px,5.4vw,72px);line-height:1.08;letter-spacing:-.035em;margin:0 0 25px}.jh-hero-copy{max-width:440px;color:var(--jh-muted)}.jh-hero-picture{height:520px;position:relative}.jh-hero-picture img{width:100%;height:100%;object-fit:cover;border-radius:48% 48% 2px 2px}.jh-caption{position:absolute;bottom:22px;left:22px;right:22px;background:var(--jh-paper);padding:12px 18px;font-size:13px;display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}
.jh-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:28px}.jh-site .jh-button{display:inline-block;border:1px solid var(--jh-ink);background:var(--jh-ink);color:#fff;padding:13px 24px;font-size:14px;line-height:1.5;text-decoration:none}.jh-site .jh-button:hover{background:#355647;color:#fff}.jh-site .jh-button-secondary{background:transparent;color:var(--jh-ink)}
.jh-values{border-block:1px solid var(--jh-line);padding:18px 0}.jh-values .jh-wrap{display:flex;justify-content:space-around;gap:15px;font-size:12px;letter-spacing:.04em}
.jh-section{padding:64px 0}.jh-section-heading{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:30px}.jh-section h2,.jh-story h2{font-size:clamp(30px,3vw,43px);line-height:1.15;margin:0 0 22px}.jh-section-heading h2{margin:0}.jh-section-heading>a{font-size:14px;text-underline-offset:5px}
.jh-categories{display:flex;flex-wrap:wrap;gap:10px;margin:25px 0}.jh-site .jh-category{border:1px solid var(--jh-line);border-radius:30px;padding:9px 18px;font-size:13px;text-decoration:none}.jh-site .jh-category[aria-current=page],.jh-site .jh-category:hover{background:var(--jh-ink);border-color:var(--jh-ink);color:#fff}
.jh-story{background:var(--jh-pale);padding:60px 0}.jh-story-inner{display:grid;grid-template-columns:.8fr 1fr;gap:10%;align-items:center}.jh-story img{width:100%;height:420px;object-fit:cover}.jh-story p:not(.jh-eyebrow){color:var(--jh-muted);max-width:510px}
.jh-site .woocommerce ul.products,.jh-site.woocommerce ul.products{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:34px 24px;clear:both;margin:0 0 40px;padding:0}
.jh-site .woocommerce ul.products:before,.jh-site .woocommerce ul.products:after,.jh-site.woocommerce ul.products:before,.jh-site.woocommerce ul.products:after{display:none!important}
.jh-site .woocommerce ul.products li.product,.jh-site.woocommerce ul.products li.product{width:auto!important;float:none!important;margin:0!important;padding:0!important;text-align:left;background:transparent;min-width:0}
.jh-site .woocommerce ul.products li.product a img,.jh-site.woocommerce ul.products li.product a img{width:100%;aspect-ratio:4/5;height:auto;object-fit:cover;border-radius:0;margin-bottom:16px;background:#e8e3d8}
.jh-site .woocommerce ul.products li.product .woocommerce-loop-product__title,.jh-site.woocommerce ul.products li.product .woocommerce-loop-product__title{font:400 21px/1.3 Georgia,serif;color:var(--jh-ink);margin:6px 0 10px;padding:0;overflow-wrap:anywhere}
.jh-site .woocommerce ul.products li.product .price,.jh-site.woocommerce ul.products li.product .price{color:var(--jh-ink);font-size:15px;margin:8px 0}.jh-site .ast-woo-product-category{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:var(--jh-muted);opacity:1}
.jh-site .woocommerce a.button,.jh-site.woocommerce a.button,.jh-site .woocommerce button.button,.jh-site.woocommerce button.button{background:var(--jh-ink);border:1px solid var(--jh-ink);color:#fff;border-radius:0;font:14px/1.5 Arial,sans-serif;padding:11px 18px;white-space:normal}
.jh-site .woocommerce a.button:hover,.jh-site.woocommerce a.button:hover,.jh-site .woocommerce button.button:hover{background:#355647;color:#fff}
.jh-site .woocommerce ul.products li.product .button,.jh-site.woocommerce ul.products li.product .button{margin-top:10px}
.jh-shop-intro{margin-bottom:30px}.jh-shop-intro h1{font-size:clamp(36px,4vw,55px);line-height:1.15;margin-bottom:20px}.jh-shop-intro p{max-width:640px;color:var(--jh-muted)}
.jh-search{display:flex;max-width:480px;margin:20px 0 30px}.jh-search input[type=search]{width:100%;min-width:0;background:transparent;border:1px solid var(--jh-line);border-right:0;color:var(--jh-ink);font-size:16px;padding:11px 14px}.jh-search button{background:var(--jh-ink);border:1px solid var(--jh-ink);border-radius:0;color:#fff;padding:11px 20px;white-space:nowrap}
.jh-site .woocommerce-ordering select{max-width:100%;background:transparent;border:1px solid var(--jh-line);padding:10px;font-size:14px;color:var(--jh-ink)}.jh-site .woocommerce-result-count{font-size:13px;color:var(--jh-muted)}
.jh-site.single-product .product_title{font:400 clamp(32px,3.5vw,46px)/1.15 Georgia,serif;letter-spacing:-.02em}.jh-site.single-product div.product p.price{color:var(--jh-ink);font-size:25px}.jh-site.single-product .woocommerce-product-details__short-description{color:var(--jh-muted)}.jh-site.single-product .woocommerce-product-gallery__image img{border-radius:2px}.jh-site.single-product div.product .woocommerce-tabs{border-top:1px solid var(--jh-line);padding-top:28px}.jh-site.single-product table.variations select{font-size:16px;background:transparent;border:1px solid var(--jh-line)}
.jh-site .woocommerce-message,.jh-site .woocommerce-info{border-top-color:var(--jh-ink)}.jh-site .woocommerce-message::before,.jh-site .woocommerce-info::before{color:var(--jh-ink)}
@media(max-width:950px){.jh-nav{gap:14px}.jh-brand strong{font-size:24px}.jh-hero-picture{height:440px}.jh-site .woocommerce ul.products,.jh-site.woocommerce ul.products{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.jh-header-inner{flex-wrap:wrap;gap:12px}.jh-nav{width:100%;justify-content:space-between;gap:10px}.jh-nav a{font-size:13px}.jh-hero{gap:5%}.jh-hero h1{font-size:44px}.jh-hero-picture{height:390px}.jh-site .woocommerce ul.products,.jh-site.woocommerce ul.products{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 16px}.jh-story-inner{gap:6%}.jh-story img{height:350px}}
@media(max-width:540px){.jh-brand img{width:46px}.jh-brand strong{font-size:24px}.jh-hero{grid-template-columns:1fr;gap:26px;padding:32px 0}.jh-hero h1{font-size:47px}.jh-hero-picture{height:390px}.jh-caption{left:14px;right:14px;font-size:12px}.jh-values .jh-wrap{font-size:10px;justify-content:space-between;gap:10px}.jh-section{padding:42px 0}.jh-section-heading{align-items:start}.jh-section-heading h2{font-size:29px}.jh-section-heading>a{font-size:12px;white-space:nowrap}.jh-site .woocommerce ul.products li.product .woocommerce-loop-product__title,.jh-site.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:19px}.jh-story-inner{grid-template-columns:1fr;gap:30px}.jh-story{padding:42px 0}.jh-story img{height:340px}.jh-site #primary{margin-top:30px}.jh-site .woocommerce-result-count,.jh-site .woocommerce-ordering{float:none;display:block;margin-bottom:16px}.jh-nav .jh-cart{padding:6px 8px}.jh-categories{gap:8px}.jh-site .jh-category{padding:8px 13px}.jh-footer-inner{flex-direction:column}}

/* 1.0.1: equal-height cards; keep price and cart actions below variable titles. */
.jh-site .woocommerce ul.products li.product,
.jh-site.woocommerce ul.products li.product {
    display: flex;
    flex-direction: column;
    align-self: stretch;
}
.jh-site ul.products li.product .astra-shop-thumbnail-wrap { flex-shrink: 0; }
.jh-site ul.products li.product .astra-shop-summary-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1 1 auto;
    width: 100%;
}
.jh-site .woocommerce ul.products li.product .astra-shop-summary-wrap .price,
.jh-site.woocommerce ul.products li.product .astra-shop-summary-wrap .price {
    margin-top: auto;
    padding-top: 8px;
}
.jh-site .woocommerce ul.products li.product > .button,
.jh-site.woocommerce ul.products li.product > .button {
    margin-top: auto;
    align-self: flex-start;
}
