* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            margin-top: 60px; /* Ajuste para el header fijo */
            font-family: 'Inter', sans-serif;
            background: #faf8f5;
            color: #3c3428;
            line-height: 1.6;
        }

        /* HEADER */
        .header {
            background: rgba(250, 248, 245, 0.98);
            backdrop-filter: blur(10px);
            border-bottom: 1px solid #e8e3db;
            padding: 15px 0;
            position: sticky;
            top: 0;
            z-index: 1000;
        }

        .header-container {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            align-items: center;
            gap: 20px;
        }

        .back-btn {
            background: none;
            border: none;
            display: flex;
            align-items: center;
            gap: 8px;
            color: #666;
            font-size: 14px;
            cursor: pointer;
            padding: 8px 12px;
            border-radius: 8px;
            transition: all 0.2s ease;
            text-decoration: none;
        }

        .back-btn:hover {
            background: #f0f0f0;
            color: #3c3428;
        }

        .brand-mini {
            display: flex;
            align-items: center;
            gap: 10px;
            text-decoration: none;
            color: #3c3428;
        }

        .brand-mini .icon {
            font-size: 20px;
            color: #a67c52;
        }

        .brand-mini .text h1 {
            font-family: 'Playfair Display', serif;
            font-size: 18px;
            font-weight: 600;
        }

        .brand-mini .text p {
            font-size: 10px;
            color: #8b6914;
            margin-top: -2px;
        }

        .header-user {
            margin-left: auto;
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .user-info {
            display: flex;
            align-items: center;
            gap: 8px;
            color: #666;
            font-size: 14px;
        }

        .cart-btn {
            position: relative;
            background: none;
            border: none;
            font-size: 20px;
            color: #666;
            cursor: pointer;
            padding: 8px;
            border-radius: 50%;
            transition: all 0.2s ease;
        }

        .cart-btn:hover {
            background: #f0f0f0;
            color: #3c3428;
        }

        .cart-badge {
            position: absolute;
            top: -5px;
            right: -5px;
            background: #ff6b6b;
            color: white;
            border-radius: 50%;
            width: 18px;
            height: 18px;
            font-size: 12px;
            font-weight: 600;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        /* MAIN CONTENT */
        .main-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 30px 20px;
            min-height: calc(100vh - 80px); /* Altura mínima para evitar espacios */
        }

        .product-container {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 40px;
            margin-bottom: 40px;
            align-items: start; /* Alinear elementos al inicio */
        }

        /* GALERÍA DE IMÁGENES */
        .product-gallery {
            display: flex;
            gap: 20px;
            height: fit-content; /* Altura ajustada al contenido */
        }

        .thumbnails {
            display: flex;
            flex-direction: column;
            gap: 10px;
            flex-shrink: 0; /* No reducir el tamaño */
        }

        .thumbnail {
            width: 80px;
            height: 80px;
            border-radius: 8px;
            object-fit: cover;
            cursor: pointer;
            border: 2px solid transparent;
            transition: all 0.2s ease;
            display: block; /* Asegurar display block */
        }

        .thumbnail.active,
        .thumbnail:hover {
            border-color: #a67c52;
        }

        .main-image-container {
            flex: 1;
            position: relative;
            background: white;
            border-radius: 15px;
            padding: 20px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.05);
            height: fit-content; /* Altura ajustada al contenido */
        }

        .main-image {
            width: 100%;
            height: 500px;
            object-fit: cover;
            border-radius: 10px;
            display: block; /* Eliminar espacios debajo de la imagen */
        }

        .zoom-btn {
            position: absolute;
            top: 30px;
            right: 30px;
            background: rgba(255,255,255,0.9);
            border: none;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .zoom-btn:hover {
            background: white;
            transform: scale(1.1);
        }

        /* INFORMACIÓN DEL PRODUCTO */
        .product-info {
            padding: 20px 0;
            height: fit-content; /* Altura ajustada al contenido */
            display: flex;
            flex-direction: column;
        }

        .product-title {
            font-family: 'Playfair Display', serif;
            font-size: 28px;
            font-weight: 600;
            color: #3c3428;
            margin-bottom: 10px;
            line-height: 1.2; /* Línea más compacta */
        }

        .product-rating {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 15px;
        }

        .stars {
            display: flex;
            gap: 2px;
        }

        .star {
            color: #ffd700;
            font-size: 16px;
        }

        .star.empty {
            color: #ddd;
        }

        .rating-info {
            font-size: 14px;
            color: #666;
        }

        /* PRECIO DEL PRODUCTO */
.product-price {
    margin-bottom: 20px;
}

.current-price {
    font-size: 34px;
    font-weight: 700;
    color: #d4a017; /* Dorado cálido premium */
    line-height: 1;
    text-shadow: 0 1px 3px rgba(0,0,0,0.1); /* Toque de profundidad */
}

.original-price {
    font-size: 18px;
    text-decoration: line-through;
    color: #b08d57; /* Cobre suave */
    margin-left: 12px;
}

.discount-badge {
    background: linear-gradient(135deg, #ff914d, #ff6f61); /* Ámbar → coral cálido */
    color: #fff;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    margin-left: 12px;
    box-shadow: 0 4px 8px rgba(255,111,97,0.3);
}


        .product-variants {
            margin-bottom: 25px;
        }

        .variant-title {
            font-weight: 600;
            margin-bottom: 10px;
            color: #3c3428;
        }

        .size-options {
            display: flex;
            gap: 10px;
            flex-wrap: wrap; /* Permitir wrap si es necesario */
        }

        .size-option {
            padding: 10px 20px;
            border: 2px solid #e0e0e0;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.2s ease;
            background: white;
            flex-shrink: 0; /* No reducir el tamaño */
        }

        .size-option.selected,
        .size-option:hover {
            border-color: #a67c52;
            background: #f9f7f4;
        }

        .quantity-selector {
            display: flex;
            align-items: center;
            gap: 15px;
            margin-bottom: 25px;
        }

        .quantity-controls {
            display: flex;
            align-items: center;
            border: 2px solid #e0e0e0;
            border-radius: 8px;
            background: white;
        }

        .qty-btn {
            background: none;
            border: none;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-size: 16px;
            color: #666;
            flex-shrink: 0;
        }

        .qty-btn:hover {
            background: #f5f5f5;
        }

        .qty-input {
            width: 60px;
            text-align: center;
            border: none;
            padding: 10px 5px;
            font-size: 16px;
            background: transparent;
        }

        .action-buttons {
            display: flex;
            gap: 15px;
            margin-bottom: 30px;
        }

        .btn {
            padding: 15px 25px;
            border: none;
            border-radius: 10px;
            font-weight: 600;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            transition: all 0.3s ease;
            text-decoration: none;
            font-size: 16px;
            white-space: nowrap; /* Evitar salto de línea */
        }

        .btn-primary {
            background: linear-gradient(135deg, #a67c52, #8b6914);
            color: white;
            flex: 2;
        }

        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(166, 124, 82, 0.3);
        }

        .btn-secondary {
            background: white;
            color: #a67c52;
            border: 2px solid #a67c52;
            flex: 1;
        }

        .btn-secondary:hover {
            background: #a67c52;
            color: white;
        }

        .product-features {
            border-top: 1px solid #e8e3db;
            padding-top: 20px;
            margin-top: auto; /* Empujar hacia abajo si hay espacio extra */
        }

        .feature-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 10px 0;
            color: #666;
            font-size: 14px;
        }

        .feature-icon {
            color: #a67c52;
            font-size: 16px;
            flex-shrink: 0;
        }

        /* SECCIONES DE INFORMACIÓN */
        .info-sections {
            margin-top: 40px;
            clear: both; /* Limpiar floats si los hay */
        }

        .info-tabs {
            display: flex;
            border-bottom: 2px solid #e8e3db;
            margin-bottom: 30px;
            overflow-x: auto; /* Scroll horizontal si es necesario */
        }

        .tab-btn {
            background: none;
            border: none;
            padding: 15px 25px;
            font-size: 16px;
            font-weight: 600;
            color: #666;
            cursor: pointer;
            border-bottom: 3px solid transparent;
            transition: all 0.2s ease;
            white-space: nowrap;
            flex-shrink: 0;
        }

        .tab-btn.active,
        .tab-btn:hover {
            color: #a67c52;
            border-bottom-color: #a67c52;
        }

        .tab-content {
            display: none;
            padding: 20px 0;
        }

        .tab-content.active {
            display: block;
        }

        .benefits-list {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 15px;
            margin: 20px 0;
        }

        .benefit-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 12px;
            background: white;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
            height: fit-content; /* Altura ajustada */
        }

        .benefit-icon {
            color: #a67c52;
            font-size: 18px;
            flex-shrink: 0;
        }

        /* RESEÑAS */
        .reviews-summary {
            display: grid;
            grid-template-columns: 200px 1fr;
            gap: 30px;
            margin-bottom: 30px;
            padding: 25px;
            background: white;
            border-radius: 15px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.05);
            align-items: start; /* Alinear al inicio */
        }

        .rating-overview {
            text-align: center;
        }

        .big-rating {
            font-size: 48px;
            font-weight: 700;
            color: #a67c52;
            margin-bottom: 10px;
            line-height: 1;
        }

        .rating-details {
            flex: 1;
        }

        .rating-bar {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 8px;
        }

        .bar-label {
            width: 60px;
            font-size: 14px;
            color: #666;
            flex-shrink: 0;
        }

        .bar {
            flex: 1;
            height: 8px;
            background: #e0e0e0;
            border-radius: 4px;
            overflow: hidden;
        }

        .bar-fill {
            height: 100%;
            background: #ffd700;
            display: block;
        }

        .bar-count {
            width: 30px;
            font-size: 14px;
            color: #666;
            text-align: right;
            flex-shrink: 0;
        }

        .review-item {
            background: white;
            padding: 20px;
            border-radius: 12px;
            margin-bottom: 15px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        }

        .review-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 10px;
        }

        .reviewer-info {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .reviewer-avatar {
            width: 40px;
            height: 40px;
            background: linear-gradient(135deg, #a67c52, #8b6914);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: 600;
            flex-shrink: 0;
        }

        .reviewer-name {
            font-weight: 600;
            color: #3c3428;
        }

        .verified-badge {
            background: #27ae60;
            color: white;
            padding: 2px 6px;
            border-radius: 10px;
            font-size: 10px;
            font-weight: 600;
        }

        .review-date {
            font-size: 12px;
            color: #999;
        }

        .review-comment {
            color: #666;
            line-height: 1.6;
        }

        /* RESPONSIVE */
        @media (max-width: 768px) {
            .product-container {
                grid-template-columns: 1fr;
                gap: 20px;
            }

            .product-gallery {
                flex-direction: column;
                height: auto;
            }

            .thumbnails {
                flex-direction: row;
                order: 1;
                justify-content: center;
                overflow-x: auto;
                padding-bottom: 10px;
            }

            .main-image-container {
                order: 0;
            }

            .main-image {
                height: 300px;
            }

            .action-buttons {
                flex-direction: column;
                gap: 10px;
            }

            .reviews-summary {
                grid-template-columns: 1fr;
                text-align: center;
            }

            .info-tabs {
                overflow-x: auto;
                white-space: nowrap;
                -webkit-overflow-scrolling: touch;
            }

            .tab-btn {
                white-space: nowrap;
                min-width: fit-content;
            }

            .benefits-list {
                grid-template-columns: 1fr;
            }
        }

        /* MODAL STYLES */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(5px);
            z-index: 10000;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
        }

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

        .modal {
            background: white;
            border-radius: 20px;
            padding: 0;
            max-width: 500px;
            width: 90%;
            max-height: 90vh;
            overflow-y: auto;
            transform: scale(0.7) translateY(20px);
            transition: all 0.3s ease;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
        }

        .modal-overlay.active .modal {
            transform: scale(1) translateY(0);
        }

        .modal-header {
            padding: 25px 30px 20px;
            border-bottom: 1px solid #f0f0f0;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .modal-title {
            font-family: 'Playfair Display', serif;
            font-size: 24px;
            font-weight: 600;
            color: #3c3428;
            margin: 0;
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .modal-close {
            background: none;
            border: none;
            font-size: 24px;
            color: #999;
            cursor: pointer;
            padding: 5px;
            border-radius: 50%;
            transition: all 0.2s ease;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .modal-close:hover {
            background: #f5f5f5;
            color: #666;
        }

        .modal-body {
            padding: 25px 30px 30px;
        }

        .login-modal-content {
            text-align: center;
        }

        .login-icon {
            width: 80px;
            height: 80px;
            background: linear-gradient(135deg, #a67c52, #8b6914);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 20px;
            color: white;
            font-size: 36px;
        }

        .login-message {
            font-size: 16px;
            color: #666;
            margin-bottom: 25px;
            line-height: 1.6;
        }

        .login-buttons {
            display: flex;
            gap: 15px;
            justify-content: center;
            flex-wrap: wrap;
        }

        .modal-btn {
            padding: 12px 24px;
            border: none;
            border-radius: 10px;
            font-weight: 600;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 14px;
            min-width: 140px;
            justify-content: center;
        }

        .modal-btn-primary {
            background: linear-gradient(135deg, #a67c52, #8b6914);
            color: white;
        }

        .modal-btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(166, 124, 82, 0.3);
        }

        .modal-btn-secondary {
            background: #f8f9fa;
            color: #666;
            border: 2px solid #e9ecef;
        }

        .modal-btn-secondary:hover {
            background: #e9ecef;
            color: #495057;
        }

        /* ELIMINACIÓN DE ESPACIOS EN BLANCO ADICIONALES */
        .product-container > * {
            margin-bottom: 0 !important;
        }

        /* Asegurar que las imágenes no generen espacio extra */
        img {
            display: block;
            max-width: 100%;
            height: auto;
        }

        /* Eliminar espacios en elementos flexbox */
        .product-gallery,
        .thumbnails,
        .size-options,
        .action-buttons {
            align-items: stretch;
        }

        /* Evitar colapso de márgenes */
        .product-info > *:last-child {
            margin-bottom: 0;
        }