/* Products Tabs Section */
.products-tabs-section {
    padding: 60px 0;
    background: white;
}

.product-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    border-bottom: 2px solid #e5e7eb;
}

.product-tab-btn {
    background: none;
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.product-tab-btn:hover {
    color: #1e40af;
}

.product-tab-btn.active {
    color: #000000;
    border-bottom-color: #ea580c;
}

.product-tab-content {
    display: none;
}

.product-tab-content.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.product-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    border-color: #cf1313;
    box-shadow: 0 8px 20px rgba(30, 64, 175, 0.15);
    transform: translateY(-5px);
}

.product-image {
    position: relative;
    height: 200px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: white;
}

.product-badge.new {
    background: #cf1313;
}

.product-badge.top {
    background: #ea580c;
}

.product-badge.coming {
    background: #10b981;
}

.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-title a {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    min-height: 40px;
    text-decoration: none;
}

.product-title a:hover {
    text-decoration: underline;
}

.product-code-container {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    padding-top: 10px;
    padding-bottom: 15px;
}

.product-code {
    font-size: 13px;
    color: #999;
    /* margin-bottom: 15px; */
}

.product-price {
    margin-bottom: 15px;
    margin-top: auto;
}

.product-price .price {
    font-size: 22px;
    font-weight: bold;
    color: #1e40af;
}

.product-price .old-price {
    font-size: 16px;
    color: #999;
    text-decoration: line-through;
    margin-left: 10px;
}

.add-to-cart-btn {
    width: 100%;
    padding: 12px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.product-info .add-to-cart-btn {
    text-align: center;
    text-decoration: none;
}

.add-to-cart-btn:hover {
    background: #c2410c;
    transform: scale(1.02);
}

.add-to-cart-btn.disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.add-to-cart-btn.disabled:hover {
    background: #9ca3af;
    transform: none;
}

/* Responsive */
@media (max-width: 768px) {
    .product-tabs {
        flex-wrap: wrap;
    }
    
    .product-tab-btn {
        padding: 12px 20px;
        font-size: 16px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 15px;
    }
}