/* =========================================
   STOREFRONT WELCOME POPUP
   ========================================= */
.store-welcome-popup {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.store-welcome-popup.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.store-welcome-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.58);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.store-welcome-popup__card {
    position: relative;
    z-index: 2;
    width: min(900px, 100%);
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    background: var(--storefront-accent-soft);
    border-radius: 20px;
    box-shadow: 0 35px 90px rgba(0, 0, 0, 0.24);
    opacity: 0;
    transform: translateY(25px) scale(0.97);
    transition: opacity 0.4s ease, transform 0.4s ease;
    outline: none;
}

.store-welcome-popup.is-open .store-welcome-popup__card {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.store-welcome-popup__media {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    background: var(--storefront-accent-soft);
}

.store-welcome-popup__media img {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    display: block;
    object-fit: cover;
    object-position: center;
}

.store-welcome-popup__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.08) 50%, transparent 75%);
}

.store-welcome-popup__media-content {
    position: absolute;
    left: 32px;
    right: 32px;
    bottom: 32px;
    color: #ffffff;
}

.store-welcome-popup__media-content span {
    display: block;
    margin-bottom: 7px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    opacity: 0.85;
}

.store-welcome-popup__media-content strong {
    display: block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 35px;
    line-height: 1;
    font-weight: 500;
    letter-spacing: -0.04em;
}

.store-welcome-popup__content {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 64px 52px;
    background: var(--storefront-accent-soft);
}

.store-welcome-popup__close {
    position: absolute;
    top: 20px;
    right: 22px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(40, 25, 33, 0.10);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    color: #2c2227;
    font-family: Arial, sans-serif;
    font-size: 25px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.store-welcome-popup__close:hover {
    background: #ffffff;
    border-color: rgba(40, 25, 33, 0.2);
    transform: rotate(90deg);
}

.store-welcome-popup__close:focus-visible,
.store-welcome-popup__cta:focus-visible,
.store-welcome-popup__later:focus-visible {
    outline: 2px solid var(--storefront-accent);
    outline-offset: 3px;
}

.store-welcome-popup__logo {
    display: block;
    width: auto;
    max-width: 135px;
    max-height: 48px;
    object-fit: contain;
    margin-bottom: 30px;
}

.store-welcome-popup__eyebrow {
    display: block;
    margin-bottom: 13px;
    color: var(--storefront-accent);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.store-welcome-popup__content h2 {
    margin: 0 0 20px;
    color: #231a1f;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(42px, 5vw, 60px);
    line-height: 0.91;
    font-weight: 500;
    letter-spacing: -0.055em;
}

.store-welcome-popup__content p {
    max-width: 360px;
    margin: 0;
    color: #786c72;
    font-size: 13px;
    line-height: 1.75;
}

.store-welcome-popup__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-top: 30px;
}

.store-welcome-popup__cta {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 0 25px;
    border-radius: 100px;
    background: #241a20;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-decoration: none;
    text-transform: uppercase;
    transition: transform 0.25s ease, background 0.25s ease;
}

.store-welcome-popup__cta span {
    font-size: 15px;
    transition: transform 0.25s ease;
}

.store-welcome-popup__cta:hover {
    background: var(--storefront-accent);
    transform: translateY(-2px);
}

.store-welcome-popup__cta:hover span { transform: translateX(4px); }

.store-welcome-popup__later {
    padding: 0;
    border: 0;
    border-bottom: 1px solid #b6a8ae;
    background: transparent;
    color: #776b71;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.25s ease, border-color 0.25s ease;
}

.store-welcome-popup__later:hover {
    color: #231a1f;
    border-color: #231a1f;
}

body.welcome-popup-open { overflow: hidden; }

@media (max-width: 850px) {
    .store-welcome-popup { padding: 18px; }
    .store-welcome-popup__card {
        width: min(720px, 100%);
        grid-template-columns: minmax(240px, 0.8fr) minmax(320px, 1fr);
    }
    .store-welcome-popup__media { min-height: 500px; }
    .store-welcome-popup__content { padding: 58px 38px 45px; }
    .store-welcome-popup__content h2 { font-size: 47px; }
}

@media (max-width: 650px) {
    .store-welcome-popup { align-items: flex-end; padding: 12px; }
    .store-welcome-popup__card {
        width: 100%;
        max-height: calc(100vh - 24px);
        max-height: calc(100dvh - 24px);
        display: block;
        overflow-y: auto;
        overscroll-behavior: contain;
        border-radius: 20px;
    }
    .store-welcome-popup__media { min-height: 230px; height: 230px; }
    .store-welcome-popup__media-content { left: 22px; bottom: 20px; }
    .store-welcome-popup__media-content strong { font-size: 29px; }
    .store-welcome-popup__content { padding: 43px 25px 30px; }
    .store-welcome-popup__logo { max-width: 110px; margin-bottom: 22px; }
    .store-welcome-popup__content h2 { margin-bottom: 16px; font-size: 43px; }
    .store-welcome-popup__content p { font-size: 12px; line-height: 1.65; }
    .store-welcome-popup__actions { margin-top: 24px; }
    .store-welcome-popup__cta { width: 100%; }
    .store-welcome-popup__close { top: 14px; right: 14px; background: rgba(255, 255, 255, 0.94); }
}

@media (max-width: 420px) {
    .store-welcome-popup { padding: 8px; }
    .store-welcome-popup__card {
        max-height: calc(100vh - 16px);
        max-height: calc(100dvh - 16px);
        border-radius: 17px;
    }
    .store-welcome-popup__media { height: 195px; min-height: 195px; }
    .store-welcome-popup__content { padding: 36px 21px 26px; }
    .store-welcome-popup__content h2 { font-size: 39px; }
}

@media (prefers-reduced-motion: reduce) {
    .store-welcome-popup,
    .store-welcome-popup__card,
    .store-welcome-popup__close,
    .store-welcome-popup__cta,
    .store-welcome-popup__cta span,
    .store-welcome-popup__later { transition: none !important; }
}
