/* ============================================================
   Eloré storefront — header, announcement, hero stage
   ============================================================ */

html, body {
    overflow-x: hidden;
    max-width: 100%;
}

.store-header {
    position: sticky;
    top: 0;
    z-index: 1100;
    background: #ffffff;
    box-shadow: 0 1px 0 rgba(23, 23, 23, 0.05), 0 10px 28px rgba(23, 23, 23, 0.04);
}

.store-header__inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px 24px;
    max-width: 1280px;
    margin-inline: auto;
    padding-block: 12px;
    padding-inline: 24px;
}

.store-header__socials {
    display: flex;
    align-items: center;
    gap: 4px;
}

.store-header__socials a {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #6B7280;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.92rem;
    transition: color 0.2s ease, background 0.2s ease;
}

.store-header__socials a:hover,
.store-header__socials a:focus-visible {
    background: #FDE8EB;
    color: #D62839;
}

.store-search {
    position: relative;
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
}

.store-search__icon {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    color: #9CA3AF;
    pointer-events: none;
    font-size: 0.9rem;
}

.store-search__input {
    width: 100%;
    height: 46px;
    border: 1px solid #EDE4E6;
    background: #F8F5F6;
    border-radius: 999px;
    padding: 0 44px 0 18px;
    font-family: inherit;
    font-size: 0.95rem;
    color: #171717;
    outline: none;
    direction: rtl;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.store-search__input::placeholder {
    color: #9CA3AF;
}

.store-search__input:focus {
    background: #ffffff;
    border-color: #D62839;
    box-shadow: 0 0 0 4px rgba(214, 40, 57, 0.12);
}

.store-search__input:focus + .store-search__icon,
.store-search:focus-within .store-search__icon {
    color: #D62839;
}

.store-header__actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.store-header__tools {
    display: flex;
    align-items: center;
    gap: 2px;
}

.store-icon {
    position: relative;
    width: 42px;
    height: 42px;
    min-width: 42px;
    border: none;
    background: transparent;
    color: #171717;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    font-size: 1.05rem;
    transition: background 0.2s ease, color 0.2s ease;
}

.store-icon:hover,
.store-icon:focus-visible,
.store-icon.is-open {
    background: #FDE8EB;
    color: #A61E2A;
}

.store-icon--menu {
    display: none;
}

.store-badge {
    position: absolute;
    top: 4px;
    left: 4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #D62839;
    color: #ffffff;
    font-size: 0.62rem;
    font-weight: 800;
    line-height: 16px;
    text-align: center;
}

.store-badge[hidden] {
    display: none !important;
}

.store-fav {
    position: relative;
}

.store-fav-panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: min(320px, calc(100vw - 32px));
    background: #ffffff;
    border: 1px solid #F0E4E6;
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(23, 23, 23, 0.12);
    padding: 10px;
    display: none;
    z-index: 20;
}

.store-fav-panel.is-open {
    display: block;
}

.store-fav-panel__title {
    font-size: 0.82rem;
    font-weight: 800;
    color: #171717;
    padding: 6px 8px 10px;
}

.store-fav-panel__empty {
    color: #6B7280;
    font-size: 0.85rem;
    padding: 18px 8px;
    text-align: center;
}

.store-fav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 10px;
    text-decoration: none;
    color: #171717;
}

.store-fav-item:hover {
    background: #FFF7F8;
}

.store-fav-item img,
.store-fav-item__ph {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: contain;
    background: #FFF7F8;
    flex-shrink: 0;
}

.store-fav-item__ph {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9CA3AF;
}

.store-fav-item span {
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.35;
}

.store-announce {
    background: #171717;
    color: #ffffff;
    overflow: hidden;
}

.store-announce__track {
    max-width: 1400px;
    margin: 0 auto;
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-align: center;
}

.store-announce__msg {
    display: none;
}

.store-announce__msg.is-on {
    display: block;
    animation: storeAnnounceIn 0.4s ease;
}

@keyframes storeAnnounceIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-stage {
    max-width: 1400px;
    margin: 0 auto;
    padding: 12px 20px 4px;
}

.hero-stage #heroCarousel {
    border-radius: 22px;
    overflow: hidden;
    background: #1a1012;
}

.hero-stage .hero-slide {
    height: 48vh;
    min-height: 340px;
    max-height: 480px;
}

.hero-stage .slide-bg {
    object-position: center center;
}

.hero-stage .slide-overlay {
    background: linear-gradient(
        to left,
        rgba(10, 6, 8, 0.02) 0%,
        rgba(10, 6, 8, 0.10) 40%,
        rgba(18, 8, 12, 0.46) 74%,
        rgba(18, 8, 12, 0.66) 100%
    );
}

.hero-stage .slide-inner {
    padding: 40px 44px 48px;
}

.hero-stage .slide-headline {
    font-size: clamp(1.6rem, 3.4vw, 2.8rem);
}

.store-nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(23, 23, 23, 0.38);
    z-index: 1190;
}

body.nav-open {
    overflow: hidden;
}

body.nav-open .store-nav-backdrop {
    display: block;
}

@media (max-width: 991px) {
    body.nav-open .shop-sidebar,
    body.nav-open .page-nav {
        display: flex !important;
        flex-direction: column;
        position: fixed;
        top: 0;
        inset-inline-start: 0;
        right: auto;
        left: auto;
        width: min(320px, 86vw);
        height: 100%;
        z-index: 1200;
        border-radius: 0;
        overflow: auto;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    .store-icon--menu {
        display: inline-flex;
    }

    .store-header__socials {
        display: none;
    }

    .store-header__inner {
        display: flex;
        flex-wrap: wrap;
        gap: 10px 12px;
        padding: 10px 14px 12px;
    }

    .store-header__actions {
        width: 100%;
        justify-content: space-between;
        order: 1;
    }

    .store-search {
        order: 2;
        max-width: none;
        width: 100%;
        margin: 0;
    }

    .store-search__input {
        height: 44px;
    }

    .hero-stage {
        padding: 8px 12px 0;
    }

    .hero-stage #heroCarousel {
        border-radius: 16px;
    }

    .hero-stage .hero-slide {
        height: 38vh;
        min-height: 240px;
        max-height: 340px;
        align-items: flex-end;
    }

    .hero-stage .slide-bg {
        object-position: center 32%;
    }

    .hero-stage .slide-overlay {
        background: linear-gradient(
            to top,
            rgba(18, 8, 12, 0.74) 0%,
            rgba(18, 8, 12, 0.28) 46%,
            rgba(18, 8, 12, 0.04) 76%,
            rgba(0, 0, 0, 0) 100%
        );
    }

    .hero-stage .slide-inner {
        padding: 20px 16px 24px;
    }
}

@media (max-width: 480px) {
    .hero-stage .hero-slide {
        height: 34vh;
        min-height: 220px;
    }

    .hero-stage .slide-headline {
        font-size: 1.32rem;
    }
}

.store-merchant {
    position: relative;
}

.store-merchant-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 14px;
    border: none;
    border-radius: 999px;
    background: #D62839;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(214, 40, 57, 0.22);
    transition: background 0.2s ease, transform 0.2s ease;
}

.store-merchant-btn:hover,
.store-merchant-btn:focus-visible {
    background: #A61E2A;
    color: #ffffff;
}

.store-merchant-btn.is-open {
    background: #A61E2A;
}

.store-merchant-btn--login {
    background: #ffffff;
    color: #D62839;
    border: 1px solid #F0C9CE;
    box-shadow: none;
}

.store-merchant-btn--login:hover,
.store-merchant-btn--login:focus-visible {
    background: #FDE8EB;
    color: #A61E2A;
    border-color: #E8A8B0;
}

.store-merchant-panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 200px;
    padding: 12px 14px;
    background: #ffffff;
    border: 1px solid #F0E4E6;
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(23, 23, 23, 0.12);
    z-index: 20;
}

.store-merchant-panel__label {
    font-size: 0.72rem;
    font-weight: 700;
    color: #D62839;
    margin-bottom: 2px;
}

.store-merchant-panel__name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #171717;
    margin-bottom: 10px;
}

.store-merchant-panel__out {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #A61E2A;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
}

.store-merchant-panel__out:hover {
    color: #8B1923;
}

.sidebar-merchant {
    margin-top: auto;
    padding: 14px 16px 16px;
    border-top: 1px solid #FDE8EB;
    background: #FFF9FA;
}

.sidebar-merchant__label {
    font-size: 0.72rem;
    font-weight: 700;
    color: #D62839;
}

.sidebar-merchant__name {
    font-size: 0.9rem;
    font-weight: 700;
    margin: 2px 0 10px;
}

.sidebar-merchant__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #A61E2A;
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none;
}

.sidebar-merchant__link--login {
    width: 100%;
    justify-content: center;
    min-height: 40px;
    border-radius: 10px;
    background: #D62839;
    color: #ffffff;
}

.sidebar-merchant__link--login:hover {
    background: #A61E2A;
    color: #ffffff;
}

@media (max-width: 991px) {
    .store-merchant-btn__text {
        display: none;
    }

    .store-merchant-btn {
        width: 42px;
        min-width: 42px;
        padding: 0;
        justify-content: center;
        border-radius: 10px;
    }

    .store-merchant-panel {
        left: auto;
        right: 0;
    }
}

@media (min-width: 992px) {
    .sidebar-merchant {
        display: none;
    }

    .store-icon--menu {
        display: none !important;
    }

    .page-nav,
    body.nav-open .page-nav,
    .page-nav[hidden] {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    body.nav-open .store-nav-backdrop {
        display: none !important;
    }
}

.page-nav {
    display: none !important;
    position: fixed;
    top: 0;
    bottom: 0;
    inset-inline-start: 0;
    width: min(320px, 86vw);
    margin: 0;
    z-index: 1200;
    background: #ffffff;
    box-shadow: -8px 0 28px rgba(23, 23, 23, 0.12);
    visibility: hidden;
    pointer-events: none;
}

.page-nav__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 16px;
    background: linear-gradient(135deg, #D62839 0%, #A61E2A 100%);
    color: #ffffff;
    font-weight: 700;
}

.page-nav__close {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    cursor: pointer;
}

.page-nav__link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    color: #171717;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid #FDE8EB;
}

.page-nav__link:hover,
.page-nav__link:focus-visible,
.page-nav__link.is-current {
    background: #FFF7F8;
    color: #A61E2A;
}

.page-nav__link--merchant {
    margin: 16px;
    justify-content: center;
    border: none;
    border-radius: 10px;
    background: #D62839;
    color: #ffffff;
}

.page-nav__link--merchant:hover,
.page-nav__link--merchant:focus-visible {
    background: #A61E2A;
    color: #ffffff;
}

.page-nav__merchant {
    margin-top: auto;
    padding: 16px;
    background: #FFF9FA;
    border-top: 1px solid #FDE8EB;
}

.page-nav__merchant span {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #D62839;
}

.page-nav__merchant strong {
    display: block;
    margin: 4px 0 10px;
}

.page-nav__merchant a {
    color: #A61E2A;
    font-weight: 700;
    text-decoration: none;
}
