body {
    background-color: #f1f1f1 !important;
    overflow-x: hidden !important;
    min-height: 100vh !important;
    font-family: 'Poppins', sans-serif !important;
}

html {
    scroll-behavior: smooth !important;
}

/* Header mejorado */
header.header.shop {
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08) !important;
    z-index: 999 !important;
}

.d-flex.justify-content-between.align-items-center {
    max-width: 1400px;
    margin: 0 auto;
}

.sinlge-bar.shopping .single-icon {
    transition: transform 0.3s ease;
}

.sinlge-bar.shopping .single-icon:hover {
    transform: scale(1.05);
}

/* Contenedor principal con fondo */
.main-categories-area {
    background: #f1f1f1;
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 10px 0;
    padding: clamp(20px, 3vw, 40px) 0;
}

.main-categories-area > div {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 clamp(20px, 3vw, 40px);
}

/* ========================================
   SECCIÓN PRODUCTOS DESTACADOS
   ======================================== */
.featured-products-section {
    width: 100%;
    background: linear-gradient(135deg, #ffffff 0%, #fff9e6 25%, #F6DA01 50%, #fff9e6 75%, #ffffff 100%);
    padding: 60px 20px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(246, 218, 1, 0.15);
}

.featured-products-section::before {
    content: '';
    position: absolute;
    top: -30%;
    text-shadow: 2px 2px 4px rgba(246, 218, 1, 0.3);
}

.featured-header p {
    font-size: 1.1rem;
    color: #555;
    margin: 0;
    font-weight: 500;
}

.featured-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.featured-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #222;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.3);
}

.featured-header p {
    font-size: 1.1rem;
    color: #333;
    margin: 0;
    font-weight: 500;
}

.featured-products-carousel-wrapper {
    position: relative;
    max-width: min(1200px, 95vw);
    margin: 0 auto;
    padding: 0 clamp(30px, 5vw, 40px);
    z-index: 1;
}

.featured-products-grid {
    display: flex;
    overflow: hidden;
    gap: clamp(15px, 2.5vw, 25px);
    scroll-behavior: smooth;
    position: relative;
    justify-content: center;
}

.featured-products-carousel {
    display: flex;
    transition: transform 0.5s ease;
    gap: clamp(15px, 2.5vw, 25px);
    justify-content: center;
}

.featured-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #F6DA01 0%, #ffffff 100%);
    color: #222;
    border: 2px solid #F6DA01;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(246, 218, 1, 0.3);
}

.featured-carousel-btn:hover {
    background: linear-gradient(135deg, #ffffff 0%, #F6DA01 100%);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 25px rgba(246, 218, 1, 0.5);
}

.featured-carousel-btn.prev {
    left: 0;
}

.featured-carousel-btn.next {
    right: 0;
}

.featured-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.featured-carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(246, 218, 1, 0.4);
    border: 2px solid #F6DA01;
    cursor: pointer;
    transition: all 0.3s ease;
}

.featured-carousel-dot.active {
    background: #F6DA01;
    border-color: #F6DA01;
    transform: scale(1.3);
    box-shadow: 0 0 15px rgba(246, 218, 1, 0.6);
}

.featured-product-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transition: all 0.35s ease;
    position: relative;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
    min-width: clamp(220px, 28vw, 280px);
    max-width: 280px;
    flex-shrink: 0;
}

/* Responsive orientations for featured cards */
@media (orientation: landscape) and (max-height: 800px) {
    .featured-product-card {
        min-width: clamp(200px, 25vw, 240px);
        max-width: 240px;
    }
}

@media (orientation: portrait) {
    .featured-product-card {
        min-width: clamp(240px, 70vw, 300px);
        max-width: 300px;
    }
}

@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    .featured-product-card {
        min-width: clamp(200px, 30vw, 260px);
    }
}

@media (max-width: 640px) and (orientation: portrait) {
    .featured-product-card {
        min-width: clamp(260px, 80vw, 320px);
        max-width: 320px;
    }
}

@media (max-width: 900px) and (orientation: landscape) and (max-height: 500px) {
    .featured-product-card {
        min-width: 180px;
        max-width: 200px;
    }
}

.featured-product-card::before {
    content: '\f005  DESTACADO';
    font-family: 'Font Awesome 5 Free', sans-serif;
    font-weight: 900;
    position: absolute;
    top: 15px;
    left: -35px;
    background: linear-gradient(135deg, #F6DA01 0%, #ffffff 100%);
    color: #222;
    padding: 5px 40px;
    font-size: 0.75rem;
    font-weight: 700;
    transform: rotate(-45deg);
    z-index: 2;
    box-shadow: 0 2px 8px rgba(246, 218, 1, 0.4);
    letter-spacing: 0.5px;
    border: 1px solid rgba(246, 218, 1, 0.3);
}

.featured-product-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 18px 50px rgba(246, 218, 1, 0.28);
}

.featured-product-image {
    position: relative;
    padding-top: 70%;
    overflow: hidden;
    background: #f8f8f8;
    border-radius: 16px 16px 0 0;
}

.featured-product-image img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 78%;
    max-height: 78%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.featured-product-card:hover .featured-product-image img {
    transform: translate(-50%, -50%) scale(1.03);
}

/* Badge de orden destacado */
.featured-order-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #F6DA01 0%, #FFE44D 100%);
    color: #222;
    font-weight: 800;
    font-size: 0.9rem;
    padding: 6px 12px;
    border-radius: 20px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(246, 218, 1, 0.4), 
                0 4px 16px rgba(0, 0, 0, 0.1);
    border: 2px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(246, 218, 1, 0.4), 0 4px 16px rgba(0, 0, 0, 0.1);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(246, 218, 1, 0.6), 0 6px 20px rgba(0, 0, 0, 0.15);
    }
}

.featured-product-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.featured-product-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #222;
    margin: 0 0 12px 0;
    line-height: 1.4;
    min-height: 2.8em;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: center;
}

.featured-price-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.featured-product-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: #222;
}

.featured-original-price {
    font-size: 1rem;
    color: #999;
    text-decoration: line-through;
    font-weight: 500;
}

.featured-discount-badge {
    background: #ff4444;
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
}

.featured-add-to-cart {
    background: #F6DA01;
    color: #222;
    border: none;
    border-radius: 10px;
    padding: 14px 20px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: auto;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.featured-add-to-cart i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.featured-add-to-cart:hover {
    background: #222;
    color: #F6DA01;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(34, 34, 34, 0.2);
}

.featured-add-to-cart:hover i {
    transform: scale(1.2);
}

.featured-add-to-cart:active {
    transform: translateY(0);
}

/* Responsive - Tablets */
@media (max-width: 992px) {
    .featured-products-carousel-wrapper {
        padding: 0 50px;
    }
    
    .featured-carousel-btn {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .featured-header h2 {
        font-size: 2rem;
    }
}

/* Responsive - Móviles grandes */
@media (max-width: 768px) {
    .featured-products-section {
        padding: 40px 15px;
    }
    
    .featured-products-carousel-wrapper {
        padding: 0 45px;
    }
    
    .featured-carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .featured-product-card {
        min-width: 240px;
    }
    
    .featured-header h2 {
        font-size: 1.75rem;
    }
    
    .featured-header p {
        font-size: 1rem;
    }
    
    .featured-product-card::before {
        font-size: 0.65rem;
        padding: 4px 35px;
    }
}

/* Responsive - Móviles pequeños */
@media (max-width: 480px) {
    .featured-products-section {
        padding: 30px 10px;
    }
    
    .featured-products-carousel-wrapper {
        padding: 0 40px;
    }
    
    .featured-carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .featured-product-card {
        min-width: 85%;
    }
    
    .featured-header h2 {
        font-size: 1.5rem;
    }
}

/* Loading state para productos destacados */
.featured-loading {
    text-align: center;
    padding: 60px 20px;
    color: #222;
    font-size: 1.2rem;
    font-weight: 600;
}

.featured-loading i {
    font-size: 2rem;
    margin-bottom: 15px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ========================================
   TÍTULOS DE SECCIONES
   ======================================== */
.section-header {
    position: relative;
    padding: clamp(20px, 3vw, 30px) 0;
    text-align: center !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: min(1200px, 95vw);
    margin: 0 auto;
    gap: clamp(10px, 2vw, 15px);
    padding-left: clamp(20px, 4vw, 30px);
    padding-right: clamp(20px, 4vw, 30px);
}

.section-header::after {
    content: '';
    display: block;
    width: clamp(80px, 12vw, 100px);
    height: clamp(4px, 0.6vw, 5px);
    background: linear-gradient(90deg, transparent, #F6DA01, transparent);
    margin: clamp(12px, 2.5vw, 18px) auto 0;
    border-radius: 3px;
}

.section-header h2 {
    position: relative;
    display: block;
    text-align: center !important;
    width: 100%;
    margin: 0 auto;
    font-size: clamp(1.8rem, 5.5vw, 2.8rem);
}

.section-header p {
    text-align: center !important;
    width: 100%;
    margin: 0 auto;
    font-size: clamp(1rem, 2.8vw, 1.3rem);
}

/* Landscape - header más compacto */
@media (orientation: landscape) and (max-height: 800px) {
    .section-header {
        padding: 10px 0;
        gap: 6px;
    }
    
    .section-header h2 {
        font-size: clamp(1.2rem, 4vw, 2rem);
    }
    
    .section-header p {
        font-size: clamp(0.85rem, 2vw, 1rem);
    }
}

.section-header h2 i {
    animation: sectionIconPulse 2s ease-in-out infinite;
}

@keyframes sectionIconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive para títulos de sección */
@media (max-width: 768px) {
    .section-header h2 {
        font-size: 2rem !important;
    }
    
    .section-header p {
        font-size: 1rem !important;
    }
}

@media (max-width: 480px) {
    .section-header h2 {
        font-size: 1.5rem !important;
    }
    
    .section-header p {
        font-size: 0.9rem !important;
    }
    
    .section-header::after {
        width: 60px;
        height: 3px;
    }
}

.categories-bar-wrapper {
    width: 100%;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70px;
    padding: 0px;
    z-index: 10;
}
.swal2-container { z-index: 999999 !important; }

.sticky-categories {
    position: fixed;
    padding: 20px 0 10px 0;
    z-index: 180;
    width: 100%;
    background-color: #e4e4e4 !important;
}

@media (max-width: 900px) {
    .sticky-categories {
        top: 80px;
    }
}

.categories-bar-scroll {
    overflow-x: auto;
    white-space: nowrap;
    width: 80vw;
    max-width: 3500px;
    min-width: 200px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 20px 0 rgba(0, 0, 0, .04);
    padding: 15px 0;
    display: flex;
    align-items: center;
    transition: box-shadow .2s;
    cursor: grab;
    scroll-behavior: smooth;
}

.categories-bar-scroll:active {
    cursor: grabbing;
}

.categories-bar-scroll::-webkit-scrollbar {
    display: none
}

.category-btn {
    display: inline-block;
    margin: 0 8px;
    padding: 20px 42px;
    border: 1px solid rgba(246, 218, 1, 0.5);
    background: #F6DA01;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    font-size: 20px;
    color: #222;
    transition: all .3s ease;
    box-shadow: none;
    position: relative;
    overflow: hidden;
}

.category-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(34, 34, 34, 0.3), transparent);
    transition: left 0.5s;
}

.category-btn:hover::before {
    left: 100%;
}

.category-btn.active,
.category-btn:hover {
    background: #222;
    color: #fff;
    box-shadow: 0 2px 8px 0 rgba(34, 34, 34, .25);
    font-weight: 600;
}

.categories-scroll-btn {
    background: #F6DA01;
    border: 1px solid rgba(246, 218, 1, 0.5);
    border-radius: 50%;
    width: 90px;
    height: 90px;
    font-size: 32px;
    cursor: pointer;
    margin: 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #222;
    transition: all .3s ease;
    z-index: 2;
    box-shadow: 0 2px 12px rgba(246, 218, 1, 0.2);
}

.categories-scroll-btn:hover {
    background: #E6CA01;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(246, 218, 1, 0.3);
}

.categories-scroll-btn.left {
    order: 0
}

.categories-scroll-btn.right {
    order: 2
}

.categories-bar-scroll {
    order: 1
}

@media(max-width:900px) {
    .categories-bar-scroll {
        width: 95vw
    }
}

@media(max-width:600px) {
    .category-btn {
        padding: 7px 12px;
        font-size: 13px;
        border: 1px solid rgba(246, 218, 1, 0.3);
    }

    .categories-scroll-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
        margin: 0 5px;
        border: 1px solid rgba(246, 218, 1, 0.3);
    }

    .categories-bar-scroll {
        min-width: 100px
    }
}


.category-card,
.subcategory-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    color: #222;
    transition: all 0.35s ease;
    position: relative;
    width: 100%;
    max-width: 220px;
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.category-image,
.subcategory-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.category-overlay, .subcategory-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(246,218,1,0.9);
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.category-card:hover .category-image,
.subcategory-card:hover .subcategory-image { transform: scale(1.05); }

.no-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f8f8;
    color: #666;
    font-size: 2rem;
}
.category-card:hover,
.subcategory-card:hover {
    color: #fff;
    transform: translateY(-6px) scale(1.02);
}
.category-card-title, .subcategory-card-title {
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    margin: 0;
}

.single-product {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px 0 rgba(0, 0, 0, 0.07);
    padding: 18px 12px 22px 12px;
    border: 1px solid #f1f1f1;
    transition: all .3s ease;
    position: relative;
    overflow: hidden;
}

.single-product::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #F6DA01, #F0D000, #F6DA01);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.single-product:hover::before {
    transform: translateX(0);
}

.single-product:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px 0 rgba(246, 218, 1, 0.15);
}

.single-product .product-img {
    background: #f8f8f8;
    border-radius: 16px;
}

.single-product .product-action-2 {
    opacity: 1 !important;
    visibility: visible !important;
    position: static !important;
    transform: none !important;
    transition: none !important;
}

.single-product:hover .product-action-2 {
    opacity: 1 !important;
    visibility: visible !important;
    position: static !important;
    transform: none !important;
}

.product-content-row .product-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.product-content-row .product-info h3 {
    margin: 0 0 4px 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #111 !important;
    text-decoration: none !important;
}

.product-content-row .product-price {
    margin-bottom: 0;
    font-size: 1.35rem;
    font-weight: 700;
    color: #F6DA01;
}

.product-content-row .add-to-cart-btn {
    align-self: center;
    padding: 8px 18px;
    font-size: 15px;
    background: #F6DA01 !important;
    color: #222 !important;
    border: none;
    font-weight: 600;
    transition: all .3s ease;
    box-shadow: 0 2px 8px rgba(246, 218, 1, 0.2);
}

.product-content-row .add-to-cart-btn:hover {
    background: #E6CA01 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(246, 218, 1, 0.3);
}

@media(max-width:600px) {
    .product-content-row {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .product-content-row .add-to-cart-btn {
        margin-left: 0;
        width: 100%;
    }
}

.product-img {
    width: 100%;
    max-width: 400px;
    height: 280px;
    margin: 0 auto;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f8f8;
    border-radius: 16px;
}

.product-img img {
    width: auto;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

@media (max-width: 768px) {
    .product-img {
        height: 220px;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .product-img {
        height: 180px;
    }
}

.single-product:hover .product-img img {
    transform: scale(1.05);
}

.product-area.shop-sidebar.shop.section {
    padding-left: 16px;
    padding-right: 16px;
    max-height: none !important;
    overflow: visible !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* Estilos para las categorías y subcategorías - ADAPTATIVO */
#categories-container,
#subcategories-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(30px, 4vw, 50px);
    margin: clamp(40px, 5vw, 60px) auto;
    max-width: min(1400px, 90vw);
    padding: 0 clamp(30px, 4vw, 60px);
    justify-content: center;
    justify-items: center;
    align-items: center;
    width: 100%;
}

/* Portrait móvil - 2 columnas fijas */
@media (orientation: portrait) and (max-width: 640px) {
    #categories-container,
    #subcategories-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
        padding: 0 25px;
        margin: 40px auto;
        max-width: 95vw;
    }
}

/* Portrait tablet - 3 columnas centradas */
@media (orientation: portrait) and (min-width: 641px) {
    #categories-container,
    #subcategories-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
        padding: 0 30px;
        max-width: 90vw;
    }
}

/* Landscape móvil pequeño - 3 columnas compactas */
@media (orientation: landscape) and (max-height: 500px) {
    #categories-container,
    #subcategories-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
        padding: 0 30px;
        margin: 30px auto;
        max-width: 85vw;
    }
}

/* Landscape móvil/tablet - 3 columnas bien espaciadas */
@media (orientation: landscape) and (min-height: 501px) and (max-height: 900px) {
    #categories-container,
    #subcategories-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 35px;
        padding: 0 35px;
        max-width: 88vw;
    }
}

/* Desktop grande - 4 columnas */
@media (min-width: 1400px) {
    #categories-container,
    #subcategories-container {
        grid-template-columns: repeat(4, 1fr);
        gap: 40px;
        padding: 0 50px;
        max-width: 1500px;
    }
}

.category-card,
.subcategory-card {
    position: relative;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: clamp(18px, 3vw, 24px);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.35s ease;
    background: linear-gradient(135deg, #fff 0%, #f6f6f6 100%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: clamp(180px, 20vw, 280px);
}

.category-card:hover,
.subcategory-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 20px 50px rgba(246, 218, 1, 0.3);
    border-color: rgba(246, 218, 1, 0.6);
}

/* Portrait móvil - tarjetas optimizadas */
@media (orientation: portrait) and (max-width: 640px) {
    .category-card,
    .subcategory-card {
        border-radius: 20px;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
        min-height: clamp(150px, 35vw, 200px);
    }
    
    .category-card:hover,
    .subcategory-card:hover {
        transform: translateY(-6px) scale(1.03);
    }
}

/* Landscape - tarjetas centradas y proporcionadas */
@media (orientation: landscape) {
    .category-card,
    .subcategory-card {
        border-radius: 20px;
        box-shadow: 0 8px 22px rgba(0, 0, 0, 0.11);
        min-height: clamp(140px, 25vh, 220px);
    }
    
    .category-card:hover,
    .subcategory-card:hover {
        transform: translateY(-4px) scale(1.02);
    }
}

.category-image,
.subcategory-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: clamp(12px, 2.5vw, 20px);
    z-index: 1;
    transition: transform 0.45s ease;
}

.no-image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(2rem, 8vw, 3rem);
    color: #ccc;
    z-index: 1;
}

.category-overlay,
.subcategory-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.6) 70%, transparent 100%);
    padding: clamp(10px, 2vw, 16px) clamp(8px, 1.5vw, 12px);
    text-align: center;
    z-index: 2;
    min-height: 30%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

/* Portrait - overlay más prominente */
@media (orientation: portrait) and (max-width: 640px) {
    .category-overlay,
    .subcategory-overlay {
        min-height: 32%;
        padding: 12px 10px;
    }
}

/* Landscape - overlay más compacto */
@media (orientation: landscape) and (max-height: 600px) {
    .category-overlay,
    .subcategory-overlay {
        min-height: 28%;
        padding: 8px 6px;
    }
}

.category-card:hover .category-overlay,
.subcategory-card:hover .subcategory-overlay {
    background: linear-gradient(to top, rgba(246, 218, 1, 0.95) 0%, rgba(246, 218, 1, 0.7) 60%, transparent 100%);
}

.category-title,
.subcategory-title {
    color: white;
    margin: 0;
    font-size: clamp(0.85rem, 2.5vw, 1.1rem);
    font-weight: 700;
    line-height: 1.2;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    padding: 0 clamp(8px, 1.5vw, 12px);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Portrait - títulos más legibles */
@media (orientation: portrait) and (max-width: 640px) {
    .category-title,
    .subcategory-title {
        font-size: 0.9rem;
        line-height: 1.3;
        letter-spacing: 0.2px;
        -webkit-line-clamp: 2;
    }
}

/* Landscape - títulos compactos */
@media (orientation: landscape) and (max-height: 600px) {
    .category-title,
    .subcategory-title {
        font-size: 0.8rem;
        line-height: 1.2;
        letter-spacing: 0.2px;
        -webkit-line-clamp: 2;
    }
}

.category-card:hover .category-title,
.subcategory-card:hover .subcategory-title {
    color: #222;
    text-shadow: none;
    transform: translateY(-3px);
    font-weight: 800;
}

.product-card {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    background-color: white;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-img-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-content {
    padding: 15px;
}

.product-title {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    color: #333;
}

.price-container {
    margin-bottom: 15px;
}

.product-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #F7941D;
}

.add-to-cart {
    width: 100%;
    padding: 10px;
    border: none;
    background-color: #F7941D;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.3s ease;
}

.add-to-cart:hover {
    background-color: #e58718;
}
.product-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.06);
    padding: 0;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 2px solid transparent;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #F6DA01, #F0D000, #F6DA01);
    transform: scaleX(0);
    transition: transform 0.5s ease;
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
    border-color: rgba(246, 218, 1, 0.3);
}

.product-card .product-img-wrapper {
    position: relative;
    padding-top: 75%;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
    background: linear-gradient(135deg, #f8f8f8 0%, #fff 100%);
}

.product-card .product-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 85%;
    max-height: 85%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.product-card:hover .product-img {
    transform: translate(-50%, -50%) scale(1.03);
}

.product-card .product-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 18px;
}

.product-card .product-title {
    font-size: 1rem;
    font-weight: 600;
    color: #222;
    margin: 0 0 10px 0;
    line-height: 1.4;
    min-height: 2.8em;
    text-align: center;
}

.product-card .product-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: #222;
    margin-bottom: 15px;
    text-align: center;
}

.product-card .add-to-cart {
    background: #F6DA01;
    color: #222;
    border: none;
    border-radius: 12px;
    padding: 13px 20px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: auto;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-card .add-to-cart i {
    font-size: 1.1rem;
}

.product-card .add-to-cart:hover {
    background: #222;
    color: #F6DA01;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(34, 34, 34, 0.2);
}

.product-card .add-to-cart:active {
    transform: translateY(0);
}

/* ========================================
   PRODUCTO SINGULAR / DESTACADO
   ======================================== */
.product-card-singular {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    padding: 0;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    max-width: 600px;
    margin: 40px auto;
    display: flex;
    flex-direction: column;
    border: 3px solid transparent;
}

.product-card-singular::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #F6DA01, #F0D000, #F6DA01);
    transform: scaleX(1);
}

.product-card-singular:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 45px rgba(246, 218, 1, 0.25);
    border-color: rgba(246, 218, 1, 0.4);
}

.product-card-singular .product-img-wrapper {
    position: relative;
    padding-top: 65%;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff 0%, #f9f9f9 100%);
    border-radius: 20px 20px 0 0;
}

.product-card-singular .product-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 70%;
    max-height: 70%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.product-card-singular:hover .product-img {
    transform: translate(-50%, -50%) scale(1.05);
}

.product-card-singular .product-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-card-singular .product-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #222;
    margin: 0;
    line-height: 1.4;
    text-align: center;
}

.product-card-singular .product-price {
    font-size: 2rem;
    font-weight: 900;
    color: #222;
    text-align: center;
    margin: 0;
}

.product-card-singular .product-original-price {
    font-size: 1.2rem;
    color: #999;
    text-decoration: line-through;
    margin-left: 10px;
}

.product-card-singular .product-discount {
    background: #ff4444;
    color: white;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-left: 10px;
    display: inline-block;
}

.product-card-singular .add-to-cart {
    background: #F6DA01;
    color: #222;
    border: none;
    border-radius: 50px;
    padding: 18px 40px;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(246, 218, 1, 0.3);
}

.product-card-singular .add-to-cart i {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.product-card-singular .add-to-cart:hover {
    background: #222;
    color: #F6DA01;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(34, 34, 34, 0.3);
}

.product-card-singular .add-to-cart:hover i {
    transform: scale(1.2) rotate(10deg);
}

.product-card-singular .add-to-cart:active {
    transform: translateY(-1px);
}

/* Responsive para producto singular */
@media (max-width: 768px) {
    .product-card-singular {
        max-width: 90%;
        margin: 30px auto;
    }
    
    .product-card-singular .product-content {
        padding: 25px;
        gap: 15px;
    }
    
    .product-card-singular .product-title {
        font-size: 1.3rem;
    }
    
    .product-card-singular .product-price {
        font-size: 1.7rem;
    }
    
    .product-card-singular .add-to-cart {
        padding: 16px 35px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .product-card-singular {
        max-width: 95%;
        margin: 20px auto;
    }
    
    .product-card-singular .product-content {
        padding: 20px;
        gap: 12px;
    }
    
    .product-card-singular .product-title {
        font-size: 1.15rem;
    }
    
    .product-card-singular .product-price {
        font-size: 1.5rem;
    }
    
    .product-card-singular .add-to-cart {
        padding: 14px 30px;
        font-size: 0.95rem;
    }
}

/* ========================================
   CONTENEDOR DEL BOTÓN VOLVER ATRÁS
   ======================================== */
#back-button-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0;
}

/* ========================================
   BOTÓN VOLVER ATRÁS
   ======================================== */
.back-to-categories {
    /* YA NO usa grid-column porque está fuera del grid */
    margin: 25px auto 25px auto !important;
    display: block !important;
    padding: 12px 28px !important;
    background: #F6DA01 !important;
    color: #222 !important;
    border: 2px solid transparent !important;
    border-radius: 50px !important;
    cursor: pointer !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(246, 218, 1, 0.3) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    position: relative !important;
    overflow: hidden !important;
    width: fit-content !important;
    max-width: 90% !important;
    z-index: 10 !important;
}

.back-to-categories.hidden {
    display: none !important;
}

.back-to-categories::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(34, 34, 34, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.back-to-categories:hover::before {
    width: 300px;
    height: 300px;
}

.back-to-categories:hover {
    background: #222 !important;
    color: #F6DA01 !important;
    border-color: #F6DA01 !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 20px rgba(34, 34, 34, 0.4) !important;
}

.back-to-categories i {
    margin-right: 8px;
    font-size: 1rem;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.back-to-categories:hover i {
    transform: translateX(-5px);
}

.back-to-categories:active {
    transform: translateY(-1px) !important;
}

/* Portrait - botón más compacto y centrado */
@media (orientation: portrait) and (max-width: 640px) {
    .back-to-categories {
        margin: 18px auto 18px auto !important;
        padding: 10px 22px !important;
        font-size: 0.85rem !important;
        letter-spacing: 0.3px !important;
    }
    
    .back-to-categories i {
        font-size: 0.9rem;
        margin-right: 6px;
    }
}

/* Tablets */
@media (min-width: 641px) and (max-width: 1024px) {
    .back-to-categories {
        margin: 20px auto 20px auto !important;
        padding: 11px 25px !important;
        font-size: 0.9rem !important;
    }
}

/* Muy pequeño */
@media (max-width: 480px) {
    .back-to-categories {
        margin: 15px auto 15px auto !important;
        padding: 9px 20px !important;
        font-size: 0.8rem !important;
        max-width: 85% !important;
    }
    
    .back-to-categories i {
        font-size: 0.85rem;
        margin-right: 5px;
    }
}

#products-container {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr); /* 3 columnas por defecto en desktop */
    gap: clamp(20px, 3vw, 30px);
    max-width: min(1400px, 95vw);
    margin: clamp(30px, 4vw, 50px) auto;
    padding: 0 clamp(20px, 4vw, 60px);
    justify-content: center;
    justify-items: center;
    align-items: stretch;
    width: 100%;
    max-height: none !important;
    overflow: visible !important;
}

#services-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columnas por defecto en desktop */
    gap: clamp(20px, 3vw, 30px);
    max-width: min(1400px, 95vw);
    margin: clamp(30px, 4vw, 50px) auto;
    padding: 0 clamp(20px, 4vw, 60px);
    justify-content: center;
    justify-items: center;
    width: 100%;
}

/* Tablets pequeñas - 2 columnas */
@media (max-width: 900px) and (min-width: 481px) {
    #products-container,
    #services-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 0 20px;
    }
}

/* Mobile - 1 columna */
@media (max-width: 480px) {
    #products-container,
    #services-container {
        grid-template-columns: repeat(1, 1fr);
        gap: 15px;
        padding: 0 15px;
    }
}

@media (max-width: 1200px) {
    #products-container { gap: 25px; }
}
@media (max-width: 768px) {
    #products-container { gap: 20px; }
}
@media (max-width: 480px) {
    #products-container { max-width: 100%; gap: 15px; }
}

@media (max-width: 768px) {
    body {
        -webkit-overflow-scrolling: touch !important;
    }
}

.single-product {
    border-radius: 16px;
}

.single-product .product-img,
.product-img {
    border-radius: 16px;
}

.categories-bar-scroll {
    border-radius: 16px;
}

.header .shopping-list li {
    z-index: 9999 !important;
}

.logo img {
    max-height: 45px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: filter 0.3s ease;
}

.logo img:hover {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.middle-inner {
    background: #F6DA01 !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.middle-inner > div {
    max-width: 1400px;
    width: 100%;
}


.header-scroll-btn {
    background: rgba(255, 255, 255, 0.3) !important;
    border: none !important;
    border-radius: 50% !important;
    width: 35px !important;
    height: 35px !important;
    font-size: 14px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #222 !important;
    transition: all 0.3s ease !important;
    backdrop-filter: blur(10px) !important;
    z-index: 3;
    flex-shrink: 0;
    margin: 0 5px;
}

.header-scroll-btn:hover {
    background: rgba(255, 255, 255, 0.5) !important;
    transform: translateY(-1px);
}

.header-scroll-btn:active {
    transform: translateY(0);
}

/* Estilos para el contenedor de scroll */
.header-categories-scroll {
    flex: 1;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 5px;
    scroll-behavior: smooth;
    margin: 0 10px;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
}

.header-categories-scroll::-webkit-scrollbar {
    display: none;
}

/* Estilos para los botones de navegación */
.header-scroll-btn {
    background: rgba(34, 34, 34, 0.1) !important;
    border: none !important;
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    font-size: 16px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #222 !important;
    transition: all 0.3s ease !important;
    backdrop-filter: blur(5px) !important;
    z-index: 3;
    flex-shrink: 0;
    margin: 0 5px;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
}

.header-scroll-btn:hover {
    background: rgba(34, 34, 34, 0.2) !important;
    transform: translateY(-1px);
}

.header-categories-scroll {
    flex: 1;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 8px;
    scroll-behavior: smooth;
    cursor: grab;
    position: relative;
    height: 100%;
}

/* Media queries para dispositivos móviles */
@media (max-width: 768px) {
    .header-categories-center {
        margin: 0;
        height: 60px;
        min-height: 60px;
        width: 100%;
        padding: 8px 0;
    }

    .header-categories-scroll {
        margin: 0 8px;
        border-radius: 20px;
    }

    .header-scroll-btn {
        width: 30px !important;
        height: 30px !important;
        min-width: 30px !important;
        font-size: 12px !important;
    }

    .header-category-btn {
        padding: 8px 18px; /* Más padding */
    font-size: 14px; /* Tamaño de fuente ligeramente mayor */
    height: 40px; /* Altura aumentada */
    min-width: 60px; /* Ancho mínimo mayor */
    border-radius: 20px; 
    }
}
.d-flex.justify-content-between.align-items-center.py-1 {
    min-height: 70px !important; /* Aumenta la altura mínima */
    padding: 0 20px !important; /* Más padding lateral */
}
@media (max-width: 480px) {
    .middle-inner {
        padding: 0 5px;
    }

    .header-categories-center {
        margin: 0;
        height: 36px;
        width: 100%;
    }

    .header-categories-scroll {
        margin: 0 5px;
        gap: 5px;
        padding: 0 3px;
        border-radius: 18px;
    }

    .header-scroll-btn {
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
        font-size: 11px !important;
    }

    .header-category-btn {
        padding: 4px 10px;
        font-size: 11px;
        height: 26px;
        min-width: auto;
    }
}

    .header-scroll-btn:hover {
        background: rgba(255, 255, 255, 0.5) !important;
        transform: scale(1.1);
    }

.header-scroll-btn:active {
    transform: translateY(0) !important;
}

/* Contenedor de categorías */
    .header-categories-scroll {
        overflow-x: auto;
        white-space: nowrap;
        width: 100%;
        scrollbar-width: none;
        -ms-overflow-style: none;
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 8px 0;
        justify-content: center;
        scroll-behavior: smooth; /* Desplazamiento suave */
    }

    /* Ocultar scrollbar en navegadores WebKit */
    .header-categories-scroll::-webkit-scrollbar {
        display: none;
    }

.header-categories-scroll:active {
    cursor: grabbing;
}

.header-categories-scroll::-webkit-scrollbar {
    display: none;
}

.header-category-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 4px;
    padding: 8px 20px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    color: #222;
    transition: all 0.25s ease;
    white-space: nowrap;
    flex-shrink: 0;
    height: 40px;
    min-width: 80px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    text-transform: capitalize;
}

.header-category-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.header-category-btn.active {
    background: #222;
    color: #F6DA01;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.header-category-btn.active {
    background: #222;
    color: #fff;
    font-weight: 700;
    transform: translateY(-1px);
    box-shadow: none;
    outline: none;
}

.header-category-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
    box-shadow: none;
    outline: none;
}

.header-category-btn.active:hover {
    background: #111;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: none;
    outline: none;
}

.header-categories-center::before {
        content: '';
        position: absolute;
        left: 40px; /* Ajuste para no solapar con el botón de flecha */
        top: 0;
        bottom: 0;
        width: 30px;
        background: linear-gradient(to right, rgba(246, 218, 1, 0.9), transparent);
        pointer-events: none;
        z-index: 2;
        opacity: 0; /* Inicialmente oculto */
        transition: opacity 0.3s;
    }

.header-categories-center::after {
        content: '';
        position: absolute;
        right: 40px; /* Ajuste para no solapar con el botón de flecha */
        top: 0;
        bottom: 0;
        width: 30px; /* Ancho aumentado para mejor efecto */
        background: linear-gradient(to left, rgba(246, 218, 1, 0.9), transparent);
        pointer-events: none;
        z-index: 2; /* Asegura que esté sobre el scroll */
    }

.header-categories-center {
    width: 70%;
    max-width: 70%;
    height: 60px; /* Aumentamos la altura */
    margin: 5px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    padding: 0 5px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

@media(max-width:1024px) {
    .header-categories-center {
        max-width: 100% !important;
        margin: 5px 15px !important;
        height: 55px;
    }
}

@media(max-width:768px) {
    .header-categories-center {
        max-width: 300px !important;
        margin: 0 15px !important;
    }

    .header-category-btn {
        padding: 5px 10px;
        font-size: 11px;
        margin: 0 1px;
    }
    
    .header-category-btn:hover {
        background: #e1e1e1;
        transform: translateY(-2px);
    }
}

@media(max-width:600px) {
    .header-categories-center {
        display: none !important;
    }
}
.header-categories-center.scroll-start::before {
        opacity: 1;
    }

/* Eliminar bordes y outlines de botones */
button,
.btn,
input[type="button"],
input[type="submit"] {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

button:focus,
.btn:focus,
input[type="button"]:focus,
input[type="submit"]:focus {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

.swal2-popup .swal2-actions button {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

.swal2-popup .swal2-actions button:focus {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

.category-indicator {
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(246, 218, 1, 0.3);
    z-index: 90;
    position: sticky;
    top: 70px;
    transition: all 0.3s ease;
}

.category-indicator .card-body {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.category-indicator .category-icon {
    width: 6px;
    height: 6px;
    background: #F6DA01;
    border-radius: 50%;
    flex-shrink: 0;
}

.category-indicator .category-title {
    display: none;
}

.category-indicator .category-name {
    font-size: 13px;
    font-weight: 600;
    color: #222;
    margin: 0;
}

.category-indicator .category-subtitle {
    display: none;
}

@media(max-width:768px) {
    .category-indicator {
        padding: 6px 15px;
        top: 60px;
    }

    .category-indicator .category-name {
        font-size: 12px;
    }
}

body::-webkit-scrollbar {
    width: 12px;
}

body::-webkit-scrollbar-track {
    background: #f1f1f1;
}

body::-webkit-scrollbar-thumb {
    background: #F6DA01;
    border-radius: 6px;
}

body::-webkit-scrollbar-thumb:hover {
    background: #E6CA01;
}

.switch-btn:hover {
    transform: translateY(-1px);
}

.switch-btn.active {
    font-weight: 700;
}

@media(max-width:600px) {
    .product-service-switch-wrapper {
        margin: 15px 0 25px 0 !important;
        padding: 0 15px !important;
    }

    .switch-btn {
        min-width: 120px !important;
        font-size: 14px !important;
        padding: 10px 20px !important;
    }

    .switch-btn i {
        margin-right: 5px !important;
    }
}

.container,
.container-fluid {
    height: auto !important;
    min-height: auto !important;
}

/* Estilos mejorados del carrito */
.shopping-item {
    position: absolute;
    top: 100%;
    right: 0;
    width: 280px;
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(246, 218, 1, 0.1);
}

.sinlge-bar.shopping:hover .shopping-item {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-cart-header {
    padding: 15px 0;
    border-bottom: 1px solid #f1f1f1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dropdown-cart-header a {
    color: #F6DA01;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.dropdown-cart-header a:hover {
    color: #E6CA01;
    transform: translateX(3px);
}

.shopping-list {
    padding: 0;
    margin: 0;
    max-height: calc(100vh - 400px);
    overflow-y: auto;
}

.shopping-list::-webkit-scrollbar {
    width: 6px;
}

.shopping-list::-webkit-scrollbar-thumb {
    background: #F6DA01;
    border-radius: 3px;
}

.shopping-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.shopping-item .bottom {
    padding-top: 15px;
    border-top: 1px solid #f1f1f1;
    margin-top: 15px;
}

.shopping-item .total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.shopping-item .total span:first-child {
    color: #222;
    font-weight: 500;
}

.shopping-item .total span:last-child {
    color: #F6DA01;
    font-weight: 700;
    font-size: 1.2em;
}

.shopping-item .btn.animate {
    width: 100%;
    padding: 12px;
    background: #F6DA01;
    color: #222;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.shopping-item .btn.animate:hover {
    background: #E6CA01;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(246, 218, 1, 0.2);
}

.shopping-item .btn.animate:active {
    transform: translateY(0);
}

.shopping-item .btn.animate i {
    font-size: 1.2em;
}

/* Animación de entrada para items del carrito */
.shopping-list .cart-item {
    padding: 10px 0;
    border-bottom: 1px solid #f1f1f1;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.shopping-list .cart-item:last-child {
    border-bottom: none;
}

.shopping-list .cart-item img {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.shopping-list .cart-item:hover img {
    transform: scale(1.05);
}

.shopping-list .cart-item .content {
    flex: 1;
}

.shopping-list .cart-item h4 {
    margin: 0;
    font-size: 12px;
    color: #222;
    font-weight: 600;
}

.shopping-list .cart-item .price {
    color: #F6DA01;
    font-weight: 700;
    font-size: 11px;
    margin-top: 2px;
}

.shopping-list .cart-item .remove {
    color: #ff6b6b;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
}

.shopping-list .cart-item .remove:hover {
    color: #ff4444;
    transform: scale(1.1);
}

/* Mensaje de carrito vacío */
.shopping-list:empty::after {
    content: 'Tu carrito está vacío';
    display: block;
    text-align: center;
    padding: 20px;
    color: #888;
    font-size: 14px;
    font-style: italic;
}

/* Estilos del carrito */
.shopping-cart-sidebar {
    transition: all 0.3s ease-in-out !important;
    transform: translateX(100%);
}

.shopping-cart-sidebar.show {
    transform: translateX(0);
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #f1f1f1;
    transition: all 0.3s ease;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.cart-item:hover {
    background: rgba(246, 218, 1, 0.05);
}

.cart-item-image {
    margin-right: 15px;
}

.cart-item-image img {
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.cart-item:hover .cart-item-image img {
    transform: scale(1.05);
}

.cart-item-details {
    flex: 1;
}

.cart-item-details h4 {
    font-size: 14px;
    margin: 0 0 5px 0;
    color: #222;
}

.cart-item-details .price {
    font-size: 13px;
    color: #F6DA01;
    font-weight: 600;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.quantity-btn {
    background: rgba(246, 218, 1, 0.1);
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    color: #222;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    background: #F6DA01;
    transform: translateY(-1px);
}

.quantity {
    font-size: 14px;
    font-weight: 600;
    color: #222;
    min-width: 20px;
    text-align: center;
}

.remove-btn {
    background: rgba(255, 0, 0, 0.1);
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    color: #ff0000;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
}

.remove-btn:hover {
    background: #ff0000;
    color: white;
    transform: translateY(-1px);
}

#cart-count-inner {
    animation: scaleCount 0.3s ease-out;
}

@keyframes scaleCount {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.total-count {
    animation: scaleCount 0.3s ease-out;
}

#cart-total {
    font-size: 1.2em;
    font-weight: 700;
    color: #F6DA01;
}

/* ========================================
   ESTILOS DE INDEX.PHP MOVIDOS
   ======================================== */

/* Header sticky styles */
header.header.shop.sticky-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #F6DA01;
    box-shadow: 0 2px 8px rgba(246, 218, 1, 0.2);
}

/* Middle inner container */
.middle-inner .header-container {
    width: 100%;
    padding: 0 35px;
}

.middle-inner .d-flex.justify-content-between.align-items-center.py-1 {
    min-height: 50px;
}

/* Logo styles */
.logo {
    display: flex;
    align-items: center;
}

/* Shopping cart icon */
.sinlge-bar.shopping {
    display: flex;
    align-items: center;
}

.sinlge-bar.shopping .single-icon {
    position: relative;
    display: inline-block;
}

.sinlge-bar.shopping .single-icon .bi-cart {
    font-size: 2.2rem;
}

.sinlge-bar.shopping .total-count {
    position: absolute;
    top: -6px;
    right: -10px;
    font-size: 1.1rem;
    font-weight: bold;
    color: #222;
    background: #F6DA01;
    border-radius: 50%;
    width: 1.8rem;
    height: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(246, 218, 1, 0.3);
    border: 2px solid #fff;
    overflow: hidden;
}

.sinlge-bar.shopping #cart-count-inner {
    display: block;
    width: 100%;
    text-align: center;
    white-space: nowrap;
    font-size: 1em;
    line-height: 1;
    transform: scale(1);
    transition: font-size 0.2s, transform 0.2s;
}

/* Category indicator */
.category-indicator {
    display: block;
}

/* Product/Service switch wrapper */
.product-service-switch-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 20px 0 30px 0;
    padding: 0 20px;
}

.product-service-switch {
    background: #fff;
    border-radius: 50px;
    padding: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    border: 2px solid #f1f1f1;
    position: relative;
    overflow: hidden;
}

.switch-slider {
    position: absolute;
    top: 8px;
    left: 8px;
    width: calc(50% - 8px);
    height: calc(100% - 16px);
    background: #F6DA01;
    border-radius: 42px;
    transition: all 0.3s ease;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(246, 218, 1, 0.3);
}

.switch-btn {
    position: relative;
    z-index: 2;
    background: transparent;
    border: none;
    padding: 12px 30px;
    border-radius: 42px;
    font-weight: 600;
    font-size: 16px;
    color: #222;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
}

.switch-btn.active {
    color: #222;
}

.switch-btn:not(.active) {
    color: #666;
}

.switch-btn i {
    margin-right: 8px;
}

/* Section header styles */
.main-categories-area .section-header {
    text-align: center;
    margin: 40px 0 30px 0;
}

.main-categories-area .section-header.hidden {
    display: none;
}

.section-title {
    color: #222;
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title i {
    margin-right: 10px;
    color: #F6DA01;
}

.section-header p {
    color: #666;
    font-size: 1.1rem;
    margin: 0;
    font-weight: 500;
}

/* Containers display controls */
#subcategories-container.hidden,
#services-container.hidden,
#cats-subs-header.hidden {
    display: none !important;
}

/* Product template original price */
.product-original-price {
    text-decoration: line-through;
    color: #999;
    margin-left: 8px;
}

.product-discount {
    color: #F7941D;
    margin-left: 8px;
}

/* Shopping cart sidebar */
.shopping-cart-sidebar {
    display: none;
    position: fixed;
    right: 0;
    top: 0;
    width: 320px;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 20px;
}

.shopping-cart-sidebar .cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.shopping-cart-sidebar .cart-header h3 {
    margin: 0;
}

.shopping-cart-sidebar .cart-header button {
    border: none;
    background: none;
    font-size: 20px;
    cursor: pointer;
}

.shopping-cart-sidebar #cart-items {
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

.shopping-cart-sidebar .cart-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: white;
    border-top: 1px solid #eee;
}

.shopping-cart-sidebar .cart-footer .cart-total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.shopping-cart-sidebar .cart-footer .btn {
    width: 100%;
    background: #F7941D;
    color: white;
}

/* Loading animation */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    font-size: 18px;
}

/* Hidden class */
.hidden {
    display: none !important;
}

/* Fade animation for grids */
.fade-grid {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.fade-grid.show {
    opacity: 1;
    transform: translateY(0);
}

/* Visible states for containers */
#products-container.hidden,
#services-container.hidden,
#categories-container.hidden,
#subcategories-container.hidden {
    display: none !important;
}

#products-container:not(.hidden),
#services-container:not(.hidden) {
    display: grid !important;
}

#categories-container:not(.hidden),
#subcategories-container:not(.hidden) {
    display: grid !important;
}

/* Header container additional styles */
.header-container .row {
    margin: 0;
}

.header-container .col-12 {
    padding: 0;
}

/* Ensure proper z-index layering */
.sticky-header {
    z-index: 999 !important;
}

.category-indicator {
    z-index: 90 !important;
}

/* Additional section header spacing */
.section-header.hidden {
    margin: 50px 0 30px 0;
}

/* ========================================
   BOTÓN DE REGRESAR (BACK BUTTON)
   ======================================== */
.back-button {
    position: fixed;
    bottom: 30px;
    left: 20px;
    background: #F6DA01;
    color: #222;
    border: none;
    border-radius: 50px;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 998;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 1;
    transform: translateX(0);
}

.back-button.hidden {
    opacity: 0;
    transform: translateX(-100px);
    pointer-events: none;
}

.back-button:hover {
    background: #222;
    color: #F6DA01;
    transform: translateX(0) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.back-button:active {
    transform: translateX(0) scale(0.98);
}

.back-button i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.back-button:hover i {
    transform: translateX(-3px);
}

.back-button span {
    font-weight: 700;
}

/* Responsive para botón de regresar */
@media (max-width: 768px) {
    .back-button {
        bottom: 25px;
        left: 15px;
        padding: 10px 20px;
        font-size: 0.85rem;
    }
    
    .back-button span {
        display: none; /* Ocultar texto en móvil, solo mostrar icono */
    }
    
    .back-button {
        padding: 12px;
        border-radius: 50%;
        width: 45px;
        height: 45px;
        justify-content: center;
    }
    
    .back-button i {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .back-button {
        bottom: 20px;
        left: 10px;
        width: 42px;
        height: 42px;
        padding: 10px;
    }
    
    .back-button i {
        font-size: 1.1rem;
    }
}

/* ========================================
   PRODUCTO CON ESTILO OVERLAY (COMO SUBCATEGORÍAS)
   ======================================== */
.product-card-overlay {
    position: relative;
    width: 100%;
    max-width: 100%;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.35s ease;
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    min-height: 380px;
}

.product-card-overlay:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    border-color: rgba(246, 218, 1, 0.4);
}

.product-card-overlay .product-img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    padding: 20px;
    background: #f8f8f8;
    transition: transform 0.35s ease;
}

.product-card-overlay:hover .product-img {
    transform: scale(1.05);
}

.product-card-overlay .product-overlay {
    position: relative;
    background: white;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    flex: 1;
}

.product-card-overlay .product-title {
    color: #333;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    transition: color 0.3s ease;
}

.product-card-overlay:hover .product-title {
    color: #222;
}

.product-card-overlay .product-price {
    color: #F7941D;
    margin: 0;
    font-size: 1.5rem;
    font-weight: 800;
    transition: all 0.3s ease;
}

.product-card-overlay .add-to-cart {
    background: #F6DA01;
    color: #222;
    border: none;
    border-radius: 12px;
    padding: 14px 24px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 100%;
    margin-top: auto;
}

.product-card-overlay:hover .add-to-cart {
    background: #222;
    color: #F6DA01;
    transform: translateY(-2px);
}

.product-card-overlay .add-to-cart i {
    font-size: 1.1rem;
}

/* Portrait móvil - productos overlay optimizados */
@media (orientation: portrait) and (max-width: 640px) {
    .product-card-overlay {
        border-radius: 16px;
        min-height: 350px;
    }
    
    .product-card-overlay .product-img {
        height: 180px;
        padding: 15px;
    }
    
    .product-card-overlay .product-overlay {
        padding: 16px;
        gap: 10px;
    }
    
    .product-card-overlay .product-title {
        font-size: 1rem;
    }
    
    .product-card-overlay .product-price {
        font-size: 1.3rem;
    }
    
    .product-card-overlay .add-to-cart {
        padding: 12px 20px;
        font-size: 0.85rem;
    }
}

/* Landscape - productos overlay centrados */
@media (orientation: landscape) {
    .product-card-overlay {
        border-radius: 18px;
        min-height: 320px;
    }
    
    .product-card-overlay .product-img {
        height: 160px;
        padding: 15px;
    }
    
    .product-card-overlay .product-overlay {
        padding: 15px;
        gap: 8px;
    }
}

/* Tablet y desktop */
@media (min-width: 768px) {
    .product-card-overlay {
        min-height: 400px;
    }
    
    .product-card-overlay .product-img {
        height: 240px;
    }
}

/* ========================================
   MEJORAS DEL MINI-CARRITO
   ======================================== */

/* Hacer el mini-carrito más grande y con mejor UX */
.header .shopping .shopping-item {
    width: 380px !important; /* Más ancho */
    max-height: 500px; /* Altura máxima */
    overflow-y: auto; /* Scroll si hay muchos productos */
    padding: 25px !important;
}

/* Mejorar el header del carrito */
.header .shopping .dropdown-cart-header {
    padding-bottom: 15px !important;
    margin-bottom: 20px !important;
}

.header .shopping .dropdown-cart-header span {
    font-size: 15px !important;
    font-weight: 700 !important;
}

/* Items del carrito más grandes y con mejor layout */
.header .shopping-list li {
    display: flex;
    gap: 15px;
    padding: 15px !important;
    background: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 12px !important;
    border: none !important;
    position: relative;
}

.header .shopping-list li:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

/* Imagen del producto más grande */
.header .shopping-list .cart-img,
.header .shopping-list li img {
    width: 80px !important;
    height: 80px !important;
    object-fit: cover;
    border-radius: 8px !important;
    flex-shrink: 0;
}

/* Contenido del item */
.header .shopping-list li .content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.header .shopping-list h4 {
    font-size: 14px !important;
    margin: 0 !important;
    line-height: 1.4;
}

.header .shopping-list h4 a {
    font-weight: 600 !important;
    color: #333 !important;
}

.header .shopping-list .price {
    color: #F7941D;
    font-weight: 700;
    font-size: 15px;
}

/* Botón de eliminar mejorado */
.header .shopping-list li .remove {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    left: auto !important;
    bottom: auto !important;
    margin: 0 !important;
    width: 28px !important;
    height: 28px !important;
    line-height: 26px !important;
    background: #fff !important;
    border: 2px solid #e6e6e6 !important;
    border-radius: 50% !important;
    font-size: 13px !important;
    color: #666 !important;
    cursor: pointer;
    transition: all 0.2s ease;
}

.header .shopping-list li .remove:hover {
    background: #ff4444 !important;
    border-color: #ff4444 !important;
    color: #fff !important;
    transform: scale(1.1);
}

/* Total más visible */
.header .shopping-item .total {
    padding: 15px 0 !important;
    border-top: 2px solid #e6e6e6;
    margin-top: 10px;
}

.header .shopping-item .total span {
    font-size: 15px !important;
    font-weight: 700 !important;
}

.header .shopping-item .total .total-amount {
    font-size: 18px !important;
    color: #F7941D !important;
    font-weight: 700 !important;
}

/* Botón de pagar mejorado */
.header .shopping-item .bottom .btn {
    padding: 14px 20px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    background: #F7941D !important;
    border: none;
    transition: all 0.3s ease;
}

.header .shopping-item .bottom .btn:hover {
    background: #222 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Scroll personalizado para el carrito */
.header .shopping .shopping-item::-webkit-scrollbar {
    width: 6px;
}

.header .shopping .shopping-item::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.header .shopping .shopping-item::-webkit-scrollbar-thumb {
    background: #F7941D;
    border-radius: 10px;
}

.header .shopping .shopping-item::-webkit-scrollbar-thumb:hover {
    background: #222;
}

/* Mensaje de carrito vacío */
.header .shopping-list .empty-cart-message {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.header .shopping-list .empty-cart-message i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #ddd;
}

/* Responsive para el mini-carrito */
@media (max-width: 480px) {
    .header .shopping .shopping-item {
        width: 320px !important;
    }
    
    .header .shopping-list .cart-img,
    .header .shopping-list li img {
        width: 60px !important;
        height: 60px !important;
    }
}

