*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Announce bar ── */
.announce-bar {
    background: var(--primary);
    color: #0d1f2d;
    font-size: .78rem;
    font-weight: 600;
    padding: 7px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px 14px;
    text-align: center;
}
.announce-bar .sep { opacity: .4; }

:root {
    --bg:           #1a2535;
    --bg-card:      #223046;
    --bg-card-hover:#263858;
    --primary:      #3ecfb0;
    --primary-dark: #2aaa90;
    --text:         #ffffff;
    --text-muted:   #8a9bb5;
    --border:       rgba(255,255,255,.08);
    --radius:       10px;
    --shadow:       0 4px 20px rgba(0,0,0,.35);
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
}

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

/* ── Header ── */
.site-header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 0;
    position: sticky; top: 0; z-index: 50;
    box-shadow: var(--shadow);
}
.site-header .container {
    display: flex; align-items: center;
    justify-content: space-between;
    height: 68px;
    gap: 20px;
}

/* Logo */
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-logo {
    width: 44px; height: 44px;
    border-radius: 10px;
    object-fit: contain;
}
.brand-monogram {
    width: 44px; height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1.1rem;
    color: var(--bg); letter-spacing: -.5px;
    flex-shrink: 0;
}
.brand-info { display: flex; flex-direction: column; }
.brand-name {
    font-size: 1.05rem; font-weight: 700;
    color: var(--text); line-height: 1.1;
}
.brand-sub { font-size: .72rem; color: var(--primary); letter-spacing: .5px; text-transform: uppercase; }

/* Nav */
.site-header nav { display: flex; align-items: center; gap: 8px; }
.site-header nav a {
    color: var(--text-muted); text-decoration: none;
    font-size: .88rem; padding: 6px 14px;
    border-radius: 6px; transition: all .2s;
}
.site-header nav a:hover { color: var(--text); background: rgba(255,255,255,.06); }
.site-header nav a.btn-primary {
    background: var(--primary); color: var(--bg);
    font-weight: 600;
}
.site-header nav a.btn-primary:hover { background: var(--primary-dark); }

.admin-header { background: #131e2d; }

/* ── DB Status indicator ── */
.db-status-wrap {
    display: flex; align-items: center; gap: 6px;
    padding: 4px 10px 4px 8px;
    background: rgba(255,255,255,.06);
    border-radius: 20px;
    cursor: default;
    user-select: none;
    border: 1px solid rgba(255,255,255,.08);
}
.db-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: #555;
    display: inline-block;
    flex-shrink: 0;
    transition: background .4s, box-shadow .4s;
}
.db-status-label {
    font-size: .75rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: color .4s;
    white-space: nowrap;
}

/* ── Main ── */
main.container { padding: 28px 20px 80px; }

/* ── Section title ── */
.section-title {
    font-size: .85rem; font-weight: 700;
    color: var(--primary); letter-spacing: 1px;
    text-transform: uppercase;
    margin: 32px 0 14px;
    padding-left: 12px;
    border-left: 3px solid var(--primary);
}

/* ── Product grid ── */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
    gap: 14px;
}

/* ── Card ── */
.card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card.hidden { opacity: .35; }
.card.visible { opacity: 1; }

/* ── Admin promo badge no card ── */
.admin-promo-badge {
    position: absolute; top: 8px; left: 8px;
    background: linear-gradient(135deg, #ff6b35, #ff4d6d);
    color: #fff;
    font-size: .68rem; font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    letter-spacing: .04em;
    box-shadow: 0 2px 8px rgba(255,77,109,.45);
    pointer-events: none;
}
.admin-price-promo-wrap {
    display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px;
    margin-top: 2px;
}
.admin-price-orig {
    font-size: .8rem; color: var(--text-muted);
    text-decoration: line-through;
}
.admin-price-promo {
    font-size: 1rem; font-weight: 700; color: #ff6b35;
}
.admin-promo-validade {
    font-size: .72rem; color: var(--text-muted);
    background: rgba(255,107,53,.12);
    padding: 1px 6px; border-radius: 8px;
    white-space: nowrap;
}

/* ── Card image ── */
.card-img-wrap { position: relative; width: 100%; aspect-ratio: 3/4; overflow: hidden; }
.card-img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
}
.card-img-placeholder {
    width: 100%; height: 100%;
    background: rgba(255,255,255,.04);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted); font-size: .78rem;
}

/* ── Card body ── */
.card-body { padding: 12px; flex: 1; }

.badge {
    display: inline-block;
    background: rgba(62,207,176,.15);
    color: var(--primary);
    font-size: .67rem; font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: .3px;
    margin-bottom: 6px;
}

.card-body h3 {
    font-size: .85rem; font-weight: 600;
    line-height: 1.35; color: var(--text);
    margin-bottom: 5px;
}

.desc-custom { font-size: .78rem; color: var(--text-muted); margin: 4px 0 6px; line-height: 1.4; }
.stock { font-size: .75rem; color: var(--text-muted); margin-bottom: 4px; }
.price { font-size: 1.05rem; font-weight: 700; color: var(--primary); margin-top: 6px; }

/* ── Card footer ── */
.card-footer {
    padding: 9px 12px;
    border-top: 1px solid var(--border);
    display: flex; align-items: center; gap: 8px;
}

/* ── Edit button ── */
.btn-edit {
    margin-left: auto;
    background: none;
    border: 1px solid rgba(62,207,176,.4);
    color: var(--primary); padding: 4px 10px;
    border-radius: 6px; font-size: .75rem;
    cursor: pointer; white-space: nowrap;
}
.btn-edit:hover { background: rgba(62,207,176,.15); }

/* ── Toggle switch ── */
.toggle { display: flex; align-items: center; gap: 7px; cursor: pointer; flex-shrink: 0; }
.toggle input { display: none; }

.slider {
    width: 38px; height: 20px;
    background: rgba(255,255,255,.15);
    border-radius: 20px; position: relative;
    transition: background .2s; flex-shrink: 0;
}
.slider::after {
    content: '';
    position: absolute;
    width: 16px; height: 16px;
    background: #fff; border-radius: 50%;
    top: 2px; left: 2px;
    transition: left .2s;
    box-shadow: 0 1px 3px rgba(0,0,0,.3);
}
.toggle input:checked + .slider { background: var(--primary); }
.toggle input:checked + .slider::after { left: 20px; }
.toggle-label { font-size: .75rem; color: var(--text-muted); min-width: 40px; }

/* ── Admin info bar ── */
.admin-info {
    background: rgba(62,207,176,.1);
    color: var(--primary);
    border: 1px solid rgba(62,207,176,.2);
    padding: 10px 16px; border-radius: 8px;
    font-size: .88rem; margin-bottom: 20px;
}

/* ── DB error ── */
.db-error {
    background: rgba(220,53,69,.1);
    color: #ff6b7a;
    border: 1px solid rgba(220,53,69,.2);
    padding: 24px; border-radius: 10px; line-height: 1.8;
}
.db-error code {
    background: rgba(255,255,255,.08);
    padding: 2px 7px; border-radius: 4px; font-family: monospace;
}

/* ── Cache notice (banco offline mas com cache) ── */
.cache-notice {
    background: rgba(255,167,38,.1);
    border: 1px solid rgba(255,167,38,.3);
    color: #ffa726;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: .83rem;
    font-weight: 600;
    margin-bottom: 16px;
}

/* ── Empty state ── */
.empty { text-align: center; color: var(--text-muted); padding: 60px 0; font-size: 1.1rem; }

/* ── Multi-image grid (admin modal) ── */
.imgs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(88px,1fr));
    gap: 8px; min-height: 20px;
}
.img-thumb {
    position: relative; border-radius: 8px; overflow: hidden;
    aspect-ratio: 1/1; background: rgba(255,255,255,.05);
}
.img-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-actions {
    position: absolute; top: 2px; right: 2px;
    display: flex; gap: 3px; opacity: 0; transition: opacity .15s;
}
.img-thumb:hover .thumb-actions { opacity: 1; }
.btn-star, .btn-del {
    background: rgba(0,0,0,.75); border: none;
    border-radius: 4px; padding: 2px 5px;
    font-size: .72rem; cursor: pointer; color: #fff;
}
.btn-star.active { background: #f59e0b; }
.btn-del:hover { background: #ef4444; }
.thumb-badge {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: rgba(62,207,176,.85); color: #000;
    font-size: .62rem; font-weight: 700;
    text-align: center; padding: 2px;
}
/* ── Upload zone ── */
.upload-zone {
    border: 2px dashed rgba(255,255,255,.2);
    border-radius: 8px; padding: 18px;
    text-align: center; cursor: pointer;
    color: var(--text-muted); font-size: .85rem;
    transition: border-color .2s, color .2s;
}
.upload-zone:hover { border-color: var(--primary); color: var(--primary); }

/* ── Modal ── */
.modal-overlay {
    display: none; position: fixed;
    inset: 0; background: rgba(0,0,0,.7); z-index: 100;
}
.modal {
    display: none; position: fixed;
    top: 50%; left: 50%; transform: translate(-50%,-50%);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    width: 90%; max-width: 420px;
    flex-direction: column;
    box-shadow: 0 16px 48px rgba(0,0,0,.5);
    z-index: 101; max-height: 90vh; overflow-y: auto;
}
.modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 20px 14px;
    border-bottom: 1px solid var(--border);
}
.modal-header h3 { font-size: .95rem; color: var(--text); }
.modal-close {
    background: none; border: none; font-size: 1.1rem;
    cursor: pointer; color: var(--text-muted); padding: 0 4px;
}
.modal-close:hover { color: var(--text); }
.modal-body { padding: 16px 20px 22px; display: flex; flex-direction: column; gap: 12px; }

.img-preview-wrap { width: 100%; }
.modal-body .card-img { height: 200px; border-radius: 8px; width: 100%; object-fit: cover; }
.img-upload-placeholder {
    width: 100%; height: 150px;
    border: 2px dashed rgba(255,255,255,.15);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted); font-size: .88rem; cursor: pointer;
}
.img-upload-placeholder:hover { border-color: var(--primary); color: var(--primary); }

.btn-upload {
    background: rgba(255,255,255,.06);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 9px 14px; border-radius: 6px;
    cursor: pointer; font-size: .88rem; width: 100%;
}
.btn-upload:hover { background: rgba(255,255,255,.1); }

.field-label { font-size: .82rem; font-weight: 600; color: var(--text-muted); }
.modal-body textarea {
    width: 100%; padding: 10px;
    background: rgba(255,255,255,.05);
    border: 1px solid var(--border);
    border-radius: 6px; color: var(--text);
    font-size: .88rem; resize: vertical;
    font-family: inherit;
}
.modal-body textarea:focus { outline: none; border-color: var(--primary); }
.modal-body textarea::placeholder { color: var(--text-muted); }

.btn-save {
    background: var(--primary); color: var(--bg);
    border: none; padding: 12px; border-radius: 8px;
    font-size: .95rem; font-weight: 700; cursor: pointer; width: 100%;
}
.btn-save:hover { background: var(--primary-dark); }
.modal-msg { font-size: .82rem; text-align: center; min-height: 18px; }

/* ── Login ── */
body:has(.login-box) {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.login-box {
    width: 100%;
    max-width: 480px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 52px 48px;
    border-radius: 18px;
    box-shadow: var(--shadow);
    text-align: center;
}
.login-logo {
    width: 90px; height: 90px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; font-weight: 700; color: var(--bg);
    margin: 0 auto 24px;
}
.login-box h2 { color: var(--text); margin-bottom: 8px; font-size: 1.75rem; }
.login-box p { color: var(--text-muted); font-size: 1rem; margin-bottom: 32px; }
.login-box input {
    width: 100%; padding: 14px 18px;
    background: rgba(255,255,255,.06);
    border: 1px solid var(--border);
    border-radius: 10px; color: var(--text);
    font-size: 1.05rem; margin-bottom: 16px;
    box-sizing: border-box;
}
.login-box input:focus { outline: none; border-color: var(--primary); }
.login-box input::placeholder { color: var(--text-muted); }
.login-box button {
    width: 100%; background: var(--primary); color: var(--bg);
    border: none; padding: 15px; border-radius: 10px;
    font-size: 1.1rem; font-weight: 700; cursor: pointer;
}
.login-box button:hover { background: var(--primary-dark); }
.error { color: #ff6b7a; font-size: .95rem; margin-bottom: 14px; }

/* ── Footer ── */
.site-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    margin-top: 40px;
}
.footer-map { padding: 32px 0 24px; }
.footer-map-title {
    font-size: .85rem; font-weight: 700;
    color: var(--primary); letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 10px;
    padding-left: 12px;
    border-left: 3px solid var(--primary);
}
.map-address { color: var(--text-muted); font-size: .88rem; margin-bottom: 14px; }
.map-wrap { border-radius: 10px; overflow: hidden; border: 1px solid var(--border); }
.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 20px 0;
}
.footer-inner {
    display: flex; align-items: center;
    justify-content: space-between;
    flex-wrap: wrap; gap: 12px;
    font-size: .82rem; color: var(--text-muted);
}
.footer-inner strong { color: var(--primary); }
.footer-links { display: flex; gap: 16px; }
.footer-links a {
    color: var(--primary); text-decoration: none;
    font-weight: 600; font-size: .82rem;
}
.footer-links a:hover { text-decoration: underline; }
.footer-copy { color: var(--text-muted); font-size: .78rem; }

/* ── WhatsApp floating button ── */
.whatsapp-float {
    position: fixed;
    bottom: 24px; right: 24px;
    width: 58px; height: 58px;
    background: #25D366;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 16px rgba(37,211,102,.4);
    z-index: 200;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s;
}
.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(37,211,102,.6);
}
.whatsapp-float svg { width: 30px; height: 30px; fill: #fff; }

/* ── Cart button (header) ── */
.btn-cart {
    position: relative;
    background: rgba(62,207,176,.15);
    border: 1px solid rgba(62,207,176,.3);
    color: var(--primary);
    border-radius: 8px; padding: 7px 12px;
    cursor: pointer;
    display: flex; align-items: center; gap: 6px;
    transition: background .2s;
}
.btn-cart:hover { background: rgba(62,207,176,.25); }
.cart-count {
    background: #ef4444; color: #fff;
    font-size: .68rem; font-weight: 700;
    border-radius: 10px; padding: 1px 6px;
    min-width: 18px; text-align: center;
    display: inline-flex; align-items: center; justify-content: center;
}

/* ── Card buy section ── */
.card-buy {
    padding: 10px 12px;
    border-top: 1px solid var(--border);
    display: flex; align-items: center; gap: 8px;
}
.qty-wrap { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.qty-btn {
    width: 28px; height: 28px;
    background: rgba(255,255,255,.08);
    border: 1px solid var(--border); border-radius: 6px;
    color: var(--text); font-size: 1rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s;
}
.qty-btn:hover { background: rgba(62,207,176,.2); border-color: var(--primary); color: var(--primary); }
.qty-btn.sm { width: 24px; height: 24px; font-size: .85rem; }
.qty-val { min-width: 22px; text-align: center; font-weight: 600; font-size: .9rem; }
.btn-comprar {
    flex: 1;
    background: var(--primary); color: var(--bg);
    border: none; border-radius: 6px;
    padding: 8px 10px;
    font-size: .82rem; font-weight: 700;
    cursor: pointer; transition: background .2s;
}
.btn-comprar:hover { background: var(--primary-dark); }

/* ── Cart drawer ── */
.cart-overlay {
    display: none; position: fixed;
    inset: 0; background: rgba(0,0,0,.5); z-index: 150;
}
.cart-drawer {
    position: fixed; top: 0; right: -400px;
    width: 370px; max-width: 95vw; height: 100vh;
    background: var(--bg-card);
    border-left: 1px solid var(--border);
    box-shadow: -4px 0 24px rgba(0,0,0,.4);
    z-index: 151;
    display: flex; flex-direction: column;
    transition: right .3s ease;
}
.cart-drawer.open { right: 0; }
.cart-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
}
.cart-header h3 { font-size: 1rem; }
.cart-close {
    background: none; border: none;
    color: var(--text-muted); font-size: 1.1rem;
    cursor: pointer; padding: 0 4px;
}
.cart-close:hover { color: var(--text); }

/* ── Closed notice ── */
.cart-closed-notice {
    background: rgba(239,68,68,.1);
    border: 1px solid rgba(239,68,68,.25);
    border-radius: 8px; padding: 12px 14px;
    margin: 12px 16px 0;
    font-size: .83rem; color: #fca5a5; line-height: 1.5;
}
.cart-closed-notice strong { color: #f87171; display: block; margin-bottom: 4px; }

.cart-items {
    flex: 1; overflow-y: auto;
    padding: 12px 16px;
    display: flex; flex-direction: column; gap: 10px;
}
.cart-empty {
    color: var(--text-muted); font-size: .88rem;
    text-align: center; padding: 40px 0; line-height: 1.7;
}
.cart-item {
    background: rgba(255,255,255,.04);
    border: 1px solid var(--border);
    border-radius: 8px; padding: 10px 12px;
    display: flex; flex-direction: column; gap: 6px;
}
.cart-item-info { display: flex; flex-direction: column; gap: 3px; }
.cart-item-name { font-size: .85rem; font-weight: 600; }
.cart-item-price { font-size: .78rem; color: var(--text-muted); }
.cart-item-actions { display: flex; align-items: center; gap: 6px; font-size: .82rem; }
.cart-remove {
    margin-left: auto;
    background: rgba(239,68,68,.15); border: none; color: #ef4444;
    border-radius: 4px; padding: 2px 7px; cursor: pointer; font-size: .8rem;
}
.cart-remove:hover { background: rgba(239,68,68,.3); }
.cart-footer {
    padding: 16px; border-top: 1px solid var(--border);
    display: flex; flex-direction: column; gap: 10px;
}
.cart-total {
    display: flex; justify-content: space-between;
    align-items: center; font-size: .9rem;
}
.cart-total strong { color: var(--primary); font-size: 1.05rem; }
.btn-checkout {
    background: var(--primary); color: var(--bg);
    border: none; border-radius: 8px; padding: 13px;
    font-size: .95rem; font-weight: 700; cursor: pointer; width: 100%;
    transition: background .2s;
}
.btn-checkout:hover { background: var(--primary-dark); }

/* ── Checkout modal inputs ── */
.field-input {
    width: 100%; padding: 10px 12px;
    background: rgba(255,255,255,.05);
    border: 1px solid var(--border);
    border-radius: 6px; color: var(--text);
    font-size: .9rem; font-family: inherit;
}
.field-input:focus { outline: none; border-color: var(--primary); }
.field-input::placeholder { color: var(--text-muted); }
.field-input option { background: #182436; color: #e2e8f0; }
select.field-input {
    appearance: none; -webkit-appearance: none; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%233ecfb0' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center;
    padding-right: 36px;
}
.checkout-modal { max-width: 400px; }
.pix-box {
    display: flex; align-items: center; gap: 10px;
    background: rgba(62,207,176,.1); border: 1.5px solid var(--primary);
    border-radius: 8px; padding: 10px 14px; flex-wrap: wrap;
}
.pix-label { font-size: .78rem; color: var(--text-muted); flex-basis: 100%; }
.pix-copy-btn {
    font-size: 1rem; font-weight: 700; color: var(--primary);
    background: none; border: none; cursor: pointer; padding: 0;
    letter-spacing: .02em; font-family: monospace;
    text-decoration: underline dotted;
}
.pix-copy-btn:hover { opacity: .8; }
.pix-copied {
    font-size: .8rem; color: var(--primary); opacity: 0;
    transition: opacity .3s; margin-left: auto;
}

/* ── Carousel ── */
.carousel-wrap {
    position: relative; overflow: hidden;
    width: 100%; aspect-ratio: 21/7; background: #0f1923;
}
@media (max-width: 640px) { .carousel-wrap { aspect-ratio: 4/3; } }
.carousel-track { display: flex; transition: transform .5s ease; height: 100%; }
.carousel-slide  { min-width: 100%; height: 100%; overflow: hidden; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.carousel-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(0,0,0,.45); color: #fff;
    border: none; width: 40px; height: 40px; border-radius: 50%;
    font-size: 1.4rem; cursor: pointer; z-index: 2;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s;
}
.carousel-btn:hover { background: rgba(0,0,0,.72); }
.carousel-btn.prev { left: 14px; }
.carousel-btn.next { right: 14px; }
.carousel-dots {
    position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 7px; z-index: 2;
}
.carousel-dot {
    width: 9px; height: 9px; border-radius: 50%;
    background: rgba(255,255,255,.45); cursor: pointer; transition: background .2s;
}
.carousel-dot.active { background: #fff; }

/* ── Promo price ── */
.price-wrap { display: flex; flex-direction: column; gap: 1px; }
.price-original { font-size: .8rem; color: var(--text-muted); text-decoration: line-through; }
.price-promo { color: #ff4f4f; font-weight: 700; font-size: 1.05rem; }
.badge-promo {
    display: inline-block; background: #ff4f4f; color: #fff;
    font-size: .65rem; font-weight: 700; padding: 2px 7px;
    border-radius: 20px; text-transform: uppercase; letter-spacing: .03em; margin-top: 2px;
}

/* ── Category filters ── */
.cat-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.cat-btn {
    padding: 7px 18px; border-radius: 20px;
    border: 1.5px solid var(--border); background: transparent;
    color: var(--text-muted); font-size: .88rem; cursor: pointer;
    transition: all .2s; font-family: inherit;
}
.cat-btn:hover { border-color: var(--primary); color: var(--primary); }
.cat-btn.active { background: var(--primary); color: #0f1923; border-color: var(--primary); font-weight: 600; }

/* ── Admin categories panel ── */
.cats-admin-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.cat-admin-item {
    display: flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,.06); border-radius: 20px; padding: 5px 10px 5px 14px;
    font-size: .88rem;
}
.cat-admin-item .btn-del { width: 20px; height: 20px; font-size: .7rem; padding: 0; border-radius: 50%; }
.modal-cats-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.modal-cats-grid label { display: flex; align-items: center; gap: 6px; cursor: pointer; font-size: .88rem; }

/* ── Product detail modal (two-column) ── */
.product-modal {
    max-width: 860px; width: 96vw;
    padding: 0; overflow: hidden;
    border-radius: 14px;
    height: min(88vh, 580px);
}
.pm-layout { display: flex; height: 100%; }
.pm-thumbs-col {
    display: flex; flex-direction: column; gap: 8px;
    padding: 12px 8px; overflow-y: auto;
    background: #111c2a; width: 84px; flex-shrink: 0; scrollbar-width: thin;
}
.pm-thumb {
    width: 68px; height: 68px; object-fit: cover;
    border-radius: 8px; cursor: pointer; flex-shrink: 0;
    border: 2px solid transparent; transition: border-color .2s;
}
.pm-thumb.active, .pm-thumb:hover { border-color: var(--primary); }
.pm-main-col { flex: 1; overflow: hidden; background: #0f1923; min-width: 0; }
.pm-main-col img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pm-no-img {
    width: 100%; height: 100%; min-height: 220px;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted); font-size: .9rem;
}
.pm-info-col {
    width: 260px; flex-shrink: 0; padding: 28px 20px;
    display: flex; flex-direction: column; gap: 10px;
    overflow-y: auto; background: var(--bg-card);
    border-left: 1px solid var(--border);
}
.pm-title { font-size: 1.1rem; font-weight: 700; color: var(--text); margin: 0; line-height: 1.3; }
.pm-price-big  { font-size: 1.6rem; font-weight: 700; color: var(--primary); margin: 0; }
.pm-price-orig { font-size: .85rem; color: var(--text-muted); text-decoration: line-through; margin: 0; }
.pm-price-promo { font-size: 1.6rem; font-weight: 700; color: #ff4f4f; margin: 0; }
.pm-stock-info { color: var(--text-muted); font-size: .85rem; margin: 0; }
.pm-desc-text  { font-size: .88rem; color: var(--text-muted); margin: 0; line-height: 1.5; }
.pm-qty-row { display: flex; align-items: center; gap: 14px; }
.pm-qty-row .qty-val { min-width: 28px; text-align: center; font-size: 1.1rem; font-weight: 600; }
.btn-pm-add {
    width: 100%; padding: 13px; border-radius: 8px;
    background: var(--primary); color: #0f1923;
    font-weight: 700; font-size: 1rem; border: none; cursor: pointer; transition: opacity .2s;
}
.btn-pm-add:hover { opacity: .85; }
.btn-pm-back {
    width: 100%; padding: 11px; border-radius: 8px;
    background: transparent; color: var(--text-muted);
    font-size: .92rem; border: 1.5px solid var(--border);
    cursor: pointer; transition: color .2s, border-color .2s;
}
.btn-pm-back:hover { color: var(--text); border-color: var(--text-muted); }
@media (max-width: 640px) {
    .product-modal { height: 95vh; }
    .pm-layout { flex-direction: column; }
    .pm-thumbs-col {
        flex-direction: row; width: auto; padding: 8px 10px;
        overflow-x: auto; overflow-y: hidden; height: 76px; flex-shrink: 0;
    }
    .pm-thumb { width: 56px; height: 56px; }
    .pm-main-col { flex: 1; height: auto; max-height: none; }
    .pm-info-col { width: auto; padding: 14px 16px; border-left: none; border-top: 1px solid var(--border); flex-shrink: 0; }
}

/* ── Footer columns ── */
.footer-columns { border-top: 1px solid var(--border); padding: 36px 0 28px; }
.footer-cols-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}
.footer-col-title {
    font-size: .75rem; font-weight: 700;
    color: var(--primary); letter-spacing: .5px;
    text-transform: uppercase; margin-bottom: 12px;
}
.footer-col-link {
    display: block; color: var(--text-muted); text-decoration: none;
    font-size: .85rem; margin-bottom: 8px; transition: color .2s;
}
.footer-col-link:hover { color: var(--text); }
.footer-contact-item {
    display: flex; align-items: flex-start; gap: 8px;
    font-size: .84rem; color: var(--text-muted); margin-bottom: 8px;
}
.footer-contact-item a { color: var(--text-muted); text-decoration: none; }
.footer-contact-item a:hover { color: var(--primary); }
.fc-icon { width: 15px; height: 15px; flex-shrink: 0; color: var(--primary); margin-top: 2px; }
.footer-payment { display: flex; gap: 8px; flex-wrap: wrap; }
.payment-badge {
    background: rgba(255,255,255,.07); border: 1px solid var(--border);
    color: var(--text-muted); font-size: .75rem; font-weight: 600;
    padding: 4px 10px; border-radius: 6px;
}
.footer-social {
    display: flex; align-items: center; gap: 8px;
    color: var(--text-muted); text-decoration: none;
    font-size: .85rem; transition: color .2s; margin-top: 4px;
}
.footer-social:hover { color: var(--primary); }

/* ── Hours panel (admin) ── */
.hours-panel {
    background: rgba(62,207,176,.05);
    border: 1px solid rgba(62,207,176,.15);
    border-radius: 10px; padding: 20px 24px; margin-bottom: 28px;
}
.hours-grid { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.hours-row {
    display: flex; align-items: center; gap: 12px;
    padding: 8px 0; border-bottom: 1px solid var(--border);
}
.hours-row:last-child { border-bottom: none; }
.hours-day { width: 80px; font-size: .88rem; color: var(--text); flex-shrink: 0; }
.time-input {
    background: rgba(255,255,255,.06); border: 1px solid var(--border);
    border-radius: 6px; color: var(--text); padding: 5px 8px;
    font-size: .85rem; width: 100px; font-family: inherit;
}
.time-input:disabled { opacity: .3; cursor: not-allowed; }
.time-input:focus { outline: none; border-color: var(--primary); }
select.time-input {
    appearance: none; -webkit-appearance: none; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%233ecfb0' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center;
    padding-right: 36px !important;
}
select.time-input option,
select.field-input option {
    background-color: #182436; color: #e2e8f0;
}
.hours-sep { color: var(--text-muted); font-size: .82rem; }
.hours-msg-area {
    width: 100%; padding: 10px;
    background: rgba(255,255,255,.05);
    border: 1px solid var(--border); border-radius: 6px;
    color: var(--text); font-size: .88rem; resize: vertical;
    font-family: inherit;
}
.hours-msg-area:focus { outline: none; border-color: var(--primary); }
.hours-save-msg { font-size: .82rem; text-align: center; min-height: 16px; }

/* ── Coupon floating bar ── */
.coupon-bar {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
    background: linear-gradient(90deg, #0d2318 0%, #0d1f2d 100%);
    border-top: 1.5px solid rgba(62,207,176,.35);
    padding: 10px 16px 10px 20px;
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    box-shadow: 0 -4px 24px rgba(0,0,0,.4);
}
.coupon-bar-content {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap; flex: 1;
    font-size: .88rem; color: var(--text);
}
.coupon-bar-icon { font-size: 1.15rem; flex-shrink: 0; }
.coupon-bar-text strong { color: var(--primary); }
.coupon-bar-until { color: var(--text-muted); font-size: .78rem; }
.coupon-bar-use {
    padding: 6px 16px; border-radius: 20px; border: none; cursor: pointer;
    background: var(--primary); color: #0f1923; font-weight: 700; font-size: .82rem;
    flex-shrink: 0; transition: opacity .2s; white-space: nowrap;
}
.coupon-bar-use:hover { opacity: .85; }
.coupon-bar-copied {
    font-size: .78rem; color: var(--primary); font-weight: 600;
    opacity: 0; transition: opacity .3s; flex-shrink: 0;
}
.coupon-bar-close {
    background: none; border: none; color: var(--text-muted);
    font-size: 1.1rem; cursor: pointer; padding: 4px 8px; flex-shrink: 0;
}
.coupon-bar-close:hover { color: var(--text); }

/* ── Coupon admin panel ── */
.coupon-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 14px; border-radius: 8px;
    background: rgba(255,255,255,.04); border: 1px solid var(--border);
    margin-bottom: 8px; gap: 12px; flex-wrap: wrap;
}
.coupon-row-main { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.coupon-code { font-weight: 700; font-size: 1rem; font-family: monospace; color: var(--text); letter-spacing: .05em; }
.coupon-type-badge {
    font-size: .7rem; font-weight: 700; padding: 3px 10px; border-radius: 20px;
    color: #fff; text-transform: uppercase; letter-spacing: .04em;
}
.coupon-meta { font-size: .8rem; color: var(--text-muted); }
.coupon-row-actions { display: flex; gap: 6px; flex-shrink: 0; }

/* ── Promo toggle button (admin modal) ── */
.btn-promo-toggle {
    width: 100%; padding: 10px 16px; border-radius: 8px; border: none;
    cursor: pointer; font-size: .88rem; font-weight: 600; font-family: inherit;
    background: rgba(255,255,255,.08); color: var(--text-muted);
    transition: all .2s; text-align: left;
}
.btn-promo-toggle:hover { background: rgba(255,255,255,.14); }
.btn-promo-toggle.on { background: linear-gradient(135deg, #ff4f4f, #ff8c00); color: #fff; }
.btn-promo-toggle.on:hover { opacity: .9; }

/* ── Promo Alert Modal ── */
.promo-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,.72); z-index: 9000;
    backdrop-filter: blur(4px);
}
.promo-alert {
    display: none; position: fixed; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-card); border-radius: 20px;
    border: 1px solid rgba(255,255,255,.09);
    box-shadow: 0 28px 80px rgba(0,0,0,.75);
    z-index: 9001; flex-direction: column;
    width: min(380px, 94vw); overflow: hidden;
    animation: promoIn .38s cubic-bezier(.34,1.3,.64,1) both;
}
@keyframes promoIn {
    from { opacity: 0; transform: translate(-50%,-50%) scale(.82); }
    to   { opacity: 1; transform: translate(-50%,-50%) scale(1); }
}
.promo-img-wrap {
    position: relative; width: 100%; height: 210px;
    background: #0f1923; overflow: hidden; flex-shrink: 0;
}
.promo-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.promo-img-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,.08) 30%, rgba(0,0,0,.55));
}
.promo-pct-badge {
    position: absolute; top: 12px; left: 12px; z-index: 2;
    background: linear-gradient(135deg, #ff4f4f, #ff8c00);
    color: #fff; font-weight: 800; font-size: .8rem;
    padding: 5px 13px; border-radius: 20px;
    letter-spacing: .04em;
    box-shadow: 0 4px 14px rgba(255,79,79,.45);
}
.promo-close-btn {
    position: absolute; top: 10px; right: 10px; z-index: 2;
    width: 32px; height: 32px; border-radius: 50%;
    background: rgba(0,0,0,.5); backdrop-filter: blur(4px);
    border: none; color: #fff; font-size: 1rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s;
}
.promo-close-btn:hover { background: rgba(0,0,0,.82); }
.promo-content { padding: 20px 22px 22px; }
.promo-label {
    font-size: .7rem; font-weight: 800; color: #ff8c00;
    text-transform: uppercase; letter-spacing: .08em; margin-bottom: 7px;
}
.promo-name {
    font-size: 1.05rem; font-weight: 700; color: var(--text);
    line-height: 1.3; margin-bottom: 10px;
}
.promo-prices-row { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.promo-original { font-size: .85rem; color: var(--text-muted); text-decoration: line-through; }
.promo-price { font-size: 2rem; font-weight: 800; color: #ff4f4f; line-height: 1; }
.promo-saving { font-size: .78rem; color: #3ecfb0; font-weight: 600; margin-bottom: 16px; }
.promo-nav {
    display: flex; align-items: center; justify-content: center;
    gap: 8px; margin-bottom: 14px; min-height: 22px;
}
.promo-nav-arrow {
    background: none; border: 1.5px solid var(--border);
    color: var(--text-muted); border-radius: 50%;
    width: 28px; height: 28px; cursor: pointer; font-size: 1rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center; transition: all .2s;
}
.promo-nav-arrow:hover { border-color: var(--primary); color: var(--primary); }
.promo-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--border); cursor: pointer; transition: background .2s;
}
.promo-dot.active { background: var(--primary); }
.promo-cta {
    width: 100%; padding: 14px; border-radius: 10px;
    background: var(--primary); color: #0f1923;
    font-weight: 700; font-size: 1rem; border: none;
    cursor: pointer; transition: opacity .2s; letter-spacing: .02em;
}
.promo-cta:hover { opacity: .85; }

/* ── Responsive ── */
@media (max-width: 768px) {
    .footer-cols-inner { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 600px) {
    .grid { grid-template-columns: repeat(2, 1fr); }
    .brand-name { font-size: .95rem; }
    .site-header nav a:not(.btn-primary) { display: none; }
    .hours-row { flex-wrap: wrap; }
    .time-input { width: 80px; }
}
