/* ── Restaurant Module – Public Page Styles ───────────────────────── */

/* Hero */
.rm-hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: #fff;
    padding: 80px 0;
    text-align: center;
}
.rm-hero h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}
.rm-hero p {
    font-size: 18px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}
.rm-hero-sm {
    padding: 50px 0;
}
.rm-hero-sm h1 {
    font-size: 32px;
}

/* Specials banner */
.rm-specials-banner {
    background: var(--color-bg-alt, #f8f9fa);
    padding: 32px 0;
    border-bottom: 1px solid var(--color-border, #e0e0e0);
}
.rm-specials-banner h2 {
    font-size: 22px;
    margin-bottom: 16px;
    color: var(--color-primary);
}
.rm-specials-row {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
}
.rm-special-card {
    background: #fff;
    border: 1px solid var(--color-border, #e0e0e0);
    border-radius: var(--radius, 8px);
    padding: 16px 20px;
    min-width: 240px;
    flex-shrink: 0;
    box-shadow: var(--shadow, 0 2px 8px rgba(0,0,0,0.08));
}
.rm-special-card h3 {
    font-size: 16px;
    color: var(--color-primary);
    margin-bottom: 6px;
}
.rm-special-card p {
    font-size: 14px;
    color: var(--color-text-light, #555);
    margin-bottom: 8px;
}
.rm-special-price {
    font-weight: 700;
    color: var(--color-accent);
    font-size: 18px;
}

/* Section navigation (category pills) */
.rm-section-nav {
    position: sticky;
    top: 64px;
    z-index: 100;
    background: #fff;
    border-bottom: 1px solid var(--color-border, #e0e0e0);
    padding: 12px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.rm-section-nav .container {
    display: flex;
    gap: 8px;
    white-space: nowrap;
}
.rm-section-pill {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 20px;
    border: 1px solid var(--color-border, #e0e0e0);
    color: var(--color-text, #1a1a2e);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
}
.rm-section-pill:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

/* Category sections */
.rm-category-section {
    padding: 48px 0;
}
.rm-category-section:nth-child(even) {
    background: var(--color-bg-alt, #f8f9fa);
}
.rm-category-section h2 {
    font-size: 28px;
    margin-bottom: 8px;
    color: var(--color-text);
}
.rm-cat-desc {
    font-size: 15px;
    color: var(--color-text-light, #555);
    margin-bottom: 24px;
    max-width: 700px;
}

/* Menu grid */
.rm-menu-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
}

/* Item cards */
.rm-item-card {
    display: flex;
    background: #fff;
    border: 1px solid var(--color-border, #e0e0e0);
    border-radius: var(--radius, 8px);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: var(--shadow, 0 2px 8px rgba(0,0,0,0.08));
}
.rm-item-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg, 0 4px 24px rgba(0,0,0,0.12));
}
.rm-item-card.rm-featured {
    border-color: var(--color-accent);
    border-width: 2px;
    position: relative;
}
.rm-item-card.rm-featured::before {
    content: "Featured";
    position: absolute;
    top: 0;
    right: 0;
    background: var(--color-accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 0 0 0 var(--radius, 8px);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 1;
}
.rm-item-img {
    width: 160px;
    height: 160px;
    object-fit: cover;
    flex-shrink: 0;
}
.rm-item-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.rm-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 6px;
}
.rm-item-name {
    font-size: 17px;
    font-weight: 600;
    color: var(--color-text);
    text-decoration: none;
    line-height: 1.3;
}
.rm-item-name:hover {
    color: var(--color-primary);
}
.rm-item-price {
    font-size: 17px;
    font-weight: 700;
    color: var(--color-accent);
    white-space: nowrap;
    flex-shrink: 0;
}
.rm-item-desc {
    font-size: 14px;
    color: var(--color-text-light, #555);
    line-height: 1.5;
    margin-bottom: 8px;
    flex: 1;
}
.rm-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

/* Dietary badges */
.rm-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.6;
}
.rm-spicy {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}
.rm-vegan {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}
.rm-veg {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}
.rm-gf {
    background: #fefce8;
    color: #a16207;
    border: 1px solid #fef08a;
}
.rm-allergen {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fed7aa;
}

/* Ratings */
.rm-item-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    margin-bottom: 8px;
}
.rm-stars {
    color: #f59e0b;
    letter-spacing: 1px;
}
.rm-rating-count {
    color: var(--color-text-light, #555);
    font-size: 12px;
}

/* Order button (in card) */
.rm-order-btn.btn-sm {
    padding: 6px 16px;
    font-size: 13px;
    min-height: 32px;
    align-self: flex-start;
}

/* CTA */
.rm-cta {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: #fff;
    padding: 64px 0;
}
.rm-cta h2 {
    font-size: 32px;
    margin-bottom: 12px;
    color: #fff;
}
.rm-cta p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 32px;
}
.rm-cta .btn-primary {
    background: #fff;
    color: var(--color-primary);
}

/* ── Breadcrumb ── */
.rm-breadcrumb {
    padding: 12px 0;
    font-size: 13px;
    color: var(--color-text-light, #555);
    background: var(--color-bg-alt, #f8f9fa);
    border-bottom: 1px solid var(--color-border, #e0e0e0);
}
.rm-breadcrumb a {
    color: var(--color-primary);
    text-decoration: none;
}
.rm-breadcrumb a:hover {
    text-decoration: underline;
}

/* ── Item detail page ── */
.rm-item-detail {
    padding: 40px 0;
}
.rm-detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}
.rm-detail-image img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: var(--radius, 8px);
    box-shadow: var(--shadow-lg, 0 4px 24px rgba(0,0,0,0.12));
}
.rm-detail-info h1 {
    font-size: 32px;
    margin-bottom: 8px;
}
.rm-detail-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 12px;
}
.rm-detail-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 15px;
}
.rm-detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}
.rm-detail-desc {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 16px;
    color: var(--color-text);
}
.rm-detail-calories {
    font-size: 14px;
    color: var(--color-text-light, #555);
    margin-bottom: 16px;
}
.rm-detail-ingredients {
    margin-bottom: 20px;
}
.rm-detail-ingredients h3 {
    font-size: 16px;
    margin-bottom: 6px;
}
.rm-detail-ingredients p {
    font-size: 14px;
    color: var(--color-text-light, #555);
}

/* Modifier groups */
.rm-modifiers {
    margin: 20px 0;
    border-top: 1px solid var(--color-border, #e0e0e0);
    padding-top: 20px;
}
.rm-modifier-group {
    margin-bottom: 20px;
}
.rm-modifier-group h3 {
    font-size: 16px;
    margin-bottom: 10px;
}
.rm-required {
    font-size: 11px;
    color: #dc2626;
    font-weight: 600;
    text-transform: uppercase;
}
.rm-modifier-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid var(--color-border, #e0e0e0);
    border-radius: var(--radius, 8px);
    margin-bottom: 6px;
    cursor: pointer;
    transition: background 0.15s;
    font-size: 14px;
}
.rm-modifier-option:hover {
    background: var(--color-bg-alt, #f8f9fa);
}
.rm-modifier-option input {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}
.rm-mod-price {
    font-size: 12px;
    color: var(--color-text-light, #555);
}

/* ── Reviews section ── */
.rm-reviews-section {
    padding: 48px 0;
    background: var(--color-bg-alt, #f8f9fa);
}
.rm-reviews-section h2 {
    font-size: 24px;
    margin-bottom: 20px;
}
.rm-no-reviews {
    color: var(--color-text-light, #555);
    font-size: 15px;
    margin-bottom: 24px;
}
.rm-reviews-list {
    display: grid;
    gap: 16px;
    margin-bottom: 32px;
}
.rm-review-card {
    background: #fff;
    border: 1px solid var(--color-border, #e0e0e0);
    border-radius: var(--radius, 8px);
    padding: 16px 20px;
}
.rm-review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.rm-review-name {
    font-weight: 600;
    font-size: 15px;
}
.rm-review-text {
    font-size: 14px;
    color: var(--color-text-light, #555);
    line-height: 1.6;
}

/* Review form */
.rm-review-form {
    background: #fff;
    border: 1px solid var(--color-border, #e0e0e0);
    border-radius: var(--radius, 8px);
    padding: 24px;
    max-width: 600px;
}
.rm-review-form h3 {
    font-size: 18px;
    margin-bottom: 16px;
}
.rm-star-input {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
}
.rm-star-input span {
    font-size: 28px;
    cursor: pointer;
    color: #d1d5db;
    transition: color 0.15s;
    user-select: none;
}
.rm-star-input span.active,
.rm-star-input span:hover {
    color: #f59e0b;
}

/* ── Reservation page ── */
.rm-reservation-section {
    padding: 48px 0;
}
.rm-reservation-section .container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}
.rm-reservation-form-wrap {
    background: #fff;
    border: 1px solid var(--color-border, #e0e0e0);
    border-radius: var(--radius, 8px);
    padding: 32px;
    box-shadow: var(--shadow, 0 2px 8px rgba(0,0,0,0.08));
}
.rm-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.rm-reservation-info {
    padding: 0 8px;
}
.rm-reservation-info h3 {
    font-size: 20px;
    margin-bottom: 16px;
    color: var(--color-primary);
}
.rm-reservation-info ul {
    list-style: none;
    padding: 0;
    margin-bottom: 24px;
}
.rm-reservation-info li {
    padding: 8px 0;
    font-size: 14px;
    color: var(--color-text-light, #555);
    border-bottom: 1px solid var(--color-border, #e0e0e0);
    padding-left: 20px;
    position: relative;
}
.rm-reservation-info li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: 700;
}
.rm-res-address {
    margin-bottom: 20px;
}
.rm-res-address h4 {
    font-size: 15px;
    margin-bottom: 4px;
}
.rm-res-contact {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--color-border, #e0e0e0);
}
.rm-res-contact a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
}
.rm-slot-loading {
    font-size: 13px;
    color: var(--color-primary);
    margin-top: 6px;
}

/* ── Cart page ── */
.rm-cart-section {
    padding: 48px 0;
    min-height: 60vh;
}
.rm-cart-section h1 {
    font-size: 28px;
    margin-bottom: 24px;
}
.rm-cart-empty {
    text-align: center;
    padding: 60px 0;
}
.rm-cart-empty p {
    font-size: 16px;
    color: var(--color-text-light, #555);
    margin-bottom: 16px;
}
.rm-cart-items {
    margin-bottom: 24px;
}
.rm-cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border: 1px solid var(--color-border, #e0e0e0);
    border-radius: var(--radius, 8px);
    margin-bottom: 8px;
    background: #fff;
}
.rm-cart-item-info {
    flex: 1;
}
.rm-cart-item-name {
    font-weight: 600;
    font-size: 15px;
}
.rm-cart-item-mods {
    font-size: 12px;
    color: var(--color-text-light, #555);
    margin-top: 2px;
}
.rm-cart-item-qty {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 16px;
}
.rm-cart-item-qty button {
    width: 28px;
    height: 28px;
    border: 1px solid var(--color-border, #e0e0e0);
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.rm-cart-item-qty button:hover {
    background: var(--color-bg-alt, #f8f9fa);
}
.rm-cart-item-price {
    font-weight: 700;
    font-size: 16px;
    color: var(--color-accent);
    white-space: nowrap;
}
.rm-cart-item-remove {
    background: none;
    border: none;
    color: #dc2626;
    cursor: pointer;
    font-size: 18px;
    padding: 4px 8px;
    margin-left: 12px;
}
.rm-cart-summary {
    background: var(--color-bg-alt, #f8f9fa);
    border-radius: var(--radius, 8px);
    padding: 20px 24px;
    margin-bottom: 24px;
}
.rm-cart-line {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 15px;
}
.rm-cart-total {
    font-weight: 700;
    font-size: 18px;
    border-top: 2px solid var(--color-border, #e0e0e0);
    padding-top: 12px;
    margin-top: 4px;
}
.rm-cart-guest-info {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border, #e0e0e0);
}
.rm-cart-guest-info h3 {
    font-size: 18px;
    margin-bottom: 16px;
}

/* ── Order success page ── */
.rm-success-section {
    min-height: 60vh;
    display: flex;
    align-items: center;
}
.rm-success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #22c55e;
    color: #fff;
    font-size: 40px;
    line-height: 80px;
    text-align: center;
    margin: 0 auto 24px;
}
.rm-success-section h1 {
    font-size: 32px;
    margin-bottom: 12px;
}
.rm-success-msg {
    font-size: 16px;
    color: var(--color-text-light, #555);
    margin-bottom: 32px;
}
.rm-success-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Restaurant Homepage (rh-*) ── */

.rh-hero-ctas {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 24px;
    flex-wrap: wrap;
}
.rh-btn-reserve {
    border-color: #fff;
    color: #fff;
}
.rh-btn-reserve:hover {
    background: rgba(255,255,255,0.15);
}

/* Section title shared style */
.rh-section-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 32px;
    color: var(--color-text, #1a1a2e);
}

/* Featured items grid */
.rh-featured {
    padding: 64px 0;
}
.rh-featured-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
.rh-featured-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--color-border, #e0e0e0);
    border-radius: var(--radius, 8px);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: var(--shadow, 0 2px 8px rgba(0,0,0,0.08));
}
.rh-featured-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg, 0 4px 24px rgba(0,0,0,0.12));
}
.rh-item-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.rh-featured-body {
    padding: 16px 20px;
}
.rh-featured-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 6px;
}
.rh-featured-name {
    font-size: 17px;
    font-weight: 600;
    color: var(--color-text, #1a1a2e);
}
.rh-featured-price {
    font-size: 17px;
    font-weight: 700;
    color: var(--color-accent, #e63946);
    white-space: nowrap;
}
.rh-featured-desc {
    font-size: 14px;
    color: var(--color-text-light, #555);
    line-height: 1.5;
    margin-bottom: 8px;
}
.rh-featured-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.rh-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    background: var(--color-bg-alt, #f8f9fa);
    border: 1px solid var(--color-border, #e0e0e0);
}
.rh-badge-spicy {
    background: #fef2f2;
    border-color: #fecaca;
}
.rh-see-all {
    text-align: center;
    margin-top: 32px;
}

/* Category grid */
.rh-categories {
    padding: 64px 0;
}
.rh-cat-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
.rh-cat-card {
    display: block;
    background: #fff;
    border: 1px solid var(--color-border, #e0e0e0);
    border-radius: var(--radius, 8px);
    padding: 20px 24px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: var(--shadow, 0 2px 8px rgba(0,0,0,0.08));
}
.rh-cat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg, 0 4px 24px rgba(0,0,0,0.12));
    border-color: var(--color-primary);
}
.rh-cat-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--color-text, #1a1a2e);
}
.rh-cat-desc {
    font-size: 14px;
    color: var(--color-text-light, #555);
    margin-bottom: 8px;
    line-height: 1.4;
}
.rh-cat-count {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* About section */
.rh-about {
    padding: 64px 0;
}
.rh-about-text {
    font-size: 16px;
    color: var(--color-text-light, #555);
    text-align: center;
    line-height: 1.8;
}

/* Hours & Location */
.rh-hours-location {
    padding: 64px 0;
}
.rh-hl-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}
.rh-hours h3,
.rh-location h3 {
    font-size: 20px;
    margin-bottom: 16px;
    color: var(--color-text, #1a1a2e);
}
.rh-hours-table {
    width: 100%;
    border-collapse: collapse;
}
.rh-hours-table tr {
    border-bottom: 1px solid var(--color-border, #e0e0e0);
}
.rh-hours-table td {
    padding: 10px 0;
    font-size: 15px;
}
.rh-hours-day {
    font-weight: 600;
    color: var(--color-text, #1a1a2e);
    width: 40%;
}
.rh-hours-time {
    color: var(--color-text-light, #555);
}
.rh-loc-item {
    font-size: 15px;
    margin-bottom: 12px;
    color: var(--color-text, #1a1a2e);
}
.rh-loc-item a {
    color: var(--color-primary);
    text-decoration: none;
}
.rh-loc-item a:hover {
    text-decoration: underline;
}

/* CTA section */
.rh-cta {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: #fff;
    padding: 64px 0;
    text-align: center;
}
.rh-cta h2 {
    font-size: 32px;
    margin-bottom: 12px;
    color: #fff;
}
.rh-cta p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 32px;
}
.rh-cta-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.rh-btn-cta-reserve {
    background: #fff;
    color: var(--color-primary);
}
.rh-btn-cta-call {
    border-color: #fff;
    color: #fff;
}

/* ── Responsive ── */
@media (min-width: 600px) {
    .rh-featured-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .rh-cat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .rh-hl-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (min-width: 900px) {
    .rh-featured-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .rh-cat-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 599px) {
    .rh-featured { padding: 40px 0; }
    .rh-categories { padding: 40px 0; }
    .rh-about { padding: 40px 0; }
    .rh-hours-location { padding: 40px 0; }
    .rh-cta { padding: 40px 0; }
    .rh-section-title { font-size: 22px; }
}

/* ── Existing Responsive ── */
@media (min-width: 600px) {
    .rm-menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 768px) {
    .rm-detail-grid {
        grid-template-columns: 1fr 1fr;
    }
    .rm-reservation-section .container {
        grid-template-columns: 1.2fr 0.8fr;
    }
}
@media (min-width: 1024px) {
    .rm-menu-grid {
        grid-template-columns: 1fr;
    }
    .rm-item-card {
        flex-direction: row;
    }
    .rm-hero h1 {
        font-size: 48px;
    }
}
@media (max-width: 599px) {
    .rm-item-card {
        flex-direction: column;
    }
    .rm-item-img {
        width: 100%;
        height: 180px;
    }
    .rm-form-row {
        grid-template-columns: 1fr;
    }
    .rm-hero h1 {
        font-size: 28px;
    }
    .rm-hero p {
        font-size: 15px;
    }
    .rm-section-nav {
        top: 0;
    }
}
