/* ============================================ */
/* CATALOG.CSS */
/* ============================================ */
.sale-section {
    padding: 20px 10px;
    background: transparent;
}

.carousel {
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.carousel-btn {
    width: 50px;
    height: 50px;
    background: var(--header-gradient);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #000;
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover { transform: scale(1.1); box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
.carousel-btn:active { transform: scale(0.95); }

.sale-banner {
    flex: 1;
    background: var(--banner-gradient);
    height: 220px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    font-weight: bold;
    color: var(--banner-text);
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    margin: 0 auto;
    width: 100%;
    max-width: 1200px;
    position: relative;
    overflow: hidden;
}

.sale-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, transparent 50%, rgba(255,255,255,0.05) 100%);
    pointer-events: none;
}

.sale-banner:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0,0,0,0.2); }
.sale-banner:active { transform: translateY(0); }

.products-section { padding: 10px; background: transparent; }

.products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.product-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px var(--shadow-light);
    height: 100%;
}

.product-card:hover { transform: translateY(-3px); box-shadow: 0 5px 15px var(--shadow-medium); }

.product-image {
    overflow: hidden;
    position: relative;
    height: 180px;
    background: var(--bg-secondary);
}

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

.product-info { padding: 12px; display: flex; flex-direction: column; flex: 1; }
.product-price { font-size: 18px; font-weight: bold; color: var(--text-color); margin-bottom: 5px; }
.product-seller { font-size: 13px; color: var(--text-secondary); margin-bottom: 10px; }

.add-to-cart {
    width: 100%;
    padding: 12px 15px;
    margin-top: auto;
    border: none;
    border-radius: 10px;
    background: var(--button-gradient);
    color: var(--button-text);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px var(--shadow-light);
}

.add-to-cart:hover { transform: translateY(-2px); box-shadow: 0 4px 15px var(--shadow-medium); }
.add-to-cart:active { transform: translateY(0); }

@media (max-width: 768px) {
    .sale-section { padding: 15px 5px; }
    .carousel { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; padding: 0 5px; -ms-overflow-style: none; scrollbar-width: none; }
    .carousel::-webkit-scrollbar { display: none; }
    .carousel-btn { display: none; }
    .sale-banner { flex: 0 0 95%; height: 160px; border-radius: 15px; font-size: 32px; margin: 0 auto; scroll-snap-align: center; box-shadow: 0 4px 15px var(--shadow-light); }
    .sale-banner:hover { transform: scale(1.02); }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 0 5px; }
    .product-card { border-radius: 8px; }
    .product-image { height: 150px; }
    .product-info { padding: 10px; }
    .product-price { font-size: 16px; }
    .add-to-cart { padding: 10px 12px; font-size: 13px; margin-top: auto; }
    .add-to-cart .cart-icon { font-size: 14px; }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .sale-banner { height: 180px; font-size: 42px; max-width: 90%; }
    .products-grid { grid-template-columns: repeat(3, 1fr); gap: 15px; }
}

@media (min-width: 1025px) {
    .sale-banner { height: 220px; font-size: 56px; max-width: 1200px; }
    .products-grid { grid-template-columns: repeat(5, 1fr); gap: 20px; }
}