.filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    padding: 0 5%;
    flex-wrap: wrap;
}

/* Styled selects for catalog and category */
.catalog-select,
.catalog-element-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: var(--secondary);
    color: var(--muted);
    border: 1px solid rgba(0,0,0,0.08);
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    min-width: 160px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
    transition: var(--transition);
    background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
                      linear-gradient(135deg, var(--muted) 50%, transparent 50%);
    background-position: calc(100% - 18px) calc(1em + 2px), calc(100% - 13px) calc(1em + 2px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.catalog-select:focus,
.catalog-element-select:focus {
    outline: none;
    border-color: var(--accent);
    color: var(--black);
}

@media (max-width: 640px) {
    .catalog-select, .catalog-element-select { min-width: 140px; padding: 0.5rem 0.9rem; }
}

.filter-btn {
    background: transparent;
    border: 1px solid rgba(0,0,0,0.06);
    color: var(--muted);
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.filter-btn.active { 
    background: var(--accent);
    color: var(--black);
    border-color: var(--accent); 
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    padding: 0 5% 5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.product-card {
    background: var(--secondary);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.product-image-container {
    width: 100%;
    height: 320px;
    overflow: hidden;
    background: var(--white);
}

.product-image-container {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
    background: var(--white);
}

.product-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* show whole image without cropping */
    object-position: center;
    transition: opacity 0.25s ease;
    display: block;
}

.product-card:hover img { transform: none; }

/* Carousel styles */
.product-carousel { position: relative; width: 100%; height: 100%; }
.carousel-slides { position: relative; width: 100%; height: 100%; display: block; }
.carousel-slide { width: 100%; height: 100%; object-fit: contain; object-position: center; display: none; }

/* Controls */
.carousel-prev, .carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: background 0.15s ease, transform 0.15s ease;
}
.carousel-prev:hover, .carousel-next:hover { background: rgba(0,0,0,0.7); transform: scale(1.05); }
.carousel-prev { left: 8px; }
.carousel-next { right: 8px; }

/* Small indicator dots (optional) */
.carousel-dots { position: absolute; left: 50%; transform: translateX(-50%); bottom: 8px; display: flex; gap: 6px; z-index: 20; }
.carousel-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.6); }
.carousel-dot.active { background: var(--accent); }

.product-info { padding: 1.8rem; }

.category-tag {
    display: inline-block;
    color: var(--accent);
    text-transform: uppercase;
    font-size: 0.7rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    border: 1px solid var(--accent);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
}

.product-info h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.product-desc { color: var(--muted); font-size: 0.9rem; }