/* =========================
   FILTER SIDEBAR
   ========================= */
.filter-section {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 100px;
}

/* =========================
   PRODUCT CARDS
   ========================= */
.card {
    background: linear-gradient(
        to bottom,
        rgba(255,255,255,0.95),
        rgba(255,255,255,0.85)
    );
    backdrop-filter: blur(4px);
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: .35s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow:
        var(--shadow-md),
        0 0 0 1px rgba(58,134,255,0.08);
}

/* =========================
   IMAGE
   ========================= */
.img-container {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    cursor: zoom-in;
}

.card-img-top {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s;
}

.img-container:hover .card-img-top {
    transform: scale(1.08);
}

/* =========================
   COLOR SELECTOR
   ========================= */
.color-swatch {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    outline: 1px solid rgba(0,0,0,0.15);
    cursor: pointer;
    transition: .2s;
}

.color-selected {
    outline: 2px solid var(--accent);
    transform: scale(1.15);
}

/* =========================
   CART BADGE
   ========================= */
.cart-count {
    background: #ff3b30;
    color: white;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: .75rem;
    animation: pop .4s ease;
}

@keyframes pop {
    0% { transform: scale(.8); }
    60% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* =========================
   IMAGE MODAL
   ========================= */
#zoomImg {
    max-width: 100%;
    max-height: 90vh;
    border-radius: var(--radius-sm);
}
.card .text-muted {
    min-height: 40px;
    line-height: 1.2;
}
