/* =========================================
   GLOBAL SAFETY
========================================= */

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
}

img, svg {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =========================================
   SKATEBOARD / MENU PAGE – FLUID + CAPPED
========================================= */

.menu-page {
    width: 100%;
}

/* Fluid outer padding */
.menu-page-wrapper {
    width: 100%;
    padding-inline: 20px;
}

@media (min-width: 1400px) {
    .menu-page-wrapper {
        padding-inline: 40px;
    }
}

/* Capped inner content */
.menu-page-inner {
    max-width: 1400px;
    margin-inline: auto;
    width: 100%;
    min-width: 0; /* 🔑 */
}

/* Allow children to shrink */
.menu-page-inner > * {
    min-width: 0;
}





/* ==============================
   MENU HERO
============================== */

.menu-hero {
    width: 100%;
}

.menu-hero h1 {
    font-size: 30px;
    font-weight: 600;
    margin: 12px 0;
}

.menu-hero a{
    text-decoration: none;
    color: #000;
}

.menu-hero h1 a:hover{
    color: rgb(255, 0, 0);
}




/* ==============================
   result-counter
============================== */

.result-counter{
    margin: 0;
    font-size: 20px;
    font-weight: 500;
}




/* ==============================
   CATEGORY SCROLL
============================== */

.category-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 12px;

    scrollbar-width: none; /* Firefox */
}

.category-scroll::-webkit-scrollbar {
    display: none;
}


.category-scroll a {
    text-decoration: none;
    color: black;
}

/* Fake scrollbar */
.fake-scrollbar {
    width: 100%;
    height: 8px;
    background: #e6e6e6;
    border-radius: 10px;
    margin-top: 6px;
    position: relative;

    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.fake-scrollbar.visible {
    opacity: 1;
    pointer-events: auto;
}

.fake-thumb {
    position: absolute;
    height: 100%;
    background: #bfbfbf;
    border-radius: 10px;
    left: 0;
    width: 20%;
    cursor: grab;
}

.fake-thumb:active {
    cursor: grabbing;
}





/* ==============================
   CATEGORY ITEM
============================== */

.category-item {
    flex: 0 0 auto;
    min-width: 70px;
    text-align: center;
    cursor: pointer;
}

/* Circle icon */
.category-item .icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 6px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e5e5e5;
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.category-item.active .icon {
  border-color: #000;
}

 .category-item svg{
    width: 70%;
    height: 70%;
    object-fit: cover;
}





/* ==============================
   HOVER / ACTIVE
============================== */

.category-item:hover .icon {
    border-color: #000;
}




.result-counter{
    margin: 10px 0;
    padding: 20px 0;
}


/* ==============================
   PRODUCTS GRID
============================== */

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* mobile: 2 */
    gap: 12px;
    padding: 10px 0;
}

.product-image {
    position: relative;
    display: block;
    overflow: hidden;
}

.out-of-stock-overlay {
    position: absolute;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(0, 0, 0, 0.55);
    color: #fff;

    font-size: 18px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;

    backdrop-filter: blur(2px);
}

.out-of-stock-overlay::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 2px solid rgba(255,255,255,.15);
}

.out-of-stock-overlay {
    z-index: 2;
}

/* ==============================
   DESKTOP (4 PER ROW)
============================== */

@media (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr); /* desktop: 4 */
    }
}






.product-brand {
    display: block;
    font-size: 12px;
    font-weight: 500;
    margin: 2px 0;
    margin-top: 10px;
    text-transform: uppercase;
}

.product-title {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.3;
    font-family: 'Inter', sans-serif;
    color: #777;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
    min-height: calc(1.3em * 2); /* always 2 lines */
    margin-bottom: 6px;
}

.product-price{
    font-weight: 600;
}





