/* Estilos específicos para la página de producto */
.breadcrumb-section {
    background-color: var(--bg-light);
    margin-top: 80px;
}

.breadcrumb {
    margin-bottom: 0;
}

.breadcrumb-item a {
    color: var(--primary-color);
}

.breadcrumb-item.active {
    color: var(--text-light);
}

.product-image-container {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
     border-radius: 16px;
}

/* .product-image-container {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
} */

.main-product-image {
    position: relative;
    width: 100%;
    height: 350px;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #eee;
    overflow: hidden;
}

.main-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* ocupa todo el contenedor */
    transition: transform 0.35s ease;
}

.main-product-image:hover img {
    transform: scale(1.08);
}

.product-thumbnails {
    padding: 12px;
    background-color: #fff;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.thumbnail-item {
    cursor: pointer;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 2px solid transparent;
    background-color: #f8f9fa;
    transition: transform 0.25s ease, box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.thumbnail-item img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    display: block;
}
.thumbnail-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-color);
}

.thumbnail-item.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px
        color-mix(in srgb, var(--primary-color) 25%, transparent);
}
.thumbnail-item {
    box-sizing: border-box;
}

.product-info {
    padding: 20px;
    background-color: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    height: 100%;
}

.product-tags {
    display: flex;
    gap: 10px;
}

.product-tag {
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.product-tag.new {
    background-color: #28a745;
    color: white;
}

.product-tag.popular {
    background-color: #ffc107;
    color: #212529;
}

.product-tag.stock {
    background-color: #17a2b8;
    color: white;
}

.product-title {
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.product-sku {
    color: var(--text-light);
    font-size: 0.9rem;
}

.sku-label {
    font-weight: 600;
}

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

.product-rating .stars {
    color: #ffc107;
}

.rating-value {
    font-weight: 600;
    font-size: 1.1rem;
}

.rating-count {
    color: var(--text-light);
    font-size: 0.9rem;
}

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

.current-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.original-price {
    font-size: 1.5rem;
    text-decoration: line-through;
    color: var(--text-light);
}

.discount {
    background-color: #dc3545;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.9rem;
}

.product-short-desc {
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
}

.key-specs {
    background-color: var(--bg-light);
    padding: 20px;
    border-radius: var(--border-radius);
}

.specs-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.spec-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    gap: 10px;
}

.spec-item i {
    color: var(--primary-color);
    font-size: 1.1rem;
    min-width: 20px;
}

.product-options {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.option-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

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

.size-option {
    padding: 8px 15px;
    border: 1px solid var(--border-color);
    background-color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.size-option.active,
.size-option:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

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

.color-option {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

.color-option.active {
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.product-actions {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    overflow: hidden;
    width: 150px;
}

.quantity-btn {
    width: 40px;
    height: 45px;
    background-color: var(--bg-light);
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

.quantity-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.quantity-input {
    width: 70px;
    height: 45px;
    border: none;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
}

.product-social-share {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.share-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.social-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.social-share-btn {
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
}

.social-share-btn.facebook {
    background-color: #3b5998;
}

.social-share-btn.instagram {
    background: linear-gradient(
        45deg,
        #405de6,
        #5851db,
        #833ab4,
        #c13584,
        #e1306c,
        #fd1d1d
    );
}

.social-share-btn.tiktok {
    background-color: #000000;
}

.social-share-btn.twitter {
    background-color: #1da1f2;
}

.social-share-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

/* Tabs de detalles del producto */
.product-detail-tabs {
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 30px;
}

.product-detail-tabs .nav-link {
    color: var(--text-light);
    border: none;
    border-bottom: 3px solid transparent;
    padding: 15px 25px;
    font-weight: 500;
    border-radius: 0;
    transition: var(--transition);
}

.product-detail-tabs .nav-link.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background-color: transparent;
}

.product-detail-tabs .nav-link:hover:not(.active) {
    color: var(--primary-color);
}

.tab-content-inner {
    padding: 30px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.tab-content-inner h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.tab-content-inner h4 {
    margin-top: 25px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.specs-table {
    background-color: white;
    border: 1px solid var(--border-color);
}

.specs-table th {
    width: 40%;
    background-color: var(--bg-light);
    font-weight: 600;
    color: var(--primary-color);
}

.service-item-card {
    background-color: var(--bg-light);
    padding: 20px;
    border-radius: var(--border-radius);
    text-align: center;
    margin-bottom: 15px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.service-item-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.service-item-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-item-card h5 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.service-item-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.service-price {
    font-weight: 700;
    color: var(--primary-color);
}

/* Sistema de reseñas */
.overall-rating {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: var(--border-radius);
}

.rating-summary {
    padding: 20px;
}

.rating-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.rating-stars {
    color: #ffc107;
    font-size: 1.5rem;
    margin: 10px 0;
}

.rating-count {
    color: var(--text-light);
}

.rating-bars {
    padding: 10px 0;
}

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

.rating-label {
    width: 80px;
    font-size: 0.9rem;
}

.bar-container {
    flex: 1;
    height: 10px;
    background-color: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background-color: #ffc107;
}

.rating-percent {
    width: 40px;
    text-align: right;
    font-size: 0.9rem;
    font-weight: 600;
}

.review-list {
    margin-top: 30px;
}

.review-item {
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
}

.review-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 10px;
}

.review-author {
    font-weight: 600;
    color: var(--primary-color);
}

.review-rating {
    color: #ffc107;
}

.review-date {
    color: var(--text-light);
    font-size: 0.9rem;
}

.review-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.review-content {
    color: var(--text-color);
    margin-bottom: 10px;
}

.review-verified {
    color: #28a745;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Formulario de reseñas */
.add-review-form {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: var(--border-radius);
    margin-top: 30px;
}

.rating-input {
    direction: rtl;
    unicode-bidi: bidi-override;
    text-align: center;
}

.rating-input input {
    display: none;
}

.rating-input label {
    color: #ddd;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    transition: var(--transition);
}

.rating-input label i.hover,
.rating-input label:hover,
.rating-input label:hover ~ label {
    color: #ffc107;
}

.rating-input input:checked ~ label {
    color: #ffc107;
}

/* Productos relacionados */
.related-products {
    background-color: var(--bg-light);
}

.related-product-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.related-product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.related-product-img {
    height: 200px;
    overflow: hidden;
}

.related-product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.related-product-card:hover .related-product-img img {
    transform: scale(1.05);
}

.related-product-content {
    padding: 20px;
}

.related-product-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    height: 50px;
    overflow: hidden;
}

.related-product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.related-product-btn {
    width: 100%;
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 8px 15px;
    border-radius: 50px;
    font-weight: 500;
}

.related-product-btn:hover {
    background-color: var(--primary-color);
    color: white;
}
.swiper-slide {
    border-radius: 16px;
     display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.services-swiper {
    padding: 10px 0 40px;
}

.service-link {
    text-decoration: none;
    color: inherit;
}

.service-card {
    background: #fff;
    border-radius: 16px;
    padding: 2px;
    height: 100%;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: scale(1.08);
}

.service-img {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.service-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.service-title {
    font-size: 1rem;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 991.98px) {
    .product-title {
        font-size: 1.8rem;
    }

    .current-price {
        font-size: 2rem;
    }

    .zoomed-image-container {
        display: none !important;
    }
}

@media (max-width: 767.98px) {
    .product-title {
        font-size: 1.6rem;
    }

    .product-price {
        flex-wrap: wrap;
    }

    .social-share-buttons {
        justify-content: center;
    }

    .product-detail-tabs .nav-link {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
}

@media (max-width: 575.98px) {
    .product-title {
        font-size: 1.4rem;
    }

    .product-actions .d-md-flex {
        flex-direction: column;
    }

    .quantity-selector {
        width: 100%;
    }
}
