
body {
    font-family: Arial, Helvetica, sans-serif;
    color: #222;
    background: #fff;
}


.product-detail-section {
    padding: 70px 0;
}


/* =========================================
    BREADCRUMB
========================================= */

.product-breadcrumb {
    margin-bottom: 45px;
}

.product-breadcrumb a {
    color: #777;
    text-decoration: none;
}

.product-breadcrumb a:hover {
    color: #222;
}

.product-breadcrumb .current {
    color: #222;
    font-weight: 500;
}


/* =========================================
    GALERÍA
========================================= */

.product-gallery {
    position: relative;
}

.main-image-wrapper {
    position: relative;
    overflow: hidden;
    background: #f7f7f7;
    cursor: zoom-in;
}

.main-product-image {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

/*
    * Efecto zoom al pasar el mouse.
    */
.main-image-wrapper:hover .main-product-image {
    transform: scale(1.12);
}


/* =========================================
    MINIATURAS
========================================= */

.product-thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 15px;
}

.thumbnail {
    border: 1px solid transparent;
    padding: 0;
    background: #f7f7f7;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.25s ease;
}

.thumbnail img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.thumbnail:hover img {
    transform: scale(1.05);
}

.thumbnail.active {
    border-color: #222;
}


/* =========================================
    INFORMACIÓN DEL PRODUCTO
========================================= */

.product-info {
    padding-left: 35px;
}

.product-category {
    color: #888;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.product-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 500;
    margin-bottom: 18px;
    line-height: 1.15;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
}

.product-rating-stars {
    color: #f4b400;
    font-size: 1rem;
}

.product-rating-count {
    color: #777;
    font-size: 0.9rem;
}

.product-detail-price {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 25px;
    color: #7A1F3D;
}

.product-detail-price .old-price {
    font-size: 1rem;
    color: #999;
    text-decoration: line-through;
    font-weight: 400;
    margin-left: 10px;
}

.product-short-description {
    color: #666;
    line-height: 1.8;
    margin-bottom: 30px;
}

.product-divider {
    border: 0;
    border-top: 1px solid #e5e5e5;
    margin: 30px 0;
}


/* =========================================
    CANTIDAD
========================================= */

.quantity-label {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.quantity-selector {
    display: inline-flex;
    align-items: center;
    border: 1px solid #ddd;
    height: 48px;
}

.quantity-btn {
    width: 45px;
    height: 46px;
    border: 0;
    background: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.quantity-btn:hover {
    background: #f5f5f5;
}

.quantity-input {
    width: 50px;
    height: 46px;
    border: 0;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    text-align: center;
    font-size: 1rem;
    outline: none;
}


/* =========================================
    BOTONES
========================================= */

.product-actions {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.btn-add-product {
    flex: 1;
    height: 50px;
    background: #222;
    color: #fff;
    border: 1px solid #222;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    transition: all 0.25s ease;
}

.btn-add-product:hover {
    background: #fff;
    background-color: #7A1F3D;
    color: #fff;
}

.btn-favorite-product {
    width: 52px;
    height: 50px;
    border: 1px solid #ddd;
    background: #fff;
    font-size: 1.2rem;
    transition: all 0.25s ease;
}

.btn-favorite-product:hover {
    border-color: #222;
}

.btn-favorite-product.active {
    color: #dc3545;
}


/* =========================================
    INFORMACIÓN EXTRA
========================================= */

.product-meta {
    margin-top: 25px;
    color: #777;
    font-size: 0.85rem;
    line-height: 2;
}

.product-meta strong {
    color: #333;
}


/* =========================================
    TABS
========================================= */

.product-tabs-section {
    margin-top: 80px;
}

.product-tabs {
    border-bottom: 1px solid #ddd;
}

.product-tabs .nav-link {
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    color: #777;
    padding: 15px 25px;
    font-size: 0.9rem;
    font-weight: 500;
}

.product-tabs .nav-link:hover {
    color: #222;
}

.product-tabs .nav-link.active {
    color: #222;
    background: transparent;
    border-bottom-color: #222;
}

.tab-content {
    padding: 40px 0;
}

.tab-content p {
    color: #666;
    line-height: 1.9;
}


/* =========================================
    INFORMACIÓN ADICIONAL
========================================= */

.additional-info-table {
    max-width: 700px;
}

.additional-info-table tr {
    border-bottom: 1px solid #eee;
}

.additional-info-table th,
.additional-info-table td {
    padding: 15px 10px;
}

.additional-info-table th {
    width: 200px;
    font-weight: 600;
}

.additional-info-table td {
    color: #666;
}


/* =========================================
    RESEÑAS
========================================= */

.review-summary {
    display: flex;
    align-items: center;
    gap: 30px;
    padding-bottom: 35px;
    margin-bottom: 35px;
    border-bottom: 1px solid #eee;
}

.review-average {
    text-align: center;
    min-width: 120px;
}

.review-average-number {
    font-size: 3rem;
    font-weight: 500;
    display: block;
}

.review-average-stars {
    color: #f4b400;
    margin-bottom: 5px;
}

.review-average-count {
    color: #888;
    font-size: 0.85rem;
}

.review-item {
    padding: 25px 0;
    border-bottom: 1px solid #eee;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.review-user {
    font-weight: 600;
}

.review-date {
    color: #999;
    font-size: 0.8rem;
}

.review-stars {
    color: #f4b400;
    margin-bottom: 10px;
}

.review-text {
    color: #666;
    line-height: 1.7;
    /* margin-bottom: 0; */

    margin: 0 !important;

}


/* =========================================
    FORMULARIO DE RESEÑA
========================================= */

.review-form {
    background: #f8f8f8;
    padding: 35px;
    margin-top: 45px;
}

.review-form-title {
    font-size: 1.4rem;
    margin-bottom: 25px;
    font-weight: 500;
}

.rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 4px;
    margin-bottom: 20px;
}

.rating-input input {
    display: none;
}

.rating-input label {
    font-size: 1.8rem;
    color: #ccc;
    cursor: pointer;
    transition: color 0.2s ease;
}

.rating-input label:hover,
.rating-input label:hover ~ label,
.rating-input input:checked ~ label {
    color: #f4b400;
}

.review-form .form-control {
    border: 1px solid #ddd;
    border-radius: 0;
    padding: 12px 15px;
}

.review-form .form-control:focus {
    border-color: #222;
    box-shadow: none;
}

.btn-submit-review {
    background: #222;
    color: #fff;
    border: 1px solid #222;
    padding: 12px 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
}

.btn-submit-review:hover {
    /* background: #fff; */
    background: #7A1F3D;
    /* color: #222; */
    color: #fff;
}


/* =========================================
    RESPONSIVE
========================================= */

@media (max-width: 991.98px) {

    .product-detail-section {
        padding: 50px 0;
    }

    .product-info {
        padding-left: 0;
        margin-top: 45px;
    }

    .product-tabs-section {
        margin-top: 60px;
    }
}


@media (max-width: 575.98px) {

    .product-detail-section {
        padding: 35px 0;
    }

    .product-breadcrumb {
        margin-bottom: 25px;
        font-size: 0.85rem;
    }

    .product-title {
        font-size: 2rem;
    }

    /* .product-detail-price {
        font-size: 1.5rem;
    } */

    .product-actions {
        gap: 8px;
    }

    .btn-add-product {
        font-size: 0.75rem;
    }

    .product-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    .product-tabs .nav-link {
        white-space: nowrap;
        padding: 13px 18px;
        font-size: 0.8rem;
    }

    .tab-content {
        padding: 30px 0;
    }

    .review-summary {
        flex-direction: column;
        align-items: flex-start;
    }

    .review-form {
        padding: 25px 20px;
    }

    .additional-info-table th {
        width: 130px;
    }
}
