/* 
   Kiosco Mis Amores - Complete Design System
   Covers: Admin Dashboard + Customer Frontend
   Version: Final
*/

/* ==========================================================================
   CSS VARIABLES
   ========================================================================== */
:root {
    --primary: #e74c3c;
    --primary-light: #ff6b6b;
    --accent: #f1c40f;
    --bg-dark: #0a0a0f;
    --bg-card: #111118;
    --bg-glass: rgba(255,255,255,0.03);
    --border: rgba(255,255,255,0.1);
    --text: #ffffff;
    --text-muted: #888;
    --success: #2ecc71;
    --shadow: 0 20px 60px rgba(0,0,0,0.8);
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    background: var(--bg-dark);
    color: var(--text);
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}


/* ==========================================================================
   LAYOUT
   ========================================================================== */
.admin-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 5%;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
.fade-in { animation: fadeIn 0.5s ease forwards; }
.slide-up { animation: slideUp 0.5s ease forwards; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(35px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(46,204,113,0.6); }
    70%  { box-shadow: 0 0 0 10px rgba(46,204,113,0); }
    100% { box-shadow: 0 0 0 0 rgba(46,204,113,0); }
}
@keyframes slideInToast {
    from { transform: translateX(120%); opacity: 0; }
    to   { transform: translateX(0);    opacity: 1; }
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 0.85rem 1.6rem; border-radius: 14px; border: none;
    font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 0.9rem;
    cursor: pointer; transition: all 0.25s ease; text-decoration: none;
    white-space: nowrap;
}
.btn:hover    { transform: translateY(-2px); filter: brightness(1.1); }
.btn:active   { transform: translateY(0);    filter: brightness(0.95); }

.btn-primary  { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: #fff; }
.btn-secondary{ background: rgba(255,255,255,0.08); color: #fff; border: 1px solid var(--border); }
.btn-success  { background: linear-gradient(135deg, var(--success), #27ae60); color: #000; }
.btn-accent   { background: linear-gradient(135deg, var(--accent), var(--primary-light)); color: #000; }

/* ==========================================================================
   FORMS
   ========================================================================== */
.form-group { margin-bottom: 1.4rem; }
.form-group label {
    display: block;
    font-size: 0.68rem; font-weight: 800; text-transform: uppercase;
    letter-spacing: 1.2px; color: var(--text-muted); margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 13px 16px;
    background: #0d0d14;
    border: 1px solid var(--border);
    border-radius: 14px;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.05);
    background: rgba(255,255,255,0.04);
}
.form-group select { 
    cursor: pointer; 
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 18px;
    padding-right: 45px;
}
.form-group select option {
    background: #0d0d14;
    color: #fff;
    padding: 12px;
}
.form-group textarea { resize: vertical; min-height: 80px; }

/* ==========================================================================
   ADMIN: ZONE ROW
   ========================================================================== */
.zone-row {
    display: grid;
    grid-template-columns: 1fr 130px 38px;
    gap: 8px; align-items: start;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed rgba(255,255,255,0.07);
}
.zone-row:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

/* All inputs inside zone-row get dark glass style */
.zone-row input {
    width: 100%;
    padding: 11px 14px;
    background: #0d0d14;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.zone-row input:focus {
    border-color: #25d366;
    outline: none;
    box-shadow: 0 0 0 3px rgba(37,211,102,0.12);
}
.zone-row input.zone-name { font-weight: 700; }
.zone-row input.zone-desc {
    margin-top: 6px;
    font-size: 0.82rem;
    opacity: 0.75;
    font-style: italic;
}
.zone-row input.zone-price { text-align: right; font-weight: 800; }
.zone-row .zone-delete-btn {
    width: 38px; height: 38px;
    background: rgba(231,76,60,0.12);
    border: 1px solid rgba(231,76,60,0.35);
    border-radius: 10px;
    color: var(--primary);
    font-size: 1.1rem; font-weight: 800;
    cursor: pointer; display: flex;
    align-items: center; justify-content: center;
    transition: all 0.2s;
}
.zone-row .zone-delete-btn:hover {
    background: var(--primary); color: #fff;
    transform: scale(1.08);
}

/* ==========================================================================
   MODAL SYSTEM
   ========================================================================== */
.modal {
    position: fixed; inset: 0; z-index: 5000;
    background: rgba(0,0,0,0.88);
    backdrop-filter: blur(18px);
    display: none;                 /* Hidden by default */
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    overflow-y: auto;
}
/* When JS sets display:flex they show */
.modal[style*="display: flex"],
.modal[style*="display:flex"] {
    display: flex !important;
}

.modal-content {
    background: #12121c;
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 2.5rem;
    width: 100%; max-width: 660px;
    box-shadow: var(--shadow);
    position: relative;
    margin: auto;
}
.modal-content h2 {
    font-size: 1.5rem; font-weight: 800; margin-bottom: 2rem;
    display: flex; align-items: center; gap: 12px;
}

/* ==========================================================================
   TOAST NOTIFICATIONS
   ========================================================================== */
#toast-container {
    position: fixed; top: 24px; right: 24px;
    z-index: 9999;
    display: flex; flex-direction: column; gap: 10px;
}
.toast {
    display: flex; align-items: center; gap: 14px;
    background: #1a1a28; color: #fff;
    padding: 14px 22px; border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    font-weight: 600; font-size: 0.9rem;
    min-width: 290px; max-width: 380px;
    animation: slideInToast 0.4s ease forwards;
}
.toast.success { border-left: 5px solid var(--success); }
.toast.error   { border-left: 5px solid var(--primary); }
.toast.info    { border-left: 5px solid var(--accent); }

/* ==========================================================================
   STATS GRID
   ========================================================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2rem;
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.stat-card:hover { transform: translateY(-6px); border-color: rgba(255,255,255,0.2); }
.stat-card[onclick] { cursor: pointer; }
.stat-card[onclick]:hover { border-color: var(--accent); box-shadow: 0 12px 30px rgba(241,196,15,0.1); }
.stat-label {
    font-size: 0.68rem; font-weight: 800; text-transform: uppercase;
    letter-spacing: 1.5px; color: var(--text-muted); margin-bottom: 10px;
}
.stat-value {
    font-size: 2.5rem; font-weight: 800; letter-spacing: -1.5px; line-height: 1;
    margin-bottom: 12px;
}
.stat-action {
    font-size: 0.75rem; font-weight: 800;
    display: flex; align-items: center; gap: 6px;
}

/* ==========================================================================
   ADMIN ACTIONS BAR
   ========================================================================== */
.admin-actions {
    display: flex; gap: 1rem; flex-wrap: wrap; align-items: center;
    margin-bottom: 2rem;
}
.search-bar { flex: 1; min-width: 260px; position: relative; }
.search-bar i {
    position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
    color: var(--text-muted);
}
.search-bar input {
    width: 100%; padding: 14px 14px 14px 48px;
    background: rgba(255,255,255,0.04); border: 1px solid var(--border);
    border-radius: 16px; color: #fff;
    font-family: 'Outfit', sans-serif; font-size: 0.95rem;
}
.search-bar input:focus { border-color: var(--accent); outline: none; }

.per-page-selector { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.per-page-selector label { font-size: 0.68rem; font-weight: 900; color: var(--text-muted); text-transform: uppercase; }
.per-page-selector select {
    background: #0d0d14; color: #fff; border: 1px solid var(--border);
    padding: 10px 14px; border-radius: 12px; font-weight: 800; cursor: pointer;
    font-family: 'Outfit', sans-serif;
}

/* ==========================================================================
   PRODUCT TABLE
   ========================================================================== */
.product-table-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow-x: auto;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    margin-bottom: 2rem;
}
.product-table {
    width: 100%; border-collapse: collapse;
    text-align: left; min-width: 820px;
}
.product-table thead th {
    background: rgba(255,255,255,0.03);
    padding: 1.2rem 1rem;
    font-size: 0.68rem; font-weight: 900; letter-spacing: 1.5px;
    color: var(--text-muted); text-transform: uppercase;
    border-bottom: 1px solid var(--border);
}
.product-table tbody td {
    padding: 1.1rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    vertical-align: middle;
}
.product-table tbody tr:last-child td { border-bottom: none; }
.product-table tbody tr:hover { background: rgba(255,255,255,0.025); }

/* ==========================================================================
   PAGINATION
   ========================================================================== */
.pagination-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    padding: 1.5rem;
    background: rgba(255,255,255,0.02);
    border-radius: 24px;
    border: 1px solid var(--border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}
.page-btn {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 22px; border-radius: 12px; border: 1px solid var(--border);
    background: rgba(255,255,255,0.06); color: #fff;
    font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 0.85rem;
    cursor: pointer; transition: all 0.3s;
}
.page-btn:hover:not(:disabled) {
    background: var(--accent); color: #000; border-color: transparent;
    transform: translateY(-2px); box-shadow: 0 8px 20px rgba(241,196,15,0.2);
}
.page-btn:disabled { opacity: 0.18; cursor: not-allowed; }
.page-info {
    font-weight: 800; font-size: 0.85rem;
    background: rgba(255,255,255,0.05); padding: 8px 16px;
    border-radius: 10px; white-space: nowrap;
}

/* ==========================================================================
   FRONTEND: NAVIGATION (Glass Nav)
   ========================================================================== */
.glass-nav {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 2000;
    background: rgba(10,10,15,0.95);
    backdrop-filter: blur(40px) saturate(1.8);
    border-bottom: 1px solid var(--border);
    display: grid;
    grid-template-columns: 320px 1fr 340px;
    align-items: center;
    padding: 0 5%; height: 105px;
}
.logo-nav { 
    height: 90px; width: auto; object-fit: contain; 
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
}
.logo-nav:hover { transform: scale(1.08) rotate(-2deg); }

.nav-middle { display: flex; justify-content: center; }
.nav-links { display: flex; gap: 3rem; list-style: none; }
.nav-link {
    color: var(--text-muted); text-decoration: none;
    font-weight: 800; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 1.5px;
    transition: all 0.3s ease; position: relative;
    padding: 5px 0;
}
.nav-link:hover, .nav-link.active { color: var(--accent); }
.nav-link.active::after {
    content: ''; position: absolute; bottom: -5px; left: 0;
    width: 100%; height: 3px; background: var(--accent); border-radius: 50px;
    box-shadow: 0 0 10px var(--accent);
}

.nav-right {
    display: flex; align-items: center; justify-content: flex-end; gap: 1rem;
}
.btn-cart-nav {
    background: var(--accent);
    color: #000 !important;
    padding: 0.8rem 1.4rem;
    border-radius: 12px;
    font-size: 0.82rem;
    font-weight: 900;
    box-shadow: 0 10px 25px rgba(241,196,15,0.3);
}

.badge-open {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 18px; border-radius: 50px;
    background: rgba(46,204,113,0.06); color: var(--success);
    border: 1px solid rgba(46,204,113,0.15);
    font-weight: 800; font-size: 0.8rem; white-space: nowrap;
}
.badge-open .dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--success); animation: pulse 2.5s infinite;
}

/* ==========================================================================
   FRONTEND: HERO
   ========================================================================== */
.hero {
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 320px 5% 80px;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url("assets/hero.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.hero h1 {
    font-size: clamp(3rem, 9vw, 5.5rem); font-weight: 800;
    letter-spacing: -3px; line-height: 0.9; margin-bottom: 1.5rem;
    background: linear-gradient(to bottom, #fff 30%, rgba(255,255,255,0.45));
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero p { max-width: 580px; font-size: 1.15rem; color: var(--text); margin-bottom: 2.5rem; }

/* ==========================================================================
   FRONTEND: PRODUCT CARDS
   ========================================================================== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 2rem; margin-top: 2.5rem;
}
.product-card {
    background: var(--bg-card);
    border-radius: 26px;
    padding: 1.5rem;
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    border-color: rgba(241,196,15,0.35);
    box-shadow: 0 30px 60px rgba(0,0,0,0.5), 0 0 20px rgba(241,196,15,0.08);
}
.product-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 18px;
    background: #1d0000;
    margin-bottom: -1rem;
    transition: transform 0.5s ease;
}
.product-card:hover .product-img {transform: scale(1.20);}

.category-tag {
    font-size: 0.68rem; font-weight: 800; text-transform: uppercase;
    letter-spacing: 1.5px; color: var(--accent); margin-bottom: 8px;
}
.product-name {
    font-size: 1.25rem; font-weight: 800; line-height: 1.25;
    flex: 1; margin-bottom: 0.8rem;
}
.product-price { font-size: 1.9rem; font-weight: 800; color: var(--accent); }

/* ==========================================================================
   FRONTEND: QUANTITY SELECTOR
   ========================================================================== */
.qty-selector-wide {
    display: flex; align-items: center; justify-content: space-between;
    background: linear-gradient(135deg, var(--primary), #c1272d);
    border-radius: 16px; overflow: hidden;
    height: 60px; width: 100%;
}
.qty-selector-wide button {
    border: none; background: rgba(0,0,0,0.15); color: #fff;
    width: 65px; height: 100%; font-size: 1.4rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
}
.qty-selector-wide button:hover:not(:disabled) { background: rgba(0,0,0,0.3); }
.qty-selector-wide button:active { background: rgba(0,0,0,0.45); transform: scale(0.92); }
.qty-selector-wide button:disabled { opacity: 0.3; cursor: not-allowed; }
.qty-selector-wide span {
    font-weight: 800; font-size: 1.5rem; color: #fff;
    min-width: 40px; text-align: center;
}

/* ==========================================================================
   FRONTEND: ADD TO CART BUTTON (same height as selector for no-shift)
   ========================================================================== */
.btn-primary.btn-add {
    width: 100%; height: 60px; border-radius: 16px;
    font-size: 1rem;
}

/* ==========================================================================
   FRONTEND: SHOWCASE CONTROLS
   ========================================================================== */
.showcase-controls {
    position: sticky; top: 90px; z-index: 100;
    background: rgba(10,10,15,0.98);
    backdrop-filter: blur(25px);
    padding: 1rem 5%;
    border-bottom: 1px solid var(--border);
    display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
}
.search-wrapper { flex: 1; max-width: 450px; position: relative; }
.search-icon {
    position: absolute; left: 17px; top: 50%;
    transform: translateY(-50%); color: var(--text-muted);
    pointer-events: none;
}
.search-input {
    width: 100%; padding: 13px 16px 13px 46px;
    background: rgba(255,255,255,0.05); border: 1px solid var(--border);
    border-radius: 14px; color: #fff;
    font-family: 'Outfit', sans-serif; font-size: 0.95rem; outline: none;
    transition: border-color 0.25s, box-shadow 0.25s;
}
.search-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(241,196,15,0.12);
}
.filter-wrapper { display: flex; align-items: center; gap: 12px; }
.filter-label {
    font-size: 0.7rem; font-weight: 800; color: var(--text-muted);
    text-transform: uppercase; white-space: nowrap;
}
.filter-select {
    background: #0d0d14; color: #fff; border: 1px solid var(--border);
    padding: 10px 16px; border-radius: 12px; font-weight: 800;
    font-family: 'Outfit', sans-serif; cursor: pointer; text-transform: uppercase;
}

/* ==========================================================================
   FRONTEND: SECTION CONTAINERS (with top clearance for fixed nav)
   ========================================================================== */
.showcase-container, .cart-container {
    padding: 11rem 5% 5rem !important;
}

/* ==========================================================================
   FRONTEND: LOCATION SECTION (Landing)
   ========================================================================== */
.location-section {
    padding: 5rem 5%;
    max-width: 1400px; margin: 0 auto;
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 3.5rem; align-items: center;
}
.location-info-card {
    background: var(--bg-glass);
    padding: 2.8rem; border-radius: 28px;
    border: 1px solid var(--border); backdrop-filter: blur(20px);
}
.location-map-card {
    height: 420px; background: #000;
    border-radius: 28px; overflow: hidden;
    border: 1px solid var(--border); box-shadow: var(--shadow);
}

/* ==========================================================================
   FRONTEND: PRODUCT CARD DETAILS
   ========================================================================== */
.price-stock-row {
    display: flex; align-items: baseline;
    justify-content: space-between; margin-top: auto; margin-bottom: 0.2rem;
}
.u-stock {
    color: var(--text-muted); font-size: 0.78rem; font-weight: 800; opacity: 0.65;
}
.card-action { margin-top: 1.2rem; }

/* Full-width add button ? same height as qty-selector to prevent layout shift */
.btn-add {
    width: 100%; height: 60px; border-radius: 16px;
    font-size: 1rem; font-weight: 800;
}

/* ==========================================================================
   FRONTEND: DELIVERY TOGGLE
   ========================================================================== */
.delivery-toggle {
    display: flex; gap: 0.8rem; flex-wrap: wrap;
}
.dtoggle-btn {
    flex: 1; min-width: 160px;
    padding: 0.9rem 1.2rem;
    background: rgba(255,255,255,0.05);
    border: 2px solid var(--border);
    border-radius: 14px; color: #aaa;
    font-family: 'Outfit', sans-serif;
    font-weight: 800; font-size: 0.9rem;
    cursor: pointer; transition: all 0.25s;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.dtoggle-btn:hover { border-color: var(--accent); color: #fff; }
.dtoggle-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #000;
    box-shadow: 0 8px 20px rgba(241,196,15,0.25);
}

/* ==========================================================================
   FRONTEND: ZONE PICKER
   ========================================================================== */
.zone-picker {
    background: var(--bg-card);
    border-radius: 24px; border: 1px solid var(--border);
    padding: 1.5rem; max-width: 560px; margin: 0 auto;
}
.zone-btn {
    width: 100%;
    display: flex; align-items: center; justify-content: space-between;
    padding: 1rem 1.4rem; margin-bottom: 0.5rem;
    background: rgba(255,255,255,0.04);
    border: 2px solid rgba(255,255,255,0.08);
    border-radius: 14px; color: #fff;
    font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 1rem;
    cursor: pointer; transition: all 0.2s;
    text-align: left;
}
.zone-btn:hover {
    background: rgba(37,211,102,0.1);
    border-color: #25d366;
    transform: translateX(4px);
}
.zone-btn.selected {
    background: rgba(37,211,102,0.15);
    border-color: #25d366;
    color: #25d366;
}
.zone-btn span:last-child {
    font-size: 1rem; font-weight: 800;
    color: #25d366; white-space: nowrap; margin-left: 1rem;
}
.zone-desc-text {
    font-size: 0.78rem; color: var(--text-muted);
    line-height: 1.55; padding: 0 0.5rem 1rem;
    border-bottom: 1px dashed rgba(255,255,255,0.06);
    margin-bottom: 0.3rem;
}

/* ==========================================================================
   FRONTEND: CART
   ========================================================================== */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2.5rem; align-items: start;
}
.cart-items-panel {
    background: var(--bg-card);
    border-radius: 24px; border: 1px solid var(--border); overflow: hidden;
}
.cart-item-row {
    display: flex; align-items: center; gap: 1.2rem;
    padding: 1.5rem 1.8rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background 0.2s;
}
.cart-item-row:last-child { border-bottom: none; }
.cart-item-row:hover { background: rgba(255,255,255,0.025); }
.cart-item-img {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    object-fit: cover;
    background: #000;
    border: 1px solid var(--border);
    flex-shrink: 0;
}
.cart-item-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}
.cart-item-qty-badge {
    background: rgba(231, 76, 60, 0.12);
    color: var(--primary-light);
    font-size: 0.88rem;
    font-weight: 800;
    padding: 5px 10px 5px 8px;
    border-radius: 12px;
    white-space: nowrap;
    flex-shrink: 0;
    border: 1px solid rgba(231, 76, 60, 0.3);
    cursor: pointer;
    text-align: left;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    transition: all 0.3s ease;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ff6b6b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 6px center;
    background-size: 12px;
}
.cart-item-qty-badge:hover {
    border-color: var(--primary);
}
.cart-item-qty-badge:focus {
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}
.cart-item-qty-badge option {
    background: #111118;
    color: #fff;
    padding: 12px;
}
.cart-item-name {font-weight: 800;font-size: 0.82rem;}
.cart-item-unit { color: var(--accent); font-size: 0.9rem; font-weight: 700; margin-top: 3px; }
.cart-item-total {font-weight: 800;font-size: 1rem;white-space: nowrap;min-width: 70px;text-align: right;align-self: flex-start;margin-top: 12px;}

/* Summary Panel */
.cart-summary-panel {
    background: var(--bg-card);
    border-radius: 24px; border: 1px solid var(--border);
    padding: 2rem; position: sticky; top: 120px;
}
.summary-title {
    font-size: 1.3rem; font-weight: 800;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem; margin-bottom: 1.5rem;
}
.summary-row {
    display: flex; justify-content: space-between;
    font-size: 1rem; font-weight: 500;
    color: var(--text-muted); margin-bottom: 1rem;
}
.summary-total {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 1.8rem; font-weight: 800; color: var(--accent);
    border-top: 2px solid var(--accent);
    padding-top: 1.5rem; margin-top: 1rem;
}
.btn-whatsapp {
    width: 100%; padding: 1.2rem; margin-top: 1.5rem;
    background: linear-gradient(135deg, #25d366, #1aad52);
    color: #fff; font-size: 1.1rem; font-weight: 800;
    border: none; border-radius: 16px; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    transition: all 0.3s;
}
.btn-whatsapp:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(37,211,102,0.3); }

/* ==========================================================================
   FRONTEND: FOOTER
   ========================================================================== */
footer {
    background: #050508;
    padding: 4rem 5% 2rem;
    border-top: 1px solid var(--border);
    margin-top: 5rem;
}
.footer-content {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 2.5rem;
    max-width: 1300px; margin: 0 auto 2.5rem;
}
.footer-socials {
    display: flex; gap: 1rem; flex-wrap: wrap;
}
.footer-socials a {
    width: 48px; height: 48px; border-radius: 50%;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.2rem; text-decoration: none;
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.footer-socials a:hover {
    transform: translateY(-6px) scale(1.1);
    box-shadow: 0 12px 25px rgba(0,0,0,0.4);
}
.footer-socials a.footer-fb-link:hover   { background: #1877f2; border-color: #1877f2; }
.footer-socials a.footer-insta-link:hover { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); border-color: transparent; }
.footer-socials a.footer-wa-link:hover   { background: #25d366; border-color: #25d366; }

.footer-location-text { font-weight: 600; color: #ddd; font-size: 0.92rem; }
.footer-bottom {
    text-align: center; color: var(--text-muted); font-size: 0.82rem; font-weight: 600;
    padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.04);
    max-width: 1300px; margin: 0 auto;
}

/* ==========================================================================
   BACK TO TOP BUTTON
   ========================================================================== */
#back-to-top {
    position: fixed; bottom: 28px; right: 28px; z-index: 1000;
    width: 50px; height: 50px; border-radius: 50%;
    background: var(--accent); color: #000; border: none;
    display: none; align-items: center; justify-content: center;
    font-size: 1rem; cursor: pointer;
    box-shadow: 0 8px 20px rgba(241,196,15,0.3); transition: all 0.3s;
}
#back-to-top.show { display: flex; animation: fadeIn 0.3s; }
#back-to-top:hover { transform: scale(1.12); background: #fff; }

/* Floating Cart (Left) */
#floating-cart {
    position: fixed; bottom: 28px; left: 28px; z-index: 1000;
    width: 60px; height: 60px; border-radius: 50%;
    background: var(--accent); color: #000; border: none;
    display: none; align-items: center; justify-content: center;
    font-size: 1.4rem; cursor: pointer;
    box-shadow: 0 10px 25px rgba(241,196,15,0.4); 
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: slideInLeft 0.5s ease forwards;
}
#floating-cart.show { display: flex; }
#floating-cart:hover { transform: scale(1.15) rotate(-10deg); background: #fff; }
#floating-cart .cart-count {
    position: absolute; top: -5px; right: -5px;
    background: var(--primary); color: #fff;
    font-size: 0.75rem; font-weight: 900;
    width: 24px; height: 24px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--bg-dark);
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px) scale(0.5); }
    to   { opacity: 1; transform: translateX(0) scale(1); }
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 0 5%;
    margin-bottom: 2rem;
}

.cart-header {
    margin-bottom: 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.cart-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -1.5px;
}

/* Tablet */
@media (max-width: 900px) {
    .glass-nav { height: auto; padding: 15px 5%; grid-template-columns: 1fr auto; gap: 1rem; }
    .nav-middle { display: none; }
}

/* Mobile */
@media (max-width: 600px) {
    .glass-nav {
        display: flex;
        flex-direction: column;
        height: auto;
        padding: 25px 5% 20px;
        gap: 15px;
        position: relative;
    }
    .logo-wrapper { width: 100%; display: flex; justify-content: center; }
    .logo-nav { height: 110px; }

    .nav-middle { display: flex; width: 100%; justify-content: center; }
    .nav-links { gap: 2rem; }
    .nav-link { font-size: 1rem; }
    .nav-link.active::after { bottom: -2px; }
    .nav-links li { align-items: center; justify-content: center; background: rgba(255, 255, 255, 0.08); color: #fff;
    border: 1px solid var(--border); gap: 8px;
    padding: 0.85rem 1.6rem;
    border-radius: 14px;}

    .nav-right { width: 100%; justify-content: center; }
    .btn-cart-nav {
        width: 100%;
        padding: 1rem;
        font-size: 1.2rem;
        border-radius: 14px;
        justify-content: center;
    }
    .badge-open { display: none; }

    /* Content padding for mobile nav */
    .showcase-container, .cart-container, .hero {
        padding-top: 15px !important;
    }

    .section-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
}
    .section-header {
    text-align: center;
    flex-direction: column !important;
    justify-content: center !important;
    padding: 0 3% !important;
    gap: 0.8rem !important;
}
    .location-section { grid-template-columns: 1fr; padding: 3rem 5%; gap: 2rem; }
    .location-map-card { height: 280px; }
    .showcase-controls { top: 0; padding: 0.8rem 3%; gap: 0.6rem; }
    .search-wrapper { flex: 1; max-width: none; }
    .filter-label  { display: none; }
    .filter-select { padding: 8px 10px; font-size: 0.78rem; }
    .product-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .cart-layout { grid-template-columns: 1fr; }
    .cart-summary-panel { position: static; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    footer {
    margin-top: -3rem;
}
    .footer-content { flex-direction: column; align-items: center; text-align: center; }
    .footer-info img { width: 220px !important; height: auto !important; }
    .cart-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.product-img {
    width: 100%;
    height: auto;
}
}

#back-to-top {
    position: fixed; bottom: 20px; right: 20px; z-index: 1000;
    width: 45px; height: 45px; border-radius: 50%;
    background: var(--accent); color: #000; border: none;
    display: none; align-items: center; justify-content: center;
    box-shadow: 0 8px 20px rgba(241,196,15,0.3);
}
#back-to-top.show { display: flex; }

/* =========================================
   PWA INSTALL MODAL (PREMIUM)
   ========================================= */
.pwa-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000; /* Over everything */
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.pwa-modal-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    width: 100%;
    max-width: 400px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.pwa-modal-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 24px;
    margin-bottom: 25px;
    background: #fff;
    padding: 12px;
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.15);
}

.pwa-modal-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: white;
    letter-spacing: -1px;
}

.pwa-modal-text {
    color: #999;
    font-size: 0.95rem;
    margin-bottom: 25px;
    line-height: 1.5;
    text-align: center;
}

.pwa-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-pwa-install {
    background: var(--accent);
    color: #442200;
    font-weight: 800;
    border: none;
    padding: 18px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: inherit;
    font-size: 1.1rem;
}

.btn-pwa-install:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--accent);
}

.btn-pwa-cancel {
    background: transparent;
    color: var(--text-muted);
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.btn-pwa-cancel:hover {
    color: white;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@media (max-width: 768px) {
    .pwa-modal-card {
        padding: 24px;
        max-width: 340px;
    }
}
