/* ═══════════════════════════════════════════════════════════
   فروشگاه آبلیموی شیراز
   Light, photo-led, brand-first
═══════════════════════════════════════════════════════════ */


:root {
    --ba-ink: #14201A;
    --ba-muted: #5C6B62;
    --ba-line: #DCE5DF;
    --ba-paper: #FFFFFF;
    --ba-mist: #FFFFFF;
    --ba-lemon: #F5C542;
    --ba-lemon-soft: #FFF8E6;
    --ba-leaf: #2D8A5E;
    --ba-green: #1F6B4A;
    --ba-green-deep: #0F3D2A;
    --ba-green-soft: #E6F2EC;
    --ba-gold: #B8923A;
    --ba-shadow: 0 20px 50px rgba(20, 32, 26, .08);
    --ba-font: 'Vazirmatn', 'Sora', system-ui, sans-serif;
    --ba-display: 'Vazirmatn', 'IRANSans', Tahoma, sans-serif;
    --ba-ui: 'Sora', 'Vazirmatn', system-ui, sans-serif;
}

body.sp-body {
    margin: 0;
    background: #fff !important;
    font-family: var(--ba-font);
    color: var(--ba-ink);
}

.sp-wrap.ba-applied {
    background: #fff !important;
    min-height: 100vh;
}

/* Utility */
.ba-util {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 18px;
    padding: 8px 36px;
    background: #fff;
    border-bottom: 1px solid var(--ba-line);
    font-size: .76rem;
}
.ba-util a { color: var(--ba-muted); text-decoration: none; transition: color .2s; }
.ba-util a:hover { color: var(--ba-green); }
.ba-util__eco { color: var(--ba-green) !important; font-weight: 700; }

/* Header */
.ba-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 12px 36px;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    position: sticky;
    top: 0;
    z-index: 90;
    transition: box-shadow .25s, border-color .25s;
}
.ba-header--scrolled {
    box-shadow: 0 6px 28px rgba(20, 32, 26, .07);
    border-bottom-color: var(--ba-line);
}
.ba-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
}
.ba-brand__mark {
    width: 42px; height: 42px;
    border-radius: 10px;
    background: linear-gradient(145deg, var(--ba-green) 0%, var(--ba-green-deep) 100%);
    color: #fff;
    display: grid; place-items: center;
    font-family: var(--ba-ui);
    font-weight: 800;
    font-size: .85rem;
    box-shadow: 0 8px 20px rgba(31, 107, 74, .28);
}
.ba-brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.ba-brand__name {
    font-family: var(--ba-display);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -.02em;
}
.ba-brand__name em { font-style: normal; color: var(--ba-green); }
.ba-brand__sub {
    font-family: var(--ba-ui);
    font-size: .65rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ba-muted);
    font-weight: 600;
}
.ba-brand__sub:empty { display: none; }
.ba-nav {
    display: flex; align-items: center; gap: 2px;
    margin-right: auto;
}
.ba-nav a {
    color: var(--ba-ink);
    text-decoration: none;
    font-size: .88rem;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background .2s, color .2s;
}
.ba-nav a:hover { background: var(--ba-green-soft); color: var(--ba-green-deep); }
.ba-header__actions {
    display: flex; align-items: center; gap: 6px;
}
.ba-header__actions .sp-search-wrap { min-width: 200px; }
.ba-header__actions .sp-search {
    border: 1px solid var(--ba-line) !important;
    border-radius: 6px !important;
    background: var(--ba-mist) !important;
}
.ba-icon-btn {
    display: inline-flex; flex-direction: column; align-items: center;
    gap: 2px; padding: 6px 10px;
    background: transparent; border: none; cursor: pointer;
    color: var(--ba-ink); text-decoration: none; font-family: inherit;
    position: relative; border-radius: 8px;
    transition: background .2s;
}
.ba-icon-btn:hover { background: var(--ba-green-soft); }
.ba-icon-btn span.label { font-size: .68rem; color: var(--ba-muted); font-weight: 600; }
.ba-icon-btn .sp-badge {
    position: absolute; top: 2px; left: 4px;
    background: var(--ba-green) !important;
}
.ba-header__cta {
    display: inline-flex; align-items: center;
    padding: 10px 18px;
    background: var(--ba-green);
    color: #fff !important;
    border: none; border-radius: 4px;
    font-weight: 700; font-size: .85rem;
    text-decoration: none; cursor: pointer;
    font-family: inherit;
    box-shadow: 0 8px 20px rgba(31, 107, 74, .25);
    transition: transform .2s, background .2s;
}
.ba-header__cta:hover { background: var(--ba-green-deep); transform: translateY(-1px); }

/* Hero — compact overlay band, text centered on image */
.ba-hero {
    position: relative;
    min-height: min(36vh, 280px);
    display: grid;
    align-content: center;
    justify-items: center;
    overflow: hidden;
    background: #2a3218;
}
.ba-hero__media {
    position: absolute;
    inset: 0;
    background-color: #2a3218;
    background-image: url('/acc-engine/assets/img/li/p1.png');
    background-position: center 45%;
    background-size: cover;
}
.ba-hero__media::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    /* لایه خیلی سبک تا عکس شفاف و واضح بماند؛ فقط کمی سایه پایین برای خوانایی متن */
    background: linear-gradient(180deg, rgba(0, 0, 0, .08) 0%, rgba(0, 0, 0, .05) 50%, rgba(0, 0, 0, .28) 100%);
}
.ba-hero__media--video video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ba-hero__content {
    position: relative;
    z-index: 2;
    padding: 24px 36px 28px;
    max-width: 720px;
    width: 100%;
    text-align: center;
    margin-inline: auto;
    animation: ba-rise .85s cubic-bezier(.22,1,.36,1) both;
}
@keyframes ba-rise {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: none; }
}
.ba-hero__brand {
    font-family: var(--ba-display);
    font-size: clamp(1.35rem, 3vw, 2rem);
    font-weight: 700;
    margin: 0 0 8px;
    letter-spacing: -.03em;
    line-height: 1.05;
    color: #fff;
}
.ba-hero__brand span { color: #e8d56a; }
.ba-hero h1.ba-hero__place,
.ba-hero__place {
    margin: 0 auto 20px;
    font-family: var(--ba-display);
    font-size: clamp(3rem, 9vw, 5.5rem);
    font-weight: 700;
    letter-spacing: -.03em;
    line-height: 1.1;
    color: #fff;
    text-shadow:
        0 1px 2px rgba(0, 0, 0, .55),
        0 4px 28px rgba(0, 0, 0, .45);
}
.ba-hero__lead { display: none; }
.ba-hero h1:not(.ba-hero__place) { display: none; }
.ba-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}
.ba-btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 10px 20px; border-radius: 4px;
    font-family: inherit; font-weight: 700; font-size: .88rem;
    cursor: pointer; border: none; text-decoration: none;
    transition: transform .2s, background .2s, border-color .2s;
}
.ba-btn--primary {
    background: var(--ba-green); color: #fff;
    box-shadow: 0 10px 26px rgba(31, 107, 74, .28);
}
.ba-btn--primary:hover { background: var(--ba-green-deep); transform: translateY(-2px); }
.ba-btn--ghost {
    background: transparent; color: var(--ba-ink);
    border: 1.5px solid var(--ba-line);
}
.ba-btn--ghost:hover { border-color: var(--ba-green); color: var(--ba-green-deep); background: var(--ba-green-soft); }
.ba-hero .ba-btn--ghost {
    background: rgba(255, 255, 255, .1);
    color: #fff;
    border-color: rgba(255, 255, 255, .4);
    backdrop-filter: blur(8px);
}
.ba-hero .ba-btn--ghost:hover {
    border-color: #fff;
    color: #fff;
    background: rgba(255, 255, 255, .2);
}

/* Sections */
.ba-section { padding: 64px 36px; }
.ba-section--mist { background: #fff; }
.ba-section__head { max-width: 640px; margin: 0 0 36px; }
.ba-kicker {
    display: inline-block;
    font-family: var(--ba-ui);
    font-size: .7rem; font-weight: 700;
    letter-spacing: .14em; text-transform: uppercase;
    color: var(--ba-green); margin-bottom: 10px;
}
.ba-section__head h2 {
    margin: 0 0 10px;
    font-family: var(--ba-display);
    font-size: clamp(1.45rem, 2.6vw, 2rem);
    font-weight: 700; letter-spacing: -.02em;
}
.ba-section__head p { margin: 0; color: var(--ba-muted); line-height: 1.7; font-size: 1rem; }

.ba-pillars {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border: 1px solid var(--ba-line);
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
}
.ba-pillar {
    padding: 28px 24px;
    border-left: 1px solid var(--ba-line);
    transition: background .25s;
}
.ba-pillar:first-child { border-left: none; }
.ba-pillar:hover { background: var(--ba-green-soft); }
.ba-pillar strong {
    display: block; margin-bottom: 8px;
    font-size: 1.05rem; font-weight: 700;
}
.ba-pillar span { font-size: .9rem; color: var(--ba-muted); line-height: 1.55; }

/* Catalog — one product, one centered column (no empty dual grid) */
.ba-applied .sp-section--catalog {
    padding: 48px 36px 72px !important;
    background: #fff !important;
}
.ba-applied .sp-catalog,
.ba-applied .sp-catalog.sp-catalog--single {
    display: grid !important;
    grid-template-columns: minmax(260px, 420px) !important;
    justify-content: center !important;
    gap: 0 !important;
    max-width: 480px !important;
    margin: 0 auto !important;
    background: transparent !important;
}
.ba-applied .sp-tile-wrap {
    width: 100%;
    max-width: 420px;
    margin-inline: auto;
}
/* کارت تک‌محصول: فقط عکس کامل + مشاهده سریع */
.ba-applied .sp-catalog--single .sp-tile-wrap > .sp-tile {
    aspect-ratio: auto !important;
    height: auto !important;
    display: block !important;
}
.ba-applied .sp-catalog--single .sp-tile__media {
    position: relative !important;
    inset: auto !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
    flex: none !important;
    background: #f5f7f4 !important;
}
.ba-applied .sp-catalog--single .sp-tile__img {
    position: static !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    object-fit: contain !important;
    object-position: center !important;
}
.ba-applied .sp-catalog--single .sp-tile__fallback,
.ba-applied .sp-catalog--single .sp-tile__shade,
.ba-applied .sp-catalog--single .sp-tile__body,
.ba-applied .sp-catalog--single .sp-tile__wish,
.ba-applied .sp-catalog--single .sp-tile__stock,
.ba-applied .sp-catalog--single .sp-tile__disc {
    display: none !important;
}
.ba-applied .sp-catalog--single .sp-tile-wrap--photo .sp-tile__qv,
.ba-applied .sp-catalog--single .sp-tile__qv--solo {
    display: inline-flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: absolute !important;
    left: 50% !important;
    right: auto !important;
    top: auto !important;
    bottom: 18px !important;
    transform: translateX(-50%) !important;
    z-index: 12 !important;
    background: #1f6b4a !important;
    color: #fff !important;
    border: none !important;
    border-radius: 999px !important;
    padding: 10px 18px !important;
    gap: 8px !important;
    align-items: center !important;
    font-size: .86rem !important;
    font-weight: 700 !important;
    box-shadow: 0 8px 24px rgba(0,0,0,.22) !important;
}
.ba-applied .sp-catalog--single .sp-tile__qv--solo svg {
    width: 16px;
    height: 16px;
}
.ba-applied .sp-tile {
    border: 1px solid var(--ba-line) !important;
    border-radius: 4px !important;
    box-shadow: none !important;
    overflow: hidden;
    transition: transform .25s, box-shadow .25s, border-color .25s !important;
}
.ba-applied .sp-tile:hover {
    transform: translateY(-4px);
    border-color: var(--ba-green) !important;
    box-shadow: var(--ba-shadow) !important;
}
.ba-catalog-head {
    display: flex; align-items: end; justify-content: space-between;
    gap: 16px; margin-bottom: 28px; flex-wrap: wrap;
}
.ba-catalog-head--center {
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
}
.ba-catalog-head h2 {
    margin: 0;
    font-family: var(--ba-display);
    font-size: 1.75rem;
}

/* خواص آبلیمو — روی زمینه سفید با هویت لیمویی */
.ba-props {
    max-width: 960px;
    margin: 0 auto;
    padding: 8px 0 12px;
}
.ba-props .ba-section__head {
    margin-bottom: 36px !important;
}
.ba-props .ba-kicker {
    color: var(--ba-leaf);
    letter-spacing: .2em;
}
.ba-props .ba-section__head h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 14px !important;
}
.ba-props .ba-section__head h2::after {
    content: '';
    display: block;
    width: 56px;
    height: 3px;
    margin: 12px auto 0;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--ba-lemon), var(--ba-leaf));
}
.ba-props .ba-section__head p {
    max-width: 520px;
    margin-inline: auto;
    color: var(--ba-muted);
}
.ba-props__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.ba-prop {
    position: relative;
    text-align: center;
    padding: 28px 16px 24px;
    background: #fff;
    border: 1px solid rgba(31, 107, 74, .12);
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(20, 32, 26, .06);
    overflow: hidden;
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.ba-prop::before {
    content: attr(data-n);
    position: absolute;
    top: 10px;
    left: 12px;
    font-family: var(--ba-display);
    font-size: .78rem;
    font-weight: 700;
    color: var(--ba-lemon);
    opacity: .9;
    letter-spacing: .04em;
}
.ba-prop::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--ba-lemon), var(--ba-leaf), transparent);
    transform: scaleX(0);
    transition: transform .3s ease;
}
.ba-prop:hover {
    transform: translateY(-5px);
    border-color: rgba(45, 138, 94, .35);
    box-shadow: 0 18px 40px rgba(31, 107, 74, .12);
}
.ba-prop:hover::after { transform: scaleX(1); }
.ba-prop__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff 0%, var(--ba-lemon-soft) 55%, #E8F6EE 100%);
    border: 1px solid rgba(245, 197, 66, .45);
    font-size: 1.25rem;
    line-height: 1;
}
.ba-prop strong {
    display: block;
    font-size: .95rem;
    color: var(--ba-ink);
    line-height: 1.45;
    font-weight: 700;
}
@media (max-width: 900px) {
    .ba-props__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
    .ba-props__grid { grid-template-columns: 1fr; }
}

.ba-story,
.ba-story.ba-story--single { display: none; }
.ba-story h2 {
    font-family: var(--ba-display);
    font-size: 1.7rem; margin: 0 0 12px;
}
.ba-story p { color: var(--ba-muted); line-height: 1.75; margin: 0 0 20px; }

/* Help */
.ba-help {
    background: var(--ba-ink);
    color: #fff;
    padding: 44px 36px;
}
.ba-help__inner {
    max-width: 1140px; margin: 0 auto;
    display: flex; flex-wrap: wrap; align-items: center;
    justify-content: space-between; gap: 24px;
}
.ba-help h2 {
    margin: 0 0 6px;
    font-family: var(--ba-display);
    font-size: 1.5rem;
}
.ba-help p { margin: 0; color: rgba(255,255,255,.65); }
.ba-help__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ba-help__actions .ba-btn {
    background: transparent; border: 1px solid rgba(255,255,255,.3); color: #fff;
}
.ba-help__actions .ba-btn--solid {
    background: var(--ba-green); border-color: var(--ba-green);
}

/* Footer override */
.ba-applied .sp-footer {
    background: #0C1611 !important;
    color: rgba(255,255,255,.5) !important;
    border: none !important;
}
.ba-applied .sp-footer a { color: rgba(255,255,255,.65) !important; }
.ba-applied .sp-footer__brand { color: #fff !important; font-family: var(--ba-display) !important; }

/* Reveal */
.ba-reveal {
    opacity: 0; transform: translateY(20px);
    transition: opacity .7s ease, transform .7s ease;
}
.ba-reveal.is-in { opacity: 1; transform: none; }

/* Hide old announcement on applied home if present */
.ba-applied .sp-announce { display: none; }

/* Inner pages: softer header */
.ba-applied:not(.ba-applied--home) .ba-hero { display: none; }
.ba-applied .sp-header { display: none !important; }

@media (max-width: 1024px) {
    .ba-pillars { grid-template-columns: 1fr 1fr; }
    .ba-pillar:nth-child(3) { border-right: none; }
}
@media (max-width: 720px) {
    .ba-util, .ba-nav { display: none; }
    .ba-header, .ba-section, .ba-help, .ba-hero__content,
    .ba-applied .sp-section--catalog { padding-left: 18px !important; padding-right: 18px !important; }
    .ba-hero { min-height: min(32vh, 260px); }
    .ba-hero__content { padding-top: 20px; padding-bottom: 22px; }
    .ba-hero__actions { flex-direction: column; align-items: stretch; }
    .ba-hero__actions .ba-btn { width: 100%; }
    .ba-pillars { grid-template-columns: 1fr; }
    .ba-pillar { border-left: none !important; border-top: 1px solid var(--ba-line); }
    .ba-pillar:first-child { border-top: none; }
    .ba-header__cta { display: none; }
}
