/* ========================================
   Product Detail Page Styles
   ======================================== */

/* Breadcrumb */
.breadcrumb {
    background: #fff;
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
}

.breadcrumb-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.breadcrumb-content a {
    color: #666;
    font-size: 14px;
    transition: color 0.3s ease;
}

.breadcrumb-content a:hover {
    color: #2b4eff;
}

.breadcrumb-content .separator {
    color: #ccc;
    margin: 0 10px;
    font-size: 14px;
}

.breadcrumb-content .current {
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.breadcrumb-nav {
    display: flex;
    gap: 8px;
}

.nav-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #e0e0e0;
    background: #fff;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    border-color: #2b4eff;
    color: #2b4eff;
}

/* Product Detail Section */
.product-detail {
    padding: 40px 0 60px;
    background: #fff;
}

.product-detail-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
}

/* Product Gallery */
.product-gallery {
    display: flex;
    gap: 20px;
}

.gallery-thumbs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 80px;
}

.thumb-nav {
    width: 100%;
    height: 32px;
    border: 1px solid #e0e0e0;
    background: #fff;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    cursor: pointer;
    transition: all 0.3s ease;
}

.thumb-nav:hover {
    border-color: #2b4eff;
    color: #2b4eff;
}

.thumbs-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.thumb-item {
    width: 80px;
    height: 80px;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f8f8;
}

.thumb-item:hover {
    border-color: #ddd;
}

.thumb-item.active {
    border-color: #2b4eff;
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.thumb-item:hover img {
    transform: scale(1.1);
}

.gallery-main {
    flex: 1;
    position: relative;
    display: flex;
    align-items: flex-start;
}

.main-image {
    flex: 1;
    background: #f8f8f8;
    border-radius: 16px;
    overflow: visible;
    position: relative;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: box-shadow 0.3s ease;
}

.main-image:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.zoom-btn {
    position: absolute;
    bottom: 20px;
    left: 20px;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.9);
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b8985e;
    cursor: pointer;
    transition: all 0.3s ease;
}

.zoom-btn:hover {
    background: #b8985e;
    border-color: #b8985e;
    color: #fff;
}

.gallery-nav {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.9);
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b8985e;
    cursor: pointer;
    transition: all 0.3s ease;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    opacity: 0;
    visibility: hidden;
}

.main-image:hover .gallery-nav {
    opacity: 1;
    visibility: visible;
}

.gallery-nav:hover {
    background: #b8985e;
    border-color: #b8985e;
    color: #fff;
}

.gallery-nav.prev {
    left: 10px;
}

.gallery-nav.next {
    right: 10px;
}

/* Product Info Detail */
.product-info-detail {
    padding-top: 10px;
}

.product-title {
    font-size: 32px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 16px;
    line-height: 1.3;
}

.product-price-detail {
    margin-bottom: 24px;
}

.product-price-detail .price {
    font-size: 28px;
    font-weight: 600;
    color: #B85C38;
}

.product-price-detail .price del .woocommerce-Price-amount {
    color: #999;
    text-decoration: line-through;
}

.product-description {
    margin-bottom: 30px;
}

.product-description p {
    font-size: 15px;
    line-height: 1.8;
    color: #666;
}

/* Product Actions Row */
.product-actions-row {
    display: flex;
    gap: 12px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
}

.qty-btn {
    width: 40px;
    height: 48px;
    background: #fff;
    border: none;
    color: #666;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.qty-btn:hover {
    background: #f5f5f5;
    color: #333;
}

.qty-input {
    width: 50px;
    height: 48px;
    border: none;
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    color: #333;
}

.qty-input:focus {
    outline: none;
}

.btn-add-cart {
    flex: 1;
    min-width: 140px;
    height: 48px;
    background: #C9A96E;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-add-cart:hover {
    background: #b8985d;
}

.btn-buy-now {
    flex: 1;
    min-width: 140px;
    height: 48px;
    background: #8bc34a;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-buy-now:hover {
    background: #7cb342;
}

/* Product Meta */
.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 24px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.meta-left {
    display: flex;
    gap: 20px;
}

.meta-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.meta-btn:hover {
    color: #2b4eff;
}

.meta-btn i {
    font-size: 14px;
}

.meta-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.share-label {
    font-size: 14px;
    color: #666;
}

.social-share {
    display: flex;
    gap: 8px;
}

.share-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 13px;
    transition: color 0.3s ease;
}

.share-icon:hover {
    color: #2b4eff;
}

/* Watching Alert */
.watching-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #e8f0fe;
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 28px;
}

.watching-alert i {
    color: #2b4eff;
    font-size: 16px;
}

.watching-alert span {
    font-size: 14px;
    color: #555;
}

.watching-alert strong {
    color: #2b4eff;
    font-weight: 600;
}

/* Product Features */
.product-features {
    display: flex;
    gap: 40px;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
}

.feature-icon {
    width: 60px;
    height: 60px;
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 24px;
}

.feature-text {
    font-size: 13px;
    color: #555;
    max-width: 100px;
    line-height: 1.4;
}

/* Product Tabs Section */
.product-tabs-section {
    padding: 60px 0;
    background: #f8f8f8;
}

.product-tabs {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}

.tabs-header {
    display: flex;
    border-bottom: 1px solid #f0f0f0;
}

.tab-btn {
    padding: 20px 32px;
    background: none;
    border: none;
    font-size: 15px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.tab-btn:hover {
    color: #333;
}

.tab-btn.active {
    color: #2b4eff;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #2b4eff;
}

.tabs-content {
    padding: 40px;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.description-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.description-content p {
    font-size: 15px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 20px;
}

.feature-list {
    list-style: none;
    margin-bottom: 20px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    font-size: 15px;
    color: #555;
}

.feature-list li i {
    color: #8bc34a;
    font-size: 14px;
}

/* Related Products */
.related-products {
    padding: 80px 0;
    background: #fff;
}

.related-products .section-header {
    margin-bottom: 48px;
}

.section-label {
    display: block;
    font-size: 14px;
    color: #2b4eff;
    margin-bottom: 8px;
    font-weight: 500;
}

.related-products .section-title {
    font-size: 32px;
    font-weight: 600;
    color: #1a1a1a;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}

.related-card {
    position: relative;
    transition: transform 0.3s ease;
}

.related-card:hover {
    transform: translateY(-4px);
}

.related-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    z-index: 2;
}

.related-badge.sold-out {
    background: #fff;
    color: #333;
    border: 1px solid #e0e0e0;
}

.related-badge.discount {
    background: #2b4eff;
    color: #fff;
}

.related-image {
    background: #f8f8f8;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1;
    margin-bottom: 16px;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.related-card:hover .related-image img {
    transform: scale(1.03);
}

.related-info {
    text-align: center;
}

.related-name {
    font-size: 15px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.related-rating {
    display: flex;
    justify-content: center;
    gap: 3px;
    margin-bottom: 10px;
}

.related-rating i {
    font-size: 11px;
    color: #ccc;
}

.related-rating i.fas {
    color: #ffc107;
}

.related-rating i.fas.fa-star-half-alt {
    color: #ffc107;
}

.related-price {
    font-size: 15px;
    font-weight: 600;
    color: #B85C38;
}

.related-price .old-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
    margin-right: 8px;
    font-weight: 400;
}

.related-price .current-price {
    color: #B85C38;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .product-detail-wrapper {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .related-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .product-features {
        gap: 24px;
    }
}

@media (max-width: 992px) {
    .product-detail-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .product-gallery {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .related-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .product-actions-row {
        flex-wrap: wrap;
    }
    
    .btn-add-cart,
    .btn-buy-now {
        flex: 1;
    }
}

@media (max-width: 768px) {
    .breadcrumb-content {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .gallery-thumbs {
        width: 60px;
    }
    
    .thumb-item {
        width: 60px;
        height: 60px;
    }
    
    .product-title {
        font-size: 24px;
    }
    
    .product-price-detail .price {
        font-size: 24px;
    }
    
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .product-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .product-features {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .tabs-header {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        padding: 16px 20px;
        font-size: 14px;
    }
    
    .tabs-content {
        padding: 24px;
    }
}

@media (max-width: 576px) {
    .product-actions-row {
        flex-direction: column;
    }
    
    .quantity-selector {
        width: 100%;
        justify-content: center;
    }
    
    .btn-add-cart,
    .btn-buy-now {
        width: 100%;
    }
    
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .gallery-nav {
        width: 36px;
        height: 36px;
        font-size: 12px;
    }
}
