/* ==========================================
   ESTILOS BASE - TECNOHOGAR
========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

.header {
    /* CONFIGURACIÓN DEL FONDO - MODIFICAR AQUÍ */
    
    /* OPCIÓN 1: Color plano (descomenta las siguientes 2 líneas) */
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    
    /* OPCIÓN 2: Imagen con overlay (descomenta las siguientes 4 líneas y comenta las de arriba) */
    /* background-image: linear-gradient(rgba(30, 64, 175, 0.7), rgba(30, 64, 175, 0.7)), url('https://images.unsplash.com/photo-1557804506-669a67965ba0'); */
    /* background-size: cover; */
    /* background-position: center; */
    /* background-repeat: no-repeat; */
    
    /* --- FIN DE LA CONFIGURACIÓN DEL FONDO --- */
    
    color: white;
    padding: 2rem 1rem;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.restaurant-info {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
    gap: 2rem;
}

.restaurant-logo {
    border-radius: 12px;
    display: block;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border: 2px solid white;
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.restaurant-info-right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.restaurant-name {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.95);
    color: #1e40af;
    padding: 0 1rem;
    border-radius: 8px;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.restaurant-tag {
    background: #000000;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    display: inline-block;
}

.discount-banner {
    background: #dbeafe;
    color: #1e40af;
    padding: 1rem;
    margin: 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    padding-bottom: 120px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 2rem 0 1rem 0;
    padding: 0 1rem;
}

.category-section {
    margin-bottom: 2rem;
}

.category-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin: 2rem 0 1rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-left: 4px solid #1e40af;
    border-radius: 3px;
    color: #333;
}

.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    z-index: 100;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    display: none;
}

.sticky-header.active {
    transform: translateY(0);
}

.sticky-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: #333;
    text-align: center;
}

/* ==========================================
   GRID DE PRODUCTOS - DESKTOP
========================================== */
.single-product-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0 1.5rem;
    margin-bottom: 2rem;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    width: 280px;
    flex-shrink: 0;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.desktop-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #1e40af;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.8rem;
    z-index: 2;
}

.desktop-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
    display: block;
}

.desktop-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card {
    display: flex;
    flex-direction: column;
}

.desktop-name {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.desktop-description {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.desktop-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.desktop-price-current {
    font-size: 1.3rem;
    font-weight: bold;
    color: #1e40af;
}

.desktop-button {
    background: #1e40af;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s, transform 0.2s;
    margin-top: auto;
}

.desktop-button:hover {
    background: #1e3a8a;
}

/* ==========================================
   ESTILOS CARRUSEL
========================================== */
.carousel-section {
    padding: 2rem 0 1rem 0;
    background: #ffffff;
    margin-bottom: 1rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem 1rem;
}

.carousel-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
}

.carousel-controls {
    display: flex;
    gap: 0.5rem;
}

.carousel-btn {
    width: 40px;
    height: 40px;
    background: #f5f5f5;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: #1e40af;
    color: white;
}

.carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.carousel-container {
    overflow: hidden;
    position: relative;
}

.carousel {
    display: flex;
    gap: 1rem;
    padding: 0 1.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.carousel::-webkit-scrollbar {
    display: none;
}

.carousel-product-card {
    min-width: 280px;
    max-width: 280px;
    background: white;
    scroll-snap-align: start;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: relative;
}

.carousel-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.carousel-product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
    display: block;
}

.carousel-product-badge {
    position: absolute;
    top: 0.8rem;
    left: 0.8rem;
    background: #1e40af;
    color: white;
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 3px;
    z-index: 2;
}

.carousel-product-info {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.carousel-product-card {
    display: flex;
    flex-direction: column;
}

.carousel-product-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: #333;
    line-height: 1.3;
}

.carousel-product-subtitle {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.carousel-product-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 0.8rem;
}

.carousel-view-btn {
    background: #1e40af;
    color: white;
    border: none;
    padding: 0.7rem 1rem;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s;
    font-size: 0.9rem;
    margin-top: auto;
}

.carousel-view-btn:hover {
    background: #1e3a8a;
}

/* ==========================================
   MODAL DE PRODUCTO
========================================== */
.product-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-modal.active {
    display: flex;
    opacity: 1;
}

.product-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.product-modal-content {
    position: relative;
    background: white;
    border-radius: 16px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 3001;
    animation: modalSlideUp 0.3s ease;
    display: flex;
    flex-direction: column;
}

@keyframes modalSlideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.product-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 3002;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: background 0.2s;
}

.product-modal-close:hover {
    background: #f5f5f5;
}

.product-modal-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.product-modal-image-container {
    width: 100%;
    height: 400px;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    position: relative;
}

/* Diseño de dos columnas para desktop */
@media (min-width: 769px) {
    .product-modal-body {
        flex-direction: row;
        min-height: 500px;
    }
    
    .product-modal-image-container {
        width: 50%;
        height: auto;
        border-radius: 16px 0 0 16px;
        flex-shrink: 0;
    }
    
    .product-modal-info {
        width: 50%;
        padding: 2rem;
        flex: 1;
        min-height: 0;
        display: flex;
        flex-direction: column;
    }
    
    .product-modal-content {
        max-width: 1000px;
        width: 95%;
    }
}

.modal-carousel-images {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

.product-modal-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    flex-shrink: 0;
    background-color: #f8f9fa;
}

/* Ajustes adicionales para desktop */
@media (min-width: 769px) {
    .modal-carousel-images {
        height: 500px;
    }
    
    .product-modal-image {
        max-width: 100%;
        max-height: 500px;
        width: auto;
        height: auto;
        margin: auto;
    }
}

.modal-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 3002;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.modal-carousel-btn:hover {
    background: rgba(0, 0, 0, 0.7);
}

.modal-carousel-btn.prev {
    left: 10px;
}

.modal-carousel-btn.next {
    right: 10px;
}

/* Ajustar posición de botones en desktop */
@media (min-width: 769px) {
    .modal-carousel-btn.prev {
        left: 15px;
    }
    
    .modal-carousel-btn.next {
        right: 15px;
    }
}

.product-modal-info {
    padding: 2rem;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.product-modal-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 1rem;
}

.product-modal-price {
    font-size: 2rem;
    font-weight: bold;
    color: #1e40af;
    margin-bottom: 1.5rem;
}

.product-modal-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.product-modal-details {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.product-modal-details h3 {
    color: #1e40af;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.product-modal-details ul {
    list-style: none;
    padding: 0;
}

.product-modal-details li {
    padding: 0.5rem 0;
    color: #333;
    display: flex;
    align-items: center;
}

.product-modal-details li:before {
    content: "✓";
    color: #1e40af;
    font-weight: bold;
    margin-right: 0.5rem;
}

.product-modal-shipping {
    background: #dbeafe;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    color: #1e40af;
    font-size: 0.9rem;
    line-height: 1.6;
}

.product-modal-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: auto;
    padding: 0 2rem 2rem 2rem;
}

/* Ajustar acciones del modal en desktop */
@media (min-width: 769px) {
    .product-modal-actions {
        padding: 0 2rem 2rem 0;
    }
}

.modal-quantity-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #f5f5f5;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
}

.modal-quantity-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #1e40af;
    color: white;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.modal-quantity-btn:hover {
    background: #1e3a8a;
}

.modal-quantity-display {
    font-weight: bold;
    color: #333;
    min-width: 40px;
    text-align: center;
    font-size: 1.2rem;
}

.modal-add-cart-btn {
    flex: 1;
    background: #1e40af;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
    position: relative;
    z-index: 10;
}

.modal-add-cart-btn:hover {
    background: #1e3a8a;
}

.modal-add-cart-btn.added {
    background: #10b981;
}

/* ==========================================
   BARRA FIJA INFERIOR
========================================== */
.cart-summary-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e0e0e0;
    padding: 1.2rem 1rem;
    display: none;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.cart-summary-bar.active {
    display: flex;
}

.cart-summary-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-items-count {
    background: #1e40af;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.cart-total {
    font-weight: bold;
    color: #333;
}

.view-cart-btn {
    background: #1e40af;
    color: white;
    border: none;
    padding: 0.8rem 3rem;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
    min-width: 180px;
}

.view-cart-btn:hover {
    background: #1e3a8a;
}

/* ==========================================
   SIDEBAR CARRITO
========================================== */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: white;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 2000;
    overflow-y: auto;
    box-shadow: -4px 0 15px rgba(0,0,0,0.1);
}

.cart-sidebar.active {
    transform: translateX(0);
}

.cart-sidebar-header {
    padding: 1rem;
    border-bottom: 1px solid #e0e0e0;
    background: #f8f9fa;
}

.cart-sidebar-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.delivery-options {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.delivery-option {
    flex: 1;
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #f3f3f3;
    color: #333333;
    cursor: pointer;
    text-align: center;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.delivery-option.active {
    border-color: #1e40af;
    background: #1e40af;
    color: #ffffff;
}

.delivery-option:hover {
    border-color: #1e40af;
}

.address-field {
    margin-top: 0.5rem;
    display: none;
}

.address-field.show {
    display: block;
}

.address-input {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: border-color 0.2s;
}

.address-input:focus {
    outline: none;
    border-color: #1e40af;
}

.close-sidebar {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 1rem;
    top: 1rem;
}

.close-sidebar:hover {
    background: #e0e0e0;
}

.cart-items-list {
    padding: 1rem;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: bold;
    color: #333;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.cart-item-price {
    color: #1e40af;
    font-weight: bold;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-item-qty-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: background 0.2s;
}

.cart-item-qty-btn:hover {
    background: #f5f5f5;
}

.cart-item-quantity {
    font-weight: bold;
    min-width: 30px;
    text-align: center;
}

.cart-sidebar-footer {
    padding: 1rem;
    border-top: 1px solid #e0e0e0;
    position: sticky;
    bottom: 0;
    background: white;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.final-total {
    border-top: 1px solid #e0e0e0;
    padding-top: 0.5rem;
    margin-top: 0.5rem;
    font-size: 1.2rem;
    font-weight: bold;
}

.send-whatsapp-btn {
    background: #25d366;
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    font-size: 1rem;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.send-whatsapp-btn:hover {
    background: #1ea952;
}

/* OCULTAR ELEMENTOS MOBILE EN DESKTOP */
.mobile-content,
.mobile-image-container {
    display: none;
}

/* ==========================================
   RESPONSIVE - MOBILE
========================================== */
@media (max-width: 768px) {
    .header {
        border-radius: 0 0 73px 0;
        height: 60vw;
        max-height: 400px;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .restaurant-info {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        gap: 1rem;
    }

    .restaurant-logo {
        margin-bottom: 1rem;
    }

    .restaurant-info-right {
        align-items: center;
    }

    .restaurant-name {
        font-size: 1.5rem;
    }

    /* OCULTAR CONTROLES DE CARRUSEL EN MOBILE */
    .carousel-btn {
        display: none;
    }

    /* OCULTAR ELEMENTOS DESKTOP */
    .section-title,
    .desktop-badge,
    .desktop-image,
    .desktop-info,
    .desktop-name,
    .desktop-description,
    .desktop-price,
    .desktop-price-current,
    .desktop-button {
        display: none !important;
    }

    /* AJUSTAR CARRUSEL EN MOBILE */
    .carousel-section {
        padding: 1.5rem 0 1rem 0;
    }

    .section-header {
        padding: 0 1rem 0.8rem;
    }

    .carousel {
        padding: 0 1rem;
    }

    .carousel-product-card {
        min-width: 260px;
        max-width: 260px;
    }

    .carousel-product-image {
        height: 180px;
    }

    /* MOSTRAR ELEMENTOS MOBILE */
    .sticky-header {
        display: block;
    }

    .category-title {
        font-size: 1.1rem;
        margin: 1rem 0 0.5rem 0;
        padding: 0.8rem 1rem;
        background: #f3f3f3;
        color: #333;
        border-left: none;
        border-radius: 3px;
    }

    .single-product-grid {
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 0;
        max-width: none;
        margin: 0;
    }

    .product-card {
        background: white;
        border-bottom: 1px solid #f0f0f0;
        padding: 1rem;
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        position: relative;
        border-radius: 0;
        box-shadow: none;
        transition: background-color 0.2s;
        width: 100%;
        max-width: 100%;
    }
    
    /* Clase específica para móvil - basada en la referencia */
    .mobile-product-card {
        background: white;
        border-bottom: 1px solid #f0f0f0;
        padding: 1rem;
        position: relative;
        border-radius: 0;
        box-shadow: none;
        transition: background-color 0.2s;
        width: 100%;
        max-width: 100%;
    }
    
    /* Layout de 2 columnas para cada producto móvil */
    .mobile-product-card-content {
        display: flex;
        align-items: center;
        gap: 1rem;
    }

    .product-card:hover {
        background-color: #f8f9fa;
        transform: none;
        box-shadow: none;
    }

    .product-card:last-child {
        border-bottom: none;
    }

    .mobile-product-card .mobile-content {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        flex: 1;
        /* Columna izquierda - ocupa más espacio */
    }

    .mobile-name {
        font-size: 1.1rem;
        font-weight: bold;
        color: #333;
        margin: 0;
    }

    .mobile-description {
        color: #666;
        font-size: 0.9rem;
        line-height: 1.3;
        margin: 0;
    }

    .mobile-price {
        font-size: 1.2rem;
        font-weight: bold;
        color: #1e40af;
        margin: 0.3rem 0 0 0;
    }

    .mobile-product-card .mobile-image-container {
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        width: 100px;
        height: 100px;
        flex-shrink: 0;
        /* Columna derecha - ancho fijo */
    }

    .mobile-product-card .mobile-image {
        width: 100px;
        height: 100px;
        border-radius: 4px;
        object-fit: cover;
        object-position: center;
    }

    .mobile-product-card .mobile-view-btn {
        position: absolute;
        bottom: -8px;
        right: -8px;
        background: #1e40af;
        color: white;
        border: none;
        padding: 0.4rem 0.8rem;
        border-radius: 20px;
        font-size: 0.75rem;
        font-weight: bold;
        cursor: pointer;
        box-shadow: 0 2px 4px rgba(0,0,0,0.2);
        transition: all 0.2s;
    }

    .mobile-view-btn:hover {
        background: #1e3a8a;
        transform: scale(1.05);
    }

    /* MODAL EN MOBILE */
    .product-modal-content {
        width: 100%;
        max-width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }

    .product-modal-image-container {
        height: 300px;
        border-radius: 0;
    }

    .product-modal-info {
        padding: 1.5rem;
    }

    .product-modal-title {
        font-size: 1.5rem;
    }

    .product-modal-price {
        font-size: 1.8rem;
    }

    .product-modal-actions {
        flex-direction: column;
        gap: 1rem;
    }

    .modal-quantity-controls {
        width: 100%;
        justify-content: center;
    }

    .cart-sidebar {
        width: 100%;
        max-width: none;
    }
}
