/* Product Cards Styles */
.product-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.discount-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

.product-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.4;
    flex-grow: 1;
}

.price-section {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
}

.original-price {
    color: #95a5a6;
    text-decoration: line-through;
    font-size: 14px;
}

.current-price {
    color: #e74c3c;
    font-weight: 700;
    font-size: 18px;
}

.rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.stars {
    display: flex;
    gap: 2px;
}

.star {
    color: #f39c12;
    font-size: 14px;
}

.rating-count {
    color: #7f8c8d;
    font-size: 14px;
}

.product-description {
    color: #7f8c8d;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Product Link Styles */
.product-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.3s ease;
}

.product-link:hover {
    text-decoration: none;
    color: inherit;
    transform: translateY(-2px);
}

.product-link:hover .product-card {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.product-link:hover .product-title {
    color: #3498db;
}

.product-link:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
    border-radius: 15px;
}

.product-link:active {
    transform: translateY(0);
}

/* Product Tabs Styles */
.product-tabs-container {
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
}

.product-tabs {
    display: flex;
    gap: 15px;
    background: #f8f9fa;
    padding: 8px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    flex-wrap: wrap;
    justify-content: center;
}

.tab-button {
    background: transparent;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.tab-button:hover {
    color: #495057;
    background: rgba(52, 152, 219, 0.1);
}

.tab-button.active {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.tab-button.active:hover {
    background: linear-gradient(135deg, #2980b9, #1f5f8b);
    color: white;
}

.tab-button span {
    position: relative;
    z-index: 1;
}

.tab-button:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* Loading Indicator Styles */
.loading-indicator {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-indicator p {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
}

/* Product Grid Animation */
.product-grid {
    transition: opacity 0.3s ease;
}

.product-grid.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Error State */
.error-message {
    text-align: center;
    padding: 40px 20px;
    color: #e74c3c;
    background: #fdf2f2;
    border-radius: 10px;
    margin: 20px 0;
}

.error-message h4 {
    margin-bottom: 10px;
    color: #c0392b;
}

.error-message p {
    margin: 0;
    color: #7f8c8d;
}

/* Responsive Design */
@media (max-width: 768px) {
    .product-tabs {
        gap: 8px;
        padding: 6px;
    }
    
    .tab-button {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .product-card {
        margin-bottom: 20px;
    }
    
    .product-image {
        height: 200px;
    }
    
    .product-title {
        font-size: 15px;
    }
    
    .current-price {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .product-tabs {
        gap: 5px;
        padding: 4px;
    }
    
    .tab-button {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .product-tabs-container {
        margin-bottom: 30px;
    }
}