/*
 * TEMA: MARLOWE — Perfumería Minimalista
 * Estética: editorial luxury / niche fragrance boutique
 * Fuentes: Playfair Display (display) + Jost (body/UI)
 */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Jost:wght@300;400;500;600&display=swap');

/* ─── TOKENS ──────────────────────────────────────────────── */
:root {
    --primary:        #0a0a0a;
    --secondary:      #161616;
    --accent:         #0a0a0a;
    --accent-dark:    #333;
    --accent-rgb:     10,10,10;
    --light-bg:       #f9f7f4;
    --border:         #e4e0da;
    --muted:          #888580;
    --radius:         0px;
    --shadow:         none;
    --shadow-h:       0 8px 32px rgba(0,0,0,.1);
    --font:           'Jost', system-ui, sans-serif;
    --font-heading:   'Playfair Display', Georgia, serif;
}

body {
    font-family: var(--font);
    background: #fff;
    color: var(--primary);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
}

/* ─── TIPOGRAFÍA GLOBAL ──────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    letter-spacing: 0.01em;
}

/* ─── NAVBAR ─────────────────────────────────────────────── */
.navbar-tienda {
    background: rgba(255,255,255,.97) !important;
    box-shadow: none !important;
    border-bottom: 1px solid var(--border) !important;
    padding: 0 !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.navbar-tienda .container {
    min-height: 64px;
}

.navbar-tienda .navbar-brand {
    font-family: var(--font-heading) !important;
    font-style: italic;
    font-size: 1.65rem !important;
    font-weight: 400 !important;
    letter-spacing: 0.12em !important;
    color: var(--primary) !important;
    text-transform: uppercase;
    padding: 0 !important;
}

.navbar-tienda .navbar-brand i {
    display: none;
}

.navbar-tienda .nav-link {
    font-family: var(--font) !important;
    color: var(--primary) !important;
    font-weight: 400 !important;
    font-size: 0.78rem !important;
    letter-spacing: 0.14em !important;
    text-transform: uppercase !important;
    padding: 0.4rem 0.75rem !important;
    border-radius: 0 !important;
    transition: opacity .2s !important;
}

.navbar-tienda .nav-link:hover,
.navbar-tienda .nav-link.active {
    color: var(--primary) !important;
    background: transparent !important;
    opacity: 0.55;
}

.navbar-tienda .dropdown-menu {
    border: 1px solid var(--border);
    border-radius: 0;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    padding: 0.5rem 0;
}

.navbar-tienda .dropdown-item {
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    padding: 0.6rem 1.25rem;
    color: var(--primary);
    font-family: var(--font);
}

.navbar-tienda .dropdown-item:hover {
    background: var(--light-bg);
    color: var(--primary);
}

.navbar-tienda .navbar-toggler {
    border: none !important;
    padding: 0.4rem;
}

.navbar-tienda .navbar-toggler:focus { box-shadow: none; }

.navbar-tienda .navbar-toggler-icon {
    filter: invert(0) !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(10,10,10,0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Buscador navbar — integrado, sin fondos de colores */
.navbar-search-input {
    border: 1px solid var(--border) !important;
    border-right: none !important;
    border-radius: 0 !important;
    background: #fff !important;
    color: var(--primary) !important;
    font-family: var(--font) !important;
    font-size: 0.8rem !important;
    letter-spacing: 0.06em !important;
}

.navbar-search-input::placeholder { color: #bbb !important; }

.navbar-search-input:focus {
    background: #fff !important;
    border-color: var(--primary) !important;
    box-shadow: none !important;
}

.navbar-search-btn {
    background: var(--primary) !important;
    border-radius: 0 !important;
    color: #fff !important;
}

/* Cart button */
.cart-btn {
    background: var(--primary) !important;
    border-radius: 0 !important;
    font-family: var(--font) !important;
    font-weight: 400 !important;
    font-size: 0.78rem !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    padding: 0.5rem 1.1rem !important;
    gap: 6px !important;
    transition: opacity .2s !important;
}

.cart-btn:hover {
    background: var(--primary) !important;
    opacity: 0.75;
}

.cart-badge {
    background: #fff !important;
    color: var(--primary) !important;
    font-family: var(--font) !important;
    font-weight: 600 !important;
    font-size: 0.65rem !important;
    width: 18px !important;
    height: 18px !important;
    top: -5px !important;
    right: -5px !important;
}

/* ─── TICKER ─────────────────────────────────────────────── */
.ticker-bar {
    background: var(--primary) !important;
    color: #fff;
    font-family: var(--font);
    font-size: 0.78rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    padding: 0.5rem 0;
}

.ticker-label {
    background: rgba(255,255,255,.1) !important;
    border-radius: 0 !important;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 2px 10px !important;
}

/* ─── HERO ───────────────────────────────────────────────── */
.hero-section {
    min-height: 88vh !important;
    padding: 0 !important;
    display: flex;
    align-items: flex-end;
    position: relative;
    overflow: hidden;
}

/* Hero sin imagen */
.hero-section:not(.has-hero-image) {
    background: var(--primary) !important;
    align-items: center;
    min-height: 60vh !important;
}

/* Hero con imagen: overlay cinematográfico */
.hero-section.has-hero-image::before {
    content: '' !important;
    display: block !important;
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(
        to top,
        rgba(0,0,0,.82) 0%,
        rgba(0,0,0,.45) 40%,
        rgba(0,0,0,.1) 70%,
        rgba(0,0,0,.0) 100%
    ) !important;
    z-index: 1 !important;
}

.hero-section .container {
    position: relative !important;
    z-index: 2 !important;
    padding-bottom: 5rem !important;
    padding-top: 2rem !important;
}

.hero-section:not(.has-hero-image) .container {
    padding-bottom: 2rem !important;
}

/* Texto hero con imagen */
.hero-section.has-hero-image .hero-title {
    font-family: var(--font-heading) !important;
    font-size: clamp(3rem, 7vw, 5.5rem) !important;
    font-weight: 300 !important;
    letter-spacing: 0.02em !important;
    line-height: 1.05 !important;
    color: #fff !important;
}

.hero-section.has-hero-image .hero-title span {
    font-style: italic;
    color: #fff !important;
}

.hero-section.has-hero-image .hero-subtitle {
    font-family: var(--font) !important;
    font-size: 0.92rem !important;
    font-weight: 300 !important;
    letter-spacing: 0.12em !important;
    color: rgba(255,255,255,.75) !important;
    text-transform: uppercase !important;
    max-width: 460px;
    margin-bottom: 2.2rem !important;
}

/* Texto hero sin imagen */
.hero-section:not(.has-hero-image) .hero-title {
    font-family: var(--font-heading) !important;
    font-size: clamp(2.5rem, 6vw, 4.5rem) !important;
    font-weight: 300 !important;
    letter-spacing: 0.02em !important;
    color: #fff !important;
}

.hero-section:not(.has-hero-image) .hero-title span { color: #fff !important; }

.hero-section:not(.has-hero-image) .hero-subtitle {
    color: rgba(255,255,255,.55) !important;
    font-weight: 300 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    font-size: 0.88rem !important;
}

/* Botones hero */
.btn-accent {
    font-family: var(--font) !important;
    font-size: 0.78rem !important;
    font-weight: 400 !important;
    letter-spacing: 0.16em !important;
    text-transform: uppercase !important;
    padding: 0.7rem 2rem !important;
    background: #fff !important;
    color: var(--primary) !important;
    border: 1px solid #fff !important;
    border-radius: 0 !important;
    transition: background .2s, color .2s !important;
    transform: none !important;
}

.btn-accent:hover {
    background: transparent !important;
    color: #fff !important;
    border-color: #fff !important;
    transform: none !important;
}

/* Cuando el hero no tiene imagen, invertir colores del botón */
.hero-section:not(.has-hero-image) .btn-accent {
    background: #fff !important;
    color: var(--primary) !important;
}

.btn-outline-light-custom {
    font-family: var(--font) !important;
    font-size: 0.78rem !important;
    font-weight: 400 !important;
    letter-spacing: 0.16em !important;
    text-transform: uppercase !important;
    padding: 0.7rem 2rem !important;
    background: transparent !important;
    color: rgba(255,255,255,.85) !important;
    border: 1px solid rgba(255,255,255,.45) !important;
    border-radius: 0 !important;
    transition: background .2s, border-color .2s !important;
    text-decoration: none !important;
    display: inline-block !important;
}

.btn-outline-light-custom:hover {
    background: rgba(255,255,255,.1) !important;
    border-color: rgba(255,255,255,.8) !important;
    color: #fff !important;
}

/* Indicadores del hero carousel */
.hero-indicators {
    position: absolute;
    bottom: 1.75rem;
    right: 2rem;
    z-index: 3;
    display: flex;
    gap: 8px;
    align-items: center;
}

.hero-dot {
    width: 24px;
    height: 1px;
    background: rgba(255,255,255,.35);
    cursor: pointer;
    transition: background .3s, width .3s;
    border: none;
    padding: 0;
    display: block;
}

.hero-dot.active, .hero-dot:hover {
    background: #fff;
    width: 40px;
}

/* ─── SECCIÓN TÍTULOS ────────────────────────────────────── */
.section-title {
    font-family: var(--font-heading) !important;
    font-size: 2.4rem !important;
    font-weight: 400 !important;
    letter-spacing: 0.01em !important;
    color: var(--primary) !important;
    line-height: 1.1 !important;
}

.section-subtitle {
    font-family: var(--font) !important;
    font-size: 0.78rem !important;
    font-weight: 400 !important;
    letter-spacing: 0.16em !important;
    text-transform: uppercase !important;
    color: var(--muted) !important;
    margin-bottom: 0.6rem !important;
}

.section-divider {
    background: var(--border) !important;
    height: 1px !important;
    width: 48px !important;
    border-radius: 0 !important;
    margin-bottom: 0.6rem !important;
}

/* ─── CATEGORY CARDS ─────────────────────────────────────── */
.category-card {
    border-radius: 0 !important;
    box-shadow: none !important;
    border: none !important;
    overflow: visible !important;
    position: relative;
    transition: transform .35s ease !important;
}

.category-card:hover {
    transform: translateY(-3px) !important;
    box-shadow: none !important;
}

.category-img-wrap {
    height: 320px !important;
    background: var(--secondary) !important;
    overflow: hidden !important;
    position: relative;
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,.10) !important;
    transition: box-shadow .35s ease !important;
}

.category-card:hover .category-img-wrap {
    box-shadow: 0 12px 36px rgba(0,0,0,.18) !important;
}

.category-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s cubic-bezier(.25,.46,.45,.94) !important;
    filter: brightness(.88);
    border-radius: 12px !important;
}

.category-card:hover .category-img-wrap img {
    transform: scale(1.05) !important;
    filter: brightness(.76);
}

.category-body {
    background: #fff;
    padding: 1.1rem 0 !important;
    border-top: 1px solid var(--border);
}

.category-name {
    font-family: var(--font-heading) !important;
    font-size: 1.3rem !important;
    font-weight: 400 !important;
    letter-spacing: 0.04em !important;
    color: var(--primary) !important;
    margin: 0 !important;
}

.category-desc {
    font-family: var(--font) !important;
    font-size: 0.78rem !important;
    font-weight: 300 !important;
    letter-spacing: 0.06em !important;
    color: var(--muted) !important;
    margin: 0.3rem 0 0 !important;
}

/* ─── PRODUCT CARDS ──────────────────────────────────────── */
.product-card {
    background: #fff !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border: none !important;
    overflow: visible !important;
    transition: transform .35s ease !important;
}

.product-card:hover {
    transform: translateY(-3px) !important;
    box-shadow: none !important;
    border-color: transparent !important;
}

.product-img-wrap {
    padding-top: 125% !important; /* portrait ratio — perfume bottles */
    background: var(--light-bg) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    position: relative;
    box-shadow: 0 4px 18px rgba(0,0,0,.07) !important;
    transition: box-shadow .35s ease !important;
}

.product-card:hover .product-img-wrap {
    box-shadow: 0 10px 32px rgba(0,0,0,.13) !important;
}

.product-img-wrap img {
    transition: transform .55s cubic-bezier(.25,.46,.45,.94) !important;
    border-radius: 12px !important;
}

.product-card:hover .product-img-wrap img {
    transform: scale(1.05) !important;
}

.product-body {
    padding: 1rem 0 !important;
}

/* Nombre del producto */
.product-name {
    font-family: var(--font-heading) !important;
    font-size: 1.1rem !important;
    font-weight: 400 !important;
    letter-spacing: 0.02em !important;
    line-height: 1.25 !important;
    color: var(--primary) !important;
}

.product-name a { color: inherit !important; text-decoration: none !important; }
.product-name a:hover { color: inherit !important; opacity: .7; }

/* Precio */
.price-current {
    font-family: var(--font) !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: var(--primary) !important;
    letter-spacing: 0.02em !important;
}

/* Precio tachado — llamativo, no fantasma */
.price-old {
    font-size: 0.78rem !important;
    font-weight: 500 !important;
    color: #fff !important;
    text-decoration: line-through !important;
    text-decoration-color: rgba(255,255,255,.7) !important;
    background: #b8860b !important;
    border-radius: 3px !important;
    padding: 1px 6px !important;
    letter-spacing: .02em !important;
    display: inline-block !important;
}

/* Bloque de precios en la card — alineación */
.product-price {
    display: flex !important;
    align-items: center !important;
    gap: .4rem !important;
    flex-wrap: wrap !important;
    margin-bottom: .5rem !important;
}

.product-detail-price {
    font-family: var(--font-heading) !important;
    font-size: 2.2rem !important;
    font-weight: 700 !important;
    color: var(--primary) !important;
    letter-spacing: -.01em !important;
}

/* Precio tachado en detalle del producto */
.product-detail-price-old {
    font-size: 1rem !important;
    font-weight: 500 !important;
    color: #fff !important;
    text-decoration: line-through !important;
    text-decoration-color: rgba(255,255,255,.7) !important;
    background: #b8860b !important;
    border-radius: 4px !important;
    padding: 2px 8px !important;
    display: inline-block !important;
    margin-right: .4rem !important;
}

/* Badge "oferta" */
.badge-oferta {
    font-family: var(--font) !important;
    background: #b8860b !important;
    color: #fff !important;
    border-radius: 0 !important;
    font-size: 0.62rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.14em !important;
    text-transform: uppercase !important;
    padding: 4px 10px !important;
    top: 12px !important;
    left: 12px !important;
}

/* Sin stock */
.badge-stock-out {
    background: #888 !important;
    border-radius: 0 !important;
    font-family: var(--font) !important;
    font-weight: 400 !important;
    letter-spacing: 0.08em !important;
    box-shadow: none !important;
}

.product-card.out-of-stock .product-img-wrap img {
    filter: grayscale(60%) opacity(.7) !important;
}

/* Botón agregar al carrito en tarjeta */
.btn-add-cart, .btn-ver-producto {
    font-family: var(--font) !important;
    font-size: 0.75rem !important;
    font-weight: 400 !important;
    letter-spacing: 0.14em !important;
    text-transform: uppercase !important;
    border-radius: 0 !important;
    padding: 0.55rem 1rem !important;
    transition: background .2s, color .2s !important;
}

/* ── Botón "Agregar al carrito" — fondo oscuro sobre página blanca ── */
.btn-add-to-cart {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: .5rem !important;
    width: 100% !important;
    padding: .85rem 2rem !important;
    background: var(--primary) !important;
    color: #fff !important;
    border: 1.5px solid var(--primary) !important;
    border-radius: 0 !important;
    font-family: var(--font) !important;
    font-size: .92rem !important;
    font-weight: 600 !important;
    letter-spacing: .1em !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: background .2s, color .2s !important;
}
.btn-add-to-cart:hover {
    background: transparent !important;
    color: var(--primary) !important;
}
.btn-add-to-cart:disabled {
    background: #e5e7eb !important;
    border-color: #d1d5db !important;
    color: #9ca3af !important;
    cursor: not-allowed !important;
}

.btn-accent-inv {
    background: var(--primary) !important;
    color: #fff !important;
    border-color: var(--primary) !important;
}
.btn-accent-inv:hover, .btn-accent-inv:focus {
    background: transparent !important;
    color: var(--primary) !important;
    border-color: var(--primary) !important;
}
.btn-accent-inv:disabled {
    background: #d1d5db !important;
    border-color: #d1d5db !important;
    color: #9ca3af !important;
    cursor: not-allowed !important;
}

/* ─── CATÁLOGO — filtros ─────────────────────────────────── */
.filter-cat-btn {
    font-family: var(--font) !important;
    font-size: 0.75rem !important;
    font-weight: 400 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    border-radius: 0 !important;
    padding: 0.4rem 1rem !important;
    border: 1px solid var(--border) !important;
    background: #fff !important;
    color: var(--muted) !important;
    transition: all .2s !important;
}

.filter-cat-btn:hover,
.filter-cat-btn.active {
    background: var(--primary) !important;
    color: #fff !important;
    border-color: var(--primary) !important;
}

/* ─── BREADCRUMB ─────────────────────────────────────────── */
.breadcrumb-pills a {
    font-family: var(--font) !important;
    font-size: 0.75rem !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    background: #f0ede8 !important;
    color: var(--muted) !important;
    border-radius: 0 !important;
    padding: 4px 12px !important;
    text-decoration: none;
}

.breadcrumb-pills a:hover {
    background: var(--primary) !important;
    color: #fff !important;
}

.breadcrumb-pills .active span {
    background: var(--primary) !important;
    border-radius: 0 !important;
    font-family: var(--font) !important;
    font-size: 0.75rem !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    padding: 4px 12px !important;
}

/* ─── CTA BANNER ─────────────────────────────────────────── */
.cta-banner {
    background: var(--primary) !important;
    border-radius: 0 !important;
    padding: 4rem 2rem !important;
}

.cta-banner .cta-title {
    font-family: var(--font-heading) !important;
    font-size: 2.8rem !important;
    font-weight: 300 !important;
    letter-spacing: 0.02em !important;
    font-style: italic;
}

/* ─── FORMS ──────────────────────────────────────────────── */
.form-control, .form-select {
    font-family: var(--font) !important;
    border-radius: 0 !important;
    border: 1px solid var(--border) !important;
    font-size: 0.88rem !important;
    padding: 0.6rem 0.9rem !important;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary) !important;
    box-shadow: none !important;
    outline: none !important;
}

.form-label {
    font-family: var(--font) !important;
    font-size: 0.75rem !important;
    font-weight: 400 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    color: var(--muted) !important;
    margin-bottom: 0.4rem !important;
}

/* ─── BOTONES GENERALES ──────────────────────────────────── */
.btn {
    font-family: var(--font) !important;
    border-radius: 0 !important;
}

.btn-dark, .btn-primary {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    border-radius: 0 !important;
    font-size: 0.78rem !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    font-weight: 400 !important;
}

.btn-dark:hover, .btn-primary:hover {
    background: #333 !important;
    border-color: #333 !important;
}

.btn-outline-dark {
    border-color: var(--primary) !important;
    color: var(--primary) !important;
    border-radius: 0 !important;
    font-size: 0.78rem !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    font-weight: 400 !important;
}

.btn-outline-dark:hover {
    background: var(--primary) !important;
    color: #fff !important;
}

/* Qty control */
.qty-control {
    border-radius: 0 !important;
    border-color: var(--border) !important;
    font-family: var(--font) !important;
}

/* ─── VARIANTES ──────────────────────────────────────────── */
.variante-btn {
    font-family: var(--font) !important;
    font-size: 0.78rem !important;
    letter-spacing: 0.06em !important;
    border-radius: 0 !important;
    border: 1px solid var(--border) !important;
    transition: all .15s !important;
}

.variante-btn:hover {
    border-color: var(--primary) !important;
    background: var(--primary) !important;
    color: #fff !important;
}

.variante-btn.selected {
    background: var(--primary) !important;
    color: #fff !important;
    border-color: var(--primary) !important;
}

.variante-agotada {
    text-decoration: line-through !important;
    opacity: .35 !important;
}

/* ─── CARRITO / CHECKOUT ─────────────────────────────────── */
.cart-item-name {
    font-family: var(--font-heading) !important;
    font-size: 1.05rem !important;
    font-weight: 400 !important;
}

/* ─── FOOTER ─────────────────────────────────────────────── */
.site-footer {
    background: var(--primary) !important;
    color: rgba(255,255,255,.6);
    font-family: var(--font) !important;
}

.site-footer .footer-brand {
    font-family: var(--font-heading) !important;
    font-style: italic;
    font-size: 1.8rem !important;
    font-weight: 400 !important;
    letter-spacing: 0.1em !important;
    color: #fff !important;
    text-transform: uppercase;
}

.site-footer h6 {
    font-family: var(--font) !important;
    font-size: 0.72rem !important;
    font-weight: 400 !important;
    letter-spacing: 0.2em !important;
    text-transform: uppercase !important;
    color: rgba(255,255,255,.4) !important;
    margin-bottom: 1rem !important;
}

.footer-link {
    font-size: 0.82rem !important;
    font-weight: 300 !important;
    letter-spacing: 0.04em !important;
    color: rgba(255,255,255,.55) !important;
    text-decoration: none;
    transition: color .2s;
}

.footer-link:hover {
    color: #fff !important;
}

.footer-social {
    display: flex !important;
    gap: 1.5rem !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    margin-top: .5rem !important;
}

.footer-social a {
    width: auto !important;
    height: auto !important;
    border: none !important;
    border-radius: 0 !important;
    background: none !important;
    color: rgba(255,255,255,.4) !important;
    font-size: 1.25rem !important;
    line-height: 1 !important;
    transition: color .2s !important;
    display: inline-flex !important;
    align-items: center !important;
    padding: 0 !important;
    text-decoration: none !important;
}

.footer-social a:hover {
    background: none !important;
    color: #fff !important;
    border-color: transparent !important;
}

.site-footer .border-top {
    border-color: rgba(255,255,255,.1) !important;
}

.site-footer small {
    font-size: 0.72rem !important;
    letter-spacing: 0.08em !important;
    color: rgba(255,255,255,.28) !important;
}

/* ─── BOTÓN WHATSAPP FLOTANTE ────────────────────────────── */
.wa-float-btn {
    border-radius: 0 !important;
    width: 48px !important;
    height: 48px !important;
    font-size: 1.3rem !important;
}

/* ─── PÁGINA PRODUCTO ────────────────────────────────────── */
.product-gallery-main img {
    border-radius: 0 !important;
}

.product-gallery-thumb img {
    border-radius: 0 !important;
}

.product-gallery-thumb.active img,
.product-gallery-thumb:hover img {
    border: 1px solid var(--primary) !important;
    border-radius: 0 !important;
}

/* ─── ACCESIBILIDAD ──────────────────────────────────────── */
:focus-visible {
    outline: 1px solid var(--primary) !important;
    outline-offset: 2px;
}

/* ─── OVERRIDES VARIOS ───────────────────────────────────── */
.text-accent  { color: var(--primary) !important; }
.bg-accent    { background: var(--primary) !important; }
.border-accent { border-color: var(--primary) !important; }

.bg-light, .bg-light-section { background: var(--light-bg) !important; }

/* Tabs */
.nav-tabs .nav-link {
    font-family: var(--font) !important;
    font-size: 0.78rem !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    border-radius: 0 !important;
    color: var(--muted) !important;
    border: none !important;
    border-bottom: 1px solid transparent !important;
    padding: 0.6rem 1rem !important;
}

.nav-tabs .nav-link.active {
    color: var(--primary) !important;
    background: none !important;
    border-bottom-color: var(--primary) !important;
    font-weight: 500 !important;
}

.nav-tabs {
    border-bottom: 1px solid var(--border) !important;
}

/* Badges genéricos */
.badge {
    border-radius: 0 !important;
    font-family: var(--font) !important;
    font-weight: 400 !important;
    letter-spacing: 0.08em !important;
}

/* Estado pedido */
.badge.bg-warning { background: #c9a961 !important; color: #fff !important; }

/* Spinner */
.text-accent.spinner-border { color: var(--primary) !important; }

/* ─── MOBILE ─────────────────────────────────────────────── */
@media (max-width: 991px) {
    .hero-section {
        min-height: 70vh !important;
        align-items: flex-end;
    }

    .hero-section .container {
        padding-bottom: 3rem !important;
    }

    .hero-section.has-hero-image .hero-title {
        font-size: clamp(2.2rem, 8vw, 3.5rem) !important;
    }

    .navbar-tienda .navbar-brand {
        font-size: 1.35rem !important;
    }

    .category-img-wrap {
        height: 220px !important;
    }

    /* En mobile el nav collapse tiene fondo blanco limpio */
    .navbar-collapse {
        background: #fff;
        padding: 1rem;
        border-top: 1px solid var(--border);
        margin-top: 0;
    }
}

@media (max-width: 575px) {
    .hero-section {
        min-height: 60vh !important;
    }

    .section-title {
        font-size: 1.9rem !important;
    }

    /* ── Grilla mobile: 2 columnas estrictas, fotos iguales ── */
    .products-grid,
    .products-grid[data-card-layout="minimal"],
    .products-grid[data-card-layout="vertical"],
    .products-grid[data-card-layout="horizontal"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: .6rem !important;
        align-items: start !important;
    }

    .product-img-wrap {
        padding-top: 0 !important;
        aspect-ratio: 3 / 4 !important;
        width: 100% !important;
        height: auto !important;
        position: relative !important;
    }

    .product-img-wrap img,
    .product-img-placeholder {
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    .product-body {
        padding: .6rem .25rem !important;
    }

    .product-name {
        font-size: .8rem !important;
        line-height: 1.3 !important;
    }

    .price-current {
        font-size: .85rem !important;
    }

    .price-old {
        font-size: .72rem !important;
    }
}
