/*
 * Arzisho design system: the site chrome (header, footer), the home page,
 * articles, archives, shop and account. Elementor content keeps its own
 * stylesheets inside .elementor-kit-9 wrappers.
 */

@font-face {
    font-family: 'Vazirmatn';
    src: url('/fonts/vazirmatn/Vazirmatn%5Bwght%5D.woff2') format('woff2-variations'),
         url('/fonts/vazirmatn/Vazirmatn%5Bwght%5D.woff2') format('woff2');
    font-weight: 100 900;
    font-display: swap;
}

:root {
    --brand: #5DBB46;
    --brand-600: #2F8F2A;
    --brand-700: #23711F;
    --brand-50: #F0F8EC;
    --brand-100: #DDF0D5;
    --accent: #934683;
    --accent-50: #F7EEF5;
    --gold: #F5B82E;
    --ink: #17231A;
    --text: #3A4A3F;
    --muted: #6B7A70;
    --line: #E3EAE4;
    --bg: #F6F9F5;
    --surface: #FFFFFF;
    --dark: #0F1F15;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow-sm: 0 1px 2px rgba(16, 40, 20, .06), 0 1px 3px rgba(16, 40, 20, .05);
    --shadow: 0 10px 30px -12px rgba(16, 40, 20, .18);
    --shadow-lg: 0 24px 60px -20px rgba(16, 40, 20, .28);
    --container: 1200px;
    --header-h: 72px;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body.arz {
    margin: 0;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    font-size: 16px;
    line-height: 1.9;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
.arz img { max-width: 100%; height: auto; }
.arz a { color: var(--brand-600); text-decoration: none; transition: color .2s; }
.arz a:hover { color: var(--brand-700); }
.arz h1, .arz h2, .arz h3, .arz h4 { color: var(--ink); line-height: 1.5; margin: 0 0 .5em; font-weight: 800; }
.arz :focus-visible { outline: 3px solid rgba(93, 187, 70, .55); outline-offset: 2px; border-radius: 6px; }
.arz .sr-only, .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 1000; background: var(--ink); color: #fff !important; padding: 8px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.section { padding-block: 72px; }
.section--tight { padding-block: 48px; }
.section--white { background: var(--surface); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 32px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); margin: 0; }
.section-head p { margin: 6px 0 0; color: var(--muted); max-width: 640px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 700; color: var(--brand-600); background: var(--brand-50); padding: 4px 12px; border-radius: 999px; margin-bottom: 12px; }

/* ------------------------------------------------------------- buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 46px; padding: 0 22px; border-radius: 12px; border: 1px solid transparent;
    font: inherit; font-weight: 700; font-size: .95rem; line-height: 1; cursor: pointer;
    transition: transform .15s var(--ease), box-shadow .2s, background .2s, color .2s, border-color .2s;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.arz .btn--primary { background: var(--brand-600); color: #fff; box-shadow: 0 8px 20px -8px rgba(47, 143, 42, .6); }
.arz .btn--primary:hover { background: var(--brand-700); color: #fff; }
.arz .btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.arz .btn--ghost:hover { border-color: var(--brand); color: var(--brand-700); }
.arz .btn--soft { background: var(--brand-50); color: var(--brand-700); }
.arz .btn--soft:hover { background: var(--brand-100); color: var(--brand-700); }
.arz .btn--white { background: #fff; color: var(--brand-700); }
.btn--lg { min-height: 54px; padding: 0 28px; font-size: 1rem; border-radius: 14px; }
.btn--sm { min-height: 38px; padding: 0 14px; font-size: .88rem; border-radius: 10px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }

/* -------------------------------------------------------------- header */
.site-header {
    position: sticky; top: 0; z-index: 900;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(16, 40, 20, .4); }
.site-header__bar { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { height: 42px; width: auto; display: block; }
.nav { flex: 1; }
.nav__list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__item { position: relative; }
.nav__link {
    display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 10px;
    color: var(--ink) !important; font-weight: 600; font-size: .95rem; background: none; border: 0; font-family: inherit; cursor: pointer;
}
.nav__link:hover, .nav__item.is-open > .nav__link, .nav__link[aria-current="page"] { background: var(--brand-50); color: var(--brand-700) !important; }
.nav__link .fa-chevron-down { font-size: .65rem; opacity: .6; transition: transform .2s; }
.nav__item.is-open > .nav__link .fa-chevron-down { transform: rotate(180deg); }
.nav__menu {
    position: absolute; top: calc(100% + 8px); inset-inline-start: 0; min-width: 260px; padding: 8px;
    background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg);
    list-style: none; margin: 0; opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: opacity .18s, transform .18s var(--ease), visibility .18s;
}
.nav__item.is-open > .nav__menu, .nav__item:focus-within > .nav__menu { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) { .nav__item:hover > .nav__menu { opacity: 1; visibility: visible; transform: none; } }
.nav__menu a { display: block; padding: 10px 14px; border-radius: 10px; color: var(--text) !important; font-size: .93rem; }
.nav__menu a:hover { background: var(--brand-50); color: var(--brand-700) !important; }
.header-actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.icon-btn {
    position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
    background: transparent; border: 1px solid var(--line); color: var(--ink) !important; cursor: pointer; font-size: 1rem;
}
.icon-btn:hover { border-color: var(--brand); color: var(--brand-700) !important; }
.icon-btn .badge {
    position: absolute; top: -6px; inset-inline-end: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
    background: var(--accent); color: #fff; font-size: .72rem; font-weight: 800; display: grid; place-items: center; line-height: 1;
}
.menu-toggle { display: none; }

/* Mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 1000; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(10, 20, 12, .45); opacity: 0; transition: opacity .25s; }
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer__panel {
    position: absolute; top: 0; bottom: 0; inset-inline-start: 0; width: min(340px, 88vw); background: var(--surface);
    transform: translateX(100%); transition: transform .3s var(--ease); display: flex; flex-direction: column; box-shadow: var(--shadow-lg);
}
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.drawer__head img { height: 36px; }
.drawer__body { overflow-y: auto; padding: 12px; flex: 1; }
.drawer__body ul { list-style: none; margin: 0; padding: 0; }
.drawer__link, .drawer__body summary {
    display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-radius: 12px;
    color: var(--ink) !important; font-weight: 600; cursor: pointer; list-style: none;
}
.drawer__body summary::-webkit-details-marker { display: none; }
.drawer__link:hover, .drawer__body summary:hover { background: var(--brand-50); }
.drawer__body details[open] > summary .fa-chevron-down { transform: rotate(180deg); }
.drawer__body details ul { padding-inline-start: 14px; border-inline-start: 2px solid var(--brand-100); margin: 4px 14px 8px; }
.drawer__body details a { display: block; padding: 9px 12px; color: var(--text) !important; border-radius: 10px; font-size: .94rem; }
.drawer__foot { padding: 16px 20px; border-top: 1px solid var(--line); display: grid; gap: 10px; }

/* Search overlay */
.search-overlay { position: fixed; inset: 0; z-index: 1001; display: grid; place-items: start center; padding: 12vh 20px 20px; background: rgba(10, 20, 12, .55); backdrop-filter: blur(6px); }
.search-overlay[hidden] { display: none; }
.search-overlay form { width: min(680px, 100%); display: flex; gap: 8px; background: var(--surface); padding: 10px; border-radius: 18px; box-shadow: var(--shadow-lg); }
.search-overlay input { flex: 1; border: 0; font: inherit; font-size: 1.1rem; padding: 10px 14px; outline: none; background: transparent; color: var(--ink); }

@media (max-width: 1024px) {
    .nav, .header-actions .btn-account-text { display: none; }
    .menu-toggle { display: inline-grid; }
    :root { --header-h: 64px; }
    .brand img { height: 36px; }
}

/* -------------------------------------------------------------- footer */
.site-footer { background: var(--dark); color: #B8C7BD; margin-top: 0; }
.site-footer a { color: #DDE7E0 !important; }
.site-footer a:hover { color: var(--brand) !important; }
.footer-cta { background: linear-gradient(120deg, var(--brand-600), #3FA535 55%, #7CCB5F); color: #fff; border-radius: 22px; padding: 32px; display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; transform: translateY(-50%); box-shadow: var(--shadow-lg); }
.footer-cta h2 { color: #fff; margin: 0 0 4px; font-size: clamp(1.15rem, 2.2vw, 1.5rem); }
.footer-cta p { margin: 0; opacity: .92; }
.footer-cta__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-cta .btn--white:hover { background: #F3FFF0; }
.arz .footer-cta .btn--outline-white { border-color: rgba(255, 255, 255, .6); color: #fff !important; background: transparent; }
.footer-main { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr) 1.3fr; gap: 32px; padding-bottom: 40px; }
.footer-main h3 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer-main ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .94rem; }
.footer-brand img { height: 44px; margin-bottom: 14px; }
.footer-brand p { font-size: .92rem; line-height: 2; margin: 0 0 16px; }
.socials { display: flex; gap: 8px; flex-wrap: wrap; }
.socials a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .07); color: #fff !important; transition: background .2s, transform .2s; }
.socials a:hover { background: var(--brand-600); transform: translateY(-2px); color: #fff !important; }
.contact-list li { display: flex; gap: 10px; align-items: center; }
.contact-list i { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: rgba(93, 187, 70, .14); color: var(--brand); flex-shrink: 0; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding-block: 18px; font-size: .86rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-spacer { height: 40px; }
@media (max-width: 960px) { .footer-main { grid-template-columns: 1fr 1fr; } .footer-brand, .footer-contact { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer-main { grid-template-columns: 1fr; } .footer-cta { transform: translateY(-30%); padding: 24px; } }

/* --------------------------------------------------------------- cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card--pad { padding: 24px; }
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1024px) { .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.post-card { display: flex; flex-direction: column; overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s; height: 100%; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card__media { position: relative; aspect-ratio: 16 / 9; background: var(--brand-50); overflow: hidden; display: block; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.04); }
.post-card__cat { position: absolute; top: 12px; inset-inline-start: 12px; background: rgba(255, 255, 255, .95); color: var(--brand-700) !important; font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.post-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card__title { font-size: 1.05rem; line-height: 1.7; margin: 0; }
.post-card__title a { color: var(--ink) !important; }
.post-card__title a:hover { color: var(--brand-700) !important; }
.post-card__excerpt { color: var(--muted); font-size: .92rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-card__meta { margin-top: auto; padding-top: 10px; display: flex; gap: 14px; color: var(--muted); font-size: .82rem; }
.post-card__meta i { margin-inline-end: 4px; opacity: .7; }

.feature { padding: 26px; height: 100%; transition: border-color .2s, transform .25s var(--ease), box-shadow .25s; }
.feature:hover { border-color: var(--brand-100); transform: translateY(-3px); box-shadow: var(--shadow); }
.feature__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 1.3rem; background: var(--brand-50); color: var(--brand-600); margin-bottom: 16px; }
.feature__icon--accent { background: var(--accent-50); color: var(--accent); }
.feature__icon--gold { background: #FEF5E1; color: #C88A06; }
.feature h3 { font-size: 1.08rem; margin-bottom: 6px; }
.feature p { margin: 0; color: var(--muted); font-size: .94rem; line-height: 1.95; }
.feature__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-weight: 700; font-size: .92rem; }

/* ---------------------------------------------------------------- home */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 500px at 85% -10%, #E6F6DF 0%, transparent 60%), radial-gradient(800px 400px at 0% 110%, #F4E9F2 0%, transparent 60%), var(--surface); }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding-block: 64px 80px; }
.hero h1 { font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.45; margin-bottom: 18px; letter-spacing: -.5px; }
.hero h1 mark { background: linear-gradient(transparent 62%, rgba(93, 187, 70, .28) 0); color: inherit; padding: 0 4px; }
.hero__lead { font-size: 1.08rem; color: var(--text); max-width: 560px; margin: 0 0 28px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 36px; }
.hero__stats { display: flex; gap: 32px; flex-wrap: wrap; }
.hero__stats strong { display: block; font-size: 1.6rem; color: var(--ink); line-height: 1.3; }
.hero__stats span { color: var(--muted); font-size: .9rem; }
.hero__media { position: relative; }
.hero__media img { width: 100%; border-radius: 28px; box-shadow: var(--shadow-lg); aspect-ratio: 16 / 9; object-fit: cover; }
.hero__badge { position: absolute; inset-inline-end: -12px; bottom: 28px; background: var(--surface); border-radius: 16px; padding: 12px 16px; box-shadow: var(--shadow-lg); display: flex; gap: 12px; align-items: center; font-weight: 700; color: var(--ink); font-size: .92rem; }
.hero__badge i { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-600); }
@media (max-width: 960px) { .hero__grid { grid-template-columns: 1fr; padding-block: 40px 56px; gap: 32px; } .hero__media { order: -1; } .hero__badge { inset-inline-end: 12px; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split__media img { border-radius: 24px; box-shadow: var(--shadow); width: 100%; max-height: 560px; object-fit: cover; object-position: top; }
.check-list { list-style: none; padding: 0; margin: 20px 0 28px; display: grid; gap: 16px; }
.check-list li { display: flex; gap: 14px; }
.check-list i { flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-600); }
.check-list strong { display: block; color: var(--ink); }
.check-list span { color: var(--muted); font-size: .93rem; }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; gap: 32px; } }

.steps { counter-reset: step; }
.step { position: relative; padding: 26px 26px 26px 26px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: 22px; inset-inline-end: 22px; font-size: 2.6rem; font-weight: 900; color: var(--brand-100); line-height: 1; }

.consult { display: grid; grid-template-columns: .9fr 1.1fr; gap: 0; overflow: hidden; }
.consult__aside { background: linear-gradient(160deg, var(--brand-600), #2A7D26); color: #E8F6E3; padding: 40px; display: flex; flex-direction: column; gap: 18px; }
.consult__aside h2 { color: #fff; font-size: 1.6rem; }
.consult__aside .contact-list { list-style: none; padding: 0; margin: auto 0 0; display: grid; gap: 12px; }
.consult__aside .contact-list a { color: #fff !important; }
.consult__aside .contact-list i { background: rgba(255, 255, 255, .14); color: #fff; }
.consult__form { padding: 40px; }
@media (max-width: 860px) { .consult { grid-template-columns: 1fr; } .consult__aside, .consult__form { padding: 28px; } }

.faq { display: grid; gap: 12px; max-width: 860px; margin-inline: auto; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; transition: border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: var(--brand-100); box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 700; color: var(--ink); display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.4rem; font-weight: 400; color: var(--brand-600); transition: transform .2s; flex-shrink: 0; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq__answer { padding: 0 22px 20px; color: var(--text); }
.faq__answer p { margin: 0 0 .6em; }

/* -------------------------------------------------------------- forms */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 700; font-size: .92rem; color: var(--ink); }
.field .req { color: #C2410C; margin-inline-start: 2px; }
.input, .arz select.input, .arz textarea.input {
    width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: #FBFDFB;
    font: inherit; color: var(--ink); transition: border-color .2s, box-shadow .2s, background .2s;
}
.arz textarea.input { min-height: 120px; resize: vertical; line-height: 1.9; }
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(93, 187, 70, .16); background: #fff; }
.input[dir="ltr"] { text-align: left; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; cursor: pointer; }
.checkbox input { width: 20px; height: 20px; margin-top: 4px; accent-color: var(--brand-600); flex-shrink: 0; }
.form-note { color: var(--muted); font-size: .86rem; }
.alert { padding: 14px 18px; border-radius: 12px; margin-bottom: 18px; font-size: .95rem; border: 1px solid; }
.alert ul { margin: 0; padding-inline-start: 18px; }
.alert--success { background: #EEF8EA; border-color: #CDEBC3; color: #275C1E; }
.alert--error { background: #FDF0EE; border-color: #F5CFC8; color: #8A2617; }
.alert--info { background: #EEF5FB; border-color: #CFE2F2; color: #1E4C73; }
.form-message { margin-top: 12px; }
.form-message.elementor-message-success { background: #EEF8EA; color: #275C1E; padding: 12px 16px; border-radius: 12px; }
.form-message.elementor-message-danger { background: #FDF0EE; color: #8A2617; padding: 12px 16px; border-radius: 12px; }

/* --------------------------------------------------------- page shell */
.page-hero { background: linear-gradient(180deg, var(--surface), var(--bg)); border-bottom: 1px solid var(--line); padding-block: 36px 32px; }
.page-hero h1 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin: 8px 0 6px; }
.page-hero p { color: var(--muted); margin: 0; max-width: 720px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .86rem; color: var(--muted); list-style: none; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: '‹'; margin-inline-end: 6px; opacity: .6; }
.breadcrumbs a { color: var(--muted) !important; }
.breadcrumbs a:hover { color: var(--brand-700) !important; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--text) !important; font-size: .88rem; font-weight: 600; }
.chip:hover, .chip.is-active { border-color: var(--brand); color: var(--brand-700) !important; background: var(--brand-50); }
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 40px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 42px; height: 42px; padding: 0 12px; display: inline-grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink) !important; font-weight: 700; }
.pagination .is-current { background: var(--brand-600); border-color: var(--brand-600); color: #fff !important; }
.pagination a:hover { border-color: var(--brand); }
.empty-state { text-align: center; padding: 56px 24px; }
.empty-state i { font-size: 2.4rem; color: var(--brand); margin-bottom: 12px; }


/* ------------------------------------------------------------- article */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; padding-block: 32px 64px; }
@media (max-width: 1100px) { .article-layout { grid-template-columns: 1fr; } .article-aside { display: none; } }
.article-head { margin-bottom: 24px; }
.article-head h1 { font-size: clamp(1.5rem, 3.2vw, 2.3rem); line-height: 1.55; margin: 12px 0 16px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; color: var(--muted); font-size: .9rem; }
.article-meta img { width: 36px; height: 36px; border-radius: 50%; }
.article-meta .author { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; }
.article-cover { margin: 0 0 28px; }
.article-cover img { width: 100%; border-radius: 20px; aspect-ratio: 16 / 9; object-fit: cover; box-shadow: var(--shadow); }
.article-body { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: clamp(20px, 4vw, 44px); }
.media-embed { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; margin-bottom: 24px; }
.media-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.media-audio { width: 100%; margin-bottom: 24px; }
.learn-box { background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: 16px; padding: 18px 22px; margin-bottom: 28px; }
.learn-box h2 { font-size: 1.05rem; margin-bottom: 6px; color: var(--brand-700); }
.learn-box p { margin: 0; }
.people { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.person { display: inline-flex; gap: 8px; align-items: center; background: var(--accent-50); color: var(--accent); padding: 6px 14px; border-radius: 999px; font-size: .9rem; font-weight: 600; }

.prose { font-size: 1.04rem; line-height: 2.1; color: var(--text); overflow-wrap: anywhere; }
.prose > *:first-child { margin-top: 0; }
.prose h2 { font-size: 1.45rem; margin: 2em 0 .7em; padding-inline-start: 14px; border-inline-start: 4px solid var(--brand); line-height: 1.6; }
.prose h3 { font-size: 1.2rem; margin: 1.7em 0 .6em; }
.prose h4 { font-size: 1.05rem; margin: 1.5em 0 .5em; }
.prose p { margin: 0 0 1.2em; }
.prose a { text-decoration: underline; text-decoration-color: rgba(47, 143, 42, .35); text-underline-offset: 4px; }
.prose ul, .prose ol { padding-inline-start: 1.4em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--brand-600); }
.prose blockquote { margin: 1.6em 0; padding: 16px 22px; background: var(--brand-50); border-radius: 14px; border-inline-start: 4px solid var(--brand); color: var(--ink); }
.prose img { border-radius: 14px; height: auto; }
.prose figure { margin: 1.6em 0; }
.prose figcaption, .prose .wp-caption-text { text-align: center; color: var(--muted); font-size: .88rem; margin-top: 8px; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: start; }
.prose th { background: var(--brand-50); color: var(--ink); }
.prose iframe { max-width: 100%; border-radius: 14px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose code { background: #F1F4F1; padding: 2px 6px; border-radius: 6px; font-size: .9em; }

.article-foot { margin-top: 28px; display: grid; gap: 20px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.share { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.share a, .share button { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface); color: var(--ink) !important; cursor: pointer; font-size: 1rem; }
.share a:hover, .share button:hover { border-color: var(--brand); color: var(--brand-700) !important; }
.author-card { display: flex; gap: 16px; align-items: center; }
.author-card img { width: 64px; height: 64px; border-radius: 50%; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.post-nav a { padding: 16px 20px; display: block; color: var(--ink) !important; }
.post-nav small { display: block; color: var(--muted); font-size: .82rem; }
.post-nav a:last-child { text-align: end; }
@media (max-width: 640px) { .post-nav { grid-template-columns: 1fr; } .post-nav a:last-child { text-align: start; } }

.article-aside { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 20px; }
.toc { padding: 20px; }
.toc h2 { font-size: 1rem; margin-bottom: 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; max-height: 50vh; overflow-y: auto; }
.toc a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--muted) !important; font-size: .88rem; line-height: 1.7; border-inline-start: 2px solid transparent; }
.toc a:hover { color: var(--ink) !important; background: var(--bg); }
.toc a.is-active { color: var(--brand-700) !important; border-color: var(--brand); background: var(--brand-50); }
.toc .toc-h3 a { padding-inline-start: 22px; font-size: .84rem; }
.toc-mobile { margin-bottom: 24px; }
.toc-mobile summary { cursor: pointer; font-weight: 700; padding: 14px 18px; list-style: none; display: flex; justify-content: space-between; }
.toc-mobile[hidden] { display: none; }
@media (min-width: 1101px) { .toc-mobile { display: none; } }
.aside-cta { padding: 22px; background: linear-gradient(160deg, var(--brand-600), #2A7D26); color: #E8F6E3; border: 0; }
.aside-cta h2 { color: #fff; font-size: 1.05rem; }
.aside-cta p { font-size: .9rem; margin: 0 0 14px; }
.reading-progress { position: fixed; top: 0; inset-inline-start: 0; height: 3px; background: var(--brand); z-index: 1000; width: 0; transition: width .1s linear; }

/* ------------------------------------------------------------ comments */
.comments { margin-top: 32px; }
.comments h2 { font-size: 1.2rem; }
.comment-list, .comment-list .children { list-style: none; padding: 0; margin: 0; }
.comment-list .children { margin-inline-start: clamp(16px, 4vw, 40px); border-inline-start: 2px solid var(--line); padding-inline-start: 16px; }
.comment-body { padding: 18px 0; border-bottom: 1px solid var(--line); }
.comment-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.comment-meta img { width: 40px; height: 40px; border-radius: 50%; }
.comment-meta b { color: var(--ink); }
.comment-meta time { color: var(--muted); font-size: .84rem; display: block; }
.comment-content p { margin: 0 0 .5em; }
.comment-reply-link, .comment-reply-login { font-size: .86rem; font-weight: 700; }

/* ---------------------------------------------------------------- shop */
.product-card { overflow: hidden; display: flex; flex-direction: column; height: 100%; transition: transform .25s var(--ease), box-shadow .25s; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-card__media { position: relative; aspect-ratio: 1; background: var(--brand-50); display: block; }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; }
.product-card__body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-card__title { font-size: 1rem; margin: 0; line-height: 1.7; }
.product-card__title a { color: var(--ink) !important; }
.price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price__now { font-size: 1.15rem; font-weight: 800; color: var(--ink); }
.price__now small { font-size: .78rem; font-weight: 600; color: var(--muted); }
.price__was { color: var(--muted); text-decoration: line-through; font-size: .9rem; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: .76rem; font-weight: 800; }
.tag--sale { background: #FDECEF; color: #B4233C; }
.tag--out { background: #F1F3F2; color: var(--muted); }
.tag--in { background: var(--brand-50); color: var(--brand-700); }
.product-card .tag-row { position: absolute; top: 12px; inset-inline-start: 12px; display: flex; gap: 6px; }
.product-card__foot { margin-top: auto; }

.product { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding-block: 32px 48px; align-items: start; }
.product__gallery { position: sticky; top: calc(var(--header-h) + 20px); }
.product__gallery .main { border-radius: 22px; overflow: hidden; background: var(--brand-50); border: 1px solid var(--line); }
.product__gallery .main img { width: 100%; display: block; aspect-ratio: 1; object-fit: cover; }
.product__thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.product__thumbs button { width: 72px; height: 72px; padding: 0; border-radius: 12px; overflow: hidden; border: 2px solid transparent; cursor: pointer; background: none; }
.product__thumbs button.is-active { border-color: var(--brand); }
.product__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.buy-box { padding: 28px; display: grid; gap: 18px; }
.buy-box h1 { font-size: clamp(1.35rem, 2.6vw, 1.8rem); margin: 0; }
.buy-box .price__now { font-size: 1.6rem; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.qty button { width: 44px; height: 46px; border: 0; background: var(--bg); font-size: 1.1rem; cursor: pointer; color: var(--ink); }
.qty input { width: 54px; height: 46px; border: 0; text-align: center; font: inherit; font-weight: 700; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.buy-row { display: flex; gap: 12px; flex-wrap: wrap; }
.buy-row .btn { flex: 1; }
.assurances { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: .9rem; color: var(--muted); }
.assurances i { color: var(--brand-600); width: 22px; }
.product-desc { padding-bottom: 56px; }
@media (max-width: 960px) { .product { grid-template-columns: 1fr; gap: 24px; } .product__gallery { position: static; } }

.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; padding-block: 32px 64px; }
@media (max-width: 960px) { .cart-layout { grid-template-columns: 1fr; } }
.cart-item { display: grid; grid-template-columns: 88px 1fr auto; gap: 16px; align-items: center; padding: 18px; }
.cart-item + .cart-item { border-top: 1px solid var(--line); }
.cart-item img { width: 88px; height: 88px; border-radius: 14px; object-fit: cover; background: var(--brand-50); }
.cart-item h3 { font-size: 1rem; margin: 0 0 6px; }
.cart-item h3 a { color: var(--ink) !important; }
.cart-item__side { display: grid; gap: 10px; justify-items: end; }
.link-danger { background: none; border: 0; padding: 0; color: #B4233C; font: inherit; font-size: .86rem; cursor: pointer; }
@media (max-width: 560px) { .cart-item { grid-template-columns: 64px 1fr; } .cart-item img { width: 64px; height: 64px; } .cart-item__side { grid-column: 1 / -1; grid-template-columns: auto auto; justify-content: space-between; align-items: center; } }
.summary { padding: 24px; position: sticky; top: calc(var(--header-h) + 20px); }
.summary h2 { font-size: 1.1rem; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: .95rem; }
.summary-row:last-of-type { border-bottom: 0; }
.summary-row--total { font-size: 1.1rem; font-weight: 800; color: var(--ink); border-top: 1px solid var(--line); border-bottom: 0; margin-top: 6px; padding-top: 16px; }
.coupon { display: flex; gap: 8px; margin: 16px 0; }
.coupon .input { min-height: 44px; }
.steps-bar { display: flex; gap: 8px; align-items: center; justify-content: center; margin-bottom: 8px; font-size: .88rem; color: var(--muted); flex-wrap: wrap; }
.steps-bar span { display: inline-flex; align-items: center; gap: 8px; }
.steps-bar b { width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--line); color: var(--muted); font-size: .8rem; }
.steps-bar .is-done b, .steps-bar .is-current b { background: var(--brand-600); color: #fff; }
.steps-bar .is-current { color: var(--ink); font-weight: 700; }
.steps-bar i { opacity: .4; font-size: .7rem; }
.pay-method { display: flex; gap: 14px; align-items: center; padding: 16px; border: 2px solid var(--brand); border-radius: 14px; background: var(--brand-50); }
.pay-method img { width: 48px; }
.success-hero { text-align: center; padding: 48px 24px 24px; }
.success-hero .icon { width: 84px; height: 84px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--brand-50); color: var(--brand-600); font-size: 2.2rem; margin-bottom: 16px; }

/* ------------------------------------------------------------- account */
.auth-wrap { max-width: 960px; margin-inline: auto; padding-block: 40px 64px; }
.auth-card { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; }
.auth-card__side { background: linear-gradient(160deg, #F0F8EC, #fff); padding: 40px; border-inline-end: 1px solid var(--line); }
.auth-card__side img { height: 48px; margin-bottom: 20px; }
.auth-card__main { padding: 40px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg); padding: 6px; border-radius: 14px; margin-bottom: 24px; }
.tabs button { border: 0; background: none; padding: 10px; border-radius: 10px; font: inherit; font-weight: 700; color: var(--muted); cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
@media (max-width: 760px) { .auth-card { grid-template-columns: 1fr; } .auth-card__side { display: none; } .auth-card__main { padding: 28px 22px; } }
.account-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; padding-block: 32px 64px; align-items: start; }
.account-nav { padding: 12px; position: sticky; top: calc(var(--header-h) + 20px); }
.account-nav .who { display: flex; gap: 12px; align-items: center; padding: 10px 10px 16px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.account-nav .who img { width: 44px; height: 44px; border-radius: 50%; }
.account-nav .who small { display: block; color: var(--muted); }
.account-nav a, .account-nav button { display: flex; gap: 12px; align-items: center; width: 100%; padding: 11px 12px; border-radius: 12px; color: var(--text) !important; font: inherit; font-weight: 600; background: none; border: 0; cursor: pointer; text-align: start; }
.account-nav a:hover, .account-nav button:hover { background: var(--bg); }
.account-nav a.is-active { background: var(--brand-50); color: var(--brand-700) !important; }
.account-nav i { width: 20px; text-align: center; opacity: .8; }
@media (max-width: 860px) { .account-layout { grid-template-columns: 1fr; } .account-nav { position: static; } }
.stat { padding: 20px; display: flex; gap: 14px; align-items: center; }
.stat i { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-600); font-size: 1.15rem; }
.stat strong { display: block; font-size: 1.3rem; color: var(--ink); line-height: 1.4; }
.stat span { color: var(--muted); font-size: .88rem; }
.table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.table th { text-align: start; color: var(--muted); font-weight: 600; font-size: .85rem; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.table tr:last-child td { border-bottom: 0; }
@media (max-width: 640px) {
    .table thead { display: none; }
    .table tr { display: grid; grid-template-columns: 1fr 1fr; padding: 12px 16px; border-bottom: 1px solid var(--line); gap: 4px; }
    .table td { border: 0; padding: 4px 0; }
    .table td[data-label]::before { content: attr(data-label); display: block; color: var(--muted); font-size: .78rem; }
}
.status { display: inline-flex; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 800; background: #F1F3F2; color: var(--muted); }
.status--completed { background: var(--brand-50); color: var(--brand-700); }
.status--processing { background: #E8F1FB; color: #1E5A93; }
.status--pending, .status--on-hold { background: #FEF5E1; color: #9A6A00; }
.status--failed, .status--cancelled { background: #FDECEF; color: #B4233C; }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.timeline li { padding-inline-start: 22px; position: relative; }
.timeline li::before { content: ''; position: absolute; inset-inline-start: 0; top: 10px; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); }
.timeline small { color: var(--muted); display: block; }

/* ------------------------------------------------------------- misc */
.not-found { text-align: center; padding-block: 96px; }
.not-found .code { font-size: clamp(4rem, 14vw, 8rem); font-weight: 900; color: var(--brand-100); line-height: 1; }
.floating-contact { position: fixed; bottom: 20px; inset-inline-end: 20px; z-index: 800; display: grid; gap: 10px; }
.floating-contact a { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff !important; font-size: 1.4rem; box-shadow: var(--shadow-lg); transition: transform .2s; }
.floating-contact a:hover { transform: scale(1.06); }
.floating-contact .wa { background: #25D366; }
.floating-contact .tg { background: #229ED9; }
.to-top { position: fixed; bottom: 20px; inset-inline-start: 20px; z-index: 800; width: 46px; height: 46px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); box-shadow: var(--shadow); cursor: pointer; opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.to-top.is-visible { opacity: 1; visibility: visible; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
.hp { position: absolute !important; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* -------------------------------------------------------------- blocks */
.blk-section { padding-block: 56px; position: relative; }
.blk-section--white { background: var(--surface); }
.blk-section--plain { background: var(--bg); }
.blk-section--muted { background: var(--brand-50); }
.blk-section--brand, .blk-section--accent, .blk-section--image { color: #E9F5E5; }
.blk-section--brand { background: linear-gradient(135deg, var(--brand-700), var(--brand-600) 60%, #4DA93A); }
.blk-section--accent { background: linear-gradient(135deg, #6E2F61, var(--accent)); }
.blk-section--image { background: linear-gradient(rgba(12, 28, 16, .72), rgba(12, 28, 16, .72)), var(--blk-bg) center / cover no-repeat; }
.blk-section--brand :is(h1, h2, h3, h4), .blk-section--accent :is(h1, h2, h3, h4), .blk-section--image :is(h1, h2, h3, h4) { color: #fff; }
.blk-section--brand .prose, .blk-section--accent .prose, .blk-section--image .prose { color: #E9F5E5; }
.blk-section--brand .prose a, .blk-section--image .prose a { color: #fff; }
.blk-section--brand .card, .blk-section--accent .card, .blk-section--image .card { color: var(--text); }
.blk-section--brand .btn--primary, .blk-section--image .btn--primary, .blk-section--accent .btn--primary { background: #fff; color: var(--brand-700) !important; }
.blk-section:first-child { padding-top: 48px; }
.blk-grid { display: grid; grid-template-columns: var(--blk-cols, 1fr); gap: 32px; align-items: center; }
.blk-grid--nested { margin-block: 12px; gap: 24px; align-items: start; }
@media (max-width: 860px) { .blk-grid { grid-template-columns: 1fr; } }
.blk-col { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.blk-col > * { margin: 0; }
.blk-heading { line-height: 1.55; }
.blk-heading--1 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
.blk-heading--2 { font-size: clamp(1.35rem, 2.6vw, 1.9rem); }
.blk-heading--3 { font-size: 1.2rem; }
.blk-heading--4 { font-size: 1.05rem; }
.blk-text.prose { font-size: 1rem; }
.blk-text.prose > :last-child { margin-bottom: 0; }
.blk-image img { border-radius: 18px; width: 100%; height: auto; display: block; }
.blk-image figcaption { text-align: center; color: var(--muted); font-size: .88rem; margin-top: 8px; }
.blk-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.blk-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.blk-list li { display: flex; gap: 10px; align-items: flex-start; }
.blk-list i { color: var(--brand-600); margin-top: 7px; width: 18px; text-align: center; flex-shrink: 0; }
.blk-section--brand .blk-list i, .blk-section--image .blk-list i { color: #fff; }
.blk-cards { display: grid; gap: 20px; }
.blk-cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.blk-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.blk-cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1024px) { .blk-cards--4, .blk-cards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .blk-cards--2, .blk-cards--3, .blk-cards--4 { grid-template-columns: 1fr; } }
.blk-col .blk-cards { grid-template-columns: 1fr; }
.feature__img { width: 100%; border-radius: 12px; margin-bottom: 14px; aspect-ratio: 16 / 10; object-fit: cover; }
.stat--center { justify-content: center; text-align: center; }
.blk-cta { border-radius: 20px; padding: 28px; color: #fff; background: linear-gradient(rgba(20, 60, 25, .78), rgba(20, 60, 25, .78)), var(--blk-bg, linear-gradient(135deg, var(--brand-700), var(--brand-600))) center / cover; }
.blk-cta h3 { color: #fff; }
.blk-faq { max-width: none; }
.blk-audio { display: grid; gap: 6px; }
.blk-audio audio, .blk-video { width: 100%; border-radius: 12px; }
.blk-gallery { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; }
.blk-gallery img { width: min(320px, 80%); border-radius: 14px; scroll-snap-align: start; flex-shrink: 0; }
.blk-testimonial blockquote { margin: 0 0 14px; font-size: .97rem; }
.blk-testimonial figcaption { display: flex; gap: 10px; align-items: center; }
.blk-testimonial img { border-radius: 50%; }
.blk-testimonial small { display: block; color: var(--muted); }
.blk-quote { margin: 0; padding: 18px 22px; border-inline-start: 4px solid var(--brand); background: var(--brand-50); border-radius: 14px; color: var(--ink); }
.blk-divider { border: 0; border-top: 1px solid var(--line); width: 100%; }
.blk-anchor { display: block; position: relative; top: calc(-1 * var(--header-h)); }
.blk-html iframe { max-width: 100%; border-radius: 14px; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.page-form { max-width: 640px; }
.blk-section--brand .page-form, .blk-section--image .page-form { color: var(--text); }
/* Modal popups (converted from the old builder) */
.arz-popup { position: fixed; inset: 0; z-index: 1002; display: grid; place-items: center; padding: 16px; }
.arz-popup[hidden] { display: none; }
.arz-popup__overlay { position: absolute; inset: 0; background: rgba(10, 20, 12, .6); backdrop-filter: blur(4px); }
.arz-popup__dialog { position: relative; background: var(--surface); border-radius: 20px; width: min(640px, 100%); max-height: 90vh; overflow: auto; padding: 32px 28px 28px; box-shadow: var(--shadow-lg); }
.arz-popup__close { position: absolute; top: 10px; inset-inline-end: 10px; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-size: 1.4rem; cursor: pointer; color: var(--muted); }
html.arz-popup-open { overflow: hidden; }
/* Gravity forms (YouTube forms) in the new style */
.arz-gform .gform_fields { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.arz-gform .gfield_label { display: block; margin-bottom: 6px; font-weight: 700; color: var(--ink); font-size: .92rem; }
.arz-gform .gfield_required { color: #C2410C; margin-inline-start: 2px; }
.arz-gform input:not([type=checkbox]):not([type=radio]), .arz-gform select, .arz-gform textarea { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; font: inherit; background: #FBFDFB; }
.arz-gform .gform_footer { margin-top: 16px; }
.arz-gform .gform_button { min-height: 50px; padding: 0 26px; border: 0; border-radius: 12px; background: var(--brand-600); color: #fff; font: inherit; font-weight: 700; cursor: pointer; width: 100%; }
.arz-gform .gform_confirmation_message { margin-top: 12px; }

/* Product photos are often logos/banners: show them whole. */
.product-card__media, .product__gallery .main { background: #fff; }
.product-card__media img, .product__gallery .main img { object-fit: contain; padding: 12px; }
.cart-item img { object-fit: contain; background: #fff; border: 1px solid var(--line); }

/* Footer banner buttons: the footer link colour must not leak into them. */
.site-footer .footer-cta .btn--white, .site-footer .footer-cta .btn--white:hover { background: #fff; color: var(--brand-700) !important; }
.site-footer .footer-cta .btn--white:hover { background: #F1FBEE; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .35); }
.site-footer .footer-cta .btn--outline-white { color: #fff !important; border: 2px solid rgba(255, 255, 255, .85); }
.site-footer .footer-cta .btn--outline-white:hover { background: rgba(255, 255, 255, .14); color: #fff !important; border-color: #fff; }
.footer-cta { background: linear-gradient(120deg, #1F6E1B, var(--brand-600) 55%, #49A238); }

/* Thumbnails: always the full image (covers are often square designs with
   text), centred on a blurred copy of itself so frames stay uniform. */
.post-card__media, .article-cover { position: relative; overflow: hidden; background: var(--brand-50); }
.thumb-bg { position: absolute; inset: -20px; background-position: center; background-size: cover; filter: blur(18px) saturate(1.15); opacity: .6; transform: scale(1.1); }
.post-card__media img { position: relative; width: 100%; height: 100%; object-fit: contain; }
.post-card:hover .post-card__media img { transform: scale(1.03); }
.thumb-empty { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2rem; color: var(--brand); }
.article-cover { border-radius: 20px; aspect-ratio: 16 / 9; box-shadow: var(--shadow); }
.article-cover img { position: relative; width: 100%; height: 100%; object-fit: contain; border-radius: 0; box-shadow: none; aspect-ratio: auto; }
.split__media img { max-height: 640px; object-fit: contain; background: var(--brand-50); }

/* Product cards: one frame shape for every product (photos, tall banners and
   wide logos alike), whole image on a blurred copy of itself. */
.product-card__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--brand-50); }
.product-card__media img { position: relative; width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.product-card__media .tag-row { z-index: 1; }
.product-card__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: calc(1.7em * 2); }
.product-card__body { gap: 8px; }
