/* Homepage desktop layout. Mobile styles remain in the shared stylesheets. */
@media (min-width: 1024px) {
    body.site-index { --desktop-content-width: 1280px; }
    body.site-index .navbar-container { max-width: var(--desktop-content-width); padding: 14px 24px; gap: 20px; }
    body.site-index .navbar .navbar-brand { gap: 10px; }
    body.site-index .navbar .navbar-brand .navbar-brand-text > span { max-width: 360px; font-size: 13px !important; line-height: 1.7; }
    body.site-index .nav-links { gap: clamp(12px, 1.5vw, 24px); }
    body.site-index .nav-link { font-size: .9rem; }
    body.site-index .carousel-container { width: calc(100% - 48px); max-width: var(--desktop-content-width); margin: 28px auto 40px; border-radius: 20px; box-shadow: 0 12px 36px #1a1a2e18; }
    body.site-index .menu-section { width: calc(100% - 48px); max-width: var(--desktop-content-width); padding: 0; margin: 0 auto; box-sizing: border-box; }
    body.site-index .shop-closed-alert { max-width: var(--desktop-content-width); width: calc(100% - 48px); box-sizing: border-box; }
    body.site-index .header-section { gap: 20px; margin-bottom: 24px; }
    body.site-index .food-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-bottom: 48px; }
    body.site-index .food-card { min-width: 0; border-radius: 18px; box-shadow: 0 6px 24px #1a1a2e0d; }
    body.site-index .footer { max-width: var(--desktop-content-width); width: calc(100% - 48px); box-sizing: border-box; margin: 40px auto 28px; padding: 32px 32px 20px; border-radius: 22px; }
    body.site-index .footer .footer-container { grid-template-columns: 1.25fr 1fr 1.2fr 1fr; gap: 28px; margin-bottom: 24px; }
    body.site-index .footer .footer-title { font-size: .95rem; margin-bottom: 12px; }
    body.site-index .footer .footer-contact { display: flex; flex-direction: column; }
    body.site-index .footer .contact-item > div > div:last-child { white-space: normal !important; }
    body.site-index .footer .footer-bottom { flex-direction: column; align-items: center; gap: 10px; padding-top: 18px; text-align: center; }
    body.site-index .footer .footer-bottom-text { margin: 5px 0; }
    body.site-index .footer .footer-bottom-links { justify-content: center; gap: 8px 24px; }
}
@media (min-width: 769px) and (max-width: 1023px) {
    body.site-index .food-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
    body.site-index .nav-links { gap: 12px; }
    body.site-index .nav-link { font-size: .8rem; }
    body.site-index .footer .footer-container { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Reserve banner space independently of the uploaded image dimensions. */
body.site-index .carousel-wrapper { height: 420px; min-height: 0; }
body.site-index .carousel-slide,
body.site-index .carousel-slide.slide-active { position: absolute; inset: 0; width: 100%; height: 100%; }
body.site-index .carousel-link,
body.site-index .carousel-static { display: block; width: 100%; height: 100%; }
body.site-index .carousel-slide img,
body.site-index .carousel-img { display: block; width: 100%; min-width: 0; max-width: 100%; height: 100%; min-height: 0; object-fit: cover; object-position: center; }
@media (max-width: 1023px) {
    body.site-index .carousel-wrapper { height: 260px; }
}
@media (max-width: 480px) {
    body.site-index .carousel-wrapper { height: 120px; }
}
/* Consistent catalog cards and aligned purchase controls. */
@media (min-width: 769px) {
    body.site-index .food-card { border: 1px solid #e9edf2; box-shadow: 0 5px 20px #1a1a2e08; }
    body.site-index .food-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px #1a1a2e14; }
    body.site-index .food-image-wrapper { aspect-ratio: 4 / 3; flex-shrink: 0; background: #f5f7fa; }
    body.site-index .food-image { padding: 12px; box-sizing: border-box; }
    body.site-index .food-content { padding: 18px; gap: 0; }
    body.site-index .food-name { font-size: 17px; line-height: 1.6; height: 3.2em; margin: 0 0 14px; }
    body.site-index .food-name a { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
    body.site-index .food-footer { margin-top: auto; padding-top: 12px; border-top: 1px solid #edf0f4; }
    body.site-index .food-price { font-size: 21px; line-height: 1.6; }
    body.site-index .add-to-cart-form { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 10px; margin-top: 12px; }
    body.site-index .quantity-input { width: 100%; min-width: 0; height: 46px; padding: 8px 4px; border: 1px solid #dce2e9; border-radius: 10px; box-sizing: border-box; font-size: 15px; }
    body.site-index .add-btn { min-width: 0; height: 46px; padding: 8px; border-radius: 10px; font-size: 13px; white-space: nowrap; }
    body.site-index .btn-sold-premium { min-height: 46px; margin-top: 12px; padding: 8px; font-size: 13px; border-radius: 10px; }
}