/* Image wrapper with square frame */
.menu-img-wrapper {
    width: 100%;
    height: auto;
    max-width: 200px;
    /*overflow: hidden;*/
    margin: 0 0 1rem 0;
    position: relative;
    text-align: left;
    display: block;
}

/* Image inside (fills the square) */
.menu-img-holder img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    margin: 0;
}

.menu-img-holder {
    display: block;
    width: 100%;
    height: 100%;
    text-align: left;
}

/* Discount badge: green square */
.menu-onsale-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #30b14f;
    color: #fff;
    font-weight: bold;
    font-size: 0.85rem;
    padding: 4px 8px;
    border-radius: 0 6px 0 6px;
    z-index: 2;
}

.menu-onsale-badge-circle {
    display: inline-block;
    background-color: #28a745;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    text-align: center;
    line-height: 50px;
    position: absolute;
    top: 20px;
    right: 10px;
    z-index: 10;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.menu-slide a {
    display: block;
    width: 100%;
}

.menu-product-slider {
    width: 100%;
    overflow: hidden; /* prevents overflow beyond container */
    box-sizing: border-box;
}

.menu-swiper-wrapper {
    display: flex;
    flex-wrap: nowrap;
}
/* Define slide width so swiper can calculate properly */
.menu-slide {
    width: auto;
    min-width: 200px; /* or 220px or 250px based on design */
    flex-shrink: 0;
    box-sizing: border-box;

}

.menu-swiper-container {
    width: 100%;
}


.menu-swiper-container,
.menu-swiper-wrapper {
    overflow: visible !important;
}

.menu-rating-stars {
    margin: 6px 0;
    text-align: left;
}

.menu-rating-stars .star {
    height: 16px;
    width: 16px;
    display: inline-block;
}

/* Text content */
.menu-content {
    text-align: center;
    padding: 0 10px;
    align-self: baseline;
    width:70%
}

.menu-content h3 {
    font-size: 1rem;
    font-weight: bold;
    margin: 0.5rem 0 0.2rem;
    text-align: left;
}

.menu-desc-wrap {
    font-size: 0.85rem;
    color: #333;
}

.menu-subtitle {
    color: grey;
    font-weight: 300;
    font-size: 0.85rem;
    margin-bottom: 0.2rem;
    text-align: left;
}

.menu-desc-text {
    font-size: 0.8rem;
    line-height: 1.3;
    color: #444;
    margin: 0;
    text-align: left;
    width: 150px;
    align-self: flex-start;
}

/* Description section layout */
.menu-desc-wrap-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
}

.menu-desc-left {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.menu-desc-right {
    display: flex;
    align-items: flex-start;
}

/* Pricing row (price + cart button) */
.menu-price-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 10px;
    flex-wrap: nowrap;
}


/* Price area (includes regular/sale) */
.menu-price-wrapper {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    white-space: nowrap;
    gap: 6px;
    flex-grow: 1;
}

.menu-price-wrapper del,
.menu-price-wrapper ins {
    display: inline-flex !important;
    align-items: center;
    margin: 0 !important;
    padding: 0 !important;
    font-size: inherit !important;
    text-decoration: none !important;
    white-space: nowrap;
}


.menu-price-wrapper del .amount,
.menu-price-wrapper ins .amount {
    font-weight: bold;
    font-size: 1rem;
    line-height: 1;
}

.menu-price-wrapper del {
    color: #999;
}

.menu-price-wrapper ins {
    color: #000;
}
/* Force all price parts to be inline */
.menu-price-wrapper > *,
.menu-price-wrapper .amount,
.menu-price-wrapper del,
.menu-price-wrapper ins {
    display: inline-block !important;
    white-space: nowrap !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
    float: none !important;
    line-height: 1.2 !important;
    font-size: inherit !important;
    text-decoration: none !important;
}


/* Cart button wrapper */
.menu-cart-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-left: auto;
    background: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

/* Cart icon */
.menu-cart-icon {
    width: 20px;
    height: auto;
}

.menu-cart-btn:hover img {
    filter: brightness(0) invert(1);
}

/* Optional: cart icon wrapper alternative */
.menu-cart-button {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    color: #000;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #000;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* General fallback line container (if needed) */
.menu-price-line {
    display: flex;
    align-items: center;
    width: 100%;
    margin: 0.3rem 0;
}

.menu-price-amount {
    flex-grow: 1;
    text-align: left;
    min-width: 0;
}

/* Add to cart (alt style) */
.menu-add-to-cart {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-left: 10px;
}

/* Reset WooCommerce styles (as needed) */
.menu-price-amount,
.menu-price-amount > span,
.menu-price-amount > del,
.menu-price-amount > ins {
    display: inline !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
    float: none !important;
    line-height: 1 !important;
    font-size: inherit !important;
}
