/* ============================================================
   store_hero — Section 1 of the instrument store landing.
   Visual reference: صفحة المتجر الرئيسية.png — rounded dark panel,
   two-line title + subtitle with inline brand accent + pre-order
   CTA on the start side, podium clarinets photo on the end side.
   Light / Dark / wallpaper / RTL aware. Palette via CSS vars only.
   ============================================================ */

.store-hero-section {
    position: relative;
    padding: 32px 0;
}

/* ---- Panel — translucent dark card on the wallpaper, lavender
        card on plain pages (same duality as the other landing
        components). ---- */
.store-hero__panel {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: clamp(20px, 3.5vw, 56px);
    padding: clamp(24px, 3.5vw, 56px);
    border-radius: 24px;
    border: 1.5px solid var(--primary);
    background: #fbdefcf8;
    box-shadow: 0 16px 36px rgba(62, 0, 95, 0.10);
    overflow: hidden;
}
body.dark-mode .store-hero__panel,
body.home-wallpaper-active:not(.dark-mode) .store-hero__panel {
    background: rgba(31, 15, 51, 0.45);
    border-color: rgba(180, 143, 255, 0.65);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.30);
}

/* ---- Content column ---- */
.store-hero__content {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: clamp(14px, 1.6vw, 22px);
}

/* ---- Title — two stacked lines, second line is the accent ---- */
.store-hero__title {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-weight: 800;
    font-size: clamp(1.8rem, 3.4vw, 3rem);
    line-height: 1.2;
}
.store-hero__title-line { display: block; color: var(--dark); }
.store-hero__title-line--accent { color: var(--primary); }
body.dark-mode .store-hero__title-line { color: #ffffff; }
body.dark-mode .store-hero__title-line--accent { color: var(--accent); }
body.home-wallpaper-active:not(.dark-mode) .store-hero__title-line {
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(20, 0, 40, 0.35);
}
body.home-wallpaper-active:not(.dark-mode) .store-hero__title-line--accent {
    color: #f5d8ff;
    text-shadow: 0 2px 8px rgba(20, 0, 40, 0.35);
}

/* ---- Subtitle + inline brand ---- */
.store-hero__subtitle {
    margin: 0;
    max-width: 560px;
    font-size: clamp(0.95rem, 1.15vw, 1.15rem);
    line-height: 1.8;
    color: var(--gray-500);
}
body.dark-mode .store-hero__subtitle { color: var(--gray-400); }
body.home-wallpaper-active:not(.dark-mode) .store-hero__subtitle {
    color: rgba(255, 255, 255, 0.88);
    text-shadow: 0 1px 2px rgba(20, 0, 40, 0.22);
}
.store-hero__brand {
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--primary);
}
body.dark-mode .store-hero__brand { color: var(--accent); }
body.home-wallpaper-active:not(.dark-mode) .store-hero__brand { color: #f5d8ff; }

/* ---- CTA — pill button with a leading arrow chip. The arrow
        points toward the reading direction end; the SVG draws a
        LEFT arrow which is correct for RTL, and flips for LTR. ---- */
.store-hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: clamp(12px, 1.4vw, 16px) clamp(26px, 3vw, 44px);
    border-radius: 999px;
    border: 1.5px solid rgba(180, 143, 255, 0.65);
    background: var(--primary);
    color: var(--primary-btn-color);
    font-weight: 700;
    font-size: clamp(0.95rem, 1.1vw, 1.1rem);
    text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease;
    box-shadow: 0 10px 24px rgba(62, 0, 95, 0.25);
}
.store-hero__cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 32px rgba(62, 0, 95, 0.35);
    color: var(--primary-btn-color);
    text-decoration: none;
}
.store-hero__cta-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    flex-shrink: 0;
}
/* The inline SVG is a left-pointing arrow — natural for RTL flow.
   In LTR documents flip it so it points left-to-right. */
html[dir="ltr"] .store-hero__cta-arrow svg { transform: scaleX(-1); }

/* ---- Image column ---- */
.store-hero__image {
    flex: 0 0 38%;
    max-width: 38%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.store-hero__image img {
    display: block;
    width: 100%;
    height: auto;
    max-height: clamp(320px, 42vw, 560px);
    object-fit: contain;
    filter: drop-shadow(0 24px 48px rgba(20, 0, 40, 0.45));
}

/* ============================================================
   Responsive — 1199 / 991 / 767 / 575
   ============================================================ */
@media (max-width: 1199px) {
    .store-hero__image { flex-basis: 42%; max-width: 42%; }
}

@media (max-width: 991px) {
    .store-hero__panel { gap: 20px; }
    .store-hero__image { flex-basis: 44%; max-width: 44%; }
}

@media (max-width: 767px) {
    .store-hero__panel {
        flex-direction: column-reverse;   /* photo above the text on mobile */
        text-align: center;
    }
    .store-hero__image {
        flex-basis: auto;
        max-width: 74%;
    }
    .store-hero__content { align-items: center; }
}

@media (max-width: 575px) {
    .store-hero-section { padding: 20px 0; }
    .store-hero__panel { padding: 20px 16px; border-radius: 20px; }
    .store-hero__title { font-size: clamp(1.5rem, 7vw, 2rem); }
    .store-hero__image { max-width: 88%; }
}
