@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

html,
body,
body:has(#page-content.restaurant-detail-page) {
    background: #f5f6f7;
}

#page-content.restaurant-detail-page {
    margin: 0;
    min-height: 100vh;
}
.restaurant-detail-page {
    background: #f5f6f7;
    color: #111827;
    font-family: "Poppins", Arial, sans-serif;
    padding-bottom: 60px;
}
.restaurant-detail-page * {
    letter-spacing: 0;
}
.restaurant-detail-shell {
    margin: 0 auto;
    max-width: 1120px;
    padding: 0 22px;
    position: relative;
    width: 100%;
    z-index: 2;
}
.restaurant-detail-hero {
    background: #164729;
    min-height: 440px;
    overflow: hidden;
    padding: 18px 0 24px;
    position: relative;
    isolation: isolate;
}
.restaurant-detail-hero-image,
.restaurant-detail-hero-shade {
    inset: 0;
    position: absolute;
}
.restaurant-detail-hero-image {
    background: #164729;
    display: block;
    height: 100%;
    object-fit: cover;
    transform: translateZ(0);
    width: 100%;
    backface-visibility: hidden;
    z-index: 0;
}
.restaurant-detail-hero-shade {
    background: linear-gradient(180deg, rgba(0, 0, 0, .12) 0%, rgba(0, 0, 0, .25) 46%, rgba(0, 0, 0, .72) 100%);
    pointer-events: none;
    z-index: 1;
}
.restaurant-back-btn,
.restaurant-direction-btn,
.restaurant-action-btn,
.restaurant-main-cta {
    align-items: center;
    border: 0;
    border-radius: 8px;
    display: inline-flex;
    font-weight: 600;
    gap: 9px;
    justify-content: center;
    line-height: 1;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease;
}
.restaurant-back-btn:hover,
.restaurant-direction-btn:hover,
.restaurant-action-btn:hover,
.restaurant-main-cta:hover {
    transform: translateY(-1px);
}
.restaurant-back-btn {
    background: #fff;
    color: #1f2937;
    font-size: 15px;
    padding: 15px 18px;
    width: fit-content;
}
.restaurant-hero-content {
    align-items: flex-end;
    bottom: 24px;
    color: #fff;
    display: flex;
    gap: 24px;
    justify-content: space-between;
    left: max(22px, calc((100vw - 1120px) / 2 + 22px));
    position: absolute;
    right: max(22px, calc((100vw - 1120px) / 2 + 22px));
    z-index: 2;
}
.restaurant-hero-title {
    color: #fff;
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 800;
    line-height: 1.05;
    margin: 12px 0 10px;
}
.restaurant-badge-row,
.restaurant-rating-row,
.restaurant-tag-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.restaurant-pill {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: 13px;
    font-weight: 700;
    gap: 6px;
    line-height: 1;
    padding: 8px 12px;
}
.restaurant-pill.green {
    background: #17643a;
    color: #fff;
}
.restaurant-pill.light {
    background: #f2fbf5;
    color: #17643a;
}
.restaurant-rating-row {
    color: #fff;
    font-size: 15px;
}
.restaurant-stars {
    color: #f8b400;
    font-size: 17px;
    line-height: 1;
}
.restaurant-open {
    background: #10b981;
    border-radius: 999px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 7px 13px;
}
.restaurant-direction-btn {
    background: #f59f18;
    color: #fff;
    font-size: 16px;
    min-width: 172px;
    padding: 18px 22px;
}
.restaurant-gallery-stack {
    display: grid;
    gap: 10px;
    position: absolute;
    right: max(22px, calc((100vw - 1120px) / 2 + 22px));
    top: 18px;
    z-index: 2;
}
.restaurant-gallery-stack img,
.restaurant-gallery-more {
    border: 2px solid #f59f18;
    border-radius: 8px;
    height: 52px;
    object-fit: cover;
    width: 52px;
}
.restaurant-gallery-more {
    align-items: center;
    background: rgba(0, 0, 0, .62);
    color: #fff;
    display: flex;
    font-size: 13px;
    font-weight: 700;
    justify-content: center;
}

.restaurant-detail-container {
    margin: 0 auto;
    max-width: 1180px;
    padding: 32px 18px 56px;
}
.restaurant-detail-grid {
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(0, 1fr) 330px;
    align-items: start;
}
.restaurant-panel,
.restaurant-side-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(17, 24, 39, .05);
}
.restaurant-summary-panel {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 24px;
    padding: 18px;
}
.restaurant-tag {
    background: #f1f3f5;
    border-radius: 999px;
    color: #4b5563;
    display: inline-flex;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 12px;
}
.restaurant-action-row {
    display: flex;
    gap: 10px;
}
.restaurant-action-btn {
    background: #fff;
    border: 1px solid #e5e7eb;
    color: #374151;
    font-size: 14px;
    padding: 13px 18px;
}
.restaurant-tabs {
    border-bottom: 1px solid #e5e7eb;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}
.restaurant-tabs button {
    background: transparent;
    border: 0;
    border-bottom: 1px solid transparent;
    color: #6b7280;
    font-size: 15px;
    font-weight: 700;
    padding: 20px 12px;
}
.restaurant-tabs button.active {
    border-color: #17643a;
    color: #17643a;
}
.restaurant-tab-body {
    padding: 24px;
}
.restaurant-section-title {
    color: #111827;
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 12px;
}
.restaurant-copy {
    color: #4b5563;
    font-size: 15px;
    line-height: 1.75;
    margin-bottom: 26px;
}
.restaurant-contact-list {
    display: grid;
    gap: 12px;
    margin-bottom: 26px;
}
.restaurant-contact-item {
    align-items: center;
    background: #f8fafc;
    border-radius: 8px;
    display: flex;
    gap: 14px;
    padding: 14px;
}
.restaurant-icon-soft {
    align-items: center;
    background: #eaf8ed;
    border-radius: 8px;
    color: #17643a;
    display: flex;
    flex: 0 0 40px;
    height: 40px;
    justify-content: center;
    width: 40px;
}
.restaurant-contact-label,
.restaurant-muted {
    color: #8a94a6;
    font-size: 13px;
    line-height: 1.3;
}
.restaurant-contact-value {
    color: #111827;
    font-size: 15px;
    font-weight: 700;
    margin-top: 2px;
}
.restaurant-contact-value.green {
    color: #17643a;
}
.restaurant-hours-row {
    align-items: center;
    color: #667085;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}
.restaurant-hours-row strong {
    color: #059669;
    font-size: 16px;
}
.restaurant-map-box {
    align-items: center;
    background-color: #e8f7e8;
    background-image: linear-gradient(rgba(22, 100, 58, .09) 1px, transparent 1px), linear-gradient(90deg, rgba(22, 100, 58, .09) 1px, transparent 1px);
    background-size: 40px 40px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 190px;
    padding: 24px;
    text-align: center;
}
.restaurant-map-pin {
    align-items: center;
    background: #17643a;
    border-radius: 999px;
    box-shadow: 0 6px 16px rgba(22, 100, 58, .24);
    color: #fff;
    display: flex;
    height: 48px;
    justify-content: center;
    margin-bottom: 10px;
    width: 48px;
}
.restaurant-map-label {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 22px rgba(17, 24, 39, .09);
    color: #475467;
    display: inline-block;
    font-size: 13px;
    margin-bottom: 12px;
    padding: 10px 16px;
}
.restaurant-map-label strong {
    color: #344054;
    display: block;
    font-size: 15px;
}
.restaurant-main-cta {
    background: #17643a;
    color: #fff;
    font-size: 14px;
    padding: 13px 20px;
}
.restaurant-menu-section + .restaurant-menu-section {
    margin-top: 28px;
}
.restaurant-menu-heading {
    align-items: center;
    display: flex;
    font-size: 21px;
    font-weight: 800;
    gap: 14px;
    margin-bottom: 16px;
}
.restaurant-menu-heading::after {
    background: #eef0f2;
    content: "";
    flex: 1;
    height: 1px;
}
.restaurant-menu-list {
    display: grid;
    gap: 12px;
}
.restaurant-menu-item {
    align-items: center;
    background: #f8fafc;
    border-radius: 8px;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    padding: 18px;
}
.restaurant-menu-item h3 {
    font-size: 15px;
    font-weight: 800;
    margin: 0 0 5px;
}
.restaurant-menu-item p {
    color: #667085;
    font-size: 13px;
    margin: 0;
}
.restaurant-menu-price {
    color: #17643a;
    font-size: 15px;
    font-weight: 800;
    white-space: nowrap;
}
.restaurant-reviews-summary {
    align-items: center;
    display: grid;
    gap: 38px;
    grid-template-columns: 135px 1fr;
    margin: 8px 0 34px;
}
.restaurant-review-score {
    text-align: left;
}
.restaurant-review-score strong {
    color: #17643a;
    display: block;
    font-size: 58px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: .9;
}
.restaurant-review-score .restaurant-stars {
    display: block;
    font-size: 20px;
    margin: 8px 0 4px;
}
.restaurant-rating-breakdown {
    display: grid;
    gap: 12px;
}
.restaurant-rating-line {
    align-items: center;
    display: grid;
    gap: 10px;
    grid-template-columns: 24px 1fr 18px;
}
.restaurant-rating-line-label {
    color: #4b5563;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}
.restaurant-rating-line-label span {
    color: #f8b400;
}
.restaurant-rating-track {
    background: #f1f3f5;
    border-radius: 999px;
    height: 9px;
    overflow: hidden;
}
.restaurant-rating-fill {
    background: #f5a91a;
    border-radius: inherit;
    display: block;
    height: 100%;
}
.restaurant-rating-count {
    color: #98a2b3;
    font-size: 13px;
    text-align: right;
}
.restaurant-review-prompt {
    align-items: center;
    border: 1px solid #eceff3;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    margin-bottom: 28px;
    padding: 18px 18px;
}
.restaurant-review-prompt h3 {
    font-size: 16px;
    font-weight: 800;
    margin: 0 0 3px;
}
.restaurant-review-prompt p {
    color: #667085;
    font-size: 13px;
    margin: 0;
}
.restaurant-write-review {
    align-items: center;
    background: #17643a;
    border: 0;
    border-radius: 8px;
    color: #fff;
    display: inline-flex;
    font-size: 15px;
    font-weight: 700;
    gap: 10px;
    justify-content: center;
    min-width: 174px;
    padding: 15px 20px;
}
.restaurant-review-card {
    border-bottom: 1px solid #eef0f2;
    display: grid;
    gap: 14px;
    grid-template-columns: 42px 1fr;
    padding: 24px 0;
}
.restaurant-review-card:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}
.restaurant-review-avatar {
    align-items: center;
    background: #17643a;
    border-radius: 999px;
    color: #fff;
    display: flex;
    font-size: 13px;
    font-weight: 800;
    height: 42px;
    justify-content: center;
    width: 42px;
}
.restaurant-review-head {
    align-items: flex-start;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 14px;
}
.restaurant-review-head strong {
    color: #111827;
    display: block;
    font-size: 15px;
    line-height: 1.2;
    margin-bottom: 3px;
}
.restaurant-review-head .restaurant-stars {
    font-size: 15px;
    letter-spacing: 1px;
}
.restaurant-review-date {
    color: #98a2b3;
    font-size: 13px;
    white-space: nowrap;
}
.restaurant-review-card p {
    color: #4b5563;
    font-size: 15px;
    line-height: 1.65;
    margin: 0 0 12px;
}
.restaurant-review-actions {
    align-items: center;
    color: #98a2b3;
    display: flex;
    flex-wrap: wrap;
    font-size: 13px;
    gap: 18px;
}
.restaurant-review-actions span {
    align-items: center;
    display: inline-flex;
    gap: 6px;
}
.restaurant-side-stack {
    align-self: start;
    display: grid;
    gap: 20px;
}
.restaurant-side-card {
    padding: 22px;
}
.restaurant-side-card h2 {
    font-size: 16px;
    font-weight: 800;
    margin: 0 0 18px;
}
.restaurant-quick-item {
    align-items: center;
    display: flex;
    gap: 14px;
    margin-bottom: 22px;
}
.restaurant-quick-icon {
    align-items: center;
    border-radius: 999px;
    display: flex;
    flex: 0 0 42px;
    height: 42px;
    justify-content: center;
    width: 42px;
}
.restaurant-quick-icon.phone {
    background: #eaf8ed;
    color: #17643a;
}
.restaurant-quick-icon.location {
    background: #fff6e6;
    color: #f59f18;
}
.restaurant-halal-card {
    background: #14552f;
    border: 0;
    color: #d7f8df;
    overflow: hidden;
    position: relative;
}
.restaurant-halal-head {
    align-items: center;
    display: flex;
    gap: 12px;
    margin-bottom: 22px;
}
.restaurant-halal-head .restaurant-icon-soft {
    background: rgba(255, 255, 255, .16);
    color: #fff;
}
.restaurant-halal-head strong {
    color: #fff;
    display: block;
    font-size: 16px;
}
.restaurant-halal-row {
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    display: flex;
    justify-content: space-between;
    padding: 11px 0;
}
.restaurant-halal-value {
    color: #fff;
    font-weight: 700;
}
.restaurant-halal-value.negative {
    color: #ffb3a7;
}
.restaurant-dot {
    background: #10d5a0;
    border-radius: 999px;
    display: inline-block;
    height: 12px;
    margin-right: 6px;
    width: 12px;
}
.restaurant-dot.negative {
    background: transparent;
    color: #ff7b6f;
    height: auto;
    width: auto;
}
.restaurant-certified {
    color: #b7efc4;
    font-size: 12px;
    margin-top: 18px;
}
.restaurant-certified strong {
    color: #fff;
}
.restaurant-similar-row {
    align-items: center;
    color: inherit;
    display: grid;
    gap: 12px;
    grid-template-columns: 58px 1fr 18px;
    text-decoration: none;
}
.restaurant-similar-row img {
    border-radius: 8px;
    height: 58px;
    object-fit: cover;
    width: 58px;
}
.restaurant-similar-row h3 {
    font-size: 15px;
    font-weight: 800;
    margin: 0 0 4px;
}
.restaurant-report-link {
    color: #9aa4b2;
    display: block;
    font-size: 13px;
    text-align: center;
    text-decoration: none;
}
@media (max-width: 991px) {
    .restaurant-detail-grid {
grid-template-columns: 1fr;
    }
    .restaurant-hero-content {
align-items: flex-start;
flex-direction: column;
    }
}
@media (max-width: 575px) {
    .restaurant-detail-hero {
min-height: 520px;
    }
    .restaurant-gallery-stack {
right: 14px;
top: 84px;
    }
    .restaurant-summary-panel,
    .restaurant-menu-item,
    .restaurant-review-head,
    .restaurant-review-prompt {
align-items: flex-start;
flex-direction: column;
    }
    .restaurant-reviews-summary {
grid-template-columns: 1fr;
    }
    .restaurant-action-row {
width: 100%;
    }
    .restaurant-action-btn {
flex: 1;
    }
    .restaurant-tab-body {
padding: 20px 16px;
    }
}



/* Smooth client-side restaurant detail tabs */
[x-cloak] {
    display: none !important;
}

.restaurant-tabs {
    background: #fff;
    position: relative;
}

.restaurant-tabs button {
    cursor: pointer;
    position: relative;
    transition: color .18s ease, background-color .18s ease, transform .18s ease;
    will-change: color, background-color;
}

.restaurant-tabs button::after {
    background: #17643a;
    border-radius: 999px 999px 0 0;
    bottom: -1px;
    content: "";
    height: 3px;
    left: 24%;
    opacity: 0;
    position: absolute;
    right: 24%;
    transform: scaleX(.45);
    transform-origin: center;
    transition: opacity .2s ease, transform .22s ease;
}

.restaurant-tabs button:hover {
    background: #f8fafc;
    color: #17643a;
}

.restaurant-tabs button.active {
    background: #f7fbf8;
    border-color: transparent;
    color: #17643a;
}

.restaurant-tabs button.active::after {
    opacity: 1;
    transform: scaleX(1);
}

.restaurant-tab-body {
    min-height: 320px;
    overflow: hidden;
}

.restaurant-tab-panel {
    animation: restaurantTabPanelIn .26s ease both;
    transform-origin: top center;
    will-change: opacity, transform;
}

.restaurant-tab-panel .restaurant-contact-item,
.restaurant-tab-panel .restaurant-menu-section,
.restaurant-tab-panel .restaurant-menu-item,
.restaurant-tab-panel .restaurant-review-card,
.restaurant-tab-panel .restaurant-review-prompt,
.restaurant-tab-panel .restaurant-reviews-summary {
    animation: restaurantDetailItemIn .34s ease both;
}

.restaurant-tab-panel .restaurant-contact-item:nth-child(2),
.restaurant-tab-panel .restaurant-menu-item:nth-child(2),
.restaurant-tab-panel .restaurant-review-card:nth-child(2) {
    animation-delay: .035s;
}

.restaurant-tab-panel .restaurant-contact-item:nth-child(3),
.restaurant-tab-panel .restaurant-menu-item:nth-child(3),
.restaurant-tab-panel .restaurant-review-card:nth-child(3) {
    animation-delay: .07s;
}

.restaurant-tab-panel .restaurant-menu-item:nth-child(4),
.restaurant-tab-panel .restaurant-review-card:nth-child(4) {
    animation-delay: .105s;
}

.restaurant-menu-item,
.restaurant-review-card,
.restaurant-contact-item,
.restaurant-map-box {
    backface-visibility: hidden;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.restaurant-menu-item:hover,
.restaurant-contact-item:hover {
    background: #fff;
    box-shadow: 0 10px 24px rgba(17, 24, 39, .08);
    transform: translateY(-2px);
}

.restaurant-review-card:hover {
    transform: translateY(-1px);
}

@keyframes restaurantTabPanelIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes restaurantDetailItemIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .restaurant-tabs button,
    .restaurant-tabs button::after,
    .restaurant-tab-panel,
    .restaurant-tab-panel .restaurant-contact-item,
    .restaurant-tab-panel .restaurant-menu-section,
    .restaurant-tab-panel .restaurant-menu-item,
    .restaurant-tab-panel .restaurant-review-card,
    .restaurant-tab-panel .restaurant-review-prompt,
    .restaurant-tab-panel .restaurant-reviews-summary,
    .restaurant-menu-item,
    .restaurant-review-card,
    .restaurant-contact-item,
    .restaurant-map-box {
        animation: none !important;
        transition: none !important;
    }
}



/* Detail page loading feedback */
.restaurant-detail-loader {
    align-items: center;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(229, 231, 235, 0.95);
    border-radius: 999px;
    box-shadow: 0 14px 34px rgba(17, 24, 39, 0.14);
    color: #17643a;
    display: flex;
    font-size: 13px;
    font-weight: 800;
    gap: 9px;
    left: 50%;
    min-height: 42px;
    padding: 0 16px;
    pointer-events: none;
    position: fixed;
    top: 18px;
    transform: translateX(-50%);
    z-index: 1200;
}

.restaurant-detail-loader-spinner {
    animation: restaurantDetailLoaderSpin 0.75s linear infinite;
    border: 2px solid rgba(23, 100, 58, 0.18);
    border-top-color: #17643a;
    border-radius: 50%;
    height: 16px;
    width: 16px;
}

@keyframes restaurantDetailLoaderSpin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .restaurant-detail-loader-spinner {
        animation: none !important;
    }
}

/* ============================================
   UBER EATS-STYLE RESTAURANT ORDERING
   ============================================ */

/* Menu tab badge */
.restaurant-menu-tab-badge {
    align-items: center;
    background: #17643a;
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: 11px;
    font-weight: 700;
    height: 18px;
    justify-content: center;
    margin-left: 6px;
    min-width: 18px;
    padding: 0 4px;
}

/* Menu item card */
.restaurant-menu-item-card {
    align-items: flex-start;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    display: flex;
    gap: 16px;
    padding: 16px;
    transition: box-shadow .2s ease, border-color .2s ease;
}
.restaurant-menu-item-card:hover {
    border-color: #17643a;
    box-shadow: 0 2px 12px rgba(22, 100, 58, .1);
}
.restaurant-menu-item-image {
    border-radius: 8px;
    flex: 0 0 80px;
    height: 80px;
    object-fit: cover;
    width: 80px;
}
.restaurant-menu-item-info {
    flex: 1;
    min-width: 0;
}
.restaurant-menu-item-name {
    color: #111827;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 4px;
}
.restaurant-menu-item-desc {
    color: #6b7280;
    font-size: 13px;
    line-height: 1.5;
    margin: 0 0 10px;
}
.restaurant-menu-item-bottom {
    align-items: center;
    display: flex;
    justify-content: space-between;
}
.restaurant-menu-item-price {
    color: #17643a;
    font-size: 16px;
    font-weight: 700;
}

/* Add button */
.restaurant-add-btn {
    background: #17643a;
    border: none;
    border-radius: 999px;
    color: #fff;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .03em;
    line-height: 1;
    padding: 10px 18px;
    transition: transform .15s ease, background .15s ease;
}
.restaurant-add-btn:hover {
    background: #14552f;
    transform: scale(1.04);
}
.restaurant-add-btn:active {
    transform: scale(.96);
}

/* Quantity stepper */
.restaurant-qty-stepper {
    align-items: center;
    background: #f3f4f6;
    border-radius: 999px;
    display: inline-flex;
    gap: 0;
    overflow: hidden;
}
.restaurant-qty-stepper button {
    background: transparent;
    border: none;
    color: #17643a;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
    padding: 6px 14px;
    transition: background .15s ease;
}
.restaurant-qty-stepper button:hover {
    background: #e5e7eb;
}
.restaurant-qty-stepper button:disabled {
    opacity: .5;
    cursor: not-allowed;
}
.restaurant-qty-stepper span {
    font-size: 15px;
    font-weight: 700;
    min-width: 28px;
    text-align: center;
}
.restaurant-qty-stepper.sm button {
    font-size: 16px;
    padding: 4px 10px;
}
.restaurant-qty-stepper.sm span {
    font-size: 14px;
    min-width: 24px;
}

/* ============================================
   CART SIDEBAR PANEL
   ============================================ */
.restaurant-cart-panel {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,.06);
    padding: 20px;
}
.restaurant-cart-title {
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}
.restaurant-cart-items {
    display: grid;
    gap: 0;
}
.restaurant-cart-item-row {
    align-items: center;
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
}
.restaurant-cart-item-row:last-child {
    border-bottom: none;
}
.restaurant-cart-item-details {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}
.restaurant-cart-item-name {
    color: #111827;
    font-size: 14px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.restaurant-cart-item-price {
    color: #6b7280;
    font-size: 12px;
    margin-top: 2px;
}
.restaurant-cart-item-controls {
    align-items: center;
    display: flex;
    gap: 10px;
}
.restaurant-cart-item-total {
    color: #17643a;
    font-size: 14px;
    font-weight: 700;
    min-width: 64px;
    text-align: right;
}
.restaurant-cart-divider {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 12px 0;
}
.restaurant-cart-summary {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
}
.restaurant-cart-total-row {
    align-items: center;
    display: flex;
    font-size: 15px;
    font-weight: 700;
    justify-content: space-between;
}
.restaurant-cart-delivery {
    color: #6b7280;
    font-size: 13px;
    font-weight: 400;
}
.restaurant-cart-delivery span:last-child {
    font-size: 12px;
}
.restaurant-checkout-btn {
    align-items: center;
    background: #17643a;
    border: none;
    border-radius: 999px;
    color: #fff;
    cursor: pointer;
    display: flex;
    font-size: 15px;
    font-weight: 700;
    justify-content: center;
    line-height: 1;
    padding: 14px 20px;
    transition: background .15s ease, transform .15s ease;
    width: 100%;
}
.restaurant-checkout-btn:hover {
    background: #14552f;
    transform: translateY(-1px);
}
.restaurant-checkout-btn:active {
    transform: translateY(0);
}
.restaurant-checkout-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
}
.restaurant-cart-instructions {
    margin-top: 16px;
}
.restaurant-cart-instructions label {
    color: #6b7280;
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 6px;
}
.restaurant-cart-textarea {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
    padding: 10px 12px;
    resize: none;
    width: 100%;
}
.restaurant-cart-textarea:focus {
    border-color: #17643a;
    outline: none;
}
.restaurant-cart-empty {
    color: #9ca3af;
    font-size: 14px;
    padding: 32px 0;
    text-align: center;
}
.restaurant-cart-empty-icon {
    font-size: 32px;
    margin-bottom: 12px;
    opacity: .4;
}
.restaurant-cart-empty p {
    margin: 0 0 4px;
}
.restaurant-cart-empty-hint {
    font-size: 12px;
}

/* ============================================
   MOBILE BOTTOM CART BAR
   ============================================ */
.restaurant-mobile-cart-bar {
    background: #fff;
    border-top: 1px solid #e5e7eb;
    bottom: 0;
    box-shadow: 0 -4px 20px rgba(0,0,0,.08);
    display: none;
    left: 0;
    position: fixed;
    right: 0;
    z-index: 200;
}
.restaurant-mobile-cart-inner {
    align-items: center;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
}
.restaurant-mobile-cart-left {
    align-items: center;
    display: flex;
    gap: 8px;
}
.restaurant-mobile-cart-left ion-icon {
    color: #17643a;
    font-size: 20px;
}
.restaurant-mobile-cart-count {
    font-size: 14px;
    font-weight: 600;
}
.restaurant-mobile-cart-right {
    align-items: center;
    display: flex;
    gap: 12px;
}
.restaurant-mobile-cart-total {
    color: #17643a;
    font-size: 15px;
    font-weight: 700;
}
.restaurant-mobile-cart-arrow {
    color: #17643a;
    font-size: 13px;
    font-weight: 600;
}

/* Mobile cart drawer */
.restaurant-mobile-drawer {
    inset: 0;
    position: fixed;
    z-index: 300;
}
.restaurant-mobile-drawer-backdrop {
    background: rgba(0,0,0,.4);
    inset: 0;
    position: absolute;
}
.restaurant-mobile-drawer-content {
    background: #fff;
    border-radius: 16px 16px 0 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    left: 0;
    max-height: 80vh;
    position: absolute;
    right: 0;
}
.restaurant-mobile-drawer-header {
    align-items: center;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    padding: 16px 20px;
}
.restaurant-mobile-drawer-header h2 {
    font-size: 17px;
    font-weight: 800;
    margin: 0;
}
.restaurant-mobile-drawer-header button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 22px;
    padding: 4px;
}
.restaurant-mobile-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px 20px;
}
.restaurant-mobile-cart-row {
    border-bottom: 1px solid #f3f4f6;
    display: grid;
    gap: 8px;
    padding: 14px 0;
}
.restaurant-mobile-cart-row:last-child {
    border-bottom: none;
}
.restaurant-mobile-cart-row-info {
    display: flex;
    justify-content: space-between;
}
.restaurant-mobile-cart-row-name {
    font-size: 15px;
    font-weight: 600;
}
.restaurant-mobile-cart-row-price {
    color: #6b7280;
    font-size: 13px;
}
.restaurant-mobile-cart-row-controls {
    align-items: center;
    display: flex;
    justify-content: space-between;
}
.restaurant-mobile-cart-row-total {
    color: #17643a;
    font-size: 15px;
    font-weight: 700;
}
.restaurant-mobile-drawer-footer {
    border-top: 1px solid #e5e7eb;
    padding: 12px 20px 20px;
}
.restaurant-mobile-cart-subtotal {
    align-items: center;
    display: flex;
    font-size: 16px;
    font-weight: 700;
    justify-content: space-between;
    margin-bottom: 12px;
}

/* Drawer transitions */
.restaurant-drawer-enter {
    transition: opacity .25s ease;
}
.restaurant-drawer-enter-start {
    opacity: 0;
}
.restaurant-drawer-enter-end {
    opacity: 1;
}
.restaurant-drawer-leave {
    transition: opacity .2s ease;
}
.restaurant-drawer-leave-start {
    opacity: 1;
}
.restaurant-drawer-leave-end {
    opacity: 0;
}

/* ============================================
   RESPONSIVE — SHOW MOBILE BAR BELOW 992px
   ============================================ */
@media (max-width: 991px) {
    .restaurant-mobile-cart-bar {
        display: block;
    }
    .restaurant-detail-container {
        padding-bottom: 80px;
    }
}

@media (max-width: 575px) {
    .restaurant-menu-item-card {
        border-left: 0;
        border-radius: 0;
        border-right: 0;
        padding: 16px 0;
    }
    .restaurant-menu-list {
        gap: 0;
    }
    .restaurant-cart-panel {
        border-radius: 8px;
    }
}

/* ============================================
   CHECKOUT PAGE
   ============================================ */
.restaurant-checkout-shell {
    margin: 0 auto;
    max-width: 1120px;
    padding: 32px 22px 60px;
}
.restaurant-checkout-title {
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 28px;
}
.restaurant-checkout-grid {
    display: grid;
    gap: 32px;
    grid-template-columns: minmax(0, 1fr) 360px;
}
.restaurant-checkout-main {
    display: grid;
    gap: 24px;
}
.restaurant-checkout-section {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
}
.restaurant-checkout-section-title {
    font-size: 17px;
    font-weight: 800;
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}
.restaurant-address-list {
    display: grid;
    gap: 12px;
}
.restaurant-address-card {
    align-items: flex-start;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    gap: 12px;
    padding: 14px;
    transition: border-color .15s ease, background .15s ease;
}
.restaurant-address-card:hover {
    border-color: #17643a;
}
.restaurant-address-card.selected {
    background: #f0fdf4;
    border-color: #17643a;
}
.restaurant-address-card input[type="radio"] {
    accent-color: #17643a;
    margin-top: 3px;
}
.restaurant-address-card-body strong {
    display: block;
    font-size: 15px;
    margin-bottom: 4px;
}
.restaurant-address-card-body p {
    color: #6b7280;
    font-size: 13px;
    line-height: 1.5;
    margin: 0 0 4px;
}
.restaurant-address-phone {
    color: #17643a;
    font-size: 13px;
    font-weight: 600;
}
.restaurant-checkout-items {
    display: grid;
    gap: 4px;
}
.restaurant-checkout-item-row {
    align-items: center;
    display: flex;
    gap: 12px;
    padding: 8px 0;
}
.restaurant-checkout-item-qty {
    color: #17643a;
    font-weight: 700;
    min-width: 24px;
}
.restaurant-checkout-item-name {
    flex: 1;
    font-size: 14px;
}
.restaurant-checkout-item-price {
    color: #111827;
    font-size: 14px;
    font-weight: 600;
}
.restaurant-checkout-disclaimer {
    color: #9ca3af;
    font-size: 12px;
    margin-top: 12px;
    text-align: center;
}

@media (max-width: 991px) {
    .restaurant-checkout-grid {
        grid-template-columns: 1fr;
    }
}

/* Nav cart badge bump */
.cart-count-bump {
    animation: cartBump .4s ease;
}
@keyframes cartBump {
    0% { transform: scale(1); }
    40% { transform: scale(1.3); }
    70% { transform: scale(.9); }
    100% { transform: scale(1); }
}

