/* Jerseys Futbol CL - Estilos tienda */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@supports (padding: env(safe-area-inset-bottom)) {
    body {
        padding-bottom: env(safe-area-inset-bottom);
    }
}

#cart-toast {
    animation: slideUp 0.3s ease;
}
@keyframes slideUp {
    from { transform: translate(-50%, 20px); opacity: 0; }
    to   { transform: translate(-50%, 0); opacity: 1; }
}

#size-selector input:checked + span {
    border-color: var(--color-sky);
    background-color: rgba(99, 211, 255, 0.12);
    color: #2A94C5;
    box-shadow: 0 0 0 3px rgba(99, 211, 255, 0.25);
}

/* ===== Panel Admin ===== */
body.admin-page {
    overflow-x: hidden;
}

.admin-shell {
    display: grid;
    grid-template-columns: 16rem 1fr;
    min-height: 100vh;
    width: 100%;
}

.admin-sidebar {
    background-color: #111827;
    color: #fff;
    display: flex;
    flex-direction: column;
    width: 16rem;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 40;
}

.admin-sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid #374151;
    flex-shrink: 0;
}

.admin-sidebar-nav {
    padding: 1rem;
    flex: 1;
}

.admin-sidebar-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #d1d5db;
    text-decoration: none;
    margin-bottom: 0.25rem;
    transition: background-color 0.15s;
}

.admin-sidebar-nav a:hover {
    background-color: #1f2937;
    color: #fff;
}

.admin-sidebar-nav a.is-active {
    background-color: #3BAEE0;
    color: #fff;
}

.admin-sidebar-nav a.btn-new {
    background-color: #2A94C5;
    color: #fff;
    text-align: center;
    margin-top: 0.75rem;
}

.admin-sidebar-nav a.btn-new:hover {
    background-color: #3BAEE0;
}

.admin-sidebar-nav hr {
    border: none;
    border-top: 1px solid #374151;
    margin: 0.75rem 0;
}

.admin-sidebar-nav a.link-store {
    color: #9ca3af;
    font-size: 0.875rem;
}

.admin-sidebar-nav a.link-logout {
    color: #f87171;
    font-size: 0.875rem;
}

.admin-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    background-color: #f3f4f6;
}

.admin-main-inner {
    flex: 1;
    padding: 1rem;
}

.admin-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 30;
}

.admin-mobile-header {
    display: none;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 0.75rem 1rem;
    position: sticky;
    top: 0;
    z-index: 20;
}

.admin-flash {
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 0.5rem;
    background-color: #dcfce7;
    color: #166534;
    font-size: 0.875rem;
}

@media (min-width: 768px) {
    .admin-main-inner {
        padding: 1.5rem;
    }
}

@media (max-width: 767px) {
    .admin-shell {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        transform: translateX(-100%);
        transition: transform 0.2s ease;
    }

    .admin-sidebar.is-open {
        transform: translateX(0);
    }

    .admin-overlay.is-visible {
        display: block;
    }

    .admin-mobile-header {
        display: block;
    }
}

@media (min-width: 768px) {
    .admin-mobile-only {
        display: none !important;
    }
}

/* ===== Grilla sorteo checkout (10×10) ===== */
.raffle-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 4px;
    width: 100%;
    max-width: 420px;
}

.raffle-num-btn {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 6px;
    border: 1px solid transparent;
    transition: background-color 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.raffle-num-btn.is-available {
    background-color: #dcfce7;
    color: #166534;
    border-color: #86efac;
    cursor: pointer;
}

.raffle-num-btn.is-available:hover {
    background-color: #bbf7d0;
    border-color: #4ade80;
}

.raffle-num-btn.is-taken {
    background-color: #fee2e2;
    color: #b91c1c;
    border-color: #fecaca;
    cursor: not-allowed;
    opacity: 0.85;
}

.raffle-num-btn.is-pending {
    background-color: #ffedd5;
    color: #c2410c;
    border-color: #fdba74;
    cursor: not-allowed;
    opacity: 0.9;
}

.raffle-num-btn.is-loading {
    opacity: 0.6;
    pointer-events: none;
}

.raffle-num-btn.is-selected {
    background-color: #2d6a4f;
    color: #fff;
    border-color: #2d6a4f;
    box-shadow: 0 0 0 2px #63d3ff;
}

.raffle-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.75rem;
    color: #6b7280;
}

.raffle-legend-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.raffle-legend-swatch {
    width: 1rem;
    height: 1rem;
    border-radius: 4px;
    border: 1px solid transparent;
}

.raffle-legend-swatch.is-available {
    background-color: #dcfce7;
    border-color: #86efac;
}

.raffle-legend-swatch.is-taken {
    background-color: #fee2e2;
    border-color: #fecaca;
}

.raffle-legend-swatch.is-pending {
    background-color: #ffedd5;
    border-color: #fdba74;
}

.raffle-message {
    margin-top: 0.75rem;
    padding: 0.625rem 0.875rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.raffle-message.is-warning {
    background-color: #ffedd5;
    color: #c2410c;
    border: 1px solid #fdba74;
}

.raffle-message.is-error {
    background-color: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.raffle-message.is-success {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.brand-logo {
    background-color: #ffffff;
    object-fit: contain;
    border: 1px solid rgba(99, 211, 255, 0.35);
    box-shadow: 0 1px 4px rgba(16, 21, 27, 0.08);
}
.hero-slider {
    position: relative;
    width: 100%;
    background: linear-gradient(to right, #e5f4ff, #f8fcff 50%, #e5f4ff);
    border-bottom: 1px solid rgba(99, 211, 255, 0.25);
}

.hero-slider-inner {
    position: relative;
    width: 100%;
    max-width: 1024px;
    margin: 0 auto;
}

.hero-slider-viewport {
    position: relative;
    width: 100%;
    height: 400px;
    min-height: 400px;
    max-height: 400px;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: block;
    opacity: 0;
    transition: opacity 0.7s ease-in-out;
    pointer-events: none;
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.hero-slide picture {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
}

.home-mid-banner {
    width: 100%;
    padding: 0;
    background: transparent;
    border: none;
}

.home-mid-banner-inner {
    max-width: 80rem; /* same as max-w-7xl */
    margin: 0 auto;
    padding: 0 1rem;
}

.home-mid-banner-link {
    display: block;
    width: 100%;
    line-height: 0;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid rgba(99, 211, 255, 0.3);
    background: transparent;
}

.home-mid-banner-viewport {
    position: relative;
    width: 100%;
    height: 260px;
    overflow: hidden;
    line-height: 0;
}

.home-mid-banner-viewport picture {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
}

.home-mid-banner picture,
.home-mid-banner img {
    display: block;
    width: 100%;
    height: 100%;
}

.home-mid-banner img {
    object-fit: cover;
    object-position: center 42%;
}

@media (max-width: 767px) {
    .home-mid-banner-viewport {
        height: 180px;
    }
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    image-rendering: auto;
}

.hero-slider-controls {
    position: absolute;
    left: 50%;
    bottom: 0.75rem;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 2;
}

.hero-slider-nav,
.hero-slider-pause {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.15s, transform 0.15s;
}

.hero-slider-nav {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.92);
    color: #10151b;
    box-shadow: 0 2px 8px rgba(16, 21, 27, 0.12);
}

.hero-slider-nav:hover {
    background: #fff;
    transform: scale(1.05);
}

.hero-slider-pause {
    padding: 0.45rem 0.85rem;
    border-radius: 9999px;
    background: rgba(16, 21, 27, 0.72);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 500;
    backdrop-filter: blur(4px);
}

.hero-slider-pause:hover {
    background: rgba(16, 21, 27, 0.88);
}

.hero-slider-pause .hidden {
    display: none;
}

.hero-slider-dots {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    display: flex;
    gap: 0.4rem;
    z-index: 2;
}

.hero-slider-dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 9999px;
    border: none;
    padding: 0;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transition: width 0.2s, background-color 0.2s;
}

.hero-slider-dot.is-active {
    width: 1.35rem;
    background: #63d3ff;
}

.hero-slider-dot:hover {
    background: rgba(255, 255, 255, 0.9);
}

/* Featured badge — always above card gallery slides/dots */
.featured-star {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 9999px;
    background: #f59e0b;
    color: #fff;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.45);
    z-index: 20;
    pointer-events: none;
}

.featured-star svg {
    width: 0.9rem;
    height: 0.9rem;
}

.featured-star-lg {
    width: 2.25rem;
    height: 2.25rem;
}

.featured-star-lg svg {
    width: 1.15rem;
    height: 1.15rem;
}

/* Floating notification badges (navbar) — Facebook-style */
.nav-notify-badge {
    position: absolute;
    top: 0.1rem;
    right: 0.05rem;
    min-width: 1.15rem;
    height: 1.15rem;
    padding: 0 0.28rem;
    border-radius: 9999px;
    background: #e41e3f;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1.15rem;
    text-align: center;
    box-shadow: 0 0 0 2px #fff;
    pointer-events: none;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transform: scale(0.85);
    opacity: 0;
}

.nav-notify-badge.is-visible {
    display: inline-flex;
    opacity: 1;
    transform: scale(1);
}

.nav-notify-badge.is-pop {
    animation: nav-notify-pop 0.35s ease;
}

@keyframes nav-notify-pop {
    0% { transform: scale(0.4); }
    55% { transform: scale(1.25); }
    100% { transform: scale(1); }
}

/* Wishlist heart toggle */
.wishlist-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.wishlist-toggle:active {
    transform: scale(0.94);
}

.wishlist-toggle-card {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 30;
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.92);
    color: #9ca3af;
    box-shadow: 0 2px 8px rgba(16, 21, 27, 0.12);
}

.wishlist-toggle-card:hover {
    color: #63d3ff;
}

.wishlist-toggle-card.is-active {
    color: #fff;
    background: #e11d48;
    box-shadow: 0 2px 10px rgba(225, 29, 72, 0.45);
}

.wishlist-toggle-card .wishlist-toggle-icon {
    width: 1.15rem;
    height: 1.15rem;
}

.favorite-mark {
    position: absolute;
    top: 0.55rem;
    left: 0.5rem;
    z-index: 30;
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.45rem;
    border-radius: 9999px;
    background: rgba(225, 29, 72, 0.95);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(225, 29, 72, 0.35);
    pointer-events: none;
}

/* Si hay estrella de destacado, el chip favorito baja un poco */
.card-store .featured-star ~ .favorite-mark,
.card-store:has(.featured-star) .favorite-mark {
    top: 2.55rem;
}

.card-store.is-favorite {
    box-shadow: 0 0 0 2px rgba(225, 29, 72, 0.28);
}

.wishlist-toggle-detail {
    width: 3.5rem;
    height: 3.5rem;
    flex-shrink: 0;
    border-radius: 0.75rem;
    border: 2px solid #e5e7eb;
    background: #fff;
    color: #6b7280;
}

.wishlist-toggle-detail:hover {
    border-color: #e11d48;
    color: #e11d48;
}

.wishlist-toggle-detail.is-active {
    border-color: #e11d48;
    background: #fff1f2;
    color: #e11d48;
}

.wishlist-toggle-detail .wishlist-toggle-icon {
    width: 1.5rem;
    height: 1.5rem;
}

/* Product lightbox */
.product-lightbox {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 21, 27, 0.88);
    padding: 1.5rem;
}

.product-lightbox.hidden {
    display: none;
}

.product-lightbox-img {
    width: min(92vw, 40rem);
    max-height: 90vh;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    object-position: center;
    border-radius: 0.75rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    background: #111;
}

.product-lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.product-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.28);
}

.product-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 9999px;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
}

.product-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.28);
}

.product-lightbox-nav.prev {
    left: 1rem;
}

.product-lightbox-nav.next {
    right: 1rem;
}

.product-zoom-hint {
    position: absolute;
    right: 0.75rem;
    bottom: 0.75rem;
    background: rgba(16, 21, 27, 0.65);
    color: #fff;
    font-size: 0.7rem;
    padding: 0.25rem 0.55rem;
    border-radius: 9999px;
    pointer-events: none;
}

.gallery-main-btn {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

/* Marco 1:1 — la imagen se ve completa (sin recorte) */
.frame-ig {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f3f4f6;
    position: relative;
}

.frame-ig > img,
.img-ig {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

.product-card-gallery .product-slide,
.product-gallery-main .img-ig,
.product-gallery-thumbs .img-ig {
    object-fit: contain;
}

.product-gallery-main {
    width: 100%;
    max-width: 100%;
    margin: 0;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.75rem;
    align-items: start;
}

.product-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
    width: 100%;
}

.product-gallery-thumbs {
    display: flex;
    gap: 0.55rem;
    overflow-x: auto;
    padding-bottom: 0.15rem;
    justify-content: flex-start;
}

.product-thumb-ig {
    width: 4.25rem;
    height: 4.25rem;
    flex-shrink: 0;
    border-radius: 0.5rem;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

@media (min-width: 768px) {
    .product-detail-grid {
        grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr);
        gap: 2rem 2.5rem;
    }

    .product-gallery {
        grid-template-columns: 4.75rem minmax(0, 1fr);
        grid-template-rows: auto auto;
        gap: 0.75rem 0.85rem;
        align-items: start;
    }

    .product-gallery-main {
        grid-column: 2;
        grid-row: 1;
        max-width: 36rem;
    }

    .product-gallery-thumbs {
        grid-column: 1;
        grid-row: 1;
        flex-direction: column;
        overflow-x: hidden;
        overflow-y: auto;
        max-height: 36rem;
        padding-bottom: 0;
    }

    .product-gallery-video {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .product-thumb-ig {
        width: 4.5rem;
        height: 4.5rem;
    }
}

@media (min-width: 1024px) {
    .product-detail-grid {
        grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
        gap: 2.5rem 3rem;
    }

    .product-gallery {
        grid-template-columns: 5.25rem minmax(0, 1fr);
    }

    .product-gallery-main {
        max-width: 42rem;
    }

    .product-gallery-thumbs {
        max-height: 42rem;
    }

    .product-thumb-ig {
        width: 5rem;
        height: 5rem;
    }
}

/* Product reviews */
.review-summary-score {
    font-size: 1.75rem;
    font-weight: 700;
    color: #10151b;
    line-height: 1;
}

.review-stars {
    display: inline-flex;
    gap: 0.1rem;
    color: #d1d5db;
}

.review-star {
    font-size: 0.95rem;
    line-height: 1;
}

.review-star.is-on,
.star-rating-btn.is-on {
    color: #f59e0b;
}

.review-star-lg {
    font-size: 1.15rem;
}

.review-form-card,
.review-item {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.85rem;
    padding: 1rem 1.1rem;
}

.star-rating {
    display: inline-flex;
    gap: 0.2rem;
}

.star-rating-btn {
    border: 0;
    background: transparent;
    padding: 0.1rem;
    font-size: 1.75rem;
    line-height: 1;
    color: #d1d5db;
    cursor: pointer;
    transition: color 0.12s ease, transform 0.12s ease;
}

.star-rating-btn:hover,
.star-rating-btn:focus-visible {
    transform: scale(1.08);
    outline: none;
}

.admin-image-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.product-image-tile {
    width: 7.5rem;
    height: 7.5rem;
    flex-shrink: 0;
    aspect-ratio: 1 / 1;
}

.product-image-tile > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.admin-image-delete {
    position: absolute;
    top: 0.35rem;
    right: 0.35rem;
    z-index: 30;
    width: 1.75rem;
    height: 1.75rem;
    border: 0;
    border-radius: 9999px;
    background: #ef4444;
    color: #fff;
    font-size: 1rem;
    line-height: 1;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.admin-image-delete:hover {
    background: #dc2626;
}

.product-compare-price {
    margin: 0 0 0.2rem;
    color: #9ca3af;
    text-decoration: line-through;
    font-size: 1.125rem;
    font-weight: 400;
}

.product-compare-price-sm {
    font-size: 0.8rem;
    margin-bottom: 0.1rem;
}

.discount-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.55rem;
    border-radius: 9999px;
    background: #dcfce7;
    color: #166534;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.discount-badge-sm {
    font-size: 0.68rem;
    padding: 0.18rem 0.4rem;
}

.product-description p {
    margin: 0 0 0.75rem;
}

.product-description p:last-child {
    margin-bottom: 0;
}

.product-description ul,
.product-description ol {
    margin: 0.5rem 0 0.75rem 1.1rem;
    padding: 0;
}

.product-description li {
    margin-bottom: 0.25rem;
}

.product-description a {
    color: #2A94C5;
    text-decoration: underline;
}

.product-description h2,
.product-description h3,
.product-description h4 {
    color: #10151b;
    font-weight: 600;
    margin: 0.85rem 0 0.4rem;
}

.card-store .frame-ig,
.card-store > .frame-ig {
    border-radius: 0;
}

.product-card-gallery .product-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.55s ease;
    z-index: 0;
}

.product-card-gallery .product-slide.is-active {
    opacity: 1;
    z-index: 1;
}

.product-slide-dots {
    position: absolute;
    left: 50%;
    bottom: 0.45rem;
    transform: translateX(-50%);
    display: flex;
    gap: 0.28rem;
    z-index: 5;
    pointer-events: none;
}

.product-slide-dot {
    width: 0.35rem;
    height: 0.35rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.55);
    box-shadow: 0 0 0 1px rgba(16, 21, 27, 0.15);
    transition: width 0.2s, background-color 0.2s;
}

.product-slide-dot.is-active {
    width: 0.85rem;
    background: #63d3ff;
}

/* Social networks */
.social-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    color: inherit;
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.social-link svg {
    width: 1.05rem;
    height: 1.05rem;
}

.social-link:hover {
    transform: translateY(-1px);
}

.social-links-topbar {
    justify-content: flex-end;
    gap: 0.45rem;
    margin: 0;
    padding: 0;
    color: #2A94C5;
    flex-shrink: 0;
}

.social-topbar-wrap {
    background: linear-gradient(90deg, #e5f4ff 0%, #f0f9ff 50%, #d9f0ff 100%);
    border-bottom: 1px solid rgba(99, 211, 255, 0.35);
}

.social-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    max-width: 80rem;
    margin: 0 auto;
    padding: 0.45rem 1rem;
}

.social-topbar-brand {
    display: none;
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    color: #2A94C5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    text-decoration: none;
}

.social-topbar-brand:hover {
    color: #1d6f96;
}

@media (max-width: 639px) {
    .social-topbar-brand {
        display: block;
    }
}

.social-links-topbar .social-link {
    background: rgba(255, 255, 255, 0.65);
    color: #2A94C5;
    border: 1px solid rgba(99, 211, 255, 0.35);
}

.social-links-topbar .social-link:hover {
    background: #fff;
    color: #1d6f96;
    border-color: #63d3ff;
    box-shadow: 0 1px 4px rgba(42, 148, 197, 0.18);
}

.social-links-footer {
    gap: 0.5rem;
}

.social-links-footer .social-link {
    background: #fff;
    color: #374151;
    border: 1px solid #e5e7eb;
}

.social-links-footer .social-link:hover {
    border-color: #63d3ff;
    color: #2A94C5;
}

.social-links-inline .social-link {
    color: #6b7280;
}

.social-links-inline .social-link:hover {
    color: #2A94C5;
    background: rgba(99, 211, 255, 0.12);
}

/* Catalog layout + filters sidebar */
.catalog-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    align-items: start;
}

.catalog-sidebar {
    width: 100%;
}

.catalog-filters {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 0.85rem 1.1rem 0.95rem;
}

.catalog-filters.is-open {
    padding-bottom: 1.15rem;
}

.catalog-filters-head {
    display: block;
    margin-bottom: 0;
}

.catalog-filters.is-open .catalog-filters-head {
    margin-bottom: 0.85rem;
}

.catalog-filters-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.15rem 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    text-align: left;
    color: inherit;
}

.catalog-filters-toggle-main {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.catalog-filters-toggle-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
}

.catalog-filters-title {
    font-size: 1rem;
    font-weight: 700;
    color: #10151b;
}

.catalog-filters-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    background: #ecfeff;
    color: #0e7490;
    border: 1px solid #a5f3fc;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.catalog-filters-chevron {
    display: inline-flex;
    color: #6b7280;
    transition: transform 0.2s ease;
}

.catalog-filters.is-open .catalog-filters-chevron {
    transform: rotate(180deg);
}

.catalog-filters-body {
    padding-top: 0.15rem;
    display: none;
}

.catalog-filters.is-open .catalog-filters-body {
    display: block;
}

/* Pantalla grande: desplegado por defecto (antes de JS / sin preferencia) */
@media (min-width: 1024px) {
    .catalog-filters:not(.is-collapsed) .catalog-filters-body {
        display: block;
    }

    .catalog-filters:not(.is-collapsed) .catalog-filters-head {
        margin-bottom: 0.85rem;
    }

    .catalog-filters:not(.is-collapsed) .catalog-filters-chevron {
        transform: rotate(180deg);
    }
}

.catalog-filters-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
}

.catalog-filter-field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #10151b;
    margin-bottom: 0.35rem;
}

.catalog-filter-field .input-store {
    width: 100%;
}

.catalog-filters-actions {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 1rem;
}

.catalog-filters-count {
    margin: 0;
    white-space: nowrap;
}

.catalog-price-input {
    position: relative;
    display: flex;
    align-items: center;
}

.catalog-price-prefix {
    position: absolute;
    left: 0.85rem;
    color: #6b7280;
    font-weight: 600;
    pointer-events: none;
    z-index: 1;
}

.catalog-price-input .input-store {
    padding-left: 1.55rem;
}

/* Home: buscar + Ver catálogo */
.home-catalog-bar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 0.75rem;
    max-width: 40rem;
    margin: 0 auto;
}

.home-catalog-search {
    flex: 1 1 auto;
    min-width: 0;
}

.home-catalog-btn {
    flex-shrink: 0;
    text-align: center;
}

.home-catalog-btn:disabled,
.home-catalog-btn[disabled] {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: none;
}

@media (min-width: 640px) {
    .home-catalog-bar {
        flex-direction: row;
        align-items: center;
        max-width: 36rem;
    }
}

@media (min-width: 640px) and (max-width: 1023px) {
    .catalog-filters-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .catalog-filter-search {
        grid-column: 1 / -1;
    }

    .catalog-filters-actions {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
    }

    .catalog-filters-actions .btn-primary,
    .catalog-filters-actions .btn-outline-sky {
        width: auto;
    }
}

@media (min-width: 1024px) {
    .catalog-layout {
        grid-template-columns: 16.5rem minmax(0, 1fr);
        gap: 1.75rem;
    }

    .catalog-sidebar {
        position: sticky;
        top: 5.5rem;
    }

    .catalog-filters-grid {
        grid-template-columns: 1fr;
    }

    .catalog-filter-search {
        grid-column: auto;
    }
}

/* —— Menú de sesión (navbar) —— */
.account-menu-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    color: #0e7490;
    border-radius: 0.5rem;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.account-menu-trigger:hover,
.account-menu.is-open .account-menu-trigger {
    background: rgba(14, 116, 144, 0.1);
    color: #155e75;
}

.account-menu-avatar {
    position: relative;
    display: inline-flex;
}

.account-menu-online {
    position: absolute;
    right: -1px;
    bottom: -1px;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    background: #10b981;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.35);
}

.account-menu-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 0.4rem);
    z-index: 60;
    width: min(18.5rem, calc(100vw - 1.5rem));
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.9rem;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
    padding: 0.5rem 0;
    overflow: hidden;
}

.account-menu-panel[hidden] {
    display: none !important;
}

.account-menu-head {
    padding: 0.75rem 1rem 0.65rem;
    border-bottom: 1px solid #f3f4f6;
}

.account-menu-name {
    font-family: Fredoka, sans-serif;
    font-weight: 500;
    color: #1f2937;
    font-size: 0.95rem;
    line-height: 1.2;
}

.account-menu-role {
    margin-top: 0.2rem;
    font-size: 0.72rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.account-menu-section {
    padding: 0.45rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.account-menu-label {
    padding: 0.35rem 1rem 0.2rem;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #0e7490;
}

.account-menu-item {
    display: block;
    padding: 0.55rem 1rem;
    font-size: 0.875rem;
    color: #374151;
    text-decoration: none;
    transition: background-color 0.12s ease, color 0.12s ease;
}

.account-menu-item:hover {
    background: rgba(14, 116, 144, 0.08);
    color: #155e75;
}

.account-menu-footer {
    padding: 0.35rem 0 0.15rem;
}

.account-menu-logout {
    color: #b91c1c;
    font-weight: 500;
}

.account-menu-logout:hover {
    background: #fef2f2;
    color: #991b1b;
}

/* —— Panel Mi cuenta —— */
.account-subnav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.5rem;
}

.account-subnav a {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #4b5563;
    background: #f3f4f6;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.account-subnav a:hover {
    background: rgba(14, 116, 144, 0.12);
    color: #155e75;
}

.account-subnav a.is-active {
    background: #0e7490;
    color: #fff;
}

.account-subnav-admin {
    margin-left: auto;
}

.account-tile {
    display: block;
    padding: 1.1rem 1.15rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.9rem;
    background: #fff;
    text-decoration: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.account-tile:hover {
    border-color: #67e8f9;
    box-shadow: 0 6px 18px rgba(14, 116, 144, 0.08);
}

.account-tile-title {
    display: block;
    font-family: Fredoka, sans-serif;
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.account-tile-desc {
    display: block;
    font-size: 0.8125rem;
    color: #6b7280;
}

.account-order-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.65rem;
}

.account-order-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    padding: 0.95rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.85rem;
    background: #fff;
    text-decoration: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.account-order-row:hover {
    border-color: #67e8f9;
    box-shadow: 0 4px 14px rgba(14, 116, 144, 0.07);
}

.account-status {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    background: #f3f4f6;
    color: #4b5563;
}

.account-status-pending { background: #fef3c7; color: #92400e; }
.account-status-paid { background: #dbeafe; color: #1e40af; }
.account-status-processing { background: #e0e7ff; color: #3730a3; }
.account-status-shipped { background: #cffafe; color: #155e75; }
.account-status-delivered { background: #d1fae5; color: #065f46; }
.account-status-cancelled,
.account-status-refunded { background: #fee2e2; color: #991b1b; }

.account-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.account-filter-tabs a {
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #4b5563;
    background: #f3f4f6;
    text-decoration: none;
}

.account-filter-tabs a.is-active {
    background: #0e7490;
    color: #fff;
}

/* —— Preguntas y respuestas —— */
.qa-item {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.85rem;
    padding: 1rem 1.1rem;
}

.qa-question,
.qa-answer {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.qa-answer {
    position: relative;
    margin-top: 0.75rem;
    margin-left: 1.15rem;
    padding: 0.75rem 0.85rem 0.75rem 0.9rem;
    border: 0;
    border-left: 2px solid #a7f3d0;
    border-radius: 0 0.65rem 0.65rem 0;
    background: #f0fdf4;
}

.qa-answer::before {
    content: '';
    position: absolute;
    left: -1.15rem;
    top: 0;
    width: 1.15rem;
    height: 1.15rem;
    border-left: 2px solid #cbd5e1;
    border-bottom: 2px solid #cbd5e1;
    border-bottom-left-radius: 0.45rem;
}

.qa-label {
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    background: #e0f2fe;
    color: #0369a1;
}

.qa-label-a {
    background: #d1fae5;
    color: #065f46;
}

.qa-pending {
    position: relative;
    margin: 0.75rem 0 0 1.15rem;
    padding: 0.55rem 0.75rem 0.55rem 0.85rem;
    border-left: 2px dashed #fcd34d;
    border-radius: 0 0.55rem 0.55rem 0;
    background: #fffbeb;
    color: #b45309;
    font-weight: 500;
}

.qa-pending::before {
    content: '';
    position: absolute;
    left: -1.15rem;
    top: 0;
    width: 1.15rem;
    height: 0.95rem;
    border-left: 2px solid #cbd5e1;
    border-bottom: 2px solid #cbd5e1;
    border-bottom-left-radius: 0.45rem;
}

@media (max-width: 480px) {
    .qa-answer,
    .qa-pending {
        margin-left: 0.85rem;
    }

    .qa-answer::before,
    .qa-pending::before {
        left: -0.85rem;
        width: 0.85rem;
    }
}

.admin-nav-badge,
.admin-inline-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: #f59e0b;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1;
}

.admin-sidebar-nav a.is-active .admin-nav-badge {
    background: #fff;
    color: #b45309;
}

.account-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.account-menu-alert {
    position: absolute;
    top: -0.35rem;
    right: -0.45rem;
    min-width: 1.1rem;
    height: 1.1rem;
    padding: 0 0.25rem;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    line-height: 1.1rem;
    text-align: center;
    border: 2px solid #fff;
}

.account-menu-alert-banner {
    display: block;
    margin: 0.35rem 0.65rem 0.15rem;
    padding: 0.55rem 0.75rem;
    border-radius: 0.65rem;
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
}

.account-menu-alert-banner:hover {
    background: #fef3c7;
}

.admin-pending-alert {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 0.75rem;
    background: #fffbeb;
    border: 1px solid #fcd34d;
    color: #92400e;
    text-decoration: none;
    font-size: 0.875rem;
}

.admin-pending-alert span {
    font-weight: 700;
    color: #b45309;
}

.admin-pending-alert:hover {
    background: #fef3c7;
}

/* —— Chips de categorías (home) —— */
.home-category-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.55rem;
}

.home-category-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.7rem 0.35rem 0.55rem;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #374151;
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.2;
    transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.home-category-chip:hover {
    border-color: #67e8f9;
    background: rgba(14, 116, 144, 0.06);
    color: #155e75;
    transform: translateY(-1px);
}

.home-category-chip-emoji {
    font-size: 0.95rem;
    line-height: 1;
}

.home-category-chip-label {
    white-space: nowrap;
}

.home-chip-subtitle {
    margin: 0 0 0.55rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #6b7280;
    letter-spacing: 0.02em;
}

/* —— Footer —— */
.site-footer {
    margin-top: auto;
    background: #f9fafb;
    border-top: 1px solid #f3f4f6;
    color: #4b5563;
}

.site-footer-inner {
    max-width: 80rem;
    margin: 0 auto;
    padding: 1.5rem 1rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
}

.site-footer-grid {
    display: grid;
    gap: 1.35rem;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    margin-bottom: 0.45rem;
}

.footer-logo {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    object-fit: cover;
    flex-shrink: 0;
}

.footer-brand-name {
    font-family: Fredoka, sans-serif;
    font-weight: 500;
    color: #1f2937;
    font-size: 1.05rem;
    line-height: 1.2;
}

.footer-location {
    margin: 0;
    font-size: 0.875rem;
    color: #6b7280;
}

.footer-social {
    margin-top: 0.85rem;
}

.footer-heading {
    margin: 0 0 0.55rem;
    font-weight: 600;
    color: #1f2937;
    font-size: 0.9rem;
}

.footer-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.45rem;
    font-size: 0.875rem;
}

.footer-list a {
    color: #4b5563;
    text-decoration: none;
    transition: color 0.15s ease;
}

.footer-list a:hover {
    color: #155e75;
}

.footer-email {
    word-break: break-word;
    overflow-wrap: anywhere;
}

.footer-phone {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 2.25rem;
}

.footer-phone-icon {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

.site-footer-copy {
    margin-top: 1.35rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    text-align: center;
    font-size: 0.75rem;
    color: #6b7280;
    line-height: 1.45;
}

@media (max-width: 767px) {
    .site-footer-inner {
        padding-top: 1.35rem;
        padding-bottom: calc(1.35rem + env(safe-area-inset-bottom, 0px));
    }

    .site-footer-brand {
        text-align: center;
    }

    .footer-brand {
        justify-content: center;
        width: 100%;
    }

    .footer-social .social-links {
        justify-content: center;
    }

    .site-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem 1.25rem;
    }

    .site-footer-brand {
        grid-column: 1 / -1;
    }

    .site-footer-links,
    .site-footer-contact {
        padding-top: 0.85rem;
        border-top: 1px solid #e5e7eb;
    }

    .footer-list {
        gap: 0.35rem;
    }

    .footer-list a,
    .footer-phone {
        display: inline-flex;
        align-items: center;
        min-height: 2.35rem;
        padding: 0.1rem 0;
    }

    .site-footer-copy {
        margin-top: 1rem;
        padding-top: 0.9rem;
        padding-right: 3.25rem; /* espacio para botón volver arriba */
    }
}

@media (min-width: 768px) {
    .site-footer-inner {
        padding: 2.5rem 1rem 1.75rem;
    }

    .site-footer-grid {
        grid-template-columns: 1.3fr 0.85fr 1.1fr;
        gap: 2rem;
    }

    .footer-logo {
        width: 3rem;
        height: 3rem;
    }

    .site-footer-copy {
        margin-top: 2rem;
        padding-top: 1.5rem;
        font-size: 0.875rem;
        padding-right: 0;
    }
}

/* —— Volver arriba —— */
.back-to-top {
    position: fixed;
    right: 1rem;
    bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
    z-index: 45;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #0e7490;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(14, 116, 144, 0.28);
    cursor: pointer;
    opacity: 0;
    transform: translateY(0.5rem);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.15s ease;
}

.back-to-top.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.back-to-top:hover {
    background: #155e75;
}

.back-to-top[hidden] {
    display: none !important;
}

.back-to-top-label {
    display: none;
}

@media (max-width: 480px) {
    .back-to-top {
        right: 0.85rem;
        bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
        width: 2.6rem;
        height: 2.6rem;
    }
}


