/* app.css — Crosté Pizzaria
   Design: Dark Elegante Premium | Playfair Display SC + Karla */

/* ═══════════════════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════════════════ */
.navbar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 var(--space-8);
    height: var(--navbar-h);
    background: rgba(13,13,13,0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--color-glass-border);
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    transition: background var(--duration-base) var(--ease-base);
}
/* Left slot — top-row (contains brand on desktop via display:contents) */
.navbar-top-row { display: contents; }
.navbar-top-spacer { display: none; } /* only used on mobile */
.navbar > .navbar-brand { justify-self: start; }
/* Center slot — tabs */
.navbar-tabs {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    height: 100%;
    justify-self: center;
}
/* Right slot — nav items */
.navbar > .navbar-nav,
.navbar > .cart-toggle,
.navbar > .theme-toggle,
.navbar > #notifWrap {
    justify-self: end;
}
.navbar-right {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    justify-self: end;
}
.navbar-tab {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--color-text-muted);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
    height: 100%;
    letter-spacing: 0.02em;
    white-space: nowrap;
}
.navbar-tab:hover { color: var(--color-text); }
.navbar-tab.active {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
}
html.light .navbar {
    background: rgba(13,13,13,0.92);
    border-bottom-color: rgba(255,255,255,0.08);
}
html.light .navbar .navbar-nav a,
html.light .navbar .btn-link-nav,
html.light .navbar .navbar-tab {
    color: #8A8580;
}
html.light .navbar .navbar-nav a:hover,
html.light .navbar .btn-link-nav:hover {
    color: #F0EDE8;
    background: rgba(255,255,255,0.06);
}
html.light .navbar .navbar-tab.active {
    color: var(--color-accent);
}
html.light .navbar .cart-toggle,
html.light .navbar .theme-toggle {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.08);
    color: #8A8580;
}
html.light .navbar .cart-toggle:hover,
html.light .navbar .theme-toggle:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.14);
    color: #F0EDE8;
}

.navbar-brand {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--color-accent);
    letter-spacing: 0.03em;
    transition: opacity var(--duration-fast);
}
.navbar-brand:hover { opacity: 0.85; }

.navbar-right {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    justify-self: end;
}

.navbar-nav {
    display: flex;
    list-style: none;
    gap: var(--space-1);
    align-items: center;
}
.navbar-nav a,
.btn-link-nav {
    display: inline-flex;
    align-items: center;
    padding: var(--space-2) var(--space-3);
    color: var(--color-text-muted);
    font-size: var(--text-sm);
    font-weight: 500;
    letter-spacing: 0.02em;
    border-radius: var(--radius-sm);
    transition: color var(--duration-fast), background var(--duration-fast);
    background: none;
    border: none;
    font-family: var(--font-body);
    cursor: pointer;
}
.navbar-nav a:hover,
.btn-link-nav:hover {
    color: var(--color-text);
    background: var(--color-overlay);
}
.navbar-nav a.active { color: var(--color-accent); }

/* Cart & Theme toggles */
.cart-toggle, .theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--color-overlay);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all var(--duration-fast);
    position: relative;
    flex-shrink: 0;
}
.cart-toggle:hover, .theme-toggle:hover {
    background: var(--color-glass);
    border-color: var(--color-border-strong);
    color: var(--color-text);
}
.cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    background: var(--color-accent);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.cart-count:empty, .cart-count[data-empty="true"] { display: none; }

/* ═══════════════════════════════════════════════════════
   CART SIDEBAR
═══════════════════════════════════════════════════════ */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 380px;
    max-width: 95vw;
    height: 100dvh;
    background: var(--color-surface);
    border-left: 1px solid var(--color-border);
    z-index: var(--z-sidebar);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform var(--duration-slow) var(--ease-out);
    box-shadow: var(--shadow-lg);
}
.cart-sidebar.open { transform: translateX(0); }

.cart-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-5) var(--space-6);
    border-bottom: 1px solid var(--color-border);
    flex-shrink: 0;
}
.cart-sidebar-header h2 {
    font-family: var(--font-display);
    font-size: var(--text-lg);
}

.cart-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-overlay);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text-muted);
    cursor: pointer;
    font-size: var(--text-base);
    transition: all var(--duration-fast);
}
.cart-close:hover { background: var(--color-error-bg); color: var(--color-error); border-color: var(--color-error); }

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-4) var(--space-6);
}
.cart-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--color-border);
}
.cart-item-name { font-weight: 500; font-size: var(--text-sm); flex: 1; }
.cart-item-qty {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}
.cart-item-price { font-size: var(--text-sm); font-weight: 600; color: var(--color-accent); min-width: 64px; text-align: right; }
.cart-qty-btn {
    width: 28px; height: 28px;
    background: var(--color-overlay);
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-sm);
    color: var(--color-text);
    cursor: pointer;
    font-size: var(--text-base);
    display: flex; align-items: center; justify-content: center;
    transition: all var(--duration-fast);
}
.cart-qty-btn:hover { background: var(--color-glass); }
.cart-item-remove {
    background: none; border: none;
    color: var(--color-text-subtle);
    cursor: pointer; font-size: var(--text-sm);
    padding: var(--space-1);
    border-radius: var(--radius-sm);
    transition: color var(--duration-fast);
    line-height: 1;
}
.cart-item-remove:hover { color: var(--color-error); }

.cart-footer {
    padding: var(--space-5) var(--space-6);
    border-top: 1px solid var(--color-border);
    flex-shrink: 0;
}
.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-4);
    font-size: var(--text-base);
    color: var(--color-text-muted);
}
.cart-total strong { font-size: var(--text-xl); color: var(--color-text); font-weight: 700; }

.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: calc(var(--z-sidebar) - 1);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--duration-slow) var(--ease-base);
    backdrop-filter: blur(2px);
}
.cart-overlay.open { opacity: 1; pointer-events: all; }

/* ═══════════════════════════════════════════════════════
   BOTÕES
═══════════════════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: 0.03em;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
    white-space: nowrap;
    text-decoration: none;
    line-height: 1;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
    background: linear-gradient(135deg, #D4A017 0%, #C8960C 50%, #B8850A 100%);
    color: #1a1200;
    border-color: transparent;
    box-shadow: 0 2px 12px rgba(200,150,12,0.30), inset 0 1px 0 rgba(255,220,80,0.25);
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: all var(--duration-base) var(--ease-out);
}
.btn-primary:hover {
    background: linear-gradient(135deg, #F0C030 0%, #E2A81A 45%, #C8960C 100%);
    border-color: transparent;
    box-shadow: 0 6px 24px rgba(200,150,12,0.45), 0 0 0 1px rgba(240,192,48,0.3), inset 0 1px 0 rgba(255,235,100,0.35);
    transform: translateY(-2px);
    color: #0D0D0D;
}

.btn-secondary {
    background: var(--color-overlay);
    color: var(--color-text);
    border-color: var(--color-border-strong);
}
.btn-secondary:hover {
    background: var(--color-glass);
    border-color: var(--color-text-subtle);
}

.btn-ghost {
    background: transparent;
    color: var(--color-text-muted);
    border-color: transparent;
}
.btn-ghost:hover { color: var(--color-text); background: var(--color-overlay); }

.btn-success { background: var(--color-success); color: #fff; border-color: var(--color-success); }
.btn-success:hover { filter: brightness(1.1); }
.btn-danger { background: var(--color-error); color: #fff; border-color: var(--color-error); }
.btn-danger:hover { filter: brightness(1.1); }

.btn-full { width: 100%; }
.btn-lg { padding: var(--space-4) var(--space-8); font-size: var(--text-base); }
.btn-sm { padding: var(--space-1) var(--space-3); font-size: var(--text-xs); }

/* ═══════════════════════════════════════════════════════
   MAIN CONTENT
═══════════════════════════════════════════════════════ */
.main-content {
    min-height: calc(100dvh - var(--navbar-h));
}

/* ═══════════════════════════════════════════════════════
   HOME — HERO
═══════════════════════════════════════════════════════ */
.hero {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-20) var(--space-6);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(201,168,76,0.18) 0%, transparent 65%),
        radial-gradient(ellipse 60% 40% at 80% 80%, rgba(201,168,76,0.08) 0%, transparent 60%),
        var(--color-bg);
    z-index: 0;
}
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(255,255,255,0.03) 1px, transparent 0);
    background-size: 40px 40px;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-1) var(--space-3);
    background: var(--color-accent-soft);
    border: 1px solid rgba(201,168,76,0.25);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: var(--space-6);
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.1;
    margin-bottom: var(--space-5);
    color: var(--color-text);
}
.hero h1 em {
    font-style: normal;
    color: var(--color-accent);
}

.hero-desc {
    font-size: var(--text-lg);
    color: var(--color-text-muted);
    max-width: 520px;
    margin: 0 auto var(--space-8);
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: var(--space-3);
    justify-content: center;
    flex-wrap: wrap;
}

/* ── FEATURES SECTION — luxury reimagined ────────────────────────────────── */
.features-section {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--space-20) var(--space-6) var(--space-16);
}

.features-heading {
    text-align: center;
    margin-bottom: var(--space-16);
}
.features-heading h2 {
    font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
    font-family: var(--font-display);
    letter-spacing: 0.02em;
    margin-top: var(--space-3);
    line-height: 1.15;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-6);
}

/* Card shell */
.feat-card {
    position: relative;
    cursor: default;
}
.feat-card-inner {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-glass-border);
    background: var(--color-surface);
    padding: var(--space-8) var(--space-6) var(--space-6);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    height: 100%;
    transition: border-color 0.45s var(--ease-out),
                box-shadow   0.45s var(--ease-out),
                transform    0.45s var(--ease-out),
                background   0.45s var(--ease-out);
    z-index: 0;
}
.feat-card:hover .feat-card-inner {
    border-color: rgba(200,150,12,0.30);
    background: var(--color-surface-2);
    transform: translateY(-8px);
    box-shadow:
        0 2px 0 rgba(200,150,12,0.18),
        0 20px 50px rgba(0,0,0,0.5),
        0 0 30px rgba(200,150,12,0.08);
}

/* Top accent line */
.feat-card-inner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
    transform: scaleX(0);
    transition: transform 0.5s var(--ease-out);
    transform-origin: center;
}
.feat-card:hover .feat-card-inner::before { transform: scaleX(1); }

/* Number badge */
.feat-number {
    font-family: var(--font-display);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.18em;
    color: var(--color-accent);
    opacity: 0.6;
    transition: opacity 0.3s;
}
.feat-card:hover .feat-number { opacity: 1; }

/* Icon ring */
.feat-icon-ring {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 1.5px solid rgba(200,150,12,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    background: rgba(200,150,12,0.06);
    transition: border-color 0.4s, background 0.4s, transform 0.5s var(--ease-out);
    flex-shrink: 0;
}
.feat-card:hover .feat-icon-ring {
    border-color: rgba(200,150,12,0.5);
    background: rgba(200,150,12,0.12);
    transform: rotate(8deg) scale(1.08);
}

/* Text content */
.feat-content { flex: 1; }
.feat-content h3 {
    font-size: var(--text-lg);
    font-family: var(--font-display);
    letter-spacing: 0.02em;
    margin-bottom: var(--space-2);
    color: var(--color-text);
    transition: color 0.3s;
}
.feat-card:hover .feat-content h3 { color: #fff; }
.feat-content p {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    line-height: 1.65;
}

/* Stat counter */
.feat-stat {
    display: flex;
    align-items: baseline;
    gap: var(--space-2);
    margin-top: auto;
    padding-top: var(--space-4);
    border-top: 1px solid var(--color-glass-border);
    transition: border-color 0.4s;
}
.feat-card:hover .feat-stat { border-color: rgba(200,150,12,0.18); }
.feat-stat-num {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1;
    transition: text-shadow 0.4s;
}
.feat-card:hover .feat-stat-num {
    text-shadow: 0 0 20px rgba(200,150,12,0.45);
}
.feat-stat-label {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Glow blob behind card */
.feat-glow {
    position: absolute;
    bottom: -40px;
    right: -40px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200,150,12,0.18) 0%, transparent 70%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
    transform: scale(0.6);
    z-index: -1;
}
.feat-card:hover .feat-glow {
    opacity: 1;
    transform: scale(1);
}

/* Light mode adjustments */
html.light .feat-card-inner {
    background: var(--color-surface);
    border-color: rgba(0,0,0,0.08);
}
html.light .feat-card:hover .feat-card-inner {
    background: var(--color-surface-2);
    border-color: rgba(200,150,12,0.25);
}

/* ═══════════════════════════════════════════════════════
   CATÁLOGO / MENU
═══════════════════════════════════════════════════════ */
.menu-section {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--space-12) var(--space-6);
}

.menu-header {
    text-align: center;
    margin-bottom: var(--space-12);
}
.menu-header h1 {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-3);
}
.menu-header p { color: var(--color-text-muted); font-size: var(--text-lg); }

.category-filter-btn {
    padding: var(--space-2) var(--space-5);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    background: transparent;
    color: var(--color-text-muted);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-smooth);
}
.category-filter-btn:hover {
    background: var(--color-overlay);
    color: var(--color-text);
    border-color: var(--color-border-strong);
}
.category-filter-btn.active {
    background: var(--color-accent-soft);
    color: var(--color-accent);
    border-color: rgba(201,168,76,0.3);
}

.category-title {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    color: var(--color-text);
    margin: var(--space-10) 0 var(--space-5);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    gap: var(--space-3);
}
.category-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 1.2em;
    background: var(--color-accent);
    border-radius: 2px;
    flex-shrink: 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-5);
}

/* ── PRODUCT CARDS — Luxury Edition ──────────────────────────────────────── */
.product-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: pointer;
    /* Smooth all transitions */
    transition:
        transform    0.45s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow   0.45s cubic-bezier(0.16, 1, 0.3, 1),
        border-color 0.45s ease,
        background   0.45s ease;
}

/* Subtle gold shimmer line at top — hidden until hover */
.product-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--color-accent) 40%,
        var(--color-gold)   60%,
        transparent 100%);
    opacity: 0;
    transform: scaleX(0.4);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}
.product-card:hover::before {
    opacity: 1;
    transform: scaleX(1);
}

.product-card:hover {
    border-color: rgba(200,150,12,0.35);
    transform: translateY(-7px);
    box-shadow:
        0 2px 4px  rgba(0,0,0,0.12),
        0 8px 24px rgba(0,0,0,0.35),
        0 20px 48px rgba(0,0,0,0.25),
        0 0 0 1px  rgba(200,150,12,0.12),
        0 0 32px   rgba(200,150,12,0.08);
    background: var(--color-surface-2);
}

/* Image area — clipped and zoomed inside .product-img-wrap */
.product-img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
    transition:
        transform 1.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        filter    0.6s ease;
    transform-origin: center center;
    will-change: transform;
    filter: brightness(0.9) saturate(1.05);
    position: relative;
    z-index: 0;
}
/* When inside wrapper, fill it completely */
.product-img-wrap .product-img {
    aspect-ratio: unset;
    position: absolute;
    inset: 0;
    height: 100%;
}
.product-card:hover .product-img {
    transform: scale(1.09);
    filter: brightness(1.02) saturate(1.2);
}

.product-img-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, var(--color-surface-2) 0%, var(--color-surface-3) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    opacity: 0.5;
}

/* Image wrapper — clips zoom and hosts overlay */
.product-img-wrap {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16/9;
    flex-shrink: 0;
}
.product-img-wrap .product-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: unset;
}

/* Gradient overlay — fades in on hover, clipped inside image wrapper */
.product-img-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 55%,
        rgba(0,0,0,0.25) 100%
    );
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 1;
}
.product-card:hover .product-img-wrap::after {
    opacity: 1;
}

.product-body {
    padding: var(--space-4) var(--space-5) var(--space-5);
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: var(--space-2);
}

.product-name {
    font-family: var(--font-display);
    font-size: var(--text-base);
    font-weight: 400;
    letter-spacing: 0.02em;
    color: var(--color-text);
    transition: color 0.3s ease;
    line-height: 1.3;
}
.product-card:hover .product-name {
    color: #fff;
}
html.light .product-card:hover .product-name {
    color: var(--color-text);
}

.product-desc {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    line-height: 1.55;
    flex: 1;
    /* Clamp to 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: var(--space-3);
    padding-top: var(--space-3);
    border-top: 1px solid var(--color-border);
    gap: var(--space-3);
    transition: border-color 0.3s ease;
}
.product-card:hover .product-footer {
    border-top-color: rgba(200,150,12,0.2);
}

.product-price {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--color-accent);
    letter-spacing: -0.01em;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}
.product-card:hover .product-price {
    color: var(--color-gold);
    text-shadow: 0 0 16px rgba(200,150,12,0.4);
}

/* ═══════════════════════════════════════════════════════
   FORMULÁRIOS
═══════════════════════════════════════════════════════ */
.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
}
.form-label {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text-muted);
    letter-spacing: 0.02em;
}
.form-input {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    background: var(--color-surface-2);
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-sm);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    line-height: 1.5;
    transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
    outline: none;
}
.form-input:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px var(--color-accent-soft);
}
.form-input::placeholder { color: var(--color-text-subtle); }
textarea.form-input { resize: vertical; min-height: 80px; }
select.form-input { cursor: pointer; }

/* ═══════════════════════════════════════════════════════
   ALERTAS
═══════════════════════════════════════════════════════ */
.alert {
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-sm);
    font-size: var(--text-sm);
    margin-bottom: var(--space-4);
    border: 1px solid transparent;
    font-weight: 500;
}
.alert-error   { background: var(--color-error-bg);   color: var(--color-error);   border-color: rgba(239,68,68,0.2); }
.alert-success { background: var(--color-success-bg); color: var(--color-success); border-color: rgba(34,197,94,0.2); }
.alert-warning { background: var(--color-warning-bg); color: var(--color-warning); border-color: rgba(245,158,11,0.2); }

/* ═══════════════════════════════════════════════════════
   AUTH
═══════════════════════════════════════════════════════ */
.auth-wrapper {
    min-height: calc(100dvh - var(--navbar-h));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-8) var(--space-4);
    background:
        radial-gradient(ellipse 80% 60% at 50% -10%, rgba(212,160,23,0.18) 0%, transparent 65%),
        radial-gradient(ellipse 50% 40% at 80% 80%, rgba(212,160,23,0.06) 0%, transparent 60%),
        linear-gradient(180deg, #111111 0%, #0d0d0d 100%);
}
.auth-container {
    width: 100%;
    max-width: 420px;
    background: var(--color-surface-2);
    border: 1px solid rgba(212,160,23,0.20);
    border-radius: var(--radius-xl);
    padding: var(--space-10) var(--space-8);
    box-shadow:
        var(--shadow-lg),
        0 0 0 1px rgba(212,160,23,0.06),
        0 8px 40px rgba(0,0,0,0.6);
}
html.light .auth-wrapper {
    background:
        radial-gradient(ellipse 80% 60% at 50% -10%, rgba(212,160,23,0.12) 0%, transparent 65%),
        linear-gradient(180deg, #f0ece4 0%, var(--color-bg) 100%);
}
html.light .auth-container {
    border-color: rgba(212,160,23,0.25);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(212,160,23,0.08);
}
.auth-container h1 {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-2);
}
.auth-subtitle {
    color: var(--color-text-muted);
    font-size: var(--text-sm);
    margin-bottom: var(--space-6);
}
.auth-divider {
    text-align: center;
    color: var(--color-text-muted);
    font-size: var(--text-sm);
    margin: var(--space-5) 0;
    position: relative;
}
.auth-divider::before, .auth-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: calc(50% - 1.5rem);
    height: 1px;
    background: var(--color-border);
}
.auth-divider::before { left: 0; }
.auth-divider::after  { right: 0; }
.auth-link {
    text-align: center;
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-top: var(--space-5);
}
.auth-link a { color: var(--color-accent); font-weight: 500; }
.auth-link a:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════ */
.footer {
    background: #161616;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: var(--space-12) var(--space-6) var(--space-8);
    color: #F0EDE8;
}
html.light .footer .footer-tagline,
html.light .footer .footer-bottom,
html.light .footer .footer-bottom a {
    color: #8A8580;
}
html.light .footer .footer-social-link {
    border-color: rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.06);
    color: #8A8580;
}
html.light .footer .footer-social-link:hover {
    color: var(--color-accent);
    border-color: rgba(200,150,12,0.35);
    background: rgba(200,150,12,0.08);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(200,150,12,0.15);
}

.footer-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-8);
    text-align: center;
}

/* Brand block */
.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Logo + tagline */
.footer-logo {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    letter-spacing: 0.05em;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-gold) 60%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: opacity var(--duration-fast);
}
.footer-logo:hover { opacity: 0.8; }

.footer-tagline {
    margin-top: var(--space-2);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    letter-spacing: 0.02em;
}

/* Social icons */
.footer-socials {
    display: flex;
    gap: var(--space-3);
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--color-glass-border);
    color: var(--color-text-muted);
    background: var(--color-glass);
    transition: color var(--duration-base) var(--ease-out),
                border-color var(--duration-base) var(--ease-out),
                background var(--duration-base) var(--ease-out),
                transform var(--duration-base) var(--ease-out),
                box-shadow var(--duration-base) var(--ease-out);
}
.footer-social-link:hover {
    color: var(--color-accent);
    border-color: rgba(200,150,12,0.35);
    background: rgba(200,150,12,0.08);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(200,150,12,0.15);
}

/* Bottom copyright bar */
.footer-bottom {
    font-size: var(--text-xs);
    color: var(--color-text-subtle);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex-wrap: wrap;
    justify-content: center;
}
.footer-bottom a {
    color: var(--color-text-muted);
    transition: color var(--duration-fast);
}
.footer-bottom a:hover { color: var(--color-accent); }
.footer-sep { opacity: 0.4; }

/* ═══════════════════════════════════════════════════════
   CHECKOUT
═══════════════════════════════════════════════════════ */
.payment-tabs { display: flex; gap: var(--space-2); margin-bottom: var(--space-5); }
.payment-tab {
    padding: var(--space-2) var(--space-5);
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-sm);
    cursor: pointer;
    background: var(--color-overlay);
    color: var(--color-text-muted);
    font-size: var(--text-sm);
    font-weight: 500;
    transition: all var(--duration-fast);
}
.payment-tab.active {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
    box-shadow: 0 2px 8px var(--color-accent-glow);
}
.pix-info-box {
    padding: var(--space-4);
    background: var(--color-overlay);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}
.pix-qr { text-align: center; padding: var(--space-6) 0; }
.pix-qr img { max-width: 200px; border-radius: var(--radius-md); margin: 0 auto var(--space-4); border: 4px solid var(--color-surface-3); }

/* ═══════════════════════════════════════════════════════
   TRACKING
═══════════════════════════════════════════════════════ */
.tracking-container {
    max-width: 580px;
    margin: 0 auto;
    padding: var(--space-12) var(--space-6);
    text-align: center;
}
.tracking-code {
    display: inline-block;
    padding: var(--space-1) var(--space-3);
    background: var(--color-accent-soft);
    border: 1px solid rgba(201,168,76,0.2);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: var(--space-5);
}
.tracking-status {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: 700;
    margin-bottom: var(--space-8);
}
.tracking-steps {
    display: flex;
    justify-content: space-between;
    margin: var(--space-8) 0;
    position: relative;
}
.tracking-steps::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 5%;
    right: 5%;
    height: 2px;
    background: var(--color-border);
    z-index: 0;
}
.tracking-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    z-index: 1;
    flex: 1;
}
.tracking-dot {
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--duration-base);
}
.tracking-step.done { color: var(--color-accent); }

/* ═══════════════════════════════════════════════════════
   BADGES
═══════════════════════════════════════════════════════ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px var(--space-2);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.03em;
}
.badge-awaiting_payment { background: rgba(245,158,11,0.15); color: #F59E0B; border: 1px solid rgba(245,158,11,0.3); }
.badge-pending    { background: rgba(245,158,11,0.15); color: #F59E0B; }
.badge-confirmed  { background: rgba(59,130,246,0.15); color: #60A5FA; }
.badge-preparing  { background: rgba(168,85,247,0.15); color: #C084FC; }
.badge-delivering { background: rgba(249,115,22,0.15); color: #FB923C; }
.badge-delivered  { background: var(--color-success-bg); color: var(--color-success); }
.badge-cancelled  { background: var(--color-error-bg); color: var(--color-error); }
.badge-success    { background: var(--color-success-bg); color: var(--color-success); }
.badge-muted      { background: var(--color-overlay); color: var(--color-text-muted); }

/* ═══════════════════════════════════════════════════════
   ADMIN
═══════════════════════════════════════════════════════ */
.admin-layout {
    display: flex;
    min-height: 100dvh;
    background: var(--color-bg);
}

.admin-sidebar {
    width: 248px;
    flex-shrink: 0;
    background: #0f0f0f;
    border-right: 1px solid transparent;
    background-clip: padding-box;
    box-shadow: inset -1px 0 0 0 rgba(200,150,12,0.18);
    padding: var(--space-5) var(--space-4);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100dvh;
    overflow-y: auto;
}
.admin-sidebar-logo {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    color: var(--color-accent);
    margin-bottom: var(--space-6);
    letter-spacing: 0.06em;
    padding-bottom: var(--space-4);
    border-bottom: 1px solid rgba(200,150,12,0.2);
    position: relative;
}
.admin-sidebar-logo::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 40px;
    height: 1px;
    background: var(--color-accent);
}
.admin-sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
}
/* grupos */
.admin-sidebar nav > div {
    border: 1px solid rgba(200,150,12,0.08) !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    background: rgba(255,255,255,0.015);
}
.admin-sidebar a {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: 8px var(--space-3);
    border-radius: 0;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: #7a756e;
    transition: color 180ms ease, background 180ms ease;
    text-decoration: none;
    position: relative;
}
.admin-sidebar a svg {
    flex-shrink: 0;
    opacity: 0.55;
    transition: opacity 180ms ease, stroke 180ms ease;
}
.admin-sidebar a:hover {
    background: rgba(200,150,12,0.05);
    color: #d4a820;
}
.admin-sidebar a:hover svg {
    opacity: 1;
    stroke: #c8960c;
}
.admin-sidebar a.active {
    background: rgba(200,150,12,0.08);
    color: #e2b84a;
    font-weight: 600;
}
.admin-sidebar a.active svg {
    opacity: 1;
    stroke: #c8960c;
}
.admin-sidebar a.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    height: 60%;
    width: 2px;
    background: var(--color-accent);
    border-radius: 0 2px 2px 0;
}
.admin-sidebar-footer {
    padding-top: var(--space-4);
    border-top: 1px solid rgba(200,150,12,0.15);
}

.admin-content {
    flex: 1;
    padding: var(--space-8);
    overflow-y: auto;
}
.admin-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-8);
    padding-bottom: var(--space-5);
    border-bottom: 1px solid var(--color-border);
}
.admin-page-header h1 { font-size: var(--text-2xl); }

.admin-table-wrap {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
}
.admin-table th {
    padding: var(--space-3) var(--space-4);
    text-align: left;
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    background: var(--color-surface-2);
    border-bottom: 1px solid var(--color-border);
}
.admin-table td {
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-sm);
    border-bottom: 1px solid var(--color-border);
    vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--color-overlay); }

.stat-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    transition: border-color var(--duration-fast);
}
.stat-card:hover { border-color: var(--color-border-strong); }
.stat-value {
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--color-text);
    font-family: var(--font-body);
    letter-spacing: -0.02em;
}
.stat-value.accent { color: var(--color-accent); }
.stat-label {
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-top: var(--space-1);
}

/* ═══════════════════════════════════════════════════════
   UTILITÁRIOS
═══════════════════════════════════════════════════════ */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-6);
}
.divider {
    height: 1px;
    background: var(--color-border);
    margin: var(--space-6) 0;
}
.text-accent { color: var(--color-accent); }
.text-muted  { color: var(--color-text-muted); }

/* ═══════════════════════════════════════════════════════
   MOBILE NAV DRAWER
═══════════════════════════════════════════════════════ */
.navbar-mobile-actions {
    display: none;
    align-items: center;
    gap: var(--space-1);
    flex-shrink: 0;
}
.navbar-hamburger {}
.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: calc(var(--z-sticky) + 1);
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.2s ease;
}
.mobile-nav-overlay.is-open { opacity: 1; }
.mobile-nav-drawer {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(280px, 85vw);
    background: var(--color-surface);
    border-left: 1px solid var(--color-border);
    z-index: calc(var(--z-sticky) + 2);
    transform: translateX(100%);
    transition: transform 0.25s cubic-bezier(0.4,0,0.2,1);
    overflow-y: auto;
}
.mobile-nav-drawer.is-open { transform: translateX(0); }
.mobile-nav-drawer-inner {
    display: flex;
    flex-direction: column;
    padding: var(--space-6) var(--space-4);
    gap: var(--space-1);
}
.mobile-nav-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-lg);
    color: var(--color-text-muted);
    font-size: var(--text-base);
    font-weight: 500;
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: none;
    width: 100%;
    text-align: left;
    transition: background var(--duration-fast), color var(--duration-fast);
}
.mobile-nav-item:hover, .mobile-nav-item:active {
    background: var(--color-overlay);
    color: var(--color-text);
}
.mobile-nav-item--danger { color: #EF4444; }
.mobile-nav-item--danger:hover { background: rgba(239,68,68,0.1); color: #EF4444; }
.mobile-nav-divider {
    height: 1px;
    background: var(--color-border);
    margin: var(--space-2) 0;
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    /* Navbar becomes 2 rows: [brand | cart+hamburger] then [tabs] */
    .navbar {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        padding: 0;
        height: auto;
    }
    .navbar-top-row {
        display: flex !important; /* override display:contents from desktop */
        align-items: center;
        justify-content: center;
        padding: 0 var(--space-4);
        height: var(--navbar-h);
        flex-shrink: 0;
    }
    /* Spacer + actions have equal flex so brand stays centered */
    .navbar-top-spacer { flex: 1; display: block; }
    .navbar-top-row .navbar-brand {
        flex-shrink: 0;
        justify-self: unset;
        margin: 0 auto;
    }
    .navbar-mobile-actions { flex: 1; justify-content: flex-end; }
    .navbar-tabs {
        padding: 0 var(--space-2) var(--space-1);
        border-top: 1px solid var(--color-border);
        justify-content: center;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .navbar-tabs::-webkit-scrollbar { display: none; }
    /* Hide desktop right items */
    .navbar-right { display: none; }
    /* Show mobile actions */
    .navbar-mobile-actions { display: flex; }
    /* Drawer always rendered but hidden off-screen; overlay only when open */
    .mobile-nav-drawer { display: block; }
    .mobile-nav-overlay.is-open { display: block; }

    .products-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--space-4); }
    .hero { min-height: 80vh; padding: var(--space-12) var(--space-4); }
    .hero h1 { font-size: clamp(2rem, 8vw, 3rem); }
    .features { grid-template-columns: 1fr; padding: var(--space-10) var(--space-4); }
    .admin-layout { flex-direction: column; }
    .admin-sidebar { width: 100%; height: auto; position: static; flex-direction: row; flex-wrap: wrap; padding: var(--space-4); }
    .admin-content { padding: var(--space-4); }
    .auth-container { padding: var(--space-8) var(--space-5); }
}

@media (max-width: 480px) {
    .cart-sidebar { width: 100vw; }
    .hero-actions { flex-direction: column; align-items: center; }
    .products-grid { grid-template-columns: 1fr; }
    .admin-table-wrap { overflow-x: auto; }
    .admin-table { min-width: 600px; }
    .navbar-nav { gap: var(--space-2); }
}

/* ═══════════════════════════════════════════════════════
   BANNER (hero carousel + promo static)
═══════════════════════════════════════════════════════ */
.promo-static-banner {
  position: relative;
  height: 320px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
@media (max-width: 640px) { .promo-static-banner { height: 220px; } }

.banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(13,13,13,0.75) 0%, rgba(13,13,13,0.3) 60%, rgba(13,13,13,0.1) 100%);
}

.banner-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: var(--space-12) var(--space-8) var(--space-10);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 680px;
}
@media (max-width: 640px) {
  .banner-content { padding: var(--space-6); align-items: center; text-align: center; }
}

.banner-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 3rem);
  color: #fff;
  margin: 0 0 var(--space-2);
  line-height: 1.1;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.banner-subtitle {
  color: rgba(255,255,255,0.8);
  font-size: 1.05rem;
  margin: 0;
  max-width: 480px;
  line-height: 1.5;
}

.banner-prev, .banner-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff; border-radius: 50%;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background 0.2s; z-index: 10;
}
.banner-prev { left: var(--space-4); }
.banner-next { right: var(--space-4); }
.banner-prev:hover, .banner-next:hover { background: rgba(201,168,76,0.7); }

.banner-dots {
  position: absolute; bottom: var(--space-5); right: var(--space-6);
  display: flex; gap: var(--space-2); z-index: 10;
}
.banner-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.4); border: none; cursor: pointer;
  transition: all 0.2s; padding: 0;
}
.banner-dot.active { background: var(--color-accent); transform: scale(1.3); }

/* ═══════════════════════════════════════════════════════
   CHECKBOX CUSTOM — global
═══════════════════════════════════════════════════════ */
input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--color-border-strong);
    border-radius: 5px;
    background: var(--color-surface-2);
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    transition:
        background var(--duration-fast) var(--ease-base),
        border-color var(--duration-fast) var(--ease-base),
        box-shadow var(--duration-fast) var(--ease-base);
    vertical-align: middle;
}

input[type="checkbox"]:hover {
    border-color: var(--color-accent);
    background: var(--color-surface-3);
}

input[type="checkbox"]:checked {
    background: var(--color-accent);
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px var(--color-accent-glow);
}

input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 6px;
    height: 10px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

input[type="checkbox"]:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* ── ICON BUTTON + TOOLTIP ───────────────────────────────────
   Uso: <button class="icon-btn" data-tooltip="Texto">SVG</button>
   Variante: .icon-btn--danger
──────────────────────────────────────────────────────────── */
.icon-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    background: transparent;
    color: var(--color-text-muted);
    cursor: pointer;
    transition:
        color var(--duration-fast) var(--ease-base),
        background var(--duration-fast) var(--ease-base),
        border-color var(--duration-fast) var(--ease-base);
}
.icon-btn:hover {
    color: var(--color-text);
    background: var(--color-surface-3);
    border-color: var(--color-border-strong);
}
.icon-btn--danger { color: #ef444499; }
.icon-btn--danger:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.10);
    border-color: rgba(239, 68, 68, 0.25);
}
.icon-btn::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    white-space: nowrap;
    background: var(--color-surface-3);
    color: var(--color-text);
    font-size: 0.7rem;
    font-family: var(--font-body);
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border-strong);
    pointer-events: none;
    opacity: 0;
    transition:
        opacity var(--duration-fast) var(--ease-base),
        transform var(--duration-fast) var(--ease-base);
    z-index: var(--z-dropdown);
    box-shadow: var(--shadow-md);
}
.icon-btn:hover::after {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

/* ── TOGGLE SWITCH ───────────────────────────────────── */
.toggle-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    cursor: pointer;
    user-select: none;
}

.toggle-switch input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 36px;
    height: 20px;
    border-radius: var(--radius-full);
    border: none;
    background: var(--color-surface-3);
    box-shadow: inset 0 0 0 1.5px var(--color-border-strong);
    cursor: pointer;
    transition:
        background var(--duration-base) var(--ease-base),
        box-shadow var(--duration-base) var(--ease-base);
}

.toggle-switch input[type="checkbox"]::after {
    content: '';
    position: absolute;
    left: 3px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    border: none;
    border-radius: 50%;
    background: var(--color-text-muted);
    transition:
        left var(--duration-base) var(--ease-out),
        background var(--duration-base) var(--ease-base);
    box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.toggle-switch input[type="checkbox"]:checked {
    background: var(--color-accent);
    box-shadow: inset 0 0 0 1.5px var(--color-accent), 0 0 0 3px var(--color-accent-glow);
}

.toggle-switch input[type="checkbox"]:checked::after {
    left: 19px;
    top: 50%;
    width: 14px;
    height: 14px;
    border: none;
    transform: translateY(-50%);
    border-radius: 50%;
    background: #fff;
}

.toggle-switch input[type="checkbox"]:hover {
    border-color: transparent;
    box-shadow: inset 0 0 0 1.5px var(--color-accent);
}

.toggle-switch .toggle-label {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    line-height: 1;
}

/* ── Product tag tooltips ────────────────────────────────────────────────── */
.product-tag-icon { position: relative; }
.product-tag-icon::after {
  content: attr(title);
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.85);
  color: #fff;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 10;
}
.product-tag-icon:hover::after { opacity: 1; }
