/* ==============================================================================
   EL COMERCIANTE - ESTILOS E-COMMERCE ESTILO MULTICENTER
   Paleta: Amarillo (#FFCC00 / #EAB308), Negro (#111827 / #000000), Blanco (#FFFFFF)
   ============================================================================== */

:root {
    --primary-yellow: #FFCC00;
    --primary-yellow-hover: #E5B800;
    --primary-yellow-light: #FFFBEB;
    --primary-yellow-border: #FDE047;
    
    --dark-black: #111827;
    --dark-surface: #1F2937;
    --dark-muted: #374151;
    
    --pure-white: #FFFFFF;
    --bg-light: #F8FAFC;
    --bg-card: #FFFFFF;
    
    --text-main: #111827;
    --text-muted: #6B7280;
    --text-light: #9CA3AF;
    --border-color: #E5E7EB;
    
    --success-green: #10B981;
    --whatsapp-green: #25D366;
    --whatsapp-hover: #20BA5A;
    --danger-red: #EF4444;
    --info-blue: #3B82F6;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-full: 9999px;
    
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-card: 0 2px 10px rgba(0,0,0,0.06);
    
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --container-max: 1240px;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* TOP ANNOUNCEMENT BAR */
.top-bar {
    background-color: var(--dark-black);
    color: var(--pure-white);
    font-size: 0.825rem;
    padding: 8px 1rem;
    border-bottom: 2.5px solid var(--primary-yellow);
}

.top-bar .container {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.top-bar-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.top-bar-notice span.tag-yellow {
    background: var(--primary-yellow);
    color: var(--dark-black);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.top-bar-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.top-bar-links a {
    color: #D1D5DB;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}

.top-bar-links a:hover {
    color: var(--primary-yellow);
}

/* MAIN HEADER */
.main-header {
    background-color: var(--pure-white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s ease;
    overflow-anchor: none;
}

/* MODO COMPACTO AL DESLIZAR HACIA ABAJO:
   Oculta el logo grande y enlaces secundarios,
   manteniendo SIEMPRE visibles la barra de búsqueda y el carrito */
.main-header.scrolled-compact {
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
}

.main-header.scrolled-compact .header-container {
    padding: 6px 1rem;
    gap: 10px;
}

.main-header.scrolled-compact .brand-container {
    display: none !important;
}

.main-header.scrolled-compact .header-actions > a {
    display: none !important;
}

.main-header.scrolled-compact .header-search {
    max-width: 100%;
}

.header-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 12px 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

/* BRAND LOGO AREA (Placeholder + Text) */
.brand-container {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--dark-black);
    gap: 12px;
}

.logo-image-placeholder {
    width: 86px;
    height: 86px;
    min-width: 86px;
    border: none;
    background: #FFFFFF;
    color: var(--dark-black);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    padding: 3px;
}

.logo-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-text-block {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.1;
    color: var(--dark-black);
    text-transform: uppercase;
}

.brand-title span {
    color: #D97706;
}

.brand-subtitle {
    font-size: 0.725rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* SEARCH BAR */
.header-search {
    flex: 1;
    max-width: 580px;
    display: flex;
    position: relative;
}

.search-input-wrapper {
    display: flex;
    width: 100%;
    background: #F3F4F6;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-full);
    overflow: hidden;
    transition: all 0.2s ease;
}

.search-input-wrapper:focus-within {
    border-color: var(--dark-black);
    background: var(--pure-white);
    box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.4);
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 18px;
    font-size: 0.95rem;
    outline: none;
    color: var(--text-main);
}

.search-button {
    background-color: var(--primary-yellow);
    border: none;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 600;
    color: var(--dark-black);
    transition: background-color 0.2s;
}

.search-button:hover {
    background-color: var(--primary-yellow-hover);
}

/* HEADER ACTIONS */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--dark-black);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.header-action-btn:hover {
    background: #E5E7EB;
    border-color: #D1D5DB;
}

.cart-btn {
    background: var(--dark-black);
    color: var(--pure-white);
    border: 2px solid var(--dark-black);
    position: relative;
}

.cart-btn:hover {
    background: var(--dark-surface);
    color: var(--pure-white);
}

.cart-badge {
    background: var(--primary-yellow);
    color: var(--dark-black);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: var(--radius-full);
    min-width: 20px;
    text-align: center;
}

/* CATEGORY NAVBAR */
.category-nav {
    background: var(--pure-white);
    border-bottom: 1px solid var(--border-color);
    padding: 8px 0;
}

.category-nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.cat-chip {
    white-space: nowrap;
    padding: 7px 16px;
    background: #F3F4F6;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
}

.cat-chip:hover {
    background: var(--primary-yellow-light);
    border-color: var(--primary-yellow);
}

.cat-chip.active {
    background: var(--dark-black);
    color: var(--primary-yellow);
    border-color: var(--dark-black);
}

/* ==============================================================================
   SLIDER / CAROUSEL DINÁMICO DE BANNERS (AÑADE TANTOS BANNERS COMO GUSTES)
   ============================================================================== */
.hero-section {
    max-width: var(--container-max);
    margin: 1.25rem auto 1rem;
    padding: 0 1rem;
    position: relative;
}

.hero-slider-wrap {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: var(--dark-black);
    width: 100%;
    aspect-ratio: 4 / 1; /* Proporción en Laptop equivalente: 1 de alto por 4 de largo */
    min-height: 220px;
}

.hero-slides-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    padding: 1.5rem 2.5rem;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    position: relative;
}

.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17,24,39,0.95) 0%, rgba(17,24,39,0.85) 55%, rgba(17,24,39,0.3) 100%);
    z-index: 1;
}

.hero-content {
    max-width: 640px;
    position: relative;
    z-index: 2;
    color: var(--pure-white);
}

.hero-tag {
    display: inline-block;
    background: var(--primary-yellow);
    color: var(--dark-black);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.8rem;
}

.hero-title {
    font-size: 2.15rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 0.75rem;
    color: var(--pure-white);
}

.hero-title span {
    color: var(--primary-yellow);
}

.hero-desc {
    color: #E5E7EB;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-yellow);
    color: var(--dark-black);
    font-weight: 700;
    padding: 10px 24px;
    border-radius: var(--radius-full);
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(255, 204, 0, 0.35);
    transition: transform 0.2s, background 0.2s;
}

.hero-btn:hover {
    background: var(--primary-yellow-hover);
    transform: translateY(-2px);
}

/* CONTROLES DEL SLIDER (Flechas en esquina inferior derecha para no tapar letras, y Puntos) */
.slider-arrow-btn {
    position: absolute;
    top: auto;
    bottom: 12px;
    transform: none;
    background: rgba(17, 24, 39, 0.7);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--pure-white);
    width: 34px;
    height: 34px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
}

.slider-arrow-btn:hover {
    background: var(--primary-yellow);
    color: var(--dark-black);
    border-color: var(--primary-yellow);
}

.slider-arrow-btn.prev {
    left: auto;
    right: 54px;
}

.slider-arrow-btn.next {
    left: auto;
    right: 14px;
}

.slider-dots-container {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: all 0.25s;
    padding: 0;
}

.slider-dot.active {
    background: var(--primary-yellow);
    width: 26px;
    border-radius: var(--radius-full);
}

/* BENEFICIOS / PERKS BAR */
.perks-bar {
    max-width: var(--container-max);
    margin: 1.25rem auto 2rem;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.perk-card {
    background: var(--pure-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--shadow-sm);
}

.perk-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: var(--primary-yellow-light);
    color: #B45309;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.perk-text h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.2;
}

.perk-text p {
    font-size: 0.775rem;
    color: var(--text-muted);
}

/* MAIN CATALOG LAYOUT */
.main-layout {
    max-width: var(--container-max);
    margin: 0 auto 3.5rem;
    padding: 0 1rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 12px;
}

.section-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title-icon {
    background: var(--primary-yellow);
    color: var(--dark-black);
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--dark-black);
}

.sort-tabs {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #F3F4F6;
    padding: 4px;
    border-radius: var(--radius-full);
}

.sort-tab-btn {
    border: none;
    background: transparent;
    padding: 7px 15px;
    font-size: 0.825rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sort-tab-btn.active {
    background: var(--pure-white);
    color: var(--dark-black);
    box-shadow: var(--shadow-sm);
    font-weight: 700;
}

/* PRODUCTS GRID & CARD */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}

.product-card {
    background: var(--pure-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    box-shadow: var(--shadow-card);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: #D1D5DB;
}

.card-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 5;
}

.badge-bestseller {
    background: var(--dark-black);
    color: var(--primary-yellow);
    font-size: 0.68rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: var(--shadow-sm);
}

.badge-wholesale {
    background: var(--primary-yellow);
    color: var(--dark-black);
    font-size: 0.68rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    box-shadow: var(--shadow-sm);
}

.product-image-wrap {
    width: 100%;
    height: 200px;
    background: #FFFFFF;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.product-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.25s ease;
}

.product-card:hover .product-image-wrap img {
    transform: scale(1.04);
}

.product-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-category {
    font-size: 0.725rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.product-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark-black);
    line-height: 1.35;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.7em;
}

.product-pricing {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px dashed var(--border-color);
}

.retail-price-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.price-currency {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark-black);
}

.price-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--dark-black);
}

.wholesale-tier-box {
    margin-top: 6px;
    background: var(--primary-yellow-light);
    border: 1px solid var(--primary-yellow-border);
    border-radius: var(--radius-sm);
    padding: 6px 9px;
    font-size: 0.775rem;
    color: #92400E;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wholesale-tier-box strong {
    font-size: 0.85rem;
    color: var(--dark-black);
}

.stock-indicator {
    margin-top: 8px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.stock-dot {
    width: 7px;
    height: 7px;
    border-radius: var(--radius-full);
}

.stock-in { color: var(--success-green); }
.stock-in .stock-dot { background: var(--success-green); }
.stock-low { color: #D97706; }
.stock-low .stock-dot { background: #D97706; }
.stock-out { color: var(--danger-red); }
.stock-out .stock-dot { background: var(--danger-red); }

.product-card-action {
    margin-top: 14px;
}

.btn-add-cart {
    width: 100%;
    background: var(--primary-yellow);
    color: var(--dark-black);
    border: none;
    border-radius: var(--radius-full);
    padding: 10px 14px;
    font-weight: 700;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.btn-add-cart:hover:not(:disabled) {
    background: var(--primary-yellow-hover);
    transform: translateY(-1px);
}

.btn-add-cart:disabled {
    background: #E5E7EB;
    color: #9CA3AF;
    cursor: not-allowed;
}

/* ==============================================================================
   CARRITO DE COMPRAS Y CHECKOUT REDISEÑADOS (EXPERIENCIA IMPECABLE)
   ============================================================================== */
.cart-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(17, 24, 39, 0.65);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cart-modal-overlay.open {
    display: block;
    opacity: 1;
}

.cart-modal-overlay.active,
#productDetailModalOverlay.active,
#productDetailModalOverlay.open {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    padding: 20px;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 520px;
    height: 100%;
    background: var(--pure-white);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    box-shadow: -8px 0 30px rgba(0,0,0,0.25);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-modal-overlay.open .cart-drawer {
    transform: translateX(0);
}

/* CABECERA DEL CARRITO */
.cart-header {
    background: var(--dark-black);
    color: var(--pure-white);
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 3.5px solid var(--primary-yellow);
    flex-shrink: 0;
}

.cart-header-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-header-title-wrap h3 {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.3px;
}

.cart-header-count {
    background: var(--primary-yellow);
    color: var(--dark-black);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

.btn-close-cart {
    background: rgba(255,255,255,0.1);
    border: none;
    color: var(--pure-white);
    cursor: pointer;
    width: 34px;
    height: 34px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-close-cart:hover {
    background: rgba(255,255,255,0.25);
    transform: rotate(90deg);
}

/* ÁREA UNIFICADA CON SCROLL NATURAL (TODO VISIBLE SIN CORTAR) */
.cart-scroll-area {
    flex: 1;
    overflow-y: auto;
    padding: 18px 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    scrollbar-width: thin;
}

/* AVISO DE ENVÍOS EN SANTA CRUZ */
.cart-promo-pill {
    background: #FFFBEB;
    border: 1px solid #FDE047;
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 0.8rem;
    color: #92400E;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* LISTA DE ÍTEMS DEL CARRITO */
.cart-items-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cart-item-card {
    background: #FAFAFA;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    display: flex;
    gap: 12px;
    align-items: center;
    transition: border-color 0.2s;
}

.cart-item-card:hover {
    border-color: #D1D5DB;
    background: #FFFFFF;
}

.cart-item-img {
    width: 68px;
    height: 68px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: #F3F4F6;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

.cart-item-details {
    flex: 1;
    min-width: 0;
}

.cart-item-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--dark-black);
    line-height: 1.25;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-unit-price {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.cart-wholesale-active-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #FEF3C7;
    color: #92400E;
    font-weight: 800;
    font-size: 0.72rem;
    padding: 2px 7px;
    border-radius: var(--radius-sm);
    border: 1px solid #FDE047;
    margin-top: 4px;
}

.cart-wholesale-hint {
    font-size: 0.72rem;
    color: #D97706;
    margin-top: 3px;
    font-weight: 600;
}

.cart-item-actions-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
}

.qty-capsule {
    display: inline-flex;
    align-items: center;
    background: #FFFFFF;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.qty-step-btn {
    background: none;
    border: none;
    width: 30px;
    height: 30px;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-black);
    transition: background 0.15s;
}

.qty-step-btn:hover {
    background: var(--primary-yellow-light);
    color: #92400E;
}

.qty-number {
    width: 32px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--dark-black);
}

.cart-item-subtotal {
    font-size: 1rem;
    font-weight: 800;
    color: var(--dark-black);
}

.btn-item-delete {
    background: none;
    border: none;
    color: #9CA3AF;
    cursor: pointer;
    padding: 6px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-item-delete:hover {
    background: #FEE2E2;
    color: var(--danger-red);
}

/* SECCIONES DEL CHECKOUT EN EL CARRITO */
.cart-checkout-block {
    background: #F9FAFB;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
}

.block-title {
    font-size: 0.875rem;
    font-weight: 800;
    color: var(--dark-black);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.block-title-number {
    background: var(--dark-black);
    color: var(--primary-yellow);
    width: 22px;
    height: 22px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
}

/* SELECTORES TIPO TARJETA / RADIO TILES */
.checkout-tiles-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}

.checkout-tile {
    position: relative;
    border: 2px solid var(--border-color);
    background: var(--pure-white);
    border-radius: var(--radius-md);
    padding: 12px 10px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.checkout-tile input {
    position: absolute;
    opacity: 0;
}

.checkout-tile:hover {
    border-color: #CBD5E1;
}

.checkout-tile:has(input:checked) {
    border-color: var(--dark-black);
    background: var(--primary-yellow-light);
    box-shadow: 0 0 0 2px var(--primary-yellow);
}

.checkout-tile-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background: #F3F4F6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-black);
}

.checkout-tile:has(input:checked) .checkout-tile-icon {
    background: var(--primary-yellow);
    color: var(--dark-black);
}

.checkout-tile-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--dark-black);
    line-height: 1.2;
}

.checkout-tile-sub {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* CAMPOS DE FORMULARIO */
.cart-field {
    margin-bottom: 10px;
}

.cart-field label {
    display: block;
    font-size: 0.775rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 4px;
}

.cart-input {
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    outline: none;
    background: var(--pure-white);
    font-family: inherit;
    transition: all 0.2s;
}

.cart-input:focus {
    border-color: var(--dark-black);
    box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.4);
}

/* STICKY FOOTER DEL CARRITO */
.cart-sticky-footer {
    padding: 16px 20px 20px;
    background: var(--pure-white);
    border-top: 1.5px solid var(--border-color);
    box-shadow: 0 -8px 20px rgba(0,0,0,0.06);
    flex-shrink: 0;
}

.cart-totals-breakdown {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.cart-breakdown-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.cart-breakdown-row.total-row {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--dark-black);
    border-top: 1px dashed var(--border-color);
    padding-top: 8px;
    margin-top: 2px;
}

.cart-breakdown-row.total-row .total-price-large {
    font-size: 1.55rem;
    color: var(--dark-black);
    font-weight: 900;
}

.cart-whatsapp-btn {
    width: 100%;
    background: var(--whatsapp-green);
    color: #FFFFFF;
    border: none;
    border-radius: var(--radius-full);
    padding: 14px 20px;
    font-size: 1rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
    transition: all 0.2s;
}

.cart-whatsapp-btn:hover {
    background: var(--whatsapp-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.5);
}

.cart-guarantee-note {
    text-align: center;
    font-size: 0.725rem;
    color: var(--text-muted);
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* POPUP MODAL QR */
.qr-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--pure-white);
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 1100;
    max-width: 380px;
    width: 90%;
    text-align: center;
    display: none;
}

.qr-modal.active {
    display: block;
}

.qr-placeholder-img {
    width: 190px;
    height: 190px;
    margin: 14px auto;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F9FAFB;
}

/* PIE DE PÁGINA */
.main-footer {
    background: var(--dark-black);
    color: var(--pure-white);
    padding-top: 3.5rem;
    border-top: 4px solid var(--primary-yellow);
}

.footer-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.5rem;
    padding-bottom: 2.5rem;
}

.footer-col h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-yellow);
    margin-bottom: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-col p {
    font-size: 0.85rem;
    color: #9CA3AF;
    line-height: 1.6;
    margin-bottom: 10px;
}

.footer-local-card {
    background: var(--dark-surface);
    border: 1px solid var(--dark-muted);
    border-radius: var(--radius-md);
    padding: 14px;
    margin-top: 10px;
}

.footer-local-card .local-name {
    font-weight: 700;
    color: var(--pure-white);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.footer-local-card .local-address {
    font-size: 0.825rem;
    color: #D1D5DB;
    margin-bottom: 6px;
}

.footer-local-card .local-hours {
    font-size: 0.775rem;
    color: var(--primary-yellow);
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.social-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-full);
    background: var(--dark-surface);
    color: var(--pure-white);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: 1px solid var(--dark-muted);
    transition: all 0.2s;
}

.social-btn:hover {
    background: var(--primary-yellow);
    color: var(--dark-black);
    border-color: var(--primary-yellow);
}

.footer-bottom {
    background: #09090B;
    padding: 16px 1rem;
    text-align: center;
    font-size: 0.775rem;
    color: #6B7280;
    border-top: 1px solid #1F2937;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero-slide {
        padding: 1.5rem;
    }
    .hero-title {
        font-size: 1.5rem;
    }
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .sort-tabs {
        width: 100%;
        overflow-x: auto;
    }
    .header-search {
        order: 3;
        width: 100%;
        max-width: 100%;
    }
    .header-container {
        flex-wrap: wrap;
    }
    .cart-drawer {
        max-width: 100%;
    }
}

/* ==============================================================================
   BOTÓN FLOTANTE DE WHATSAPP CON MENSAJES DE SUGERENCIA OCASIONALES
   ============================================================================== */
.floating-whatsapp-wrap {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 990;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.whatsapp-bubble {
    background: #FFFFFF;
    color: var(--dark-black);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.25), 0 8px 10px -6px rgba(0,0,0,0.15);
    border: 1.5px solid var(--primary-yellow);
    max-width: 275px;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 12px;
    position: relative;
    opacity: 0;
    transform: translateY(10px) scale(0.95);
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.whatsapp-bubble.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.whatsapp-bubble::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 24px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #FFFFFF;
}

.whatsapp-bubble-close {
    position: absolute;
    top: 4px;
    right: 6px;
    background: none;
    border: none;
    color: #9CA3AF;
    font-size: 1rem;
    cursor: pointer;
    padding: 2px 4px;
    line-height: 1;
}

.whatsapp-bubble-close:hover {
    color: var(--dark-black);
}

.floating-whatsapp-btn {
    width: 58px;
    height: 58px;
    border-radius: var(--radius-full);
    background: #25D366;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.5);
    text-decoration: none;
    cursor: pointer;
    position: relative;
    transition: transform 0.25s, box-shadow 0.25s;
    border: 2.5px solid #FFFFFF;
}

.floating-whatsapp-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.65);
}

.whatsapp-pulse-ring {
    position: absolute;
    inset: -6px;
    border-radius: var(--radius-full);
    border: 2px solid #25D366;
    animation: waPulse 2.2s infinite ease-out;
    pointer-events: none;
}

@keyframes waPulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 0; }
    100% { transform: scale(1.2); opacity: 0; }
}

/* ==============================================================================
   CARRUSEL DE PRODUCTOS MÁS VENDIDOS (GIRA LENTAMENTE DE FORMA AUTOMÁTICA)
   ============================================================================== */
.bestsellers-section {
    max-width: var(--container-max);
    margin: 0 auto 2.75rem;
    padding: 0 1rem;
}

.bestsellers-carousel-outer {
    position: relative;
    overflow: hidden;
    padding: 6px 0;
}

.bestsellers-track {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 8px 2px;
}

.bestsellers-track::-webkit-scrollbar {
    display: none;
}

.bestsellers-track .product-card {
    flex: 0 0 265px;
    max-width: 265px;
}

.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--dark-black);
    color: var(--primary-yellow);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    border: 2px solid var(--primary-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: var(--shadow-md);
    transition: all 0.2s;
}

.carousel-nav-btn:hover {
    background: var(--primary-yellow);
    color: var(--dark-black);
}

.carousel-nav-btn.prev { left: 4px; }
.carousel-nav-btn.next { right: 4px; }

/* MULTI-IMAGEN EN TARJETAS (HASTA 5 FOTOS CON ROTACIÓN AUTOMÁTICA O HOVER) */
.product-image-wrap {
    position: relative;
}

.product-image-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 10px;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.product-image-slide.active {
    opacity: 1;
}

.product-img-dots-bar {
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
    z-index: 5;
    background: rgba(17, 24, 39, 0.45);
    backdrop-filter: blur(2px);
    padding: 3px 7px;
    border-radius: var(--radius-full);
}

.prod-dot {
    width: 6px;
    height: 6px;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.5);
    transition: all 0.25s;
}

.prod-dot.active {
    background: var(--primary-yellow);
    width: 14px;
}

/* MARCO EXTERIOR DE LA TIENDA Y UBICACIÓN CIUDAD INDANA */
.exterior-store-box {
    margin-top: 14px;
    background: var(--dark-surface);
    border: 1.5px dashed var(--primary-yellow);
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
}

.exterior-img-wrap {
    width: 100%;
    height: 150px;
    background: #111827;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #9CA3AF;
    position: relative;
}

.exterior-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.exterior-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: var(--primary-yellow);
    color: var(--dark-black);
    font-size: 0.72rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
}

.btn-maps-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-yellow);
    color: var(--dark-black);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 800;
    text-decoration: none;
    margin-top: 10px;
    transition: background 0.2s, transform 0.1s;
}

.btn-maps-link:hover {
    background: var(--primary-yellow-hover);
    transform: translateY(-2px);
}

.sn-tech-credit {
    font-size: 0.8rem;
    color: #9CA3AF;
    margin-top: 6px;
}

.sn-tech-credit strong {
    color: var(--primary-yellow);
}

/* ==============================================================================
   MODAL DE DETALLE DE PRODUCTO (CARACTERÍSTICAS, COLORES Y ESCALA DE PRECIOS)
   ============================================================================== */
.product-detail-modal {
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 860px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 24px;
    animation: modalScale 0.2s ease-out;
}

@keyframes modalScale {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.btn-close-modal {
    position: absolute;
    top: 14px;
    right: 14px;
    background: #F3F4F6;
    border: none;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--dark-black);
    transition: all 0.2s;
    z-index: 10;
}

.btn-close-modal:hover {
    background: var(--dark-black);
    color: var(--primary-yellow);
}

.pdm-grid {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 24px;
}

.pdm-media {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pdm-main-img-wrap {
    width: 100%;
    height: 320px;
    background: #F9FAFB;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pdm-main-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.2s ease;
}

.pdm-stock-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
}

.pdm-stock-badge.in-stock {
    background: #D1FAE5;
    color: #065F46;
}

.pdm-stock-badge.out-stock {
    background: #FEE2E2;
    color: #DC2626;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.25);
}

.pdm-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 6px 2px;
}

.pdm-thumb {
    width: 60px;
    height: 60px;
    min-width: 60px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--border-color);
    background: #FFFFFF;
    padding: 3px;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-sizing: border-box;
}

.pdm-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

.pdm-thumb.active {
    border-color: var(--primary-yellow);
    box-shadow: 0 0 0 1.5px var(--dark-black);
}

.pdm-thumb:hover {
    border-color: var(--dark-black);
}

.pdm-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pdm-code-cat {
    display: flex;
    gap: 8px;
    align-items: center;
}

.pdm-code {
    font-family: monospace;
    font-size: 0.78rem;
    font-weight: 800;
    background: #FEF3C7;
    color: #92400E;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid #FCD34D;
}

.pdm-cat {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 600;
}

.pdm-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--dark-black);
    line-height: 1.25;
}

/* ESCALA DE PRECIOS POR VOLUMEN */
.pdm-pricing-box {
    background: #FAFAFA;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 14px;
}

.pdm-pricing-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}

.pdm-main-price {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--dark-black);
}

.pdm-tier-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 8px;
    margin-top: 8px;
}

.pdm-tier-card {
    background: #FFFFFF;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 8px;
    text-align: center;
    transition: all 0.15s ease;
}

.pdm-tier-card.active {
    border-color: #D97706;
    background: var(--primary-yellow-light);
}

.pdm-tier-qty {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
}

.pdm-tier-price {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--dark-black);
    margin: 2px 0;
}

.pdm-tier-save {
    font-size: 0.68rem;
    font-weight: 700;
    color: #059669;
}

/* VARIANTES DE COLOR */
.pdm-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--dark-black);
    margin-bottom: 6px;
}

.pdm-colors-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.pdm-color-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 20px;
    border: 1.5px solid var(--border-color);
    background: #FFFFFF;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 700;
    transition: all 0.15s ease;
}

.pdm-color-chip:hover {
    border-color: var(--dark-black);
}

.pdm-color-chip.active {
    border-color: var(--dark-black);
    background: var(--dark-black);
    color: var(--pure-white);
}

.pdm-color-chip.out-of-stock {
    opacity: 0.65;
    border-style: dashed;
    border-color: #D1D5DB;
    background: #F9FAFB;
}

.pdm-color-chip.out-of-stock.active {
    background: #374151;
    border-color: #1F2937;
    color: var(--pure-white);
}

.pdm-color-circle {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.2);
    display: inline-block;
}

/* CARACTERÍSTICAS */
.pdm-features-block {
    margin-top: 4px;
}

.pdm-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pdm-features-list li {
    font-size: 0.825rem;
    color: #4B5563;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pdm-features-list li::before {
    content: "✓";
    font-weight: 900;
    color: #D97706;
}

.pdm-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.pdm-actions-row {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 8px;
}

.pdm-qty-wrap {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #FFFFFF;
}

.pdm-qty-btn {
    width: 36px;
    height: 38px;
    background: #F9FAFB;
    border: none;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pdm-qty-btn:hover {
    background: var(--primary-yellow);
}

.pdm-qty-wrap input {
    width: 44px;
    height: 38px;
    border: none;
    text-align: center;
    font-weight: 800;
    font-size: 0.95rem;
    outline: none;
}

.pdm-add-btn {
    flex: 1;
    height: 38px;
    background: var(--dark-black);
    color: var(--primary-yellow);
    border: 2px solid var(--primary-yellow);
    border-radius: var(--radius-sm);
    font-weight: 800;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.pdm-add-btn:hover {
    background: #000000;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.pdm-add-btn:disabled {
    background: #E5E7EB;
    color: #9CA3AF;
    border-color: #D1D5DB;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.pdm-guarantee-note {
    font-size: 0.725rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}

@media (max-width: 768px) {
    .pdm-grid {
        grid-template-columns: 1fr;
    }
    .pdm-main-img-wrap {
        height: 240px;
    }

    /* PROPORCIÓN DEL BANNER EN TELÉFONOS: 1 DE ALTO POR 3 DE LARGO (3/1) */
    .hero-slider-wrap {
        aspect-ratio: 3 / 1 !important;
        height: auto !important;
        min-height: unset !important;
    }
    .hero-slides-container {
        height: 100% !important;
        min-height: unset !important;
    }
    .hero-slide {
        min-height: unset !important;
        padding: 0.6rem 0.9rem !important;
    }
    .hero-content {
        max-width: 86% !important;
    }
    .hero-tag {
        display: none !important;
    }
    .hero-title {
        font-size: 0.95rem !important;
        line-height: 1.15 !important;
        margin-bottom: 2px !important;
    }
    .hero-desc {
        font-size: 0.68rem !important;
        line-height: 1.2 !important;
        margin-bottom: 5px !important;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .hero-btn {
        padding: 3px 9px !important;
        font-size: 0.68rem !important;
    }
    /* Eliminar flechas en teléfonos para que no tapen letras */
    .slider-arrow-btn {
        display: none !important;
    }
    .slider-dots-container {
        bottom: 3px !important;
        gap: 5px !important;
    }
    .slider-dot {
        width: 7px !important;
        height: 7px !important;
    }
    .slider-dot.active {
        width: 18px !important;
    }

    /* CABECERA OPTIMIZADA EN MÓVILES */
    .header-container {
        flex-wrap: wrap;
        padding: 8px 10px;
        gap: 8px;
    }
    .logo-image-placeholder {
        width: 62px;
        height: 62px;
        min-width: 62px;
    }
    .brand-title {
        font-size: 1.2rem;
    }
    .brand-subtitle {
        font-size: 0.65rem;
    }
    .header-actions > a {
        display: none !important;
    }
    .header-search {
        order: 3;
        width: 100%;
        max-width: 100%;
    }
    .main-header.scrolled-compact .header-container {
        flex-wrap: nowrap;
        padding: 6px 10px;
        gap: 8px;
    }
    .main-header.scrolled-compact .header-search {
        order: unset;
    }
}

/* ETIQUETA DE CÓDIGO XXX-000 EN TARJETA DE PRODUCTO */
.product-code-tag {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 800;
    color: var(--dark-black);
    background: #F3F4F6;
    border: 1px solid var(--border-color);
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    margin-right: 6px;
}

.product-cat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

/* PUNTOS DE COLOR EN TARJETA DE CATÁLOGO */
.card-color-swatches {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
    margin-bottom: 4px;
}

.card-color-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.25);
    display: inline-block;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

.card-color-more {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-muted);
}

/* BADGE DE ESCALA DE PRECIO DISCRETO (A MAYOR CANTIDAD, MEJOR PRECIO) */
.subtle-tier-hint {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    color: #4B5563;
    background: #F3F4F6;
    border: 1px solid #E5E7EB;
    padding: 2px 7px;
    border-radius: 4px;
    margin-top: 5px;
}

.tier-scale-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    color: #4B5563;
    background: #F3F4F6;
    border: 1px solid #E5E7EB;
    padding: 2px 7px;
    border-radius: var(--radius-sm);
    margin-top: 4px;
}

.tier-scale-badge strong {
    color: #78350F;
    font-weight: 800;
}

.product-card {
    cursor: pointer;
}

.product-card .btn-add-cart {
    cursor: pointer;
}

/* OPTIMIZACIÓN RESPONSIVA PARA SMARTPHONES (320px - 640px) */
@media (max-width: 640px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .product-card {
        padding: 8px !important;
        border-radius: 8px !important;
    }

    .product-image-wrap {
        height: 140px !important;
    }

    .product-name {
        font-size: 0.82rem !important;
        line-height: 1.25 !important;
        margin: 4px 0 !important;
        height: 34px !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    .product-pricing {
        margin: 4px 0 !important;
    }

    .retail-price-row .price-value {
        font-size: 1.1rem !important;
    }

    .btn-add-cart {
        padding: 6px 8px !important;
        font-size: 0.75rem !important;
        border-radius: 6px !important;
    }

    .btn-add-cart span {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .cart-drawer {
        width: 100vw !important;
        max-width: 100vw !important;
    }

    .pdm-card {
        width: 95vw !important;
        max-height: 92vh !important;
        margin: 10px auto !important;
        padding: 0 !important;
    }

    .pdm-main-img-wrap {
        height: 200px !important;
    }

    .top-bar-notice {
        font-size: 0.7rem !important;
    }

    .hero-slider-wrap {
        aspect-ratio: 3 / 1 !important;
        height: auto !important;
        min-height: unset !important;
    }
}

@media (max-width: 380px) {
    .products-grid {
        grid-template-columns: 1fr !important;
    }
}
