/* ===== VARIABLES CSS ===== */
:root {
  /* Paleta de colores naranja */
  --orange-100: #FFE8D6;  /* Naranja muy claro */
  --orange-200: #FABD8C;  /* Naranja claro */
  --orange-300: #F79256;  /* Naranja medio */
  --orange-400: #EF6C00;  /* Naranja principal */
  --orange-500: #BF360C;  /* Naranja oscuro */

  /* Colores neutrales */
  --gray-800: #343a40;    /* Gris oscuro */
  --light-bg: #f8f9fa;    /* Fondo claro */

  /* Colores semánticos */
  --primary-color: var(--orange-400);  /* Color principal */
  --primary-hover: var(--orange-500);  /* Hover del principal */
}

/* ===== ANIMACIONES ===== */
@keyframes fadeInUp {
    /* Animación de entrada desde abajo */
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    /* Animación de rotación para loaders */
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    /* Animación de pulso para estados de carga */
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

@keyframes slideIn {
    /* Animación de deslizamiento lateral */
    from { transform: translateX(-10px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeIn {
    /* Animación de fundido de entrada */
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInUp {
    /* Animación de entrada desde abajo con escala */
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes bounceIn {
    /* Animación de rebote para elementos importantes */
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===== ESTILOS GLOBALES ===== */
body {
  background-color: var(--light-bg);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
}

.container {
  max-width: 1200px;  /* Contenedor principal ancho máximo */
}

/* ===== UTILIDADES ===== */
/* Utilidades para object-fit de imágenes */
.object-fit-contain {
    object-fit: contain;  /* Mantiene proporciones dentro del contenedor */
}

.object-fit-cover {
    object-fit: cover;    /* Cubre el contenedor manteniendo proporciones */
}

/* Estados de botones deshabilitados */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn:disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Estados de carga */
.opacity-50 {
    opacity: 0.5;  /* Opacidad reducida para elementos en carga */
}

.btn-loading {
    position: relative;
    color: transparent !important;  /* Oculta texto durante carga */
}

.btn-loading::after {
    /* Spinner de carga para botones */
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-right-color: transparent;
    animation: spin 0.8s linear infinite;
}

/* ===== PÁGINA DE PRODUCTO ===== */

/* Contenedor de galería de imágenes */
.product-gallery-container {
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transition: all 0.4s ease;
    overflow: hidden;
    background: white;
}

.product-gallery-container:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);  /* Efecto elevación al hover */
}

/* Wrapper de imagen principal */
.main-image-wrapper {
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

/* Contenedor de zoom de imagen */
.image-zoom-container {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: zoom-in;
}

.image-zoom-container.zoomed {
    cursor: zoom-out;
    transform: scale(2);  /* Zoom 2x al hacer clic */
    z-index: 1000;       /* Asegura que esté por encima */
}

/* Botones de navegación de galería */
.btn-gallery-nav {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);  /* Efecto glass */
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    color: var(--orange-500);
    font-weight: bold;
}

.btn-gallery-nav:hover {
    background: white !important;
    transform: scale(1.15);  /* Escala al hover */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    color: var(--orange-600);
}

/* Contenedores de miniaturas */
.thumbnail-container {
    transition: all 0.3s ease;
    border-radius: 12px;
    border: 3px solid transparent;
    overflow: hidden;
}

.thumbnail-container:hover {
    transform: translateY(-3px);  /* Elevación al hover */
    box-shadow: 0 6px 20px rgba(239, 108, 0, 0.25);
    border-color: var(--orange-300);
}

.thumbnail-container.active {
    border-color: var(--orange-400);
    box-shadow: 0 4px 15px rgba(239, 108, 0, 0.3);
    transform: scale(1.05);  /* Escala para miniatura activa */
}

/* Scroll personalizado para miniaturas */
.thumbnail-scroll {
    scrollbar-width: thin;
    scrollbar-color: var(--orange-300) var(--orange-100);
}

.thumbnail-scroll::-webkit-scrollbar {
    height: 6px;
}

.thumbnail-scroll::-webkit-scrollbar-track {
    background: var(--orange-100);
    border-radius: 3px;
}

.thumbnail-scroll::-webkit-scrollbar-thumb {
    background: var(--orange-300);
    border-radius: 3px;
}

.thumbnail-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--orange-400);
}

/* Badge de categoría */
.category-badge {
    background: linear-gradient(135deg, var(--orange-100), var(--orange-200)) !important;
    color: var(--orange-500) !important;
    font-weight: 700;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    border: 2px solid var(--orange-200);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-size: 0.8rem;
    box-shadow: 0 2px 10px rgba(239, 108, 0, 0.15);
}

/* Contenedor de precio */
.price-container {
    padding: 1.5rem;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border-radius: 16px;
    border-left: 5px solid var(--orange-400);  /* Borde acento */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin: 1.5rem 0;
}

/* Estilos de precio */
.current-price {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--orange-500);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.compare-price {
    color: #6c757d;
    font-size: 1.3rem;
    font-weight: 500;
}

/* Badge de descuento */
.discount-badge {
    background: linear-gradient(135deg, #dc3545, #c82333) !important;
    color: white;
    font-weight: 800;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-size: 0.85rem;
    box-shadow: 0 3px 12px rgba(220, 53, 69, 0.35);
    letter-spacing: 0.5px;
}

/* Selectores de color */
.color-selector-label {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 1.2rem;
    display: block;
    background: linear-gradient(135deg, var(--orange-100), transparent);
    padding: 0.75rem 1rem;
    border-radius: 10px;
}

.color-option {
    transition: all 0.3s ease;
    border-radius: 12px;
    background: white;
    border: 2px solid #e9ecef;
    cursor: pointer;
}

.color-option:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--orange-300);
}

.color-option.active {
    background: var(--orange-100);
    box-shadow: 0 0 0 3px var(--orange-300), 0 6px 20px rgba(239, 108, 0, 0.2);
    border-color: var(--orange-400);
    transform: scale(1.05);
}

/* Placeholder para imágenes de color */
.color-image-placeholder {
    background: linear-gradient(135deg, #f1f3f4, #e1e5e9);
    color: #6c757d;
    font-weight: 600;
    font-size: 0.7rem;
}

/* Selectores de talla */
.size-option {
    transition: all 0.3s ease;
    border-radius: 10px;
    font-weight: 700;
    position: relative;
    overflow: hidden;
    min-width: 55px;
    padding: 0.6rem 0.5rem;
    border: 2px solid;
}

/* Efecto de brillo al hover */
.size-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.6s;
}

.size-option:hover::before {
    left: 100%;
}

.size-option:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
}

/* Indicador de talla no disponible */
.size-option:disabled::after {
    content: '✕';
    position: absolute;
    top: -6px;
    right: -6px;
    background: #dc3545;
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Información de stock */
.stock-info {
    padding: 1rem 1.2rem;
    border-radius: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    margin: 1.5rem 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

/* Estados de stock */
.stock-low {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    color: #856404;
    border-left: 5px solid #ffc107;  /* Borde amarillo de advertencia */
}

.stock-available {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    border-left: 5px solid #28a745;  /* Borde verde de éxito */
}

.stock-out {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
    border-left: 5px solid #dc3545;  /* Borde rojo de error */
}

/* Selector de cantidad */
.quantity-selector {
    background: white;
    border: 2px solid var(--orange-200);
    border-radius: 12px;
    padding: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.quantity-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: var(--orange-100);
    color: var(--orange-500);
    font-weight: bold;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.quantity-btn:hover:not(:disabled) {
    background: var(--orange-400);
    color: white;
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(239, 108, 0, 0.3);
}

.quantity-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
}

.quantity-input {
    border: none;
    background: transparent;
    font-weight: 800;
    font-size: 1.3rem;
    text-align: center;
    color: var(--gray-800);
    width: 70px;
}

.quantity-input:focus {
    outline: none;
    box-shadow: none;
}

/* Botón de añadir al carrito */
.add-to-cart-btn {
    background: linear-gradient(135deg, var(--orange-400), var(--orange-500)) !important;
    border: none !important;
    border-radius: 12px;
    padding: 1rem 2rem;
    font-weight: 700;
    font-size: 1.2rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(239, 108, 0, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Efecto de brillo al hover */
.add-to-cart-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s;
}

.add-to-cart-btn:hover::before {
    left: 100%;
}

.add-to-cart-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(239, 108, 0, 0.5);
    background: linear-gradient(135deg, var(--orange-500), var(--orange-600)) !important;
}

.add-to-cart-btn:active {
    transform: translateY(-1px);  /* Efecto de presión */
}

.add-to-cart-btn:disabled {
    background: #6c757d !important;
    transform: none;
    box-shadow: none;
    cursor: not-allowed;
}

/* Descripción corta */
.short-description {
    background: white;
    padding: 1.8rem;
    border-radius: 16px;
    border-left: 5px solid var(--orange-300);  /* Borde acento */
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.1);
    line-height: 1.8;
    font-size: 1.05rem;
    color: var(--gray-800);
    margin: 1.5rem 0;
}

/* Información adicional del producto */
.product-info-grid {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.1);
    margin: 1.5rem 0;
}

.info-item {
    padding: 0.8rem 0;
    border-bottom: 1px solid #f1f3f4;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.info-item:hover {
    background: var(--orange-50);
    border-radius: 8px;
    padding-left: 1rem;
    padding-right: 1rem;
}

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

.info-label {
    font-weight: 700;
    color: var(--gray-800);
    font-size: 0.95rem;
}

.info-value {
    color: #6c757d;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Descripción completa */
.product-description-section {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    margin-top: 3rem;
}

.section-title {
    color: var(--gray-800);
    font-weight: 800;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 4px solid var(--orange-300);  /* Subrayado decorativo */
    display: inline-block;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-description {
    line-height: 1.8;
    font-size: 1.1rem;
    color: var(--gray-800);
}

/* Badge trending para productos populares */
.product-badge-trending {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 25px;
    font-size: 0.75rem;
    font-weight: 800;
    z-index: 20;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== MEJORAS DE ACCESIBILIDAD ===== */
.focus-ring:focus {
    outline: 3px solid var(--orange-400);
    outline-offset: 3px;  /* Espacio entre outline y elemento */
}

/* Efectos de carga */
.loading-pulse {
    animation: pulse 1.5s ease-in-out infinite;
}

.slide-in {
    animation: slideIn 0.5s ease-out;
}

/* ===== MODAL COMPACTO ===== */
.modal-compact-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(52, 58, 64, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 1rem;
    animation: fadeIn 0.2s ease-out;
}

.modal-compact-container {
    max-width: 850px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    z-index: 10000;
    animation: slideInUp 0.3s ease-out;
}

.modal-compact-content {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    max-width: 850px;
  
}

/* Header Compacto */
.modal-compact-header {
    background: linear-gradient(135deg, var(--orange-400), var(--orange-500));
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.modal-compact-header-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.modal-compact-icon {
    font-size: 2rem;
    color: white;
   /* background: rgba(255, 255, 255, 0.2);*/
    border-radius: 50%;
    /*padding: 0.5rem;*/
    animation: bounceIn 0.5s ease-out;
}

.modal-compact-text h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    margin: 0;
    line-height: 1.3;
}

.modal-compact-text p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0.25rem 0 0 0;
    font-size: 0.9rem;
}

.btn-close-compact {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
    flex-shrink: 0;
    cursor: pointer;
}

.btn-close-compact:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Cuerpo Compacto */
.modal-compact-body {
    padding: 0;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-compact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: 400px;
}

/* Columna Producto Compacta */
.modal-compact-product {
    padding: 1.5rem;
    background: white;
    border-right: 2px solid var(--orange-100);
}

.modal-product-compact {
    background: var(--light-bg);
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid var(--orange-200);
    margin-bottom: 1.25rem;
}

/* Efecto hover sutil para el badge */
.modal-product-compact-badge:hover {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

.modal-product-compact-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    position: relative;
}

.modal-product-compact-image-container {
    position: relative;
    flex-shrink: 0;
}

 .modal-product-compact-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    border: 2px solid var(--orange-200);
    object-fit: cover;
   
} 

.modal-product-compact-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: linear-gradient(135deg, var(--orange-400), var(--orange-500));
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 800;
    box-shadow: 0 2px 8px rgba(239, 108, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    z-index: 10;
    white-space: nowrap;
}


.modal-product-compact-info {
    flex: 1;
}

.modal-product-compact-name {
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 0.75rem;
    font-size: 1rem;
    line-height: 1.3;
}

.modal-product-compact-details {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}

.modal-detail-compact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.modal-detail-compact-label {
    font-weight: 600;
    color: var(--orange-400);
    background: var(--orange-100);
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
}

.modal-detail-compact-value {
    font-weight: 600;
    color: var(--gray-800);
}

.modal-product-compact-price {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.modal-current-price-compact {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--orange-400);
}

.modal-price-unit-compact {
    font-size: 0.8rem;
    color: var(--gray-800);
    opacity: 0.7;
}

/* Resumen Compacto */
.modal-summary-compact {
    background: white;
    border: 1px solid var(--orange-200);
    border-radius: 12px;
    overflow: hidden;
}

.modal-summary-compact-title {
    background: linear-gradient(135deg, var(--orange-300), var(--orange-400));
    padding: 0.75rem 1rem;
    margin: 0;
    font-weight: 700;
    color: white;
    font-size: 0.9rem;
    text-align: center;
}

.modal-summary-compact-header {
    padding: 0.75rem;
    background: var(--orange-50);
    border-bottom: 1px solid var(--orange-200);
    font-size: 0.8rem;
    font-weight: 600;
}

.modal-summary-compact-item {
    padding: 0.75rem;
    border-bottom: 1px solid var(--orange-100);
    font-size: 0.85rem;
}

.modal-item-compact-name {
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.25rem;
}

.modal-item-compact-variants {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.modal-variant-compact {
    color: var(--orange-400);
    font-size: 0.75rem;
}

.modal-summary-compact-total {
    padding: 0.75rem;
    background: var(--orange-50);
    font-weight: 700;
    font-size: 0.9rem;
}

/* Columna Checkout Compacta */
.modal-compact-checkout {
    padding: 1.5rem;
    background: white;
}

.modal-checkout-compact {
    background: white;
    border: 1px solid var(--orange-200);
    border-radius: 12px;
    overflow: hidden;
    height: fit-content;
}

.modal-checkout-compact-title {
    background: linear-gradient(135deg, var(--orange-300), var(--orange-400));
    padding: 0.75rem 1rem;
    margin: 0;
    font-weight: 700;
    color: white;
    font-size: 0.9rem;
    text-align: center;
}

.modal-summary-line-compact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 1rem;
    border-bottom: 1px solid var(--orange-100);
    font-size: 0.85rem;
}

.modal-summary-line-compact.discount {
    background: var(--orange-50);
}

.modal-label-compact {
    font-weight: 600;
    color: var(--gray-800);
}

.modal-value-compact {
    font-weight: 700;
    color: var(--gray-800);
}

.modal-value-compact.free {
    color: #28a745;
    font-weight: 700;
}

.modal-value-compact.discount-amount {
    color: #dc3545;
}

.modal-summary-divider-compact {
    height: 2px;
    background: linear-gradient(90deg, var(--orange-300), var(--orange-400));
    margin: 0.5rem 0;
}

.modal-summary-total-line-compact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: linear-gradient(135deg, var(--orange-400), var(--orange-500));
    color: white;
}

.modal-summary-total-line-compact .modal-label-compact {
    font-size: 1rem;
    color: white;
    font-weight: 700;
}

.modal-summary-total-line-compact .modal-value-compact.total {
    font-size: 1.3rem;
    color: white;
    font-weight: 800;
}

/* Botones Compactos */
.modal-action-buttons-compact {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.modal-btn-compact {
    padding: 0.75rem 1rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    gap: 0.5rem;
}

.modal-btn-compact-dark {
    background: var(--gray-800);
    border-color: var(--gray-800);
    color: white;
}

.modal-btn-compact-dark:hover {
    background: #495057;
    border-color: #495057;
    transform: translateY(-1px);
    color: white;
}

.modal-btn-compact-success {
    background: #28a745;
    border-color: #28a745;
    color: white;
}

.modal-btn-compact-success:hover {
    background: #218838;
    border-color: #218838;
    transform: translateY(-1px);
    color: white;
}

.modal-btn-compact-outline {
    border: 2px solid var(--orange-300);
    color: var(--orange-400);
    background: transparent;
}

.modal-btn-compact-outline:hover {
    background: var(--orange-400);
    border-color: var(--orange-400);
    color: white;
    transform: translateY(-1px);
}

/* Mensaje de Envío Compacto */
.modal-shipping-compact {
    background: linear-gradient(135deg, var(--orange-100), var(--orange-200));
    padding: 0.75rem;
    border-radius: 8px;
    text-align: center;
    margin-top: 1rem;
    border: 1px solid var(--orange-300);
    font-size: 0.8rem;
    font-weight: 600;
}

/* Scrollbar Compacto */
.modal-compact-body::-webkit-scrollbar {
    width: 6px;
}

.modal-compact-body::-webkit-scrollbar-track {
    background: var(--orange-100);
}

.modal-compact-body::-webkit-scrollbar-thumb {
    background: var(--orange-300);
    border-radius: 3px;
}

/* Responsive para Modal Compacto */
@media (max-width: 768px) {
    .modal-compact-container {
        margin: 0.5rem;
        max-height: 90vh;
    }
    
    .modal-compact-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-compact-product {
        border-right: none;
        border-bottom: 2px solid var(--orange-100);
        padding: 1rem;
    }
    
    .modal-compact-checkout {
        padding: 1rem;
    }
    
    .modal-compact-header {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .modal-compact-header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .modal-compact-icon {
        font-size: 1.75rem;
    }
    
    .modal-compact-text h4 {
        font-size: 1.1rem;
    }
    
    .modal-product-compact {
        padding: 1rem;
    }
    
    .modal-action-buttons-compact {
        padding: 1rem;
    }
    
    .modal-btn-compact {
        padding: 0.6rem 0.75rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .modal-product-compact-content {
        flex-direction: column;
        text-align: center;
    }
    
    .modal-product-compact-image {
        align-self: center;
    }
    
    .modal-detail-compact {
        justify-content: center;
    }
    
    .modal-summary-line-compact,
    .modal-summary-total-line-compact {
        flex-direction: column;
        gap: 0.25rem;
        text-align: center;
    }
}