/* H.david factory — עיצוב התבנית */
:root { --hd-ink:#1e4d3b; --hd-ink-dark:#163a2d; --hd-cream:#f3efe4; --hd-sand:#cdbf9e; --hd-olive:#3c6b55; --hd-paper:#fefefb; --hd-muted:#6e7a73; --hd-line:rgba(30,77,59,.18); --hd-serif:"Noto Serif Hebrew",Georgia,serif; }

body.hdavid { color:var(--hd-ink); background:var(--hd-paper); font-family:var(--hd-serif); }
.hdavid h1,.hdavid h2,.hdavid h3,.hdavid h4,.hdavid h5,.hdavid h6,
.hdavid .entry-title,.hdavid .page-title { font-family:var(--hd-serif); color:var(--hd-ink); }
.hdavid a { color:inherit; }
.hdavid #page { overflow-x:clip; }

/* ---------- פס הודעות ---------- */
.hd-announcement { height:34px; overflow:hidden; background:var(--hd-ink-dark); color:#fff; font-size:12px; letter-spacing:.04em; }
.hd-announcement-track { direction:ltr; display:flex; width:max-content; height:100%; animation:hd-announcement 42s linear infinite; will-change:transform; }
.hd-announcement-group { display:flex; align-items:center; justify-content:space-around; min-width:100vw; height:100%; flex-shrink:0; }
.hd-announcement-group span { white-space:nowrap; }
.hd-announcement-group span:after { content:"✦"; color:var(--hd-sand); margin:0 22px; }
@keyframes hd-announcement { from { transform:translateX(0); } to { transform:translateX(-50%); } }
@media (prefers-reduced-motion:reduce) { .hd-announcement-track { animation:none; } }

/* ---------- כותרת ---------- */
.hd-header { height:100px; padding:0 4.5vw; display:grid; grid-template-columns:1fr auto 1fr; align-items:center; border-bottom:1px solid var(--hd-line); background:var(--hd-paper); position:relative; z-index:20; }
.hd-header > #hd-menu-toggle { justify-self:start; }
.hd-logo { display:flex; flex-direction:column; text-align:center; line-height:1; text-decoration:none; }
.hd-logo span { font-family:var(--hd-serif); font-size:30px; font-weight:600; letter-spacing:.04em; white-space:nowrap; color:var(--hd-ink); }
.hd-header-actions { justify-self:end; display:flex; gap:18px; align-items:center; }
.hdavid .hd-icon-button { border:0; background:transparent; color:var(--hd-ink); font-size:25px; line-height:1; padding:0; cursor:pointer; }
.hdavid .hd-icon-button:hover,.hdavid .hd-icon-button:focus { background:transparent; color:var(--hd-olive); }
.hd-cart { position:relative; display:flex; align-items:center; color:var(--hd-ink); }
.hd-cart svg { width:22px; height:22px; }
.hd-cart b { position:absolute; top:-7px; left:-9px; width:16px; height:16px; border-radius:50%; display:grid; place-items:center; background:var(--hd-ink); color:#fff; font-size:9px; font-weight:600; }
.hd-search { position:absolute; top:100%; right:0; left:0; padding:18px 4.5vw; background:var(--hd-paper); border-bottom:1px solid var(--hd-line); }
.hd-search form { display:flex; max-width:640px; margin:auto; border-bottom:1px solid var(--hd-ink); }
.hdavid .hd-search input[type=search] { flex:1; border:0; background:transparent; padding:12px 0; outline:none; box-shadow:none; font-family:var(--hd-serif); color:var(--hd-ink); }
.hdavid .hd-search button { border:0; background:transparent; color:var(--hd-ink); padding:0 12px; font-family:var(--hd-serif); }

/* ---------- תפריט צד ---------- */
.hd-nav { position:fixed; top:0; bottom:0; right:0; width:min(300px,80vw); z-index:99999; background:var(--hd-paper); padding:100px 32px 32px; display:flex; flex-direction:column; gap:18px; font-size:14px; overflow-y:auto; transform:translateX(100%); transition:transform .3s ease; box-shadow:-10px 0 34px rgba(20,19,17,.16); visibility:hidden; }
.hd-nav.open { transform:translateX(0); visibility:visible; }
.hd-nav a { flex-shrink:0; position:relative; align-self:flex-start; color:var(--hd-ink); text-decoration:none; }
.hd-nav a:after { content:""; position:absolute; right:0; bottom:-5px; width:0; height:1px; background:currentColor; transition:.25s; }
.hd-nav a:hover:after { width:100%; }
.hd-nav .hd-nav-sep { margin-top:10px; padding-top:16px; border-top:1px solid var(--hd-line); align-self:stretch; }
.hd-nav .hd-nav-sep:after { display:none; }
.hdavid .hd-nav-close { position:absolute; top:26px; left:26px; font-size:20px; }
.hd-nav-overlay { position:fixed; inset:0; background:rgba(20,19,17,.42); opacity:0; pointer-events:none; transition:opacity .3s ease; z-index:99998; }
.hd-nav-overlay.open { opacity:1; pointer-events:auto; }

/* ---------- עמוד הבית ---------- */
.hdavid.home .site-content > .ast-container { max-width:none; padding:0; display:block; }
.hd-hero { height:calc(100vh - 134px); min-height:590px; position:relative; display:flex; align-items:center; color:#fff; overflow:hidden; }
.hd-hero > img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.hd-hero-overlay { position:absolute; inset:0; background:linear-gradient(90deg,rgba(30,77,59,.14),rgba(22,58,45,.7)); }
.hd-hero-copy { position:relative; width:min(600px,80vw); margin-right:9vw; }
.hdavid .hd-hero h1 { margin:0; color:#fff; font-size:clamp(56px,7vw,104px); line-height:1.03; font-weight:400; letter-spacing:-.045em; }
.hd-hero-copy p { max-width:500px; font-size:17px; line-height:1.8; margin:28px 0 34px; }
.hd-eyebrow { margin:0 0 22px; font-size:11px; font-weight:600; letter-spacing:.24em; }
.hd-eyebrow:before { content:""; display:inline-block; vertical-align:middle; width:42px; height:1px; margin-left:12px; background:currentColor; opacity:.7; }
.hd-eyebrow-dark { color:var(--hd-olive); }

.hd-category-grid { width:min(1420px,92vw); margin:auto; padding:80px 0 90px; display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.hd-category-card { height:420px; position:relative; overflow:hidden; color:#fff; text-decoration:none; }
.hdavid .hd-category-card:hover { color:#fff; }
.hd-category-media { position:absolute; inset:0; background:#d7d3c2; transition:transform .65s; }
.hd-category-media img { width:100%; height:100%; object-fit:cover; }
.hd-category-card:hover .hd-category-media { transform:scale(1.035); }
.hd-shade { position:absolute; inset:0; background:linear-gradient(0deg,rgba(20,19,17,.56),transparent 60%); }
.hd-category-label { position:absolute; bottom:35px; right:32px; left:20px; }
.hdavid .hd-category-card h3 { margin:0 0 10px; color:#fff; font-size:36px; font-weight:500; line-height:1.2; }
.hd-category-label span { font-size:12px; }
.hd-category-number { position:absolute; top:25px; right:26px; font-size:11px; letter-spacing:.16em; }

.hd-story { min-height:680px; padding:100px 9vw; display:grid; grid-template-columns:.75fr 1.25fr; align-items:center; gap:8vw; background:var(--hd-ink-dark); color:#fff; }
.hd-story-mark { font-family:var(--hd-serif); font-size:clamp(220px,28vw,430px); line-height:.7; color:rgba(255,255,255,.09); text-align:center; }
.hdavid .hd-story h2 { max-width:830px; margin:0; color:#fff; font-size:clamp(40px,4vw,62px); line-height:1.32; font-weight:400; }
.hd-story div > p:not(.hd-eyebrow) { max-width:670px; line-height:1.9; font-size:15px; margin:30px 0; color:rgba(255,255,255,.8); }
.hd-text-link { display:inline-block; padding-bottom:5px; border-bottom:1px solid currentColor; font-size:13px; text-decoration:none; }
.hdavid .hd-text-link:hover { color:var(--hd-sand); }

.hd-contact { padding:100px 9vw; display:flex; flex-wrap:wrap; justify-content:space-between; align-items:end; gap:40px; background:var(--hd-cream); }
.hdavid .hd-contact h2 { margin:0; font-size:clamp(38px,4.5vw,66px); font-weight:400; letter-spacing:-.035em; line-height:1.15; }
.hd-button-dark { display:inline-block; padding:16px 26px; background:var(--hd-ink); color:#fff !important; font-size:14px; text-decoration:none; transition:background .25s; }
.hd-button-dark:hover { background:var(--hd-ink-dark); }

/* ---------- תחתית ---------- */
.hd-footer { padding:62px 4vw 34px; display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:24px; border-top:1px solid var(--hd-line); background:var(--hd-paper); }
.hd-footer-logo { justify-self:start; }
.hd-footer-logo span { font-size:24px; }
.hd-footer-links { display:flex; flex-wrap:wrap; gap:30px; font-size:12px; }
.hd-footer-links a { text-decoration:none; color:var(--hd-ink); }
.hd-footer-links a:hover { text-decoration:underline; }
.hd-footer > p { justify-self:end; margin:0; font-size:11px; color:var(--hd-muted); }

/* ---------- WooCommerce: רשימות מוצרים (קטגוריה, חנות, מוצרים קשורים) ---------- */
.hdavid .woocommerce-products-header__title,.hdavid.archive .page-title,.hdavid .ast-archive-description .ast-archive-title { font-size:clamp(38px,4.5vw,66px); font-weight:400; letter-spacing:-.035em; color:var(--hd-ink); }
.hdavid .woocommerce-breadcrumb,.hdavid .woocommerce-breadcrumb a,.hdavid .ast-breadcrumbs,.hdavid .ast-breadcrumbs a { color:var(--hd-muted); font-size:12px; }
.hdavid .woocommerce-result-count,.hdavid .woocommerce-ordering select { font-size:12px; color:var(--hd-muted); }
.hdavid ul.products li.product .astra-shop-thumbnail-wrap { overflow:hidden; line-height:0; }
.hdavid ul.products li.product img { aspect-ratio:4/5; object-fit:cover; width:100%; transition:transform .5s; margin-bottom:0; }
.hdavid ul.products li.product:hover img { transform:scale(1.025); }
.hdavid ul.products li.product .woocommerce-loop-product__title { font-family:var(--hd-serif); font-size:18px; font-weight:500; color:var(--hd-ink); margin-top:16px; }
.hdavid ul.products li.product .price { color:var(--hd-ink); font-size:13px; font-weight:400; font-family:var(--hd-serif); }
.hdavid ul.products li.product .ast-woo-product-category { color:var(--hd-muted); font-size:11px; }
.hdavid ul.products li.product .ast-woo-shop-product-description { border-bottom:1px solid var(--hd-line); padding-bottom:14px; }
.hdavid ul.products li.product .button,.hdavid ul.products li.product .ast-on-card-button { background:transparent; color:var(--hd-ink); border:1px solid var(--hd-ink); border-radius:0; font-weight:400; font-family:var(--hd-serif); }
.hdavid ul.products li.product .button:hover { background:var(--hd-ink); color:#fff; }
.hdavid .woocommerce span.onsale,.hdavid span.onsale,.hdavid .ast-onsale-card { background:var(--hd-paper); color:var(--hd-ink); border-radius:0; font-size:11px; font-weight:400; min-height:auto; min-width:auto; line-height:1; padding:7px 11px; }
.hdavid .ast-shop-product-out-of-stock,.hdavid .ast-shop-product-out-of-stock span { background:var(--hd-paper); color:var(--hd-ink); font-size:11px; font-weight:400; text-transform:none; letter-spacing:0; }

/* ---------- WooCommerce: עמוד מוצר ---------- */
.hdavid.single-product .site-content > .ast-container { padding-top:40px; padding-bottom:80px; }
.hdavid.single-product div.product .product_title { font-size:clamp(32px,3.6vw,52px); font-weight:400; letter-spacing:-.03em; line-height:1.15; color:var(--hd-ink); }
.hdavid.single-product div.product p.price,.hdavid.single-product div.product span.price { color:var(--hd-ink); font-family:var(--hd-serif); font-size:22px; font-weight:500; }
.hdavid.single-product div.product .single-product-category a,.hdavid.single-product .product_meta,.hdavid.single-product .product_meta a { color:var(--hd-olive); }
.hdavid.single-product div.product .woocommerce-product-details__short-description { color:var(--hd-ink); line-height:1.85; }
.hdavid.single-product .flex-control-thumbs img,.hdavid.single-product .woocommerce-product-gallery__image img { border-radius:0; }
.hdavid .single_add_to_cart_button,.hdavid .woocommerce .button.alt,.hdavid .checkout-button,.hdavid #place_order,.hdavid .woocommerce-message .button { background:var(--hd-ink) !important; color:#fff !important; border:1px solid var(--hd-ink) !important; border-radius:0 !important; font-family:var(--hd-serif) !important; font-weight:400 !important; letter-spacing:.04em; padding:14px 34px !important; }
.hdavid .single_add_to_cart_button:hover,.hdavid .woocommerce .button.alt:hover,.hdavid .checkout-button:hover,.hdavid #place_order:hover { background:var(--hd-ink-dark) !important; }
.hdavid .quantity .qty,.hdavid .quantity .minus,.hdavid .quantity .plus { border-color:var(--hd-line); border-radius:0; color:var(--hd-ink); }
.hdavid.single-product form.cart input[type=text],.hdavid.single-product form.cart input[type=number],.hdavid.single-product form.cart select,.hdavid.single-product form.cart textarea { border:1px solid var(--hd-line); border-radius:0; background:#fff; color:var(--hd-ink); font-family:var(--hd-serif); }
.hdavid.single-product form.cart input:focus,.hdavid.single-product form.cart select:focus,.hdavid.single-product form.cart textarea:focus { border-color:var(--hd-ink); outline:none; box-shadow:none; }
.hdavid.single-product form.cart label,.hdavid.single-product .variations th,.hdavid.single-product .variations label { color:var(--hd-ink); font-family:var(--hd-serif); font-weight:500; }
.hdavid .woocommerce-tabs ul.tabs li a { font-family:var(--hd-serif); color:var(--hd-muted); }
.hdavid .woocommerce-tabs ul.tabs li.active a { color:var(--hd-ink); }
.hdavid .woocommerce-tabs ul.tabs li.active:before { background:var(--hd-ink); }
.hdavid .related.products > h2,.hdavid .upsells.products > h2 { font-size:clamp(28px,3vw,40px); font-weight:400; }
.hdavid .woocommerce-message,.hdavid .woocommerce-info { border-top-color:var(--hd-ink); }
.hdavid .woocommerce-message:before,.hdavid .woocommerce-info:before { color:var(--hd-ink); }

/* ---------- רספונסיבי ---------- */
@media (max-width:900px) {
	.hd-header { height:82px; padding:0 20px; }
	.hd-logo span { font-size:24px; }
	.hd-hero { height:72vh; min-height:520px; }
	.hd-hero-copy { margin:0 8vw; }
	.hdavid .hd-hero h1 { font-size:56px; }
	.hd-category-grid { grid-template-columns:repeat(2,1fr); padding-top:60px; }
	.hd-category-card { height:340px; }
	.hd-story { grid-template-columns:1fr; padding:90px 7vw; }
	.hd-story-mark { display:none; }
	.hd-footer { grid-template-columns:1fr; gap:28px; text-align:center; }
	.hd-footer-logo,.hd-footer > p { justify-self:center; }
	.hd-footer-links { justify-content:center; }
}
@media (max-width:560px) {
	.hd-announcement { font-size:10px; }
	.hd-header-actions { gap:14px; }
	.hd-hero { min-height:560px; }
	.hdavid .hd-hero h1 { font-size:49px; }
	.hd-hero-copy p { font-size:15px; }
	.hd-category-grid { gap:10px; }
	.hd-category-card { height:230px; }
	.hdavid .hd-category-card h3 { font-size:19px; margin:0 0 4px; }
	.hd-category-label { bottom:16px; right:16px; left:10px; }
	.hd-category-label span { font-size:10px; }
	.hd-category-number { top:14px; right:14px; font-size:10px; }
	.hd-story { min-height:auto; }
	.hd-contact { padding:80px 24px; }
	.hdavid ul.products li.product .woocommerce-loop-product__title { font-size:14px; }
}

/* ---------- קרוסלת תמונות (עמוד הבית) ---------- */
.hd-carousel { padding:90px 0 70px; background:var(--hd-paper); --hd-per-view:2.4; --hd-gap:18px; }
.hd-carousel-viewport { overflow:hidden; padding:0 4vw; }
.hd-carousel-track { display:flex; gap:var(--hd-gap); transition:transform .9s cubic-bezier(.65,0,.35,1); will-change:transform; }
.hd-carousel-slide { flex:0 0 calc((100% - var(--hd-gap) * (var(--hd-per-view) - 1)) / var(--hd-per-view)); aspect-ratio:4/3; overflow:hidden; background:var(--hd-cream); }
.hd-carousel-slide img { width:100%; height:100%; object-fit:cover; display:block; }
.hd-carousel-dots { display:flex; justify-content:center; gap:10px; margin-top:26px; }
.hdavid .hd-carousel-dots button { width:8px; height:8px; padding:0; border:1px solid var(--hd-ink); border-radius:50%; background:transparent; cursor:pointer; }
.hdavid .hd-carousel-dots button[aria-selected=true] { background:var(--hd-ink); }
@media (max-width:900px) { .hd-carousel { --hd-per-view:1.6; padding:70px 0 56px; } }
@media (max-width:560px) { .hd-carousel { --hd-per-view:1.15; --hd-gap:10px; padding:56px 0 46px; } .hd-carousel-viewport { padding:0 20px; } }
@media (prefers-reduced-motion:reduce) { .hd-carousel-track { transition:none; } }
