/* Estilos generales */
:root {
    --store-navbar-bg: #212529;
    --store-navbar-text: #ffffff;
    --store-text: #212529;
    --store-price: #0d6efd;
    --store-add-cart-bg: #0d6efd;
    --store-add-cart-text: #ffffff;
    --store-background: #ffffff;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--store-text);
    background-color: var(--store-background);
}

.store-navbar {
    background-color: var(--store-navbar-bg) !important;
}

.store-navbar .navbar-brand,
.store-navbar .nav-link,
.store-navbar .navbar-text,
.store-navbar .navbar-toggler {
    color: var(--store-navbar-text) !important;
}

.store-navbar .btn-outline-light {
    color: var(--store-navbar-text) !important;
    border-color: var(--store-navbar-text) !important;
}

.store-search .form-control {
    border-radius: 6px;
    height: 42px;
}

.store-search .btn {
    height: 42px;
    min-width: 42px;
    border-radius: 6px;
}

.store-topbar {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.store-topbar .store-search {
    flex: 0 0 33.333%;
    max-width: 33.333%;
}

.store-topbar .store-name {
    flex: 1 1 auto;
    text-align: center;
}

.store-actions {
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
    white-space: nowrap;
}

.store-action-link {
    text-decoration: none;
    color: var(--store-text);
    font-size: 0.9rem;
    letter-spacing: 0.02em;
}

.store-action-link:hover,
.store-action-link:focus {
    color: var(--store-price);
}

.store-name {
    font-size: 1.6rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--store-text);
}

.store-categories {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: thin;
}

.store-categories-wrap {
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    padding: 10px 0;
}

.store-promo-bar {
    border-top: 1px solid rgba(0, 0, 0, 0.12);
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    padding: 4px 0;
    overflow: hidden;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
    color: var(--store-add-cart-text);
}

.store-promo-bar--nav {
    width: 100%;
}

.store-promo-text {
    display: inline-block;
    padding-left: 100%;
    animation: store-marquee 18s linear infinite;
}

@keyframes store-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

.store-category-item {
    flex: 0 0 auto;
    text-decoration: none;
    color: var(--store-text);
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.store-category-item:hover,
.store-category-item:focus {
    color: var(--store-price);
}

.store-product-card {
    height: 100%;
}

.store-product-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.store-product-image img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

@media (max-width: 991.98px) {
    .store-topbar .store-search {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .store-topbar .store-name {
        width: 100%;
    }

    .store-actions {
        width: 100%;
        justify-content: center;
    }
}

.store-price {
    color: var(--store-price) !important;
}

.btn-store-add {
    background-color: var(--store-add-cart-bg) !important;
    border-color: var(--store-add-cart-bg) !important;
    color: var(--store-add-cart-text) !important;
}

.btn-store-add:hover,
.btn-store-add:focus {
    filter: brightness(0.92);
}

.store-text,
.store-text.text-dark,
a.store-text,
a.text-dark.store-text,
.store-text a {
    color: var(--store-text) !important;
}

.product-card {
    transition: transform .2s, box-shadow .2s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Animación para el ícono del carrito */
.shake {
    animation: shake 0.7s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes shake {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
    40%, 60% { transform: translate3d(4px, 0, 0); }
}

/* Estilos para la insignia (badge) del carrito */
.cart-badge {
    font-size: 0.65em; /* Hacemos la fuente un poco más pequeña */
    padding: 0.3em 0.5em; /* Ajustamos el padding */
}
