/* ============ STOREFRONT STYLES ============ */

.store-front-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f8fafc;
}

/* Header */
.store-front-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.store-front-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.store-front-brand i {
    font-size: 1.5rem;
    color: var(--color-primary);
}

.store-front-brand h1 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.store-front-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.store-front-actions .cart-badge {
    background: var(--color-primary);
    color: #fff;
    font-size: var(--text-xs);
    font-weight: 700;
    min-width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.25rem;
}

/* Toolbar */
.store-front-toolbar {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}

.store-front-toolbar .search-bar {
    display: flex;
    align-items: center;
    flex: 1;
    background: #f1f5f9;
    border-radius: var(--border-radius);
    padding: 0 0.75rem;
}

.store-front-toolbar .search-bar i {
    color: #9ca3af;
    margin-right: 0.5rem;
}

.store-front-toolbar .search-input {
    border: none;
    background: transparent;
    padding: 0.625rem 0;
    font-size: var(--text-base);
    color: #111827;
    width: 100%;
}

.store-front-toolbar .search-input:focus {
    outline: none;
}

.store-front-filter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--text-sm);
    color: #6b7280;
}

.store-front-filter select {
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: var(--border-radius);
    font-size: var(--text-sm);
    color: #111827;
    background: #fff;
}

/* Main Content */
.store-front-main {
    flex: 1;
    padding: 1.5rem;
}

/* Product Grid */
.store-front-products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

/* Menu grouping: when products are grouped into sections the container
   switches from a grid to a plain block so each section can hold its own
   grid of cards under a heading (reads like a menu). */
.store-front-products--grouped {
    display: block;
}

.store-front-menu-section {
    margin-bottom: 1.75rem;
}

.store-front-menu-section:last-child {
    margin-bottom: 0;
}

.store-front-menu-heading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.9rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-primary);
}

.store-front-menu-heading i {
    color: var(--color-primary);
}

.store-front-menu-count {
    margin-left: auto;
    font-size: var(--text-xs);
    font-weight: 600;
    color: #6b7280;
    background: #f1f5f9;
    border-radius: 999px;
    padding: 2px 10px;
}

/* Each section lays its cards out on the same responsive grid the flat
   view uses, so grouped and ungrouped shops look identical card-for-card. */
.store-front-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.store-front-product-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #eef1f4;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 1px 3px rgba(16, 24, 40, 0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.store-front-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(16, 24, 40, 0.10);
    border-color: #e2e8f0;
}

.store-front-product-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, #f3f6f9, #e9eef3);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.store-front-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.store-front-product-image .no-image {
    color: #9ca3af;
    font-size: 2rem;
}

.store-front-product-body {
    padding: 0.9rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.store-front-product-name {
    font-size: 1rem;
    font-weight: 650;
    color: #111827;
    margin: 0 0 0.4rem;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.store-front-product-category {
    display: inline-block;
    align-self: flex-start;
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #4b5563;
    background: #f1f5f9;
    border-radius: 999px;
    padding: 2px 9px;
    margin: 0 0 0.6rem;
}

.store-front-product-price {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--color-primary);
    margin: 0 0 0.75rem;
}

/* The "/ kg" (or /litre, /g, /ml) suffix on weight-priced products. Smaller
   and muted so the price stays the hero while the unit stays clear. */
.store-front-product-unit {
    font-size: var(--text-xs, 0.75rem);
    font-weight: 600;
    color: var(--color-text-muted, #888);
}

/* "From KES x" label used when a product is sold in several sizes/options and
   each option can carry its own price, so the card shows the cheapest one. */
.store-front-product-from {
    font-size: var(--text-xs, 0.75rem);
    font-weight: 600;
    color: var(--color-text-muted, #888);
    margin-right: 0.25rem;
}

/* Wrapper around the size/option dropdown on a product card. */
.store-front-product-variant {
    margin: 0 0 0.6rem;
}

/* The size/option dropdown itself (e.g. baby clothing age groups). */
.store-front-variant-select {
    width: 100%;
    padding: 0.4rem 0.5rem;
    border: 1px solid var(--color-border, #d1d5db);
    border-radius: 0.5rem;
    font-size: var(--text-sm, 0.875rem);
    background: #fff;
    color: #111827;
    cursor: pointer;
}
.store-front-variant-select:focus {
    outline: none;
    border-color: var(--color-primary, #0a7d2c);
    box-shadow: 0 0 0 2px rgba(10, 125, 44, 0.15);
}

/* "Best before" badge on perishable products. Amber when the date is near,
   red when it is within 3 days / today, and a muted strike-through card for
   anything already expired (the buy button is hidden for those). */
.store-front-product-expiry {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0 0 0.5rem;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: var(--text-xs, 0.75rem);
    font-weight: 600;
    line-height: 1.4;
}
.store-front-product-expiry.is-soon {
    background: #fff3e0;
    color: #b26a00;
}
.store-front-product-expiry.is-urgent {
    background: #fdecea;
    color: #b3261e;
}
.store-front-product-expiry.is-expired {
    background: #eceff1;
    color: #607d8b;
}
.store-front-product-card.is-expired {
    opacity: 0.7;
}
.store-front-product-card.is-expired .store-front-product-name {
    text-decoration: line-through;
    text-decoration-color: rgba(0, 0, 0, 0.25);
}

.store-front-product-actions {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-top: auto;
}

.store-front-product-actions .btn {
    width: 100%;
    justify-content: center;
}

/* ─── Buy-by-weight selector ───────────────────────────────────
   For products priced per kg / g / litre / ml the shopper types the
   amount they want. The row is a self-contained panel so the input,
   unit label and live price line up neatly above a full-width button. */
.store-front-weight-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    background: #f8fafc;
    border: 1px solid #e5eaf0;
    border-radius: 10px;
    padding: 0.5rem 0.6rem;
}

.store-front-weight-input {
    width: 66px;
    padding: 0.35rem 0.45rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.9rem;
    text-align: center;
}

.store-front-weight-input:focus {
    outline: none;
    border-color: var(--color-primary, #0a7d2c);
    box-shadow: 0 0 0 2px rgba(10, 125, 44, 0.15);
}

.store-front-weight-unit {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 600;
}

.store-front-weight-price {
    margin-left: auto;
    font-weight: 700;
    color: #1f9d57;
    font-size: 0.95rem;
    white-space: nowrap;
}

/* Empty state */
.store-front-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 1rem;
    color: #9ca3af;
}

.store-front-empty i {
    font-size: 3rem;
    margin-bottom: 0.75rem;
}

.store-front-empty p {
    font-size: var(--text-base);
    margin: 0;
}

/* Cart Sidebar */
.customer-cart-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 360px;
    max-width: 90vw;
    height: 100vh;
    background: #fff;
    box-shadow: -2px 0 12px rgba(0, 0, 0, 0.1);
    z-index: 200;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.customer-cart-panel:not(.hidden) {
    transform: translateX(0);
}

.customer-cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e5e7eb;
}

.customer-cart-header h3 {
    margin: 0;
    font-size: var(--text-base);
    font-weight: 600;
    color: #111827;
}

.customer-cart-header h3 i {
    margin-right: 0.5rem;
}

.customer-cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.25rem;
}

.customer-cart-empty {
    text-align: center;
    color: #9ca3af;
    font-size: var(--text-sm);
    padding: 2rem 0;
}

.customer-cart-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
}

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

.customer-cart-item-info {
    flex: 1;
}

.customer-cart-item-name {
    font-size: var(--text-sm);
    font-weight: 500;
    color: #111827;
}

.customer-cart-item-price {
    font-size: var(--text-xs);
    color: #6b7280;
}

/* The chosen size/option (e.g. "0-6 months") shown under a cart line so the
   shopper can tell two variants of the same product apart. */
.customer-cart-item-variant {
    display: inline-block;
    margin-top: 0.1rem;
    font-size: var(--text-xs, 0.75rem);
    font-weight: 600;
    color: var(--color-primary, #0a7d2c);
}

.customer-cart-item-qty {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.customer-cart-item-qty button {
    width: 1.5rem;
    height: 1.5rem;
    border: 1px solid #d1d5db;
    border-radius: var(--border-radius);
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xs);
    color: #374151;
}

.customer-cart-item-qty button:hover {
    background: #f1f5f9;
}

.customer-cart-item-qty span {
    font-size: var(--text-sm);
    font-weight: 600;
    min-width: 1.5rem;
    text-align: center;
}

.customer-cart-item-remove {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: var(--text-sm);
    padding: 0.25rem;
}

.customer-cart-item-remove:hover {
    color: #dc2626;
}

.customer-cart-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid #e5e7eb;
}

.customer-cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--text-base);
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.75rem;
}

.customer-cart-footer .btn-full {
    width: 100%;
}

/* Cart Overlay */
.customer-cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 199;
}

/* Footer */
.store-front-footer {
    text-align: center;
    padding: 1.5rem;
    border-top: 1px solid #e5e7eb;
    color: #9ca3af;
    font-size: var(--text-sm);
}

.store-front-footer strong {
    color: var(--color-primary);
}

/* Responsive */
@media (max-width: 640px) {
    .store-front-header {
        padding: 0.75rem 1rem;
    }
    .store-front-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    .store-front-products {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 0.75rem;
    }
    .store-front-products-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 0.75rem;
    }
    .customer-cart-panel {
        width: 100vw;
    }
}

/* ============================================================
   STOREFRONT CHECKOUT MODAL (real M-Pesa checkout)
   Replaces the old window.prompt() popups with a proper form.
   Self-contained: the overlay is built via createElement in
   store-front.js, so these styles are all it needs.
   ============================================================ */
.sf-checkout-overlay {
    position: fixed;
    inset: 0;
    z-index: 4000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(15, 23, 42, 0.55);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}
.sf-checkout-modal {
    width: 100%;
    max-width: 440px;
    max-height: 92vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
    display: flex;
    flex-direction: column;
}
.sf-checkout-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid #eef0f4;
}
.sf-checkout-header h3 {
    margin: 0;
    font-size: 1.15rem;
    color: #0f172a;
}
.sf-checkout-close {
    border: none;
    background: transparent;
    font-size: 1.6rem;
    line-height: 1;
    color: #94a3b8;
    cursor: pointer;
    padding: 0 4px;
}
.sf-checkout-close:hover { color: #475569; }
.sf-checkout-body { padding: 18px 20px; }
.sf-checkout-summary {
    padding: 12px 14px;
    margin-bottom: 16px;
    border-radius: 10px;
    background: #f1f5f9;
    color: #0f172a;
}
.sf-sum-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.92rem;
    color: #475569;
    padding: 2px 0;
}
.sf-checkout-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0 2px;
    margin-top: 6px;
    border-top: 1px solid #e2e8f0;
    color: #0f172a;
}
.sf-checkout-total strong { font-size: 1.15rem; }
.sf-fee-note {
    margin: 8px 0 0;
    font-size: 0.78rem;
    line-height: 1.35;
    color: #64748b;
}
.sf-fee-note i { color: #16a34a; margin-right: 4px; }
.sf-field {
    display: block;
    margin-bottom: 14px;
}
.sf-field-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}
.sf-optional { font-weight: 400; color: #94a3b8; }
.sf-field-input {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    font-size: 0.95rem;
    font-family: inherit;
    color: #0f172a;
    background: #fff;
}
.sf-field-input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}
.sf-field-textarea { resize: vertical; min-height: 52px; }
.sf-field-hint {
    display: block;
    margin-top: 5px;
    font-size: 0.78rem;
    color: #94a3b8;
}
.sf-checkout-status {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
    padding: 11px 13px;
    border-radius: 10px;
    font-size: 0.9rem;
    line-height: 1.35;
    background: #eef2ff;
    color: #3730a3;
    border: 1px solid #c7d2fe;
}
.sf-checkout-status.hidden { display: none; }
.sf-checkout-status i { font-size: 1.05rem; flex-shrink: 0; }
.sf-checkout-status.is-success {
    background: #ecfdf5; color: #065f46; border-color: #a7f3d0;
}
.sf-checkout-status.is-fail {
    background: #fef2f2; color: #991b1b; border-color: #fecaca;
}

/* Confirm-delivery (escrow release) block, shown after payment lands */
.sf-confirm-delivery { margin-top: 14px; }
.sf-confirm-delivery hr {
    border: none; border-top: 1px solid #eef0f4; margin: 14px 0;
}
.sf-confirm-hint {
    font-size: 0.86rem; line-height: 1.4; color: #475569; margin: 0 0 10px;
}
.sf-confirm-proof-label {
    display: block; font-size: 0.78rem; font-weight: 600;
    color: #475569; margin-bottom: 10px;
}
.sf-input {
    display: block; width: 100%; margin-top: 4px;
    padding: 9px 11px; border: 1px solid #cbd5e1; border-radius: 8px;
    font-size: 0.9rem; box-sizing: border-box;
}
.sf-input:focus { outline: none; border-color: #6366f1; }
.sf-confirm-btn {
    width: 100%; padding: 11px 16px; border: none; border-radius: 10px;
    background: #059669; color: #fff; font-size: 0.92rem; font-weight: 600;
    cursor: pointer;
}
.sf-confirm-btn:hover:not(:disabled) { background: #047857; }
.sf-confirm-btn:disabled { opacity: 0.6; cursor: default; }
.sf-confirm-status {
    margin-top: 8px; font-size: 0.86rem; line-height: 1.35; min-height: 1em;
}
.sf-confirm-status.pending { color: #475569; }
.sf-confirm-status.success { color: #065f46; }
.sf-confirm-status.fail { color: #991b1b; }

/* ---- “My Orders” recovery panel ---- */
.sf-my-orders-body { max-height: 70vh; overflow-y: auto; }
.sf-my-order {
    border: 1px solid #e2e8f0; border-radius: 12px;
    padding: 12px 14px; margin-bottom: 12px; background: #fff;
}
.sf-my-order-top {
    display: flex; justify-content: space-between; align-items: baseline; gap: 8px;
}
.sf-my-order-receipt { font-weight: 600; font-size: 0.86rem; color: #334155; word-break: break-all; }
.sf-my-order-total { font-weight: 700; font-size: 0.92rem; color: #0f172a; white-space: nowrap; }
.sf-my-order-date { font-size: 0.74rem; color: #94a3b8; margin-top: 2px; }
.sf-my-order-status { font-size: 0.84rem; line-height: 1.35; margin-top: 8px; color: #475569; }
.sf-my-order-status.paid { color: #065f46; }
.sf-my-order-status.delivered { color: #065f46; font-weight: 600; }
.sf-my-order-status.failed { color: #991b1b; }
.sf-my-order-status.pending { color: #b45309; }
.sf-my-order-action { margin-top: 10px; }
.sf-my-order-receipt-row { margin-top: 8px; }
.sf-receipt-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    padding: 2px 0;
    color: #1a56db;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
}
.sf-receipt-link:hover { text-decoration: underline; }
.sf-my-order-action .sf-input { margin-bottom: 8px; }
.sf-checkout-footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding: 16px 20px;
    border-top: 1px solid #eef0f4;
}
.sf-btn {
    padding: 10px 18px;
    border-radius: 9px;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
}
.sf-btn:disabled { opacity: 0.65; cursor: not-allowed; }
.sf-btn-outline {
    background: #fff;
    border-color: #cbd5e1;
    color: #475569;
}
.sf-btn-outline:hover:not(:disabled) { background: #f8fafc; }
.sf-btn-primary {
    background: #4f46e5;
    color: #fff;
}
.sf-btn-primary:hover:not(:disabled) { background: #4338ca; }

@media (max-width: 480px) {
    .sf-checkout-overlay { padding: 0; align-items: flex-end; }
    .sf-checkout-modal { max-width: 100%; border-radius: 16px 16px 0 0; max-height: 94vh; }
}

/* ---- My Account panel ---- */
.sf-my-order-store { font-size: 0.78rem; color: #64748b; margin-top: 2px; }
.sf-my-order--done { opacity: 0.92; }

.sf-account-profile {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 14px;
}
.sf-account-name { font-weight: 700; font-size: 1.05rem; color: #0f172a; margin-bottom: 6px; }
.sf-account-line { font-size: 0.86rem; color: #475569; margin-top: 3px; }
.sf-account-stats { display: flex; gap: 18px; margin-top: 10px; font-size: 0.84rem; color: #475569; }
.sf-account-stats strong { color: #0f172a; }
.sf-account-section {
    margin: 18px 0 8px;
    font-size: 0.92rem;
    color: #0f172a;
    border-top: 1px solid #eef2f7;
    padding-top: 12px;
}

/* =====================================================================
   GIFT REGISTRY (shopper side) — a shared Baby Shop wish list page.
   Reuses the storefront header + cart; this styles the banner and the
   wish-list grid that replaces the normal product grid.
   ===================================================================== */
.store-front-registry-banner {
    text-align: center;
    padding: 1.5rem 1rem 1.25rem;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, #fff7fb 0%, #f3f9ff 100%);
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: 1rem;
}
.store-front-registry-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.2rem 0.75rem;
    border-radius: 999px;
    background: var(--color-primary, #0a7d2c);
    color: #fff;
    font-size: var(--text-xs, 0.75rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.store-front-registry-title {
    font-size: var(--text-xl, 1.4rem);
    font-weight: 700;
    color: #111827;
    margin: 0.25rem 0;
}
.store-front-registry-for {
    font-size: var(--text-base, 1rem);
    color: #374151;
    margin: 0 0 0.25rem;
}
.store-front-registry-meta,
.store-front-registry-event {
    font-size: var(--text-sm, 0.875rem);
    color: #6b7280;
}
.store-front-registry-progress {
    margin: 0.5rem 0 0;
    font-size: var(--text-sm, 0.875rem);
    font-weight: 600;
    color: var(--color-primary, #0a7d2c);
}

.store-front-registry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}
.store-front-registry-item {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: 0.75rem;
    overflow: hidden;
    background: #fff;
}
.store-front-registry-item.is-fulfilled {
    opacity: 0.65;
}
.store-front-registry-item-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    background: #f3f4f6;
}
.store-front-registry-item-noimg {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 2rem;
}
.store-front-registry-item-body {
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1;
}
.store-front-registry-item-name {
    font-size: var(--text-sm, 0.9rem);
    font-weight: 600;
    color: #111827;
    margin: 0;
}
.store-front-registry-item-price {
    font-size: var(--text-base, 1rem);
    font-weight: 700;
    color: var(--color-primary, #0a7d2c);
}
.store-front-registry-ask {
    font-size: var(--text-xs, 0.75rem);
    font-weight: 600;
    color: #6b7280;
}
.store-front-registry-item-progress {
    font-size: var(--text-xs, 0.75rem);
    color: #6b7280;
}
.store-front-registry-item-notes {
    font-size: var(--text-xs, 0.75rem);
    color: #6b7280;
    font-style: italic;
    margin: 0;
}
.store-front-registry-item-action {
    margin-top: auto;
    padding-top: 0.4rem;
}
.store-front-registry-done {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: var(--text-xs, 0.8rem);
    font-weight: 600;
    color: var(--color-primary, #0a7d2c);
}
.store-front-registry-unavailable {
    font-size: var(--text-xs, 0.75rem);
    color: #9ca3af;
}

/* =====================================================================
   PAID TABLE BOOKING (shopper side) — the restaurant reservation page.
   Reuses the storefront header + the shared .sf-field form styles; this
   only styles the booking banner and the form wrapper that replaces the
   normal product grid at #book/<slug>.
   ===================================================================== */
.store-front-booking {
    max-width: 520px;
    margin: 0 auto;
}
.store-front-booking-banner {
    text-align: center;
    padding: 1.5rem 1rem 1.25rem;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, #fff7ed 0%, #f3f9ff 100%);
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: 1rem;
}
.store-front-booking-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.2rem 0.75rem;
    border-radius: 999px;
    background: var(--color-primary, #0a7d2c);
    color: #fff;
    font-size: var(--text-xs, 0.75rem);
    font-weight: 700;
    margin-bottom: 0.6rem;
}
.store-front-booking-deposit {
    font-size: var(--text-sm, 0.9rem);
    color: #374151;
    line-height: 1.5;
    margin: 0;
}
.store-front-booking-deposit strong {
    color: var(--color-primary, #0a7d2c);
}
.store-front-booking-form {
    background: #fff;
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: 1rem;
    padding: 1.25rem 1.25rem 1.5rem;
    box-shadow: var(--shadow);
}
.store-front-booking-pay {
    width: 100%;
    margin-top: 0.5rem;
}

@media (max-width: 480px) {
    .store-front-booking-form {
        padding: 1rem;
    }
}
