/* =========================================================
HEADER MODERNO DE LA TIENDA
========================================================= */

.store-header {
    position: relative;
    z-index: 1000;
}

/* ---------------------------------------------------------
PORTADA
--------------------------------------------------------- */

.store-cover {

    position: relative;
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;

    background-image:
        linear-gradient(
            to bottom,
            rgba(0,0,0,.15),
            rgba(0,0,0,.45) 55%,
            rgba(0,0,0,.85)
        ),
        url("../uploads/banners/store-cover.jpg");

    background-size: cover;
    background-position: center;  
    border-radius: 0 0 28px 28px;
    overflow: visible;

}


/* ---------------------------------------------------------
EFECTO OSCURO EXTRA EN LA PARTE INFERIOR
--------------------------------------------------------- */

.store-cover::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 55%;
    background: linear-gradient(
        transparent,
        rgba(0,0,0,.75)
    );
    pointer-events: none;
}

/* ---------------------------------------------------------
CONTENIDO CENTRAL
--------------------------------------------------------- */

.store-header-content {
    position: relative;
    z-index: 5;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 70px 20px 35px;
}

/* ---------------------------------------------------------
LOGO
--------------------------------------------------------- */

.store-logo-wrapper {
    width: 145px;
    height: 145px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 28px;
    padding: 12px;
    box-shadow:
        0 12px 35px rgba(0,0,0,.45);

    border: 4px solid rgba(255,255,255,.9);
    margin-bottom: 18px;
    transition: transform .2s ease;
}

.store-logo-wrapper:hover {
    transform: scale(1.04);
}

.store-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 18px;
}

/* ---------------------------------------------------------
NOMBRE DE LA TIENDA
--------------------------------------------------------- */

.store-name {
    margin: 0;
    max-width: 90%;
    color: #fff;
    font-size: clamp(22px, 4.5vw, 32px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.5px;
    text-shadow:
        0 3px 8px rgba(0,0,0,.8);
}

/* ---------------------------------------------------------
ESTADO ABIERTO
--------------------------------------------------------- */

.store-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 12px;
    padding: 6px 14px;

    border-radius: 30px;

    background: rgba(25, 180, 75, .95);

    color: #fff;

    font-size: 14px;

    font-weight: 700;

    box-shadow:
        0 4px 15px rgba(0,0,0,.35);

}


/* Punto verde */

.status-dot {

    width: 9px;
    height: 9px;

    border-radius: 50%;

    background: #fff;

    box-shadow:
        0 0 8px rgba(255,255,255,.9);

}

.store-status.abierto .status-dot {
    background-color: #28a745;
}

.store-status.cerrado .status-dot {
    background-color: #dc3545;
}


/* ---------------------------------------------------------
DIRECCIÓN
--------------------------------------------------------- */

.store-address {

    margin-top: 9px;

    color: rgba(255,255,255,.95);

    font-size: 15px;

    font-weight: 500;

    text-shadow:
        0 2px 5px rgba(0,0,0,.8);

}


/* ---------------------------------------------------------
BOTÓN INICIO
--------------------------------------------------------- */

.store-home-btn {

    position: absolute;

    top: 18px;
    left: 18px;

    z-index: 20;

    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(0,0,0,.45);

    color: #fff;

    text-decoration: none;

    font-size: 28px;

    backdrop-filter: blur(8px);

    -webkit-backdrop-filter: blur(8px);

    border: 1px solid rgba(255,255,255,.2);

    transition: .2s ease;

}


.store-home-btn:hover {

    background: rgba(0,0,0,.7);

    color: #fff;

    transform: scale(1.05);

}


/* ---------------------------------------------------------
CARRITO
--------------------------------------------------------- */

.store-cart-btn {

    position: absolute;

    top: 18px;
    right: 18px;

    z-index: 20;

    width: 52px;
    height: 52px;

    border: none;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 23px;

    background: var(--brand);

    color: #fff;

    box-shadow:
        0 8px 22px rgba(0,0,0,.35);

    transition: .2s ease;

}


.store-cart-btn:hover {

    transform: scale(1.06);

}


/* ---------------------------------------------------------
CONTADOR DEL CARRITO
--------------------------------------------------------- */

.store-cart-count {

    position: absolute;

    top: -4px;
    right: -4px;

    min-width: 21px;
    height: 21px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0 5px;

    border-radius: 50px;

    background: #fff;

    color: #111;

    font-size: 11px;

    font-weight: 800;

    box-shadow:
        0 2px 6px rgba(0,0,0,.3);

}


/* ---------------------------------------------------------
RESPONSIVE
--------------------------------------------------------- */

@media (max-width: 576px) {

    .store-cover {
        min-height: 230px;
        border-radius: 0 0 24px 24px;
        background-position: center;
    }

    .store-header-content {
        padding-top: 65px;
        padding-bottom: 30px;
    }

    .store-logo-wrapper {
        width: 125px;
        height: 125px;
        border-radius: 24px;
        padding: 10px;
    }

    .store-logo {
        border-radius: 16px;
    }

    .store-name {
        font-size: clamp(22px, 6vw, 30px);
        max-width: 94%;
    }

    .store-status {
        font-size: 13px;
        padding: 5px 12px;
    }

    .store-address {
        font-size: 14px;
    }
    
}

    