/* Product Detail Page Specific Styles */

/* Product Detail Section */
.product-detail-section {
    padding: 40px 0;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 30px;
}

.breadcrumb-item a {
    color: var(--light-sky-blue);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--dark-gray);
}

/* Product Images */
.product-images {
    position: sticky;
    top: 100px;
}

.main-image {
    margin-bottom: 20px;
}

.main-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.main-image img:hover {
    transform: scale(1.02);
}

.image-thumbnails .row {
    margin: 0 -5px;
}

.image-thumbnails .col-3 {
    padding: 0 5px;
}

.thumbnail-image {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.thumbnail-image:hover {
    transform: scale(1.05);
    border-color: var(--light-sky-blue);
}

.thumbnail-image.active {
    border-color: var(--light-sky-blue);
    box-shadow: 0 0 0 2px rgba(135, 206, 235, 0.3);
}

/* Product Info */
.product-info {
    padding-left: 30px;
}

.product-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
    margin-bottom: 20px;
}

.product-rating {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.stars {
    margin-right: 10px;
}

.rating-text {
    color: var(--dark-gray);
    font-size: 14px;
}

/* Product Pricing */
.product-pricing {
    margin-bottom: 30px;
}

.current-price {
    display: flex;
    align-items: baseline;
    gap: 15px;
    margin-bottom: 10px;
}

.price-amount {
    font-size: 36px;
    font-weight: 700;
    color: var(--light-sky-blue);
}

.original-price {
    font-size: 20px;
    color: var(--dark-gray);
    text-decoration: line-through;
}

.discount-badge {
    background: var(--pale-pastel-pink);
    color: var(--text-dark);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: 600;
}

/* Product Variants */
.product-variants {
    margin-bottom: 30px;
}

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

.variant-section h6 {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 10px;
}

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

.variant-btn {
    background: #f8f9fa;
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.variant-btn:hover {
    background: var(--light-sky-blue);
    border-color: var(--light-sky-blue);
    color: var(--white);
}

.variant-btn.active {
    background: var(--light-sky-blue);
    border-color: var(--light-sky-blue);
    color: var(--white);
    box-shadow: 0 0 0 3px rgba(135, 206, 235, 0.2);
}

/* Stock Status */
.stock-status {
    margin-bottom: 25px;
}

.stock-text {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.stock-text.in-stock {
    color: var(--soft-mint-green);
}

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

.stock-text i {
    font-size: 16px;
}

/* Quantity Selector */
.quantity-selector {
    margin-bottom: 30px;
}

.quantity-selector label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 200px;
}

.quantity-controls .btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.quantity-input {
    width: 80px;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px;
    font-size: 16px;
    font-weight: 600;
}

.quantity-input:focus {
    border-color: var(--light-sky-blue);
    box-shadow: 0 0 0 3px rgba(135, 206, 235, 0.1);
    outline: none;
}

/* Action Buttons */
.product-actions {
    margin-bottom: 30px;
}

.product-actions .btn {
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.product-actions .btn-primary {
    margin-right: 15px;
}

.product-actions .btn:hover {
    transform: translateY(-2px);
}

/* Product Features */
.product-features {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.product-features h6 {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 15px;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list li i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

/* Product Description Tabs */
.product-description {
    margin-top: 50px;
}

.nav-tabs {
    border-bottom: 2px solid #f0f2f5;
    margin-bottom: 30px;
}

.nav-tabs .nav-link {
    border: none;
    border-bottom: 3px solid transparent;
    background: none;
    color: var(--dark-gray);
    font-weight: 500;
    padding: 15px 25px;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
    border-bottom-color: var(--light-sky-blue);
    color: var(--light-sky-blue);
}

.nav-tabs .nav-link.active {
    color: var(--light-sky-blue);
    border-bottom-color: var(--light-sky-blue);
    background: none;
}

.tab-content {
    padding: 20px 0;
}

.description-content {
    line-height: 1.8;
    color: var(--text-dark);
}

.description-content p {
    margin-bottom: 20px;
}

/* Specifications Table */
.specifications-content .table {
    margin-bottom: 0;
}

.specifications-content .table td {
    padding: 12px 15px;
    border-color: #f0f2f5;
}

.specifications-content .table td:first-child {
    font-weight: 600;
    color: var(--text-dark);
    background: #f8f9fa;
    width: 30%;
}

/* Reviews */
.reviews-content {
    max-height: 400px;
    overflow-y: auto;
}

.review-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.review-header {
    display: flex;
    justify-content: between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.review-header strong {
    color: var(--text-dark);
    font-size: 16px;
}

.review-stars {
    margin-top: 5px;
}

.review-stars i {
    color: #FFD700;
    margin-right: 2px;
}

.review-comment {
    color: var(--text-dark);
    line-height: 1.6;
    margin: 0;
}

/* Related Products */
.related-products {
    padding: 60px 0;
    background: #f8f9fa;
}

.related-products .section-title {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 28px;
    margin-bottom: 40px;
    text-align: center;
}

.related-products .product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

/* Ensure product cards in related section have proper styling */
.related-products .product-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.related-products .product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.related-products .product-image {
    position: relative;
    overflow: hidden;
    height: 180px;
}

.related-products .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-products .product-card:hover .product-image img {
    transform: scale(1.1);
}

.related-products .image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.related-products .image-overlay i {
    font-size: 24px;
    margin-bottom: 8px;
}

.related-products .product-image:hover .image-overlay {
    opacity: 1;
}

.related-products .product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--pale-pastel-pink);
    color: var(--text-dark);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

.related-products .product-info {
    padding: 15px;
}

.related-products .product-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
    line-height: 1.3;
    cursor: pointer;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-products .product-title:hover {
    color: var(--light-sky-blue) !important;
    text-decoration: underline;
}

.related-products .product-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--light-sky-blue);
    margin-bottom: 12px;
}

.related-products .product-actions {
    display: flex;
    gap: 6px;
    align-items: stretch;
}

.related-products .btn-add-cart {
    flex: 1;
    background: var(--soft-mint-green);
    border: none;
    color: var(--text-dark);
    padding: 10px 12px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 13px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
}

.related-products .btn-add-cart:hover {
    background: var(--light-peach-orange);
    transform: translateY(-2px);
    color: var(--text-dark);
}

.related-products .btn-add-cart:disabled {
    background: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
    transform: none;
}

.related-products .btn-quick-view {
    background: var(--gentle-lavender-purple);
    border: none;
    color: var(--text-dark);
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
}

.related-products .btn-quick-view:hover {
    background: var(--pale-pastel-pink);
    transform: translateY(-2px);
    color: var(--text-dark);
}

/* Skeleton Loading for Related Products */
.related-products .skeleton-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border: 1px solid var(--border-color);
}

.related-products .skeleton-image {
    height: 180px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

.related-products .skeleton-content {
    padding: 15px;
}

.related-products .skeleton-title {
    height: 16px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 8px;
    margin-bottom: 8px;
}

.related-products .skeleton-price {
    height: 14px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 6px;
    width: 60%;
    margin-bottom: 12px;
}

.related-products .skeleton-button {
    height: 36px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 8px;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Mobile Responsive */
@media (max-width: 991.98px) {
    .product-info {
        padding-left: 0;
        margin-top: 30px;
    }
    
    .product-images {
        position: static;
    }
    
    .main-image img {
        height: 300px;
    }
}

@media (max-width: 767.98px) {
    .product-title {
        font-size: 24px;
    }
    
    .price-amount {
        font-size: 28px;
    }
    
    .current-price {
        flex-direction: column;
        gap: 5px;
        align-items: flex-start;
    }
    
    .product-actions {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    
    .product-actions .btn {
        width: 100%;
        margin-right: 0;
    }
    
    .quantity-controls {
        max-width: 100%;
        justify-content: center;
    }
    
    .variant-options {
        justify-content: center;
    }
    
    .nav-tabs .nav-link {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .related-products .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .related-products .section-title {
        font-size: 24px;
    }
    
    .related-products {
        padding: 40px 0;
    }
}

@media (max-width: 575.98px) {
    .main-image img {
        height: 250px;
    }
    
    .thumbnail-image {
        height: 60px;
    }
    
    .product-features {
        padding: 20px;
    }
    
    .feature-list li {
        font-size: 14px;
    }
    
    .related-products .product-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .related-products .section-title {
        font-size: 20px;
        margin-bottom: 30px;
    }
    
    .related-products {
        padding: 30px 0;
    }
    
    .related-products .product-image {
        height: 200px;
    }
    
    .review-item {
        padding: 15px;
    }
    
    .review-header {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 575.98px) {
    .main-image img {
        height: 250px;
    }
    
    .thumbnail-image {
        height: 60px;
    }
    
    .product-features {
        padding: 20px;
    }
    
    .feature-list li {
        font-size: 14px;
    }
    
    .related-products .product-grid {
        grid-template-columns: 1fr;
    }
    
    .review-item {
        padding: 15px;
    }
    
    .review-header {
        flex-direction: column;
        gap: 10px;
    }
}