/* =====================================================
   NEXTFLOW — DARK TECH STORE THEME
   Inspired by: Force gaming store aesthetic
   ===================================================== */

/* ─── CSS Variables ──────────────────────────────── */
:root {
    --bg-base:        #0a0a0f;
    --bg-surface:     #111118;
    --bg-card:        #16161f;
    --bg-elevated:    #1c1c28;
    --accent:         #c8ff00;       /* Lime-yellow neon accent */
    --accent-dim:     #9abf00;
    --accent-glow:    rgba(200,255,0,0.18);
    --accent-glow-sm: rgba(200,255,0,0.08);
    --red:            #ff2d55;
    --blue:           #00b4ff;
    --text-primary:   #f0f0f5;
    --text-secondary: #8888a0;
    --text-muted:     #55556a;
    --border:         rgba(255,255,255,0.07);
    --border-accent:  rgba(200,255,0,0.25);
    --shadow-card:    0 4px 24px rgba(0,0,0,0.5);
    --nav-h:          64px;
    --top-bar-h:      34px;
    --radius-sm:      8px;
    --radius-md:      14px;
    --radius-lg:      22px;
    --radius-xl:      32px;
    --font-display:   Poppins;
    --font-body:      'Barlow', sans-serif;
    /* Legacy compat */
    --text-shadow:    1px 1px 0 #000, -1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000;
    --dark-grey:      #1f1f1f;
    --white-font:     #e0e0e0;
    --amarillo:       var(--accent);
    --rojo:           var(--red);
}

/* ─── Font Faces (legacy) ────────────────────────── */
@font-face { font-family: Montserrat;  src: url(../res/fonts/Montserrat.ttf); }
@font-face { font-family: Poppins;     src: url(../res/fonts/Poppins.ttf); }
@font-face { font-family: HotPizza;    src: url(../res/fonts/HotPizza.otf); }
@font-face { font-family: Nunito;      src: url(../res/fonts/NunitoSans.ttf); }
@font-face { font-family: Pasta;       src: url(../res/fonts/Pasta.ttf); }
@font-face { font-family: GExpanded;   src: url(../res/fonts/GothicExpanded.ttf); }
@font-face { font-family: Cinzel;      src: url(../res/fonts/CinzelBold.ttf); }
@font-face { font-family: Neuropol;      src: url(../res/fonts/Neuropol.otf); }

/* ─── Reset & Base ───────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    padding: 0;
    margin: 0;
    background: var(--bg-base);
    font-family: Montserrat;
    color: var(--text-primary);
    overflow-x: hidden;
    background: url(../res/images/bkk3.jpg) center / cover no-repeat fixed;
}

/* Subtle dark overlay on bg image */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 15, 0.82);
    z-index: 0;
    pointer-events: none;
}

/* Everything above the overlay */
.main-container, .navBar, .top-bar, .shopping-cart,
.whatsapp_bubble, #loader, .mobile-menu {
    position: relative;
    z-index: 1;
}


/* ══════════════════════════════════════════════════
   LOADER
══════════════════════════════════════════════════ */
#loader {
    width: 100vw;
    height: 100vh;
    position: fixed;
    inset: 0;
    background: var(--bg-base);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 999999;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}
#loader.hidden { opacity: 0; visibility: hidden; }

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
.loader-logo-wrap {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid var(--border-accent);
    box-shadow: 0 0 24px var(--accent-glow);
    animation: loaderPulse 1.6s ease-in-out infinite;
}
.loader-logo-wrap img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}
.loader-bar-track {
    width: 160px;
    height: 3px;
    background: rgba(255,255,255,0.08);
    border-radius: 99px;
    overflow: hidden;
}
.loader-bar-fill {
    height: 100%;
    width: 0%;
    background: var(--accent);
    border-radius: 99px;
    animation: loaderBar 1.2s ease-out forwards;
    box-shadow: 0 0 10px var(--accent);
}
.loader-label {
    font-family: var(--font-display);
    font-size: 11px;
    letter-spacing: 4px;
    color: var(--text-muted);
    text-transform: uppercase;
}
@keyframes loaderPulse {
    0%, 100% { box-shadow: 0 0 12px var(--accent-glow); }
    50%       { box-shadow: 0 0 36px rgba(200,255,0,0.35); }
}
@keyframes loaderBar {
    to { width: 100%; }
}
.smallicon {
    width: 20px;
    aspect-ratio: 1/1;
    object-fit: contain;
}


/* ══════════════════════════════════════════════════
   TOP UTILITY BAR
══════════════════════════════════════════════════ */
.top-bar {
    width: 100%;
    height: var(--top-bar-h);
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 900;
}
.top-bar-text {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}
.top-bar-right {
    display: flex;
    gap: 18px;
}
.top-bar-link {
    font-size: 11px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color .2s;
}
.top-bar-link:hover { color: var(--accent); }


/* ══════════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════════ */
.navBar {
    width: 100%;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    background: rgba(10,10,15,0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: var(--top-bar-h);
    z-index: 890;
    transition: background .3s;
}
.nav-links {
    display: none;
    gap: 28px;
}
@media (min-width: 1024px) {
    .nav-links { display: flex; }
}
.nav-link {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-secondary);
    text-decoration: none;
    position: relative;
    padding-bottom: 2px;
    transition: color .2s;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width .3s;
}
.nav-link:hover { color: var(--text-primary); }
.nav-link:hover::after { width: 100%; }

.nav-left-cont {
    display: flex;
    align-items: center;
    gap: 18px;
}
.org-name {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}
.org-name img {
    max-width: 28px;
    max-height: 28px;
    border-radius: 6px;
}
.org-name h1 {
    font-family: Neuropol;
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: 2px;
    margin: 0;
    text-transform: uppercase;
}
.org-name h1 b { color: var(--accent); }

/* Burger */
#burger { display: none; }
.burguer {
    width: 32px;
    height: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    position: relative;
    z-index: 899;
}
.part {
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all .4s cubic-bezier(.68,-.55,.265,1.55);
}
#burger:checked + .burguer .part:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
#burger:checked + .burguer .part:nth-child(2) { opacity: 0; transform: scaleX(0); }
#burger:checked + .burguer .part:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ── Mobile menu: JS dynamically creates/removes a div#modal on burger toggle ── */
/* .mobile-menu in HTML is unused; the real menu is #modal appended to <body>    */
.mobile-menu { display: none; } /* hide the static HTML placeholder */

/* JS-injected modal nav */
#modal {
    width: 100%;
    position: fixed;
    top: calc(var(--top-bar-h) + var(--nav-h));
    left: 0;
    bottom: 0;
    background: rgba(10, 10, 15, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
    z-index: 889;
    border-top: 2px solid var(--accent);
    overflow-y: auto;
    /* AOS will animate it; no CSS transform needed */
}
.modal-option {
    width: 100%;
    height: auto;
    padding: 20px 28px;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border);
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-secondary);
    cursor: pointer;
    text-align: left;
    transition: color .2s, background .2s, padding-left .2s;
}
.modal-option:hover {
    color: var(--accent);
    background: var(--accent-glow-sm);
    padding-left: 40px;
}
/* slide-out animation when burger unchecked */
@keyframes exit {
    from { transform: translateX(0%); opacity: 1; }
    to   { transform: translateX(-100%); opacity: 0; }
}
.exit { animation: exit .45s cubic-bezier(.77,0,.175,1) both; }


/* ══════════════════════════════════════════════════
   CART BUTTON
══════════════════════════════════════════════════ */
.my-cart {
    width: 38px;
    height: 38px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-card) url(../res/icons/empty-cart.svg) center / 20px no-repeat;
    position: relative;
    cursor: pointer;
    transition: border-color .2s, background .2s;
}
.my-cart:hover { border-color: var(--accent); background-color: var(--bg-elevated); }
#cartCount {
    font-size: 9px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    display: none;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    border-radius: 50%;
    color: var(--bg-base);
    position: absolute;
    top: -6px;
    right: -6px;
    padding: 0 2px;
}


/* ══════════════════════════════════════════════════
   WHATSAPP BUBBLE
══════════════════════════════════════════════════ */
.whatsapp_bubble {
    width: 48px;
    height: 48px;
    background: #25d366 url(../res/icons/whatsapp.svg) center / 26px no-repeat;
    border-radius: 50%;
    position: fixed;
    bottom: 24px;
    right: 18px;
    z-index: 888;
    border: 0;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    transition: transform .2s, box-shadow .2s;
}
.whatsapp_bubble:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(37,211,102,0.6);
}


/* ══════════════════════════════════════════════════
   SECTION SYSTEM
══════════════════════════════════════════════════ */
.main-container { overflow-x: hidden; }

.content-sec {
    width: 100%;
    padding: 48px 20px;
    position: relative;
}

.section-header {
    margin-bottom: 28px;
}
.section-eyebrow {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 6px;
}
.section-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 6vw, 48px);
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-primary);
    margin: 0;
    line-height: 1;
}


/* ══════════════════════════════════════════════════
   HERO SECTION
══════════════════════════════════════════════════ */
.hero-section {
    position: relative;
    width: 100%;
    height: clamp(400px, 70vh, 720px);
    overflow: hidden;
    background: var(--bg-surface);
}

/* Slide Container */
.main-section {
    width: 100%;
    height: 100%;
    display: flex;
    overflow-x: scroll;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}
.main-section::-webkit-scrollbar { display: none; }

/* Individual slide */
.img-container {
    width: 100%;
    height: 100%;
    flex-shrink: 0;
    scroll-snap-align: center;
    position: relative;
}
.img-container div {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.big-pizza {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
    transition: transform 6s ease;
}
.big-pizza:hover { transform: scale(1.03); }

/* Hero overlay */
.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 28px;
    background: linear-gradient(0deg, rgba(10,10,15,0.95) 0%, rgba(10,10,15,0.6) 60%, transparent 100%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}
.hero-overlay .hero-cta { pointer-events: auto; }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--accent);
    color: var(--bg-base);
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 4px;
    width: fit-content;
}
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 7vw, 64px);
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-primary);
    margin: 0;
    line-height: 1;
    /* Legacy slide animation compat */
    position: relative;
    height: auto;
    overflow: visible;
}
.hero-title b {
    display: block;
    position: relative;
    opacity: 1;
    transition: transform 0.4s ease, opacity 0.4s ease;
}
/* Keep slide title animation from JS */
.hero-title b.enter-up   { animation: enterUp  .4s forwards; }
.hero-title b.enter-down { animation: enterDown .4s forwards; }
.hero-title b.exit-up    { animation: exitUp    .4s forwards; }
.hero-title b.exit-down  { animation: exitDown  .4s forwards; }
@keyframes enterUp   { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes enterDown { from { transform: translateY(-30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes exitUp    { from { transform: translateY(0); opacity: 1; } to { transform: translateY(-30px); opacity: 0; } }
@keyframes exitDown  { from { transform: translateY(0); opacity: 1; } to { transform: translateY(30px); opacity: 0; } }

.hero-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}
.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: var(--bg-base);
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    width: fit-content;
    transition: background .2s, transform .2s, box-shadow .2s;
    box-shadow: 0 4px 20px var(--accent-glow);
}
.hero-cta:hover {
    background: #d9ff1a;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(200,255,0,0.4);
}

/* Slide Controls */
.slide-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    background-color: rgba(10,10,15,0.75);
    background-size: 18px;
    background-position: center;
    background-repeat: no-repeat;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 30;         /* above .hero-overlay (z-index:10) and .main-section */
    cursor: pointer;
    outline: none;
    transition: background-color .2s, border-color .2s, transform .15s;
    /* prevent the button from being swallowed by the scroll container */
    pointer-events: auto;
}
.slide-control:hover {
    background-color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-50%) scale(1.08);
}
.slide-control:active {
    transform: translateY(-50%) scale(0.95);
}
.left-control {
    left: 16px;
    background-image: url(../res/icons/left.svg);
    display: none; /* JS sets display:block when currentIndex > 0 */
}
.right-control {
    right: 16px;
    background-image: url(../res/icons/right.svg);
    /* visible by default; JS hides when at last slide */
}

/* Slide Dots */
.slide-dots {
    position: absolute;
    bottom: 16px;
    right: 20px;
    display: flex;
    gap: 6px;
    z-index: 20;
}
.slide-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: background .3s, width .3s;
}
.slide-dot.active {
    width: 20px;
    border-radius: 3px;
    background: var(--accent);
}

/* Hero discount badge */
.hero-discount-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 20;
}
.hero-discount-badge .off-badge {
    background: var(--red);
    color: #fff;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    letter-spacing: 1px;
    box-shadow: 0 4px 16px rgba(255,45,85,0.5);
}

/* Legacy descript section */
.descript { width: 100%; overflow: hidden; }
.descontainer { width: 100%; }


/* ══════════════════════════════════════════════════
   FEATURE STRIP
══════════════════════════════════════════════════ */
.feature-strip {
    width: 100%;
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    padding: 0;
}
.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 24px;
    flex: 1;
    min-width: 140px;
    justify-content: center;
}
.feat-icon { font-size: 18px; }
.feat-text {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-secondary);
}
.feature-divider {
    width: 1px;
    height: 30px;
    background: var(--border);
    flex-shrink: 0;
}


/* ══════════════════════════════════════════════════
   CATEGORIES
══════════════════════════════════════════════════ */
#categoriesContainer { background: transparent; }

.categories-grid,
#categs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    width: 100%;
}
@media (min-width: 600px) {
    .categories-grid, #categs { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
    .categories-grid, #categs { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1200px) {
    .categories-grid, #categs { grid-template-columns: repeat(6, 1fr); }
}

.cat_card {
    aspect-ratio: 1 / 1;
    background-color: var(--bg-card);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-end;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border);
    transition: transform .3s, border-color .3s, box-shadow .3s;
}
.cat_card:hover {
    transform: translateY(-4px);
    border-color: var(--border-accent);
    box-shadow: 0 8px 32px var(--accent-glow);
}
.catnom {
    width: 100%;
    padding: 10px 14px;
    background: linear-gradient(0deg, rgba(10,10,15,0.92) 0%, rgba(10,10,15,0.4) 100%);
    backdrop-filter: blur(4px);
}
.catnom span {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-primary);
}


/* ══════════════════════════════════════════════════
   PRODUCT CARDS (rendered by PHP)
══════════════════════════════════════════════════ */
.some-pizzas,
.products-grid,
#someproducts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    width: 100%;
}
@media (min-width: 600px) {
    .some-pizzas, .products-grid, #someproducts { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
    .some-pizzas, .products-grid, #someproducts { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1200px) {
    .some-pizzas, .products-grid, #someproducts { grid-template-columns: repeat(5, 1fr); }
}

/* product card injected from PHP */
.prod-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .3s, border-color .3s, box-shadow .3s;
    position: relative;
}
.prod-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-accent);
    box-shadow: 0 8px 32px var(--accent-glow);
}
.up-to-card {
    padding: 10px 12px 4px;
}
.card-title {
    font-family: var(--font-display) !important;
    font-size: 13px !important;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text-primary);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.prod-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
    transition: transform .4s;
}
.prod-card:hover .prod-image { transform: scale(1.05); }

.price-cont {
    padding: 8px 12px 4px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.price-cont > span {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 800;
    color: var(--accent);
}
.price-cont > span[style*="line-through"] {
    font-size: 11px !important;
    font-weight: 400;
    color: var(--text-muted) !important;
    text-decoration: line-through !important;
}
.smlt {
    font-size: 9px;
    color: var(--text-secondary);
}

.prod-form {
    padding: 8px 10px 12px;
    margin-top: auto;
}
#sell_this {
    display: flex;
    gap: 6px;
    align-items: center;
    width: 100%;
}
.counter-cont {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}
.counter-bt {
    width: 26px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    background: var(--bg-elevated);
    cursor: pointer;
    user-select: none;
    line-height: 1;
    transition: background .2s, color .2s;
}
.counter-bt:hover { background: var(--accent); color: var(--bg-base); }
.counter-cont input {
    width: 30px;
    height: 30px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    background: var(--bg-card);
    border: none;
    outline: none;
    -moz-appearance: textfield;
}
.counter-cont input::-webkit-outer-spin-button,
.counter-cont input::-webkit-inner-spin-button { -webkit-appearance: none; }
.send-button {
    flex: 1;
    min-width: 0;
    height: 30px;
    background: var(--accent);
    color: var(--bg-base);
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
    transition: background .2s, transform .15s;
    padding: 0 6px;
}
.send-button:hover  { background: #d9ff1a; }
.send-button:active { transform: scale(0.96); }

/* Offer badge on cards */
.completbt {
    background: var(--accent);
    color: var(--bg-base);
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: none;
    border-radius: 4px;
    padding: 3px 8px;
    cursor: pointer;
    transition: background .2s;
}
.completbt:hover { background: #d9ff1a; }

/* Empty product placeholder */
.sppm { width: 100%; min-height: 80px; }


/* ══════════════════════════════════════════════════
   SOME PRODUCTS SECTION
══════════════════════════════════════════════════ */
.someprod { background: transparent; }
.someprod .section-title.secmark {
    /* inherits section-title styles */
}


/* ══════════════════════════════════════════════════
   STORES SECTION
══════════════════════════════════════════════════ */
.stores-section { background: transparent; }
.stores-grid,
#stores {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    width: 100%;
}
@media (min-width: 600px) { .stores-grid, #stores { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .stores-grid, #stores { grid-template-columns: repeat(4, 1fr); } }

.storeInfo {
    width: 100%;
    height: 50px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    background: rgba(10,10,15,0.75);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    position: absolute;
    bottom: 0;
    left: 0;
    backdrop-filter: blur(5px);
    color: var(--text-primary);
    font-size: 12px;
}
.banner-cont {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
}


/* ══════════════════════════════════════════════════
   PROMO BANNER
══════════════════════════════════════════════════ */
.promo-banner-sec {
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding: 0;
    overflow: hidden;
}
@media (min-width: 900px) {
    .promo-banner-sec { flex-direction: row; }
}
.promo-image,
.ifimage {
    width: 100%;
    min-height: 280px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    flex: 1;
}
@media (min-width: 900px) {
    .promo-image, .ifimage { min-height: 400px; width: 50%; }
}
.promo-text,
.message-com {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 28px;
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
    background: var(--bg-surface);
}


/* ══════════════════════════════════════════════════
   MAP SECTION
══════════════════════════════════════════════════ */
.map-wrap {
    display: flex;
    flex-direction: column;
    gap: 24px;
    background: transparent;
    padding: 48px 0;
}
@media (min-width: 900px) {
    .map-wrap { flex-direction: row; align-items: stretch; }
}
#sucinfo {
    padding: 0 20px;
    min-width: 260px;
}
.sucs_section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}
.dircontainer {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    padding: 10px 16px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}
#mapa {
    flex: 1;
    min-height: 300px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
    margin: 0 20px;
}
@media (min-width: 900px) {
    #mapa { min-height: 400px; }
}


/* ══════════════════════════════════════════════════
   ABOUT SECTION
══════════════════════════════════════════════════ */
.about-sec {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    padding: 60px 28px;
}
.about-sec video {
    position: absolute;
    top: 50%; left: 50%;
    min-width: 100%; min-height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
    filter: brightness(0.35);
}
.about-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
}
#ustext {
    font-size: 15px;
    line-height: 1.8;
    color: rgba(240,240,245,0.85);
    margin: 16px 0 0;
    background: rgba(10,10,15,0.6);
    backdrop-filter: blur(6px);
    border-radius: var(--radius-md);
    padding: 24px 28px;
    border: 1px solid var(--border);
}


/* ══════════════════════════════════════════════════
   DELIVERY SECTION
══════════════════════════════════════════════════ */
.delivery-section {
    background: transparent;
    padding: 60px 20px;
}
.delivery-desc {
    display: flex;
    flex-direction: column;
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}
@media (min-width: 900px) {
    .delivery-desc { flex-direction: row; }
}
.delivery-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.delivery-text h3 {
    font-family: var(--font-display);
    font-size: clamp(22px, 4vw, 38px);
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-primary);
    margin: 0;
}
.delivery-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.delivery-list li {
    font-size: 14px;
    color: var(--text-secondary);
    padding-left: 18px;
    position: relative;
}
.delivery-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}
.deliveryman {
    flex: 1;
    max-width: 480px;
}
.deliveryman img {
    width: 100%;
    border-radius: var(--radius-md);
    object-fit: cover;
    aspect-ratio: 4/3;
    border: 1px solid var(--border);
}


/* ══════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════ */
.footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
}
.footer-cta {
    background: linear-gradient(135deg, var(--bg-elevated), #131320);
    border-bottom: 1px solid var(--border);
    padding: 36px 24px;
}
.footer-cta-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.footer-cta-text h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-primary);
    margin: 0 0 4px;
}
.footer-cta-text span {
    font-size: 13px;
    color: var(--text-secondary);
}
.dwapp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: var(--bg-base);
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: none;
    border-radius: var(--radius-sm);
    padding: 14px 28px;
    cursor: pointer;
    transition: background .2s, transform .2s;
    white-space: nowrap;
}
.dwapp:hover { background: #d9ff1a; transform: translateY(-2px); }
.dwapp-icon { font-size: 16px; }

.footercontent {
    padding: 40px 24px;
    max-width: 1200px;
    margin: 0 auto;
}
.footer-top {
    display: flex;
    gap: 48px;
    flex-wrap: wrap;
    justify-content: space-between;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
}
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 300px;
}
.footer-tagline {
    font-size: 13px;
    color: var(--text-secondary);
    font-style: italic;
    margin: 0;
    line-height: 1.6;
}
.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer-nav-title {
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0 0 4px;
}
.footer-link {
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color .2s, padding-left .2s;
}
.footer-link:hover { color: var(--accent); padding-left: 6px; }

.footer-bottom {
    padding-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.powered {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 1px;
}

/* Social icons */
.social {
    display: flex;
    gap: 10px;
}
.socialsource {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background-color: var(--bg-elevated);
    background-size: 18px;
    background-position: center;
    background-repeat: no-repeat;
    transition: border-color .2s, background-color .2s, transform .2s;
}
.socialsource:hover { border-color: var(--accent); background-color: var(--accent-glow-sm); transform: translateY(-2px); }
.socialsource.facebook  { background-image: url(../res/icons/facebook.svg); }
.socialsource.whatsapp  { background-image: url(../res/icons/whatsapp.svg); }
.socialsource.instagram { background-image: url(../res/icons/instagram.svg); }
.socialsource.tiktok    { background-image: url(../res/icons/tiktok.svg); }


/* ══════════════════════════════════════════════════
   SHOPPING CART PANEL
══════════════════════════════════════════════════ */
@keyframes showcart   { to   { transform: scaleY(1); } }
@keyframes hiddecart  { from { transform: scaleY(1); } to { transform: scaleY(0); } }

.shopping-cart {
    width: 100%;
    min-height: 350px;
    background: var(--bg-surface);
    border-top: 3px solid var(--accent);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: fixed;
    top: calc(var(--top-bar-h) + var(--nav-h));
    left: 0;
    z-index: 999;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    transition: all .3s cubic-bezier(1,0,0,1);
    transform-origin: top;
    transform: scaleY(0.01);
    animation: showcart .3s linear both;
}
.hidde-shopping-cart { animation: hiddecart .3s linear both; }

.shopping-cart .table-container {
    width: 100%;
    height: 47vh;
    display: flex;
    padding: 0 0 15px;
    align-items: flex-start;
    justify-content: flex-start;
    overflow: auto;
}
.shopping-cart .table-container table { width: 100%; border-collapse: collapse; }

.table-container table thead tr { background: var(--bg-base); }
.table-container table thead tr th {
    padding: 10px 8px;
    color: var(--text-secondary);
    font-family: var(--font-display);
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.table-container table tbody tr { cursor: pointer; }
.table-container table tbody tr:nth-child(even) { background: rgba(255,255,255,0.02); }
.table-container table tbody tr:hover { background: var(--accent-glow-sm); }
.table-container table tbody tr td {
    font-size: 12px;
    padding: 12px 8px;
    text-align: center;
    color: var(--text-primary);
}
.table-container table tbody tr td:nth-child(2) { text-align: left; }

.caroptions {
    width: 100%;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    border-top: 1px solid var(--border);
    background: var(--bg-surface);
}
.cartotal { display: flex; align-items: flex-end; gap: 4px; }
.cartotal span { font-size: 12px; color: var(--text-secondary); }
.cartotal span:nth-child(2) {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
    color: var(--accent);
}
.btcart { display: flex; align-items: center; gap: 14px; }

.vaciarbtn {
    width: 34px;
    height: 34px;
    border: 1px solid var(--red);
    border-radius: var(--radius-sm);
    background: rgba(255,45,85,0.15) url(../res/icons/clear-all.svg) center / 14px no-repeat;
    cursor: pointer;
    transition: background .2s;
}
.vaciarbtn:hover { background-color: rgba(255,45,85,0.35); }

.addbt.sinbk {
    background: var(--accent);
    color: var(--bg-base);
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 8px 20px;
    cursor: pointer;
    transition: background .2s;
}
.addbt.sinbk:hover { background: #d9ff1a; }

.delprod {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent url(../res/icons/delete-red.svg) center / 16px no-repeat;
    cursor: pointer;
}

.vacont {
    width: 100%;
    height: 45vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}
.vacont h3 {
    font-family: var(--font-display);
    font-size: 18px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
}
.pizzawalk {
    width: 120px;
    aspect-ratio: 1/1;
    opacity: 0.4;
}
.makont {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.makont .lfcon:nth-child(2) {
    padding: 10px;
}
.car_add_button {
    width: 30px;
    aspect-ratio: 1/1;
    border-radius: 10px;
    border: 2px solid var(--accent);
    cursor: pointer;
    background: var(--accent) url(../res/icons/add-to-cart-dark.svg) center / 18px no-repeat;
}
/* ══════════════════════════════════════════════════
   PROPS (product description panel from JS)
══════════════════════════════════════════════════ */
.props {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    width: 100%;
    height: auto;
    gap: 8px;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-card);
    padding: 30px;
    border: 1px solid var(--border);
    border-top: none;
}
.up_scont {
    width: 100%;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.add_cart_btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-accent);
    background: var(--accent) url(../res/icons/add-to-cart-dark.svg) center / 22px no-repeat;
    cursor: pointer;
    transition: background .2s, transform .2s;
}
.add_cart_btn:hover { transform: scale(1.1); }
.props h2 {
    font-family: var(--font-display);
    font-size: 12px;
    padding: 6px 14px;
    background: var(--accent);
    color: var(--bg-base);
    border-radius: 99px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0;
}
.props b {
    font-family: var(--font-display);
    font-size: clamp(24px, 6vw, 38px);
    color: var(--accent);
    font-weight: 900;
}
.props span {
    font-size: 13px;
    color: var(--text-secondary);
}
.props ul {
    font-size: 13px;
    color: var(--text-primary);
    padding: 0 0 0 16px;
    margin: 0;
}
.props p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}
.tiendaName {
    position: absolute;
    right: 0; top: 0;
    font-size: 11px;
    color: var(--text-muted);
    padding: 4px 10px;
    background: var(--bg-elevated);
    border-radius: 0 var(--radius-sm) 0 var(--radius-sm);
}


/* ══════════════════════════════════════════════════
   MODAL / PAGE OVERLAY — see #modal rules above
   (kept empty for legacy class references from JS)
══════════════════════════════════════════════════ */


/* ══════════════════════════════════════════════════
   SEARCH SECTION
══════════════════════════════════════════════════ */
.search-section { background: transparent; }
.search-container {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}
.search-bar {
    display: flex;
    gap: 10px;
    align-items: center;
}
#search-input {
    flex: 1;
    height: 46px;
    padding: 0 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 14px;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}
#search-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow-sm);
}
#search-input::placeholder { color: var(--text-muted); }
.search-button {
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 50%;
    background: var(--accent) url(../res/icons/search.svg) center / 20px no-repeat;
    cursor: pointer;
    transition: background .2s, transform .15s;
    flex-shrink: 0;
}
.search-button:hover { background-color: #d9ff1a; }
.search-button:active { transform: scale(0.93); }
.filters-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.filter-group { flex: 1; min-width: 130px; }
.filter-select {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 13px;
    cursor: pointer;
    outline: none;
    transition: border-color .2s;
}
.filter-select:focus { border-color: var(--accent); }
.filter-select:disabled { opacity: 0.4; cursor: not-allowed; }
.clear-btn {
    height: 40px;
    padding: 0 18px;
    border: 1px solid var(--red);
    border-radius: var(--radius-sm);
    background: rgba(255,45,85,0.1);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 13px;
    cursor: pointer;
    transition: background .2s;
    white-space: nowrap;
}
.clear-btn:hover { background: rgba(255,45,85,0.25); }
.search-results { margin-top: 20px; display: none; }
.search-results.active { display: block; }
.results-header {
    padding: 12px 16px;
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    border: 1px solid var(--border);
}
#results-count {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--accent);
    text-transform: uppercase;
}
.no-results {
    text-align: center;
    padding: 48px 20px;
    color: var(--text-muted);
}
.no-results-icon { font-size: 56px; display: block; margin-bottom: 12px; }
.loading-results { text-align: center; padding: 40px; color: var(--text-secondary); }
.loading-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--bg-elevated);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 12px;
}


/* ══════════════════════════════════════════════════
   WHATSAPP MODAL / MESSBOX
══════════════════════════════════════════════════ */
.messbox {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.messbox h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
    margin: 0;
}
.messbox input {
    width: 90%;
    height: 44px;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.1) url(../res/icons/user.svg) 10px / 22px no-repeat;
    border-radius: var(--radius-sm);
    padding: 0 12px 0 38px;
    outline: none;
    font-size: 15px;
    color: #fff;
}
.messbox input::placeholder { color: rgba(255,255,255,0.5); }
.messbox textarea {
    width: 90%;
    min-height: 130px;
    max-height: 200px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.08);
    padding: 10px;
    font-size: 14px;
    resize: none;
    color: #fff;
    outline: none;
}
.messbox button {
    width: 90%;
    height: 44px;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--bg-base);
    border: none;
    border-radius: var(--radius-sm);
    background: var(--accent) url(../res/icons/send.svg) 12px / 22px no-repeat;
    padding-left: 40px;
    cursor: pointer;
    transition: background .2s;
}
.messbox button:hover { background-color: #d9ff1a; }


/* ══════════════════════════════════════════════════
   PRODUCT INFO MODAL (injected by JS)
══════════════════════════════════════════════════ */
.infoprod-w {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.photos_container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.portada_cont img {
    width: 100%;
    border-radius: var(--radius-md);
    object-fit: cover;
    border: 1px solid var(--border);
}
.otherphotos {
    display: flex;
    gap: 8px;
}
.fotocolumns img {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: border-color .2s;
}
.fotocolumns img:hover { border-color: var(--accent); }


/* ══════════════════════════════════════════════════
   UTILITIES
══════════════════════════════════════════════════ */
@keyframes spin { to { transform: rotate(360deg); } }

.separator { width: 100%; height: 0; }

.permscontainer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}
.permscontainer img { width: 70px; aspect-ratio: 1/1; object-fit: contain; }
.permscontainer span { font-size: 13px; color: var(--text-secondary); }

/* tiendaName compat */
.tiendaName { position: absolute; right: 0; top: 0; font-size: 11px; }

/* Checkoutbtn legacy */
.checkoutbtn {
    border: 1px solid var(--bg-base);
    background: var(--accent) url(../res/icons/checkout-cart.svg) 8px / 18px no-repeat;
    color: var(--bg-base);
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    padding: 6px 8px 6px 32px;
    height: 34px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background .2s;
}


/* ══════════════════════════════════════════════════
   RESPONSIVE OVERRIDES
══════════════════════════════════════════════════ */
@media (max-width: 599px) {
    :root { --top-bar-h: 0px; }
    .top-bar { display: none; }
    .filters-container { flex-direction: column; }
    .filter-group { width: 100%; }
    .hero-overlay { padding: 24px 16px; }
    .content-sec { padding: 36px 14px; }
    .footer-top { flex-direction: column; gap: 28px; }
}

@media (min-width: 1000px) {
    .hero-section { height: clamp(500px, 80vh, 820px); }
    .promo-banner-sec { flex-direction: row; }
    .map-wrap { flex-direction: row; align-items: stretch; }
    #mapa { min-height: 450px; }
    .delivery-desc { flex-direction: row; }
    .content-sec { padding: 64px 40px; }
}

@media (min-width: 1400px) {
    .content-sec { padding: 80px 80px; }
    .footercontent { padding: 56px 0; }
}