/**
 * PRODUCT SHEET MENU - Diseño moderno tipo app móvil
 */

/* Overlay del sheet menu */
.sheet-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 9998;
}

.sheet-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Contenedor del sheet menu */
.product-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 85vh;
    max-height: 85vh;
    background: #1A1A1A;
    border-radius: 32px 32px 0 0;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.sheet-overlay.active .product-sheet {
    transform: translateY(0);
}

/* Handle para arrastrar */
.sheet-handle {
    width: 48px;
    height: 5px;
    background: #4A4A4A;
    border-radius: 3px;
    margin: 12px auto 0;
    flex-shrink: 0;
}

/* Header del sheet con imagen del producto */
.sheet-header {
    position: relative;
    background: #1A1A1A;
    padding: 12px 24px 20px;
    flex-shrink: 0;
    overflow: hidden;
}

.sheet-product-image {
    position: relative;
    width: 100%;
    height: 280px;
    border-radius: 16px;
    overflow: hidden;
    z-index: 1;
}

.sheet-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Overlay de texto superpuesto sobre la imagen */
.sheet-text-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(
        180deg, 
        transparent 0%, 
        rgba(0, 0, 0, 0.4) 40%, 
        rgba(0, 0, 0, 0.8) 100%
    );
    padding: 40px 20px 20px;
    z-index: 10;
}

/* Fila del título y precio */
.product-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 12px;
}

.title-info {
    flex: 1;
}

.price-variants {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

/* Slider de variantes */
.product-variants-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.variants-container {
    display: flex;
    transition: transform 0.3s ease;
    height: 100%;
}

.variant-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.variant-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Indicadores de variantes */
.variant-indicators {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.variant-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.variant-dot.active {
    background: #FF8C42;
    transform: scale(1.2);
}

/* Botones de navegación del slider */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border: none;
    color: #1A1A1A;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 15;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.slider-nav:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.slider-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.slider-nav i {
    font-size: 1rem;
    font-weight: 600;
}

.slider-nav.prev {
    left: 16px;
}

.slider-nav.next {
    right: 16px;
}

/* Título y precio */
.sheet-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 4px;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.sheet-subtitle {
    font-size: 0.85rem;
    color: #E0E0E0;
    margin-bottom: 0;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

.sheet-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #FF8C42;
    margin-bottom: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

/* Iconos de variantes */
.variant-icons {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 140, 66, 0.2);
    backdrop-filter: blur(8px);
    padding: 6px 10px;
    border-radius: 16px;
    border: 1px solid rgba(255, 140, 66, 0.4);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.variant-icons i {
    color: #FF8C42;
    font-size: 0.9rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.variant-count {
    font-size: 0.8rem;
    font-weight: 600;
    color: #FF8C42;
    min-width: 18px;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Selector de cantidad circular */
.quantity-selector {
    position: absolute;
    top: 16px;
    right: 24px;
    background: #FFFFFF;
    border-radius: 50px;
    padding: 6px 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    z-index: 2000;
    pointer-events: auto;
}

.quantity-selector button {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: #FF8C42;
    color: #FFFFFF;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Font Awesome 6 Free', Arial, sans-serif;
    font-weight: 900;
    position: relative;
    z-index: 2001;
    pointer-events: auto;
}

/* Estilos para iconos de cantidad */
.quantity-selector button .icon-minus,
.quantity-selector button .icon-plus {
    font-family: Arial, sans-serif;
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-selector button .icon-minus {
    font-size: 1.4rem;
}

.quantity-selector button .icon-plus {
    font-size: 1.1rem;
}

/* Estilos para botones pequeños del carrito */
.qty-btn-small .icon-minus,
.qty-btn-small .icon-plus {
    font-family: Arial, sans-serif;
    font-weight: bold;
    font-size: 0.9rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn-small .icon-minus {
    font-size: 1.1rem;
}

.qty-btn-small .icon-plus {
    font-size: 0.9rem;
}

.quantity-selector button:hover {
    background: #e67e22;
    transform: scale(1.05);
}

.quantity-selector button:active {
    transform: scale(0.9);
}

.quantity-number {
    font-size: 1rem;
    font-weight: 700;
    color: #1A1A1A;
    min-width: 20px;
    text-align: center;
}

/* Contenido del sheet (parte blanca) */
.sheet-content {
    background: #FFFFFF;
    border-radius: 32px 32px 0 0;
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px 20px;
    min-height: 300px;
}

/* Selector de tamaño */
.size-selector {
    margin-bottom: 20px;
}

.size-selector h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #1A1A1A;
    margin-bottom: 10px;
}

.size-options {
    display: flex;
    gap: 12px;
}

.size-option {
    flex: 1;
    text-align: center;
    padding: 16px 12px;
    background: #F5F5F5;
    border-radius: 16px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.size-option.active {
    background: #FFF5F0;
    border-color: #FF8C42;
}

.size-icon {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.size-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333333;
}

/* Título principal del producto */
.product-main-title {
    margin-bottom: 10px;
}

.product-main-title h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1A1A1A;
}

/* Descripción del producto */
.product-description {
    margin-bottom: 16px;
}

.product-description p {
    font-size: 0.9rem;
    color: #666666;
    line-height: 1.5;
}

/* Información adicional (badges) */
.product-info-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.info-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: #F5F5F5;
    border-radius: 10px;
    font-size: 0.8rem;
    color: #666666;
}

.info-badge i {
    color: #FF8C42;
}

/* Extras/Ingredientes */
.extras-section {
    margin-bottom: 20px;
}

.extras-section h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1A1A1A;
    margin-bottom: 10px;
}

.ingredient-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    border-bottom: 1px solid #F0F0F0;
    font-size: 0.95rem;
    color: #333333;
}

.ingredient-item:last-child {
    border-bottom: none;
}

.ingredient-item i {
    color: #4CAF50;
    font-size: 0.85rem;
}

/* Footer con botones */
.sheet-footer {
    background: transparent;
    padding: 0;
    margin-top: 20px;
    margin-bottom: 24px;
}

.footer-buttons {
    display: flex;
    gap: 10px;
}

/* Botón de agregar al carrito */
.add-to-cart-btn {
    flex: 1;
    padding: 12px 14px;
    background: #2A2A2A;
    color: #FFFFFF;
    border: none;
    border-radius: 16px;
    font-size: 0.9rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.add-to-cart-btn:active {
    transform: scale(0.96);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cart-btn-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.cart-btn-info {
    flex: 1;
    text-align: left;
}

.cart-btn-text {
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0.9;
}

.cart-btn-total {
    font-size: 1rem;
    font-weight: 700;
}

/* Botón de Pedir Ahora */
.order-now-btn {
    flex: 1.2;
    padding: 12px 18px;
    background: linear-gradient(135deg, #FF8C42 0%, #E74C3C 100%);
    color: #FFFFFF;
    border: none;
    border-radius: 16px;
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(255, 140, 66, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.order-now-btn:active {
    transform: scale(0.96);
    box-shadow: 0 3px 12px rgba(255, 140, 66, 0.3);
}

.order-now-btn i {
    font-size: 1.1rem;
}

/* Ajustar botones de navegación en móviles pequeños */
@media (max-width: 480px) {
    .slider-nav {
        width: 36px;
        height: 36px;
        background: rgba(255, 255, 255, 0.95);
    }
    
    .slider-nav.prev {
        left: 12px;
    }
    
    .slider-nav.next {
        right: 12px;
    }
    
    .slider-nav i {
        font-size: 0.9rem;
    }
    
    .sheet-product-image {
        height: 240px;
    }
    
    .product-title-row {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
    
    .price-variants {
        align-items: flex-start;
        flex-direction: row;
        gap: 8px;
    }
    
    .sheet-text-overlay {
        padding: 30px 16px 16px;
    }
}

/* Responsive para desktop */
@media (min-width: 769px) {
    .product-sheet {
        left: 50%;
        transform: translate(-50%, 100%);
        max-width: 480px;
        height: 85vh;
    }
    
    .sheet-overlay.active .product-sheet {
        transform: translate(-50%, 0);
    }
    
    .sheet-product-image {
        height: 320px;
    }
    
    .sheet-title {
        font-size: 1.5rem;
    }
    
    .sheet-price {
        font-size: 1.7rem;
    }
    
    .variant-icons {
        padding: 8px 12px;
    }
    
    .sheet-text-overlay {
        padding: 50px 24px 24px;
    }
    
    .slider-nav {
        width: 44px;
        height: 44px;
    }
    
    .slider-nav.prev {
        left: 20px;
    }
    
    .slider-nav.next {
        right: 20px;
    }
    
    .slider-nav i {
        font-size: 1.1rem;
    }
}

/* Scrollbar personalizado */
.sheet-content::-webkit-scrollbar {
    width: 6px;
}

.sheet-content::-webkit-scrollbar-track {
    background: #F5F5F5;
}

.sheet-content::-webkit-scrollbar-thumb {
    background: #CCCCCC;
    border-radius: 3px;
}

.sheet-content::-webkit-scrollbar-thumb:hover {
    background: #999999;
}
