:root {
    --bg-main: #F6F6F6;
    --bg-card: #FFFFFF;
    --text-primary: #1C1C1C;
    --text-secondary: #686B78;
    --accent: #E23744;
    --accent-soft: #FFF1F2;
    --veg-green: #0F8A65;
    --nonveg-red: #E43B4F;
    --wa-green: #25D366;
    --border-light: #E8E8E8;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --radius-md: 14px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    padding-bottom: 95px;
    line-height: 1.45;
}

/* Top Info & Utility Strip */
.top-strip {
    background: #1C1C1C;
    color: #E5E5E5;
    font-size: 0.75rem;
    padding: 7px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-strip i.fa-circle-check {
    color: #25D366;
    margin-right: 4px;
}

.top-actions {
    display: flex;
    gap: 8px;
}

.strip-btn {
    background: rgba(255,255,255,0.12);
    color: #FFFFFF;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.strip-btn.bell-btn {
    background: #E23744;
    border-color: #E23744;
}

/* App Header */
.app-header {
    background: var(--bg-card);
    padding: 16px;
    border-bottom: 1px solid var(--border-light);
}

.header-inner {
    max-width: 760px;
    margin: 0 auto;
}

.brand-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.brand-logo {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: linear-gradient(135deg, #E23744, #B81D29);
    color: #FFFFFF;
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.brand-text h1 {
    font-size: 1.3rem;
    font-weight: 700;
}

.brand-text .subtitle {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.meta-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pill {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 8px;
    background: var(--bg-main);
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.pill.rating {
    background: #E8F8F0;
    color: var(--veg-green);
}

.pill.status-pill {
    background: #FEF3C7;
    color: #B45309;
    border: 1px solid #F59E0B;
    cursor: pointer;
}

.pill.status-pill.hidden {
    display: none;
}

/* Controls Bar */
.controls-bar {
    background: var(--bg-card);
    padding: 12px 16px;
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--bg-main);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 0 14px;
}

.search-box i {
    color: var(--text-secondary);
}

.search-box input {
    width: 100%;
    border: none;
    background: transparent;
    padding: 10px;
    font-size: 0.88rem;
    outline: none;
}

.clear-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
}

.clear-btn.hidden {
    display: none;
}

.diet-toggles {
    display: flex;
    gap: 8px;
}

.diet-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.diet-btn.active {
    border-color: var(--text-primary);
    background: var(--text-primary);
    color: #FFFFFF;
}

.diet-btn.veg.active {
    background: #E8F8F0;
    border-color: var(--veg-green);
    color: var(--veg-green);
}

.diet-btn.nonveg.active {
    background: #FFF1F2;
    border-color: var(--nonveg-red);
    color: var(--nonveg-red);
}

/* FSSAI Icons */
.fssai-icon {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.veg-icon {
    border: 1.5px solid var(--veg-green);
}

.veg-icon span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--veg-green);
}

.nonveg-icon {
    border: 1.5px solid var(--nonveg-red);
}

.nonveg-icon span {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 7px solid var(--nonveg-red);
}

/* Category Tabs */
.category-tabs {
    position: sticky;
    top: 0;
    z-index: 90;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-light);
    padding: 10px 16px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
}

.category-tabs::-webkit-scrollbar {
    display: none;
}

.tab-item {
    background: var(--bg-main);
    border: 1px solid transparent;
    padding: 7px 14px;
    border-radius: 10px;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
}

.tab-item.active {
    background: var(--accent-soft);
    color: var(--accent);
    border-color: rgba(226, 55, 68, 0.3);
}

/* Menu Feed */
.menu-wrapper {
    max-width: 760px;
    margin: 16px auto;
    padding: 0 16px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.section-header h2 {
    font-size: 1.1rem;
    font-weight: 700;
}

.section-header span {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.menu-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.dish-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 14px;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    box-shadow: var(--shadow-sm);
}

.dish-info {
    flex: 1;
}

.dish-badges {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.bestseller-tag {
    background: #FFF4E5;
    color: #D97706;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 5px;
}

.dish-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.dish-price {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.dish-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dish-media {
    width: 116px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dish-img {
    width: 116px;
    height: 102px;
    border-radius: 12px;
    object-fit: cover;
    background: #EAEAEA;
}

.add-control {
    margin-top: -16px;
    z-index: 2;
    width: 92px;
    height: 34px;
    background: #FFFFFF;
    border: 1px solid #D4D5D9;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.add-initial-btn {
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    color: var(--veg-green);
    font-weight: 700;
    font-size: 0.86rem;
    cursor: pointer;
}

.stepper-box {
    width: 100%;
    height: 100%;
    background: var(--veg-green);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
    font-weight: 700;
}

.stepper-box button {
    background: none;
    border: none;
    color: #FFFFFF;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    padding: 2px 6px;
}

/* Customer Ratings & Google Review Section */
.reviews-wrapper {
    max-width: 760px;
    margin: 22px auto 12px;
    padding: 0 16px;
}

.reviews-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 16px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
}

.reviews-header h3 {
    font-size: 1.05rem;
    font-weight: 700;
}

.reviews-sub {
    font-size: 0.78rem;
    color: var(--veg-green);
    font-weight: 600;
}

.google-rate-btn {
    background: #EFF6FF;
    color: #1D4ED8;
    border: 1px solid #BFDBFE;
    text-decoration: none;
    padding: 7px 12px;
    border-radius: 9px;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.reviews-feed {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
}

.review-item {
    background: var(--bg-main);
    padding: 10px 12px;
    border-radius: 10px;
}

.review-top {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 3px;
}

.review-stars {
    color: #F59E0B;
}

.review-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.quick-feedback-box {
    border-top: 1px dashed var(--border-light);
    padding-top: 12px;
}

.quick-feedback-box h4 {
    font-size: 0.86rem;
    margin-bottom: 8px;
}

.star-picker {
    display: flex;
    gap: 8px;
    font-size: 1.25rem;
    color: #D1D5DB;
    margin-bottom: 10px;
    cursor: pointer;
}

.star-picker i.active {
    color: #F59E0B;
}

.feedback-inputs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.feedback-inputs input {
    flex: 1;
    min-width: 140px;
    padding: 9px 11px;
    border: 1px solid var(--border-light);
    border-radius: 9px;
    font-size: 0.84rem;
    outline: none;
}

.submit-review-btn {
    background: var(--text-primary);
    color: #FFFFFF;
    border: none;
    padding: 9px 16px;
    border-radius: 9px;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
}

/* Footer */
.store-footer {
    max-width: 760px;
    margin: 14px auto 10px;
    padding: 0 16px;
}

.footer-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 16px;
    border: 1px solid var(--border-light);
}

.footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.footer-row h4 {
    font-size: 0.95rem;
}

.footer-row p {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.call-btn {
    background: var(--bg-main);
    color: var(--text-primary);
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 700;
}

.footer-divider {
    height: 1px;
    background: var(--border-light);
    margin: 12px 0;
}

.powered-by {
    text-align: center;
    font-size: 0.74rem;
    color: var(--text-secondary);
}

/* Bottom Cart Bar */
.bottom-cart-bar {
    position: fixed;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 28px);
    max-width: 730px;
    background: var(--veg-green);
    color: #FFFFFF;
    padding: 12px 18px;
    border-radius: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 25px rgba(15, 138, 101, 0.35);
    z-index: 150;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.bottom-cart-bar.hidden {
    transform: translate(-50%, 130%);
    opacity: 0;
    pointer-events: none;
}

.cart-qty-badge {
    font-size: 0.72rem;
    font-weight: 700;
    opacity: 0.9;
}

.cart-price-block {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.bar-total {
    font-size: 1.1rem;
    font-weight: 700;
}

.bar-tax-note {
    font-size: 0.7rem;
    opacity: 0.85;
}

.checkout-trigger-btn {
    background: #FFFFFF;
    color: var(--veg-green);
    border: none;
    padding: 9px 16px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Order Drawer */
.drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    z-index: 1000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.drawer-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.order-drawer {
    background: var(--bg-main);
    width: 100%;
    max-width: 640px;
    max-height: 92vh;
    border-top-left-radius: 22px;
    border-top-right-radius: 22px;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.drawer-backdrop.open .order-drawer {
    transform: translateY(0);
}

.drawer-drag-handle {
    width: 40px;
    height: 4px;
    background: #CCCCCC;
    border-radius: 4px;
    margin: 10px auto 0;
}

.drawer-header {
    background: var(--bg-card);
    padding: 12px 18px 14px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top-left-radius: 22px;
    border-top-right-radius: 22px;
}

.close-drawer-btn {
    background: var(--bg-main);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
}

.drawer-body {
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.order-type-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.type-btn {
    background: var(--bg-card);
    border: 1.5px solid var(--border-light);
    padding: 10px 6px;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.type-btn.active {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent);
}

.cart-items-container {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cart-line-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.cart-line-left {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.cart-line-name {
    font-size: 0.9rem;
    font-weight: 600;
}

.cart-line-unit {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.cart-line-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mini-stepper {
    display: flex;
    align-items: center;
    border: 1px solid var(--veg-green);
    border-radius: 7px;
}

.mini-stepper button {
    background: #E8F8F0;
    border: none;
    color: var(--veg-green);
    font-weight: 700;
    width: 25px;
    height: 25px;
    cursor: pointer;
}

.mini-stepper span {
    padding: 0 8px;
    font-size: 0.84rem;
    font-weight: 700;
}

.line-subtotal {
    font-size: 0.9rem;
    font-weight: 700;
    min-width: 50px;
    text-align: right;
}

/* Promo Code Box */
.promo-box {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 12px 14px;
}

.promo-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.promo-input-row i {
    color: var(--accent);
}

.promo-input-row input {
    flex: 1;
    border: 1px solid var(--border-light);
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 0.84rem;
    text-transform: uppercase;
    outline: none;
}

.promo-input-row button {
    background: var(--text-primary);
    color: #FFFFFF;
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
}

.promo-msg {
    font-size: 0.76rem;
    margin-top: 6px;
    font-weight: 600;
    color: var(--veg-green);
}

.promo-msg.error {
    color: var(--nonveg-red);
}

.promo-msg.hidden {
    display: none;
}

/* Order Form */
.order-form {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-group label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.form-group input {
    padding: 10px 12px;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    font-size: 0.88rem;
    outline: none;
}

/* Bill Box */
.bill-box {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bill-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.84rem;
    color: var(--text-secondary);
}

.discount-row {
    color: var(--veg-green);
    font-weight: 700;
}

.discount-row.hidden {
    display: none;
}

.bill-row.grand-total {
    border-top: 1px dashed var(--border-light);
    padding-top: 8px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* UPI Payment Box */
.upi-payment-box {
    background: #FFFFFF;
    border: 1.5px solid #DBEAFE;
    border-radius: var(--radius-md);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.upi-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    color: #1E3A8A;
}

.upi-subtext {
    font-size: 0.76rem;
    color: var(--text-secondary);
}

.upi-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.upi-app-btn {
    background: #2563EB;
    color: #FFFFFF;
    text-decoration: none;
    padding: 11px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.show-qr-btn {
    background: #F1F5F9;
    color: #334155;
    border: 1px solid #CBD5E1;
    padding: 9px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.82rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.dynamic-qr-container {
    text-align: center;
    padding-top: 8px;
    border-top: 1px dashed #E2E8F0;
}

.dynamic-qr-container.hidden {
    display: none;
}

.dynamic-qr-container img {
    width: 160px;
    height: 160px;
    border-radius: 10px;
    border: 1px solid #E2E8F0;
    padding: 6px;
}

.dynamic-qr-container p {
    font-size: 0.74rem;
    color: var(--text-secondary);
    margin-top: 6px;
}

.paid-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
}

.drawer-footer {
    background: var(--bg-card);
    padding: 14px 16px;
    border-top: 1px solid var(--border-light);
}

.wa-submit-btn {
    width: 100%;
    background: var(--wa-green);
    color: #FFFFFF;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Modals (Waiter Bell & Order Tracker) */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.modal-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.mini-modal {
    background: #FFFFFF;
    width: 100%;
    max-width: 420px;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.mini-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.close-mini-btn {
    background: var(--bg-main);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
}

.mini-modal-sub {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.mini-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    margin-bottom: 12px;
    font-size: 0.88rem;
}

.bell-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.bell-opt-btn {
    background: var(--bg-main);
    border: 1px solid var(--border-light);
    padding: 12px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.bell-opt-btn:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent);
}

/* Order Tracker Steps */
.tracker-meta {
    background: #E8F8F0;
    color: var(--veg-green);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 7px 12px;
    border-radius: 8px;
    margin-bottom: 14px;
}

.tracker-steps {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.t-step {
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0.45;
}

.t-step.done, .t-step.active {
    opacity: 1;
}

.t-dot {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #E5E7EB;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.t-step.done .t-dot {
    background: var(--veg-green);
    color: #FFFFFF;
}

.t-step.active .t-dot {
    background: #F59E0B;
    color: #FFFFFF;
}

.t-step p {
    font-size: 0.76rem;
    color: var(--text-secondary);
}
