/*
Theme Name: Astra Child — Mazekhane
Template: astra
Version: 0.2.0
Author: Mazekhane
Description: Child theme for مزه‌خانه — premium Persian RTL design. Parent: Astra Free.
License: GPL-2.0-or-later
Text Domain: astra-child-mazekhane
*/

/* ========== Design Tokens ========== */
:root{
  --mz-primary:#c0392b; --mz-primary-dark:#8e1f14; --mz-primary-light:#fdecea;
  --mz-accent:#f39c12; --mz-accent-dark:#d6890f;
  --mz-bg:#fffaf6; --mz-surface:#ffffff; --mz-muted:#6b7280;
  --mz-border:#f1e6dc; --mz-radius:18px; --mz-shadow:0 10px 30px rgba(192,57,43,.08);
  --mz-shadow-lg:0 18px 48px rgba(192,57,43,.14);
  --mz-nav-height:68px;
}

/* Base */
body{ background:var(--mz-bg); color:#1f2937; }
a{ transition:.2s; }
a:focus-visible, button:focus-visible, input:focus-visible{ outline:2px solid var(--mz-primary); outline-offset:2px; }

/* ========== Header / Nav (premium) ========== */
.site-header, .main-header-bar{ background:rgba(255,255,255,.92) !important; backdrop-filter:blur(10px); border-bottom:1px solid var(--mz-border); }
.main-header-menu .menu-link, .ast-header-break-point .main-header-menu .menu-link{ color:#1f2937 !important; font-weight:600; letter-spacing:.1px; }
.main-header-menu .menu-link:hover, .main-header-menu .current-menu-item .menu-link{ color:var(--mz-primary) !important; }
.ast-site-identity .site-title a{ color:var(--mz-primary) !important; font-weight:900; font-size:1.5rem; }
.ast-site-identity .site-description{ color:var(--mz-muted); font-size:.82rem; }

/* Woo cart in header */
.ast-header-woo-cart .ast-woo-header-cart-info-wrap{ color:var(--mz-primary); }

/* ========== Hero ========== */
.mz-hero{ position:relative; overflow:hidden; border-radius:var(--mz-radius); background: radial-gradient(1200px 600px at 85% -10%, #ffe8a3 0%, transparent 60%), radial-gradient(900px 500px at -10% 0%, #ffd1c7 0%, transparent 55%), linear-gradient(135deg, #fff 0%, #fff6ef 55%, #fff1e6 100%); border:1px solid var(--mz-border); box-shadow:var(--mz-shadow); padding:56px 40px; display:grid; grid-template-columns:1.15fr .85fr; gap:28px; align-items:center; }
.mz-hero__eyebrow{ display:inline-flex; align-items:center; gap:8px; background:var(--mz-primary-light); color:var(--mz-primary); border:1px solid #f8c9c0; border-radius:999px; padding:6px 14px; font-size:.82rem; font-weight:700; }
.mz-hero h1{ font-size:clamp(1.9rem, 4vw, 2.8rem); line-height:1.18; margin:16px 0 12px; font-weight:900; color:#111827; }
.mz-hero h1 span{ color:var(--mz-primary); }
.mz-hero__desc{ color:var(--mz-muted); font-size:1.02rem; line-height:1.9; max-width:56ch; }
.mz-hero__ctas{ display:flex; gap:12px; flex-wrap:wrap; margin-top:22px; }
.mz-btn{ display:inline-flex; align-items:center; justify-content:center; gap:8px; border-radius:999px; padding:13px 24px; font-weight:800; text-decoration:none; border:2px solid transparent; line-height:1; }
.mz-btn--primary{ background:var(--mz-primary); color:#fff; box-shadow:0 8px 20px rgba(192,57,43,.28); }
.mz-btn--primary:hover{ background:var(--mz-primary-dark); color:#fff; transform:translateY(-1px); }
.mz-btn--ghost{ background:#fff; color:var(--mz-primary); border-color:var(--mz-border); }
.mz-btn--ghost:hover{ border-color:var(--mz-primary); background:var(--mz-primary-light); }
.mz-hero__art{ position:relative; display:grid; gap:14px; }
.mz-hero__card{ background:var(--mz-surface); border:1px solid var(--mz-border); border-radius:16px; padding:16px; box-shadow:var(--mz-shadow); display:flex; gap:14px; align-items:center; }
.mz-hero__card img{ width:72px; height:72px; object-fit:cover; border-radius:12px; border:1px solid var(--mz-border); }
.mz-hero__card strong{ display:block; font-size:.98rem; }
.mz-hero__card small{ color:var(--mz-muted); }
.mz-hero__badge{ position:absolute; top:-10px; inset-inline-end:8px; background:var(--mz-accent); color:#111; font-weight:900; border-radius:999px; padding:8px 14px; box-shadow:0 8px 18px rgba(243,156,18,.35); font-size:.85rem; }
@media(max-width:900px){ .mz-hero{ grid-template-columns:1fr; padding:28px 20px; } }

/* ========== Section headings ========== */
.mz-section{ margin:42px 0; }
.mz-section__head{ display:flex; align-items:end; justify-content:space-between; gap:16px; margin-bottom:18px; flex-wrap:wrap; }
.mz-section__title{ font-size:1.35rem; font-weight:900; margin:0; color:#111827; display:flex; align-items:center; gap:10px; }
.mz-section__title::before{ content:""; width:8px; height:22px; border-radius:999px; background:var(--mz-primary); display:inline-block; }
.mz-section__sub{ color:var(--mz-muted); font-size:.92rem; margin:6px 0 0; }
.mz-more{ color:var(--mz-primary); font-weight:800; text-decoration:none; border:1px solid var(--mz-border); padding:8px 14px; border-radius:999px; background:#fff; }
.mz-more:hover{ background:var(--mz-primary); color:#fff; border-color:var(--mz-primary); }

/* ========== Category grid ========== */
.mz-cats{ display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }
.mz-cat{ background:var(--mz-surface); border:1px solid var(--mz-border); border-radius:16px; padding:18px 16px; display:flex; flex-direction:column; align-items:center; gap:8px; text-decoration:none; color:inherit; box-shadow:var(--mz-shadow); transition:.2s; text-align:center; }
.mz-cat:hover{ transform:translateY(-3px); box-shadow:var(--mz-shadow-lg); border-color:#f0c8b8; }
.mz-cat__icon{ font-size:1.7rem; width:56px; height:56px; display:grid; place-items:center; background:var(--mz-primary-light); border-radius:14px; border:1px solid #f8c9c0; }
.mz-cat__name{ font-weight:900; font-size:.98rem; }
.mz-cat__count{ color:var(--mz-muted); font-size:.8rem; }
@media(max-width:900px){ .mz-cats{ grid-template-columns:repeat(2,1fr); } }
@media(max-width:520px){ .mz-cats{ grid-template-columns:repeat(2,1fr); gap:10px; } }

/* ========== Recipe cards ========== */
.mz-recipes{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.mz-card{ background:var(--mz-surface); border:1px solid var(--mz-border); border-radius:18px; overflow:hidden; text-decoration:none; color:inherit; display:flex; flex-direction:column; box-shadow:var(--mz-shadow); transition:.2s; }
.mz-card:hover{ transform:translateY(-4px); box-shadow:var(--mz-shadow-lg); }
.mz-card__thumb{ position:relative; aspect-ratio:16/10; overflow:hidden; background:#fff3eb; }
.mz-card__thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
.mz-card__placeholder{ width:100%; height:100%; display:grid; place-items:center; font-size:2.2rem; }
.mz-card__cat{ position:absolute; bottom:10px; inset-inline-start:10px; background:rgba(255,255,255,.94); border:1px solid var(--mz-border); border-radius:999px; padding:5px 10px; font-size:.76rem; font-weight:800; color:var(--mz-primary); }
.mz-card__body{ padding:14px 16px 16px; display:flex; flex-direction:column; gap:8px; flex:1; }
.mz-card__title{ margin:0; font-size:1.02rem; font-weight:900; line-height:1.5; }
.mz-card__excerpt{ margin:0; color:var(--mz-muted); font-size:.88rem; line-height:1.8; flex:1; }
.mz-card__link{ color:var(--mz-primary); font-weight:800; font-size:.88rem; }
@media(max-width:1000px){ .mz-recipes{ grid-template-columns:repeat(2,1fr); } }
@media(max-width:600px){ .mz-recipes{ grid-template-columns:1fr; } }

/* ========== Product cards ========== */
.mz-products{ display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }
.mz-pcard{ background:var(--mz-surface); border:1px solid var(--mz-border); border-radius:18px; overflow:hidden; display:flex; flex-direction:column; box-shadow:var(--mz-shadow); transition:.2s; }
.mz-pcard:hover{ transform:translateY(-3px); box-shadow:var(--mz-shadow-lg); }
.mz-pcard__thumb{ aspect-ratio:1/1; background:#fff7ef; display:block; overflow:hidden; }
.mz-pcard__thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
.mz-pcard__placeholder{ width:100%; height:100%; display:grid; place-items:center; font-size:2rem; }
.mz-pcard__body{ padding:12px 14px; flex:1; }
.mz-pcard__title{ margin:0 0 6px; font-size:.92rem; font-weight:900; line-height:1.6; }
.mz-pcard__title a{ color:inherit; text-decoration:none; }
.mz-pcard__title a:hover{ color:var(--mz-primary); }
.mz-pcard__price{ color:var(--mz-primary); font-weight:900; }
.mz-pcard__price del{ color:var(--mz-muted); font-weight:400; margin-inline-end:6px; }
.mz-pcard__price ins{ text-decoration:none; }
.mz-pcard__btn{ margin:0 14px 14px; background:var(--mz-primary); color:#fff; text-align:center; border-radius:999px; padding:10px 14px; font-weight:900; text-decoration:none; display:block; }
.mz-pcard__btn:hover{ background:var(--mz-primary-dark); color:#fff; }
@media(max-width:1100px){ .mz-products{ grid-template-columns:repeat(3,1fr); } }
@media(max-width:700px){ .mz-products{ grid-template-columns:repeat(2,1fr); } }
@media(max-width:420px){ .mz-products{ grid-template-columns:1fr; } }

/* ========== Value props + CTA ========== */
.mz-values{ display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }
.mz-value{ background:var(--mz-surface); border:1px solid var(--mz-border); border-radius:16px; padding:20px 16px; text-align:center; box-shadow:var(--mz-shadow); }
.mz-value__icon{ width:56px; height:56px; margin:0 auto 10px; display:grid; place-items:center; background:var(--mz-primary-light); border:1px solid #f8c9c0; border-radius:14px; font-size:1.5rem; }
.mz-value strong{ display:block; font-weight:900; margin-bottom:6px; }
.mz-value p{ margin:0; color:var(--mz-muted); font-size:.88rem; line-height:1.7; }
@media(max-width:900px){ .mz-values{ grid-template-columns:repeat(2,1fr); } }
@media(max-width:480px){ .mz-values{ grid-template-columns:1fr; } }

.mz-cta{ background: linear-gradient(135deg, var(--mz-primary) 0%, #a93226 100%); color:#fff; border-radius:22px; padding:34px 28px; display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap; box-shadow:0 18px 40px rgba(192,57,43,.28); }
.mz-cta h3{ margin:0 0 6px; font-size:1.45rem; font-weight:900; }
.mz-cta p{ margin:0; opacity:.92; line-height:1.7; }
.mz-cta .mz-btn{ background:#fff; color:var(--mz-primary); }
.mz-cta .mz-btn:hover{ background:var(--mz-accent); color:#111; }

/* Recipe-product block (single) */
.mazekhane-recipe-products{ margin:2rem 0; padding:1.5rem; border:1px solid var(--mz-border); border-radius:16px; background:#fff; box-shadow:var(--mz-shadow); }
.mazekhane-recipe-products__title{ font-size:1.2rem; margin:0 0 1rem; font-weight:900; display:flex; align-items:center; gap:8px; }
.mazekhane-recipe-products__title::before{ content:"🛒"; }
.mazekhane-products-grid .products{ direction:rtl; }
.mz-empty{ color:var(--mz-muted); background:#fff; border:1px dashed var(--mz-border); border-radius:12px; padding:18px; text-align:center; }

/* ===== Single Recipe (mz-recipe-format) ===== */
.mz-recipe-format{ display:flex; flex-direction:column; gap:22px; }
.mz-recipe-top{ display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; }
.mz-back{ color:var(--mz-primary); font-weight:800; text-decoration:none; border:1px solid var(--mz-border); padding:8px 14px; border-radius:999px; background:#fff; }
.mz-back:hover{ background:var(--mz-primary); color:#fff; border-color:var(--mz-primary); }
.mz-cat-badge{ background:var(--mz-primary-light); color:var(--mz-primary); border:1px solid #f8c9c0; border-radius:999px; padding:8px 14px; font-weight:900; text-decoration:none; font-size:.82rem; }
.mz-recipe-hero-img{ border-radius:18px; overflow:hidden; border:1px solid var(--mz-border); box-shadow:var(--mz-shadow); }
.mz-recipe-hero-img img{ width:100%; height:auto; display:block; }
.mz-meta-pills{ display:flex; gap:10px; flex-wrap:wrap; }
.mz-pill{ background:#fff; border:1px solid var(--mz-border); border-radius:999px; padding:9px 14px; font-weight:800; font-size:.82rem; color:#374151; box-shadow:var(--mz-shadow); }
.mz-lead{ background:#fff; border:1px solid var(--mz-border); border-radius:16px; padding:18px 20px; color:#4b5563; line-height:1.95; box-shadow:var(--mz-shadow); }
.mz-box{ background:#fff; border:1px solid var(--mz-border); border-radius:18px; box-shadow:var(--mz-shadow); overflow:hidden; }
.mz-box__head{ display:flex; align-items:center; gap:10px; padding:16px 18px; border-bottom:1px solid var(--mz-border); background:linear-gradient(180deg,#fff,#fffaf6); }
.mz-box__head h3{ margin:0; font-size:1.05rem; font-weight:900; flex:1; }
.mz-box__icon{ width:36px; height:36px; display:grid; place-items:center; background:var(--mz-primary-light); border:1px solid #f8c9c0; border-radius:10px; }
.mz-box__count{ background:#111827; color:#fff; border-radius:999px; padding:6px 10px; font-size:.76rem; font-weight:800; }
.mz-ing-list{ list-style:none; margin:0; padding:12px 16px 16px; display:grid; gap:10px; }
.mz-ing-list li{ display:flex; gap:10px; align-items:center; padding:10px 12px; border:1px dashed #f0d8c8; border-radius:12px; background:#fffaf6; }
.mz-ing-check{ width:26px; height:26px; display:grid; place-items:center; background:var(--mz-primary); color:#fff; border-radius:999px; font-size:.78rem; flex-shrink:0; }
.mz-step-list{ list-style:none; margin:0; padding:12px 16px 16px; display:grid; gap:14px; counter-reset: mzstep; }
.mz-step-list li{ display:flex; gap:14px; align-items:flex-start; padding:14px 14px; background:#fff; border:1px solid var(--mz-border); border-radius:14px; }
.mz-step-num{ width:40px; height:40px; flex-shrink:0; display:grid; place-items:center; background:var(--mz-primary); color:#fff; border-radius:999px; font-weight:900; box-shadow:0 6px 16px rgba(192,57,43,.25); }
.mz-step-list li p{ margin:0; line-height:1.9; color:#374151; }
.mz-tip{ background:#fffbeb; border:1px solid #fde68a; border-radius:14px; padding:16px 18px; color:#92400e; line-height:1.9; }
.mz-tip em{ font-style:normal; }
.mz-product-anchor .mazekhane-recipe-products{ margin-top:6px; }
.mz-related{ margin-top:8px; }
.mz-recipes--related{ grid-template-columns:repeat(3,1fr); }
@media(max-width:900px){ .mz-recipes--related{ grid-template-columns:1fr; } }

/* Woo/RTL + breadcrumbs */
.woocommerce-breadcrumb, .woocommerce .price, .woocommerce .cart, .woocommerce .checkout{ direction:rtl; }
.ast-separate-container .ast-article-single{ background:transparent; }


/* MZ: hide Astra page title on Home (6), Recipes (7), About (9), Contact (10) — we show custom hero/title; keep SEO <title> */
.page-id-6 .entry-header, .page-id-7 .entry-header, .page-id-9 .entry-header, .page-id-10 .entry-header { display:none !important; }
.page-id-6 .ast-container, .page-id-7 .ast-container, .page-id-9 .ast-container, .page-id-10 .ast-container { max-width:1240px; }
.site-header .ast-site-identity { display:flex; align-items:center; gap:10px; }
.site-header .site-logo-img img{ max-height:40px; }

/* Shop hero */
.mz-shop-hero{ background: radial-gradient(900px 400px at 85% 0%, #ffe8a3 0%, transparent 60%), linear-gradient(135deg,#fff,#fff6ef); border:1px solid var(--mz-border); border-radius:18px; padding:28px 24px; margin-bottom:18px; box-shadow:var(--mz-shadow); }
.mz-shop-hero__inner{ max-width:760px; }

/* Shop: hide duplicate Woo archive header (we have mz-shop-hero) */
.woocommerce-shop .woocommerce-products-header,
.post-type-archive-product .woocommerce-products-header,
.woocommerce-page .page-title{ display:none !important; }
.woocommerce-shop .woocommerce-breadcrumb, .woocommerce-breadcrumb{ direction:rtl; }
