/**
 * ═══════════════════════════════════════════════════════════
 * LojaOnline — MAIN STYLESHEET
 * Phase 1: Foundation & Core E-Commerce Engine
 * 
 * Aesthetic: Tech-forward dark theme with electric accents
 * Typography: Outfit (display + body)
 * ═══════════════════════════════════════════════════════════
 */

/* ─── CSS RESET & VARIABLES ──────────────────────── */

:root {
    /* Colors */
    --bg-primary:       #0a0b0f;
    --bg-secondary:     #111218;
    --bg-tertiary:      #181a23;
    --bg-card:          #13141b;
    --bg-elevated:      #1c1e28;
    --bg-hover:         #1f2130;
    --bg-input:         #15161e;

    --text-primary:     #eaedf3;
    --text-secondary:   #9ca3b4;
    --text-muted:       #5f6578;
    --text-inverse:     #0a0b0f;

    --accent:           #3b82f6;
    --accent-hover:     #2563eb;
    --accent-light:     #60a5fa;
    --accent-glow:      rgba(59, 130, 246, 0.15);

    --green:            #22c55e;
    --green-bg:         rgba(34, 197, 94, 0.1);
    --red:              #ef4444;
    --red-bg:           rgba(239, 68, 68, 0.1);
    --orange:           #f59e0b;
    --orange-bg:        rgba(245, 158, 11, 0.1);
    --purple:           #a855f7;

    --border:           #1e2030;
    --border-light:     #282a3a;
    --border-hover:     #363850;

    --shadow-sm:        0 1px 2px rgba(0,0,0,0.3);
    --shadow-md:        0 4px 12px rgba(0,0,0,0.4);
    --shadow-lg:        0 8px 30px rgba(0,0,0,0.5);
    --shadow-glow:      0 0 20px rgba(59,130,246,0.15);

    /* Typography */
    --font-primary:     'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono:        'JetBrains Mono', monospace;

    /* Sizing */
    --header-h:         64px;
    --nav-h:            48px;
    --top-bar-h:        36px;
    --total-header-h:   calc(var(--top-bar-h) + var(--header-h) + var(--nav-h));
    --container-w:      1340px;
    --radius-sm:        6px;
    --radius-md:        10px;
    --radius-lg:        16px;
    --radius-xl:        24px;

    /* Transitions */
    --ease:             cubic-bezier(0.4, 0, 0.2, 1);
    --duration:         0.2s;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

a { color: var(--accent-light); text-decoration: none; transition: color var(--duration) var(--ease); }
a:hover { color: var(--accent); }

img { max-width: 100%; height: auto; display: block; }

button { 
    cursor: pointer; font-family: inherit; border: none; background: none; 
    color: inherit; font-size: inherit;
}

input, select, textarea {
    font-family: inherit; font-size: inherit; color: var(--text-primary);
    background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius-sm);
    padding: 0.6rem 1rem; outline: none; transition: border-color var(--duration) var(--ease);
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); }

ul, ol { list-style: none; }

.container {
    width: 100%; max-width: var(--container-w); margin: 0 auto; padding: 0 1.25rem;
}


/* ─── TOP BAR ────────────────────────────────────── */

.top-bar {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    height: var(--top-bar-h);
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.top-bar__inner {
    display: flex; align-items: center; justify-content: space-between; height: 100%;
}

.top-bar__left { display: flex; align-items: center; gap: 1.25rem; }

.top-bar__text, .top-bar__link {
    display: flex; align-items: center; gap: 0.35rem; color: var(--text-secondary);
}
.top-bar__link:hover { color: var(--accent-light); }

.top-bar__promo { color: var(--green); font-weight: 500; }

@media (max-width: 768px) {
    .top-bar { display: none; }
    :root { --top-bar-h: 0px; }
}


/* ─── HEADER ─────────────────────────────────────── */

.header {
    position: sticky; top: 0; z-index: 1000;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    transition: box-shadow 0.3s var(--ease);
}
.header.scrolled { box-shadow: var(--shadow-lg); }

.header__inner {
    display: flex; align-items: center; gap: 1.5rem;
    height: var(--header-h); 
}

.header__logo { flex-shrink: 0; }
.logo-text {
    font-size: 1.65rem; font-weight: 800; letter-spacing: -0.02em;
    color: var(--text-primary);
}
.logo-accent { color: var(--accent); }
.footer__logo {
    font-size: 1.4rem; font-weight: 800; letter-spacing: -0.02em;
    color: var(--text-primary); display: block; margin-bottom: 0.75rem;
}

/* Search */
.header__search { flex: 1; max-width: 580px; position: relative; }

.search-form {
    display: flex; position: relative;
}
.search-form__input {
    width: 100%; background: var(--bg-tertiary); border: 1px solid var(--border);
    border-radius: var(--radius-xl); padding: 0.6rem 3rem 0.6rem 1.2rem;
    font-size: 0.9rem; color: var(--text-primary);
    transition: all var(--duration) var(--ease);
}
.search-form__input:focus {
    border-color: var(--accent); background: var(--bg-elevated);
    box-shadow: var(--shadow-glow);
}
.search-form__input::placeholder { color: var(--text-muted); }

.search-form__btn {
    position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
    background: var(--accent); color: #fff; border-radius: 50%;
    width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
    transition: background var(--duration) var(--ease);
}
.search-form__btn:hover { background: var(--accent-hover); }

/* Header icons */
.header__actions { display: flex; align-items: center; gap: 0.25rem; flex-shrink: 0; }

.header__icon-btn {
    display: flex; flex-direction: column; align-items: center; gap: 0.15rem;
    padding: 0.4rem 0.65rem; border-radius: var(--radius-sm);
    color: var(--text-secondary); transition: all var(--duration) var(--ease);
    position: relative;
}
.header__icon-btn:hover { color: var(--text-primary); background: var(--bg-hover); }

.header__icon-label { font-size: 0.65rem; font-weight: 500; }

.header__cart { position: relative; }
.header__cart-badge {
    position: absolute; top: 0; right: 0.2rem;
    background: var(--accent); color: #fff; font-size: 0.6rem; font-weight: 700;
    width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--bg-primary);
}

/* Hamburger */
.header__hamburger { display: none; flex-direction: column; gap: 5px; padding: 0.5rem; }
.header__hamburger span {
    display: block; width: 22px; height: 2px; background: var(--text-primary);
    border-radius: 2px; transition: all 0.3s var(--ease);
}

@media (max-width: 768px) {
    .header__icon-label { display: none; }
    .header__hamburger { display: flex; }
    .header__search { max-width: none; order: 10; position: absolute; bottom: -56px; left: 0; right: 0; padding: 0.5rem 1rem; background: var(--bg-primary); border-bottom: 1px solid var(--border); display: none; }
    .header__search.active { display: block; }
    .header__inner { flex-wrap: wrap; }
}


/* ─── NAVIGATION / MEGA MENU ─────────────────────── */

.nav {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    height: auto;
    min-height: var(--nav-h);
    overflow: visible;
    padding: 4px 0;
}

.nav__list {
    display: flex; align-items: center; height: 100%;
    gap: 0; overflow-x: auto; overflow-y: visible; scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.nav__list::-webkit-scrollbar { display: none; }

.nav__item { position: relative; flex-shrink: 0; }

.nav__link {
    display: flex; align-items: center; gap: 0.35rem;
    padding: 0.35rem 0.85rem; height: 100%;
    font-size: 0.82rem; font-weight: 500; white-space: nowrap;
    color: var(--text-secondary);
    transition: all var(--duration) var(--ease);
    border-bottom: 2px solid transparent;
}
.nav__link:hover {
    color: var(--text-primary); background: var(--bg-hover);
    border-bottom-color: var(--accent);
}

.nav__icon { font-size: 1rem; line-height: 1; }

.nav__badge {
    font-size: 0.6rem; font-weight: 700; text-transform: uppercase;
    background: var(--accent); color: #fff; padding: 0.1rem 0.4rem;
    border-radius: 3px; letter-spacing: 0.03em;
}
.nav__badge--sm { font-size: 0.55rem; padding: 0.05rem 0.3rem; }

.nav__item--highlight .nav__link {
    color: var(--accent-light); font-weight: 600;
}
.nav__link--accent:hover { color: var(--accent); }

/* Mega Menu */
.mega-menu {
    display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
    min-width: 600px; max-width: 900px;
    background: var(--bg-elevated); border: 1px solid var(--border-light);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 999; padding: 1.5rem;
    animation: megaFadeIn 0.2s var(--ease);
}

@keyframes megaFadeIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-8px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.nav__item.has-mega:hover > .mega-menu { display: block; }

.mega-menu__inner {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.5rem;
}

.mega-menu__heading {
    display: block; font-size: 0.85rem; font-weight: 600; color: var(--text-primary);
    margin-bottom: 0.6rem; padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--border);
}
.mega-menu__heading:hover { color: var(--accent-light); }

.mega-menu__links li a {
    display: block; font-size: 0.8rem; color: var(--text-secondary);
    padding: 0.2rem 0; transition: color var(--duration);
}
.mega-menu__links li a:hover { color: var(--accent-light); padding-left: 0.3rem; }

.mega-menu__promo {
    grid-column: 1 / -1; border-top: 1px solid var(--border);
    padding-top: 1rem; margin-top: 0.5rem;
}
.mega-menu__promo-link {
    font-size: 0.82rem; font-weight: 600; color: var(--accent-light);
}

/* Mobile nav open state */
@media (max-width: 1024px) {
    .nav {
        display: none; position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
        height: auto; overflow-y: auto; z-index: 999;
        background: var(--bg-primary); border-bottom: none;
        padding: 1rem 0;
    }
    .nav.nav--open { display: block; }
    :root { --nav-h: 0px; }
    .nav__list { flex-direction: column; height: auto; gap: 0; }
    .nav__item { height: auto; }
    .nav__link { padding: 0.75rem 1.25rem; font-size: 0.95rem; border-bottom: none; }
    .mega-menu {
        position: static; transform: none; min-width: auto; max-width: none;
        border: none; border-radius: 0; box-shadow: none;
        background: var(--bg-secondary); padding: 0.5rem 1.25rem 1rem;
        animation: none; display: none;
    }
    .nav__item.has-mega.open > .mega-menu { display: block; }
    .mega-menu__inner { grid-template-columns: 1fr 1fr; gap: 1rem; }
}

/* Hamburger active (X shape) */
.header__hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.header__hamburger.active span:nth-child(2) { opacity: 0; }
.header__hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Body lock when menu open */
body.menu-open { overflow: hidden; }


/* ─── HEADER SPACER ──────────────────────────────── */

.header-spacer { height: 0; }


/* ─── BREADCRUMBS ────────────────────────────────── */

.breadcrumbs {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 0.65rem 0;
}
.breadcrumbs__list {
    display: flex; align-items: center; flex-wrap: wrap; gap: 0.3rem;
    font-size: 0.78rem;
}
.breadcrumbs__item { display: flex; align-items: center; gap: 0.3rem; }
.breadcrumbs__item:not(:last-child)::after {
    content: '›'; color: var(--text-muted); margin-left: 0.15rem;
}
.breadcrumbs__item a { color: var(--text-secondary); }
.breadcrumbs__item a:hover { color: var(--accent-light); }
.breadcrumbs__current { color: var(--text-primary); font-weight: 500; }


/* ─── MAIN ───────────────────────────────────────── */

.main { min-height: 60vh; }


/* ─── HERO BANNER ────────────────────────────────── */

.hero {
    position: relative; overflow: hidden;
    min-height: 420px;
}

.hero__track { position: relative; }

.hero__slide {
    display: none; position: relative; min-height: 420px;
}
.hero__slide--active { display: block; }

.hero__slide-bg {
    position: absolute; inset: 0; z-index: 0;
}

/* Dark overlay for text readability on real banner images */
.hero__slide-overlay {
    position: absolute; inset: 0; z-index: 0;
    background: linear-gradient(90deg, rgba(10,11,15,0.92) 0%, rgba(10,11,15,0.7) 45%, rgba(10,11,15,0.3) 100%);
}

.hero__slide-inner {
    position: relative; z-index: 1;
    display: flex; align-items: center; justify-content: space-between;
    min-height: 420px; padding: 3rem 0;
}

.hero__content { max-width: 560px; }

.hero__title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800; line-height: 1.15;
    letter-spacing: -0.025em;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-light) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__subtitle {
    font-size: 1.05rem; color: var(--text-secondary);
    line-height: 1.6; margin-bottom: 2rem; max-width: 480px;
}

.hero__visual {
    position: relative; width: 300px; height: 300px; flex-shrink: 0;
}
.hero__glow {
    position: absolute; inset: 0;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    border-radius: 50%; filter: blur(40px);
    animation: heroGlow 4s ease-in-out infinite alternate;
}
@keyframes heroGlow {
    from { opacity: 0.5; transform: scale(0.9); }
    to   { opacity: 1; transform: scale(1.1); }
}

/* Hero controls */
.hero__controls {
    position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
    display: flex; align-items: center; gap: 1rem; z-index: 10;
}

.hero__arrow {
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,0.08); border: 1px solid var(--border-light);
    color: var(--text-secondary);
    display: flex; align-items: center; justify-content: center;
    transition: all var(--duration);
}
.hero__arrow:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

.hero__dots { display: flex; gap: 0.5rem; }
.hero__dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--text-muted); transition: all 0.3s;
}
.hero__dot--active { background: var(--accent); width: 24px; border-radius: 4px; }

@media (max-width: 768px) {
    .hero { min-height: 320px; }
    .hero__slide, .hero__slide-inner { min-height: 320px; }
    .hero__visual { display: none; }
    .hero__title { font-size: 1.6rem; }
}


/* ─── QUICK CATEGORY FILTERS ─────────────────────── */

.quick-cats { padding: 1.75rem 0; background: var(--bg-secondary); border-bottom: 1px solid var(--border); overflow: visible; }

.quick-cats__grid {
    display: flex; gap: 0.75rem; overflow-x: auto; overflow-y: visible;
    scrollbar-width: none; padding: 8px 4px;
    -webkit-overflow-scrolling: touch;
}
.quick-cats__grid::-webkit-scrollbar { display: none; }

.quick-cats__item {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.55rem 1.1rem; border-radius: var(--radius-xl);
    background: var(--bg-tertiary); border: 1px solid var(--border);
    white-space: nowrap; font-size: 0.85rem; font-weight: 500;
    color: var(--text-secondary); transition: all var(--duration) var(--ease);
    flex-shrink: 0;
}
.quick-cats__item:hover {
    background: var(--accent-glow); border-color: var(--accent);
    color: var(--accent-light); transform: translateY(-1px);
}

.quick-cats__icon { font-size: 1.1rem; }


/* ─── SECTIONS ───────────────────────────────────── */

.section { padding: 3rem 0; }
.section--dark { background: var(--bg-secondary); }

.section__header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 1.75rem;
}

.section__title {
    font-size: 1.4rem; font-weight: 700; letter-spacing: -0.01em;
}

.section__link {
    font-size: 0.85rem; font-weight: 600; color: var(--accent-light);
    transition: color var(--duration);
}
.section__link:hover { color: var(--accent); }


/* ─── PRODUCT GRID ───────────────────────────────── */

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}

@media (max-width: 600px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
}


/* ─── PRODUCT CARD ───────────────────────────────── */

.product-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-md); overflow: hidden;
    position: relative;
    transition: all 0.3s var(--ease);
    display: flex; flex-direction: column;
}
.product-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

/* Badges */
.product-card__badges {
    position: absolute; top: 0.6rem; left: 0.6rem; z-index: 5;
    display: flex; flex-wrap: wrap; gap: 0.3rem;
}
.product-card__badge {
    font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
    padding: 0.2rem 0.5rem; border-radius: 4px; letter-spacing: 0.03em;
}
.product-card__badge--discount { background: var(--red); color: #fff; }
.product-card__badge--new { background: var(--accent); color: #fff; }
.product-card__badge--own { background: var(--purple); color: #fff; }
.product-card__badge--preorder { background: var(--orange); color: var(--text-inverse); }

/* Wishlist */
.product-card__wishlist {
    position: absolute; top: 0.6rem; right: 0.6rem; z-index: 5;
    width: 32px; height: 32px; border-radius: 50%;
    background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-secondary); transition: all var(--duration);
    opacity: 0;
}
.product-card:hover .product-card__wishlist { opacity: 1; }
.product-card__wishlist:hover { background: var(--red); color: #fff; }

/* Image */
.product-card__image {
    aspect-ratio: 4/3; background: var(--bg-tertiary);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.product-card__img {
    width: 100%; height: 100%; object-fit: contain;
    padding: 0.75rem;
    transition: transform 0.4s var(--ease);
}
.product-card:hover .product-card__img { transform: scale(1.05); }

.product-card__image-placeholder {
    display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
}
.product-card__image-sku {
    font-family: var(--font-mono); font-size: 0.65rem; color: var(--text-muted);
}

/* Info */
.product-card__info {
    padding: 0.9rem; display: flex; flex-direction: column; gap: 0.4rem; flex: 1;
}

.product-card__brand {
    font-size: 0.7rem; font-weight: 600; text-transform: uppercase;
    color: var(--accent-light); letter-spacing: 0.05em;
}

.product-card__title {
    font-size: 0.82rem; font-weight: 500; line-height: 1.4;
}
.product-card__title a { color: var(--text-primary); }
.product-card__title a:hover { color: var(--accent-light); }

/* Stock badge */
.product-card__stock {
    font-size: 0.72rem; font-weight: 500;
}
.badge-success { color: var(--green); }
.badge-danger  { color: var(--red); }
.badge-warning { color: var(--orange); }
.badge-info    { color: var(--accent-light); }

/* Prices */
.product-card__price-row { margin-top: auto; padding-top: 0.5rem; }

.product-card__prices { display: flex; align-items: baseline; gap: 0.5rem; }

.product-card__price-original {
    font-size: 0.82rem; color: var(--text-muted);
    text-decoration: line-through;
}

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

.product-card__installment {
    font-size: 0.68rem; color: var(--text-muted);
    margin-top: 0.15rem;
}

/* Actions */
.product-card__actions { margin-top: 0.65rem; }

@media (max-width: 600px) {
    .product-card__info { padding: 0.65rem; }
    .product-card__title { font-size: 0.72rem; }
    .product-card__price-current { font-size: 1rem; }
    .product-card__installment { display: none; }
}


/* ─── BUTTONS ────────────────────────────────────── */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
    padding: 0.6rem 1.25rem; border-radius: var(--radius-sm);
    font-size: 0.85rem; font-weight: 600; text-align: center;
    transition: all var(--duration) var(--ease);
    border: 1px solid transparent; cursor: pointer;
    white-space: nowrap;
}

.btn--primary {
    background: var(--accent); color: #fff; border-color: var(--accent);
}
.btn--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; transform: translateY(-1px); }

.btn--outline {
    background: transparent; color: var(--accent-light); border-color: var(--accent);
}
.btn--outline:hover { background: var(--accent-glow); color: var(--accent); }

.btn--hero {
    background: var(--accent); color: #fff; border-color: var(--accent);
    padding: 0.75rem 2rem; font-size: 0.95rem; border-radius: var(--radius-md);
}
.btn--hero:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; box-shadow: var(--shadow-glow); transform: translateY(-2px); }

.btn--preorder {
    background: var(--orange-bg); color: var(--orange); border-color: var(--orange);
    width: 100%;
}
.btn--preorder:hover { background: var(--orange); color: var(--text-inverse); }

.btn--notify {
    background: var(--bg-tertiary); color: var(--text-secondary); border-color: var(--border);
    width: 100%;
}
.btn--notify:hover { border-color: var(--accent); color: var(--accent-light); }

.btn--add-cart {
    width: 100%;
}


/* ─── CATEGORY TILES ─────────────────────────────── */

.category-tiles {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

.category-tile {
    display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
    padding: 1.5rem 1rem; border-radius: var(--radius-md);
    background: var(--bg-card); border: 1px solid var(--border);
    text-align: center; transition: all 0.3s var(--ease);
    position: relative;
}
.category-tile:hover {
    border-color: var(--accent); background: var(--accent-glow);
    transform: translateY(-4px); box-shadow: var(--shadow-glow);
    color: var(--text-primary);
}

.category-tile__icon { font-size: 2rem; }
.category-tile__name { font-size: 0.85rem; font-weight: 600; color: var(--text-primary); }
.category-tile__badge {
    position: absolute; top: 0.5rem; right: 0.5rem;
    font-size: 0.6rem; font-weight: 700; background: var(--green);
    color: #fff; padding: 0.1rem 0.35rem; border-radius: 3px;
}


/* ─── PROMO BANNER ───────────────────────────────── */

.promo-banner { padding: 2rem 0; }

.promo-banner__inner {
    display: flex; align-items: center; justify-content: space-between;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg); padding: 3rem;
    position: relative; overflow: hidden;
}

.promo-banner__content { max-width: 500px; position: relative; z-index: 1; }
.promo-banner__tag {
    display: inline-block; font-size: 0.7rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--purple); background: rgba(168, 85, 247, 0.1);
    padding: 0.25rem 0.75rem; border-radius: 3px; margin-bottom: 1rem;
}
.promo-banner__title { font-size: 1.8rem; font-weight: 800; margin-bottom: 0.75rem; }
.promo-banner__text { color: var(--text-secondary); margin-bottom: 1.5rem; font-size: 0.95rem; }
.promo-banner__ctas { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.promo-banner__visual {
    position: relative; width: 200px; height: 200px; flex-shrink: 0;
}
.promo-banner__glow {
    position: absolute; inset: -50%; border-radius: 50%;
    background: radial-gradient(circle, rgba(168,85,247,0.2) 0%, transparent 70%);
    filter: blur(30px); animation: heroGlow 3s ease-in-out infinite alternate;
}
.promo-banner__icon {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    font-size: 5rem;
}

@media (max-width: 768px) {
    .promo-banner__inner { flex-direction: column; text-align: center; padding: 2rem 1.5rem; }
    .promo-banner__visual { display: none; }
    .promo-banner__ctas { justify-content: center; }
}


/* ─── TRUST SIGNALS ──────────────────────────────── */

.trust {
    padding: 3rem 0; background: var(--bg-secondary);
    border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}

.trust__grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
}

.trust__item { text-align: center; }
.trust__icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 56px; height: 56px; border-radius: var(--radius-md);
    background: var(--accent-glow); color: var(--accent-light);
    margin-bottom: 0.75rem;
}
.trust__item h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.3rem; }
.trust__item p { font-size: 0.8rem; color: var(--text-secondary); }

@media (max-width: 768px) {
    .trust__grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}
@media (max-width: 480px) {
    .trust__grid { grid-template-columns: 1fr; }
}


/* ─── FOOTER ─────────────────────────────────────── */

.footer { background: var(--bg-secondary); border-top: 1px solid var(--border); }

/* Newsletter */
.footer__newsletter {
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, #1a1c2e 100%);
    border-bottom: 1px solid var(--border);
    padding: 2.5rem 0;
}
.footer__newsletter-inner {
    display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.footer__newsletter-text h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.25rem; }
.footer__newsletter-text p { font-size: 0.85rem; color: var(--text-secondary); }

.footer__newsletter-form {
    display: flex; gap: 0.5rem; flex-shrink: 0;
}
.footer__newsletter-form input {
    width: 280px; border-radius: var(--radius-xl);
    padding: 0.65rem 1.2rem;
}
.footer__newsletter-form button {
    background: var(--accent); color: #fff; padding: 0.65rem 1.5rem;
    border-radius: var(--radius-xl); font-weight: 600; font-size: 0.85rem;
    transition: background var(--duration);
}
.footer__newsletter-form button:hover { background: var(--accent-hover); }

@media (max-width: 768px) {
    .footer__newsletter-inner { flex-direction: column; text-align: center; }
    .footer__newsletter-form { width: 100%; }
    .footer__newsletter-form input { flex: 1; width: auto; }
}

/* Footer main grid */
.footer__main { padding: 3rem 0 2rem; }
.footer__grid {
    display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1.2fr;
    gap: 2rem;
}

.footer__about { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 1rem; }

.footer__social { display: flex; gap: 0.5rem; }
.footer__social-link {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--bg-hover); color: var(--text-secondary);
    display: flex; align-items: center; justify-content: center;
    transition: all var(--duration);
}
.footer__social-link:hover { background: var(--accent); color: #fff; }

.footer__heading {
    font-size: 0.85rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.05em; color: var(--text-primary);
    margin-bottom: 1rem;
}

.footer__links li { margin-bottom: 0.5rem; }
.footer__links a {
    font-size: 0.82rem; color: var(--text-secondary);
    transition: color var(--duration);
}
.footer__links a:hover { color: var(--accent-light); }

.footer__contact li {
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 0.82rem; color: var(--text-secondary); margin-bottom: 0.75rem;
}

.footer__whatsapp {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: #25D366; color: #fff; padding: 0.5rem 1rem;
    border-radius: var(--radius-sm); font-size: 0.82rem; font-weight: 600;
    margin-top: 0.5rem; transition: opacity var(--duration);
}
.footer__whatsapp:hover { opacity: 0.9; color: #fff; }

@media (max-width: 1024px) {
    .footer__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .footer__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .footer__grid { grid-template-columns: 1fr; }
}

/* Payment icons */
.footer__payments {
    border-top: 1px solid var(--border); padding: 1.25rem 0;
}
.footer__payments-inner {
    display: flex; align-items: center; justify-content: center; gap: 1rem;
    flex-wrap: wrap;
}
.footer__payments-label { font-size: 0.78rem; color: var(--text-muted); }
.footer__payments-icons { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.payment-icon {
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--bg-hover); border: 1px solid var(--border);
    border-radius: 4px; padding: 0.3rem 0.7rem;
    font-size: 0.68rem; font-weight: 700; color: var(--text-secondary);
    letter-spacing: 0.02em;
}

/* Bottom bar */
.footer__bottom {
    border-top: 1px solid var(--border); padding: 1.25rem 0;
}
.footer__bottom-inner {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 0.75rem;
    font-size: 0.75rem; color: var(--text-muted);
}
.footer__legal { font-size: 0.7rem; }
.footer__bottom-links { display: flex; gap: 1rem; }
.footer__bottom-links a { color: var(--text-muted); font-size: 0.75rem; }
.footer__bottom-links a:hover { color: var(--accent-light); }


/* ─── BACK TO TOP ────────────────────────────────── */

.back-to-top {
    position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 900;
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--accent); color: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-md);
    opacity: 0; pointer-events: none;
    transition: all 0.3s var(--ease);
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: var(--accent-hover); transform: translateY(-2px); }


/* ─── ADMIN PANEL STYLES (Basic) ─────────────────── */

.admin-container { padding: 2rem; max-width: 1200px; margin: 0 auto; }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.admin-header h1 { font-size: 1.5rem; font-weight: 700; }

.admin-stats {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem; margin-bottom: 2rem;
}
.admin-stat-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-md); padding: 1.25rem;
}
.admin-stat-card__label { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.admin-stat-card__value { font-size: 1.8rem; font-weight: 700; }
.admin-stat-card__sub { font-size: 0.75rem; color: var(--text-secondary); margin-top: 0.25rem; }

.admin-table {
    width: 100%; border-collapse: collapse; font-size: 0.85rem;
}
.admin-table th {
    text-align: left; padding: 0.75rem; font-weight: 600;
    border-bottom: 2px solid var(--border); color: var(--text-secondary);
    font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em;
}
.admin-table td {
    padding: 0.75rem; border-bottom: 1px solid var(--border);
    vertical-align: middle;
}
.admin-table tr:hover td { background: var(--bg-hover); }

.admin-actions { display: flex; gap: 0.5rem; }
.admin-actions a, .admin-actions button {
    font-size: 0.78rem; padding: 0.3rem 0.6rem; border-radius: 4px;
    background: var(--bg-tertiary); border: 1px solid var(--border);
    color: var(--text-secondary); transition: all var(--duration);
}
.admin-actions a:hover, .admin-actions button:hover {
    border-color: var(--accent); color: var(--accent-light);
}


/* ─── UTILITY CLASSES ────────────────────────────── */

.text-center { text-align: center; }
.text-green  { color: var(--green); }
.text-red    { color: var(--red); }
.text-orange { color: var(--orange); }
.text-muted  { color: var(--text-muted); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.flex { display: flex; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0;
    margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}
