/* Enhanced Product View Styles */
.breadcrumb-nav {
    margin: 20px 0;
    background: #f8f9fa;
    padding: 12px 20px;
    border-radius: 8px;
    border-left: 4px solid #ffcd1c;
}

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

.breadcrumb-item a {
    color: #666;
    text-decoration: none;
}

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

.breadcrumb-item.active {
    color: #333;
    font-weight: 600;
}

.product-details {
    margin: 30px 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    overflow: hidden;
}

.product-gallery {
    position: sticky;
    top: 100px;
    padding: 30px;
    background: #fafafa;
}

.main-image-container {
    position: relative;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.main-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

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

.out-of-stock-badge,
.hot-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 8px 12px;
    border-radius: 4px;
    color: white;
    font-weight: bold;
    font-size: 0.8rem;
    z-index: 10;
}

.out-of-stock-badge {
    background: #dc3545;
}

.hot-badge {
    background: #ff4444;
}

.thumbnail-images {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    overflow-x: auto;
}

.thumbnail {
    flex-shrink: 0;
    border: 2px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.thumbnail.active,
.thumbnail:hover {
    border-color: #ffcd1c;
    transform: translateY(-2px);
}

.product-info {
    padding: 40px;
    background: #fff;
}

.product-title {
    font-size: 2.2rem;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.2;
    font-weight: 700;
}

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

.stars {
    color: #ffcd1c;
}

.rating-text {
    color: #666;
    font-size: 0.9rem;
}

.product-price {
    font-size: 2.5rem;
    color: #ffcd1c;
    font-weight: bold;
    margin: 25px 0;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.old-price {
    font-size: 1.5rem;
    color: #999;
    text-decoration: line-through;
}

.discount-badge {
    background: #28a745;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
}

.product-description-short {
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #ffcd1c;
}

.product-features {
    margin: 25px 0;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    gap: 10px;
}

.feature-item i {
    font-size: 1.1rem;
}

.stock-info {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
}

.stock-status {
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: 600;
    margin-left: 10px;
}

.in-stock {
    background: #d4edda;
    color: #155724;
}

.out-of-stock {
    background: #f8d7da;
    color: #721c24;
}

.product-size-selector,
.product-color-selector {
    margin: 20px 0;
}

.size-options,
.color-options {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.size-option {
    padding: 8px 16px;
    border: 2px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.size-option.active,
.size-option:hover {
    border-color: #ffcd1c;
    background: #ffcd1c;
    color: white;
}

.color-option {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.color-option.active,
.color-option:hover {
    border-color: #333;
    transform: scale(1.1);
}

.quantity-selector {
    display: flex;
    align-items: center;
    margin: 30px 0;
    gap: 15px;
    flex-wrap: wrap;
}

.quantity-controls {
    display: flex;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}

.quantity-btn {
    background: #f8f9fa;
    border: none;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    min-width: 45px;
}

.quantity-btn:hover {
    background: #e9ecef;
}

.quantity-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.quantity-input {
    border: none;
    border-left: 2px solid #e9ecef;
    border-right: 2px solid #e9ecef;
    text-align: center;
    font-size: 1.1rem;
    width: 70px;
    font-weight: 600;
}

.max-quantity {
    color: #666;
    font-size: 0.9rem;
}

.action-buttons {
    display: flex;
    gap: 15px;
    margin: 35px 0;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 25px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: #ffcd1c;
    color: #fff;
    flex: 1;
    justify-content: center;
}

.btn-primary:hover {
    background: #e6b400;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 205, 28, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid #ddd;
    color: #666;
}

.btn-outline:hover {
    border-color: #ffcd1c;
    color: #ffcd1c;
    transform: translateY(-2px);
}

.trust-badges {
    display: flex;
    justify-content: space-between;
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    flex-wrap: wrap;
    gap: 15px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 0.9rem;
}

.trust-item i {
    color: #28a745;
    font-size: 1.2rem;
}

.social-share {
    margin: 25px 0;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.share-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.share-btn.facebook { background: #3b5998; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.whatsapp { background: #25d366; }
.share-btn.link { background: #6c757d; }

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Product Tabs */
.product-tabs {
    margin: 50px 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    overflow: hidden;
}

.nav-tabs {
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    padding: 0 20px;
}

.nav-tabs > li > a {
    border: none !important;
    color: #666;
    font-weight: 600;
    padding: 20px 25px;
    border-radius: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
    background: #fff;
    color: #ffcd1c;
    border-bottom: 3px solid #ffcd1c !important;
}

.tab-content {
    border: none;
}

.tab-content-inner {
    padding: 40px;
}

/* Reviews Section */
.review-summary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.average-rating .rating-score {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.stars.large {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.review-count {
    font-size: 1rem;
    opacity: 0.9;
}

.rating-bars {
    margin-top: 20px;
}

.rating-bar {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    gap: 10px;
}

.star-count {
    min-width: 70px;
    font-weight: 600;
}

.rating-bar .progress {
    flex: 1;
    height: 10px;
    background: rgba(255,255,255,0.3);
    border-radius: 5px;
    overflow: hidden;
}

.rating-bar .progress-bar {
    background: #ffcd1c;
}

.percentage {
    min-width: 40px;
    text-align: right;
    font-weight: 600;
}

.review-item {
    border-bottom: 1px solid #eee;
    padding: 25px 0;
}

.review-item:last-child {
    border-bottom: none;
}

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

.reviewer-info {
    flex: 1;
}

.reviewer-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.review-rating {
    color: #ffcd1c;
}

.review-date {
    color: #666;
    font-size: 0.9rem;
}

.review-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

/* Related Products */
.related-products-section {
    margin: 60px 0 30px;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h3 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 10px;
}

.section-header p {
    color: #666;
    font-size: 1.1rem;
}

.related-product-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 30px;
    position: relative;
}

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

.related-product-card .product-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

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

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

.product-actions {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
}

.related-product-card:hover .product-actions {
    opacity: 1;
    transform: translateX(0);
}

.product-actions .btn {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.related-product-card .product-info {
    padding: 20px;
}

.related-product-card .product-name {
    font-size: 1.1rem;
    margin-bottom: 8px;
    height: 50px;
    overflow: hidden;
}

.related-product-card .product-name a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-product-card .product-name a:hover {
    color: #ffcd1c;
}

.related-product-card .product-size {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.related-product-card .product-price {
    color: #ffcd1c;
    font-weight: bold;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.related-product-card .btn-add-cart {
    width: 100%;
    justify-content: center;
}

/* Specifications Table */
.specifications-table {
    width: 100%;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
}

.specifications-table td {
    padding: 15px;
    border-bottom: 1px solid #dee2e6;
}

.spec-label {
    background: #f8f9fa;
    font-weight: 600;
    width: 200px;
}

/* Shipping Info */
.shipping-options {
    margin: 20px 0;
}

.shipping-option {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.shipping-option:hover {
    border-color: #ffcd1c;
    background: #fffdf5;
}

.shipping-option i {
    font-size: 2rem;
    color: #ffcd1c;
}

.option-details {
    flex: 1;
}

.option-details .price {
    color: #28a745;
    font-weight: 600;
    margin-top: 5px;
}

.return-features {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.return-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 6px;
}

.return-feature i {
    color: #28a745;
}

/* Responsive Design */
@media (max-width: 768px) {
    .product-title {
        font-size: 1.8rem;
    }
    
    .product-price {
        font-size: 2rem;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .product-gallery {
        position: static;
        margin-bottom: 0;
    }
    
    .trust-badges {
        flex-direction: column;
        gap: 15px;
    }
    
    .review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .quantity-selector {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .nav-tabs > li {
        float: none;
        width: 100%;
    }
    
    .nav-tabs > li > a {
        text-align: center;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .product-info {
        padding: 25px 20px;
    }
    
    .product-gallery {
        padding: 20px;
    }
    
    .thumbnail-images {
        justify-content: flex-start;
    }
    
    .tab-content-inner {
        padding: 25px 20px;
    }
    
    .related-products .col-lg-3 {
        width: 100%;
    }
    
    .return-features {
        flex-direction: column;
    }
}

/* Loading Spinner */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner-overlay p {
    margin-top: 15px;
    color: #666;
    font-weight: 600;
}

/* Notification Styles */
.notification {
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification-content i {
    font-size: 1.2rem;
}

/* Accessibility */
.product-card:focus-within {
    outline: 3px solid #ffcd1c;
    outline-offset: 2px;
}

.btn:focus,
.quantity-btn:focus {
    outline: 2px solid #333;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .product-card {
        border: 2px solid #000;
    }
    
    .btn-primary {
        border: 2px solid #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .related-product-card,
    .btn,
    .quantity-btn,
    .thumbnail {
        transition: none;
    }
    
    .related-product-card:hover .product-image img {
        transform: none;
    }
    
    .main-image:hover {
        transform: none;
    }
}