/* ============================================
   Product Details Page - Professional Design
   ============================================ */

.product-details-page {
    background: var(--bg-light);
    min-height: 100vh;
}

/* ============================================
   Breadcrumb
   ============================================ */

.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 2rem;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--text-dark);
}

/* ============================================
   Product Images
   ============================================ */

.product-images {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.main-image-wrapper {
    position: relative;
    background: var(--bg-light);
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-product-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.main-product-image:hover {
    transform: scale(1.05);
}

.product-image-placeholder-large {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}

.product-image-placeholder-large i {
    font-size: 5rem;
    margin-bottom: 1rem;
}

.product-badges-overlay {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 2;
}

.badge-new-large,
.badge-sale-large,
.badge-coming-soon {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.badge-new-large {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.badge-sale-large {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
}

.badge-coming-soon {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
}

/* ============================================
   Product Info
   ============================================ */

.product-info {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.product-brand-name {
    font-size: 0.875rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.product-title-large {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.2;
}

/* ============================================
   Rating
   ============================================ */

.product-rating-large {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.stars-large {
    display: flex;
    gap: 0.25rem;
}

.stars-large i {
    font-size: 1.25rem;
    color: #ffc107;
}

.stars-large i.bi-star {
    color: #e0e0e0;
}

.rating-value {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1rem;
}

.reviews-link a {
    color: var(--primary-color);
    text-decoration: none;
}

.reviews-link a:hover {
    text-decoration: underline;
}

.divider {
    color: var(--text-light);
    margin: 0 0.5rem;
}

.write-review-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
}

.write-review-link:hover {
    text-decoration: underline;
}

/* ============================================
   Price Section
   ============================================ */

.product-price-section {
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 8px;
}

.price-row {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.current-price-large {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.old-price-large {
    font-size: 1.75rem;
    color: var(--text-light);
    text-decoration: line-through;
    font-weight: 500;
}

.discount-percentage {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.savings-text {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
}

/* ============================================
   Stock Status
   ============================================ */

.stock-status {
    margin-top: 1rem;
}

.stock-badge-large {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
}

.stock-badge-large.in-stock {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.stock-badge-large.out-of-stock {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.stock-badge-large i {
    font-size: 1.25rem;
}

/* ============================================
   Product Features
   ============================================ */

.product-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 8px;
}

.feature-item-large {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.feature-item-large i {
    font-size: 2rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.feature-item-large strong {
    display: block;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.feature-item-large small {
    color: var(--text-light);
    font-size: 0.875rem;
}

/* ============================================
   Add to Cart Section
   ============================================ */

.add-to-cart-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.quantity-selector {
    margin-bottom: 1.5rem;
}

.quantity-input-group {
    display: flex;
    align-items: center;
    gap: 0;
    max-width: 200px;
}

.quantity-btn {
    width: 45px;
    height: 45px;
    border: 2px solid var(--border-color);
    background: white;
    color: var(--text-dark);
    font-size: 1.25rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0;
}

.quantity-btn:first-child {
    border-radius: 8px 0 0 8px;
}

.quantity-btn:last-child {
    border-radius: 0 8px 8px 0;
}

.quantity-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.quantity-input {
    width: 80px;
    height: 45px;
    text-align: center;
    border: 2px solid var(--border-color);
    border-left: none;
    border-right: none;
    border-radius: 0;
    font-weight: 600;
    font-size: 1.1rem;
}

.action-buttons {
    display: flex;
    gap: 1rem;
}

.btn-add-cart-large {
    flex: 1;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border: none;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-add-cart-large:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
    color: white;
}

.btn-add-cart-large:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-add-cart-large i {
    font-size: 1.25rem;
}

.btn-wishlist-large {
    width: 60px;
    height: 60px;
    padding: 0;
    border: 2px solid var(--border-color);
    background: white;
    color: var(--text-dark);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.btn-wishlist-large:hover {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-wishlist-large.active {
    border-color: #dc3545;
    background: #dc3545;
    color: white;
}

.btn-wishlist-large i {
    font-size: 1.5rem;
}

.btn-login-large {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border: none;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-login-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
    color: white;
}

/* ============================================
   Product Tabs
   ============================================ */

.product-tabs-section {
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-top: 3rem;
}

.product-tabs {
    border-bottom: 2px solid var(--border-color);
    padding: 0 2rem;
    margin: 0;
}

.product-tabs .nav-link {
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-dark);
    font-weight: 600;
    padding: 1.25rem 1.5rem;
    transition: all 0.3s ease;
}

.product-tabs .nav-link:hover {
    border-bottom-color: var(--primary-color);
    color: var(--primary-color);
}

.product-tabs .nav-link.active {
    border-bottom-color: var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.product-tab-content {
    padding: 2rem;
}

.tab-content-inner h4 {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    font-weight: 700;
}

.qa-login-modal {
    z-index: 20000;
}

.product-description-full {
    line-height: 1.8;
    color: var(--text-dark);
    font-size: 1.05rem;
}

.product-specifications {
    margin-top: 2rem;
}

.product-specifications h5 {
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-weight: 600;
}

.product-specifications table {
    margin: 0;
}

.product-specifications td {
    padding: 1rem;
}

.product-specifications td:first-child {
    width: 200px;
    background: var(--bg-light);
    font-weight: 600;
}

.shipping-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.info-item i {
    font-size: 2rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.info-item strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.info-item p {
    margin: 0;
    color: var(--text-light);
}

/* ============================================
   Related Products
   ============================================ */

.related-products-section {
    margin-top: 4rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2rem;
    text-align: center;
}

.related-product-card {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
}

.related-product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.related-product-image {
    position: relative;
    overflow: hidden;
    background: var(--bg-light);
    aspect-ratio: 1;
}

.related-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.related-product-card:hover .related-product-image img {
    transform: scale(1.1);
}

.related-product-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--text-light);
}

.related-product-info {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.related-product-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    min-height: 2.5rem;
}

.related-product-name a {
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

.related-product-name a:hover {
    color: var(--primary-color);
}

.related-product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.related-product-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.85rem;
    margin-top: auto;
}

.related-product-rating i {
    color: #ffc107;
}

.related-product-rating i.bi-star {
    color: #e0e0e0;
}

.related-product-rating span {
    color: var(--text-light);
    margin-left: 0.5rem;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 991px) {
    .product-title-large {
        font-size: 2rem;
    }
    
    .current-price-large {
        font-size: 2.5rem;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .btn-wishlist-large {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .product-info {
        padding: 1.5rem;
    }
    
    .product-title-large {
        font-size: 1.75rem;
    }
    
    .current-price-large {
        font-size: 2rem;
    }
    
    .product-tabs {
        padding: 0 1rem;
    }
    
    .product-tabs .nav-link {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .product-tab-content {
        padding: 1.5rem;
    }
}

