/* ===== PAGE BACKGROUND ===== */
body {
    background-color: #f5f5f5;
}

/* ===== PRODUCT DETAIL CONTAINER ===== */
.product-detail {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

/* ===== PRODUCT IMAGES ===== */
.product-images {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.main-image {
    width: 100%;
    height: 500px;
    object-fit: contain;
    background-color: #fafafa;
    border-radius: 8px;
    padding: 40px;
}

.thumbnail-images {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    cursor: pointer;
    transition: border-color 0.3s;
}

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

/* ===== PRODUCT INFO ===== */
.product-info {
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 15px;
    color: #000;
    letter-spacing: 1px;
}

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

.stars {
    color: #FFD700;
    font-size: 18px;
}

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

/* ===== PRECIO CON OFERTA ===== */
.product-price {
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.price-container {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.current-price {
    font-size: 32px;
    font-weight: bold;
    color: #000;
}

.original-price {
    font-size: 24px;
    color: #999;
    text-decoration: line-through;
    font-weight: 400;
}

.discount-badge {
    background-color: #e74c3c;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.currency {
    font-size: 16px;
    color: #666;
    font-weight: 400;
}

/* ===== PRODUCT FEATURES ===== */
.product-features {
    list-style: none;
    margin-bottom: 30px;
    padding: 25px;
    background-color: #f9f9f9;
    border-radius: 6px;
}

.product-features li {
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
    font-size: 14px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 12px;
}

.product-features li:last-child {
    border-bottom: none;
}

.feature-icon {
    font-size: 18px;
    color: #1a1a1a;
}

.product-sku {
    font-size: 14px;
    color: #999;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

/* ===== SELECTOR DE VARIANTES ===== */
.product-variants {
    margin-bottom: 30px;
    padding: 25px;
    background-color: #fafafa;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.variant-group {
    margin-bottom: 25px;
}

.variant-group:last-of-type {
    margin-bottom: 0;
}

.variant-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.variant-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Botones de variantes (Tallas, RAM, Storage, etc.) */
.variant-option {
    min-width: 60px;
    padding: 12px 18px;
    border: 2px solid #ddd;
    background-color: white;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.variant-option:hover {
    border-color: #1a1a1a;
    background-color: #f5f5f5;
}

.variant-option.selected {
    border-color: #1a1a1a;
    background-color: #1a1a1a;
    color: white;
}

.variant-option:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background-color: #f0f0f0;
}

/* ===== SWATCHES DE COLOR ===== */
.color-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.color-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px;
    border: 2px solid transparent;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.color-option:hover {
    border-color: #ddd;
    background-color: #f9f9f9;
}

.color-option.selected {
    border-color: #1a1a1a;
    background-color: #f5f5f5;
}

.color-swatch {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid #e0e0e0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.color-option.selected .color-swatch {
    border-color: #1a1a1a;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    transform: scale(1.05);
}

.color-name {
    font-size: 12px;
    color: #666;
    text-align: center;
    font-weight: 500;
}

.color-option.selected .color-name {
    color: #1a1a1a;
    font-weight: 600;
}

/* ===== MENSAJES DE VARIANTES ===== */
.variant-error {
    display: none;
    padding: 12px 16px;
    background-color: #fee;
    border: 1px solid #fcc;
    border-radius: 4px;
    color: #c33;
    font-size: 14px;
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.variant-error i {
    font-size: 16px;
}

.selected-variant {
    display: none;
    padding: 12px 16px;
    background-color: #e8f5e9;
    border: 1px solid #c8e6c9;
    border-radius: 4px;
    color: #2e7d32;
    font-size: 14px;
    margin-top: 15px;
}

.selected-variant strong {
    font-weight: 600;
    margin-right: 8px;
}

/* ===== QUANTITY SELECTOR ===== */
.quantity-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.quantity-selector label {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.quantity-controls {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.quantity-controls button {
    background-color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 18px;
    color: #333;
    transition: background-color 0.3s;
}

.quantity-controls button:hover {
    background-color: #f0f0f0;
}

.quantity-controls input {
    border: none;
    width: 60px;
    text-align: center;
    font-size: 16px;
    padding: 10px 5px;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
}

/* ===== BUTTONS ===== */
.btn-add-cart {
    background-color: #1a1a1a;
    color: white;
    border: none;
    padding: 18px 40px;
    font-size: 14px;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    border-radius: 4px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.btn-add-cart:hover {
    background-color: #333;
}

.btn-add-cart:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

/* ===== SPECIFICATIONS ===== */
.specifications-title {
    font-size: 18px;
    font-weight: 500;
    margin: 40px 0 20px 0;
    color: #000;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.specifications-list {
    list-style: none;
    padding: 0;
}

.specifications-list li {
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
    font-size: 14px;
    color: #555;
}

.specifications-list li:last-child {
    border-bottom: none;
}

/* ===== DESCRIPCIÓN DEL PRODUCTO ===== */
.product-description-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.product-description-container {
    padding: 50px 40px;
}

.description-title {
    font-size: 24px;
    font-weight: 500;
    color: #000;
    margin-bottom: 30px;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-bottom: 2px solid #1a1a1a;
    padding-bottom: 15px;
}

.description-content {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
}

.description-content p {
    margin-bottom: 20px;
}

.description-content p:last-child {
    margin-bottom: 0;
}

.no-description {
    color: #999;
    font-style: italic;
    text-align: center;
    padding: 30px 0;
}

/* ===== GUARANTEE SECTION ===== */
.guarantee-section {
    background-color: white;
    text-align: center;
    padding: 80px 20px;
    margin: 60px 0;
}

.guarantee-title {
    font-size: 64px;
    font-weight: bold;
    color: #000;
    margin-bottom: 10px;
}

.guarantee-subtitle {
    font-size: 16px;
    letter-spacing: 3px;
    color: #333;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.guarantee-stars {
    color: #FFD700;
    font-size: 24px;
    margin-bottom: 25px;
}

.guarantee-text {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

.btn-review {
    background-color: #1a1a1a;
    color: white;
    border: none;
    padding: 15px 50px;
    font-size: 12px;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: background-color 0.3s;
    border-radius: 4px;
    text-transform: uppercase;
}

.btn-review:hover {
    background-color: #333;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 968px) {
    .product-detail {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .guarantee-title {
        font-size: 48px;
    }

    .product-description-container {
        padding: 30px 20px;
    }

    .description-title {
        font-size: 20px;
    }

    .description-content {
        font-size: 14px;
    }

    .price-container {
        gap: 10px;
    }

    .current-price {
        font-size: 28px;
    }

    .original-price {
        font-size: 20px;
    }

    .discount-badge {
        font-size: 12px;
        padding: 4px 8px;
    }

    .product-variants {
        padding: 20px;
    }

    .variant-option {
        min-width: 50px;
        padding: 10px 14px;
        font-size: 13px;
    }

    .color-swatch {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .product-title {
        font-size: 22px;
    }

    .current-price {
        font-size: 24px;
    }

    .original-price {
        font-size: 18px;
    }

    .main-image {
        height: 350px;
        padding: 20px;
    }

    .thumbnail {
        width: 60px;
        height: 60px;
    }

    .variant-options {
        gap: 8px;
    }

    .variant-option {
        min-width: 45px;
        padding: 8px 12px;
        font-size: 12px;
    }

    .color-swatch {
        width: 35px;
        height: 35px;
    }

    .color-name {
        font-size: 11px;
    }
}