/* ═══════════════════════════════════════════
   STORE — Consumer public page
═══════════════════════════════════════════ */

/* ── Page wrapper ── */
.store-page {
    min-height: 100vh;
    background: var(--page-bg);
    font-family: inherit;
}

/* ── HERO ── */
.store-hero {
    position: relative;
    height: 280px;
    overflow: visible;
    background: #1a2e1a;
}
.store-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.store-hero-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a3a1a 0%, #2d5a2d 100%);
}
.store-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
        rgba(0,0,0,0.15) 0%,
        rgba(0,0,0,0.0) 40%,
        rgba(0,0,0,0.6) 100%);
}

/* Top bar inside hero */
.store-topbar {
    position: absolute;
    top: 0; left: 0; right: 0;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
}
.store-topbar-logo {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

/* Business info at bottom of hero */
.store-hero-info {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 20px 20px 20px;
    display: flex;
    align-items: flex-end;
    gap: 14px;
}
.store-hero-avatar {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    border: 2.5px solid rgba(255,255,255,0.9);
    overflow: hidden;
    background: var(--green-light);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    color: var(--green-dark);
    box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.store-hero-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.store-hero-name {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.4px;
    margin-bottom: 4px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
    line-height: 1.2;
}
.store-hero-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 12px;
    color: rgba(255,255,255,0.85);
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.store-hero-wa {
    color: #4ade80;
    font-weight: 600;
    text-decoration: none;
}

/* ── BODY ── */
.store-body {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 16px 48px;
}
.store-desc {
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.6;
    padding: 16px 0 4px;
    margin: 0;
}

/* ── Section ── */
.store-section { margin-top: 24px; }
.store-section-header {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 14px;
}
.store-section-title { font-size: 17px; font-weight: 700; letter-spacing: -0.3px; margin: 0; }
.store-section-count { font-size: 12px; color: var(--text-3); }

/* ── Menus grid — 2 col on desktop, 1 col mobile ── */
.menus-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
@media (max-width: 360px) {
    .menus-grid { grid-template-columns: 1fr; }
}

/* ── Menu card — vertical (ML style) ── */
.menu-card {
    background: var(--white);
    border: 0.5px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.15s, transform 0.15s;
}
.menu-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.10); transform: translateY(-2px); }
.menu-card--sold-out { opacity: 0.6; }

/* Photo — top, full width */
.menu-card-photo {
    position: relative;
    width: 100%;
    height: 160px;
    background-color: var(--green-light);
    flex-shrink: 0;
    overflow: hidden;
}
.menu-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.menu-detail-photo {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 12px;
    margin-bottom: 18px;
}
.menu-card-photo-placeholder {
    position: absolute;
    inset: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 44px;
    background: linear-gradient(135deg, #f0f7f0, #e0f0e0);
}
.menu-sold-badge {
    position: absolute; top: 8px; left: 8px; z-index: 1;
    font-size: 10px; font-weight: 700;
    background: rgba(0,0,0,0.65); color: #fff;
    border-radius: 6px; padding: 2px 7px;
    text-transform: uppercase; letter-spacing: 0.5px;
}

/* Card body — below photo */
.menu-card-body {
    flex: 1; padding: 12px 12px 14px;
    display: flex; flex-direction: column;
    min-width: 0;
}
.menu-card-name {
    font-size: 13px; font-weight: 600;
    margin: 0 0 4px; letter-spacing: -0.2px;
    line-height: 1.3;
}
.menu-card-desc {
    font-size: 12px; color: var(--text-3); line-height: 1.45;
    margin: 0 0 8px;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}

/* Tags */
.menu-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.menu-tag {
    font-size: 10px; background: var(--page-bg);
    border: 0.5px solid var(--border); border-radius: 99px;
    padding: 2px 8px; color: var(--text-2); white-space: nowrap;
}

/* Stars */
.menu-stars { display: flex; align-items: center; gap: 2px; margin-bottom: 8px; }
.menu-stars-count { font-size: 10px; color: var(--text-3); margin-left: 2px; }

/* Card footer — price centered, button full width */
.menu-card-footer {
    margin-top: auto;
    padding-top: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.menu-price { font-size: 20px; font-weight: 700; color: var(--green-dark); letter-spacing: -0.5px; line-height: 1; text-align: center; }
.menu-units { font-size: 10px; color: var(--text-3); margin-top: 2px; text-align: center; }

/* Order button — full width */
.menu-order-btn {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    width: 100%;
    background: var(--green); color: #fff;
    border: none; border-radius: 10px;
    padding: 10px 14px; font-size: 13px; font-weight: 700;
    cursor: pointer; transition: background 0.15s, transform 0.1s;
}
.menu-order-btn:hover { background: var(--green-dark); transform: scale(1.02); }
.menu-order-btn--disabled {
    background: var(--border); color: var(--text-3); cursor: not-allowed; width: 100%;
    display: flex; align-items: center; justify-content: center; padding: 10px 14px;
    border-radius: 10px; font-size: 13px;
}
.menu-order-btn--disabled:hover { background: var(--border); transform: none; }

/* ── Empty state ── */
.store-empty { text-align: center; padding: 56px 24px; color: var(--text-3); }
.store-empty-icon { font-size: 40px; margin-bottom: 12px; }
.store-empty-title { font-size: 15px; font-weight: 600; color: var(--text-2); margin-bottom: 4px; }
.store-empty-sub { font-size: 13px; }

/* ── Plans CTA ── */
.store-plans-cta {
    margin-top: 20px; padding: 16px 20px;
    background: var(--green-light); border: 0.5px solid var(--green-border);
    border-radius: 14px; display: flex; align-items: center;
    justify-content: space-between; gap: 12px;
}

/* ── Footer ── */
.store-footer {
    margin-top: 36px; text-align: center;
    font-size: 12px; color: var(--text-3);
    display: flex; align-items: center; justify-content: center; gap: 6px;
}
.public-footer {
    border-top: 0.5px solid var(--border); background: var(--white);
    padding: 28px 24px; margin-top: 48px;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 12px; font-size: 12px; color: var(--text-3);
}
.public-footer a { color: var(--text-3); text-decoration: none; }
.public-footer a:hover { color: var(--text-1); }

/* ── MODAL BACKDROP ── */
.modal-backdrop {
    position: fixed; inset: 0; z-index: 300;
    background: rgba(0,0,0,.45);
    display: flex; align-items: flex-end; justify-content: center;
    backdrop-filter: blur(2px);
}
.modal-sheet {
    position: relative; background: var(--white);
    border-radius: 20px 20px 0 0;
    width: 100%; max-width: 520px; max-height: 90vh;
    overflow-y: auto; padding: 12px 24px 32px;
}
.modal-handle {
    width: 36px; height: 4px; background: var(--border-med);
    border-radius: 99px; margin: 0 auto 16px;
}
.modal-close {
    position: absolute; top: 14px; right: 16px;
    background: var(--page-bg); border: 0.5px solid var(--border);
    border-radius: 50%; width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: var(--text-2); padding: 0; transition: background 0.15s;
}
.modal-close:hover { background: var(--border); }
.modal-loading {
    display: flex; flex-direction: column; align-items: center;
    gap: 12px; padding: 40px 24px; color: var(--text-3); font-size: 13px;
}
.modal-loading-spinner {
    width: 24px; height: 24px;
    border: 2px solid var(--border); border-top-color: var(--green);
    border-radius: 50%; animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Chip / pill selectors (payment & delivery) ── */
.chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}
.chip-selector {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1.5px solid var(--border-med);
    border-radius: 99px;
    padding: 8px 15px;
    cursor: pointer;
    user-select: none;
    background: white;
    color: var(--text-2);
    font-size: 13px;
    font-weight: 500;
    transition: background .18s, border-color .18s, color .18s, box-shadow .18s;
}
.chip-selector.chip-active {
    background: var(--green);
    border-color: var(--green);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(29,158,117,.28);
}

/* ── Plans page ── */
.plans-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.plan-card { background: var(--white); border: 0.5px solid var(--border); border-radius: var(--radius-xl); padding: 20px; }
.plan-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.plan-price { font-size: 22px; font-weight: 700; color: var(--green-dark); margin-bottom: 14px; }
.plan-frequency { font-size: 11px; color: var(--text-3); }
.plan-benefits { list-style: none; margin-bottom: 16px; }
.plan-benefits li { font-size: 12px; padding: 4px 0; color: var(--text-2); }
.plan-benefits li::before { content: '✓ '; color: var(--green); font-weight: 600; }

/* ── Ingredient tag (shared) ── */
.ingredient-tag {
    font-size: 10px; background: var(--page-bg);
    border: 0.5px solid var(--border); border-radius: 99px;
    padding: 2px 9px; color: var(--text-2);
}

/* ── Public navbar (still used by other pages that extend base_public) ── */
.public-nav {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 24px; height: var(--nav-h);
    background: var(--white); border-bottom: 0.5px solid var(--border);
    margin-bottom: 28px; position: sticky; top: 0; z-index: 100;
}
.public-nav-logo {
    font-size: 18px; font-weight: 600; color: var(--green-dark);
    text-decoration: none; display: flex; align-items: center; gap: 8px;
}

/* ── STICKY NAV ── */
.store-sticky-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 400;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(8px);
    border-bottom: 0.5px solid var(--border);
    padding: 0 20px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    transform: translateY(-100%);
    transition: transform 0.22s cubic-bezier(.4,0,.2,1);
    box-shadow: 0 2px 12px rgba(0,0,0,.07);
}
.store-sticky-nav--visible { transform: translateY(0); }

.store-sticky-nav-logo {
    display: flex; align-items: center; gap: 5px;
    font-size: 13px; font-weight: 700; color: var(--green-dark);
    text-decoration: none; flex-shrink: 0;
}
.store-sticky-nav-biz {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; font-weight: 600; color: var(--text-1);
    overflow: hidden; flex: 1; justify-content: center;
}
.store-sticky-nav-avatar {
    width: 28px; height: 28px; border-radius: 7px;
    overflow: hidden; background: var(--green-light);
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700; color: var(--green-dark);
    flex-shrink: 0;
}
.store-sticky-nav-avatar img { width:100%; height:100%; object-fit:cover; }
.store-sticky-nav-user {
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--green-light); border: 1.5px solid var(--green-border);
    display: flex; align-items: center; justify-content: center;
    color: var(--green-dark); flex-shrink: 0; overflow: hidden;
    text-decoration: none;
}
.store-sticky-nav-login {
    font-size: 12px; font-weight: 600; color: var(--green-dark);
    background: var(--green-light); border: 1px solid var(--green-border);
    border-radius: 8px; padding: 5px 12px; text-decoration: none; flex-shrink: 0;
}

/* ── INFO CARDS ROW ── */
.store-info-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}
.store-info-card {
    display: flex; align-items: center; gap: 10px;
    background: var(--white);
    border: 0.5px solid var(--border);
    border-radius: 12px;
    padding: 10px 14px;
    flex: 1 1 180px;
    text-decoration: none;
    color: inherit;
}
.store-info-card--link:hover,
.store-info-card--whatsapp:hover { border-color: var(--green-border); background: var(--green-light); }
.store-info-icon {
    width: 30px; height: 30px;
    background: var(--green-light); border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.store-info-label { font-size: 10px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.4px; font-weight: 600; }
.store-info-value { font-size: 13px; color: var(--text-1); font-weight: 500; margin-top: 1px; }

/* ── REVIEW FORM CARD ── */
.review-form-card {
    background: var(--white);
    border: 0.5px solid var(--border);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 16px;
}
.review-form-head {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 14px;
}
.review-form-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--green-light); overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700; color: var(--green-dark); flex-shrink: 0;
}
.review-form-avatar img { width:100%; height:100%; object-fit:cover; }
.review-textarea {
    width: 100%; box-sizing: border-box;
    border: 1.5px solid var(--border-med); border-radius: 10px;
    padding: 10px 12px; font-size: 13px; font-family: inherit;
    color: var(--text-1); resize: vertical; background: var(--page-bg);
    transition: border-color .15s;
    min-height: 72px;
}
.review-textarea:focus { outline: none; border-color: var(--green); background: #fff; }
.review-textarea--filled { background: #fff; }
.review-submit-btn {
    background: var(--green); color: #fff;
    border: none; border-radius: 9px; padding: 8px 18px;
    font-size: 13px; font-weight: 700; cursor: pointer; transition: background .15s;
}
.review-submit-btn:hover:not(:disabled) { background: var(--green-dark); }
.review-submit-btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* Login prompt for reviews */
.review-login-prompt {
    display: flex; align-items: center; gap: 8px;
    background: var(--green-light); border: 0.5px solid var(--green-border);
    border-radius: 12px; padding: 12px 16px;
    font-size: 13px; color: var(--text-2); margin-bottom: 16px;
}

/* ── REVIEWS LIST ── */
.reviews-list { display: flex; flex-direction: column; gap: 10px; }
.review-item {
    background: var(--white);
    border: 0.5px solid var(--border);
    border-radius: 14px; padding: 14px;
}
.review-item-head {
    display: flex; align-items: flex-start; gap: 10px; margin-bottom: 8px;
}
.review-item-avatar {
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--green-light); overflow: hidden; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700; color: var(--green-dark);
}
.review-item-avatar img { width:100%; height:100%; object-fit:cover; }
.review-item-comment {
    font-size: 13px; color: var(--text-2); line-height: 1.55; margin: 0;
}

/* ═══════════════════════════════════
   RESPONSIVE
═══════════════════════════════════ */
@media (max-width: 600px) {
    .store-hero { height: 220px; }
    .store-hero-name { font-size: 18px; }
    .store-hero-avatar { width: 52px; height: 52px; font-size: 18px; border-radius: 12px; }
    .store-hero-info { padding: 16px; gap: 10px; }
    .store-body { padding: 0 12px 40px; }
    .menu-card-photo { width: 100%; height: 130px; min-width: auto; }
    .menu-card-body { padding: 12px 14px; }
    .menu-card-name { font-size: 14px; }
    .menu-price { font-size: 16px; }
    .menu-order-btn { padding: 7px 12px; font-size: 12px; }
    .plans-grid { grid-template-columns: 1fr; }
    .public-nav {
        padding: 0 12px;
        gap: 4px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
    }
    .public-nav > * { flex-shrink: 0; }
    .public-nav-logo { font-size: 15px; white-space: nowrap; }
    .public-nav-logo img { width: 22px; height: 22px; }
    .public-nav > div[style*="display:flex"] { gap: 4px; }
    .public-nav-user { font-size: 11px; padding: 4px 8px 4px 6px; white-space: nowrap; max-width: 100px; overflow: hidden; text-overflow: ellipsis; }
    .public-nav-user svg { width: 12px; height: 12px; }
}

@media (max-width: 380px) {
    .menu-card-photo { width: 100%; height: 110px; min-width: auto; }
    .menu-card-body { padding: 10px 12px; }
}


