:root {
    --bg-color: #8c1020;
    --text-main: #ffffff;
    --accent-gold: #f4c754;
    --divider: rgba(255, 255, 255, 0.2);
    --font-main: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-main);
    margin: 0;
    padding: 40px 20px;
    background-image: radial-gradient(circle at 50% 0%, #a21829 0%, #760917 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 60px;
}

h1.logo {
    font-size: 4rem;
    color: var(--accent-gold);
    font-weight: 800;
    margin: 0 0 10px 0;
    letter-spacing: 1px;
}

.tagline {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    line-height: 1.5;
    max-width: 640px;
    margin: 0 auto;
}

.lang-toggle {
    display: inline-flex;
    margin-top: 18px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    padding: 4px;
    gap: 4px;
}

.lang-toggle-btn {
    border: none;
    background: none;
    font-family: var(--font-main);
    font-size: 0.8rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.75);
    padding: 7px 18px;
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.lang-toggle-btn[aria-pressed="true"] {
    background: var(--accent-gold);
    color: var(--bg-color);
}

.layout-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    gap: 60px;
}

@media (max-width: 900px) {
    .layout-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
    }
    h1.logo {
        font-size: 2.8rem;
    }
    .tagline {
        font-size: 0.75rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .laddu-table td {
        font-size: 0.95rem;
        padding: 12px 5px;
    }
    body {
        padding: 20px 15px;
    }
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

section {
    margin-bottom: 50px;
}

.section-title {
    color: var(--accent-gold);
    font-size: 2.2rem;
    border-bottom: 2px solid var(--accent-gold);
    padding-bottom: 10px;
    margin-bottom: 20px;
    display: inline-block;
}

.subtitle {
    font-size: 0.85rem;
    font-weight: 300;
    margin-bottom: 20px;
    opacity: 0.9;
}

.item-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--divider);
    font-size: 1.1rem;
    font-weight: 600;
}

.item:last-child {
    border-bottom: none;
}

.item-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding-right: 15px;
}

.item-desc {
    display: block;
    font-size: 0.8rem;
    font-weight: 300;
    opacity: 0.85;
    margin-top: 4px;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.9);
    white-space: normal;
}

.item-weight {
    margin-top: 2px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-gold);
}

.item-badge {
    align-self: flex-start;
    margin-top: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: #5a1018;
    background: var(--accent-gold);
}

.item-badge-bestseller {
    color: var(--accent-gold);
    background: #5a1018;
    border: 1px solid var(--accent-gold);
}

.item-price {
    font-weight: 800;
    min-width: 60px;
    text-align: right;
}

.item-name-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
}

.item-img {
    display: block;
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
    cursor: zoom-in;
}

.item-name-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* Mobile quick-nav FAB */
.nav-fab {
    display: none;
}

.nav-fab-menu {
    display: none;
}

/* Table specifically for Laddus */
.laddu-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.laddu-table th {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-gold);
    text-align: right;
    padding: 10px 5px;
    font-weight: 600;
    width: 16%;
}

.laddu-table th.header-name {
    text-align: left;
    width: 40%;
}

.laddu-table td {
    padding: 15px 5px;
    border-bottom: 1px solid var(--divider);
    font-size: 1.1rem;
    font-weight: 600;
    text-align: right;
    white-space: nowrap;
}

.laddu-table td.item-name {
    text-align: left;
    white-space: normal;
}

.laddu-table tr:last-child td {
    border-bottom: none;
}

/* Selectable price cells: the td is the hit target, the pill is the button look */
.laddu-table td.selectable {
    position: relative;
    cursor: pointer;
}

.price-pill {
    display: inline-block;
    position: relative;
    min-width: 56px;
    padding: 10px 14px;
    border: 1px solid rgba(244, 199, 84, 0.35);
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.06);
    text-align: center;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

@media (hover: hover) and (pointer: fine) {
    .laddu-table td.selectable:hover .price-pill {
        background-color: rgba(244, 199, 84, 0.16);
        border-color: var(--accent-gold);
    }
}

.laddu-table td.selectable:focus-visible {
    outline: none;
}

.laddu-table td.selectable:focus-visible .price-pill {
    outline: 2px solid var(--accent-gold);
    outline-offset: 2px;
}

.laddu-table td.selectable.selected .price-pill {
    background-color: var(--accent-gold);
    border-color: var(--accent-gold);
    color: #5a1018;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
}

.laddu-table td.selectable.selected .price-pill::after {
    content: '\2713';
    position: absolute;
    top: 4px;
    right: 6px;
    font-size: 0.6rem;
    font-weight: 800;
    line-height: 1;
    opacity: 0.75;
}

.qty-badge {
    position: absolute;
    bottom: 4px;
    right: 6px;
    font-size: 0.6rem;
    font-weight: 800;
    line-height: 1;
    opacity: 0.75;
}

/* Order hint banner */
.order-hint {
    max-width: 640px;
    margin: 0 auto 40px;
    background: rgba(244, 199, 84, 0.12);
    border: 1px solid rgba(244, 199, 84, 0.4);
    color: var(--text-main);
    border-radius: 10px;
    padding: 12px 18px;
    font-size: 0.85rem;
    font-weight: 300;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.order-hint svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    fill: var(--accent-gold);
}

/* Fixed order bar */
.order-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    transform: translateY(115%);
    transition: transform 0.25s ease;
    background: #ffffff;
    box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    font-family: var(--font-main);
    display: flex;
    flex-direction: column;
}

.order-bar.visible {
    transform: translateY(0);
}

body.order-bar-open {
    padding-bottom: 90px;
}

/* Collapsible drawer with selected items */
.order-drawer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
    border-bottom: 1px solid transparent;
}

.order-drawer.open {
    max-height: 45vh;
    overflow-y: auto;
    border-bottom-color: #e8e2d6;
}

.order-drawer-header {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px 2px;
}

.order-drawer-header span {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #8a7a63;
}

.drawer-clear-btn {
    border: none;
    background: none;
    color: #b3261e;
    font-family: var(--font-main);
    font-size: 0.74rem;
    font-weight: 700;
    cursor: pointer;
    padding: 4px 2px;
}

.drawer-clear-btn:hover {
    text-decoration: underline;
}

.drawer-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-bottom: 1px solid #f0ebe0;
    color: #33261a;
}

.drawer-item-img {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    cursor: zoom-in;
}

.drawer-item-info {
    flex: 1;
    min-width: 0;
}

.drawer-item-name {
    font-size: 0.86rem;
    font-weight: 700;
}

.drawer-item-variant {
    font-size: 0.74rem;
    color: #8a7a63;
    margin-top: 1px;
}

.drawer-item-details {
    font-size: 0.74rem;
    color: #8a7a63;
    margin-top: 2px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.drawer-remove-btn {
    border: none;
    background: none;
    color: #b3261e;
    font-family: var(--font-main);
    font-size: 0.74rem;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 0 0;
}

.drawer-item-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
}

.drawer-qty-stepper {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.drawer-qty-btn {
    border: none;
    background: #f0ebe0;
    color: #5a1018;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1;
    padding: 0;
}

.drawer-qty-value {
    min-width: 16px;
    text-align: center;
    font-size: 0.86rem;
    font-weight: 700;
}

.drawer-item-price {
    font-size: 0.86rem;
    font-weight: 700;
}

.drawer-add-more-btn {
    display: block;
    margin: 12px auto;
    padding: 8px 18px;
    border: 1px solid var(--bg-color);
    border-radius: 999px;
    background: #ffffff;
    color: var(--bg-color);
    font-family: var(--font-main);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
}

.drawer-add-more-btn:hover {
    background: #faf2f2;
}

.order-drawer-total {
    position: sticky;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    font-size: 0.85rem;
    font-weight: 800;
    color: #222222;
    background: #faf7f0;
}

/* Bottom row: summary toggle + order button */
.order-bar-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
}

.order-summary-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: none;
    background: none;
    padding: 6px 4px;
    font-family: var(--font-main);
    font-size: 0.82rem;
    font-weight: 600;
    color: #555555;
    cursor: pointer;
}

.order-summary-toggle .order-chevron {
    width: 16px;
    height: 16px;
    fill: #8a7a63;
    transition: transform 0.2s ease;
}

.order-summary-toggle[aria-expanded="true"] .order-chevron {
    transform: rotate(180deg);
}

.order-now-btn {
    flex: none;
    background: #25d366;
    color: #ffffff;
    border: none;
    border-radius: 999px;
    padding: 9px 16px;
    font-family: var(--font-main);
    font-size: 0.88rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    min-height: 40px;
}

.order-now-btn:hover {
    background: #1fbd5a;
}

.order-now-btn svg {
    width: 16px;
    height: 16px;
    fill: #ffffff;
    flex-shrink: 0;
}

.order-btn-amount {
    font-weight: 800;
}

/* Share catalogue button */
.share-catalogue-btn {
    margin-top: 22px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25d366;
    color: #ffffff;
    border: none;
    border-radius: 999px;
    padding: 10px 20px;
    font-family: var(--font-main);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
}

.share-catalogue-btn:hover {
    background: #1fbd5a;
}

.share-catalogue-btn svg {
    width: 18px;
    height: 18px;
    fill: #ffffff;
    flex-shrink: 0;
}

/* Share language choice */
.lang-choice-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.lang-choice-btn {
    flex: 1;
    border: 1px solid #e0d8c8;
    background: #faf7f0;
    color: #5a1018;
    border-radius: 10px;
    padding: 14px 10px;
    font-family: var(--font-main);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.lang-choice-btn:hover {
    background-color: rgba(244, 199, 84, 0.18);
    border-color: var(--accent-gold);
}


/* Footer contact actions */
.contact-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.contact-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    opacity: 0.9;
}
.contact-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.contact-btn.call {
    background: var(--accent-gold);
}

.contact-btn.whatsapp {
    background: #25d366;
}
.contact-btn.share {
    background: #ffffff;
    border: none;
    padding: 0;
    cursor: pointer;
}

.contact-btn svg {
    width: 24px;
    height: 24px;
}

.contact-btn.call svg {
    fill: var(--bg-color);
}

.contact-btn.whatsapp svg {
    fill: #ffffff;
}
.contact-btn.share svg {
    fill: var(--bg-color);
}

@media (hover: hover) and (pointer: fine) {
    .contact-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
    }
}

/* Customer details modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.modal-overlay[hidden] {
    display: none;
}

body.modal-open {
    overflow: hidden;
}

.modal {
    background: #ffffff;
    color: #2a1810;
    border-radius: 16px;
    padding: 22px;
    max-width: 380px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    font-family: var(--font-main);
}

.modal h3 {
    margin: 0 0 4px;
    font-size: 1.2rem;
    color: #5a1018;
}

.modal-sub {
    margin: 0 0 16px;
    font-size: 0.8rem;
    color: #7a6a5a;
}

.modal-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #8a7a63;
    margin-bottom: 6px;
}

.modal-input,
.modal-textarea {
    width: 100%;
    border: 1px solid #e0d8c8;
    border-radius: 8px;
    padding: 10px 12px;
    font-family: var(--font-main);
    font-size: 0.9rem;
    color: #2a1810;
    margin-bottom: 14px;
    box-sizing: border-box;
}

.modal-textarea {
    resize: vertical;
}

.modal-input:focus,
.modal-textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(244, 199, 84, 0.25);
}

.modal-error {
    color: #b3261e;
    font-size: 0.78rem;
    margin: -6px 0 14px;
}

.modal-error[hidden] {
    display: none;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}

.modal-cancel {
    border: none;
    background: none;
    color: #8a7a63;
    font-family: var(--font-main);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 10px;
}

/* Product popup: photo, description and sizes not yet in the order */
.product-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2100;
    padding: 20px;
}

.product-popup-overlay[hidden] {
    display: none;
}

.product-popup {
    position: relative;
    width: 100%;
    max-width: 380px;
    max-height: 100%;
    overflow-y: auto;
    background: #ffffff;
    color: #2a1810;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    font-family: var(--font-main);
}

.product-popup-img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.product-popup-img[hidden] {
    display: none;
}

.product-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #ffffff;
    color: #2a1810;
    font-size: 1.1rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.product-popup-body {
    padding: 16px 18px 20px;
}

.product-popup-name {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #5a1018;
}

.product-popup-desc {
    margin: 6px 0 16px;
    font-size: 0.85rem;
    line-height: 1.4;
    color: #5c4a38;
}

.product-popup-sizes-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #8a7a63;
    margin-bottom: 8px;
}

.product-popup-sizes {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-popup-size {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #e8e2d6;
    border-radius: 10px;
    background: #faf7f0;
    color: #33261a;
    font-family: var(--font-main);
    font-size: 0.85rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.product-popup-size:hover {
    border-color: var(--accent-gold);
}

.product-popup-size-price {
    font-weight: 800;
    color: #5a1018;
    white-space: nowrap;
}

/* Quantity bottom sheet */
.qty-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 2050;
    pointer-events: none;
    transition: background 0.25s ease;
}

.qty-overlay.open {
    background: rgba(0, 0, 0, 0.45);
    pointer-events: auto;
}

.qty-sheet {
    background: #ffffff;
    color: #2a1810;
    width: 100%;
    max-width: 480px;
    border-radius: 20px 20px 0 0;
    padding: 18px 20px calc(18px + env(safe-area-inset-bottom));
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.35);
    transform: translateY(115%);
    transition: transform 0.28s ease;
    font-family: var(--font-main);
    box-sizing: border-box;
}

.qty-overlay.open .qty-sheet {
    transform: translateY(0);
}

.qty-sheet-handle {
    width: 40px;
    height: 4px;
    border-radius: 2px;
    background: #e0d8c8;
    margin: 0 auto 14px;
}

.qty-sheet-item {
    font-size: 1.1rem;
    font-weight: 700;
    color: #5a1018;
}

.qty-sheet-variant {
    font-size: 0.8rem;
    font-weight: 600;
    color: #8a7a63;
    margin-top: 2px;
    margin-bottom: 18px;
}

.qty-sheet-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.qty-stepper {
    display: inline-flex;
    align-items: center;
    gap: 18px;
}

.qty-btn {
    border: none;
    background: #f0ebe0;
    color: #5a1018;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1;
    padding: 0;
}

.qty-value {
    min-width: 24px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 800;
}

.qty-sheet-subtotal {
    font-size: 1.1rem;
    font-weight: 800;
    color: #5a1018;
}

.qty-add-btn {
    width: 100%;
    background: var(--bg-color);
    color: #ffffff;
    border: none;
    border-radius: 999px;
    padding: 13px 16px;
    font-family: var(--font-main);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
}

.qty-add-btn:hover {
    background: #a21829;
}

.header-subtext {
    font-size: 0.6rem;
    display: block;
    color: var(--text-main);
    margin-top: 2px;
    opacity: 0.8;
}

/* Card layout for laddu-table on small screens */
@media (max-width: 640px) {
    .laddu-table {
        table-layout: auto;
    }

    .laddu-table thead {
        display: none;
    }

    .laddu-table, .laddu-table tbody {
        display: block;
        width: 100%;
    }

    .laddu-table tr {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px 10px;
        padding: 16px 0;
        border-bottom: 1px solid var(--divider);
    }

    .laddu-table tr:last-child {
        border-bottom: none;
    }

    .laddu-table td {
        border-bottom: none;
        padding: 0;
    }

    .laddu-table td.item-name {
        grid-column: 1 / -1;
        margin-bottom: 2px;
    }

    .item-name-wrap {
        gap: 12px;
    }

    .item-img {
        width: 84px;
        height: 84px;
    }

    .laddu-table td:not(.item-name) {
        background: rgba(255, 255, 255, 0.07);
        border-radius: 8px;
        padding: 8px 10px;
        text-align: left;
        white-space: normal;
    }

    .laddu-table td:not(.item-name):only-of-type {
        grid-column: 1 / -1;
    }

    .laddu-table td:not(.item-name)::before {
        content: attr(data-label);
        display: block;
        font-size: 0.62rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: var(--accent-gold);
        opacity: 0.55;
        margin-bottom: 3px;
        font-weight: 600;
    }

    /* On phones the whole cell is the card, so the pill sits flat inside it */
    .price-pill {
        display: inline;
        position: static;
        min-width: 0;
        padding: 0;
        border: none;
        background: none;
        transition: none;
    }

    .laddu-table td.selectable.selected .price-pill {
        background: none;
        box-shadow: none;
        color: inherit;
    }

    .laddu-table td.selectable.selected .price-pill::after {
        content: none;
    }

    .laddu-table td.selectable:focus-visible {
        outline: 2px solid var(--accent-gold);
        outline-offset: -2px;
    }

    .laddu-table td.selectable:focus-visible .price-pill {
        outline: none;
    }

    .laddu-table td.selectable.selected {
        background-color: var(--accent-gold);
        color: #5a1018;
    }

    .laddu-table td.selectable.selected::after {
        content: '\2713';
        position: absolute;
        font-weight: 800;
        line-height: 1;
        opacity: 0.75;
    }

    .laddu-table td.selectable.selected::before {
        color: #5a1018;
        opacity: 0.7;
    }

    .laddu-table td.selectable.selected::after {
        top: 8px;
        right: 10px;
        font-size: 0.75rem;
    }

    .qty-badge {
        bottom: 8px;
        right: 10px;
        font-size: 0.75rem;
    }

    .nav-fab {
        display: flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        bottom: calc(16px + env(safe-area-inset-bottom, 0px));
        right: 16px;
        width: 52px;
        height: 52px;
        border-radius: 50%;
        background: rgba(30, 8, 10, 0.72);
        border: 1px solid rgba(255, 255, 255, 0.3);
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
        z-index: 900;
        cursor: pointer;
        padding: 0;
        transition: bottom 0.25s ease;
    }

    body.order-drawer-open {
        overflow: hidden;
    }

    body.order-drawer-open .order-bar {
        top: 0;
        padding-top: env(safe-area-inset-top);
    }

    .order-drawer.open {
        flex: 1;
        max-height: none;
        display: flex;
        flex-direction: column;
    }

    .drawer-add-more-btn {
        margin-bottom: auto;
    }

    body.order-bar-open .nav-fab {
        bottom: calc(100px + env(safe-area-inset-bottom, 0px));
    }

    .nav-fab svg {
        width: 24px;
        height: 24px;
        fill: #ffffff;
    }

    .nav-fab-menu {
        display: block;
        position: fixed;
        bottom: calc(16px + 52px + 8px + env(safe-area-inset-bottom, 0px));
        right: 16px;
        min-width: 170px;
        background: #ffffff;
        border-radius: 14px;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
        overflow: hidden;
        z-index: 1500;
        transform-origin: bottom right;
        opacity: 0;
        transform: scale(0.92) translateY(6px);
        pointer-events: none;
        transition: opacity 0.15s ease, transform 0.15s ease, bottom 0.25s ease;
    }

    body.order-bar-open .nav-fab-menu {
        bottom: calc(100px + 52px + 8px + env(safe-area-inset-bottom, 0px));
    }

    .nav-fab-menu.open {
        opacity: 1;
        transform: scale(1) translateY(0);
        pointer-events: auto;
    }

    .nav-fab-menu button {
        display: block;
        width: 100%;
        text-align: left;
        border: none;
        background: none;
        padding: 13px 18px;
        font-family: var(--font-main);
        font-size: 0.95rem;
        font-weight: 600;
        color: #2a1810;
        cursor: pointer;
    }

    .nav-fab-menu button + button {
        border-top: 1px solid #f0ebe0;
    }

    .nav-fab-menu button:active {
        background: rgba(244, 199, 84, 0.18);
    }
}

footer {
    text-align: center;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--divider);
    font-size: 0.85rem;
    font-weight: 300;
    line-height: 1.5;
}

.footer-highlight {
    color: var(--accent-gold);
    font-weight: 600;
}

/* ================================================================
   Product cards layout (index.html, catalogue-local.html).
   Pages opt in with `layout: 'cards'`, which adds .catalogue-cards to
   <body>; every rule below is scoped to it so the admin table is untouched.
   ================================================================ */

body.catalogue-cards [hidden] {
    display: none !important;
}

body.catalogue-cards.product-sheet-open {
    overflow: hidden;
}

/* Sections stack full-width; cards flow 1 / 2 / 3 per row. */
body.catalogue-cards .product-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
}

@media (min-width: 640px) {
    body.catalogue-cards .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px 48px;
    }
}

@media (min-width: 1024px) {
    body.catalogue-cards .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 36px 64px;
    }
}

/* Invisible card: no border, background or hover; a focus ring for keyboards only. */
body.catalogue-cards .product-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 55fr) minmax(0, 45fr);
    gap: 16px;
    padding-bottom: 20px;
    border-radius: 12px;
    cursor: pointer;
}

body.catalogue-cards .product-card:focus {
    outline: none;
}

body.catalogue-cards .product-card:focus-visible {
    outline: 2px solid var(--accent-gold);
    outline-offset: 6px;
}

body.catalogue-cards .product-card-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    align-self: center;
}

body.catalogue-cards .product-card-name {
    margin: 0;
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.25;
}

body.catalogue-cards .product-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

body.catalogue-cards .product-meta .hamper-moq-badge,
body.catalogue-cards .product-meta .item-weight,
body.catalogue-cards .product-meta .item-badge {
    margin-top: 0;
}

body.catalogue-cards .product-card-desc {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 300;
    line-height: 1.4;
    opacity: 0.9;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

body.catalogue-cards .product-card-price {
    margin-top: 2px;
    font-size: 1rem;
}

body.catalogue-cards .product-card-price b {
    font-weight: 800;
}

body.catalogue-cards .product-card-price-prefix {
    font-size: 0.8rem;
    font-weight: 400;
    opacity: 0.85;
}

body.catalogue-cards .product-card-media {
    position: relative;
    align-self: start;
}

body.catalogue-cards .product-card-img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 12px;
}

body.catalogue-cards .product-card-img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #efe6d8;
    color: #b9a68c;
}

body.catalogue-cards .product-card-img-placeholder svg {
    width: 38%;
    height: 38%;
    fill: currentColor;
}

/* Add button overlaps the image's bottom edge. */
body.catalogue-cards .product-card-action {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translate(-50%, 50%);
    width: max(96px, 74%);
}

/* Add, "− N +" and "Added · N" share one 38px-high box. */
body.catalogue-cards .cart-add-btn {
    display: block;
    width: 100%;
    height: 38px;
    border-radius: 10px;
    border: 1px solid #e9c9cd;
    background: #ffffff;
    color: var(--bg-color);
    font-family: var(--font-main);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
}

body.catalogue-cards .cart-add-btn.is-added {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: #5a1018;
    text-transform: none;
    letter-spacing: 0;
}

body.catalogue-cards .cart-stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 38px;
    border-radius: 10px;
    border: 1px solid #e9c9cd;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
    overflow: hidden;
    cursor: default;
}

body.catalogue-cards .cart-stepper-btn {
    width: 38px;
    height: 100%;
    padding: 0;
    border: none;
    background: none;
    color: var(--bg-color);
    font-family: var(--font-main);
    font-size: 1.2rem;
    font-weight: 800;
    cursor: pointer;
}

body.catalogue-cards .cart-stepper-btn[aria-disabled="true"] {
    opacity: 0.3;
    cursor: not-allowed;
}

body.catalogue-cards .cart-stepper-value {
    min-width: 22px;
    text-align: center;
    font-weight: 800;
    color: var(--bg-color);
}

body.catalogue-cards .cart-add-btn:focus-visible,
body.catalogue-cards .cart-stepper-btn:focus-visible {
    outline: 2px solid var(--accent-gold);
    outline-offset: 2px;
}

/* Product popup: bottom sheet on phones, centred dialog from 640px. */
body.catalogue-cards .product-sheet-overlay {
    position: fixed;
    inset: 0;
    z-index: 2100;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: rgba(0, 0, 0, 0);
    visibility: hidden;
    pointer-events: none;
    transition: background-color 0.25s ease, visibility 0s linear 0.28s;
}

body.catalogue-cards .product-sheet-overlay.open {
    background: rgba(0, 0, 0, 0.6);
    visibility: visible;
    pointer-events: auto;
    transition: background-color 0.25s ease;
}

body.catalogue-cards .product-sheet {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-height: 92%;
    overflow: hidden;
    background: #ffffff;
    color: #2a1810;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.4);
    font-family: var(--font-main);
    transform: translateY(105%);
    transition: transform 0.28s ease;
}

body.catalogue-cards .product-sheet-overlay.open .product-sheet {
    transform: none;
}

body.catalogue-cards .product-sheet-handle {
    position: absolute;
    top: 8px;
    left: 50%;
    z-index: 2;
    width: 40px;
    height: 4px;
    border-radius: 2px;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
}

body.catalogue-cards .product-sheet.no-image .product-sheet-handle {
    background: #e0d8c8;
    box-shadow: none;
}

body.catalogue-cards .product-sheet-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #ffffff;
    color: #2a1810;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

body.catalogue-cards .product-sheet-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

body.catalogue-cards .product-sheet-img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

body.catalogue-cards .product-sheet-body {
    padding: 16px 18px 20px;
}

body.catalogue-cards .product-sheet.no-image .product-sheet-body {
    padding-top: 22px;
    padding-right: 58px;
}

body.catalogue-cards .product-sheet-name {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #5a1018;
}

body.catalogue-cards .product-sheet .product-meta {
    margin-top: 6px;
}

body.catalogue-cards .product-sheet .item-weight {
    color: #8a5a00;
}

/* Description and "Made with" ingredients are always shown in full. */
body.catalogue-cards .product-sheet-about {
    margin-top: 8px;
}

body.catalogue-cards .product-sheet-about p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.45;
    color: #5c4a38;
}

body.catalogue-cards .product-sheet-about p + p {
    margin-top: 6px;
}

body.catalogue-cards .product-sheet-inside-lead {
    font-weight: 700;
}

body.catalogue-cards .product-sheet-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

body.catalogue-cards .product-chip {
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid #f0dca0;
    background: #fbf3dc;
    color: #6b4a10;
    font-size: 0.74rem;
    font-weight: 600;
    line-height: 1.3;
}

body.catalogue-cards .product-sheet-heading,
body.catalogue-cards .product-sheet-total-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #8a7a63;
}

body.catalogue-cards .product-sheet-heading {
    margin: 20px 0 8px;
}

body.catalogue-cards .product-sheet-sizes {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

body.catalogue-cards .product-size-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0;
}

body.catalogue-cards .product-size-label,
body.catalogue-cards .product-size-price {
    font-size: 0.88rem;
}

body.catalogue-cards .product-size-label {
    font-weight: 600;
    color: #33261a;
}

body.catalogue-cards .product-size-price {
    margin-top: 2px;
    font-weight: 800;
    color: #5a1018;
}

body.catalogue-cards .product-size-control {
    flex: none;
    width: 108px;
}

body.catalogue-cards .product-size-control .cart-add-btn,
body.catalogue-cards .product-size-control .cart-stepper {
    box-shadow: none;
}

body.catalogue-cards .cart-stepper.is-solid {
    background: var(--bg-color);
    border-color: var(--bg-color);
}

body.catalogue-cards .cart-stepper.is-solid .cart-stepper-btn,
body.catalogue-cards .cart-stepper.is-solid .cart-stepper-value {
    color: #ffffff;
}

/* Only shown once the product has something in the order. */
body.catalogue-cards .product-sheet-foot[hidden] {
    display: none;
}

body.catalogue-cards .product-sheet-foot {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 18px calc(14px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid #efe8da;
    background: #ffffff;
}

body.catalogue-cards .product-sheet-total {
    font-size: 1.15rem;
    font-weight: 800;
    color: #5a1018;
}

body.catalogue-cards .product-sheet-done {
    min-width: 140px;
    height: 44px;
    border-radius: 999px;
    border: none;
    background: var(--bg-color);
    color: #ffffff;
    font-family: var(--font-main);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
}

body.catalogue-cards .product-sheet :focus-visible {
    outline: 2px solid var(--bg-color);
    outline-offset: 2px;
}

body.catalogue-cards .product-sheet .cart-stepper.is-solid .cart-stepper-btn:focus-visible {
    outline: 2px solid var(--accent-gold);
    outline-offset: -3px;
}

@media (hover: hover) and (pointer: fine) {
    body.catalogue-cards .cart-add-btn:hover {
        background: #fff6f6;
    }

    body.catalogue-cards .cart-add-btn.is-added:hover {
        background: #f7d272;
    }

    body.catalogue-cards .product-sheet-done:hover {
        background: #a21829;
    }
}

@media (min-width: 640px) {
    body.catalogue-cards .product-sheet-overlay {
        align-items: center;
        padding: 24px;
    }

    body.catalogue-cards .product-sheet {
        max-width: 480px;
        max-height: 88vh;
        border-radius: 18px;
        opacity: 0;
        transform: translateY(16px) scale(0.97);
        transition: transform 0.2s ease, opacity 0.2s ease;
    }

    body.catalogue-cards .product-sheet-overlay.open .product-sheet {
        opacity: 1;
        transform: none;
    }

    body.catalogue-cards .product-sheet-handle {
        display: none;
    }

    body.catalogue-cards .product-sheet-img {
        aspect-ratio: 16 / 10;
    }
}

/* Drawer images open the product popup, so they are buttons on these pages. */
body.catalogue-cards .drawer-item-img-btn {
    flex-shrink: 0;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: none;
    cursor: zoom-in;
}

body.catalogue-cards .drawer-item-img-btn .drawer-item-img {
    display: block;
}

body.catalogue-cards .drawer-qty-btn[aria-disabled="true"] {
    opacity: 0.35;
    cursor: not-allowed;
}

/* ================================================================
   Checkout on the cards pages: a floating "Review Order" bar, then a
   full-screen cart page and address page. The table page (admin) keeps
   its drawer and modal; everything here is scoped to .catalogue-cards.
   ================================================================ */

body.catalogue-cards {
    --checkout-gap: 12px;
    --checkout-btn-height: 56px;
    --review-btn-height: 40px;
    --checkout-max-width: 560px;
    --checkout-bar-height: calc(var(--review-btn-height) + 2 * var(--checkout-gap));
}

body.catalogue-cards.layer-open {
    overflow: hidden;
}

/* The footer and the nav button clear the bar. */
body.catalogue-cards.order-bar-open {
    padding-bottom: calc(var(--checkout-bar-height) + 16px + env(safe-area-inset-bottom, 0px));
}

body.catalogue-cards.order-bar-open .nav-fab {
    bottom: calc(var(--checkout-bar-height) + 12px + env(safe-area-inset-bottom, 0px));
}

body.catalogue-cards.order-bar-open .nav-fab-menu {
    bottom: calc(var(--checkout-bar-height) + 12px + 52px + 8px + env(safe-area-inset-bottom, 0px));
}

body.catalogue-cards .order-bar {
    padding: var(--checkout-gap) var(--checkout-gap) calc(var(--checkout-gap) + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.16);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-top: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: none;
    box-sizing: border-box;
}

/* The floating button, shared by the bar and both pages' call to action. */
body.catalogue-cards .review-order-btn,
body.catalogue-cards .checkout-cta {
    box-sizing: border-box;
    width: 100%;
    max-width: var(--checkout-max-width);
    min-height: var(--checkout-btn-height);
    margin: 0 auto;
    padding: 0 20px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 16px;
    background: var(--bg-color);
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    cursor: pointer;
}

body.catalogue-cards .review-order-btn {
    min-height: var(--review-btn-height);
    padding: 0 16px;
    font-size: 0.9rem;
    font-weight: 400;
    border: none;
    background: var(--accent-gold);
    color: #5a1018;
    justify-content: space-between;
    gap: 12px;
    text-align: left;
}

body.catalogue-cards .review-order-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex: none;
}

body.catalogue-cards .review-order-btn svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.catalogue-cards .checkout-cta {
    justify-content: center;
    gap: 10px;
}

body.catalogue-cards .checkout-cta svg {
    width: 22px;
    height: 22px;
    fill: #ffffff;
    flex-shrink: 0;
}

body.catalogue-cards .review-order-btn:focus-visible,
body.catalogue-cards .checkout-cta:focus-visible,
body.catalogue-cards .checkout-close:focus-visible {
    outline: 3px solid var(--accent-gold);
    outline-offset: 2px;
}

/* Full-screen pages: close button, scrolling body, button pinned below. */
body.catalogue-cards .checkout-page {
    position: fixed;
    inset: 0;
    z-index: 1800;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    color: #2a1810;
    font-family: var(--font-main);
    height: 100vh;
    height: 100dvh;
}

body.catalogue-cards .checkout-close {
    position: absolute;
    top: calc(12px + env(safe-area-inset-top, 0px));
    right: 12px;
    z-index: 2;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #f0ebe0;
    color: #5a1018;
    font-size: 1.6rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

body.catalogue-cards .checkout-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    width: 100%;
    max-width: var(--checkout-max-width);
    margin: 0 auto;
    padding: calc(16px + env(safe-area-inset-top, 0px)) 16px 16px;
    box-sizing: border-box;
    overflow-wrap: anywhere;
}

body.catalogue-cards .checkout-title {
    margin: 0 56px 12px 0;
    font-size: 1.35rem;
    color: #5a1018;
}

body.catalogue-cards .checkout-scroll .order-drawer-header,
body.catalogue-cards .checkout-scroll .drawer-item {
    padding-left: 0;
    padding-right: 0;
}

body.catalogue-cards .checkout-scroll .order-drawer-header {
    position: static;
}

/* "Add more products": a full-width dashed slot, like room for another item. */
body.catalogue-cards .checkout-scroll .drawer-add-more-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin: 16px 0;
    padding: 16px;
    box-sizing: border-box;
    border: 2px dashed var(--bg-color);
    border-radius: 14px;
    background: transparent;
    font-size: 0.9rem;
}

body.catalogue-cards .checkout-scroll .drawer-add-more-btn::before {
    content: '+';
    font-size: 1.2rem;
    line-height: 1;
}

body.catalogue-cards .checkout-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0 4px;
}

body.catalogue-cards .checkout-delivery {
    border-top: 1px solid #f0ebe0;
    font-size: 0.9rem;
    font-weight: 700;
    color: #33261a;
}

body.catalogue-cards .checkout-row-value {
    flex: none;
    max-width: 45%;
    text-align: right;
    color: #8a7a63;
    font-weight: 600;
}

body.catalogue-cards .checkout-total {
    align-items: center;
    font-size: 1.05rem;
    font-weight: 800;
    color: #222222;
}

body.catalogue-cards .checkout-note,
body.catalogue-cards .checkout-summary {
    margin: 0 0 14px;
    font-size: 0.8rem;
    color: #7a6a5a;
}

body.catalogue-cards .checkout-delivery .checkout-note {
    margin: 2px 0 8px;
    font-weight: 400;
}

body.catalogue-cards .checkout-summary {
    font-weight: 700;
    color: #5a1018;
}

body.catalogue-cards .checkout-foot {
    padding: var(--checkout-gap) var(--checkout-gap) calc(var(--checkout-gap) + env(safe-area-inset-bottom, 0px));
    background: #ffffff;
    border-top: 1px solid #f0ebe0;
}

body.catalogue-cards .checkout-page .modal-textarea {
    min-height: 96px;
}

@media (prefers-reduced-motion: no-preference) {
    body.catalogue-cards .checkout-page:not([hidden]) {
        animation: checkout-page-in 0.2s ease-out;
    }

    @keyframes checkout-page-in {
        from { opacity: 0; transform: translateY(16px); }
        to { opacity: 1; transform: translateY(0); }
    }
}
