/**
 * Gigabit — Product card design system
 * Overrides legacy menuCat_* / olo_product_tiles styles without changing markup or Livewire behavior.
 */

/* ── Product grid ── */
.olo_product_tiles {
    gap: 1rem 0;
    margin-left: -8px !important;
    margin-right: -8px !important;
}

.olo_product_tiles > .menuCat_outerWrapper,
.olo_product_tiles > li.menuCat_outerWrapper,
.olo_product_tiles > .col-6.menuCat_outerWrapper {
    padding-left: 8px !important;
    padding-right: 8px !important;
    margin-bottom: 16px !important;
}

/* ── Product card shell ── */
.menuCat_outerWrapper .menuCat_innerWrapper {
    background: #fff !important;
    border: 1px solid var(--border-color, #ebebeb) !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06) !important;
    overflow: hidden !important;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease !important;
    height: 100% !important;
}

.menuCat_outerWrapper:hover .menuCat_innerWrapper {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12) !important;
    border-color: rgba(224, 123, 39, 0.35) !important;
}

/* ── Image area ── */
.menuCat_outerWrapper .image_hover_text {
    position: relative !important;
    overflow: hidden !important;
    background: #f3f3f3 !important;
    border-radius: 16px 16px 0 0 !important;
    aspect-ratio: 4 / 3;
    min-height: 140px;
}

.menuCat_outerWrapper .image_hover_text picture,
.menuCat_outerWrapper .image_hover_text img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.35s ease !important;
}

.menuCat_outerWrapper:hover .image_hover_text img {
    transform: scale(1.05);
}

/* Product tag badge */
.menuCat_outerWrapper .product-tag {
    position: absolute !important;
    top: 10px !important;
    left: 10px !important;
    z-index: 3 !important;
    background: var(--primary-color, #e4002b) !important;
    color: #fff !important;
    font-size: 0.68rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    padding: 5px 10px !important;
    border-radius: 20px !important;
    line-height: 1.2 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
}

/* Remove legacy red ribbon tail — pill badge only */
.menuCat_outerWrapper .product-tag::after,
.menuCat_outerWrapper .product-tag:after {
    content: none !important;
    display: none !important;
    border: none !important;
}

/* Description overlay — hidden until card image is clicked (.onClickTextOverImage.show) */
.menuCat_outerWrapper .onClickTextOverImage .imgHover_txt {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: opacity 0.25s ease, visibility 0.25s ease !important;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.2) 100%) !important;
    border-radius: 0 !important;
}

.menuCat_outerWrapper .onClickTextOverImage.show .imgHover_txt {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.menuCat_outerWrapper .imgHover_text_wrapper {
    background: transparent !important;
}

.menuCat_outerWrapper .imgHover_text_wrapper p {
    color: #fff !important;
    font-size: 0.8rem !important;
    line-height: 1.45 !important;
    padding-top: 2rem !important;
}

/* Not available ribbon — hidden unless parent has .item-not-avaiable (legacy behavior) */
.menuCat_outerWrapper .ribbonWrap.new_item {
    display: none !important;
}

.menuCat_outerWrapper .item-not-avaiable .ribbonWrap.new_item {
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(255, 255, 255, 0.88) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 4 !important;
}

.menuCat_outerWrapper .item-not-avaiable .ribbonWrap.new_item p {
    background: #c42e32 !important;
    color: #fff !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    padding: 8px 14px !important;
    border-radius: 8px !important;
    letter-spacing: 0.05em !important;
}

/* ── Card body ── */
.menuCat_outerWrapper .menuCat_details {
    padding: 14px 16px 16px !important;
    background: #fff !important;
}

.menuCat_outerWrapper .menuCat_price_button {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
}

.menuCat_outerWrapper .menuCat_price_button > .row.d-flex {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    margin: 0 !important;
    width: 100% !important;
}

.menuCat_outerWrapper .menuCat_product_name {
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    margin: 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7em;
}

.menuCat_outerWrapper .menuCat_product_name a {
    color: var(--primary-font, #1a1a1a) !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

.menuCat_outerWrapper .menuCat_product_name a:hover {
    color: var(--primary-color, #e4002b) !important;
}

.menuCat_outerWrapper .menuCat_product_price {
    text-align: left !important;
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    color: var(--primary-color, #e4002b) !important;
    line-height: 1.2 !important;
}

.menuCat_outerWrapper .menuCat_product_price .new_price strong {
    font-weight: 800 !important;
}

/* Add to cart button */
.menuCat_outerWrapper .item-pricebutton {
    float: none !important;
    width: 100% !important;
    margin-top: 4px !important;
    padding: 11px 16px !important;
    border-radius: 10px !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    border: none !important;
    background: var(--btn-bg, var(--primary-color, #e4002b)) !important;
    color: var(--btn-text, #fff) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12) !important;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease !important;
}

.menuCat_outerWrapper .item-pricebutton:hover:not(:disabled) {
    background: var(--hover-color, #c96a1f) !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16) !important;
}

.menuCat_outerWrapper .item-pricebutton:disabled {
    opacity: 0.75 !important;
    cursor: wait !important;
}

/* ── Menu category cards (/menu page only) ── */
.menu_cat_outerwrapper .olo_product_tiles {
    margin-left: -10px !important;
    margin-right: -10px !important;
}

.menu_cat_outerwrapper .olo_product_tiles > li {
    padding-left: 10px !important;
    padding-right: 10px !important;
    margin-bottom: 20px !important;
}

.menu_cat_outerwrapper .olo_product_tiles > li > a {
    display: block !important;
    height: 100% !important;
    text-decoration: none !important;
}

.menu_cat_outerwrapper .menu_outerWrapper {
    border-radius: 20px !important;
    overflow: hidden !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease !important;
    background: #fff !important;
    cursor: pointer !important;
    min-height: auto !important;
}

.menu_cat_outerwrapper .menu_outerWrapper:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.14) !important;
    border-color: rgba(224, 123, 39, 0.45) !important;
}

.menu_cat_outerwrapper .menu_category_bg {
    border-radius: 20px !important;
    overflow: hidden !important;
    position: relative !important;
    aspect-ratio: 16 / 10 !important;
    min-height: 190px !important;
    background: #1a1a1a !important;
    background-image: none !important;
    background-size: cover !important;
    display: block !important;
}

.menu_cat_outerwrapper .menu_category_bg::before {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: 1 !important;
    background: linear-gradient(
        120deg,
        rgba(0, 0, 0, 0.72) 0%,
        rgba(0, 0, 0, 0.28) 42%,
        rgba(0, 0, 0, 0.08) 100%
    ) !important;
    transition: opacity 0.35s ease !important;
    pointer-events: none !important;
}

.menu_cat_outerwrapper .menu_outerWrapper:hover .menu_category_bg::before {
    background: linear-gradient(
        120deg,
        rgba(0, 0, 0, 0.58) 0%,
        rgba(0, 0, 0, 0.18) 48%,
        rgba(0, 0, 0, 0.04) 100%
    ) !important;
}

.menu_cat_outerwrapper .menu_category_bg::after {
    content: '\2192' !important;
    position: absolute !important;
    right: 18px !important;
    bottom: 20px !important;
    z-index: 3 !important;
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.18) !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    color: #fff !important;
    font-size: 1rem !important;
    line-height: 32px !important;
    text-align: center !important;
    opacity: 0 !important;
    transform: translateX(-8px) !important;
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease !important;
    pointer-events: none !important;
}

.menu_cat_outerwrapper .menu_outerWrapper:hover .menu_category_bg::after {
    opacity: 1 !important;
    transform: translateX(0) !important;
    background: var(--primary-color, #e4002b) !important;
    border-color: var(--primary-color, #e4002b) !important;
}

.menu_cat_outerwrapper .menu_category_bg > p {
    position: absolute !important;
    top: auto !important;
    right: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    float: none !important;
    z-index: 2 !important;
    margin: 0 !important;
    width: 100% !important;
    padding: 28px 56px 18px 18px !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    font-size: 1.05rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.14em !important;
    text-transform: uppercase !important;
    line-height: 1.25 !important;
    white-space: normal !important;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.35) 55%, transparent 100%) !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35) !important;
}

.menu_cat_outerwrapper .menu_category_bg > p::after {
    content: '' !important;
    display: block !important;
    width: 36px !important;
    height: 3px !important;
    margin-top: 10px !important;
    border-radius: 2px !important;
    background: var(--primary-color, #e4002b) !important;
}

.menu_cat_outerwrapper .menu_cat_image {
    position: absolute !important;
    inset: 0 !important;
    max-width: none !important;
    width: 100% !important;
    padding: 0 !important;
    z-index: 0 !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    float: none !important;
}

.menu_cat_outerwrapper .menu_cat_image picture {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
}

.menu_cat_outerwrapper .menu_cat_image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    transition: transform 0.45s ease !important;
}

.menu_cat_outerwrapper .menu_outerWrapper:hover .menu_cat_image img {
    transform: scale(1.07) !important;
}

.menu_cat_outerwrapper .headerText {
    font-size: 1.5rem !important;
    letter-spacing: 0.08em !important;
    margin-bottom: 0 !important;
    color: var(--primary-font, #1a1a1a) !important;
}

.menu_cat_outerwrapper .headerText::after {
    width: 56px !important;
    height: 4px !important;
    margin-top: 10px !important;
    background: var(--primary-color, #e4002b) !important;
}

/* Menu category — tablet */
@media (min-width: 768px) and (max-width: 991px) {
    .menu_cat_outerwrapper .menu_category_bg {
        aspect-ratio: 16 / 11 !important;
        min-height: 170px !important;
    }

    .menu_cat_outerwrapper .menu_category_bg > p {
        font-size: 0.92rem !important;
        letter-spacing: 0.11em !important;
        padding: 24px 50px 16px 16px !important;
        color: #fff !important;
    }

    .menu_cat_outerwrapper .menu_category_bg::after {
        width: 30px !important;
        height: 30px !important;
        line-height: 28px !important;
        right: 14px !important;
        bottom: 16px !important;
    }
}

/* Menu category — desktop */
@media (min-width: 992px) {
    .menu_cat_outerwrapper .menu_category_bg {
        min-height: 210px !important;
    }

    .menu_cat_outerwrapper .menu_category_bg > p {
        font-size: 1.1rem !important;
        color: #fff !important;
    }
}

/* Menu category — touch: show accent without hover */
@media (hover: none) {
    .menu_cat_outerwrapper .menu_category_bg::after {
        opacity: 1 !important;
        transform: translateX(0) !important;
        background: var(--primary-color, #e4002b) !important;
        border-color: var(--primary-color, #e4002b) !important;
        color: #fff !important;
    }

    .menu_cat_outerwrapper .menu_outerWrapper:hover {
        transform: none !important;
    }

    .menu_cat_outerwrapper .menu_outerWrapper:active {
        transform: scale(0.98) !important;
    }
}

/* ── Cart product rows ── */
.cart_product_outer_wrapper {
    margin-bottom: 12px !important;
}

.cart_product_outer_wrapper .cart_product.newrounded {
    background: #fff !important;
    border: 1px solid var(--border-color, #ebebeb) !important;
    border-radius: 14px !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05) !important;
    padding: 12px !important;
    overflow: hidden !important;
}

.cart_product_outer_wrapper .cart_product img {
    border-radius: 10px !important;
    object-fit: cover !important;
}

.cart_product_outer_wrapper .item_name {
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    color: var(--primary-font, #1a1a1a) !important;
}

/* ── Recommended carousel spacing ── */
.recom .olo_product_tiles,
#carouselrecom .olo_product_tiles,
#recommobcarousel .olo_product_tiles {
    padding: 0 4px !important;
}

.recom .menuCat_outerWrapper,
#carouselrecom .menuCat_outerWrapper,
#recommobcarousel .menuCat_outerWrapper {
    padding-left: 6px !important;
    padding-right: 6px !important;
}

/* ── Section headings ── */
.headerText {
    font-size: 1.35rem !important;
    letter-spacing: 0.04em !important;
    color: var(--primary-font, #1a1a1a) !important;
    padding-bottom: 8px !important;
}

.headerText::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: var(--primary-color, #e4002b);
    border-radius: 2px;
    margin-top: 8px;
}

/* ── Mobile & small screens ── */
@media (max-width: 767px) {
    .menuCat_outerWrapper .image_hover_text {
        min-height: 120px;
        aspect-ratio: 1 / 1;
    }

    .menuCat_outerWrapper .menuCat_product_name {
        font-size: 0.88rem !important;
        min-height: auto;
        -webkit-line-clamp: 3;
    }

    .menuCat_outerWrapper .menuCat_product_name a {
        color: var(--primary-font, #1a1a1a) !important;
    }

    .menuCat_outerWrapper .menuCat_product_price {
        color: var(--primary-color, #e4002b) !important;
    }

    .menuCat_outerWrapper .item-pricebutton {
        padding: 10px 12px !important;
        font-size: 0.78rem !important;
        background: var(--primary-color, #e4002b) !important;
        color: #fff !important;
    }

    .menuCat_outerWrapper .product-tag {
        font-size: 0.62rem !important;
        padding: 4px 8px !important;
        top: 8px !important;
        left: 8px !important;
        background: var(--primary-color, #e4002b) !important;
        color: #fff !important;
    }

    /* Menu category grid — mobile (larger, touch-friendly) */
    .menu_cat_outerwrapper .container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .menu_cat_outerwrapper .olo_product_tiles > li > a {
        -webkit-tap-highlight-color: transparent !important;
    }

    .menu_cat_outerwrapper .olo_product_tiles {
        margin-left: -6px !important;
        margin-right: -6px !important;
    }

    .menu_cat_outerwrapper .olo_product_tiles > li {
        padding-left: 6px !important;
        padding-right: 6px !important;
        margin-bottom: 16px !important;
    }

    .menu_cat_outerwrapper .menu_outerWrapper {
        min-height: auto !important;
        border-radius: 16px !important;
    }

    .menu_cat_outerwrapper .menu_category_bg {
        aspect-ratio: 4 / 3 !important;
        min-height: 155px !important;
        border-radius: 16px !important;
    }

    .menu_cat_outerwrapper .menu_category_bg::before {
        background: linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.08) 0%,
            rgba(0, 0, 0, 0.5) 50%,
            rgba(0, 0, 0, 0.85) 100%
        ) !important;
    }

    .menu_cat_outerwrapper .menu_cat_image {
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;
        inset: 0 !important;
        float: none !important;
    }

    .menu_cat_outerwrapper .menu_category_bg > p {
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
        font-size: clamp(0.95rem, 4.2vw, 1.15rem) !important;
        font-weight: 800 !important;
        letter-spacing: 0.06em !important;
        line-height: 1.3 !important;
        padding: 22px 44px 14px 14px !important;
        color: #fff !important;
        -webkit-text-fill-color: #fff !important;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.55) 70%, transparent 100%) !important;
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5) !important;
    }

    .menu_cat_outerwrapper .menu_category_bg > p::after {
        width: 32px !important;
        height: 4px !important;
        margin-top: 8px !important;
        background: var(--primary-color, #e4002b) !important;
    }

    .menu_cat_outerwrapper .menu_category_bg::after {
        opacity: 1 !important;
        transform: translateX(0) !important;
        width: 32px !important;
        height: 32px !important;
        line-height: 30px !important;
        right: 10px !important;
        bottom: 12px !important;
        font-size: 1rem !important;
        background: var(--primary-color, #e4002b) !important;
        border-color: var(--primary-color, #e4002b) !important;
        color: #fff !important;
    }

    .menu_cat_outerwrapper .headerText {
        font-size: 1.65rem !important;
        letter-spacing: 0.1em !important;
        color: var(--primary-font, #1a1a1a) !important;
        padding-bottom: 4px !important;
    }

    .menu_cat_outerwrapper .headerText::after {
        width: 52px !important;
        height: 4px !important;
        margin-top: 10px !important;
        background: var(--primary-color, #e4002b) !important;
    }
}

/* Very small phones — 2 columns, large readable labels */
@media (max-width: 479px) {
    .menu_cat_outerwrapper .olo_product_tiles > li.col-6 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }

    .menu_cat_outerwrapper .olo_product_tiles {
        margin-left: -5px !important;
        margin-right: -5px !important;
    }

    .menu_cat_outerwrapper .olo_product_tiles > li {
        padding-left: 5px !important;
        padding-right: 5px !important;
        margin-bottom: 12px !important;
    }

    .menu_cat_outerwrapper .menu_category_bg {
        aspect-ratio: 1 / 1 !important;
        min-height: 145px !important;
        border-radius: 14px !important;
    }

    .menu_cat_outerwrapper .menu_outerWrapper {
        border-radius: 14px !important;
    }

    .menu_cat_outerwrapper .menu_category_bg > p {
        font-size: clamp(0.88rem, 4.5vw, 1.05rem) !important;
        letter-spacing: 0.05em !important;
        padding: 18px 38px 12px 12px !important;
        line-height: 1.35 !important;
    }

    .menu_cat_outerwrapper .menu_category_bg > p::after {
        width: 28px !important;
        height: 3px !important;
        margin-top: 7px !important;
    }

    .menu_cat_outerwrapper .menu_category_bg::after {
        width: 28px !important;
        height: 28px !important;
        line-height: 26px !important;
        right: 8px !important;
        bottom: 10px !important;
        font-size: 0.9rem !important;
    }

    .menu_cat_outerwrapper .headerText {
        font-size: 1.5rem !important;
    }
}
