/* Product Detail Page Styles */

/* Breadcrumb */
.breadcrumb {
    background: transparent;
    padding: 8px 0;
    margin-bottom: 0;
    font-size: 13px;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: #6c757d;
}

.breadcrumb-item a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: #0d6efd;
}

.breadcrumb-item.active {
    color: #495057;
    font-weight: 500;
}

/* Product Image Gallery */
.product-image-gallery .main-image {
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    padding: 15px;
    margin-bottom: 15px;
}

.product-image-gallery .main-image img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
}

.thumbnail-images img {
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 5px;
    background: #f8f9fa;
}

.thumbnail-images img:hover {
    border-color: #0d6efd;
    transform: scale(1.05);
}

/* Product Info */
.product-category {
    font-size: 12px;
    color: #6c757d;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.product-category a {
    color: #0d6efd;
}

.product-title {
    font-size: 24px;
    font-weight: 700;
    color: #212529;
    line-height: 1.3;
}

.product-description {
    font-size: 14px;
    color: #6c757d;
    line-height: 1.6;
}

.product-price .current-price {
    font-size: 28px;
    font-weight: 700;
    color: #0d6efd;
}

.product-meta {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
}

.product-meta .meta-item {
    margin-bottom: 6px;
    font-size: 14px;
}

.product-meta .meta-item:last-child {
    margin-bottom: 0;
}

.product-meta strong {
    font-weight: 600;
    margin-right: 6px;
}

/* Quantity Selector */
.quantity-selector label {
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 14px;
}

.quantity-selector .input-group {
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border-radius: 6px;
    overflow: hidden;
}

.quantity-selector .btn {
    min-width: 36px;
    padding: 8px;
    font-weight: 600;
}

.quantity-selector input {
    font-weight: 600;
    font-size: 15px;
    border-left: 0;
    border-right: 0;
}

/* Product Actions */
.product-actions .d-flex {
    align-items: stretch;
}

.product-actions .d-flex .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
}

/* Product Tags */
.product-tags {
    padding-top: 12px;
    border-top: 1px solid #dee2e6;
}

.product-tags strong {
    font-size: 14px;
    margin-right: 8px;
}

.product-tags .badge {
    margin-right: 6px;
    margin-bottom: 6px;
    padding: 6px 10px;
    font-weight: 500;
    border: 1px solid #dee2e6;
    font-size: 12px;
}

/* Related Products */
.related-products {
    background: #f8f9fa;
}

.related-products .section-title {
    font-size: 20px;
    font-weight: 700;
    color: #212529;
}

.related-products .product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.related-products .product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.related-products .product-image {
    position: relative;
    overflow: hidden;
    height: 180px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.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.05);
}

.related-products .product-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    z-index: 2;
}

.related-products .product-badge.stock {
    background: #b8e6b8;
    color: #2c3e50;
}

.related-products .product-badge.out-of-stock {
    background: #ffcbcb;
    color: #2c3e50;
}

.related-products .product-info {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.related-products .product-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
    color: #2c3e50;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 36px;
}

.related-products .product-pricing {
    margin-bottom: 10px;
    flex: 1;
}

.related-products .product-price {
    font-size: 16px;
    font-weight: 700;
    color: #87ceeb;
}

.related-products .product-actions {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-top: auto;
}

.related-products .product-actions .btn {
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.related-products .product-actions .btn-outline-primary {
    border: 1px solid #e1e5e9;
    color: #495057;
    background: transparent;
}

.related-products .product-actions .btn-outline-primary:hover {
    background: #87ceeb;
    border-color: #87ceeb;
    color: #fff;
    transform: translateY(-1px);
}

.related-products .product-actions .btn-primary {
    background: #b8e6b8;
    border: none;
    color: #2c3e50;
}

.related-products .product-actions .btn-primary:hover {
    background: #9dd99d;
    color: #2c3e50;
    transform: translateY(-1px);
}

/* Tablet Responsive */
@media (max-width: 991px) {
    .product-title {
        font-size: 20px;
    }
    
    .product-price .current-price {
        font-size: 24px;
    }
    
    .related-products .product-image {
        height: 160px;
    }
}

/* Mobile Responsive */
@media (max-width: 767px) {
    .product-title {
        font-size: 18px;
    }
    
    .product-price .current-price {
        font-size: 22px;
    }
    
    .product-meta {
        padding: 10px;
    }
    
    .product-meta .meta-item {
        font-size: 13px;
    }
    
    .quantity-selector .input-group {
        max-width: 140px !important;
    }
    
    .quantity-selector .btn {
        min-width: 40px;
        min-height: 40px;
    }
    
    .quantity-selector input {
        min-height: 40px;
    }
    
    .product-actions .d-flex {
        flex-direction: column;
        gap: 10px;
    }
    
    .product-actions .d-flex .btn {
        width: 100%;
        min-height: 48px;
    }
    
    .related-products .product-image {
        height: 140px;
    }
    
    .related-products .product-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .related-products .product-actions .btn {
        width: 100%;
        padding: 10px;
        border-radius: 8px;
        justify-content: center;
    }
}

/* Small Mobile */
@media (max-width: 575px) {
    .product-image-gallery .main-image {
        padding: 10px;
    }
    
    .product-image-gallery .main-image img {
        max-height: 300px;
    }
    
    .product-title {
        font-size: 16px;
    }
    
    .product-price .current-price {
        font-size: 20px;
    }
    
    .product-description {
        font-size: 13px;
    }
    
    .product-meta {
        padding: 8px;
    }
    
    .product-meta .meta-item {
        font-size: 12px;
        margin-bottom: 4px;
    }
    
    .quantity-selector label {
        font-size: 13px;
    }
    
    .product-tags strong {
        font-size: 13px;
    }
    
    .product-tags .badge {
        font-size: 11px;
        padding: 4px 8px;
    }
    
    .related-products .product-card {
        border-radius: 10px;
    }
    
    .related-products .product-image {
        height: 120px;
    }
    
    .related-products .product-info {
        padding: 10px;
    }
    
    .related-products .product-name {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .related-products .product-price {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .related-products .product-actions .btn {
        font-size: 12px;
        padding: 8px;
    }
    
    .related-products .product-badge {
        top: 6px;
        left: 6px;
        padding: 3px 8px;
        font-size: 10px;
        border-radius: 8px;
    }
}
