/* Product page specific styles */

/* Breadcrumb */
.breadcrumb-nav {
    margin: 1rem 0;
}

.breadcrumb {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    margin: 0 0.5rem;
    color: var(--text-muted);
}

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

.breadcrumb-item.active {
    color: var(--text-muted);
}

/* Product Details */
.product-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .product-details {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Product Images */
.product-images {
    display: flex;
    flex-direction: column;
}

.main-image {
    margin-bottom: 1rem;
}

.main-image img {
    width: 100%;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.image-thumbnails {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.3s;
    flex-shrink: 0;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--primary);
}

/* Product Box Styles */
.product-box {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border: 2px solid var(--primary);
    margin-bottom: 2rem;
}

.product-box h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.price-text {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.discount-text {
    display: flex;
    align-items: center;
}

.discount-price {
    font-size: 1.2rem;
    color: var(--text-light);
    text-decoration: line-through;
}

.savings-text {
    background: #e74c3c;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-badges {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.stock-status {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.stock-status.in-stock {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.authentic {
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    padding: 0.25rem 0;
}

.info-label {
    font-weight: 900;
    color: var(--secondary);
    min-width: 80px;
}

.icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.certification {
    margin: 1rem 0;
}

.onssa-badge {
    background: #28a745;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-block;
}

.order-button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    min-width: 200px;
    box-shadow: 0 4px 15px rgba(146, 194, 59, 0.3);
}

.order-button:hover {
    background: #7eab2c;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(146, 194, 59, 0.4);
}

.order-button i {
    font-size: 1.2rem;
}

/* Product Features */
.product-features {
    margin-bottom: 2rem;
}

.product-features ul {
    list-style: none;
    padding: 0;
}

.product-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.product-features li i {
    color: var(--primary);
}

/* Product Description */
.product-description {
    margin-bottom: 3rem;
}

.description-tabs {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 2rem;
    overflow-x: auto;
}

.tab-btn {
    padding: 1rem 1.5rem;
    border: none;
    background: none;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    font-weight: 500;
}

.tab-btn:hover,
.tab-btn.active {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
}

.tab-content {
    min-height: 200px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.tab-pane h3 {
    color: var(--secondary);
    margin-bottom: 1rem;
}

.tab-pane ul {
    padding-right: 1.5rem;
}

.tab-pane li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Customer Reviews */
.customer-reviews {
    margin-bottom: 3rem;
}

.customer-reviews h2 {
    color: var(--secondary);
    margin-bottom: 2rem;
}

.reviews-summary {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    text-align: center;
}

.average-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.rating-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
}

.total-reviews {
    color: var(--text-muted);
}

.reviews-list {
    display: grid;
    gap: 2rem;
    max-height: none; /* Show all 6 reviews */
}

.review-item {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.reviewer-details h4 {
    margin: 0 0 0.25rem 0;
    color: var(--secondary);
}

.review-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.review-text {
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Related Products */
.related-products {
    margin-bottom: 3rem;
}

.related-products h2 {
    color: var(--secondary);
    margin-bottom: 2rem;
}

.related-products .products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .product-box {
        padding: 1.25rem;
    }
    
    .product-box h1 {
        font-size: 1.4rem;
    }
    
    .price {
        font-size: 1.5rem;
    }
    
    .price-text {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .status-badges {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .description-tabs {
        gap: 0;
    }
    
    .tab-btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .average-rating {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .order-button {
        min-width: 100%;
        padding: 14px 24px;
    }
}

@media (max-width: 480px) {
    .info-row {
        flex-wrap: wrap;
    }
    
    .info-label {
        min-width: auto;
        width: 100%;
    }
}
