/* ============================================================
   CircuitStreet Tienda — Design System "Evolved"
   tienda.circuitstreet.com.ar
   ============================================================ */

/* ── Variables ──────────────────────────────────────────────── */
:root {
    --bg-base:        #030303;
    --bg-surface:     #0a0a0a;
    --bg-card:        #0e0e0e;
    --bg-elevated:    #141414;
    --bg-glass:       rgba(14, 14, 14, 0.85);

    --gold:           #D4AF37;
    --gold-soft:      rgba(212, 175, 55, 0.15);
    --gold-glow:      rgba(212, 175, 55, 0.35);
    --gold-dark:      #a88a1f;

    --cyan:           #00BFFF;
    --cyan-soft:      rgba(0, 191, 255, 0.12);
    --cyan-glow:      rgba(0, 191, 255, 0.35);

    /* Neon por categoría */
    --neon-pc:        rgba(0, 191, 255, 0.55);
    --neon-pc-soft:   rgba(0, 191, 255, 0.12);
    --neon-phone:     rgba(180, 0, 255, 0.55);
    --neon-phone-soft:rgba(180, 0, 255, 0.12);
    --neon-tools:     rgba(255, 140, 0, 0.55);
    --neon-tools-soft:rgba(255, 140, 0, 0.12);
    --neon-outlet:    rgba(0, 255, 128, 0.55);
    --neon-outlet-soft:rgba(0, 255, 128, 0.12);

    --text-primary:   #f0f0f0;
    --text-secondary: #a1a1aa;
    --text-muted:     #52525b;

    --border-base:    rgba(255, 255, 255, 0.07);
    --border-soft:    rgba(255, 255, 255, 0.04);

    --radius-sm:      8px;
    --radius-md:      14px;
    --radius-lg:      20px;
    --radius-xl:      28px;

    --navbar-h:       68px;
    --announce-h:     0px;
    --ribbon-h:       0px;

    --transition:     all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast:all 0.15s ease;
}

body.has-announcement { --announce-h: 38px; }

/* ── Reset / Base ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: 'Inter', 'Montserrat', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    padding-top: calc(var(--navbar-h) + var(--announce-h) + var(--ribbon-h));
}

a { color: var(--gold); text-decoration: none; transition: var(--transition-fast); }
a:hover { color: #fff; }

img { max-width: 100%; display: block; }

/* ── Tipografía ──────────────────────────────────────────────── */
.t-display  { font-family: 'Montserrat', sans-serif; font-weight: 900; letter-spacing: -1px; }
.t-title    { font-family: 'Montserrat', sans-serif; font-weight: 700; }
.t-semibold { font-weight: 600; }
.text-gold  { color: var(--gold) !important; }
.text-cyan  { color: var(--cyan) !important; }
.text-muted-t { color: var(--text-secondary) !important; }

/* ── Announcement bar ────────────────────────────────────────── */
.t-announce-bar {
    background: linear-gradient(90deg, rgba(120,90,15,0.97), rgba(212,175,55,0.97), rgba(120,90,15,0.97));
    height: var(--announce-h);
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 10060;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-bottom: 1px solid rgba(255,215,0,0.25);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #000;
}
.t-announce-marquee-wrap {
    flex: 1;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent 0%, #000 3%, #000 97%, transparent 100%);
}
.t-announce-marquee {
    display: flex;
    width: max-content;
    animation: t-marquee 30s linear infinite;
}
.t-announce-marquee span { white-space: nowrap; padding-right: 5rem; }
.t-announce-marquee:hover { animation-play-state: paused; }
@keyframes t-marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ── Navbar ──────────────────────────────────────────────────── */
.t-navbar {
    position: fixed;
    top: var(--announce-h);
    left: 0; width: 100%;
    height: var(--navbar-h);
    z-index: 10050;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    background: rgba(3, 3, 3, 0.88);
    border-bottom: 1px solid var(--border-base);
    display: flex;
    align-items: center;
    transition: var(--transition);
}
.t-navbar.scrolled {
    background: rgba(3, 3, 3, 0.97);
    box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}
.t-navbar .container { display: flex; align-items: center; gap: 1.5rem; }

/* Buscador lado derecho */
.t-search-right { max-width: 340px; }
@media (max-width: 991px) { .t-search-right { display: none; } }

/* ── Dropdown de categorías/páginas ─────────────────────────── */
.t-nav-dropdown { position: relative; }

/* Header del menú mobile — oculto en desktop */
.t-ddm-mobile-header {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-base);
    margin-bottom: 0.5rem;
    position: sticky;
    top: 0;
    background: var(--bg-elevated);
    z-index: 1;
}
.t-ddm-mobile-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    color: var(--text-primary);
}
.t-ddm-close-btn {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-base);
    background: rgba(255,255,255,0.05);
    color: var(--text-secondary);
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-fast);
}
.t-ddm-close-btn:hover { background: rgba(255,255,255,0.1); color: var(--text-primary); transform: rotate(90deg); }

.t-nav-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-base);
    border-radius: var(--radius-sm);
    padding: 0.4rem 0.75rem;
    color: var(--text-primary);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    white-space: nowrap;
}
.t-nav-dropdown-btn:hover {
    background: rgba(212,175,55,0.08);
    border-color: var(--gold);
    color: var(--gold);
}
.t-nav-dropdown-btn .t-chevron {
    font-size: 0.65rem;
    transition: transform 0.2s ease;
}
.t-nav-dropdown-btn[aria-expanded="true"] .t-chevron { transform: rotate(180deg); }

.t-nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 520px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-base);
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 60px rgba(0,0,0,0.7);
    z-index: 10200;
    padding: 1rem;
    display: none;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.t-nav-dropdown-menu.visible {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: ddm-in 0.18s ease forwards;
}
@keyframes ddm-in {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.t-ddm-section { margin-bottom: 0.5rem; }
.t-ddm-label {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
    padding: 0 0.25rem;
}
.t-ddm-divider {
    border: none;
    border-top: 1px solid var(--border-base);
    margin: 0.75rem 0;
}
.t-ddm-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.4rem;
}
.t-ddm-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 0.6rem 0.4rem;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    text-decoration: none;
    transition: var(--transition-fast);
    background: rgba(255,255,255,0.02);
}
.t-ddm-item:hover {
    background: rgba(255,255,255,0.05);
    border-color: var(--item-neon, var(--border-base));
    box-shadow: 0 0 12px var(--item-neon, transparent);
}
.t-ddm-item i {
    font-size: 1.1rem;
    color: var(--item-neon, var(--gold));
}
.t-ddm-item span {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    text-align: center;
    line-height: 1.2;
}
.t-ddm-item:hover span { color: var(--text-primary); }

.t-ddm-pages {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}
.t-ddm-page {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.75rem;
    border-radius: 50px;
    border: 1px solid var(--border-base);
    background: rgba(255,255,255,0.02);
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-fast);
}
.t-ddm-page:hover,
.t-ddm-page.active {
    background: var(--gold-soft);
    border-color: var(--gold);
    color: var(--gold);
}

/* ── Cinta de categorías ─────────────────────────────────────── */
.t-cat-ribbon {
    position: fixed;
    top: calc(var(--announce-h) + var(--navbar-h));
    left: 0; right: 0;
    height: var(--ribbon-h);
    z-index: 10040;
    background: rgba(8, 8, 8, 0.96);
    border-bottom: 1px solid var(--border-base);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    overflow: hidden;
}
.t-cat-ribbon-inner {
    display: flex;
    align-items: center;
    height: 100%;
    overflow-x: auto;
    gap: 0.25rem;
    padding: 0 1rem;
    scrollbar-width: none;
}
.t-cat-ribbon-inner::-webkit-scrollbar { display: none; }

.t-ribbon-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    border: 1px solid transparent;
    background: rgba(255,255,255,0.03);
    color: var(--text-secondary);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    text-decoration: none;
    white-space: nowrap;
    transition: var(--transition-fast);
}
.t-ribbon-item i {
    font-size: 0.75rem;
    color: var(--ribbon-neon, var(--gold));
}
.t-ribbon-item:hover {
    background: rgba(255,255,255,0.06);
    border-color: var(--ribbon-neon, var(--gold));
    color: var(--text-primary);
    box-shadow: 0 0 8px var(--ribbon-neon, transparent);
}

@media (max-width: 991px) {
    .t-nav-dropdown-menu { min-width: calc(100vw - 2rem); left: 0; }
    .t-ddm-grid { grid-template-columns: repeat(3, 1fr); }
}

.t-logo img  { height: 48px; width: auto; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4)); transition: var(--transition); }
.t-logo:hover img { transform: scale(1.04); filter: drop-shadow(0 0 12px var(--gold-glow)); }

/* Buscador central */
.t-search-wrap { flex: 1; max-width: 520px; position: relative; }
.t-search-input {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-base);
    border-radius: 50px;
    padding: 0.5rem 3rem 0.5rem 1.2rem;
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: var(--transition);
    outline: none;
}
.t-search-input:focus {
    border-color: var(--gold);
    background: rgba(255,255,255,0.07);
    box-shadow: 0 0 0 3px var(--gold-soft);
}
.t-search-input::placeholder { color: var(--text-muted); }
.t-search-btn {
    position: absolute;
    right: 6px; top: 50%;
    transform: translateY(-50%);
    background: var(--gold);
    border: none; border-radius: 50%;
    width: 34px; height: 34px;
    display: flex; align-items: center; justify-content: center;
    color: #000; cursor: pointer;
    transition: var(--transition-fast);
}
.t-search-btn:hover { background: #fff; }

/* Autocomplete */
.t-search-results {
    position: absolute;
    top: calc(100% + 6px);
    left: 0; right: 0;
    background: var(--bg-elevated);
    border: 1px solid var(--border-base);
    border-radius: var(--radius-md);
    overflow: hidden;
    z-index: 200;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
    display: none;
}
.t-search-results.visible { display: block; }
.t-search-result-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1rem;
    cursor: pointer;
    transition: var(--transition-fast);
    border-bottom: 1px solid var(--border-soft);
}
.t-search-result-item:last-child { border-bottom: none; }
.t-search-result-item:hover { background: var(--gold-soft); }
.t-search-result-item img { width: 40px; height: 40px; object-fit: contain; border-radius: 6px; background: #fff; padding: 3px; }
.t-search-result-item .res-nombre { font-size: 0.85rem; font-weight: 600; color: var(--text-primary); }
.t-search-result-item .res-precio { font-size: 0.8rem; color: var(--gold); }

/* Nav acciones */
.t-nav-actions { display: flex; align-items: center; gap: 0.75rem; white-space: nowrap; }

.t-nav-cart {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 1.25rem;
    padding: 0.4rem;
    transition: var(--transition-fast);
}
.t-nav-cart:hover { color: var(--gold); }
.t-nav-cart .cart-badge {
    position: absolute;
    top: -2px; right: -4px;
    background: var(--gold);
    color: #000;
    font-size: 0.6rem;
    font-weight: 900;
    min-width: 18px; height: 18px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    display: none;
}
.t-nav-cart .cart-badge.visible { display: flex; }

.btn-t-outline {
    border: 1px solid var(--gold);
    color: var(--gold);
    background: transparent;
    border-radius: 50px;
    padding: 0.35rem 1rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition-fast);
    cursor: pointer;
    text-decoration: none;
    display: inline-flex; align-items: center; gap: 0.4rem;
}
.btn-t-outline:hover { background: var(--gold); color: #000; box-shadow: 0 0 15px var(--gold-glow); }

.btn-t-primary {
    background: var(--gold);
    color: #000;
    border: none;
    border-radius: 50px;
    padding: 0.55rem 1.5rem;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition-fast);
    text-decoration: none;
    display: inline-flex; align-items: center; gap: 0.4rem;
}
.btn-t-primary:hover {
    background: #fff;
    color: #000;
    box-shadow: 0 0 20px var(--gold-glow);
    transform: translateY(-1px);
}

.btn-t-secondary {
    background: rgba(255,255,255,0.06);
    color: var(--text-primary);
    border: 1px solid var(--border-base);
    border-radius: 50px;
    padding: 0.55rem 1.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    text-decoration: none;
    display: inline-flex; align-items: center; gap: 0.4rem;
}
.btn-t-secondary:hover { background: rgba(255,255,255,0.1); color: #fff; border-color: rgba(255,255,255,0.2); }

/* ── Sección / Layout ────────────────────────────────────────── */
.t-section { padding: 4rem 0; }
.t-section-sm { padding: 2rem 0; }

.t-section-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
}
.t-section-title::before {
    content: '';
    display: block;
    width: 4px;
    height: 1.4em;
    background: var(--gold);
    border-radius: 2px;
    box-shadow: 0 0 10px var(--gold-glow);
}
.t-section-subtitle { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 2rem; }

/* ── Hero ────────────────────────────────────────────────────── */
.t-hero {
    position: relative;
    min-height: 520px;
    background: radial-gradient(ellipse at 20% 50%, rgba(212,175,55,0.07) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 30%, rgba(0,191,255,0.05) 0%, transparent 55%),
                var(--bg-surface);
    border-radius: var(--radius-xl);
    overflow: hidden;
    display: flex;
    align-items: center;
    border: 1px solid var(--border-base);
}
.t-hero-circuit {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cpath d='M10 10h20v20H10zM50 10h20v20H50zM10 50h20v20H10zM50 50h20v20H50z' fill='none' stroke='rgba(212,175,55,0.04)' stroke-width='1'/%3E%3Cline x1='30' y1='20' x2='50' y2='20' stroke='rgba(212,175,55,0.04)' stroke-width='1'/%3E%3Cline x1='20' y1='30' x2='20' y2='50' stroke='rgba(212,175,55,0.04)' stroke-width='1'/%3E%3Cline x1='60' y1='30' x2='60' y2='50' stroke='rgba(0,191,255,0.03)' stroke-width='1'/%3E%3Cline x1='30' y1='60' x2='50' y2='60' stroke='rgba(0,191,255,0.03)' stroke-width='1'/%3E%3Ccircle cx='20' cy='20' r='3' fill='rgba(212,175,55,0.08)'/%3E%3Ccircle cx='60' cy='60' r='3' fill='rgba(0,191,255,0.06)'/%3E%3Ccircle cx='60' cy='20' r='3' fill='rgba(212,175,55,0.06)'/%3E%3Ccircle cx='20' cy='60' r='3' fill='rgba(0,191,255,0.05)'/%3E%3C/svg%3E");
    opacity: 0.8;
    pointer-events: none;
}
.t-hero-content { position: relative; z-index: 2; padding: 3rem; }
.t-hero-badge {
    display: inline-block;
    background: var(--gold);
    color: #000;
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: 50px;
    margin-bottom: 1rem;
}
.t-hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 1rem;
    text-shadow: 0 0 40px rgba(0,0,0,0.8);
}
.t-hero h1 .hl { color: var(--gold); text-shadow: 0 0 20px var(--gold-glow); }
.t-hero-sub { color: var(--text-secondary); font-size: 1.1rem; margin-bottom: 2rem; max-width: 480px; }

/* ── Carrusel de marcas ──────────────────────────────────────── */
.t-brands-bar {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);
    overflow: hidden;
    padding: 1.2rem 0;
    position: relative;
}
.t-brands-bar::before, .t-brands-bar::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 80px;
    z-index: 2;
    pointer-events: none;
}
.t-brands-bar::before { left: 0;  background: linear-gradient(90deg, var(--bg-base), transparent); }
.t-brands-bar::after  { right: 0; background: linear-gradient(-90deg, var(--bg-base), transparent); }
.t-brands-track {
    display: flex;
    gap: 3rem;
    align-items: center;
    width: max-content;
    animation: t-brands-scroll 30s linear infinite;
}
.t-brands-track:hover { animation-play-state: paused; }
.t-brands-track img {
    height: 32px;
    width: auto;
    opacity: 0.4;
    filter: grayscale(1) brightness(2);
    transition: var(--transition);
}
.t-brands-track img:hover { opacity: 1; filter: none; transform: scale(1.1); }
@keyframes t-brands-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ── Grilla de categorías ─────────────────────────────────────── */
.t-cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 1rem;
}
.t-cat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-base);
    border-radius: var(--radius-md);
    padding: 1.5rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    position: relative;
    overflow: hidden;
}
.t-cat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-md);
    opacity: 0;
    transition: var(--transition);
    background: var(--cat-neon-soft, var(--gold-soft));
}
.t-cat-card:hover { transform: translateY(-4px); }
.t-cat-card:hover::before { opacity: 1; }
.t-cat-card:hover { border-color: var(--cat-neon, var(--gold)); box-shadow: 0 0 20px var(--cat-neon-soft, var(--gold-soft)), 0 8px 30px rgba(0,0,0,0.4); }
.t-cat-card i { font-size: 1.8rem; color: var(--cat-neon, var(--gold)); transition: var(--transition); }
.t-cat-card:hover i { transform: scale(1.15); filter: drop-shadow(0 0 8px var(--cat-neon, var(--gold))); }
.t-cat-card span { font-size: 0.75rem; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.4px; transition: var(--transition-fast); }
.t-cat-card:hover span { color: var(--text-primary); }

/* ── Product card ────────────────────────────────────────────── */
.t-product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-base);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.t-product-card:hover {
    transform: translateY(-6px);
    border-color: var(--card-neon, var(--gold));
    box-shadow:
        0 0 12px var(--card-neon-soft, var(--gold-soft)),
        0 0 35px var(--card-neon-soft, var(--gold-soft)),
        0 20px 40px rgba(0,0,0,0.5);
}

/* Imagen */
.t-product-img-wrap {
    position: relative;
    background: #fff;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.t-product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}
.t-product-card:hover .t-product-img-wrap img { transform: scale(1.07); }
.t-product-img-wrap .t-badges {
    position: absolute;
    top: 8px; left: 8px;
    display: flex; flex-direction: column; gap: 4px;
}

/* Logo de marca sobre la imagen */
.t-brand-logo-badge {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: #fff;
    border-radius: 6px;
    padding: 3px 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 64px;
    height: 26px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.18);
    pointer-events: none;
    z-index: 2;
}
.t-brand-logo-badge img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Body */
.t-product-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.t-product-name {
    font-size: 0.87rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.35;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.4em;
    transition: var(--transition-fast);
}
.t-product-card:hover .t-product-name { color: var(--gold); }

.t-product-meta { color: var(--text-muted); font-size: 0.75rem; margin-bottom: 0.75rem; }

/* Precios */
.t-product-footer { margin-top: auto; border-top: 1px solid var(--border-soft); padding-top: 0.75rem; display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.t-price-wrap { display: flex; flex-direction: column; }
.t-price-label { font-size: 0.65rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.3px; }
.t-price-main { font-size: 1.1rem; font-weight: 900; color: var(--text-primary); line-height: 1; }
.t-price-old { font-size: 0.75rem; color: var(--text-muted); text-decoration: line-through; }
.t-price-consultar { font-size: 0.9rem; font-weight: 800; color: var(--gold); text-transform: uppercase; }

/* Botón carrito rápido */
.t-btn-cart-quick {
    width: 38px; height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border-base);
    background: transparent;
    color: var(--text-secondary);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
    font-size: 0.95rem;
}
.t-product-card:hover .t-btn-cart-quick {
    border-color: var(--gold);
    color: var(--gold);
    background: var(--gold-soft);
    box-shadow: 0 0 12px var(--gold-glow);
}
.t-btn-cart-quick:active { transform: scale(0.9); }
.t-btn-cart-quick:disabled,
.t-btn-cart-quick--full {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}
.t-product-card:hover .t-btn-cart-quick:disabled,
.t-product-card:hover .t-btn-cart-quick--full {
    border-color: var(--border-base);
    color: var(--text-muted);
    background: transparent;
    box-shadow: none;
}
.t-card-sin-stock {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 700;
    flex-shrink: 0;
}

/* ── Badges ──────────────────────────────────────────────────── */
.badge-tienda {
    font-size: 0.62rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-block;
    white-space: nowrap;
}
.badge-oferta      { background: rgba(239,68,68,0.15);  color: #f87171; border: 1px solid rgba(239,68,68,0.3); }
.badge-nuevo       { background: rgba(0,191,255,0.12);  color: var(--cyan); border: 1px solid rgba(0,191,255,0.3); }
.badge-preventa    { background: rgba(212,175,55,0.12); color: var(--gold); border: 1px solid rgba(212,175,55,0.3); }
.badge-outlet      { background: rgba(0,255,128,0.1);   color: #4ade80; border: 1px solid rgba(0,255,128,0.25); }
.badge-stock-bajo  { background: rgba(251,146,60,0.1);  color: #fb923c; border: 1px solid rgba(251,146,60,0.25); }

/* ── Filter Bottom Sheet (mobile) ───────────────────────────── */
.t-filter-mobile-btn {
    display: none;
    align-items: center;
    gap: 0.45rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-base);
    border-radius: 50px;
    padding: 0.4rem 1.1rem;
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-fast);
    white-space: nowrap;
}
.t-filter-mobile-btn:hover { border-color: var(--gold); color: var(--gold); }
.t-filter-mobile-btn i { font-size: 0.85rem; }

.t-filter-backdrop {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.65);
    z-index: 10150;
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s;
    backdrop-filter: blur(4px);
}
.t-filter-backdrop.open { opacity: 1; pointer-events: all; }

.t-filter-sheet {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 10151;
    background: var(--bg-elevated);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    border-top: 1px solid var(--border-base);
    max-height: 86vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
    box-shadow: 0 -20px 60px rgba(0,0,0,0.55);
}
.t-filter-sheet.open { transform: translateY(0); }

.t-filter-sheet-handle {
    width: 40px; height: 4px;
    background: rgba(255,255,255,0.18);
    border-radius: 2px;
    margin: 0.65rem auto 0;
    flex-shrink: 0;
}
.t-filter-sheet-head {
    padding: 0.8rem 1.25rem;
    display: flex; align-items: center; justify-content: space-between;
    border-bottom: 1px solid var(--border-base);
    flex-shrink: 0;
}
.t-filter-sheet-head strong {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800; font-size: 0.95rem;
}
.t-filter-sheet-close {
    width: 34px; height: 34px; border-radius: 50%;
    border: 1px solid var(--border-base);
    background: rgba(255,255,255,0.05);
    color: var(--text-secondary);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem; cursor: pointer;
    transition: var(--transition-fast);
}
.t-filter-sheet-close:hover { background: rgba(255,255,255,0.1); color: #fff; transform: rotate(90deg); }

.t-filter-sheet-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}
.t-filter-sheet-foot {
    flex-shrink: 0;
    padding: 1rem 1.25rem 1.25rem;
    border-top: 1px solid var(--border-base);
    background: var(--bg-elevated);
}
.t-filter-sheet-foot .btn-t-primary {
    width: 100%;
    justify-content: center;
    padding: 0.9rem 1rem;
    font-size: 0.92rem;
    border-radius: var(--radius-md);
    letter-spacing: 0.8px;
}

@media (max-width: 991.98px) {
    .t-filter-mobile-btn { display: flex; }
}

/* ── Sidebar de filtros ──────────────────────────────────────── */
.t-filters {
    background: var(--bg-surface);
    border: 1px solid var(--border-base);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    position: sticky;
    top: calc(var(--navbar-h) + var(--announce-h) + 16px);
}
.t-filter-group { margin-bottom: 1.5rem; }
.t-filter-group:last-child { margin-bottom: 0; }
.t-filter-title {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-soft);
}
.t-filter-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 0.85rem;
    transition: var(--transition-fast);
    user-select: none;
}
.t-filter-check:hover { color: var(--text-primary); }
.t-filter-check input[type="checkbox"] { accent-color: var(--gold); width: 14px; height: 14px; }
.t-filter-check .count { color: var(--text-muted); font-size: 0.75rem; margin-left: auto; }

/* Slider de precio */
.t-price-slider { width: 100%; }
.t-price-range-display {
    display: flex; justify-content: space-between;
    font-size: 0.82rem; font-weight: 600;
    color: var(--text-secondary); margin-top: 0.6rem;
}
input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 5px;
    border-radius: 3px;
    outline: none;
    cursor: pointer;
    /* background se setea 100% via JS con updateSlider() */
    background: rgba(255,255,255,0.12);
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: var(--gold);
    cursor: pointer;
    border: 2px solid #000;
    box-shadow: 0 0 10px var(--gold-glow);
}
input[type="range"]::-moz-range-thumb {
    width: 20px; height: 20px;
    border-radius: 50%;
    background: var(--gold);
    cursor: pointer;
    border: 2px solid #000;
    box-shadow: 0 0 10px var(--gold-glow);
}
input[type="range"]::-moz-range-track {
    height: 5px; border-radius: 3px;
    background: rgba(255,255,255,0.12);
}

/* ── Paginación ──────────────────────────────────────────────── */
.t-pagination { display: flex; gap: 0.4rem; justify-content: center; flex-wrap: wrap; }
.t-page-btn {
    min-width: 38px; height: 38px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-base);
    background: var(--bg-surface);
    color: var(--text-secondary);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition-fast);
    text-decoration: none;
}
.t-page-btn:hover   { border-color: var(--gold); color: var(--gold); background: var(--gold-soft); }
.t-page-btn.active  { background: var(--gold); border-color: var(--gold); color: #000; }
.t-page-btn.disabled{ opacity: 0.3; pointer-events: none; }

/* ── Mini carrito lateral ────────────────────────────────────── */
.t-cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 10100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    backdrop-filter: blur(4px);
}
.t-cart-overlay.open { opacity: 1; pointer-events: all; }
.t-cart-drawer {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: 420px;
    max-width: 100vw;
    background: var(--bg-elevated);
    border-left: 1px solid var(--border-base);
    z-index: 10101;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -20px 0 60px rgba(0,0,0,0.6);
}
.t-cart-overlay.open .t-cart-drawer { transform: translateX(0); }
.t-cart-head {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-base);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.t-cart-head h4 { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 1.1rem; margin: 0; }
.t-cart-close { background: none; border: none; color: var(--text-secondary); font-size: 1.3rem; cursor: pointer; transition: var(--transition-fast); }
.t-cart-close:hover { color: var(--text-primary); transform: rotate(90deg); }
.t-cart-body { flex: 1; overflow-y: auto; padding: 1rem 1.5rem; }
.t-cart-foot { padding: 1.25rem 1.5rem; border-top: 1px solid var(--border-base); background: var(--bg-surface); }
.t-cart-total-row { display: flex; justify-content: space-between; margin-bottom: 1rem; font-weight: 700; font-size: 1rem; }
.t-cart-total-row .amount { color: var(--gold); font-size: 1.2rem; }

/* Item del carrito */
.t-cart-item { display: flex; gap: 0.75rem; padding: 0.85rem 0; border-bottom: 1px solid var(--border-soft); }
.t-cart-item:last-child { border-bottom: none; }
.t-cart-item img { width: 60px; height: 60px; object-fit: contain; background: #fff; border-radius: var(--radius-sm); padding: 4px; flex-shrink: 0; }
.t-cart-item-info { flex: 1; min-width: 0; }
.t-cart-item-name { font-size: 0.83rem; font-weight: 600; color: var(--text-primary); line-height: 1.3; margin-bottom: 0.25rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-cart-item-price { font-size: 0.85rem; font-weight: 800; color: var(--gold); }
.t-cart-item-qty { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.4rem; }
.t-qty-btn { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--border-base); background: var(--bg-card); color: var(--text-primary); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; transition: var(--transition-fast); }
.t-qty-btn:hover { border-color: var(--gold); color: var(--gold); }
.t-qty-num { font-size: 0.9rem; font-weight: 700; min-width: 20px; text-align: center; }
.t-cart-item-remove { color: var(--text-muted); font-size: 0.8rem; cursor: pointer; transition: var(--transition-fast); align-self: flex-start; background: none; border: none; padding: 0; }
.t-cart-item-remove:hover { color: #f87171; }
.t-cart-empty { text-align: center; padding: 3rem 1rem; color: var(--text-muted); }
.t-cart-empty i { font-size: 3rem; display: block; margin-bottom: 1rem; opacity: 0.3; }

/* .t-wa-float reemplazado por FAB en footer.php */

/* ── Toast / Notificaciones ──────────────────────────────────── */
.t-toast-wrap { position: fixed; bottom: 5rem; right: 1.5rem; z-index: 11000; display: flex; flex-direction: column; gap: 0.5rem; pointer-events: none; }
.t-toast {
    background: var(--bg-elevated);
    border: 1px solid var(--border-base);
    border-radius: var(--radius-md);
    padding: 0.85rem 1.2rem;
    color: var(--text-primary);
    font-size: 0.87rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
    animation: t-toast-in 0.3s ease forwards;
    pointer-events: all;
    max-width: 320px;
}
.t-toast.success { border-left: 3px solid #4ade80; }
.t-toast.error   { border-left: 3px solid #f87171; }
.t-toast.warning { border-left: 3px solid #ffd740; }
.t-toast.info    { border-left: 3px solid var(--cyan); }
.t-toast.warning { border-left: 3px solid var(--gold); }
.t-toast i { font-size: 1rem; }
.t-toast.success i { color: #4ade80; }
.t-toast.error   i { color: #f87171; }
.t-toast.info    i { color: var(--cyan); }
.t-toast.warning i { color: var(--gold); }
@keyframes t-toast-in { from { opacity:0; transform:translateX(30px); } to { opacity:1; transform:translateX(0); } }

/* ── Página de detalle de producto ──────────────────────────── */
.t-product-gallery { position: sticky; top: calc(var(--navbar-h) + var(--announce-h) + 16px); }
.t-gallery-main {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    border: 1px solid var(--border-base);
    margin-bottom: 0.75rem;
    cursor: zoom-in;
    box-shadow:
        0 0 30px var(--gallery-neon, rgba(212,175,55,0.08)),
        0 12px 40px rgba(0,0,0,0.4);
    transition: box-shadow 0.4s ease;
}
.t-gallery-main:hover {
    box-shadow:
        0 0 45px var(--gallery-neon, rgba(212,175,55,0.14)),
        0 16px 50px rgba(0,0,0,0.5);
}
.t-gallery-main img {
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
    border-radius: var(--radius-md);
}
.t-gallery-main:hover img { transform: scale(1.05); }
.t-gallery-thumbs { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.t-gallery-thumb {
    width: 68px; height: 68px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    border: 2px solid var(--border-base);
    overflow: hidden;
    cursor: pointer;
    padding: 4px;
    transition: var(--transition-fast);
    display: flex; align-items: center; justify-content: center;
}
.t-gallery-thumb img { max-height: 100%; object-fit: contain; }
.t-gallery-thumb:hover, .t-gallery-thumb.active { border-color: var(--gold); box-shadow: 0 0 8px var(--gold-glow); }

.t-detail-brand { font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 0.5rem; }
.t-detail-name { font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: clamp(1.4rem, 2.5vw, 2rem); line-height: 1.2; margin-bottom: 0.75rem; }
.t-detail-sku { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 1rem; }

.t-detail-price-main { font-size: 2.2rem; font-weight: 900; color: var(--text-primary); line-height: 1; }
.t-detail-price-old { font-size: 1rem; color: var(--text-muted); text-decoration: line-through; }
.t-detail-price-usd { font-size: 0.85rem; color: var(--text-muted); }
.t-detail-discount-badge {
    display: inline-block;
    background: #ef4444;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 900;
    padding: 4px 10px;
    border-radius: 50px;
}

/* Specs table */
.t-specs-table { width: 100%; border-collapse: collapse; }
.t-specs-table tr { border-bottom: 1px solid var(--border-soft); }
.t-specs-table tr:last-child { border-bottom: none; }
.t-specs-table td { padding: 0.6rem 0.5rem; font-size: 0.87rem; vertical-align: top; }
.t-specs-table td:first-child { color: var(--text-muted); font-weight: 600; width: 40%; white-space: nowrap; }
.t-specs-table td:last-child { color: var(--text-primary); }

/* Variantes selector */
.t-variant-group { margin-bottom: 1rem; }
.t-variant-label { font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.6px; color: var(--text-muted); margin-bottom: 0.5rem; }
.t-variant-options { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.t-variant-btn {
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-base);
    background: var(--bg-surface);
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}
.t-variant-btn:hover  { border-color: var(--gold); color: var(--gold); }
.t-variant-btn.active { border-color: var(--gold); background: var(--gold); color: #000; }
.t-variant-btn:disabled { opacity: 0.3; cursor: not-allowed; text-decoration: line-through; }

/* Stock indicator */
.t-stock-ok   { color: #4ade80; font-size: 0.85rem; font-weight: 700; }
.t-stock-out  { color: var(--text-muted); font-size: 0.85rem; font-weight: 700; }
.t-stock-low  { color: #fb923c; font-size: 0.85rem; font-weight: 700; }

/* Compatible con */
.t-compatible-box {
    background: rgba(0,191,255,0.05);
    border: 1px solid rgba(0,191,255,0.2);
    border-radius: var(--radius-md);
    padding: 0.85rem 1rem;
    font-size: 0.83rem;
    color: var(--text-secondary);
}
.t-compatible-box strong { color: var(--cyan); }

/* ── Checkout ────────────────────────────────────────────────── */
.t-checkout-wrap { max-width: 1000px; margin: 0 auto; }
.t-checkout-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-base);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 1.5rem;
}
.t-checkout-title { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 1rem; margin-bottom: 1.25rem; display: flex; align-items: center; gap: 0.5rem; }
.t-checkout-title .step-num { width: 26px; height: 26px; border-radius: 50%; background: var(--gold); color: #000; font-size: 0.75rem; font-weight: 900; display: flex; align-items: center; justify-content: center; }

.t-pay-method {
    border: 2px solid var(--border-base);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex; align-items: center; gap: 1rem;
}
.t-pay-method:hover { border-color: var(--gold); background: var(--gold-soft); }
.t-pay-method.selected { border-color: var(--gold); background: var(--gold-soft); }
.t-pay-method i { font-size: 1.5rem; color: var(--gold); width: 32px; text-align: center; }
.t-pay-method .pm-name { font-weight: 700; font-size: 0.9rem; }
.t-pay-method .pm-desc { font-size: 0.78rem; color: var(--text-secondary); }

/* Formulario */
.t-form-group { margin-bottom: 1.25rem; }
.t-form-label { display: block; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; color: var(--text-muted); margin-bottom: 0.4rem; }
.t-form-input {
    width: 100%;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-base);
    border-radius: var(--radius-sm);
    padding: 0.65rem 1rem;
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: var(--transition-fast);
    outline: none;
}
.t-form-input:focus { border-color: var(--gold); background: rgba(255,255,255,0.06); box-shadow: 0 0 0 3px var(--gold-soft); }
.t-form-input.error { border-color: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,0.15); }
.t-form-error { color: #f87171; font-size: 0.78rem; margin-top: 0.3rem; }
textarea.t-form-input { resize: vertical; min-height: 90px; }
select.t-form-input { appearance: none; background-color: var(--bg-card); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23888' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; color-scheme: dark; }
select.t-form-input option { background-color: var(--bg-card); color: var(--text-primary); }

/* ── Tabla order summary ─────────────────────────────────────── */
.t-order-item { display: flex; gap: 0.75rem; align-items: center; padding: 0.6rem 0; border-bottom: 1px solid var(--border-soft); }
.t-order-item:last-child { border-bottom: none; }
.t-order-item img { width: 52px; height: 52px; object-fit: contain; background: #fff; border-radius: var(--radius-sm); padding: 3px; flex-shrink: 0; }
.t-order-item .oi-name { font-size: 0.82rem; font-weight: 600; flex: 1; }
.t-order-item .oi-qty { font-size: 0.78rem; color: var(--text-muted); }
.t-order-item .oi-price { font-size: 0.9rem; font-weight: 800; color: var(--gold); white-space: nowrap; }
.t-order-totals { border-top: 1px solid var(--border-base); padding-top: 0.75rem; margin-top: 0.5rem; }
.t-order-totals .row-t { display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 0.35rem; }
.t-order-totals .row-total { font-size: 1.1rem; font-weight: 900; color: var(--text-primary); margin-top: 0.5rem; border-top: 1px solid var(--border-base); padding-top: 0.5rem; }
.t-order-totals .row-total .amount { color: var(--gold); }

/* ── Footer ──────────────────────────────────────────────────── */
.t-footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-base);
    padding: 3.5rem 0 1.5rem;
    margin-top: 5rem;
}
.t-footer-brand h5 { font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 1.2rem; margin-bottom: 0.5rem; }
.t-footer-brand p { color: var(--text-secondary); font-size: 0.85rem; line-height: 1.6; }
.t-footer h6 { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.8px; color: var(--gold); margin-bottom: 1rem; }
.t-footer ul { list-style: none; padding: 0; margin: 0; }
.t-footer ul li { margin-bottom: 0.4rem; }
.t-footer ul li a { color: var(--text-secondary); font-size: 0.87rem; transition: var(--transition-fast); }
.t-footer ul li a:hover { color: var(--text-primary); padding-left: 4px; }
.t-footer-divider { border-color: var(--border-soft); margin: 2.5rem 0 1.5rem; }
.t-footer-copy { color: var(--text-muted); font-size: 0.82rem; text-align: center; }

/* ── Spinner / Loader ────────────────────────────────────────── */
.t-spinner {
    width: 40px; height: 40px;
    border: 3px solid var(--border-base);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: t-spin 0.7s linear infinite;
    margin: 0 auto;
}
@keyframes t-spin { to { transform: rotate(360deg); } }
.t-loading-overlay { text-align: center; padding: 4rem 1rem; }
.t-loading-overlay p { color: var(--text-muted); font-size: 0.9rem; margin-top: 1rem; }

/* ── Empty state ─────────────────────────────────────────────── */
.t-empty-state {
    text-align: center;
    padding: 5rem 2rem;
    color: var(--text-muted);
}
.t-empty-state i { font-size: 3.5rem; display: block; margin-bottom: 1.5rem; opacity: 0.2; }
.t-empty-state h3 { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 1.3rem; color: var(--text-secondary); margin-bottom: 0.5rem; }
.t-empty-state p { font-size: 0.9rem; max-width: 380px; margin: 0 auto 1.5rem; }

/* ── Breadcrumb ──────────────────────────────────────────────── */
.t-breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 0.4rem; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.t-breadcrumb a { color: var(--text-muted); transition: var(--transition-fast); }
.t-breadcrumb a:hover { color: var(--gold); }
.t-breadcrumb .sep { opacity: 0.3; }
.t-breadcrumb .current { color: var(--text-secondary); }

/* ── Scrollbar custom ────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.22); }

/* ── Utilities ───────────────────────────────────────────────── */
.t-divider { height: 1px; background: var(--border-base); margin: 2rem 0; }
.t-tag { display: inline-block; background: rgba(255,255,255,0.06); border: 1px solid var(--border-base); border-radius: 50px; padding: 3px 10px; font-size: 0.75rem; color: var(--text-secondary); }
.t-pill-group { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.grayscale { filter: grayscale(1); opacity: 0.5; }
.t-shine { background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.04) 50%, transparent 100%); background-size: 200% 100%; animation: t-shimmer 2s infinite; }
@keyframes t-shimmer { to { background-position: -200% center; } }

/* ── Responsive ──────────────────────────────────────────────── */

/* ≤ 1199px — large tablet */
@media (max-width: 1199.98px) {
    .t-hero { min-height: 460px; }
    .t-section { padding: 3rem 0; }
}

/* ≤ 991px — tablet */
@media (max-width: 991.98px) {
    .t-filters { position: static; }
    .t-product-gallery { position: static; }
    .t-search-right { display: none; }
    .t-navbar .container { gap: 0.75rem; }
    .t-nav-dropdown-menu {
        min-width: calc(100vw - 2rem);
        left: 0;
    }
    .t-ddm-grid { grid-template-columns: repeat(3, 1fr); }
    .t-section { padding: 2.5rem 0; }
    .t-hero { min-height: 400px; border-radius: var(--radius-lg); }
    .t-checkout-wrap { max-width: 100%; }
}

/* ≤ 767px — mobile landscape / tablet portrait */
@media (max-width: 767.98px) {
    :root { --navbar-h: 60px; }

    /* Navbar */
    .t-navbar .container { gap: 0.5rem; }
    .t-logo img { height: 38px; }
    .t-search-wrap { display: none; }
    /* Menú full-screen en mobile */
    .t-ddm-mobile-header { display: flex; }
    .t-nav-dropdown-menu {
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        width: 100vw; height: 100dvh;
        min-width: unset;
        border-radius: 0;
        overflow-y: auto;
        overflow-x: hidden;
        padding-top: 0;
        z-index: 10300;
        /* Animación: desliza desde arriba */
        transform: translateY(-100%);
        transition: transform 0.32s cubic-bezier(0.4,0,0.2,1), opacity 0.25s ease;
        opacity: 0;
        display: block !important;
    }
    .t-nav-dropdown-menu.visible {
        transform: translateY(0);
        opacity: 1;
        animation: none;
    }
    .t-ddm-section { padding: 0 1rem; }
    .t-ddm-grid { grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
    .t-ddm-item { padding: 0.85rem 0.4rem; }
    .t-ddm-pages { padding: 0 0 1.5rem; }
    .t-ddm-divider { margin: 0.75rem 1rem; }

    /* Hero */
    .t-hero { min-height: 320px; border-radius: var(--radius-md); }
    .t-hero-content { padding: 1.75rem 1.25rem; }
    .t-hero-sub { font-size: 0.95rem; max-width: 100%; }

    /* Secciones */
    .t-section { padding: 2rem 0; }
    .t-section-sm { padding: 1.25rem 0; }

    /* Carrito lateral */
    .t-cart-drawer { width: 100vw; }

    /* Detalle producto */
    .t-detail-price-main { font-size: 1.8rem; }
    .t-specs-table td:first-child { white-space: normal; width: 35%; }

    /* Checkout */
    .t-checkout-box { padding: 1.25rem; }
    .t-pay-method { padding: 0.75rem 1rem; gap: 0.75rem; }
    .t-pay-method i { font-size: 1.2rem; }

    /* Footer */
    .t-footer { padding: 2.5rem 0 1.25rem; margin-top: 3rem; }

    /* Toasts */
    .t-toast-wrap { right: 0.75rem; left: 0.75rem; bottom: 4.5rem; }
    .t-toast { max-width: 100%; }

    /* Filtros dentro del sheet: layout vertical limpio */
    .t-filter-sheet-body .t-filters {
        overflow: visible; white-space: normal;
        padding: 1.1rem 1.25rem 1rem;
        border: none; border-radius: 0; background: transparent;
    }
    .t-filter-sheet-body .t-filter-group { display: block; white-space: normal; margin-right: 0; }
    /* Ocultar el sub-título duplicado dentro del sheet */
    .t-filter-sheet-body .t-filters > .d-flex:first-child { display: none !important; }
}

/* ≤ 575px — mobile portrait */
@media (max-width: 575.98px) {
    :root { --navbar-h: 56px; }

    /* Navbar */
    .t-navbar .container { gap: 0.35rem; }
    .t-logo img { height: 32px; }
    .t-ddm-grid { grid-template-columns: repeat(3, 1fr); }

    /* Hero */
    .t-hero { min-height: 260px; border-radius: var(--radius-sm); }
    .t-hero-content { padding: 1.25rem 1rem; }
    .t-hero-sub { font-size: 0.875rem; margin-bottom: 1.25rem; }

    /* Secciones */
    .t-section { padding: 1.5rem 0; }
    .t-section-sm { padding: 1rem 0; }

    /* Categorías */
    .t-cat-grid { grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
    .t-cat-card { padding: 1rem 0.5rem; }
    .t-cat-card i { font-size: 1.4rem; }
    .t-cat-card span { font-size: 0.65rem; }

    /* Product cards */
    .t-product-body { padding: 0.75rem; }
    .t-product-name { font-size: 0.82rem; }
    .t-price-main { font-size: 1rem; }
    .t-btn-cart-quick { width: 34px; height: 34px; font-size: 0.85rem; }

    /* Detalle producto */
    .t-detail-price-main { font-size: 1.6rem; }
    .t-gallery-thumb { width: 54px; height: 54px; }
    .t-gallery-thumbs { gap: 0.4rem; }

    /* Checkout */
    .t-checkout-box { padding: 1rem; }
    .t-checkout-wrap { padding: 0; }
    .t-order-item img { width: 42px; height: 42px; }
    .t-order-item .oi-name { font-size: 0.78rem; }

    /* Footer */
    .t-footer { margin-top: 2rem; }
    .t-footer-divider { margin: 1.5rem 0 1rem; }

    /* Paginación */
    .t-page-btn { min-width: 34px; height: 34px; font-size: 0.78rem; }

    /* Announcement bar */
    .t-announce-bar { font-size: 0.68rem; letter-spacing: 0.2px; }

    /* Breadcrumb */
    .t-breadcrumb { font-size: 0.74rem; }

    /* Filtros en sheet mobile */
    .t-filter-sheet-body .t-filters { padding: 1rem 1rem 0.5rem; }
}

/* ≤ 420px — very small phones */
@media (max-width: 420px) {
    .t-cat-grid { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
    .t-ddm-grid { grid-template-columns: repeat(2, 1fr); }
    .t-hero { min-height: 230px; }
    .t-hero-content { padding: 1rem 0.85rem; }
    .t-section-title { font-size: 1.2rem; gap: 0.5rem; }
    .t-checkout-box { padding: 0.85rem; }
}

/* ── Override Bootstrap nav-tabs ────────────────────────────── */
#prod-tabs.nav-tabs { border-bottom-color: var(--border-base); }
#prod-tabs .nav-link {
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.75rem 1.25rem;
    transition: var(--transition-fast);
}
#prod-tabs .nav-link:hover { color: var(--text-secondary); background: transparent; }
#prod-tabs .nav-link.active {
    background: transparent !important;
    color: var(--gold) !important;
    border-bottom: 2px solid var(--gold);
}

#account-tabs.nav-tabs { border-bottom-color: var(--border-base); }
#account-tabs .nav-link {
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.87rem;
    padding: 0.75rem 1.25rem;
    transition: var(--transition-fast);
}
#account-tabs .nav-link:hover { color: var(--text-secondary); background: transparent; }
#account-tabs .nav-link.active {
    background: transparent !important;
    color: var(--gold) !important;
    border-bottom: 2px solid var(--gold);
}
