/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --primary: #f09a1a;          /* Amarillo principal */
    --primary-dark: #c47a10;     /* Amarillo más oscuro */
    --secondary: #f5c518;
    --accent: #ffe566;
    --dark: #f5f5f5;             /* Texto claro */
    --gray: #a0a0a0;
    --light-gray: #2a2a2a;       /* Fondos de tarjetas */
    --white: #1a1a1a;            /* Fondo principal oscuro */
    --bg: #0d0d0d;               /* Fondo más negro */
    --card: #1f1f1f;             /* Tarjetas */
    --danger: #ff4d4d;
    --radius: 16px;
    --radius-sm: 12px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --nav-height: 64px;
    --header-height: 56px;
}

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--dark);
    line-height: 1.5;
    max-width: 480px;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 0 40px rgba(0,0,0,0.4);
}

/* Status bar (for notch devices) */
.status-bar {
    height: env(safe-area-inset-top, 0px);
    background: var(--card);
}

/* ===== HEADER ===== */
.app-header {
    height: var(--header-height);
    background: var(--card);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid #333;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: contain;
    object-position: center;
    border: 2px solid #f09a1a;
    background: #000;
    padding: 2px;
    flex-shrink: 0;
}
.logo-icon {
    font-size: 1.5rem;
}

.logo-text {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--primary);
}

.icon-btn {
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    cursor: pointer;
}

.icon-btn:active {
    background: var(--light-gray);
}

/* Search Panel */
.search-panel {
    background: var(--card);
    padding: 0 16px 12px;
    display: none;
    border-bottom: 1px solid #333;
}

.search-panel.active {
    display: block;
}

.search-input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #2a2a2a;
    border-radius: 12px;
    padding: 10px 14px;
}

.search-input-wrap input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    color: #f5f5f5;
}

.search-input-wrap input::placeholder {
    color: #777;
}

.clear-search {
    background: none;
    border: none;
    color: var(--gray);
    font-size: 1rem;
    cursor: pointer;
    padding: 4px;
}

/* ===== MAIN CONTENT ===== */
.app-content {
    height: calc(100vh - var(--header-height) - var(--nav-height) - env(safe-area-inset-top, 0px) - var(--safe-bottom));
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding-bottom: calc(var(--nav-height) + var(--safe-bottom) + 48px);
}

.screen {
    display: none;
    padding: 0 16px;
    animation: fadeIn 0.25s ease;
}

.screen.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Promo Banner */
.promo-banner {
    background: linear-gradient(135deg, #f5c518, #e6a800);
    border-radius: var(--radius);
    padding: 20px;
    margin: 16px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #111;
}

.promo-tag {
    background: rgba(255,255,255,0.25);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 6px;
}

.promo-content h2 {
    font-size: 1.4rem;
    margin-bottom: 2px;
}

.promo-content p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.promo-emoji {
    font-size: 3rem;
}

/* Section Header */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 20px 0 12px;
}

.section-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.product-count {
    font-size: 0.85rem;
    color: var(--gray);
}

/* Categories Scroll */
.categories-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.categories-scroll::-webkit-scrollbar {
    display: none;
}

.cat-chip {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 50px;
    border: 1.5px solid #444;
    background: var(--card);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dark);
    cursor: pointer;
    transition: all 0.2s;
}

.cat-chip.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #111;
}

.cat-chip span {
    font-size: 1.1rem;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding-bottom: 96px;
}

.product-card {
    background: var(--card);
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    transition: transform 0.15s;
    border: 1px solid #2a2a2a;
    height: 100%;
}

.product-card:active {
    transform: scale(0.97);
}

.product-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #ffffff;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.product-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 12px;
    box-sizing: border-box;
}

.product-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--secondary);
    color: white;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
}

.product-info {
    padding: 10px 12px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.3;
    min-height: 2.6em;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    margin-top: auto;
    margin-bottom: 8px;
}

.add-btn {
    width: 100%;
    padding: 8px;
    background: var(--primary);
    color: #111;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.add-btn:active {
    background: var(--primary-dark);
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray);
}

.empty-state .emoji {
    font-size: 4rem;
    margin-bottom: 12px;
}

.empty-state h3 {
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 6px;
}

/* ===== CART SCREEN ===== */
.cart-list {
    padding-top: 8px;
}

.cart-item {
    display: flex;
    gap: 12px;
    background: var(--card);
    border-radius: var(--radius-sm);
    padding: 14px;
    margin-bottom: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
    border: 1px solid #2a2a2a;
}

.cart-item-emoji {
    width: 64px;
    height: 64px;
    background: #ffffff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    font-size: 1.8rem;
}

.cart-item-emoji img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 3px;
}

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

.cart-item-name {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-price {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 8px;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.qty-control {
    display: flex;
    align-items: center;
    gap: 0;
    background: #2a2a2a;
    border-radius: 8px;
    overflow: hidden;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:active {
    background: #3a3a3a;
}

.qty-value {
    min-width: 28px;
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
}

.remove-btn {
    background: none;
    border: none;
    color: var(--danger);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    margin-left: auto;
    padding: 4px 0;
}

.cart-summary {
    background: var(--card);
    border-radius: var(--radius);
    padding: 20px;
    margin-top: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
    border: 1px solid #2a2a2a;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: var(--gray);
}

.summary-row.total {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #333;
    font-size: 1.15rem;
    color: var(--dark);
}

.btn-checkout {
    width: 100%;
    padding: 16px;
    background: var(--primary);
    color: #111;
    border: none;
    border-radius: 14px;
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 16px;
    transition: background 0.2s;
}

.btn-checkout:active {
    background: var(--primary-dark);
}

/* ===== PROFILE SCREEN ===== */
.profile-card {
    background: linear-gradient(135deg, #f5c518, #e6a800);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    color: #111;
    margin: 16px 0;
}

.profile-avatar {
    width: 64px;
    height: 64px;
    background: rgba(255,255,255,0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 12px;
}

.profile-card h3 {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.profile-email {
    opacity: 0.85;
    font-size: 0.9rem;
}

.menu-list {
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
    border: 1px solid #2a2a2a;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-bottom: 1px solid #2a2a2a;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
}

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

.menu-item:active {
    background: #2a2a2a;
}

.menu-icon {
    font-size: 1.25rem;
}

.menu-arrow {
    margin-left: auto;
    color: #666;
    font-size: 1.3rem;
}

.app-info {
    text-align: center;
    padding: 32px 0;
    color: #666;
    font-size: 0.8rem;
}

.app-info p {
    margin-bottom: 2px;
}

/* ===== BOTTOM NAV ===== */
.bottom-nav {
    pointer-events: auto !important;
    height: calc(var(--nav-height) + var(--safe-bottom));
    padding-bottom: var(--safe-bottom);
    background: var(--card);
    border-top: 1px solid #333;
    display: flex;
    align-items: flex-start;
    justify-content: space-around;
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    z-index: 1000;
    isolation: isolate;
}
.nav-item {
    pointer-events: auto !important;
    position: relative;
    z-index: 1001;
    -webkit-tap-highlight-color: transparent;
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 10px 0 0;
    background: none;
    border: none;
    color: #777;
    font-family: inherit;
    font-size: 0.7rem;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s;
}

.nav-item.active {
    color: var(--primary);
}

.nav-item svg {
    stroke: currentColor;
}

.nav-icon-wrap {
    position: relative;
}

.badge {
    position: absolute;
    top: -6px;
    right: -10px;
    background: var(--primary);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.badge:empty,
.badge[data-count="0"] {
    display: none;
}

/* ===== BOTTOM SHEET ===== */
.sheet-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s;
}

.sheet-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.bottom-sheet {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    width: 100%;
    max-width: 480px;
    background: var(--card);
    border-radius: 24px 24px 0 0;
    z-index: 1200;
    max-height: 92vh;
    overflow-y: auto;
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
    padding-bottom: calc(var(--safe-bottom) + 12px);
}

.bottom-sheet.active {
    transform: translateX(-50%) translateY(0);
}

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

.sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px 8px;
}

.sheet-header h3 {
    font-size: 1.2rem;
}

.sheet-close {
    background: #2a2a2a;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 0.9rem;
    cursor: pointer;
    color: var(--gray);
}

.sheet-body {
    padding: 8px 20px 24px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--gray);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1.5px solid #444;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
    background: #2a2a2a;
    color: #f5f5f5;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #777;
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.payment-option {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.payment-option input {
    display: none;
}

.radio-custom {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #444;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s;
    background: #2a2a2a;
}

.payment-option input:checked + .radio-custom {
    border-color: var(--primary);
    background: #3a3200;
}

.order-total-box {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background: #2a2a2a;
    padding: 14px 16px;
    border-radius: 14px;
    margin: 8px 0 4px;
    font-size: 0.95rem;
    gap: 0;
}
.order-total-box strong {
    font-size: 1.2rem;
    color: var(--primary);
}

/* ===== SUCCESS OVERLAY ===== */
.success-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.success-overlay.active {
    opacity: 1;
    visibility: visible;
}

.success-card {
    background: var(--card);
    border-radius: 24px;
    padding: 40px 28px;
    text-align: center;
    max-width: 340px;
    width: 100%;
    transform: scale(0.9);
    transition: transform 0.3s;
    border: 1px solid #333;
}

.success-overlay.active .success-card {
    transform: scale(1);
}

.success-check {
    width: 72px;
    height: 72px;
    background: #10b981;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 auto 20px;
}

.success-card h2 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.success-card p {
    color: var(--gray);
    font-size: 0.95rem;
}

.success-sub {
    margin: 8px 0 24px;
    font-size: 0.85rem !important;
}

/* ===== TOAST ===== */
.toast {
    position: fixed;
    bottom: calc(var(--nav-height) + var(--safe-bottom) + 16px);
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: #f5c518;
    color: #111;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 500;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.32, 0.72, 0, 1);
    white-space: nowrap;
    max-width: 90%;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    border: 1px solid #c9a012;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Product Detail */
.product-detail-body {
    padding-bottom: 28px;
}
.product-detail-body .btn-checkout {
    margin-top: 12px;
    margin-bottom: 8px;
    position: sticky;
    bottom: 0;
}

.product-detail-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    max-height: 280px;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.product-detail-image img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 16px;
    box-sizing: border-box;
}

.product-detail-price {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

.product-detail-desc {
    font-size: 0.95rem;
    color: #ccc;
    line-height: 1.55;
    margin-bottom: 16px;
}

.product-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.meta-tag {
    background: #2a2a2a;
    border: 1px solid #444;
    color: #ddd;
    font-size: 0.8rem;
    padding: 6px 12px;
    border-radius: 20px;
}

.product-card {
    cursor: pointer;
}

/* Desktop hint */
@media (min-width: 500px) {
    body {
        border-left: 1px solid #eee;
        border-right: 1px solid #eee;
    }
}

/* ===== FAVORITOS Y STOCK ===== */
.fav-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.45);
    font-size: 1rem;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.fav-btn.active {
    background: rgba(245, 197, 24, 0.9);
}
.stock-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 8px;
    z-index: 2;
}
.stock-badge.out {
    background: #c0392b;
    color: #fff;
}
.stock-badge.low {
    background: #f5c518;
    color: #111;
}
.product-card.out-of-stock .product-image img {
    opacity: 0.45;
}
.add-btn:disabled {
    background: #444 !important;
    color: #888 !important;
    cursor: not-allowed;
}
.fav-detail {
    cursor: pointer;
    border: none;
}
.fav-detail.active {
    background: #f5c518 !important;
    color: #111 !important;
    border-color: #f5c518 !important;
}
.stock-panel {
    margin-top: 16px;
    padding: 0 4px 80px;
}
.stock-hint {
    color: #888;
    font-size: 0.85rem;
    margin: 0 0 12px;
}
.stock-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.stock-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 10px 12px;
}
.stock-row img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    background: #fff;
    border-radius: 8px;
}
.stock-row-info {
    flex: 1;
    min-width: 0;
}
.stock-row-name {
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.stock-row-cat {
    font-size: 0.75rem;
    color: #888;
}
.stock-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}
.stock-controls button {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid #444;
    background: #2a2a2a;
    color: #f5c518;
    font-size: 1.1rem;
    cursor: pointer;
}
.stock-controls input {
    width: 48px;
    text-align: center;
    background: #111;
    border: 1px solid #444;
    color: #fff;
    border-radius: 8px;
    padding: 6px 4px;
    font-size: 0.9rem;
}
.stock-zero {
    color: #e74c3c;
    font-weight: 600;
}

/* Login stock */
.stock-login-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}
.stock-login-form label {
    font-size: 0.85rem;
    color: #aaa;
    margin-top: 6px;
}
.stock-login-form input {
    background: #111;
    border: 1px solid #444;
    color: #fff;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 1rem;
}
.stock-login-form input:focus {
    outline: none;
    border-color: #f5c518;
}
.stock-login-error {
    /* kept readable */
    color: #e74c3c;
    font-size: 0.85rem;
    margin: 4px 0 0;
}
.btn-logout-stock {
    width: 100%;
    margin-top: 10px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid #444;
    background: transparent;
    color: #aaa;
    font-size: 0.95rem;
    cursor: pointer;
}
.btn-logout-stock:active {
    background: #222;
}

/* Admin product row */
.btn-forgot {
    background: transparent;
    border: none;
    color: #f5c518;
    font-size: 0.9rem;
    margin-top: 8px;
    padding: 8px;
    cursor: pointer;
    text-decoration: underline;
}
.admin-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
}
.admin-top {
    display: flex;
    align-items: center;
    gap: 10px;
}
.admin-thumb {
    width: 56px;
    height: 56px;
    object-fit: contain;
    background: #fff;
    border-radius: 10px;
    flex-shrink: 0;
}
.admin-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.admin-fields label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.75rem;
    color: #aaa;
}
.admin-fields .price-input {
    background: #111;
    border: 1px solid #444;
    color: #fff;
    border-radius: 8px;
    padding: 8px;
    font-size: 0.95rem;
}
.img-label {
    grid-column: 1 / -1;
}
.img-label input.img-input {
    display: none;
}
.img-pick {
    display: inline-block;
    background: #2a2a2a;
    border: 1px dashed #f5c518;
    color: #f5c518;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    font-size: 0.9rem;
}

/* Ofertas */
.offer-card .offer-desc {
    font-size: 0.8rem;
    color: #aaa;
    margin: 4px 0 6px;
    line-height: 1.3;
}
.offer-prices {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}
.price-before {
    font-size: 0.85rem;
    color: #888;
    text-decoration: line-through;
}
.oferta-preview {
    width: 100%;
    max-height: 160px;
    object-fit: contain;
    background: #fff;
    border-radius: 12px;
    margin-top: 8px;
}

/* Banner instalar app */
.install-banner {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(72px + env(safe-area-inset-bottom));
    z-index: 300;
    background: #1a1a1a;
    border: 1px solid #f5c518;
    border-radius: 16px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.45);
}
.install-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.install-text strong {
    color: #f5c518;
    font-size: 0.95rem;
}
.install-text span {
    color: #aaa;
    font-size: 0.78rem;
}
#installBtn {
    background: #f5c518;
    color: #111;
    border: none;
    border-radius: 10px;
    padding: 10px 14px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    flex-shrink: 0;
}
.install-close {
    background: transparent;
    border: none;
    color: #888;
    font-size: 1.1rem;
    padding: 6px;
    cursor: pointer;
}

/* Editar nombre en stock */
.name-edit-label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.75rem;
    color: #aaa;
    width: 100%;
}
.name-input {
    background: #111;
    border: 1px solid #444;
    color: #fff;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 0.9rem;
    width: 100%;
    box-sizing: border-box;
}
.name-input:focus {
    outline: none;
    border-color: #f5c518;
}
#addProductForm {
    flex-direction: column;
}

/* Mapa de entrega */
.delivery-map {
    width: 100%;
    height: 220px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #333;
    margin-top: 8px;
    z-index: 1;
    background: #1a1a1a;
}
.map-hint {
    font-size: 0.8rem;
    color: #888;
    margin: 0 0 8px;
}
.map-actions {
    margin-bottom: 8px;
}
.map-btn {
    background: #2a2a2a;
    border: 1px solid #f5c518;
    color: #f5c518;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
}
.map-btn:active {
    background: #333;
}
.leaflet-container {
    font-family: inherit;
    background: #1a1a1a;
}

/* Estado del local */
.store-status-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #1a2e1a;
    border-bottom: 1px solid #2a4a2a;
    font-size: 0.85rem;
    color: #c8e6c9;
}
.store-status-bar.closed {
    background: #2e1a1a;
    border-bottom-color: #4a2a2a;
    color: #ffcdd2;
}
.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #888;
    flex-shrink: 0;
}
.status-dot.on { background: #4caf50; box-shadow: 0 0 6px #4caf50; }
.status-dot.off { background: #e74c3c; box-shadow: 0 0 6px #e74c3c; }
.status-hours {
    margin-left: auto;
    opacity: 0.8;
    font-size: 0.8rem;
}

/* Tarjetas info envío / tiempo */
.info-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 12px 0 4px;
}
.info-card {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 14px;
    padding: 12px 14px;
}
.info-icon { font-size: 1.4rem; line-height: 1; }
.info-card strong {
    display: block;
    color: #f5c518;
    font-size: 0.9rem;
    margin-bottom: 2px;
}
.info-card p {
    margin: 0;
    font-size: 0.78rem;
    color: #aaa;
    line-height: 1.35;
}

/* Contacto en perfil */
.store-contact-card {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
}
.store-contact-card h4 {
    margin: 0 0 8px;
    color: #f5c518;
    font-size: 1rem;
}
.store-contact-card p {
    margin: 4px 0;
    font-size: 0.9rem;
    color: #ccc;
}
.store-contact-card a {
    color: #25d366;
    text-decoration: none;
    font-weight: 600;
}

/* WhatsApp flotante */
.wa-float {
    position: fixed;
    right: 16px;
    bottom: calc(var(--nav-height, 64px) + env(safe-area-inset-bottom) + 12px);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
    z-index: 90; /* debajo del menú inferior para no bloquear Carrito/Perfil */
    border: none;
}
.wa-float:active { transform: scale(0.95); }

.min-order-warn {
    background: #f5c518;
    border: 1px solid #c9a012;
    color: #111;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 4px 0 10px;
    text-align: center;
}

/* Rendimiento: render más liviano de productos */
.product-card {
    content-visibility: auto;
    contain-intrinsic-size: 280px;
}
.product-grid img {
    content-visibility: auto;
}


/* Espacio extra al final de cada pantalla para no tapar botones */
#homeScreen,
#ofertasScreen,
#cartScreen,
#profileScreen {
    padding-bottom: 24px;
}
#cartScreen .btn-checkout,
#cartSummary {
    margin-bottom: 12px;
}


/* Aviso envío gratis */
.free-ship-warn {
    background: #2a2410;
    border: 1px solid #f5c518;
    color: #f5c518;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 4px 0 8px;
    text-align: center;
}
.free-ship-warn.ok {
    background: #1a2e1a;
    border-color: #4caf50;
    color: #a5d6a7;
}


/* Desglose del pedido (cuenta) */
.breakdown-toggle {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    border: none;
    color: #f5c518;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 4px 0 10px;
    cursor: pointer;
    text-align: left;
}
.breakdown-arrow {
    font-size: 0.75rem;
    color: #f5c518;
    transition: transform 0.2s;
}
.breakdown-toggle[aria-expanded="true"] .breakdown-arrow {
    transform: rotate(180deg);
}
.breakdown-panel {
    border-top: 1px solid #3a3a3a;
    border-bottom: 1px solid #3a3a3a;
    margin-bottom: 8px;
    padding: 8px 0;
}
.breakdown-panel[hidden] {
    display: none !important;
}
.breakdown-lines {
    max-height: 180px;
    overflow-y: auto;
}
.breakdown-line {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.85rem;
    color: #ddd;
    padding: 6px 0;
}
.bl-name { flex: 1; line-height: 1.35; }
.bl-price { font-weight: 600; color: #fff; white-space: nowrap; }
.bill-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 8px 0;
    font-size: 0.92rem;
    color: #ccc;
}
.bill-row.bill-total {
    border-top: 1px solid #444;
    margin-top: 4px;
    padding-top: 12px;
    color: #fff;
    font-weight: 600;
}
.cart-summary .breakdown-toggle {
    padding-left: 0;
    padding-right: 0;
}
.cart-summary .bill-row {
    padding-left: 0;
    padding-right: 0;
}


/* ===== ASISTENTE VIRTUAL ===== */
.bot-fab {
    position: fixed;
    left: 16px;
    bottom: calc(var(--nav-height, 64px) + env(safe-area-inset-bottom) + 12px);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid #111;
    background: #f5c518;
    color: #111;
    font-size: 1.4rem;
    box-shadow: 0 4px 16px rgba(245, 197, 24, 0.45);
    z-index: 95;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.bot-fab:active { transform: scale(0.95); }
.bot-panel {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(var(--nav-height, 64px) + env(safe-area-inset-bottom) + 70px);
    max-width: 380px;
    margin: 0 auto;
    height: min(62vh, 480px);
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    z-index: 1100;
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
    overflow: hidden;
}
.bot-panel[hidden] { display: none !important; }
.bot-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: #222;
    border-bottom: 1px solid #333;
}
.bot-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
}
.bot-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f5c518;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}
.bot-header strong {
    display: block;
    color: #f5c518;
    font-size: 0.95rem;
}
.bot-header small {
    color: #8bc34a;
    font-size: 0.75rem;
}
.bot-close {
    background: #2a2a2a;
    border: none;
    color: #aaa;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
}
.bot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.bot-msg {
    max-width: 88%;
    padding: 10px 12px;
    border-radius: 14px;
    font-size: 0.88rem;
    line-height: 1.4;
}
.bot-msg.bot {
    align-self: flex-start;
    background: #2a2a2a;
    color: #eee;
    border-bottom-left-radius: 4px;
}
.bot-msg.user {
    align-self: flex-end;
    background: #f5c518;
    color: #111;
    border-bottom-right-radius: 4px;
    font-weight: 500;
}
.bot-quick {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 12px;
    border-top: 1px solid #2a2a2a;
}
.bot-quick button {
    background: #2a2a2a;
    border: 1px solid #444;
    color: #f5c518;
    border-radius: 20px;
    padding: 6px 10px;
    font-size: 0.75rem;
    font-family: inherit;
    cursor: pointer;
}
.bot-input-row {
    display: flex;
    gap: 8px;
    padding: 10px 12px;
    border-top: 1px solid #333;
    background: #161616;
}
.bot-input-row input {
    flex: 1;
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 20px;
    padding: 10px 14px;
    color: #fff;
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
}
.bot-input-row button {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: #f5c518;
    color: #111;
    font-size: 1rem;
    cursor: pointer;
}


/* Editor de foto producto */
.img-editor-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.img-editor-overlay.active {
    display: flex;
}
.img-editor-card {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 16px;
    padding: 16px;
    width: 100%;
    max-width: 360px;
    text-align: center;
}
.img-editor-card h3 {
    margin: 0 0 6px;
    color: #f5c518;
}
#imgEditorCanvas {
    width: 100%;
    max-width: 320px;
    height: auto;
    aspect-ratio: 1;
    border-radius: 12px;
    background: #fff;
    margin: 12px auto;
    display: block;
}
.img-editor-scale-label {
    display: block;
    color: #ccc;
    font-size: 0.85rem;
    margin: 8px 0 12px;
    text-align: left;
}
.img-editor-scale-label input {
    width: 100%;
    margin-top: 6px;
}
.img-editor-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.save-product-btn {
    width: 100%;
}


.img-editor-modes {
    display: flex;
    gap: 8px;
    margin: 8px 0;
}
.img-mode-btn {
    flex: 1;
    background: #2a2a2a;
    border: 1px solid #444;
    color: #ccc;
    border-radius: 10px;
    padding: 8px;
    font-family: inherit;
    font-size: 0.85rem;
    cursor: pointer;
}
.img-mode-btn.active {
    border-color: #f5c518;
    color: #f5c518;
    background: #3a3200;
}
.img-editor-nudge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin: 8px 0;
}
.img-editor-nudge-mid {
    display: flex;
    gap: 24px;
}
.img-editor-nudge button {
    width: 40px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid #444;
    background: #2a2a2a;
    color: #f5c518;
    font-size: 0.85rem;
    cursor: pointer;
}
.img-editor-brush-wrap {
    display: none;
}
.img-editor-brush-wrap.show {
    display: block;
}
#imgEditorCanvas {
    cursor: move;
    touch-action: none;
}


.site-settings-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}
.site-settings-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.85rem;
    color: #ccc;
}
.site-settings-form input {
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 10px;
    padding: 12px;
    color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
}
.bot-fab svg { display: block; }
.bot-avatar {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: contain;
    object-position: center;
    border: 2px solid #f09a1a;
    background: #000;
    padding: 2px;
    flex-shrink: 0;
}


/* Combos y destacados */
.combo-scroll, .featured-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 4px 0 16px;
    margin: 0 -4px;
    -webkit-overflow-scrolling: touch;
}
.combo-scroll::-webkit-scrollbar, .featured-scroll::-webkit-scrollbar { display: none; }
.combo-card {
    flex: 0 0 220px;
    background: var(--card);
    border: 1px solid #3a2a10;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.combo-img {
    height: 110px;
    background: #fff;
    position: relative;
}
.combo-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}
.combo-info {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.combo-badge {
    align-self: flex-start;
    background: #f09a1a;
    color: #111;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 8px;
}
.combo-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
}
.combo-price {
    color: #f09a1a;
    font-weight: 700;
    font-size: 1rem;
}
.combo-add {
    margin-top: 6px;
    border: none;
    border-radius: 10px;
    background: #f09a1a;
    color: #111;
    font-weight: 700;
    font-family: inherit;
    padding: 8px;
    cursor: pointer;
}
.combo-add:disabled { opacity: 0.5; }
.featured-card {
    flex: 0 0 140px;
    background: var(--card);
    border: 1px solid #333;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
}
.featured-img {
    height: 90px;
    background: #fff;
}
.featured-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
}
.featured-info {
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.featured-name {
    font-size: 0.75rem;
    color: #eee;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.featured-price {
    color: #f09a1a;
    font-weight: 700;
    font-size: 0.85rem;
}
.delivery-eta {
    text-align: center;
    color: #f09a1a;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 8px 0 12px;
    padding: 8px;
    background: #2a1f0a;
    border: 1px solid #f09a1a55;
    border-radius: 10px;
}
.btn-checkout {
    background: #f09a1a !important;
    color: #111 !important;
    font-weight: 700;
}
.nav-item.active {
    color: #f09a1a;
}
.success-sub {
    color: #ddd !important;
    font-size: 0.95rem !important;
    line-height: 1.4;
}


.store-control-box {
    margin-top: 18px;
    padding: 14px;
    background: #222;
    border: 1px solid #444;
    border-radius: 14px;
}
.store-control-title {
    font-weight: 700;
    color: #f09a1a;
    margin: 0 0 6px;
    font-size: 0.95rem;
}
.store-control-status {
    color: #ddd;
    font-size: 0.88rem;
    margin: 0 0 12px;
}
.store-control-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.btn-store-open, .btn-store-close {
    border: none;
    border-radius: 12px;
    padding: 12px 10px;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
}
.btn-store-open {
    background: #2e7d32;
    color: #fff;
}
.btn-store-close {
    background: #c62828;
    color: #fff;
}


/* Stock por secciones */
.stock-cat-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}
.stock-cat-chip {
    background: #2a2a2a;
    border: 1px solid #444;
    color: #ccc;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 0.78rem;
    font-family: inherit;
    cursor: pointer;
}
.stock-cat-chip.active {
    background: #3a2a10;
    border-color: #f09a1a;
    color: #f09a1a;
    font-weight: 600;
}
.stock-section {
    margin-bottom: 18px;
}
.stock-section-title {
    margin: 0 0 10px;
    padding: 8px 12px;
    background: #2a2a2a;
    border-left: 4px solid #f09a1a;
    border-radius: 0 10px 10px 0;
    color: #f09a1a;
    font-size: 0.95rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.stock-section-title span {
    color: #888;
    font-weight: 500;
    font-size: 0.8rem;
}


/* Formularios admin (combos / ofertas) */
.oferta-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 12px;
    padding: 14px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 16px;
}
.oferta-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #f09a1a;
}
.oferta-form input[type="text"],
.oferta-form input[type="number"],
.oferta-form textarea {
    width: 100%;
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 12px;
    padding: 12px 14px;
    color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
}
.oferta-form input:focus,
.oferta-form textarea:focus {
    border-color: #f09a1a;
}
.oferta-form textarea {
    resize: vertical;
    min-height: 64px;
}
.oferta-form .form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.oferta-form .img-label {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.oferta-form .img-pick {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border: 1px dashed #f09a1a;
    border-radius: 12px;
    color: #f09a1a;
    background: #2a2410;
    cursor: pointer;
    font-weight: 600;
}
.oferta-form #comboImgPreview,
.oferta-form #ofertaImgPreview {
    width: 100%;
    max-height: 180px;
    object-fit: contain;
    background: #fff;
    border-radius: 12px;
    margin-top: 4px;
}
.oferta-form .btn-checkout {
    margin-top: 4px;
}
#combosPanel .section-header h3,
#ofertasPanel .section-header h3 {
    color: #f09a1a;
}
#combosAdminList .admin-row,
#ofertasAdminList .admin-row {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 14px;
    padding: 12px;
    margin-bottom: 10px;
}

.distance-ok {
    background: #1a2e1a !important;
    border: 1px solid #4caf50 !important;
    color: #a5d6a7 !important;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
}

.cart-map-block {
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #333;
}
.cart-map-title {
    font-weight: 700;
    color: #f09a1a;
    margin: 0 0 4px;
    font-size: 0.95rem;
}
.cart-summary .delivery-map {
    height: 200px;
    border-radius: 12px;
    margin-top: 8px;
}

.btn-add-more {
    display: block;
    width: 100%;
    margin: 8px 0 4px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px dashed #f09a1a;
    background: #2a2410;
    color: #f09a1a;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
}
.btn-add-more:active { opacity: 0.85; }

.store-closed-banner {
    background: #5c1010;
    color: #ffcdd2;
    text-align: center;
    padding: 12px 16px;
    border-bottom: 2px solid #e74c3c;
    z-index: 45;
    position: relative;
}
.store-closed-banner strong {
    display: block;
    color: #fff;
    font-size: 1rem;
    margin-bottom: 4px;
}
.store-closed-banner span {
    font-size: 0.85rem;
    line-height: 1.35;
}
.social-links {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}
.social-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 20px;
    background: #2a2a2a;
    border: 1px solid #f09a1a;
    color: #f09a1a;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
}
.share-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 14px;
}
.btn-share {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid #f09a1a;
    background: #2a2410;
    color: #f09a1a;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
}
.btn-share.wa {
    background: #1b5e20;
    border-color: #2e7d32;
    color: #fff;
}
.qr-box {
    margin-top: 16px;
    padding: 14px;
    background: #111;
    border: 1px solid #333;
    border-radius: 14px;
    text-align: center;
}
.qr-box img {
    margin: 10px auto 0;
    display: block;
    border-radius: 8px;
    background: #fff;
    padding: 8px;
}
