/* ===========================
   SINGLE PRODUCT PAGE STYLES
   =========================== */

/* Product Detail Container */
.product-detail-container {
    padding: 60px 20px !important;
    margin: 0 auto;
}

/* Product Header Section */
.product-header-section {
    display: flex;
    margin-bottom: 40px;
}

.product-header-inner {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
    align-items: flex-start;
}

.product-gallery-section {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.product-details-section {
    width: 100%;
    flex: 1;
}

@media (min-width: 1024px) {
    .product-header-inner {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .product-gallery-section {
        width: 100%;
    }

    .product-details-section {
        width: 100%;
    }
}

/* Gallery Section */
.product-gallery-main-wrapper {
    border: 1px solid #C0C0C0;
    border-radius: 0;
    overflow: visible;
    position: relative;
    aspect-ratio: 1 / 1;
    width: 100%;
}

.product-gallery-carousel {
    margin: 0 !important;
    aspect-ratio: 1 / 1;
}

.product-gallery-carousel .owl-carousel .owl-stage-outer {
    aspect-ratio: 1 / 1;
}

.product-gallery-main-wrapper .owl-carousel .owl-stage {
    height: 100%;
}

.product-gallery-item {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    width: 100%;
    aspect-ratio: 1 / 1;
}

.product-gallery-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0;
    cursor: pointer;
}

/* Gallery Carousel Navigation */
.product-gallery-main-wrapper .owl-nav {
    position: absolute;
    width: 100%;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    z-index: 10;
}

.product-gallery-main-wrapper .owl-nav button {
    background-color: rgba(255, 255, 255, 0.8) !important;
    border-radius: 4px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.product-gallery-main-wrapper .owl-nav button:hover {
    background-color: rgba(255, 255, 255, 1) !important;
}

.product-gallery-main-wrapper .owl-nav button i {
    color: #707070;
    font-size: 18px;
}

.product-gallery-main-wrapper .owl-dots {
    display: none !important;
}

/* Thumbnails Gallery */
.product-thumbnails-wrapper {
    background-color: transparent;
    border-radius: 0;
    padding: 0;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.product-thumbnails-carousel {
    margin: 0 !important;
    display: flex;
    gap: 15px;
    width: 100%;
}

.product-thumbnail-item {
    display: block;
    background-color: white;
    border: 1px solid #C0C0C0;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 82px;
    height: 82px;
    padding: 0;
    flex-shrink: 0;
    opacity: 0.3;
    overflow: hidden;
}

.product-thumbnail-item:hover {
    border-color: #666;
    background-color: white;
    opacity: 0.6;
}

.product-thumbnail-item.active {
    opacity: 1;
}

.product-thumbnail-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0;
    background-color: white;
}

.product-no-image {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 60px 20px;
    text-align: center;
}

.no-image-text {
    color: #999;
    font-size: 14px;
    margin: 0;
}

/* Product Title & Details */
.product-title {
    color: #333;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 15px;
}

.product-sku {
    color: #666;
    font-size: 28px;
    margin-bottom: 25px;
    padding: 15px 0;
}

.sku-label {
    font-weight: 600;
    color: #333;
}

.sku-value {
    color: #666;
}

/* Product Availability */
.product-availability {
    font-size: 22px;
    margin-bottom: 5px;
}

.availability-label {
    font-weight: 600;
    color: #333;
    font-size: 14px;
    margin-bottom: 8px;
}

.availability-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 22px;
    color: #28a745;
    font-weight: 400;
    margin: 0;
}

.availability-status.in-stock {
    color: #333;
}

.availability-status.out-of-stock {
    color: #dc3545;
}

.availability-status.on-request {
    color: #ffc107;
}

.availability-status i {
    font-size: 16px;
}

/* Shipping & Payment Info */
.product-delivery-payment {
    padding: 0 0 20px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.delivery-payment-title {
    font-size: 14px;
    color: #333;
    margin: 0 0 15px 0;
    font-weight: 400;
}

.product-delivery-payment-wrapper {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.delivery-info,
.payment-info {
    flex: 1;
    min-width: 200px;
}

.delivery-info h4,
.payment-info h4 {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.delivery-info h4 i,
.payment-info h4 i {
    color: #0170B9;
    font-size: 40px;
}

.delivery-info h4 img,
.payment-info h4 img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.delivery-info p,
.payment-info p {
    font-size: 12px;
    color: #333;
    line-height: 1.6;
    margin: 0;
    font-weight: 400;
}

.payment-methods {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.payment-method-icon {
    width: 40px;
    height: 25px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #666;
}

/* Quote Button */
.product-quote-section {
    padding: 0;
    margin-bottom: 15px;
}

.btn-cotizar-producto {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #0170B9;
    color: #FFFFFF !important;
    padding: 10px 30px;
    border-radius: 3px;
    font-family: 'Roboto', sans-serif;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0;
}

.btn-cotizar-producto:hover {
    background-color: #015a94;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(1, 112, 185, 0.3);
}

.btn-cotizar-producto i {
    font-size: 18px;
}

/* Image Modal */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    padding: 20px;
    flex-direction: column;
}

.image-modal.active {
    display: flex;
}

.modal-content {
    max-width: 90%;
    max-height: 75vh;
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 1 !important;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 10000;
}

.modal-close:hover,
.modal-close:focus {
    color: #bbb;
}

.modal-caption {
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 15px 0;
    font-size: 16px;
    margin-top: 10px;
}

/* Share Section */
.product-share-section {
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.product-share-section h3 {
    color: #4B4F58;
    margin: 0 0 12px 0;
    font-size: 13px;
    font-weight: bold;
}

.share-links {
    display: flex;
    flex-direction: row;
    gap: 10px;
    flex-wrap: wrap;
}

.share-links-product .share {
    padding: 10px !important;
}

.share-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s ease;
}

.share-facebook {
    background-color: #1877f2 !important;
    color: white !important;
}

.share-facebook:hover {
    background-color: #2d4373 !important;
    transform: translateY(-2px);
}

.share-linkedin {
    background-color: #0a66c2 !important;
    color: white !important;
}

.share-linkedin:hover {
    background-color: #004182 !important;
    transform: translateY(-2px);
}

.share-whatsapp {
    background-color: #25d366 !important;
    color: white !important;
}

.share-whatsapp:hover {
    background-color: #1da851 !important;
    transform: translateY(-2px);
}

.share-email {
    background-color: #666 !important;
    color: white !important;
}

.share-email:hover {
    background-color: #c8372c !important;
    transform: translateY(-2px);
}

/* Tabs Navigation */
.product-tabs {
    border-bottom: 2px solid #e0e0e0;
    margin-top: 30px;
    margin-bottom: 20px;
}

.tabs-wrapper {
    display: flex;
    gap: 0;
    flex-wrap: wrap;
}

.tab-button {
    padding: 15px 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: #666;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.tab-button:hover {
    color: #007bff;
    border-bottom-color: #007bff;
    background: none;
}

.tab-button.active {
    color: #007bff;
    border-bottom-color: #007bff;
}

/* Tab Content */
.tab-content {
    display: none !important;
    padding: 20px 0;
    animation: fadeIn 0.3s ease;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Specifications Table */
.specs-table-wrapper {
    padding-top: 10px;
    margin-bottom: 20px;
}

.specs-table {
    border-collapse: collapse;
    width: 100%;
}

.specs-table tbody tr {
    border-bottom: 1px solid #e0e0e0;
}

.specs-table tbody tr:last-child {
    border-bottom: none;
}

.specs-label {
    padding: 12px 10px;
    font-weight: 600;
    color: #333;
    width: 40%;
    background-color: #f8f9fa;
    text-align: left;
}

.specs-value {
    padding: 12px 10px;
    color: #666;
    text-align: left;
}

/* Product Content Sections */
.product-content-section {
    margin-bottom: 40px;
}

.product-description-short {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 15px;
}

.product-description {
    font-size: 15px;
    line-height: 1.8;
    color: #333;
    text-align: justify;
}

.product-characteristics {
    font-size: 15px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 20px;
}

.product-characteristics h3,
.product-details h3 {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    margin-top: 20px;
}

.product-details {
    font-size: 15px;
    line-height: 1.8;
    color: #333;
}

.no-details-text {
    color: #999;
    font-size: 14px;
    font-style: italic;
    margin: 20px 0;
}

/* Related Products Section */
.related-products-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #e0e0e0;
}

.related-products-section h2 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
}

.related-products-carousel {
    margin: 0 !important;
    margin-bottom: 60px;
}

.related-products-section .owl-carousel .owl-stage {
    padding-top: 0.5rem;
}

/* Related Products Item Styles */
.related-products-carousel .producto-item {
    background-color: #EBF0FA;
    border: 2px solid #4B4F58;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0;
}

.related-products-carousel .producto-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

.related-products-carousel .producto-image {
    width: 100%;
    height: 200px;
    background-color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.related-products-carousel .producto-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    padding: 10px;
}

.related-products-carousel .producto-title {
    font-size: .875rem;
    font-weight: 600;
    color: #333;
    padding: 1rem;
    margin: 0;
    flex-grow: 1;
    display: flex;
    align-items: center;
    line-height: 1.4;
    text-align: center;
    height: 5rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
}

.related-products-carousel .btn-ver-mas {
    display: inline-block;
    background-color: #0170B9;
    color: white !important;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    margin: 0 auto 20px auto;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: fit-content;
}

.related-products-carousel .btn-ver-mas:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.related-products-carousel .owl-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    width: 100%;
    transform: translateY(-50%);
    z-index: 10;
    pointer-events: none;
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
}

.related-products-carousel .owl-nav button {
    background-color: #3b82f6;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    pointer-events: all;
    position: relative;
}

.related-products-carousel .owl-nav button:hover {
    background-color: #2563eb;
}

/* Responsive - Mobile Layout */
@media (max-width: 767px) {
    .product-detail-container {
        padding: 20px;
    }

    .product-header-inner {
        flex-direction: column;
        gap: 20px;
    }

    .product-gallery-section,
    .product-details-section {
        width: 100%;
    }

    .product-gallery-item {
        min-height: 280px;
    }

    .product-thumbnail-item {
        width: 82px;
        height: 82px;
    }

    .product-thumbnails-wrapper {
        gap: 12px;
    }

    .product-title {
        font-size: 22px;
    }

    .product-sku {
        font-size: 20px;
        padding: 12px 0;
    }

    .btn-cotizar-producto {
        padding: 10px 25px;
        font-size: 13px !important;
    }

    .delivery-info h4,
    .payment-info h4 {
        font-size: 13px;
    }

    .delivery-info h4 i,
    .payment-info h4 i {
        font-size: 16px;
    }

    .delivery-info h4 img,
    .payment-info h4 img {
        width: 20px;
        height: 20px;
    }

    .delivery-info p,
    .payment-info p {
        font-size: 11px;
    }

    .payment-methods {
        gap: 8px;
    }

    .specs-label,
    .specs-value {
        padding: 10px 8px;
        font-size: 14px;
    }

    .product-description,
    .product-characteristics,
    .product-details {
        font-size: 14px;
    }

    .tab-button {
        padding: 12px 15px;
        font-size: 13px;
    }

    .related-products-section {
        margin-top: 40px;
        padding-top: 20px;
    }

    .share-links.share-links-product .share {
        flex: auto !important;
    }

    .share-links.share-links-product a {
        width: 40px !important;
        height: 40px !important;
    }
}