/* 
    Product Detail Page - Exact Design & Mobile Responsive Fixes
*/

.product-detail-page {
    padding: 10px 0;
    background-color: #fff;
}

/* Breadcrumbs bar */
.breadcrumbs-bar {
    background-color: #f8f9fa;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.breadcrumbs {
    font-size: 13px;
    font-weight: 600;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.breadcrumbs a { color: #008c99; text-decoration: none; }

.product-detail-flex {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.detail-main {
    flex: 1;
    min-width: 0;
}

.detail-sidebar {
    width: 300px;
    flex-shrink: 0;
}

/* Product Overview Section */
.product-overview {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.product-main-img-wrapper {
    flex: 0 0 400px;
}

.product-main-img {
    position: relative;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    background-color: #999; /* Grey box as in reference */
}

.product-main-img img {
    width: 100%;
    height: auto;
    display: block;
}

.zoom-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    background: white;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Product Info */
.product-title {
    font-size: 26px;
    font-weight: 800;
    color: #333;
    margin-bottom: 10px;
}

.product-rating-meta {
    margin-bottom: 20px;
    font-size: 13px;
    color: #666;
}

.product-rating-meta i { color: #008c99; }

/* Variations Table */
.price-variants-section {
    margin-bottom: 25px;
    border: 1px solid #eee;
    overflow-x: auto;
}

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

.variants-table td {
    padding: 10px 15px;
    border: 1px solid #eee;
    font-size: 14px;
}

.variants-table td:nth-child(2) {
    color: #008c99;
    font-weight: 800;
    font-size: 18px;
    text-align: center;
}

.add-to-cart-btn {
    background-color: #008c99;
    color: #fff;
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    text-transform: uppercase;
}

.product-meta-list {
    font-size: 14px;
    border-top: 1px solid #f0f0f0;
    padding-top: 20px;
    line-height: 1.8;
}

.product-meta-list a { color: #008c99; font-weight: 600; }

/* Tabs Section */
.product-tabs {
    margin-top: 40px;
    border-top: 1px solid #eee;
}

.tab-nav {
    display: flex;
    border-bottom: 1px solid #eee;
    list-style: none;
    padding: 0;
    margin: 0;
}

.tab-item {
    padding: 12px 30px;
    font-weight: 700;
    color: #666;
    cursor: pointer;
    position: relative;
}

.tab-item.active {
    color: #008c99;
}

.tab-item.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #008c99;
}

.tab-content-wrapper { padding: 25px 0; }
.tab-content { display: none; font-size: 15px; line-height: 1.6; }
.tab-content.active { display: block; }

/* Related Products Slider Fix */
.related-products-section {
    margin-top: 50px;
    border-top: 1px solid #eee;
    padding-top: 30px;
}

.related-products-section .section-title {
    font-size: 20px;
    margin-bottom: 25px;
    font-weight: 800;
}

.related-slider {
    position: relative;
    overflow: hidden;
    padding: 0 10px;
}

.related-slider .product-slider-track {
    display: flex;
    gap: 20px;
    transition: transform 0.4s ease;
}

.related-slider .product-item {
    flex: 0 0 calc(33.333% - 14px);
    border: 1px solid #eee;
    padding-bottom: 20px;
    text-align: center;
    position: relative;
    background: #fff;
}

.featured-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #008080;
    color: #fff;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 700;
    z-index: 2;
}

.related-slider .item-img-wrapper {
    height: 200px;
    overflow: hidden;
    background: #f9f9f9;
}

.related-slider .item-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-slider .item-name {
    font-size: 16px;
    font-weight: 700;
    margin: 15px 0 10px;
}

.related-slider .item-price {
    color: #008c99;
    font-weight: 800;
    font-size: 18px;
    margin-bottom: 15px;
}

.select-options-btn {
    background-color: #008c99;
    color: #fff;
    border: none;
    padding: 10px 25px;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
}

.related-ctrl-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 50%;
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.related-ctrl-btn.prev { left: 0; }
.related-ctrl-btn.next { right: 0; }

/* Sidebar Component */
.coupon-box {
    background: #f9f9f9;
    border: 1px dashed #999;
    padding: 25px;
    border-radius: 4px;
    text-align: center;
    margin-bottom: 30px;
}

.coupon-box h3 { color: #008c99; margin-bottom: 15px; }

.coupon-code-wrapper {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
}

.code-text { flex: 1; padding: 12px; font-weight: 800; }

.copy-btn {
    background: #000;
    color: #fff;
    border: none;
    padding: 0 20px;
    font-weight: 700;
    cursor: pointer;
}

.sidebar-categories {
    border: 1px solid #008c99;
    padding: 20px;
    border-radius: 4px;
}

.sidebar-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.category-list li a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
    text-decoration: none;
    color: #333;
    font-size: 14px;
}

.cat-thumb {
    width: 35px;
    height: 35px;
    flex-shrink: 0;
    background: #eee;
}

/* MOBILE RESPONSIVE MEDIA QUERIES */

@media (max-width: 992px) {
    .product-detail-flex {
        flex-direction: column;
    }
    
    .detail-sidebar {
        width: 100%;
        margin-top: 40px;
    }
    
    .product-overview {
        flex-direction: column;
        align-items: center;
    }
    
    .product-main-img-wrapper {
        flex: none;
        width: 100%;
        max-width: 500px;
    }
    
    .related-slider .product-item {
        flex: 0 0 calc(50% - 10px);
    }
}

@media (max-width: 768px) {
    .product-title {
        font-size: 22px;
        text-align: center;
    }
    
    .product-rating-meta {
        text-align: center;
        justify-content: center;
        display: flex;
        flex-wrap: wrap;
    }
    
    .tab-item {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .related-slider .product-item {
        flex: 0 0 100%;
    }
    
    .variants-table td {
        padding: 8px 10px;
    }
    
    .add-to-cart-btn {
        padding: 8px 15px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .product-main-img-wrapper {
        max-width: 100%;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .breadcrumbs {
        font-size: 11px;
    }
}
