/* ===== ROOT ===== */
:root {
    --bg-main: #f6f7fb;
    --card-bg: #ffffff;
    --border: #e5e7eb;
    --muted: #6b7280;
    --text: #111827;
    --soft: #f3f4f6;
    --hover: #f9fafb;
    --accent: #f59e0b;
}

/* ===== BASE ===== */
body {
    background: var(--bg-main);
    color: var(--text);
}

/* ===== FILTER BUTTON ===== */
.filter-toggle {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px;
    font-weight: 500;
}

/* ===== SIDEBAR ===== */
.category-card {
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--border);
}

.category-list li {
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
    color: var(--muted);
    transition: 0.2s;
}

.category-list li a {
    color: inherit;
    text-decoration: none;
    display: block;
}

.category-list li.active {
    background: var(--soft);
    color: var(--text);
    font-weight: 500;
}

.category-list li:hover {
    background: var(--hover);
}

.empty-products-state {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
}

/* ===== PRODUCT CARD ===== */
.product-card {
    background: var(--card-bg);
    border-radius: 18px;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.25s ease;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.06);
}

/* ===== CLICKABLE LINK ===== */
.product-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* ===== IMAGE ===== */
.card-image-wrapper {
    background: #f9fafb;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative; 
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== BADGE ===== */
.badge-custom {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #fff3bf;
    color: #d97706;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 999px;
}

/* ===== CONTENT ===== */
.card-body-custom {
    padding: 16px;
}

.category-text {
    font-size: 12px;
    color: var(--muted);
}

.product-title {
    font-size: 15px;
    font-weight: 600;
    margin: 6px 0;
}

.product-price {
    padding-top: 5px;
    font-weight: 700;
    font-size: 1.5rem;
}



/* ===== BUTTON ===== */
.add-btn {
    background: var(--soft);
    border: none;
    padding: 10px;
    border-radius: 12px;
    font-weight: 500;
    transition: 0.2s;
}

.add-btn:hover {
    background: #e5e7eb;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .card-image-wrapper {
        height: 280px;
    }
}

@media (min-width: 992px) {
    .category-sticky {
        position: sticky;
        top: 90px; 
    }
}
