/* HERO */
.hero-section > .container {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 0;
    background: #fff;
    align-items: stretch;
}

/* Sidebar */
.category-sidebar {
    background: #fff;
    padding: 24px 24px 24px 0;
    border-right: 1px solid rgba(0, 0, 0, 0.10);
    overflow: hidden;
    height: 0;
    min-height: 100%;
    position: relative;
    user-select: none;
    overscroll-behavior: contain;
}
.category-sidebar ul { list-style: none; }

.category-sidebar > ul > li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 8px;
    font-size: 13px;
    cursor: pointer;
    color: #333;
    border-radius: 4px;
}
.category-sidebar > ul > li:hover { background: #f9f9f9; }
.category-sidebar > ul > li > a {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Active / open parent item */
.category-sidebar > ul > li.active,
.category-sidebar > ul > li.open {
    font-weight: 700;
    color: #111;
}
.category-sidebar > ul > li.active > .arr,
.category-sidebar > ul > li.open > .arr {
    transform: rotate(90deg);
    color: #111;
}

/* Colored icon boxes */
.cat-icon {
    border: 1px solid var(--black-20);
    padding: 4px;
    box-sizing: content-box;
    max-width: 32px; max-height: 32px;
    /*border-radius: 6px;*/
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

/*.ci-meat   { background: #c0392b; }
.ci-dairy  { background: #2980b9; }
.ci-grain  { background: #e67e22; }
.ci-honey  { background: #f39c12; }
.ci-butter { background: #8e44ad; }
.ci-other  { background: #27ae60; }*/

.ci-label { flex: 1; }

.arr { margin-left: auto; color: rgba(0,0,0,0.5); font-size: 12px; transition: transform 0.2s; }

/* Sub-items accordion */
.sub-items {
    list-style: none;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease, background-color 0.25s ease;
    background-color: transparent;
}
.has-sub.open {
    background-color: var(--black-5);
}
.has-sub.active > .sub-items,
.has-sub.open > .sub-items {
    max-height: 300px;
}

.has-sub.open:hover {
    background-color: var(--black-5);
}
/* Sub-items */
.category-sidebar .sub-item {
    display: flex;
    border-radius: var(--radius-sm);
    align-items: center;
    gap: 6px;
    padding: 7px 8px 7px 28px;
    font-size: 12.5px;
    color: #555;
    font-weight: normal;
    cursor: pointer;
    transition: background 0.15s;
}
.category-sidebar .sub-item:hover {
    background: var(--white-60);
    color: var(--black-100);
}
.category-sidebar .sub-item a {
    display: flex;
    align-items: baseline;
    gap: 12px;
    text-transform: math-auto;
}
.category-sidebar .sub-item a span::first-letter {
    flex: 1;
    text-transform: uppercase;
}
.sub-arrow {
    color: #aaa;
    font-size: 13px;
    flex-shrink: 0;
}

/* Hero Banner */
.banner-wrapper {
    margin: 24px 0 24px 24px;
    overflow: hidden;
}
.hero-banner {
    position: relative;
    border-radius: var(--radius-md);
    padding-bottom: 37.49%;
    overflow: hidden;
    background: #1a1a1a;
}
.hero-banner img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-img-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Simulated dark food photo texture */
.hero-img-placeholder::before {
    /*content: '';*/
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 80% at 40% 70%, rgba(180,140,80,0.25) 0%, transparent 70%),
        radial-gradient(ellipse 40% 50% at 70% 80%, rgba(160,120,60,0.2) 0%, transparent 60%);
}


/* Top-right overlay info box (as seen in image) */
.hero-overlay-box {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 180px;
    height: 110px;
    background: rgba(50,50,50,0.85);
    /*border-radius: 4px;*/
}

/* MOBILE CATEGORY SHORTCUTS */
.hero-mobile-cats {
    display: none;
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
    background: #fff;
}
.hero-mobile-cat-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
}

.hero-mobile-cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #333;
    min-width: 0;
}

.hero-mobile-cat-icon {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    box-sizing: border-box;

    border: 1px solid var(--black-40);
    padding: 4px;
    background: #f5f5f5;

    /* Important */
    object-fit: contain;
    object-position: center;
}

.hero-mobile-cat-item span {
    width: 100%;
    font-size: 12px;
    font-weight: 400;
    color: #333;
    text-align: center;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* MOBILE RESPONSIVE */
@media (max-width: 767px) {
    .hero-mobile-cats {
        display: block;
    }

    .hero-section > .container {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .category-sidebar {
        display: none;
    }

    .banner-wrapper {
        margin: 0;
    }

    .hero-banner {
        padding-bottom: 56%;
    }
}

/* TABLET RESPONSIVE */
@media (min-width: 768px) and (max-width: 1024px) {
    .hero-section > .container {
        grid-template-columns: 200px 1fr;
    }

    .category-sidebar {
        padding: 16px 16px 16px 0;
    }

    .category-sidebar > ul > li {
        font-size: 12px;
        padding: 6px;
        gap: 6px;
    }

    .banner-wrapper {
        margin: 16px 0 16px 16px;
    }
}
