/* Product Details Page Custom Styling */

/* Main product detail section */
.product-detail-main {
    padding-top: 20px;
    background-color: #f9f9f9;
}

/* Breadcrumb styling */
.breadcrumb-section {
    background-color: #f2f2f2;
    border-bottom: 1px solid #e5e5e5;
}

.breadcrumb {
    font-size: 0.9rem;
    padding: 0;
}

.breadcrumb a {
    color: #08646E;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #F0A945;
    text-decoration: none;
}

.breadcrumb .active {
    color: #666;
}

/* Product gallery styling */
.product-gallery {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.product-gallery:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.main-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 15px;
    text-align: center;
    background-color: #f9f9f9;
    padding: 20px;
    border: 1px solid #eee;
}

#mainProductImage {
    max-height: 350px;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.main-image-container:hover #mainProductImage {
    transform: scale(1.05);
}

.thumbnail-images {
    margin-top: 15px;
}

.thumbnail-img {
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    height: 70px;
    object-fit: cover;
}

.thumbnail-img:hover {
    border-color: #08646E;
    transform: translateY(-3px);
}

.thumbnail-img.active {
    border-color: #F0A945;
}

/* Product info styling */
.product-info {
    background-color: #fff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.product-header {
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.product-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #08646E;
    margin-bottom: 10px;
}

.product-subtitle {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
}

/* Product form options */
.product-options {
    margin-bottom: 25px;
}

.product-form-section {
    margin-bottom: 20px;
}

.product-form-section h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    position: relative;
    padding-left: 15px;
}

.product-form-section h5:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 20px;
    background: linear-gradient(to bottom, #08646E, #F0A945);
    border-radius: 3px;
}

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

.form-check-input:checked {
    background-color: #08646E;
    border-color: #08646E;
}

.form-check-label {
    cursor: pointer;
    font-size: 0.95rem;
}

/* Shipping info styling */
.shipping-info {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
}

.info-item {
    font-size: 0.9rem;
    color: #555;
}

.info-item i {
    color: #F0A945;
    font-size: 1.1rem;
}

/* Purchase section styling */
.purchase-section {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.quantity-section {
    margin-bottom: 20px;
}

.quantity-controls {
    max-width: 150px;
}

.quantity-controls .btn {
    background-color: #f2f2f2;
    border-color: #ddd;
    color: #333;
}

.quantity-controls .form-control {
    border-color: #ddd;
}

.action-buttons {
    margin-top: 20px;
}

.add-to-cart-btn {
    background-color: #08646E;
    border-color: #08646E;
    font-weight: 600;
    padding: 12px 25px;
    transition: all 0.3s ease;
}

.add-to-cart-btn:hover {
    background-color: #074c54;
    border-color: #074c54;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(8, 100, 110, 0.3);
}

.add-to-wishlist-btn {
    border-color: #ddd;
    color: #666;
    font-weight: 600;
    padding: 12px 25px;
    transition: all 0.3s ease;
}

.add-to-wishlist-btn:hover {
    background-color: #f9f9f9;
    color: #F0A945;
    border-color: #F0A945;
    transform: translateY(-3px);
}

/* Product tabs styling */
.product-tabs-section {
    margin-top: 40px;
    margin-bottom: 40px;
}

.nav-tabs {
    border-bottom: none;
    margin-bottom: 20px;
    gap: 10px;
}

.nav-link {
    border: none;
    background-color: #f2f2f2;
    color: #666;
    font-weight: 600;
    border-radius: 30px;
    padding: 10px 25px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background-color: #e9e9e9;
    color: #08646E;
}

.nav-link.active {
    background-color: #08646E !important;
    color: #fff !important;
}

.tab-content {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.tab-pane {
    padding: 20px;
}

/* Responsive styles */
@media (max-width: 1199.98px) {
    .product-title {
        font-size: 1.7rem;
    }
    
    .product-subtitle {
        font-size: 0.95rem;
    }
    
    .product-form-section h5 {
        font-size: 1rem;
    }
}

@media (max-width: 991.98px) {
    .product-title {
        font-size: 1.6rem;
    }
    
    .product-info {
        margin-top: 20px;
    }
    
    .nav-link {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
    
    .product-gallery {
        margin-bottom: 20px;
    }
    
    .tab-content-inner {
        padding: 15px;
    }
    
    .tabs-menu {
        justify-content: center;
    }
}

@media (max-width: 767.98px) {
    .product-gallery, 
    .product-info {
        padding: 15px;
    }
    
    .product-title {
        font-size: 1.4rem;
    }
    
    .main-image-container {
        padding: 10px;
    }
    
    #mainProductImage {
        max-height: 300px;
    }
    
    .thumbnail-img {
        height: 60px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-buttons .btn {
        margin-bottom: 10px;
        width: 100%;
    }
    
    .nav-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 5px;
    }
    
    .nav-link {
        white-space: nowrap;
        padding: 8px 15px;
        font-size: 0.85rem;
    }
    
    .product-tabs-section {
        margin-top: 30px;
        margin-bottom: 30px;
    }
    
    .tab-pane {
        padding: 15px;
    }
    
    .quantity-section {
        margin-bottom: 15px;
    }
    
    .quantity-controls {
        max-width: 100%;
    }
}

@media (max-width: 575.98px) {
    .product-detail-section {
        padding-top: 10px;
        padding-bottom: 10px;
    }
    
    .product-title {
        font-size: 1.3rem;
    }
    
    .product-subtitle {
        font-size: 0.9rem;
    }
    
    .product-gallery,
    .product-info {
        padding: 12px;
        border-radius: 8px;
    }
    
    .main-image-container {
        padding: 8px;
        margin-bottom: 10px;
    }
    
    #mainProductImage {
        max-height: 250px;
    }
    
    .thumbnail-img {
        height: 50px;
    }
    
    .product-form-section h5 {
        font-size: 0.95rem;
        margin-bottom: 10px;
    }
    
    .form-check-label {
        font-size: 0.85rem;
    }
    
    .shipping-info {
        padding: 10px;
        margin-top: 15px;
    }
    
    .info-item {
        font-size: 0.8rem;
    }
    
    .purchase-section {
        margin-top: 15px;
        padding-top: 15px;
    }
    
    .add-to-cart-btn,
    .add-to-wishlist-btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .breadcrumb {
        font-size: 0.8rem;
    }
    
    .product-tabs-section {
        margin-top: 20px;
        margin-bottom: 20px;
    }
}

/* Image zoom effect */
.zoom-effect {
    overflow: hidden;
}

.zoom-effect img {
    transition: transform 0.5s ease;
}

.zoom-effect:hover img {
    transform: scale(1.1);
}

/* Add to cart animation */
@keyframes addToCartPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.add-to-cart-animation {
    animation: addToCartPulse 0.5s ease;
}

/* Product image gallery JavaScript */
.gallery-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
}

.gallery-overlay img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.gallery-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
}

/* Product price display */
.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #F0A945;
    margin: 15px 0;
    display: flex;
    align-items: center;
}

.original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 1.1rem;
    margin-left: 10px;
}

.price-save {
    background-color: #F0A945;
    color: #fff;
    font-size: 0.8rem;
    padding: 3px 8px;
    border-radius: 20px;
    margin-left: 10px;
}

/* Product availability */
.product-availability {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.in-stock {
    color: #28a745;
    font-weight: 600;
}

.out-of-stock {
    color: #dc3545;
    font-weight: 600;
}

.stock-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 5px;
}

.in-stock .stock-dot {
    background-color: #28a745;
}

.out-of-stock .stock-dot {
    background-color: #dc3545;
}
