/* ============================================================
   SISTEMA CATÁLOGO — DISEÑO MODERNO
   Mobile First · Purple Theme · Bootstrap 5
   ============================================================ */

:root {
    --primary:       #4c1d95;
    --primary-mid:   #6d28d9;
    --primary-light: #7c3aed;
    --primary-glow:  rgba(109,40,217,.18);
    --green:         #22c55e;
    --green-dark:    #16a34a;
    --white:         #ffffff;
    --bg:            #f4f4f6;
    --card:          #ffffff;
    --text:          #18181b;
    --muted:         #71717a;
    --border:        #e4e4e7;
    --radius:        14px;
    --radius-sm:     8px;
    --radius-pill:   999px;
    --shadow:        0 2px 8px rgba(0,0,0,.07);
    --shadow-md:     0 4px 20px rgba(76,29,149,.12);
    --font:          'Inter', sans-serif;
    --transition:    .22s ease;
}

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a  { text-decoration: none; color: inherit; transition: color var(--transition); }

/* ============================================================
   NAVBAR — MINIMAL
   ============================================================ */
#mainNav {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1040;
    box-shadow: 0 1px 0 var(--border);
    padding: .6rem 0;
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--primary);
    letter-spacing: -.4px;
    flex-shrink: 0;
}
.nav-logo i { font-size: 1.4rem; }
.nav-logo-img {
    height: 32px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    border-radius: 6px;
}
.nav-actions {
    display: flex;
    align-items: center;
    gap: .35rem;
}
.nav-icon-btn {
    width: 38px; height: 38px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: transparent;
    color: var(--text);
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background var(--transition);
    position: relative;
    text-decoration: none;
}
.nav-icon-btn:hover { background: var(--bg); color: var(--primary); }
.nav-icon-btn.cart-btn { background: var(--primary); color: #fff; }
.nav-icon-btn.cart-btn:hover { background: var(--primary-mid); color: #fff; }
.nav-cart-badge {
    position: absolute;
    top: -2px; right: -2px;
    background: var(--green);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    width: 18px; height: 18px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid #fff;
}

/* ============================================================
   BANNER SLIDER
   ============================================================ */
.banner-section { background: var(--white); }

.hero-carousel { position: relative; overflow: hidden; }

.hero-slide {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #2d1b69 0%, var(--primary-light) 55%, #6d28d9 100%);
}
.hero-slide img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}

/* Flechas del carousel */
.carousel-control-prev,
.carousel-control-next {
    width: 40px;
    opacity: 1;
}
.carousel-arrow {
    width: 36px; height: 36px;
    background: rgba(255,255,255,.22);
    backdrop-filter: blur(6px);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-size: .95rem;
    border: 1.5px solid rgba(255,255,255,.35);
    transition: background var(--transition);
}
.carousel-arrow:hover { background: rgba(255,255,255,.42); }

.carousel-indicators {
    margin-bottom: .65rem;
}
.carousel-indicators [data-bs-target] {
    width: 7px; height: 7px;
    border-radius: 50%;
    border: none;
    opacity: .45;
    background: #fff;
    transition: opacity .2s, transform .2s;
}
.carousel-indicators .active {
    opacity: 1;
    transform: scale(1.25);
    background: var(--primary-light);
}

@media (min-width: 576px)  { .hero-slide { height: 300px; } }
@media (min-width: 768px)  { .hero-slide { height: 400px; } }
@media (min-width: 1200px) { .hero-slide { height: 480px; } }

/* ============================================================
   CATEGORY TABS — PILLS DESLIZABLES
   ============================================================ */
.category-tabs-wrap {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: .7rem 0;
    position: sticky;
    top: 57px;
    z-index: 100;
}
.category-tabs {
    display: flex;
    gap: .5rem;
    overflow-x: auto;
    scrollbar-width: none;
    padding: .1rem .1rem;
    scroll-snap-type: x mandatory;
}
.category-tabs::-webkit-scrollbar { display: none; }

.cat-tab {
    flex-shrink: 0;
    scroll-snap-align: start;
    padding: .38rem 1rem;
    border-radius: var(--radius-pill);
    border: 1.5px solid var(--border);
    background: var(--white);
    color: var(--text);
    font-size: .83rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}
.cat-tab:hover {
    border-color: var(--primary-mid);
    color: var(--primary-mid);
}
.cat-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 2px 10px var(--primary-glow);
}

/* ============================================================
   SECCIÓN PRODUCTOS POR CATEGORÍA
   ============================================================ */
.cat-section {
    padding: 1.5rem 0 .5rem;
    transition: opacity .3s;
}
.cat-section.hidden { display: none; }

.cat-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding: 0 .15rem;
}
.cat-section-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text);
}
.cat-section-more {
    font-size: .82rem;
    color: var(--primary-mid);
    font-weight: 600;
}
.cat-section-more:hover { color: var(--primary); }

/* Fila de producto (scroll horizontal) */
.products-row {
    display: flex;
    gap: .875rem;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: .5rem;
    scroll-snap-type: x mandatory;
}
.products-row::-webkit-scrollbar { display: none; }

/* ============================================================
   TARJETA DE PRODUCTO — HORIZONTAL (TIPO LISTA)
   ============================================================ */
.product-card-h {
    flex-shrink: 0;
    scroll-snap-align: start;
    width: calc(50vw - 1.5rem);
    max-width: 200px;
    background: var(--card);
    border-radius: var(--radius);
    border: 1.5px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
}
.product-card-h:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: #c4b5fd;
}

.product-card-h .pcard-img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    background: #f0eefa;
}
.product-card-h .pcard-body {
    padding: .7rem .8rem .8rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.product-card-h .pcard-name {
    font-size: .82rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: .25rem;
}
.product-card-h .pcard-desc {
    font-size: .73rem;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: .5rem;
    flex: 1;
}
.product-card-h .pcard-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .4rem;
    margin-top: auto;
}
.product-card-h .pcard-price {
    font-size: .98rem;
    font-weight: 800;
    color: var(--primary);
    white-space: nowrap;
}
.product-card-h .pcard-price-old {
    font-size: .72rem;
    color: var(--muted);
    text-decoration: line-through;
    display: block;
}
.product-card-h .pcard-arrow-btn {
    width: 30px; height: 30px;
    background: var(--primary);
    color: #fff;
    border-radius: 7px;
    border: none;
    display: flex; align-items: center; justify-content: center;
    font-size: .8rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: background var(--transition), transform var(--transition);
    text-decoration: none;
}
.product-card-h .pcard-arrow-btn:hover {
    background: var(--primary-mid);
    transform: scale(1.08);
    color: #fff;
}

/* Grid para páginas de categoría (no-scroll, wrap) */
.products-grid-v2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .875rem;
}
@media (min-width: 576px) { .products-grid-v2 { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 768px) { .products-grid-v2 { grid-template-columns: repeat(3,1fr); gap:1.25rem; } }
@media (min-width: 992px) { .products-grid-v2 { grid-template-columns: repeat(4,1fr); } }

.product-card-h.card-grid {
    width: 100%;
    max-width: none;
    flex-shrink: 1;
}

/* ============================================================
   DETALLE DE PRODUCTO
   ============================================================ */
.product-detail-wrap { background: var(--white); min-height: 100vh; }

/* Top nav mini */
.detail-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .8rem 1rem;
    position: sticky;
    top: 0;
    background: var(--white);
    z-index: 50;
    border-bottom: 1px solid var(--border);
}
.detail-back-btn {
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg);
    color: var(--text);
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: background var(--transition);
    text-decoration: none;
}
.detail-back-btn:hover { background: #e0e0e0; color: var(--text); }
.detail-topbar-actions { display: flex; gap: .4rem; }
.detail-icon-btn {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--bg);
    border: none;
    cursor: pointer;
    font-size: .95rem;
    display: flex; align-items: center; justify-content: center;
    color: var(--muted);
    text-decoration: none;
}
.detail-icon-btn:hover { color: var(--primary); }

/* Galería */
.detail-gallery { position: relative; background: #f0eefa; }

.detail-main-img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: contain;
    display: block;
    padding: 1rem;
    background: #f8f5ff;
}

.gallery-dots {
    display: flex;
    justify-content: center;
    gap: .4rem;
    padding: .6rem 0;
    background: var(--white);
}
.gallery-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    transition: background .2s, transform .2s;
    border: none;
}
.gallery-dot.active {
    background: var(--primary);
    transform: scale(1.3);
}

/* Info del producto */
.detail-info { padding: 1.25rem 1rem 6rem; }

.detail-badges {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    margin-bottom: .75rem;
}
.badge-cat {
    display: inline-flex; align-items: center; gap: .3rem;
    padding: .25rem .7rem;
    border-radius: var(--radius-pill);
    background: #f0eefa;
    color: var(--primary-mid);
    font-size: .75rem;
    font-weight: 700;
}
.badge-stock {
    display: inline-flex; align-items: center; gap: .3rem;
    padding: .25rem .7rem;
    border-radius: var(--radius-pill);
    background: #dcfce7;
    color: #16a34a;
    font-size: .75rem;
    font-weight: 700;
}
.badge-nostock {
    background: #fee2e2;
    color: #dc2626;
}

.detail-name {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: .5rem;
    color: var(--text);
}
.detail-price {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: -.5px;
    margin-bottom: 1rem;
}
.detail-desc {
    font-size: .875rem;
    color: var(--muted);
    line-height: 1.65;
    margin-bottom: 1.25rem;
}

/* Quantity */
.qty-row {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1.25rem;
}
.qty-label { font-size: .8rem; font-weight: 600; color: var(--muted); }
.qty-ctrl {
    display: inline-flex;
    align-items: center;
    background: var(--bg);
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1.5px solid var(--border);
}
.qty-btn {
    width: 36px; height: 36px;
    background: transparent;
    border: none;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background var(--transition);
}
.qty-btn:hover { background: #ede9fe; }
.qty-num {
    min-width: 36px;
    text-align: center;
    font-size: .95rem;
    font-weight: 800;
    color: var(--text);
    pointer-events: none;
}

/* CTAs sticky bottom */
.detail-cta-bar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: .85rem 1rem;
    display: flex;
    gap: .75rem;
    z-index: 200;
    box-shadow: 0 -4px 16px rgba(0,0,0,.08);
}
.btn-add-detail {
    flex: 1;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: .8rem 1rem;
    font-size: .92rem;
    font-weight: 700;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: .5rem;
    transition: background var(--transition);
}
.btn-add-detail:hover  { background: var(--primary-mid); color: #fff; }
.btn-add-detail:disabled { background: #d4d4d8; cursor: not-allowed; }

.btn-wa-detail {
    flex: 1;
    background: var(--green);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: .8rem 1rem;
    font-size: .92rem;
    font-weight: 700;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: .5rem;
    transition: background var(--transition);
    text-decoration: none;
}
.btn-wa-detail:hover { background: var(--green-dark); color: #fff; }

/* ============================================================
   CARRITO
   ============================================================ */
.cart-wrap { max-width: 620px; margin: 0 auto; padding: 1.25rem 1rem 6rem; }

.cart-item-card {
    background: var(--card);
    border-radius: var(--radius);
    border: 1.5px solid var(--border);
    padding: .9rem;
    margin-bottom: .75rem;
    display: flex;
    gap: .875rem;
    align-items: center;
    box-shadow: var(--shadow);
}
.cart-item-img {
    width: 72px; height: 72px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    background: #f0eefa;
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-size: .88rem; font-weight: 700; color: var(--text); line-height: 1.3; margin-bottom: .2rem; }
.cart-item-unit { font-size: .78rem; color: var(--muted); margin-bottom: .5rem; }
.cart-item-row  { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.cart-item-total { font-size: 1rem; font-weight: 800; color: var(--primary); }

.qty-ctrl-sm { display: inline-flex; align-items: center; background: var(--bg); border-radius: 8px; border: 1.5px solid var(--border); }
.qty-btn-sm { width: 28px; height: 28px; background: none; border: none; font-size: .95rem; font-weight: 800; color: var(--primary); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.qty-num-sm { min-width: 28px; text-align: center; font-weight: 700; font-size: .85rem; }

.btn-remove-item { background: none; border: none; color: #d4d4d8; font-size: 1rem; cursor: pointer; padding: .3rem; transition: color .2s; }
.btn-remove-item:hover { color: #ef4444; }

/* Summary */
.cart-summary-card {
    background: var(--card);
    border-radius: var(--radius);
    border: 1.5px solid var(--border);
    padding: 1.25rem;
    box-shadow: var(--shadow);
}
.summary-line { display: flex; justify-content: space-between; margin-bottom: .5rem; font-size: .9rem; }
.summary-total { display: flex; justify-content: space-between; font-size: 1.15rem; font-weight: 800; color: var(--primary); padding-top: .75rem; border-top: 2px solid var(--border); margin-top: .5rem; }

.discount-input-row { display: flex; gap: .5rem; margin: 1rem 0; }
.discount-input-row input {
    flex: 1;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    padding: .55rem .75rem;
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    outline: none;
    transition: border-color .2s;
}
.discount-input-row input:focus { border-color: var(--primary-mid); }
.btn-apply-disc { background: var(--primary); color: #fff; border: none; border-radius: 8px; padding: .55rem 1rem; font-size: .82rem; font-weight: 700; cursor: pointer; white-space: nowrap; }

.btn-checkout {
    display: block;
    width: 100%;
    padding: .9rem;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: background var(--transition);
    text-decoration: none;
}
.btn-checkout:hover { background: var(--primary-mid); color: #fff; }

/* ============================================================
   CHECKOUT
   ============================================================ */
.checkout-wrap { max-width: 680px; margin: 0 auto; padding: 1.25rem 1rem 5rem; }

.checkout-section {
    background: var(--card);
    border-radius: var(--radius);
    border: 1.5px solid var(--border);
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
}
.checkout-section h5 {
    font-size: .95rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}
.checkout-section h5 i { color: var(--primary-mid); }

.form-group { margin-bottom: .85rem; }
.form-group label { display: block; font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; margin-bottom: .3rem; }
.form-input {
    width: 100%;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    padding: .6rem .8rem;
    font-size: .9rem;
    font-family: var(--font);
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    background: var(--white);
    color: var(--text);
}
.form-input:focus { border-color: var(--primary-mid); box-shadow: 0 0 0 3px rgba(109,40,217,.12); }

/* Radio opciones */
.option-card {
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: .8rem 1rem;
    cursor: pointer;
    transition: border-color .2s, background .2s;
    margin-bottom: .5rem;
    display: flex;
    align-items: center;
    gap: .75rem;
}
.option-card:has(input:checked),
.option-card.selected {
    border-color: var(--primary-mid);
    background: #f5f0ff;
}
.option-card input[type="radio"] { accent-color: var(--primary); width: 16px; height: 16px; flex-shrink: 0; }
.option-label { font-weight: 700; font-size: .9rem; margin-bottom: .1rem; }
.option-sub { font-size: .78rem; color: var(--muted); }

.transfer-box {
    background: #f5f0ff;
    border: 1.5px solid #c4b5fd;
    border-radius: 10px;
    padding: 1rem;
    margin-top: .75rem;
    font-size: .83rem;
}
.transfer-box .trow { display: flex; gap: .5rem; margin-bottom: .35rem; }
.transfer-box .tkey { font-weight: 700; color: var(--primary); min-width: 80px; }

.btn-wa-checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    width: 100%;
    padding: .95rem;
    background: var(--green);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    transition: background var(--transition);
    text-decoration: none;
    margin-top: .5rem;
}
.btn-wa-checkout:hover { background: var(--green-dark); color: #fff; }

/* ============================================================
   FLOTANTES
   ============================================================ */
.fab-wa {
    position: fixed;
    right: 18px; bottom: 80px;
    width: 52px; height: 52px;
    background: var(--green);
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 18px rgba(34,197,94,.4);
    z-index: 500;
    text-decoration: none;
    transition: transform .2s;
}
.fab-wa:hover { transform: scale(1.1); color: #fff; }

.fab-cart {
    position: fixed;
    right: 18px; bottom: 20px;
    width: 52px; height: 52px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 4px 18px var(--primary-glow);
    z-index: 500;
    text-decoration: none;
    transition: transform .2s;
    position: fixed;
}
.fab-cart:hover { transform: scale(1.1); color: #fff; }
.fab-cart-badge {
    position: absolute;
    top: -3px; right: -3px;
    background: var(--green);
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    width: 20px; height: 20px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid #fff;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 2rem 0 1rem;
    margin-top: 2rem;
}
.footer-brand { font-size: 1.1rem; font-weight: 800; color: var(--primary); margin-bottom: .5rem; }
.footer-text { font-size: .82rem; color: var(--muted); margin-bottom: .25rem; }
.footer-links a { display: block; font-size: .82rem; color: var(--muted); margin-bottom: .3rem; }
.footer-links a:hover { color: var(--primary); }

.social-pill {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .3rem .8rem;
    border-radius: var(--radius-pill);
    border: 1.5px solid var(--border);
    font-size: .8rem;
    font-weight: 600;
    color: var(--muted);
    transition: all .2s;
    margin-right: .4rem;
    margin-bottom: .4rem;
}
.social-pill:hover { border-color: var(--primary-mid); color: var(--primary-mid); }
.social-pill.wa:hover { border-color: var(--green); color: var(--green); }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.bc-wrap {
    padding: .5rem 0;
    font-size: .78rem;
    color: var(--muted);
}
.bc-wrap a { color: var(--primary-mid); font-weight: 500; }
.bc-wrap a:hover { color: var(--primary); }
.bc-sep { margin: 0 .35rem; color: var(--border); }

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-box {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--muted);
}
.empty-box i { font-size: 3.5rem; color: #d4d4d8; display: block; margin-bottom: .75rem; }
.empty-box h6 { font-size: 1rem; font-weight: 700; margin-bottom: .4rem; color: var(--text); }

/* ============================================================
   TOAST
   ============================================================ */
.toast-stack {
    position: fixed;
    bottom: 78px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .4rem;
    pointer-events: none;
}
.toast-item {
    background: #27272a;
    color: #fff;
    padding: .6rem 1.25rem;
    border-radius: var(--radius-pill);
    font-size: .85rem;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(0,0,0,.18);
    animation: toastIn .25s ease;
    white-space: nowrap;
}
.toast-item.success { background: #166534; }
.toast-item.error   { background: #991b1b; }
@keyframes toastIn {
    from { opacity:0; transform: translateY(12px) scale(.9); }
    to   { opacity:1; transform: translateY(0)    scale(1); }
}

/* ============================================================
   VARIANTES DE PRODUCTO
   ============================================================ */
.variant-section { margin-bottom: 1.25rem; }
.variant-section-label {
    font-size: .75rem;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: .6rem;
}
.variant-options {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}
.variant-btn {
    padding: .42rem .95rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    background: var(--white);
    color: var(--text);
    font-size: .875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .18s;
    font-family: var(--font);
}
.variant-btn:hover {
    border-color: var(--primary-mid);
    color: var(--primary-mid);
}
.variant-btn.active {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
    box-shadow: 0 2px 8px var(--primary-glow);
}
.variant-btn.out-of-stock {
    opacity: .45;
    text-decoration: line-through;
    cursor: not-allowed;
}
.cart-item-variant {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    color: var(--primary-mid);
    background: #f0eefa;
    padding: .15rem .55rem;
    border-radius: 20px;
    margin-bottom: .25rem;
}

/* ============================================================
   BOTÓN VOLVER / SECUNDARIO
   ============================================================ */
.btn-back-nav {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .6rem 1.15rem;
    border-radius: var(--radius-pill);
    border: 1.5px solid var(--border);
    background: var(--white);
    color: var(--text);
    font-size: .84rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}
.btn-back-nav:hover {
    border-color: var(--primary-mid);
    color: var(--primary-mid);
    background: #f5f0ff;
}
.btn-back-nav i { font-size: .9rem; }

/* ============================================================
   UTILS
   ============================================================ */
.section-wrap { padding: 1.5rem 0; }
@media (min-width: 768px) { .section-wrap { padding: 2.5rem 0; } }

.fw-800 { font-weight: 800; }
.text-primary  { color: var(--primary) !important; }
.bg-primary { background: var(--primary) !important; }

/* Scrollbar custom thin */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #c4b5fd; border-radius: 4px; }
