/* Product Detail Page */
.product-detail-page {
    background: #f9f9f9;
}

.product-detail-content {
    padding: 2rem 0;
    max-width: 1200px;
    margin: 0 auto;
}

.breadcrumb {
    margin-bottom: 2rem;
    display: block !important;
}

.breadcrumb a {
    color: #007bff;
    text-decoration: none;
}

.product-detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 1rem;
}

.product-title {
    margin-bottom: 0.5rem;
    font-size: 22px;
    font-weight: bold;
    line-height: 1.2rem;
    word-break: break-word;
    max-width: 100%;
    white-space: normal;
    /* Override the 2-line limit from style.css */
    height: auto !important;
    overflow: visible !important;
    text-overflow: unset !important;
    display: block !important;
    -webkit-line-clamp: unset !important;
    -webkit-box-orient: unset !important;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.2rem;
    word-break: break-word;
    white-space: normal;
    color: deeppink;
}

.current-price {
    color: #007bff;
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

/* Price Visibility Feature */
.product-price {
    display: none;
    transition: opacity 0.5s ease-in-out;
    cursor: pointer;
}

.product-price.show {
    display: block;
    opacity: 1;
}

.product-title {
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.product-title:hover {
    opacity: 0.8;
}

/* Product Gallery Styles */
.product-gallery {
    position: sticky;
    top: 100px;
    width: 100%;
}

.main-image {
    position: relative;
    width: 100%;
    height: 500px;
    background-color: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}

.main-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
    cursor: zoom-in;
}

.main-image img.zoomed {
    transform: scale(2);
    cursor: zoom-out;
}

.zoom-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    cursor: zoom-in;
}

.zoom-overlay.active {
    cursor: zoom-out;
}



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

.thumbnail {
    width: 100px;
    height: 75px;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.thumbnail:hover {
    opacity: 0.9;
}

.thumbnail.active {
    opacity: 1;
    border-color: #007bff;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product Details Tabs */
.product-details-tabs {
    margin-bottom: 3rem;
}

.tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tab-btn {
    padding: 1rem 2rem;
    border: none;
    background-color: #f8f9fa;
    cursor: pointer;
    font-weight: 500;
}

.tab-btn.active {
    background-color: #007bff;
    color: #fff;
}

.tab-content {
    display: none;
    padding: 2rem;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

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

@media (max-width: 768px) {
    /* Product Detail Page */
    .product-detail-content {
        padding: 1.5rem 15px;
    }
    .product-detail-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .product-gallery {
        position: static;
    }

    .product-info {
        padding: 1rem 0 0;
    }

    .product-price {
        margin-bottom: 0 !important;
    }

    .product-title {
        font-size: 18px;
        line-height: 1.3;
    }

    /* Product Details Tabs */
    .tabs {
        flex-wrap: wrap;
    }

    .tab-btn {
        flex: 1 1 auto;
        text-align: center;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .tab-content {
        padding: 1rem;
    }

    .main-image {
        height: 350px;
    }

    .thumbnails {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .product-detail-content {
        padding: 1.5rem 10px;
    }

    .product-title {
        font-size: 16px;
        line-height: 1.4;
    }

    .product-detail-container {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .thumbnail {
        width: 70px;
        height: 50px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .product-detail-container {
        gap: 1rem;
    }
}
