/* Product Detail Page Styles - ToyJoy Theme */
.breadcrumb {
    background: var(--bg-gray);
    padding: 18px 0;
    font-size: 14px;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb a {
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.breadcrumb a:hover {
    color: var(--primary-blue);
}

.breadcrumb span {
    color: var(--text-dark);
    font-weight: 600;
}

.product-detail {
    padding: 50px 0;
    background: white;
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.product-images .main-image {
    position: relative;
    background: var(--bg-gray);
    border-radius: var(--radius-lg);
    overflow: hidden;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
}

.product-images .main-image img {
    width: 100%;
    height: auto;
    transition: all 0.3s;
}

.product-images .main-image:hover img {
    transform: scale(1.02);
}

.product-details {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.product-title {
    font-size: 36px;
    color: var(--text-dark);
    margin-bottom: 12px;
    font-weight: 800;
    line-height: 1.2;
}

.product-price-section {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    padding: 25px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.prices {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.price-current {
    font-size: 40px;
    font-weight: 800;
    color: var(--primary-blue);
}

.price-original {
    font-size: 24px;
    color: var(--text-gray);
    text-decoration: line-through;
    font-weight: 500;
}

.price-save {
    background: linear-gradient(135deg, var(--secondary-green) 0%, #66bb6a 100%);
    color: white;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.product-stock {
    padding: 12px 0;
}

.in-stock {
    color: var(--secondary-green);
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.in-stock::before {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--secondary-green);
    border-radius: 50%;
    display: inline-block;
}

.out-of-stock {
    color: var(--danger-color);
    font-weight: 700;
    font-size: 15px;
}

.product-description h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--text-dark);
    font-weight: 800;
}

.product-description p {
    color: var(--text-gray);
    line-height: 1.8;
    font-size: 16px;
}

.product-actions {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    padding: 25px 0;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-full);
    overflow: hidden;
    background: var(--bg-gray);
}

.quantity-btn {
    width: 45px;
    height: 45px;
    border: none;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
}

.quantity-btn:hover {
    background: var(--primary-blue);
    color: white;
}

.quantity-input {
    width: 70px;
    text-align: center;
    border: none;
    font-size: 18px;
    font-weight: 800;
    background: transparent;
}

.product-meta {
    padding: 25px 0;
    border-top: 1px solid var(--border-color);
}

.product-meta p {
    margin-bottom: 12px;
    color: var(--text-gray);
    font-size: 15px;
    font-weight: 500;
}

.product-meta a {
    color: var(--primary-blue);
    font-weight: 600;
    text-decoration: none;
}

.product-meta a:hover {
    text-decoration: underline;
}

/* Reviews Section */
.reviews-section {
    margin: 60px 0;
    padding: 35px;
    background: var(--bg-gray);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.reviews-section h2 {
    font-size: 32px;
    margin-bottom: 35px;
    color: var(--text-dark);
    font-weight: 800;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.review-item {
    background: white;
    padding: 25px;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.reviewer-name {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 16px;
}

.review-date {
    font-size: 14px;
    color: var(--text-gray);
    font-weight: 500;
}

.review-rating {
    margin-bottom: 15px;
}

.review-rating i {
    color: #fbbf24;
    font-size: 16px;
}

.review-comment {
    color: var(--text-gray);
    line-height: 1.7;
    font-size: 15px;
}

/* Related Products */
.related-products {
    margin-top: 60px;
}

.related-products h2 {
    font-size: 32px;
    margin-bottom: 35px;
    color: var(--text-dark);
    font-weight: 800;
}

/* Responsive */
@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }
    
    .product-title {
        font-size: 28px;
    }
    
    .price-current {
        font-size: 32px;
    }
    
    .price-original {
        font-size: 20px;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .product-actions .btn {
        width: 100%;
    }
    
    .quantity-selector {
        width: 100%;
        justify-content: center;
    }
    
    .product-detail {
        padding: 30px 0;
    }
    
    .reviews-section {
        padding: 25px;
    }
    
    .reviews-section h2 {
        font-size: 26px;
    }
}

/* Video Modal Styles */
.video-indicator {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
    color: white;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.play-video-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.9);
    color: white;
    border: 4px solid white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    transition: all 0.3s;
    z-index: 5;
}

.play-video-btn:hover {
    background: rgba(37, 99, 235, 1);
    transform: translate(-50%, -50%) scale(1.1);
}

#videoModal.video-modal {
    display: none !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

#videoModal.video-modal.active {
    display: flex !important;
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    background: black;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.close-video-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
}

.close-video-modal:hover {
    background: rgba(255, 255, 255, 0.3);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
