/* department.css */

@media (max-width: 768px) {

    .product-inline {
        min-width: 75%;   /* 👈 key fix */
        max-width: 75%;
    }

}
.product-row {
    display: flex;
    gap: 16px;
    overflow-x: auto;

    padding-bottom: 10px;
}
/* 🔥 make product cards behave inside horizontal scroll */
.product-row .product-card-wrapper {
    flex: 0 0 220px;
}

.product-inline {
    scroll-snap-align: start;
}
/* 🔥 CATEGORY ROW (unchanged) */
.category-row {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.category-row::-webkit-scrollbar {
    display: none;
}

/* 🔥 CATEGORY CARD */
.category-card {
    min-width: 160px;
    flex-shrink: 0;

    background: #111;
    border-radius: 10px;
    padding: 12px;

    text-align: center;
    text-decoration: none;
    color: white;
}

/* 🔥 CATEGORY IMAGE */
.category-image img {
    width: 100%;
    height: 120px;
    object-fit: contain;
}

/* 🔥 SECTION */
.category-section {
    margin-bottom: 40px;
}

/* 🔥 HEADER */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.section-header h3 {
    margin: 0;
    font-weight: 600;
}

.section-header a {
    font-size: 0.9rem;
    text-decoration: none;
    color: #555;
}

/* 🔥 WHITE PRODUCT ROW */
.product-row {
    display: flex;
    gap: 16px;

    background: #fff;
    padding: 16px;
    border-radius: 12px;

    overflow-x: auto;
}

.product-row::-webkit-scrollbar {
    display: none;
}

/* 🔥 INLINE PRODUCT */
.product-inline {
    display: flex;
    flex-direction: column;

    min-width: 140px;
    text-decoration: none;
    color: #000;

    transition: transform 0.15s ease;
}

.product-inline:hover {
    transform: translateY(-3px);
}

/* 🔥 IMAGE */
.product-inline img {
    width: 100%;
    height: 120px;
    object-fit: contain;
    margin-bottom: 8px;
}

/* 🔥 TEXT (SCOPED) */
.product-inline-name {
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 4px;
}

.product-inline-price {
    font-size: 0.85rem;
    font-weight: 600;
}

/* EMPTY */
.empty {
    color: #888;
    font-size: 0.9rem;
}
.subcategory-block {
    margin-bottom: 25px;
}

.sub-header {
    margin-bottom: 8px;
}

.sub-header h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
}

/* Make category card visually distinct but same size */
.category-inline {
    background: #111;
    color: #fff;
    border-radius: 10px;
    padding: 10px;
}

.category-inline img {
    width: 100%;
    height: 120px;
    object-fit: contain;
    margin-bottom: 8px;
}

.category-inline .no-image {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #222;
    margin-bottom: 8px;
}
