/* =====================================================================
   WAPPURA - Storefront CSS
   Arquitectura Mobile-First Estricta para WhatsApp e In-App Browsers
   100% Vectorial (SVG), Touch-Optimized, Safe-Area Supported
   ===================================================================== */

:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --primary-dark: color-mix(in srgb, var(--primary, #4f46e5) 80%, #000000 20%);
    --accent: #6366f1;
    --bg-base: #f9fafb;
    --surface: #ffffff;
    --surface-hover: #f4f4f5;
    --border: #e4e4e7;
    --border-subtle: #f4f4f5;
    --text-main: #09090b;
    --text-muted: #71717a;
    --text-subtle: #a1a1aa;
    --danger: #ef4444;
    --success: #10b981;
    --ring: rgba(9, 9, 11, 0.12);
    --radius-xs: 4px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --radius-full: 9999px;
    --shadow-2xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-xs: 0 1px 3px 0 rgba(0, 0, 0, 0.08), 0 1px 2px -1px rgba(0, 0, 0, 0.08);
    --shadow-sm: 0 2px 4px -1px rgba(0, 0, 0, 0.06), 0 1px 2px -1px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --font: 'Geist', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

@keyframes shadcnPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden !important;
    max-width: 100% !important;
    width: 100% !important;
}

body {
    font-family: var(--font);
    background-color: var(--bg-base);
    color: var(--text-main);
    line-height: 1.5;
    padding-bottom: 0 !important;
    overflow-x: hidden !important;
    max-width: 100% !important;
    width: 100% !important;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    position: relative;
}

button,
input,
select,
textarea {
    font-family: inherit;
    font-size: 15px;
}

input,
select,
textarea {
    font-size: 16px !important;
}

button,
a,
.btn,
.card-btn-add,
.toggle-option,
.cat-btn,
.bottom-bar-item {
    touch-action: manipulation;
}

.container {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 12px;
}

@media (min-width: 480px) {
    .container {
        padding: 0 16px;
    }
}

@media (min-width: 640px) {
    .container {
        padding: 0 24px;
    }
}

/* =====================================================================
   HEADER & BRANDING
   ===================================================================== */
.store-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: relative;
    padding-bottom: 20px;
}

.store-header {
    position: relative;
    padding-bottom: 6px;
}

.store-banner {
    width: 100%;
    height: 120px;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, var(--primary) 100%);
    background-size: cover;
    background-position: center;
    position: relative;
}

@media (min-width: 640px) {
    .store-banner {
        height: 150px;
    }
}

.banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.4) 60%, rgba(249, 250, 251, 0.95) 100%);
}

.store-meta {
    margin-top: -50px;
    position: relative;
    z-index: 5;
    padding: 0 12px;
}

@media (min-width: 640px) {
    .store-meta {
        margin-top: -60px;
    }
}

.store-profile-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    padding: 14px 16px;
    box-shadow: 0 10px 30px -4px rgba(0, 0, 0, 0.08), 0 3px 10px rgba(0, 0, 0, 0.03);
    max-width: 640px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left;
}

@media (min-width: 640px) {
    .store-profile-card {
        padding: 18px 24px;
        gap: 20px;
        max-width: 680px;
    }
}

.store-avatar {
    width: 68px;
    height: 68px;
    margin-top: 0;
    border-radius: 16px;
    background: var(--surface);
    border: 2px solid #f4f4f5;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

@media (min-width: 640px) {
    .store-avatar {
        width: 78px;
        height: 78px;
        border-radius: 18px;
    }
}

.store-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.avatar-monogram {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--text-main) 0%, #27272a 100%);
    color: #ffffff;
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
    user-select: none;
}

.store-info-block {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

.store-title {
    font-size: 18px;
    font-weight: 800;
    color: #09090b;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin: 0;
}

@media (min-width: 640px) {
    .store-title {
        font-size: 22px;
    }
}

.store-tagline {
    font-size: 13px;
    color: var(--text-muted);
    max-width: 480px;
    margin-top: 2px;
    line-height: 1.4;
}

.store-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
    width: 100%;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    background: var(--surface);
    color: var(--text-muted);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-2xs);
    transition: var(--transition);
}

.badge-open {
    background: #ecfdf5;
    color: #065f46;
    border-color: #a7f3d0;
    font-weight: 600;
}

.dot-pulse {
    width: 7px;
    height: 7px;
    background: #10b981;
    border-radius: 50%;
    display: inline-block;
    animation: shadcnPulse 2s infinite;
}

/* =====================================================================
   SEARCH BAR (SHADCN COMMAND PALETTE STYLE)
   ===================================================================== */
.search-wrapper {
    margin: 16px auto 0;
    position: relative;
    width: 100%;
    max-width: 580px;
}

.search-input {
    width: 100%;
    height: 44px;
    padding: 0 16px 0 42px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--surface);
    font-family: var(--font);
    font-size: 16px !important;
    color: var(--text-main);
    box-shadow: var(--shadow-2xs);
    outline: none;
    transition: var(--transition);
}

.search-input::placeholder {
    color: var(--text-subtle);
    font-size: 13.5px;
}

.search-input:focus {
    border-color: var(--text-main);
    box-shadow: 0 0 0 2px var(--ring);
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-subtle);
    display: inline-flex;
    pointer-events: none;
}

/* =====================================================================
   CATEGORIES BAR (SEGMENTED CONTROL STYLE)
   ===================================================================== */
.categories-bar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 12px 0 8px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    touch-action: pan-x;
}

.categories-bar::-webkit-scrollbar {
    display: none;
}

.cat-btn {
    white-space: nowrap;
    min-height: 38px;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 500;
    background: transparent;
    color: var(--text-muted);
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    touch-action: pan-x;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.cat-btn:hover {
    background: var(--surface);
    border-color: var(--border);
    color: var(--text-main);
}

.cat-btn:active {
    transform: scale(0.96);
}

.cat-btn.active {
    background: var(--text-main);
    color: #ffffff;
    border-color: var(--text-main);
    font-weight: 600;
    box-shadow: var(--shadow-xs);
}

/* =====================================================================
   PRODUCTS GRID & CARDS
   ===================================================================== */
.products-section {
    padding: 16px 0;
    padding-bottom: 95px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
    padding: 0 2px;
}

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

.section-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-main, #18181b);
    letter-spacing: -0.01em;
}

.section-count-badge {
    display: inline-flex;
    align-items: center;
    padding: 1px 6px;
    border-radius: var(--radius-full);
    background: #f4f4f5;
    color: var(--text-muted, #71717a);
    font-size: 11px;
    font-weight: 600;
    border: 1px solid var(--border);
}

.catalog-sort-box {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.catalog-sort-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11.5px;
    font-weight: 500;
    color: var(--text-muted, #71717a);
    cursor: pointer;
    user-select: none;
}

.catalog-sort-select-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.catalog-sort-select {
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
    background: var(--surface, #ffffff);
    border: 1px solid var(--border, #e4e4e7);
    border-radius: var(--radius-full, 9999px);
    padding: 3px 24px 3px 10px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-main, #18181b);
    line-height: 1.4;
    height: 29px;
    box-shadow: var(--shadow-2xs);
    cursor: pointer;
    transition: var(--transition);
    outline: none;
}

.catalog-sort-select:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.catalog-sort-select:focus {
    border-color: var(--primary, #0f172a);
    box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.08);
}

.catalog-sort-chevron {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--text-subtle, #a1a1aa);
    display: flex;
    align-items: center;
}

/* =====================================================================
   SHADCN UI CUSTOM SELECT / DROPDOWN FOR STOREFRONT
   ===================================================================== */
select.shadcn-select-native {
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    clip: rect(0, 0, 0, 0) !important;
}

.catalog-sort-select-wrapper:has(.shadcn-select-wrapper) .catalog-sort-chevron,
.catalog-sort-select-wrapper .shadcn-select-wrapper~.catalog-sort-chevron {
    display: none !important;
}

.shadcn-select-wrapper {
    position: relative;
    display: inline-block;
    vertical-align: middle;
}

.shadcn-select-wrapper.is-disabled {
    opacity: 0.5;
    pointer-events: none;
}

.shadcn-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
    height: 38px;
    padding: 0 12px;
    border-radius: var(--radius-md, 10px);
    border: 1px solid var(--border, #e4e4e7);
    background-color: var(--surface, #ffffff);
    color: var(--text-main, #18181b);
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    outline: none;
    user-select: none;
    box-shadow: var(--shadow-2xs, 0 1px 2px 0 rgba(0, 0, 0, 0.05));
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.shadcn-select-trigger:hover {
    background-color: var(--surface-hover, #f4f4f5);
    border-color: #cbd5e1;
}

.shadcn-select-trigger:focus-visible,
.shadcn-select-wrapper.is-open .shadcn-select-trigger {
    border-color: var(--primary, #0f172a);
    box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.1);
}

.shadcn-select-value {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shadcn-select-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted, #71717a);
    flex-shrink: 0;
}

.shadcn-select-chevron {
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.shadcn-select-wrapper.is-open .shadcn-select-chevron {
    transform: rotate(180deg);
}

.shadcn-select-dropdown {
    position: absolute;
    left: 0;
    min-width: 13.5rem;
    z-index: 1050;
    margin-top: 5px;
    margin-bottom: 5px;
    background-color: var(--surface, #ffffff);
    color: var(--text-main, #18181b);
    border: 1px solid var(--border, #e4e4e7);
    border-radius: var(--radius-lg, 12px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.14), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
    padding: 0.3rem;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.96) translateY(-4px);
    pointer-events: none;
    transition: opacity 0.14s cubic-bezier(0.16, 1, 0.3, 1), transform 0.14s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.14s;
    box-sizing: border-box;
}

.shadcn-select-dropdown[data-side="top"] {
    bottom: calc(100% + 5px);
    margin-top: 0;
    transform: scale(0.96) translateY(4px);
}

.shadcn-select-wrapper.is-open .shadcn-select-dropdown {
    opacity: 1;
    visibility: visible;
    transform: scale(1) translateY(0);
    pointer-events: auto;
}

.shadcn-select-list {
    max-height: 16rem;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border, #e4e4e7) transparent;
}

.shadcn-select-list::-webkit-scrollbar {
    width: 5px;
}

.shadcn-select-list::-webkit-scrollbar-thumb {
    background-color: var(--border, #e4e4e7);
    border-radius: 4px;
}

.shadcn-select-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.45rem 0.65rem;
    border-radius: var(--radius-sm, 6px);
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text-main, #18181b);
    cursor: pointer;
    user-select: none;
    outline: none;
    transition: background-color 0.1s ease, color 0.1s ease;
}

.shadcn-select-item.is-focused,
.shadcn-select-item:hover {
    background-color: var(--surface-hover, #f4f4f5);
    color: var(--text-main, #09090b);
}

.shadcn-select-item[aria-selected="true"] {
    font-weight: 600;
    color: var(--text-main, #09090b);
}

.shadcn-select-item.is-disabled {
    opacity: 0.4;
    pointer-events: none;
}

.shadcn-select-item-label {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shadcn-select-item-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary, #09090b);
    opacity: 0;
    transition: opacity 0.1s ease;
    flex-shrink: 0;
}

.shadcn-select-item[aria-selected="true"] .shadcn-select-item-check {
    opacity: 1;
}

/* Variante específica compacta para Catálogo Sort (Píldora) */
.shadcn-select-sort .shadcn-select-trigger {
    height: 29px;
    border-radius: var(--radius-full, 9999px);
    padding: 3px 10px 3px 12px;
    font-size: 11.5px;
    font-weight: 600;
    background: var(--surface, #ffffff);
    border: 1px solid var(--border, #e4e4e7);
    gap: 6px;
    box-shadow: var(--shadow-2xs);
}

.shadcn-select-sort .shadcn-select-dropdown {
    min-width: 14rem;
    max-width: calc(100vw - 32px);
    right: 0;
    left: auto;
    border-radius: 12px;
}

.badge-whatsapp-link {
    transition: var(--transition);
}

.badge-whatsapp-link:hover {
    background: #ecfdf5 !important;
    border-color: #a7f3d0 !important;
    color: #065f46 !important;
}

@media (max-width: 540px) {
    .section-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .catalog-sort-label span {
        display: none;
    }

    .catalog-sort-select {
        padding: 3px 22px 3px 9px;
        font-size: 11px;
        height: 27px;
    }

    .catalog-sort-chevron {
        right: 7px;
    }
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (min-width: 640px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
}

@media (min-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 22px;
    }
}

.product-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    box-shadow: var(--shadow-2xs);
}

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

.product-card:active {
    transform: scale(0.99);
}

.card-img-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f4f4f5;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border-subtle);
}

.card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.card-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(9, 9, 11, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.card-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-cat {
    font-size: 10.5px;
    font-weight: 600;
    color: var(--text-subtle);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.card-title {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.35;
    letter-spacing: -0.01em;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7em;
}

.card-prices {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-top: auto;
    padding-bottom: 10px;
    flex-wrap: wrap;
}

.price-current {
    font-size: 15.5px;
    font-weight: 700;
    color: var(--text-main);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

.price-compare {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-subtle);
    text-decoration: line-through;
    font-variant-numeric: tabular-nums;
}

.card-btn-add {
    width: 100%;
    min-height: 38px;
    padding: 7px 12px;
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text-main);
    border: 1px solid var(--border);
    font-family: var(--font);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: var(--shadow-2xs);
    transition: var(--transition);
}

.card-btn-add:hover {
    background: var(--text-main);
    color: #ffffff;
    border-color: var(--text-main);
    box-shadow: var(--shadow-sm);
}

.card-btn-add:active {
    transform: scale(0.98);
}

/* =====================================================================
   FLOATING CART BUTTON (SHADCN PILL)
   ===================================================================== */
.floating-cart-btn {
    position: fixed;
    bottom: calc(16px + var(--safe-bottom));
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 420px;
    height: 50px;
    background: rgba(9, 9, 11, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #ffffff;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    box-shadow: 0 12px 30px -4px rgba(0, 0, 0, 0.35);
    z-index: 90;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: var(--transition);
}

.floating-cart-btn:hover {
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 16px 36px -4px rgba(0, 0, 0, 0.45);
}

.floating-cart-btn:active {
    transform: translateX(-50%) scale(0.98);
}

.cart-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-badge-count {
    background: var(--primary);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: var(--radius-full);
}

.cart-right-total {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    font-variant-numeric: tabular-nums;
}

/* =====================================================================
   STOREFRONT BOTTOM NAVIGATION BAR (MOBILE DOCK)
   ===================================================================== */
.store-bottom-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(62px + var(--safe-bottom));
    padding-bottom: var(--safe-bottom);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border);
    z-index: 85;
    box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.06);
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
}

@media (max-width: 768px) {
    .store-bottom-bar {
        display: grid;
    }

    .floating-cart-btn {
        bottom: calc(72px + var(--safe-bottom));
        width: min(440px, calc(100% - 24px));
        animation: floatInUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }

    body {
        padding-bottom: 0 !important;
    }

    body.has-cart-items {
        padding-bottom: 0 !important;
    }
}

@keyframes floatInUp {
    from {
        transform: translateX(-50%) translateY(16px);
        opacity: 0;
    }

    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

.bottom-bar-item {
    background: transparent;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 100%;
    color: var(--text-muted);
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.15s ease;
    text-decoration: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    padding: 6px 0;
}

.bottom-bar-item:active {
    transform: scale(0.90);
}

.bottom-bar-item.active,
.bottom-bar-item:hover {
    color: var(--primary);
}

.bottom-bar-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.bottom-bar-label {
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
}

.bottom-bar-cart-icon-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.bottom-bar-badge {
    position: absolute;
    top: -6px;
    right: -10px;
    background: var(--primary);
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    min-width: 17px;
    height: 17px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 1.5px solid #ffffff;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Animaciones y Micro-interacciones (Spring & Haptic Feedback) */
@keyframes badgePop {
    0% {
        transform: scale(1);
    }

    35% {
        transform: scale(1.48);
    }

    70% {
        transform: scale(0.92);
    }

    100% {
        transform: scale(1);
    }
}

.badge-pop {
    animation: badgePop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.card-btn-add {
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease !important;
}

.card-btn-add:active {
    transform: scale(0.92) !important;
}

.card-btn-add.btn-added-feedback {
    background: #10b981 !important;
    border-color: #10b981 !important;
    color: #ffffff !important;
    transform: scale(1.03) !important;
}


/* =====================================================================
   CART SLIDE-OVER DRAWER (SHADCN SHEET)
   ===================================================================== */
.cart-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(9, 9, 11, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.cart-backdrop.open {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 440px;
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    background: var(--surface);
    z-index: 10001;
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    overscroll-behavior: contain;
}

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

.drawer-header {
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.drawer-title {
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.01em;
}

.btn-close-drawer {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.btn-close-drawer:hover {
    background: var(--surface-hover);
    color: var(--text-main);
}

.drawer-body {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 20px;
    -webkit-overflow-scrolling: touch;
}

.empty-cart-state {
    text-align: center;
    padding: 60px 16px;
    color: var(--text-muted);
}

/* Cart Items */
.cart-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-subtle);
}

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

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

.cart-item-title {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.35;
}

.cart-item-variant {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--surface-hover);
    padding: 2px 8px;
    border-radius: 4px;
    margin-top: 4px;
    border: 1px solid var(--border);
}

.cart-item-price {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-main);
    font-variant-numeric: tabular-nums;
    margin-top: 4px;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.qty-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    box-shadow: var(--shadow-2xs);
    transition: var(--transition);
    touch-action: manipulation;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.qty-btn:hover {
    background: var(--surface-hover);
    border-color: #d4d4d8;
}

.qty-btn:active {
    transform: scale(0.92);
}

.qty-count {
    font-size: 15px;
    font-weight: 700;
    min-width: 28px;
    text-align: center;
    font-variant-numeric: tabular-nums;
    color: var(--text-main);
}

/* Delivery Type Toggle (Shadcn Segmented Control) */
.delivery-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    margin: 14px 0;
    background: #f4f4f5;
    padding: 4px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.toggle-option {
    padding: 8px 10px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
}

.toggle-option.active {
    background: #ffffff;
    color: var(--text-main);
    box-shadow: var(--shadow-xs);
}

/* Form Inputs */
.checkout-group {
    margin-bottom: 14px;
}

.checkout-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 5px;
}

.checkout-input {
    width: 100%;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    font-family: var(--font);
    font-size: 16px !important;
    background: var(--surface);
    color: var(--text-main);
    box-shadow: var(--shadow-2xs);
    outline: none;
    transition: var(--transition);
}

.checkout-input:focus {
    border-color: var(--text-main);
    box-shadow: 0 0 0 2px var(--ring);
}

/* Drawer Footer */
.drawer-footer {
    padding: 18px 20px;
    padding-bottom: calc(18px + var(--safe-bottom));
    border-top: 1px solid var(--border);
    background: var(--surface);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-variant-numeric: tabular-nums;
}

.summary-total {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-main);
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed var(--border);
}

.btn-whatsapp-order {
    width: 100%;
    margin-top: 14px;
    min-height: 50px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    background: #25D366;
    color: #ffffff;
    font-family: var(--font);
    font-size: 15px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
    transition: var(--transition);
}

.btn-whatsapp-order:hover {
    background: #20bd5a;
    box-shadow: 0 8px 22px rgba(37, 211, 102, 0.45);
    transform: translateY(-1px);
}

.btn-whatsapp-order:active {
    transform: scale(0.98);
}

/* =====================================================================
   VARIANT MODAL (SHADCN BOTTOM-SHEET / DIALOG)
   ===================================================================== */
.variant-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(9, 9, 11, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 120;
    opacity: 0;
    visibility: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

@media (min-width: 640px) {
    .variant-modal-backdrop {
        align-items: center;
        padding: 24px;
    }
}

.variant-modal-backdrop.open {
    opacity: 1;
    visibility: visible;
}

.variant-modal {
    background: var(--surface);
    width: 100%;
    max-width: 480px;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    padding: 20px 22px;
    padding-bottom: calc(22px + var(--safe-bottom));
    position: relative;
    max-height: 88vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border);
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 640px) {
    .variant-modal {
        border-radius: var(--radius-lg);
        padding-bottom: 22px;
        transform: translateY(20px) scale(0.96);
    }

    .variant-modal-backdrop.open .variant-modal {
        transform: translateY(0) scale(1);
    }
}

.variant-modal-backdrop.open .variant-modal {
    transform: translateY(0);
}

.variant-group-title {
    font-size: 13px;
    font-weight: 600;
    margin: 14px 0 8px;
    color: var(--text-main);
}

.variant-options-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.variant-chip {
    min-height: 44px;
    min-width: 44px;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-main);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow-2xs);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.variant-chip:hover {
    background: var(--surface-hover);
    border-color: #d4d4d8;
}

.variant-chip:active {
    transform: scale(0.97);
}

.variant-chip.selected {
    background: var(--text-main);
    color: #ffffff;
    border-color: var(--text-main);
    box-shadow: var(--shadow-xs);
}

.variant-chip-color {
    border-radius: var(--radius-full);
    gap: 7px;
    padding: 6px 14px;
}

.variant-chip-color .color-circle {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.15);
    display: inline-block;
    flex-shrink: 0;
}

.variant-chip-color.selected .color-circle {
    border-color: rgba(255, 255, 255, 0.5);
}

/* Modal Product Gallery & Thumbnails */
.modal-gallery-box {
    width: 100%;
    margin-bottom: 14px;
}

.modal-main-img-box {
    width: 100%;
    aspect-ratio: 1 / 1;
    max-height: 340px;
    margin: 0 auto;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #f4f4f5;
    border: 1px solid var(--border);
    position: relative;
}

.modal-main-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.2s ease;
}

.modal-thumbs-track {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 8px 2px 2px 2px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.modal-thumbs-track::-webkit-scrollbar {
    display: none;
}

.modal-thumb-item {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 2px solid transparent;
    padding: 0;
    background: #f4f4f5;
    cursor: pointer;
    flex-shrink: 0;
    transition: var(--transition);
}

.modal-thumb-item.active {
    border-color: var(--text-main);
    box-shadow: 0 0 0 1px var(--text-main);
}

.modal-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* =====================================================================
   FICHA DE DETALLE DE PRODUCTO INDIVIDUAL (STANDALONE SHADCN PRODUCT PAGE)
   ===================================================================== */
.detail-top-nav {
    background: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.detail-top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    gap: 12px;
}

.detail-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 13.5px;
    padding: 7px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: var(--shadow-2xs);
    transition: var(--transition);
}

.detail-back-link:hover {
    background: var(--surface-hover);
    border-color: #d4d4d8;
}

.detail-store-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

.detail-store-avatar {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: var(--border);
    border: 1px solid var(--border);
}

.detail-store-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.2;
}

.detail-store-tag {
    font-size: 11px;
    color: var(--text-muted);
}

.detail-cart-toggle {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-main);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-2xs);
    transition: var(--transition);
}

.detail-cart-toggle:hover {
    background: var(--surface-hover);
    border-color: #d4d4d8;
}

.detail-cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--primary);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--surface);
    font-variant-numeric: tabular-nums;
}

/* Breadcrumbs */
.storefront-breadcrumb {
    padding: 8px 0 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    flex-wrap: wrap;
    line-height: 1.4;
    width: 100%;
    max-width: 100%;
}

.storefront-breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
    flex-shrink: 0;
}

.storefront-breadcrumb a:hover {
    color: var(--text-main);
}

.storefront-breadcrumb span.sep {
    color: #cbd5e1;
    font-size: 11px;
    flex-shrink: 0;
    user-select: none;
}

.storefront-breadcrumb span.current {
    color: var(--text-main);
    font-weight: 600;
    max-width: none;
    word-break: break-word;
}

/* Layout Grid 2 Columns */
.product-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    margin-top: 10px;
    margin-bottom: 56px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

@media (min-width: 840px) {
    .product-detail-layout {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
        gap: 44px;
        align-items: start;
        margin-top: 14px;
    }
}

/* Galería del Detalle */
.detail-gallery-wrap {
    position: relative;
    min-width: 0;
    max-width: 100%;
    width: 100%;
}

@media (min-width: 840px) {
    .detail-gallery-wrap {
        position: sticky;
        top: 80px;
    }
}

.detail-main-photo-frame {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-lg);
    background: #f4f4f5;
    border: 1px solid var(--border);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-xs);
}

.detail-gallery-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scrollbar-width: none;
    width: 100%;
    height: 100%;
}

.detail-gallery-slider::-webkit-scrollbar {
    display: none;
}

.detail-slide-item {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.detail-slide-item img,
.detail-main-photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
    transition: opacity 0.25s ease, transform 0.4s ease;
}

.detail-photo-counter {
    position: absolute;
    bottom: 14px;
    right: 14px;
    background: rgba(9, 9, 11, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 12px;
    letter-spacing: 0.04em;
    z-index: 5;
    pointer-events: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.detail-slider-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 5;
    background: rgba(0, 0, 0, 0.4);
    padding: 4px 8px;
    border-radius: 14px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.detail-slider-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.detail-slider-dot.active {
    width: 18px;
    border-radius: 4px;
    background: #ffffff;
}

.detail-badge-pill {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(9, 9, 11, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    z-index: 5;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.detail-discount-tag {
    position: absolute;
    top: 14px;
    right: 14px;
    background: #ef4444;
    color: #fff;
    font-size: 11.5px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.25);
    z-index: 5;
}

.detail-thumbs-carousel {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin-top: 12px;
    padding: 2px 0 6px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    max-width: 100%;
}

.detail-thumbs-carousel::-webkit-scrollbar {
    display: none;
}

.detail-thumb-btn {
    width: 54px;
    height: 54px;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    padding: 0;
    background: #f4f4f5;
    cursor: pointer;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: var(--shadow-2xs);
    transition: var(--transition);
}

@media (min-width: 640px) {
    .detail-thumb-btn {
        width: 66px;
        height: 66px;
    }
}

.detail-thumb-btn.active {
    border-color: var(--text-main);
    box-shadow: 0 0 0 1px var(--text-main);
    transform: translateY(-1px);
}

.detail-thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.detail-info-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-xs);
    min-width: 0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 640px) {
    .detail-info-card {
        padding: 16px 14px;
        border-radius: var(--radius-md);
    }
}

@media (min-width: 840px) {
    .detail-info-card {
        position: sticky;
        top: 80px;
        align-self: start;
        padding: 30px;
    }
}

.detail-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
}

.detail-category-badge {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    background: var(--surface-hover);
    padding: 3px 9px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.detail-stock-indicator {
    font-size: 11.5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.detail-stock-indicator.in-stock {
    color: #059669;
}

.detail-stock-indicator.low-stock {
    color: #d97706;
}

.detail-stock-indicator.out-of-stock {
    color: #dc2626;
}

.detail-product-title {
    font-size: clamp(20px, 4.5vw, 28px);
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Precios (Limpio, sin fondos estridentes) */
.detail-price-box {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 0 0 18px 0;
    background: transparent;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}

.detail-price-current {
    font-size: clamp(26px, 4vw, 34px);
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
}

.detail-price-compare {
    font-size: 17px;
    font-weight: 500;
    color: var(--text-subtle);
    text-decoration: line-through;
    font-variant-numeric: tabular-nums;
}

.detail-savings-pill {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Selector de Variantes */
.detail-variant-section {
    margin-bottom: 22px;
}

.detail-variant-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 9px;
    display: flex;
    justify-content: space-between;
}

.detail-variant-label span.selected-val {
    color: var(--text-main);
    font-weight: 700;
}

.detail-variant-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Controles de Cantidad y Botones de Compra */
.detail-actions-block {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-qty-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 8px;
}

.detail-qty-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
}

.detail-qty-stepper {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    overflow: hidden;
    box-shadow: var(--shadow-2xs);
    height: 44px;
}

.detail-qty-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    background: transparent;
    border: none;
    font-size: 18px !important;
    font-weight: 700;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    touch-action: manipulation;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.detail-qty-btn:hover {
    background: var(--surface-hover);
}

.detail-qty-btn:active {
    background: rgba(0, 0, 0, 0.05);
    transform: scale(0.94);
}

.detail-qty-input {
    min-width: 52px;
    width: auto;
    height: 44px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    font-weight: 700;
    font-size: 16px !important;
    color: var(--text-main);
    background: transparent;
    font-variant-numeric: tabular-nums;
    padding: 0 4px;
    -moz-appearance: textfield;
}

.detail-qty-input::-webkit-outer-spin-button,
.detail-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Botones de Conversión */
.btn-whatsapp-direct {
    width: 100%;
    min-height: 52px;
    border-radius: var(--radius-md);
    background: #25D366;
    color: #ffffff;
    font-size: 15.5px;
    font-weight: 700;
    letter-spacing: -0.01em;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
    transition: var(--transition);
    text-decoration: none;
}

.btn-whatsapp-direct:hover {
    background: #20bd5a;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(37, 211, 102, 0.45);
}

.btn-add-cart-detail {
    width: 100%;
    min-height: 48px;
    border-radius: var(--radius-md);
    background: var(--surface);
    color: var(--text-main);
    border: 1px solid var(--border);
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: var(--shadow-2xs);
    transition: var(--transition);
}

.btn-add-cart-detail:hover {
    background: var(--surface-hover);
    border-color: #d4d4d8;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.detail-extra-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    margin-top: 6px;
}

.btn-share-product {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    padding: 7px 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: var(--shadow-2xs);
    transition: var(--transition);
}

.btn-share-product:hover {
    color: var(--text-main);
    background: var(--surface-hover);
    border-color: #d4d4d8;
}

/* Ficha Técnica y Descripción */
.detail-specs-card {
    margin-top: 24px;
    padding: 18px;
    background: #fbfbfb;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.detail-specs-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.detail-specs-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
}

.detail-spec-row {
    display: flex;
    justify-content: space-between;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-subtle);
}

.detail-spec-key {
    color: var(--text-muted);
    font-weight: 500;
}

.detail-spec-val {
    color: var(--text-main);
    font-weight: 600;
}

.detail-desc-box {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.detail-desc-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 10px;
}

.detail-desc-text {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.65;
    white-space: pre-line;
}

/* Sección de Productos Relacionados */
.related-section {
    margin-top: 56px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.related-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.02em;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* =====================================================================
   4.1 STICKY MOBILE HEADER & ERGONOMIC BOTTOM NAVIGATION BAR (D2C)
   ===================================================================== */

/* 1. Header Compacto Superior Móvil Flotante */
.sticky-mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    padding: 0 16px;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    transform: translateY(-100%);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.sticky-mobile-header.visible {
    transform: translateY(0);
}

.sticky-header-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}

.sticky-header-avatar {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #18181b;
    color: #fff;
    font-weight: 800;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--border);
}

.sticky-header-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sticky-header-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sticky-header-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.sticky-header-status {
    font-size: 11px;
    color: #10b981;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.sticky-header-status .dot-live {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    display: inline-block;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.sticky-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sticky-header-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--surface-hover);
    border: 1px solid var(--border);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.sticky-header-btn:active {
    transform: scale(0.92);
}

@media (max-width: 768px) {
    .sticky-mobile-header {
        display: flex;
    }
}

/* 2. Barra Inferior Móvil (Bottom Navigation Bar) Ergonómica */
.store-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(60px + var(--safe-bottom));
    padding-bottom: var(--safe-bottom);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 850;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

body.cart-open .store-bottom-bar {
    transform: translateY(105%);
    pointer-events: none;
}

@media (min-width: 769px) {
    .store-bottom-bar {
        display: none;
    }
}

.bottom-bar-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    padding: 6px 0;
    cursor: pointer;
    transition: color 0.15s ease;
    text-decoration: none;
    user-select: none;
}

.bottom-bar-item.active,
.bottom-bar-item:hover {
    color: var(--primary);
}

.bottom-bar-item:active {
    transform: scale(0.93);
}

.bottom-bar-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
}

.bottom-bar-cart-icon-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.bottom-bar-badge {
    position: absolute;
    top: -6px;
    right: -10px;
    background: var(--primary);
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Animación Spring Bounce para el Badge de Carrito */
@keyframes springBounce {
    0% {
        transform: scale(1);
    }

    30% {
        transform: scale(1.45);
    }

    55% {
        transform: scale(0.85);
    }

    75% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1);
    }
}

.spring-bounce {
    animation: springBounce 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Resaltar Carrito en la Barra de Navegación Fija cuando hay productos activos */
.bottom-bar-item.cart-active-highlight,
body.has-cart-items #btnBottomCart {
    color: var(--primary, #10b981);
}

.bottom-bar-item.cart-active-highlight .bottom-bar-icon,
body.has-cart-items #btnBottomCart .bottom-bar-icon {
    color: var(--primary, #10b981);
    transform: scale(1.12);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bottom-bar-item.cart-active-highlight .bottom-bar-label,
body.has-cart-items #btnBottomCart .bottom-bar-label {
    font-weight: 700;
    color: var(--primary, #10b981);
}

.bottom-bar-item.cart-active-highlight .bottom-bar-badge,
body.has-cart-items #btnBottomCart .bottom-bar-badge {
    background: var(--primary, #10b981);
    box-shadow: 0 0 0 2px #ffffff, 0 0 10px rgba(16, 185, 129, 0.5);
    animation: cartPulseGlow 2.4s infinite ease-in-out;
}

@keyframes cartPulseGlow {

    0%,
    100% {
        box-shadow: 0 0 0 2px #ffffff, 0 0 0 0 rgba(16, 185, 129, 0.5);
    }

    50% {
        box-shadow: 0 0 0 2px #ffffff, 0 0 0 5px rgba(16, 185, 129, 0);
    }
}

/* 3. Insignias Dinámicas Atractivas con Alto Contraste (WCAG AA/AAA) */
.badge-stack {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 3;
    pointer-events: none;
}

.card-badge-dynamic {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Descuento: Degradado Carmesí Intenso */
.badge-discount {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

/* Stock Crítico: Ámbar Alerta / Últimas Unidades */
.badge-stock-critical {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

/* Más Vendido / Destacado: Dark Glass con Borde Dorado */
.badge-featured {
    background: rgba(15, 23, 42, 0.9);
    color: #fef08a;
    border: 1px solid rgba(250, 204, 21, 0.4);
}

/* Agotado: Gris Oscuro con Alto Contraste */
.badge-sold-out {
    background: rgba(39, 39, 42, 0.92);
    color: #f4f4f5;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 4. Aspect Ratio Uniforme Zara / Instagram */
@media (min-width: 1024px) {
    .card-img-wrap {
        aspect-ratio: 4 / 5;
    }
}

/* =====================================================================
   UX/UI OPTIMIZACIONES MOBILE-FIRST WAPPURA (VENTA POR WHATSAPP)
   ===================================================================== */

/* 1. Header Móvil Ultracompacto y Amigable */
@media (max-width: 640px) {
    .store-banner {
        height: 95px;
    }

    .store-meta {
        margin-top: -38px;
    }

    .store-avatar {
        width: 72px;
        height: 72px;
        border-radius: var(--radius-lg);
        border-width: 3px;
        margin-bottom: 6px;
    }

    .store-title {
        font-size: 20px;
    }

    .store-tagline {
        font-size: 12px;
        margin-top: 2px;
        padding: 0 8px;
    }

    .store-badges {
        margin-top: 8px;
        gap: 5px;
    }

    .badge-pill {
        font-size: 11px;
        padding: 4px 10px;
        gap: 4px;
    }

    .search-wrapper {
        margin-top: 10px;
    }

    .search-input {
        height: 40px;
        font-size: 13px !important;
        padding-left: 36px;
    }

    .search-icon {
        left: 11px;
    }
}

/* 2. Píldora Mayorista Compacta y Dismissible (No invasiva) */
.wholesale-banner-container {
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.wholesale-compact-pill {
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
    border: 1px solid #a7f3d0;
    border-radius: 9999px;
    padding: 6px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    box-shadow: 0 1px 3px rgba(16, 185, 129, 0.08);
    transition: all 0.2s ease;
}

.wholesale-compact-left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: #065f46;
    min-width: 0;
}

.wholesale-pulse-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #10b981;
    color: #ffffff;
    flex-shrink: 0;
}

.wholesale-compact-title {
    font-weight: 700;
    color: #065f46;
}

.wholesale-compact-sep {
    color: #6ee7b7;
    font-weight: 700;
}

.wholesale-compact-desc {
    color: #047857;
    font-size: 12px;
    font-weight: 500;
}

.wholesale-compact-dismiss {
    background: transparent;
    border: none;
    color: #059669;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: 50%;
    transition: background 0.15s ease, color 0.15s ease;
    flex-shrink: 0;
}

.wholesale-compact-dismiss:hover {
    background: rgba(16, 185, 129, 0.18);
    color: #065f46;
}

@media (max-width: 640px) {
    .wholesale-compact-pill {
        border-radius: 12px;
        padding: 8px 10px;
        align-items: flex-start;
    }

    .wholesale-compact-left {
        flex-wrap: wrap;
        gap: 3px 6px;
        line-height: 1.3;
    }

    .wholesale-compact-sep {
        display: none;
    }

    .wholesale-compact-desc {
        width: 100%;
        font-size: 11px;
    }
}

/* 3. Carrusel de Categorías Visuales Adaptable */
.cat-scroll-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: transparent;
    border: none;
    color: var(--primary, #10b981);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 9999px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
    line-height: 1;
}

.cat-scroll-indicator:hover {
    color: #059669;
    background: rgba(16, 185, 129, 0.08);
}

.cat-scroll-indicator:active {
    transform: scale(0.94);
}

.cat-scroll-arrow-svg {
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: arrowSwipeHint 1.8s infinite ease-in-out;
}

@keyframes arrowSwipeHint {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(3px);
    }
}

.visual-categories-carousel {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.visual-categories-carousel::-webkit-scrollbar {
    display: none;
}

.visual-cat-card {
    text-decoration: none;
    flex: 0 0 84px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.visual-cat-card:hover {
    transform: translateY(-2px);
}

.visual-cat-card:active {
    transform: scale(0.96);
}

.visual-cat-thumb {
    width: 84px;
    height: 84px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 2px solid transparent;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.visual-cat-card.active .visual-cat-thumb {
    border-color: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25), 0 4px 12px rgba(16, 185, 129, 0.15);
}

.visual-cat-title {
    font-size: 11.5px;
    font-weight: 700;
    margin-top: 5px;
    line-height: 1.2;
    color: var(--text-main);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 84px;
}

.visual-cat-card.active .visual-cat-title {
    color: #10b981;
}

@media (max-width: 640px) {
    .visual-cat-card {
        flex: 0 0 72px;
    }

    .visual-cat-thumb {
        width: 72px;
        height: 72px;
        border-radius: 14px;
    }

    .visual-cat-title {
        font-size: 11px;
        max-width: 72px;
    }
}

/* 4. Sello / Badge Minimalista de Crecimiento Viral Wappura */
.store-wappura-badge-wrap {
    margin: 16px auto 4px;
    display: flex;
    justify-content: center;
}

.store-wappura-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    border-radius: 9999px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: 11.5px;
    font-weight: 500;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.store-wappura-badge:visited {
    color: #475569;
}

.store-wappura-badge:hover,
.store-wappura-badge:focus-visible,
.store-wappura-badge:active {
    border-color: color-mix(in srgb, var(--primary, #0f172a) 30%, #cbd5e1);
    color: #0f172a;
    background: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--primary-glow, rgba(0, 0, 0, 0.06));
}

.wappura-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #25D366;
    display: inline-block;
    box-shadow: 0 0 0 2px rgba(37, 211, 102, 0.2);
}

.wappura-badge-brand {
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.01em;
}

.wappura-badge-sep {
    color: #cbd5e1;
    font-size: 10px;
}

.wappura-badge-action {
    color: #64748b;
    font-weight: 600;
    transition: color 0.2s ease;
}

.store-wappura-badge svg {
    color: #64748b;
    transition: transform 0.2s ease, color 0.2s ease;
}

.store-wappura-badge:hover .wappura-badge-action,
.store-wappura-badge:focus-visible .wappura-badge-action,
.store-wappura-badge:active .wappura-badge-action {
    color: var(--primary, #0f172a);
}

.store-wappura-badge:hover svg,
.store-wappura-badge:focus-visible svg,
.store-wappura-badge:active svg {
    color: var(--primary, #0f172a);
    transform: translateX(2px);
}

/* 5. Botón de exploración para carrito vacío */
.btn-empty-explore {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 14px;
    padding: 10px 22px;
    border-radius: var(--radius-md);
    background: var(--text-main);
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.btn-empty-explore:hover {
    background: #27272a;
    transform: translateY(-1px);
}

/* =====================================================================
   PRODUCT DETAIL - MOBILE STICKY BOTTOM BUY BAR
   ===================================================================== */
.detail-mobile-sticky-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border);
    padding: 8px 12px calc(8px + var(--safe-bottom, 0px));
    z-index: 95;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

@media (max-width: 768px) {
    .detail-mobile-sticky-bar {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        padding: 8px 12px calc(8px + var(--safe-bottom, 0px)) !important;
    }

    body.is-product-detail {
        padding-bottom: calc(85px + var(--safe-bottom, 0px)) !important;
    }

    input,
    select,
    textarea,
    .checkout-input,
    .search-input {
        font-size: 16px !important;
    }
}

.sticky-bar-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sticky-bar-label {
    font-size: 10.5px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1;
}

.sticky-bar-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.25;
    margin-top: 2px;
    font-variant-numeric: tabular-nums;
}

.sticky-bar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.btn-sticky-cart {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--surface);
    border: 1.5px solid var(--border);
    color: var(--text-main);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-2xs);
    transition: var(--transition);
    touch-action: manipulation;
}

.btn-sticky-cart:active {
    transform: scale(0.92);
}

.btn-sticky-whatsapp {
    height: 44px;
    padding: 0 16px;
    border-radius: var(--radius-md);
    background: #25D366;
    color: #ffffff;
    border: none;
    font-size: 13.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
    transition: var(--transition);
    touch-action: manipulation;
    white-space: nowrap;
}

.btn-sticky-whatsapp:active {
    transform: scale(0.95);
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.25);
}

.btn-sticky-disabled {
    height: 44px;
    padding: 0 16px;
    border-radius: var(--radius-md);
    background: #71717a;
    color: #ffffff;
    border: none;
    font-size: 13px;
    font-weight: 600;
    cursor: not-allowed;
    opacity: 0.7;
}

/* =====================================================================
   BOTÓN FLOTANTE INFERIOR DERECHO DE WHATSAPP
   ===================================================================== */
.storefront-whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 24px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #25D366;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 18px rgba(37, 211, 102, 0.42), 0 2px 6px rgba(0, 0, 0, 0.12);
    z-index: 80;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
    text-decoration: none;
}

.storefront-whatsapp-float:hover {
    transform: scale(1.08) translateY(-3px);
    box-shadow: 0 8px 26px rgba(37, 211, 102, 0.52), 0 4px 10px rgba(0, 0, 0, 0.15);
    color: #ffffff;
}

.storefront-whatsapp-float:active {
    transform: scale(0.95);
}

.storefront-whatsapp-float svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

/* En móvil: NO sobreponerse al Bottom bar de navegación */
@media (max-width: 768px) {
    .storefront-whatsapp-float {
        bottom: calc(76px + var(--safe-bottom, 0px));
        right: 16px;
        width: 48px;
        height: 48px;
    }

    .storefront-whatsapp-float svg {
        width: 25px;
        height: 25px;
    }
}

/* Forzar escala armónica del select de ordenamiento para evitar 16px de inputs */
.catalog-sort-select {
    font-size: 11.5px !important;
    font-weight: 600 !important;
}

@media (max-width: 540px) {
    .catalog-sort-select {
        font-size: 11px !important;
    }
}







/* =====================================================================
   WAPPURA MODERN SHADCN UI COMPONENT ARCHITECTURE
   Mobile-First, Pure SVG Vectorial, Zero Simulator Artifacts
   ===================================================================== */

/* 1. CABECERA MAESTRA (STORE HEADER MASTER) */
.store-header-master {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border, #e2e8f0);
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 9999 !important;
    width: 100%;
}

.store-header-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 16px 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-sizing: border-box;
}

@media (min-width: 1024px) {
    .store-header-inner {
        padding: 14px 20px;
    }
}

.header-brand-container {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex-shrink: 0;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.header-brand-container:hover {
    opacity: 0.94;
    text-decoration: none;
    color: inherit;
}

.header-brand-container:hover .header-logo-badge {
    border-color: var(--primary, #10b981);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.header-brand-container:active .header-logo-badge {
    transform: translateY(0);
}

.header-brand-container:focus-visible {
    outline: 2px solid var(--primary, #10b981);
    outline-offset: 4px;
    border-radius: 12px;
}

.header-logo-badge {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid var(--border, #e2e8f0);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.header-logo-badge img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header-logo-badge .avatar-monogram {
    font-size: 16px;
    font-weight: 800;
    color: var(--primary, #0f172a);
}

.header-store-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.header-title-status-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-store-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-main, #0f172a);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.02em;
}

.badge-open-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 8px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 700;
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.25);
    white-space: nowrap;
}

.desktop-open-pill {
    display: inline-flex !important;
}

.mobile-open-pill {
    display: none !important;
}

@media (max-width: 639px) {
    .desktop-open-pill {
        display: none !important;
    }

    .mobile-open-pill {
        display: inline-flex !important;
    }
}

.dot-pulse-green {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
    animation: shadcnPulse 2s infinite ease-in-out;
}

.header-sub-badges {
    display: flex;
    align-items: center;
    gap: 6px;
}

.badge-location-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--text-muted, #64748b);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

/* Buscador en Header (Desktop) */
.header-search-desktop-wrap {
    flex: 1;
    max-width: 420px;
    position: relative;
    display: none;
    align-items: center;
}

@media (min-width: 1024px) {
    .header-search-desktop-wrap {
        display: flex !important;
    }
}

.header-search-desktop-wrap input {
    width: 100%;
    height: 40px;
    padding: 0 34px 0 38px;
    background: #f1f5f9;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 10px;
    font-size: 13.5px;
    color: var(--text-main, #0f172a);
    outline: none;
    transition: all 0.2s ease;
}

.header-search-desktop-wrap input:focus {
    background: #ffffff;
    border-color: var(--primary, #0f172a);
    box-shadow: 0 0 0 3px var(--primary-glow, rgba(15, 23, 42, 0.1));
}

.search-icon-svg {
    position: absolute;
    left: 12px;
    color: var(--text-muted, #94a3b8);
    pointer-events: none;
    display: flex;
    align-items: center;
}

.btn-clear-search {
    position: absolute;
    right: 8px;
    background: #e2e8f0;
    border: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #64748b;
    padding: 0;
}

/* Acciones en Header */
.header-action-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

@media (max-width: 639px) {
    .header-wa-phone {
        display: none !important;
    }

    .btn-header-wa {
        padding: 7px 9px !important;
        gap: 0 !important;
    }

    .header-action-group {
        gap: 6px !important;
    }

    .header-brand-container {
        max-width: calc(100% - 130px) !important;
    }

    .header-store-title {
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 140px !important;
    }
}

.btn-header-wa {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    background: #ecfdf5;
    color: #047857;
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 9px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-header-wa:hover {
    background: #d1fae5;
}

.btn-header-cart {
    display: none;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: #0f172a;
    color: #ffffff;
    border: none;
    border-radius: 9px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

@media (min-width: 1024px) {
    .btn-header-cart {
        display: inline-flex !important;
    }
}

.btn-header-cart:hover {
    background: #1e293b;
}

.header-cart-badge-pill {
    background: var(--primary, #10b981);
    color: #ffffff;
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 9999px;
}

.header-cart-total-span {
    color: #94a3b8;
    font-size: 12px;
}

.btn-header-icon-only {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: #f1f5f9;
    border: 1px solid var(--border, #e2e8f0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main, #0f172a);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-header-icon-only:hover {
    background: #e2e8f0;
}

@media (max-width: 1023px) {
    .header-wa-phone {
        display: none !important;
    }

    .btn-header-wa {
        width: 36px !important;
        height: 36px !important;
        padding: 0 !important;
        justify-content: center !important;
        gap: 0 !important;
        border-radius: 9px !important;
    }
}

/* 2. BUSCADOR MÓVIL INTEGRADO EN LA CABECERA */
.search-mobile-bar-wrap {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px 10px 16px !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: none !important;
    position: static !important;
    top: auto !important;
    z-index: 1 !important;
    box-sizing: border-box !important;
}

@media (min-width: 1024px) {
    .search-mobile-bar-wrap {
        display: none !important;
    }
}

.search-mobile-input-box {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.search-mobile-input-box input {
    width: 100%;
    height: 40px;
    padding: 0 34px 0 38px;
    background: #f8fafc;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 10px;
    font-size: 13.5px;
    color: var(--text-main, #0f172a);
    outline: none;
    transition: all 0.2s ease;
}

.search-mobile-input-box input:focus {
    background: #ffffff;
    border-color: var(--primary, #0f172a);
    box-shadow: 0 0 0 3px var(--primary-glow, rgba(15, 23, 42, 0.1));
}

/* =====================================================================
   ESTRUCTURA PRINCIPAL CENTRADA DEL CATÁLOGO (ALINEADA A 1200PX)
   ===================================================================== */
.store-body-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-top: calc(var(--store-header-h, 110px) + 1px) !important;
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: 32px;
    box-sizing: border-box;
    flex: 1 0 auto;
    overflow-x: hidden;
}

@media (min-width: 640px) {
    .store-body-content {
        padding-top: calc(var(--store-header-h, 110px) + 2px) !important;
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (min-width: 1024px) {
    .store-body-content {
        padding-top: calc(var(--store-header-h, 76px) + 2px) !important;
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* Banner de Mayoristas Compacto */
.wholesale-banner-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ecfdf5;
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    padding: 10px 14px;
    margin: 14px 0 6px;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.wholesale-banner-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wholesale-pulse-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* 3. CATEGORÍAS (CARRUSEL ALINEADO A LA IZQUIERDA & TOUCH/DRAG FRIENDLY) */
.categories-section-wrap {
    padding: 20px 0 0 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: visible !important;
}

.section-header-compact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    width: 100%;
}

.section-title-label {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted, #64748b);
}

.carousel-swipe-hint {
    background: none;
    border: none;
    color: var(--primary, #10b981);
    font-size: 12px;
    font-weight: 700;
    display: none;
    /* Controlado dinámicamente por JS según scrollWidth > clientWidth */
    align-items: center;
    gap: 3px;
    padding: 0;
    user-select: none;
}

.swipe-hint-btn {
    background: none;
    border: none;
    color: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    cursor: pointer;
    border-radius: 4px;
    transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.swipe-hint-btn:hover {
    opacity: 0.85;
    background-color: var(--primary-glow, rgba(16, 185, 129, 0.1));
}

.swipe-hint-btn.prev:hover {
    transform: translateX(-2px);
}

.swipe-hint-btn.next:hover {
    transform: translateX(2px);
}

.swipe-hint-text {
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    color: inherit;
    display: inline-block;
    transition: opacity 0.2s ease;
}

.swipe-hint-text:hover {
    opacity: 0.85;
}

.categories-carousel-scroll {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
    padding: 6px 16px 10px 16px;
    margin: 0 -16px;
    width: calc(100% + 32px);
    box-sizing: border-box;
    scrollbar-width: none;
    align-items: flex-start;
    justify-content: flex-start;
    cursor: grab;
    user-select: none;
    scroll-padding-left: 16px;
    scroll-padding-right: 16px;
}

.categories-carousel-scroll:active {
    cursor: grabbing;
}

.categories-carousel-scroll.is-dragging {
    scroll-behavior: auto !important;
    cursor: grabbing !important;
    user-select: none !important;
}

.categories-carousel-scroll.is-dragging * {
    user-select: none !important;
    pointer-events: none !important;
}

.categories-carousel-scroll::-webkit-scrollbar {
    display: none;
}

@media (min-width: 640px) {
    .categories-carousel-scroll {
        gap: 16px;
        margin: 0 -20px;
        width: calc(100% + 40px);
        padding: 6px 20px 10px 20px;
        scroll-padding-left: 20px;
        scroll-padding-right: 20px;
    }
}

/* ========================================================
   CONTENEDOR DE NAVEGACIÓN CON "TODOS" ANCLADO / FIJO
======================================================== */
.categories-nav-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
    box-sizing: border-box;
    overflow: hidden;
}

.categories-nav-wrapper.mode-visual {
    align-items: flex-start;
}

.categories-fixed-slot {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    position: relative;
    z-index: 5;
    background: transparent;
}

.categories-fixed-slot.visual {
    align-items: flex-start;
    padding: 6px 0 10px 0;
    box-sizing: border-box;
}

.categories-nav-wrapper.mode-text .categories-fixed-slot {
    padding-top: 4px;
    padding-bottom: 6px;
    box-sizing: border-box;
}

.categories-slot-divider {
    display: inline-block;
    width: 1px;
    height: 22px;
    background: var(--border, #e2e8f0);
    margin: 0 10px 0 12px;
    flex-shrink: 0;
}

.categories-slot-divider.visual {
    height: 56px;
    margin: 7px 12px 0 14px;
    align-self: flex-start;
}

.categories-nav-wrapper .categories-carousel-scroll {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    margin: 0;
    padding: 6px 4px 10px 2px;
    scroll-padding-left: 4px;
    scroll-padding-right: 16px;
}

@media (max-width: 639px) {
    .categories-slot-divider {
        margin: 0 7px 0 7px;
    }
    .categories-slot-divider.visual {
        margin: 7px 8px 0 10px !important;
    }
    .categories-fixed-slot .cat-chip-btn {
        padding: 7px 13px !important;
        font-size: 12.5px !important;
        gap: 5px !important;
    }
}

/* ========================================================
   MODO SOLO TEXTO: CHIPS TIPO PÍLDORA (SHADCN STYLE)
======================================================== */
.categories-carousel-scroll.mode-text {
    align-items: center !important;
    gap: 9px !important;
    padding-top: 4px !important;
    padding-bottom: 6px !important;
}

.cat-chip-btn,
a.cat-chip-btn {
    background: #ffffff !important;
    border: 1px solid var(--border, #e2e8f0) !important;
    color: var(--text-main, #0f172a) !important;
    padding: 7px 16px !important;
    border-radius: 9999px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    white-space: nowrap !important;
    transition: all 0.16s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
    user-select: none !important;
    flex-shrink: 0 !important;
    text-decoration: none !important;
    line-height: 1.3 !important;
    outline: none !important;
}

.cat-chip-btn span,
a.cat-chip-btn span {
    text-decoration: none !important;
}

.cat-chip-btn svg {
    stroke: currentColor !important;
    flex-shrink: 0 !important;
    display: inline-block !important;
}

.cat-chip-btn:hover,
.cat-chip-btn:focus,
a.cat-chip-btn:hover,
a.cat-chip-btn:focus {
    border-color: #cbd5e1 !important;
    color: #090d16 !important;
    background: #f8fafc !important;
    text-decoration: none !important;
    transform: translateY(-1px) !important;
}

.cat-chip-btn:visited,
a.cat-chip-btn:visited {
    color: var(--text-main, #0f172a) !important;
    text-decoration: none !important;
}

.cat-chip-btn.active,
a.cat-chip-btn.active,
.cat-chip-btn.active:hover,
a.cat-chip-btn.active:hover,
.cat-chip-btn.active:focus,
a.cat-chip-btn.active:focus,
.cat-chip-btn.active:visited,
a.cat-chip-btn.active:visited {
    background: var(--primary, #10b981) !important;
    border-color: var(--primary, #10b981) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    box-shadow: 0 3px 10px var(--primary-glow, rgba(16, 185, 129, 0.25)) !important;
    transform: none !important;
}

.cat-chip-btn.active span,
a.cat-chip-btn.active span,
.cat-chip-btn.active:visited span,
a.cat-chip-btn.active:visited span {
    color: #ffffff !important;
    text-decoration: none !important;
}

.cat-chip-btn.active svg,
a.cat-chip-btn.active svg,
.cat-chip-btn.active:visited svg,
a.cat-chip-btn.active:visited svg {
    stroke: #ffffff !important;
    color: #ffffff !important;
}

.category-thumb-card,
a.category-thumb-card {
    flex: 0 0 70px !important;
    width: 70px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 6px !important;
    cursor: pointer !important;
    user-select: none !important;
    text-decoration: none !important;
    color: inherit !important;
    outline: none !important;
    transition: transform 0.15s ease !important;
}

.category-thumb-card:hover,
.category-thumb-card:focus,
.category-thumb-card:active,
.category-thumb-card:visited,
a.category-thumb-card:hover,
a.category-thumb-card:focus,
a.category-thumb-card:active,
a.category-thumb-card:visited {
    text-decoration: none !important;
    color: inherit !important;
}

.category-thumb-card:hover {
    transform: translateY(-2px) !important;
}

.category-thumb-photo {
    width: 70px !important;
    height: 70px !important;
    min-width: 70px !important;
    max-width: 70px !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    background: #f8fafc !important;
    border: 1.5px solid var(--border, #e2e8f0) !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

.category-thumb-photo img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: inherit !important;
}

/* Tarjeta "Todos": Estado neutro idéntico a las demás cuando NO está seleccionada */
.category-thumb-photo.all-box {
    background: #f8fafc !important;
    color: var(--text-muted, #64748b) !important;
    border-color: var(--border, #e2e8f0) !important;
}

.category-thumb-photo.all-box svg {
    color: var(--text-muted, #64748b) !important;
    stroke: currentColor !important;
    transition: color 0.2s ease !important;
}

.category-thumb-card:hover .category-thumb-photo.all-box {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
}

.category-thumb-card:hover .category-thumb-photo.all-box svg {
    color: var(--text-main, #0f172a) !important;
}

/* Placeholder de categorías sin foto (icono) */
.category-thumb-placeholder {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #f1f5f9 !important;
    color: var(--text-muted, #64748b) !important;
    border-radius: inherit !important;
    transition: background-color 0.2s ease, color 0.2s ease !important;
}

.category-thumb-placeholder svg {
    color: var(--text-muted, #64748b) !important;
    stroke: currentColor !important;
}

/* ========================================================
   ESTADO SELECCIONADO (ACTIVE): El fondo cambia al color
   predeterminado de personalización de la tienda (var(--primary))
   SOLO cuando se selecciona, eliminando bordes toscos.
======================================================== */
.category-thumb-card.active .category-thumb-photo {
    border-color: var(--primary, #10b981) !important;
    box-shadow: 0 4px 14px var(--primary-glow, rgba(16, 185, 129, 0.25)) !important;
    transform: none !important;
}

/* Cuando "Todos" está seleccionado: Fondo completo del color primario con icono blanco */
.category-thumb-card.active .category-thumb-photo.all-box {
    background: var(--primary, #10b981) !important;
    border-color: var(--primary, #10b981) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px var(--primary-glow, rgba(16, 185, 129, 0.28)) !important;
}

.category-thumb-card.active .category-thumb-photo.all-box svg {
    color: #ffffff !important;
    stroke: #ffffff !important;
}

/* Cuando una categoría con icono (sin foto) está seleccionada: Fondo del color primario con icono blanco */
.category-thumb-card.active .category-thumb-photo .category-thumb-placeholder {
    background: var(--primary, #10b981) !important;
    color: #ffffff !important;
}

.category-thumb-card.active .category-thumb-photo .category-thumb-placeholder svg {
    color: #ffffff !important;
    stroke: #ffffff !important;
}

.category-title-text,
a.category-thumb-card .category-title-text {
    font-size: 11.5px !important;
    font-weight: 600 !important;
    color: var(--text-muted, #64748b) !important;
    text-align: center !important;
    text-decoration: none !important;
    white-space: normal !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    width: 100% !important;
    max-width: 70px !important;
    line-height: 1.25 !important;
    min-height: 26px !important;
    margin-top: 2px !important;
    word-break: normal !important;
}

.category-thumb-card:hover .category-title-text,
a.category-thumb-card:hover .category-title-text {
    color: #0f172a !important;
    text-decoration: none !important;
}

.category-thumb-card.active .category-title-text,
a.category-thumb-card.active .category-title-text {
    color: var(--primary, #10b981) !important;
    font-weight: 800 !important;
    text-decoration: none !important;
}

/* 4. BARRA DE FILTROS */
.catalog-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 0 14px 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    gap: 8px;
    min-width: 0;
}

.filter-count-badge {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--text-main, #0f172a);
    white-space: nowrap;
    flex-shrink: 0;
}

.catalog-sort-box {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    flex-shrink: 1;
}

.catalog-sort-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-muted, #64748b);
    white-space: nowrap;
    flex-shrink: 0;
}

.catalog-sort-select-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-width: 0;
    max-width: 100%;
}

.catalog-sort-select {
    appearance: none;
    background: #f8fafc;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 9px;
    padding: 5px 24px 5px 10px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-main, #0f172a);
    cursor: pointer;
    outline: none;
    max-width: 100%;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .catalog-sort-label span {
        display: none;
    }

    .catalog-sort-select {
        max-width: 135px;
    }
}

.catalog-sort-chevron {
    position: absolute;
    right: 8px;
    pointer-events: none;
    color: var(--text-muted, #94a3b8);
    display: flex;
    align-items: center;
}

/* 5. GRILLA DE PRODUCTOS (PRODUCTS GRID MASTER) */
.products-grid-master {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 0 32px;
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 640px) {
    .products-grid-master {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        padding: 0 0 36px;
    }
}

@media (min-width: 768px) {
    .products-grid-master {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
        padding: 0 0 40px;
    }
}

@media (min-width: 1024px) {
    .products-grid-master {
        grid-template-columns: repeat(4, 1fr);
        gap: 22px;
        padding: 0 0 48px;
    }
}

.product-card-modern {
    background: #ffffff;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.product-card-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.product-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f8fafc;
    overflow: hidden;
    cursor: pointer;
}

.product-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.badge-discount-clean {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #ef4444;
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 800;
    padding: 3px 7px;
    border-radius: 7px;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.3);
    z-index: 2;
}

.product-details-wrap {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-category-sub {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted, #94a3b8);
    margin-bottom: 3px;
    letter-spacing: 0.04em;
}

.product-card-title {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--text-main, #0f172a);
    margin: 0 0 6px;
    line-height: 1.3;
    cursor: pointer;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-wholesale-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10.5px;
    font-weight: 700;
    color: #047857;
    background: #ecfdf5;
    padding: 3px 6px;
    border-radius: 6px;
    margin-bottom: 8px;
    cursor: pointer;
    align-self: flex-start;
}

.price-and-action-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 4px;
}

.price-stack {
    display: flex;
    flex-direction: column;
}

.price-current {
    font-size: 15px;
    font-weight: 900;
    color: var(--text-main, #0f172a);
    letter-spacing: -0.02em;
}

.price-previous {
    font-size: 11px;
    color: #94a3b8;
    text-decoration: line-through;
    font-weight: 600;
}

.btn-add-compact {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: var(--primary, #10b981);
    color: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease;
    box-shadow: 0 2px 8px var(--primary-glow, rgba(16, 185, 129, 0.3));
    flex-shrink: 0;
}

.btn-add-compact:hover {
    filter: brightness(1.08);
}

/* 6. MOBILE DOCK UNIFICADO (BOTTOM BAR FIXED) */
.mobile-dock-unified {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    height: calc(62px + env(safe-area-inset-bottom, 0px)) !important;
    padding: 0 8px env(safe-area-inset-bottom, 0px) !important;
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-top: 1px solid var(--border, #e2e8f0) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-around !important;
    z-index: 99999 !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08) !important;
    transition: opacity 0.2s ease, transform 0.25s ease !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

.dock-item-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 10.5px;
    font-weight: 600;
    cursor: pointer;
    padding: 5px 6px;
    border-radius: 12px;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.15s cubic-bezier(0.16, 1, 0.3, 1);
    flex: 1;
    position: relative;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.dock-item-btn svg {
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), stroke-width 0.2s ease, filter 0.2s ease;
    stroke-width: 1.85;
}

.dock-item-btn:hover {
    color: var(--primary, #10b981);
}

.dock-item-btn:active {
    transform: scale(0.92);
}

.dock-item-btn:active svg {
    transform: scale(0.9);
}

.dock-item-btn.active {
    color: var(--primary, #10b981) !important;
    font-weight: 800 !important;
}

.dock-item-btn.active:not(.dock-cart-pill-cta) svg {
    stroke-width: 2.2;
    filter: drop-shadow(0 2px 4px var(--primary-glow, rgba(16, 185, 129, 0.2)));
    transform: translateY(-1px);
}

.dock-item-btn.wa-link:hover svg,
.dock-item-btn.wa-link:active svg {
    color: #25D366 !important;
}

/* Dinamismo de Dock con Items en Carrito */
/* Cuando el dock NO tiene items (Carrito Vacío): botón simétrico y minimalista */
.mobile-dock-unified:not(.has-items) .dock-item-btn.wa-link {
    display: flex !important;
}

.mobile-dock-unified:not(.has-items) .dock-cta-text-group {
    display: none !important;
}

.mobile-dock-unified:not(.has-items) .dock-cart-empty-label {
    display: block !important;
    font-size: 10.5px !important;
    font-weight: 600 !important;
    color: inherit !important;
}

.mobile-dock-unified:not(.has-items) .dock-cart-badge {
    display: none !important;
}

.mobile-dock-unified:not(.has-items) .dock-cart-pill-cta {
    background: none !important;
    box-shadow: none !important;
    height: auto !important;
    padding: 5px 6px !important;
    margin: 0 !important;
    color: #64748b !important;
    flex-direction: column !important;
    border-radius: 12px !important;
    flex: 1 !important;
}

.mobile-dock-unified:not(.has-items) .dock-cart-pill-cta:hover {
    color: var(--primary, #10b981) !important;
}

/* Cuando el dock SÍ tiene items (Carrito con productos): botón píldora destacado */
.mobile-dock-unified.has-items .dock-item-btn.wa-link {
    display: none !important;
}

.mobile-dock-unified.has-items .dock-cart-empty-label {
    display: none !important;
}

.mobile-dock-unified.has-items .dock-cart-badge {
    display: inline-flex !important;
}

.mobile-dock-unified.has-items .dock-item-btn:not(.dock-cart-pill-cta) {
    flex: 0 0 54px;
    font-size: 10px;
}

.mobile-dock-unified.has-items .dock-cart-pill-cta {
    flex: 1;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 45%, rgba(255, 255, 255, 0.22) 0%, transparent 55%),
        linear-gradient(108deg, var(--primary, #10b981) 0%, var(--primary, #10b981) 22%, var(--primary-dark, #059669) 85%);
    color: #ffffff !important;
    border-radius: 9999px;
    margin: 4px 6px;
    height: 46px;
    flex-direction: row;
    gap: 10px;
    padding: 0 16px;
    box-shadow:
        inset 0 1px 1px 0 rgba(255, 255, 255, 0.45),
        inset 0 -1px 1px 0 rgba(0, 0, 0, 0.18),
        0 4px 16px var(--primary-glow, rgba(16, 185, 129, 0.35));
    border: none;
    cursor: pointer;
    transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}

.mobile-dock-unified.has-items .dock-cart-pill-cta::after {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.24), transparent);
    transform: skewX(-20deg);
    pointer-events: none;
    animation: dockShimmerSweep 5.5s infinite ease-in-out;
}

@keyframes dockShimmerSweep {

    0%,
    75% {
        left: -120%;
    }

    100% {
        left: 180%;
    }
}

.mobile-dock-unified.has-items .dock-cart-pill-cta:hover {
    filter: brightness(1.05);
}

.mobile-dock-unified.has-items .dock-cart-pill-cta:active {
    transform: scale(0.975);
    filter: brightness(0.95);
}

.dock-cart-badge {
    background: #ffffff;
    color: var(--primary-dark, var(--primary, #065f46));
    font-size: 11px;
    font-weight: 900;
    padding: 2px 7px;
    border-radius: 9999px;
    margin-left: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.dock-cta-text-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.15;
}

.dock-cta-label {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.dock-cta-price {
    font-size: 12.5px;
    font-weight: 900;
}

/* Ocultar Dock Móvil en Pantallas Grandes de Escritorio */
@media (min-width: 1024px) {
    .mobile-dock-unified {
        display: none !important;
    }
}

/* Espacio seguro en la base de la tienda */
@media (max-width: 1023px) {
    .store-body-content {
        padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
    }
}

/* =====================================================================
   7. MODALES & OVERLAYS (PURE SHADCN ARCHITECTURE)
   ===================================================================== */
.product-modal-overlay,
.cart-drawer-overlay {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(15, 23, 42, 0.65) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    z-index: 100000 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: opacity 0.25s ease, visibility 0.25s ease !important;
}

.product-modal-overlay.open,
.cart-drawer-overlay.open {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    cursor: pointer !important;
}

.product-modal-sheet,
.cart-drawer-sheet {
    cursor: default !important;
}

/* Modal Header & Controls (Header compacto con Carrusel Horizontal de Categorías) */
.pmodal-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    padding-bottom: 10px !important;
    border-bottom: 1px solid var(--border, #e2e8f0) !important;
    margin-bottom: 12px !important;
    flex-shrink: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Pmodal Categories Pills Container (Carrusel horizontal de 1 sola fila con scroll táctil) */
.pmodal-categories-pills {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 6px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    padding: 2px 2px !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

.pmodal-categories-pills::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

.pmodal-category {
    font-size: 11.5px !important;
    font-weight: 600 !important;
    color: #475569 !important;
    background: #f1f5f9 !important;
    padding: 0 12px !important;
    height: 28px !important;
    line-height: 28px !important;
    border-radius: 9999px !important;
    text-transform: none !important;
    letter-spacing: 0.01em !important;
    border: 1px solid #e2e8f0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1) !important;
    cursor: pointer !important;
    user-select: none !important;
    box-sizing: border-box !important;
}

.pmodal-category:hover,
.pmodal-category:focus-visible {
    background: #e2e8f0 !important;
    border-color: #cbd5e1 !important;
    color: #1e293b !important;
    transform: translateY(-1px) !important;
}

.pmodal-category:active {
    background: #cbd5e1 !important;
    transform: scale(0.96) !important;
}

.pmodal-header-actions {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-shrink: 0 !important;
    margin-left: auto !important;
}

.btn-pmodal-share,
.btn-close-sheet {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background: #f1f5f9 !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: var(--text-muted, #64748b) !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    flex-shrink: 0 !important;
    padding: 0 !important;
}

.btn-pmodal-share:hover,
.btn-close-sheet:hover {
    background: #e2e8f0 !important;
    color: var(--text-main, #0f172a) !important;
}

.btn-header-icon-only.copied,
.btn-pmodal-share.copied {
    background: #dcfce7 !important;
    border-color: #86efac !important;
    color: #166534 !important;
    transform: scale(1.08) !important;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2) !important;
}

/* Gallery Thumbnails (Shadcn UI squared rounded style) */
.pmodal-thumbs-row {
    display: flex !important;
    gap: 8px !important;
    margin-top: 10px !important;
    overflow-x: auto !important;
    padding: 2px 2px 6px 2px !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: thin !important;
}

.pmodal-thumb {
    width: 54px !important;
    height: 54px !important;
    min-width: 54px !important;
    max-width: 54px !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    border: 2px solid var(--border, #e2e8f0) !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    background: #f8fafc !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
}

.pmodal-thumb:hover {
    border-color: var(--primary, #10b981) !important;
}

.pmodal-thumb.active {
    border-color: var(--primary, #10b981) !important;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25) !important;
}

.pmodal-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}


.pmodal-title {
    font-size: 22px !important;
    font-weight: 800 !important;
    color: var(--text-main, #0f172a) !important;
    margin: 0 !important;
    line-height: 1.25 !important;
    letter-spacing: -0.02em !important;
}

.pmodal-price-stock-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding-bottom: 4px !important;
}

.pmodal-price-current {
    font-size: 24px !important;
    font-weight: 800 !important;
    color: var(--text-main, #0f172a) !important;
    letter-spacing: -0.02em !important;
}

.pmodal-price-previous {
    font-size: 14px !important;
    color: var(--text-subtle, #94a3b8) !important;
    text-decoration: line-through !important;
    margin-left: 8px !important;
    font-weight: 500 !important;
}

.pmodal-stock-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    color: #065f46 !important;
    background: #ecfdf5 !important;
    padding: 4px 10px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(16, 185, 129, 0.25) !important;
}

.dot-pulse-green {
    width: 6px !important;
    height: 6px !important;
    border-radius: 50% !important;
    background: #10b981 !important;
    display: inline-block !important;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3) !important;
}

/* Matriz Mayorista (Estilo Prototipo) */
.wholesale-matrix-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(5, 150, 105, 0.02) 100%) !important;
    border: 1.5px solid rgba(16, 185, 129, 0.25) !important;
    border-radius: 14px !important;
    padding: 12px 14px !important;
    display: flex;
    flex-direction: column !important;
    gap: 10px !important;
    margin: 4px 0 !important;
}

.wholesale-matrix-card[style*="display: none"],
.wholesale-matrix-card[style*="display:none"],
.wholesale-matrix-card.is-hidden {
    display: none !important;
}

.wholesale-matrix-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.wholesale-matrix-title {
    font-size: 12px !important;
    font-weight: 800 !important;
    color: #065f46 !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.wholesale-matrix-subtitle {
    font-size: 10.5px !important;
    font-weight: 700 !important;
    color: #059669 !important;
    background: #ecfdf5 !important;
    padding: 2px 8px !important;
    border-radius: 999px !important;
}

.wholesale-tiers-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 6px !important;
}

@media (max-width: 420px) {
    .wholesale-tiers-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

.wholesale-tier-box {
    background: #ffffff !important;
    border: 1.5px solid var(--border, #e2e8f0) !important;
    border-radius: 10px !important;
    padding: 8px 4px !important;
    text-align: center !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 2px !important;
    user-select: none !important;
    position: relative !important;
}

.wholesale-tier-box:hover {
    border-color: #94a3b8 !important;
    transform: translateY(-1px) !important;
}

.wholesale-tier-box.active {
    border-color: #10b981 !important;
    background: #f0fdf4 !important;
    box-shadow: 0 3px 10px rgba(16, 185, 129, 0.2) !important;
}

.wholesale-tier-qty {
    font-size: 10.5px !important;
    font-weight: 800 !important;
    color: var(--text-main, #0f172a) !important;
}

.wholesale-tier-price {
    font-size: 12px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
}

.wholesale-tier-box.active .wholesale-tier-price {
    color: #059669 !important;
}

.wholesale-tier-badge {
    font-size: 8.5px !important;
    font-weight: 800 !important;
    color: #059669 !important;
    background: #d1fae5 !important;
    padding: 1px 6px !important;
    border-radius: 999px !important;
    margin-top: 1px !important;
}

.wholesale-tier-box.active .wholesale-tier-badge {
    background: #10b981 !important;
    color: #ffffff !important;
}

.wholesale-savings-banner {
    background: #ecfdf5 !important;
    border: 1px dashed #10b981 !important;
    border-radius: 8px !important;
    padding: 8px 10px !important;
    display: flex;
    align-items: center !important;
    gap: 8px !important;
    font-size: 11.5px !important;
    color: #065f46 !important;
    animation: fadeIn 0.2s ease !important;
}

.wholesale-savings-banner[style*="display: none"],
.wholesale-savings-banner[style*="display:none"],
.wholesale-savings-banner.is-hidden {
    display: none !important;
}

.wholesale-savings-banner strong {
    font-size: 12px !important;
    font-weight: 800 !important;
    color: #065f46 !important;
}

.wholesale-savings-banner span {
    font-size: 11px !important;
    color: #047857 !important;
}

.pmodal-description {
    font-size: 13px !important;
    line-height: 1.55 !important;
    color: var(--text-muted, #64748b) !important;
    background: #f8fafc !important;
    padding: 10px 12px !important;
    border-radius: 12px !important;
    border: 1px solid var(--border, #e2e8f0) !important;
    margin: 4px 0 !important;
}

/* Variantes: Tallas, Colores y Atributos (Diseño Armonizado y Unificado) */
.pmodal-variant-section {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    margin-top: 6px !important;
}

.variant-label-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: var(--text-main, #0f172a) !important;
}

.variant-label-row span:first-child {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    color: #475569 !important;
}

/* Badge de valor seleccionado armónico y neutro */
.selected-variant-name {
    color: var(--text-main, #0f172a) !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    background: #f1f5f9 !important;
    padding: 2px 10px !important;
    border-radius: 6px !important;
    border: 1px solid #e2e8f0 !important;
    letter-spacing: 0.01em !important;
}

.variant-chips-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    align-items: center !important;
}

/* -------------------------------------------------------------
   REGLA DE ORO DE ARMONÍA: Mismo border-radius, altura y comportamiento
   para TALLAS, COLORES y PESOS
   ------------------------------------------------------------- */
.variant-chip {
    height: 38px !important;
    min-height: 38px !important;
    border-radius: 10px !important;
    border: 1.5px solid #e2e8f0 !important;
    background: #ffffff !important;
    color: #1e293b !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    padding: 0 14px !important;
    cursor: pointer !important;
    transition: all 0.16s ease !important;
    user-select: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    outline: none !important;
    box-sizing: border-box !important;
}

.variant-chip:hover {
    border-color: #94a3b8 !important;
    background: #f8fafc !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
}

.variant-chip:active {
    transform: scale(0.97) !important;
}

/* ESTADO ACTIVO UNIFICADO PARA TODOS LOS BOTONES */
.variant-chip.active {
    background: var(--text-main, #0f172a) !important;
    color: #ffffff !important;
    border-color: var(--text-main, #0f172a) !important;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.2) !important;
    font-weight: 700 !important;
}

/* Tallas: Misma altura (38px) y radio (10px), ancho mínimo para siglas */
.variant-chip.variant-chip-size {
    min-width: 44px !important;
    padding: 0 12px !important;
    font-weight: 700 !important;
}

/* Colores: Misma altura (38px) y radio (10px) con dot de color */
.variant-chip.variant-chip-color {
    padding: 0 14px 0 10px !important;
}

.variant-chip.variant-chip-color .color-swatch-dot {
    width: 15px !important;
    height: 15px !important;
    border-radius: 50% !important;
    display: inline-block !important;
    flex-shrink: 0 !important;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.1) !important;
    transition: transform 0.16s ease !important;
}

.variant-chip.variant-chip-color:hover .color-swatch-dot {
    transform: scale(1.15) !important;
}

.variant-chip.variant-chip-color.active .color-swatch-dot {
    box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.85), inset 0 0 0 1px rgba(0, 0, 0, 0.15) !important;
}

/* Pesos / Medidas / Píldoras: Misma altura (38px) y radio (10px) */
.variant-chip.variant-chip-pill {
    padding: 0 16px !important;
}

/* Estado Agotado / No Disponible */
.variant-chip.is-disabled,
.variant-chip.out-of-stock {
    opacity: 0.38 !important;
    cursor: not-allowed !important;
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    border-style: dashed !important;
    text-decoration: line-through !important;
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    border-style: dashed !important;
    text-decoration: line-through !important;
}

/* Selector de Cantidad en Modal (Shadcn Stepper Armonizado) */
.pmodal-qty-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 12px 0 !important;
    border-top: 1px solid #f1f5f9 !important;
    border-bottom: 1px solid #f1f5f9 !important;
    margin: 10px 0 !important;
}

.pmodal-qty-label-wrap {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
}

.pmodal-qty-title {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: var(--text-main, #0f172a) !important;
}

.pmodal-qty-hint {
    font-size: 11px !important;
    font-weight: 500 !important;
    color: #64748b !important;
}

.pmodal-stepper {
    display: inline-flex !important;
    align-items: center !important;
    height: 38px !important;
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02) !important;
    transition: border-color 0.16s ease !important;
}

.pmodal-stepper:focus-within,
.pmodal-stepper:hover {
    border-color: #cbd5e1 !important;
}

.pmodal-stepper-btn {
    width: 36px !important;
    height: 100% !important;
    background: transparent !important;
    border: none !important;
    color: #475569 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    outline: none !important;
    padding: 0 !important;
}

.pmodal-stepper-btn:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
}

.pmodal-stepper-btn:active {
    background: #e2e8f0 !important;
    transform: scale(0.92) !important;
}

.pmodal-stepper-val {
    min-width: 36px !important;
    text-align: center !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: var(--text-main, #0f172a) !important;
    user-select: none !important;
    font-variant-numeric: tabular-nums !important;
    padding: 0 4px !important;
}

.drawer-qty-controls {
    display: inline-flex !important;
    align-items: center !important;
    background: #f1f5f9 !important;
    border-radius: 8px !important;
    border: 1px solid var(--border, #e2e8f0) !important;
    padding: 3px 6px !important;
    gap: 6px !important;
}

.drawer-qty-btn {
    width: 26px !important;
    height: 26px !important;
    border-radius: 6px !important;
    background: #ffffff !important;
    border: 1px solid var(--border, #e2e8f0) !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    color: var(--text-main, #0f172a) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
}

.drawer-qty-btn:hover {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
}

.drawer-qty-val {
    min-width: 24px !important;
    text-align: center !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    color: var(--text-main, #0f172a) !important;
}

/* Ficha Técnica & Políticas (Columna Izquierda) */
.pmodal-desktop-perks-box {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    margin-top: 16px !important;
}

.pmodal-specs-card {
    background: #f8fafc !important;
    border: 1px solid var(--border, #e2e8f0) !important;
    border-radius: 12px !important;
    padding: 12px 14px !important;
}

.pmodal-section-mini-title {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    color: var(--text-main, #0f172a) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    margin-bottom: 8px !important;
    padding-bottom: 6px !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.specs-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px 12px !important;
}

.spec-row {
    display: flex !important;
    flex-direction: column !important;
    line-height: 1.25 !important;
}

.spec-label {
    font-size: 10px !important;
    font-weight: 700 !important;
    color: var(--text-muted, #64748b) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.03em !important;
}

.spec-val {
    font-size: 11.5px !important;
    font-weight: 600 !important;
    color: var(--text-main, #0f172a) !important;
    margin-top: 2px !important;
}

.pmodal-shipping-trust-card {
    background: #ffffff !important;
    border: 1px solid var(--border, #e2e8f0) !important;
    border-radius: 12px !important;
    padding: 12px 14px !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px 12px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02) !important;
}

.shipping-trust-item {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 2px 0 !important;
    background: transparent !important;
    border: none !important;
    min-width: 0 !important;
}

.shipping-trust-item:not(:last-child) {
    border-bottom: none !important;
    padding-bottom: 2px !important;
}

.st-icon-wrap {
    width: 28px !important;
    height: 28px !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

.st-text {
    display: flex !important;
    align-items: center !important;
    line-height: 1.25 !important;
    min-width: 0 !important;
    overflow: hidden !important;
}

.st-text strong {
    font-size: 11.5px !important;
    font-weight: 600 !important;
    color: var(--text-main, #0f172a) !important;
    letter-spacing: -0.1px !important;
    white-space: normal !important;
    word-break: break-word !important;
}

/* Botones de Acción (Vertical Shadcn UI Match) */
.pmodal-actions-group {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    margin-top: 8px !important;
    width: 100% !important;
}

.btn-buy-wa-direct {
    background: #10b981 !important;
    color: #ffffff !important;
    border: none !important;
    height: 48px !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    cursor: pointer !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35) !important;
    transition: all 0.2s ease !important;
    width: 100% !important;
    text-decoration: none !important;
}

.btn-buy-wa-direct:hover {
    background: #059669 !important;
    transform: translateY(-1px) !important;
    color: #ffffff !important;
}

.btn-add-modal-cart {
    background: #0f172a !important;
    color: #ffffff !important;
    border: none !important;
    height: 46px !important;
    border-radius: 12px !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    width: 100% !important;
}

.btn-add-modal-cart:hover {
    background: #1e293b !important;
    transform: translateY(-1px) !important;
    color: #ffffff !important;
}

.pmodal-trust-badges {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 16px !important;
    padding-top: 6px !important;
}

.trust-badge-item {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    color: var(--text-muted, #64748b) !important;
    white-space: nowrap !important;
}

.trust-badge-item svg {
    color: var(--text-muted, #64748b) !important;
    display: block !important;
}

/* Mobile Layout: Bottom Sheet (< 768px) */
@media (max-width: 767px) {
    .product-modal-overlay {
        display: flex !important;
        align-items: flex-end !important;
        justify-content: center !important;
        overflow-x: hidden !important;
        touch-action: pan-y !important;
    }

    .product-modal-sheet {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
        height: auto !important;
        max-height: 92vh !important;
        border-radius: 24px 24px 0 0 !important;
        padding: 12px 18px 0 !important;
        background: #ffffff !important;
        z-index: 100001 !important;
        display: flex !important;
        flex-direction: column !important;
        overflow-x: hidden !important;
        overflow-y: hidden !important;
        touch-action: pan-y !important;
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3) !important;
        transform: translateY(105%) !important;
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }

    .product-modal-overlay.open .product-modal-sheet {
        transform: translateY(0) !important;
    }

    .drawer-grabber {
        width: 38px !important;
        height: 4px !important;
        background: #cbd5e1 !important;
        border-radius: 9999px !important;
        margin: 0 auto 10px !important;
        flex-shrink: 0 !important;
    }

    .pmodal-header {
        width: 100% !important;
        box-sizing: border-box !important;
        flex-shrink: 0 !important;
    }

    .pmodal-content-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 14px !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        touch-action: pan-y !important;
        -webkit-overflow-scrolling: touch !important;
        flex: 1 1 auto !important;
        padding: 8px 0px 0px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .pmodal-gallery-col {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100% !important;
        flex-shrink: 0 !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    .pmodal-main-img-wrap {
        width: 100% !important;
        max-width: 100% !important;
        aspect-ratio: 1 / 1 !important;
        height: auto !important;
        max-height: none !important;
        border-radius: 16px !important;
        overflow: hidden !important;
        position: relative !important;
        background: #f8fafc !important;
        border: 1px solid var(--border, #e2e8f0) !important;
        box-sizing: border-box !important;
    }

    .pmodal-main-img-wrap img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        display: block !important;
    }

    .pmodal-thumbs-row {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .pmodal-info-col {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        flex: 1 0 auto !important;
        height: auto !important;
        overflow: visible !important;
    }

    .pmodal-desktop-perks-box {
        display: none !important;
    }

    .pmodal-title {
        word-break: break-word !important;
        overflow-wrap: break-word !important;
    }

    .pmodal-description {
        word-break: break-word !important;
        overflow-wrap: break-word !important;
    }

    .pmodal-actions-group {
        position: sticky !important;
        bottom: 0 !important;
        background: #ffffff !important;
        padding: 12px 0 max(14px, env(safe-area-inset-bottom, 14px)) !important;
        border-top: 1px solid var(--border, #e2e8f0) !important;
        z-index: 20 !important;
        box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08) !important;
        margin: 12px 0 0 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .btn-buy-wa-direct span {
        display: inline !important;
    }
}

/* Desktop & Tablet Layout: 2-Column Dialog (>= 768px) */
@media (min-width: 768px) {
    .product-modal-overlay {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 24px !important;
    }

    .product-modal-sheet {
        position: relative !important;
        width: 100% !important;
        max-width: 930px !important;
        max-height: 88vh !important;
        border-radius: 20px !important;
        background: #ffffff !important;
        padding: 20px 24px 24px 24px !important;
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
        border: 1px solid var(--border, #e2e8f0) !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
        transform: translateY(16px) scale(0.97) !important;
        transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease !important;
    }

    .product-modal-overlay.open .product-modal-sheet {
        transform: translateY(0) scale(1) !important;
    }

    .drawer-grabber {
        display: none !important;
    }

    .pmodal-content-grid {
        display: grid !important;
        grid-template-columns: 390px 1fr !important;
        gap: 26px !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding-right: 6px !important;
        max-height: calc(88vh - 70px) !important;
    }

    .pmodal-gallery-col {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
    }

    .pmodal-main-img-wrap {
        width: 100% !important;
        aspect-ratio: 1 / 1 !important;
        height: auto !important;
        max-height: 390px !important;
        border-radius: 14px !important;
        overflow: hidden !important;
        position: relative !important;
        background: #f8fafc !important;
        border: 1px solid var(--border, #e2e8f0) !important;
    }

    .pmodal-main-img-wrap img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    .pmodal-desktop-perks-box {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
        margin-top: 16px !important;
    }

    .btn-buy-wa-direct span {
        display: inline !important;
    }
}


/* =====================================================================
   CHECKOUT MICRO-FORM (SHADCN STYLING)
   ===================================================================== */
.customer-form-section {
    background: #f8fafc;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.customer-form-title {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted, #64748b);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cust-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.cust-input-icon {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-subtle, #94a3b8);
    pointer-events: none;
    display: flex;
    align-items: center;
    z-index: 1;
}

.cust-input {
    width: 100% !important;
    height: 40px !important;
    padding: 0 12px !important;
    border: 1px solid var(--border, #e2e8f0) !important;
    border-radius: 8px !important;
    font-family: inherit !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    color: var(--text-main, #0f172a) !important;
    background: #ffffff !important;
    outline: none !important;
    transition: border-color 0.18s ease, box-shadow 0.18s ease !important;
    box-sizing: border-box !important;
}

.cust-input-wrap .cust-input {
    padding-left: 36px !important;
}

.cust-input::placeholder {
    color: var(--text-subtle, #94a3b8);
    font-weight: 400;
}

.cust-input:focus {
    border-color: var(--primary, #10b981) !important;
    box-shadow: 0 0 0 3px var(--primary-glow, rgba(16, 185, 129, 0.2)) !important;
}

.checkout-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted, #64748b);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: block;
    margin-bottom: 5px;
}

.btn-checkout-wa {
    background: #25d366 !important;
    color: #ffffff !important;
    border: none !important;
    height: 48px !important;
    border-radius: 12px !important;
    font-size: 14.5px !important;
    font-weight: 800 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    cursor: pointer !important;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4) !important;
    transition: all 0.2s ease !important;
    width: 100% !important;
    margin-top: 14px !important;
    margin-bottom: 24px !important;
    box-sizing: border-box !important;
    text-decoration: none !important;
}

.btn-checkout-wa:hover {
    background: #1ebc59 !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45) !important;
}

.btn-checkout-wa:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

/* =====================================================================
   STORE FOOTER (SHADCN RESPONSIVE DESIGN - ALINEADO AL HEADER Y CUERPO)
   ===================================================================== */
.store-main-footer {
    width: 100% !important;
    border-top: 1px solid var(--border, #e2e8f0) !important;
    margin-top: auto !important;
    padding: 20px 0 calc(76px + env(safe-area-inset-bottom, 0px)) !important;
    background: #ffffff !important;
    box-sizing: border-box !important;
    margin-bottom: 0 !important;
}

.store-footer-inner {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 16px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 16px !important;
    text-align: center !important;
    box-sizing: border-box !important;
}

@media (min-width: 640px) {
    .store-footer-inner {
        padding: 0 20px !important;
    }
}

/* Tablet y Escritorio (>= 768px): Layout horizontal alineado idéntico al header */
@media (min-width: 768px) {
    .store-main-footer {
        padding: 20px 0 calc(76px + env(safe-area-inset-bottom, 0px)) !important;
    }

    .store-footer-inner {
        padding: 0 20px !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        text-align: left !important;
        gap: 24px !important;
    }

    .store-footer-brand-badge {
        order: 1 !important;
        flex-shrink: 0 !important;
    }

    .store-policies-nav {
        order: 2 !important;
        margin: 0 auto !important;
    }

    .store-wappura-badge-wrap {
        order: 3 !important;
        margin: 0 !important;
        margin-left: auto !important;
        flex-shrink: 0 !important;
    }
}

/* Escritorio Completo (>= 1024px): Sin barra dock inferior, espacio inferior estándar de web normal */
@media (min-width: 1024px) {
    .store-main-footer {
        padding: 20px 0 !important;
        margin-top: auto !important;
        margin-bottom: 0 !important;
    }

    .store-footer-inner {
        padding: 0 20px !important;
    }

    .store-footer-viral {
        padding: 24px 1rem !important;
        margin-bottom: 0 !important;
    }
}

.store-footer-brand-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.store-footer-logo {
    width: 40px !important;
    height: 40px !important;
    border-radius: 10px !important;
    background: #f8fafc !important;
    border: 1px solid var(--border, #e2e8f0) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
}

.store-footer-logo img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.store-footer-text {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: left !important;
    justify-content: center !important;
}

.store-footer-name {
    font-size: 15px !important;
    font-weight: 800 !important;
    color: var(--text-main, #0f172a) !important;
    letter-spacing: -0.01em !important;
    line-height: 1.25 !important;
}

.store-footer-sub {
    font-size: 12px !important;
    color: var(--text-muted, #64748b) !important;
    line-height: 1.25 !important;
    margin-top: 2px !important;
}

.store-policies-nav {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px 8px !important;
}

.btn-store-policy-link,
.store-policies-nav button {
    background: none !important;
    border: none !important;
    color: var(--text-muted, #64748b) !important;
    cursor: pointer !important;
    text-decoration: none !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    padding: 4px 8px !important;
    border-radius: 6px !important;
    transition: all 0.15s ease !important;
    white-space: nowrap !important;
}

.btn-store-policy-link:hover,
.store-policies-nav button:hover {
    color: var(--text-main, #0f172a) !important;
    background: rgba(0, 0, 0, 0.04) !important;
}

.policy-dot-sep {
    font-size: 11px !important;
    color: #cbd5e1 !important;
    user-select: none !important;
    display: inline-block !important;
}

/* Modal de Políticas de Tienda (Centrado y Estilo Shadcn) */
#storePolicyDialog,
.store-policy-dialog {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 20px !important;
    padding: 0 !important;
    max-width: 520px !important;
    width: min(92vw, 520px) !important;
    max-height: 85vh !important;
    max-height: 85dvh !important;
    box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.4), 0 0 0 1px rgba(0, 0, 0, 0.06) !important;
    background: #ffffff !important;
    overflow: hidden !important;
    z-index: 10050 !important;
    flex-direction: column !important;
}

#storePolicyDialog:not([open]),
.store-policy-dialog:not([open]) {
    display: none !important;
}

#storePolicyDialog[open],
.store-policy-dialog[open] {
    display: flex !important;
    animation: policyModalPop 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

@keyframes policyModalPop {
    from {
        opacity: 0;
        transform: translate(-50%, -46%) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

#storePolicyDialog::backdrop,
.store-policy-dialog::backdrop {
    background: rgba(15, 23, 42, 0.6) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
}

.policy-dialog-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 16px 20px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    background: #ffffff !important;
    flex-shrink: 0 !important;
}

.policy-dialog-title-wrap {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
}

.policy-dialog-title-wrap svg {
    color: var(--primary, #10b981) !important;
    flex-shrink: 0 !important;
}

.btn-close-policy {
    background: #f1f5f9 !important;
    border: none !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #64748b !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    flex-shrink: 0 !important;
}

.btn-close-policy:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

.policy-dialog-body {
    padding: 20px !important;
    font-size: 14px !important;
    line-height: 1.65 !important;
    color: #334155 !important;
    overflow-y: auto !important;
    max-height: calc(85vh - 130px) !important;
    white-space: pre-line !important;
    word-break: break-word !important;
    flex: 1 1 auto !important;
}

.policy-dialog-body::-webkit-scrollbar {
    width: 5px;
}

.policy-dialog-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.policy-dialog-footer {
    padding: 14px 20px !important;
    background: #f8fafc !important;
    border-top: 1px solid #f1f5f9 !important;
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    flex-shrink: 0 !important;
}

.btn-policy-confirm {
    background: #0f172a !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 9px 22px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    user-select: none !important;
}

.btn-policy-confirm:hover {
    background: #1e293b !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15) !important;
}

.btn-policy-confirm:active {
    transform: scale(0.98) !important;
}

/* =====================================================================
   CART DRAWER (COMPACT SHADCN ARCHITECTURE)
   ===================================================================== */
.drawer-header-compact {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 4px 0 12px !important;
    border-bottom: 1px solid var(--border, #e2e8f0) !important;
    margin-bottom: 12px !important;
    flex-shrink: 0 !important;
}

.drawer-title-group {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: var(--text-main, #0f172a) !important;
}

.drawer-items-count-badge {
    font-size: 12px !important;
    font-weight: 700 !important;
    background: #f1f5f9 !important;
    color: var(--text-muted, #64748b) !important;
    padding: 2px 8px !important;
    border-radius: 9999px !important;
    border: 1px solid var(--border, #e2e8f0) !important;
}

.btn-close-sheet {
    background: #f1f5f9 !important;
    border: none !important;
    width: 30px !important;
    height: 30px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: var(--text-muted, #64748b) !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    flex-shrink: 0 !important;
}

.btn-close-sheet:hover {
    background: #e2e8f0 !important;
    color: var(--text-main, #0f172a) !important;
}

.cart-wholesale-progress-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(5, 150, 105, 0.03) 100%) !important;
    border: 1px solid rgba(16, 185, 129, 0.25) !important;
    border-radius: 12px !important;
    padding: 10px 12px !important;
    margin-bottom: 12px !important;
    display: flex;
    flex-direction: column !important;
    gap: 6px !important;
    flex-shrink: 0 !important;
}

.cart-wholesale-progress-card.is-hidden,
.cart-wholesale-progress-card[style*="display: none"],
.cart-wholesale-progress-card[style*="display:none"] {
    display: none !important;
}

.cwp-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.cwp-title-group {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #065f46 !important;
}

.cwp-status-pill {
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #059669 !important;
    background: #ffffff !important;
    padding: 2px 8px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(16, 185, 129, 0.2) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

.cwp-bar-track {
    width: 100% !important;
    height: 6px !important;
    background: rgba(16, 185, 129, 0.15) !important;
    border-radius: 999px !important;
    overflow: hidden !important;
}

.cwp-bar-fill {
    height: 100% !important;
    background: linear-gradient(90deg, #10b981, #059669) !important;
    border-radius: 999px !important;
    transition: width 0.35s ease-out !important;
}

.cwp-hint-msg {
    font-size: 12px !important;
    color: #047857 !important;
    line-height: 1.35 !important;
    font-weight: 500 !important;
}

.drawer-items-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    padding: 4px 0 14px !important;
}

.drawer-footer-summary {
    padding-top: 14px !important;
    border-top: 1px solid var(--border, #e2e8f0) !important;
    display: flex;
    flex-direction: column !important;
    gap: 8px !important;
}

.drawer-footer-summary.is-hidden,
.drawer-footer-summary[style*="display: none"],
.drawer-footer-summary[style*="display:none"] {
    display: none !important;
}

.drawer-fixed-footer.is-hidden,
.drawer-fixed-footer[style*="display: none"],
.drawer-fixed-footer[style*="display:none"] {
    display: none !important;
}

.drawer-subtotal-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-main, #0f172a);
}

.drawer-subtotal-row.is-hidden,
.drawer-subtotal-row[style*="display: none"],
.drawer-subtotal-row[style*="display:none"] {
    display: none !important;
}

.delivery-toggle {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 4px !important;
    margin: 10px 0 !important;
    background: #f1f5f9 !important;
    padding: 4px !important;
    border-radius: 10px !important;
    border: 1px solid var(--border, #e2e8f0) !important;
}

.toggle-option {
    padding: 8px 10px !important;
    text-align: center !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    border-radius: 7px !important;
    cursor: pointer !important;
    color: var(--text-muted, #64748b) !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    user-select: none !important;
}

.toggle-option.active {
    background: #ffffff !important;
    color: var(--text-main, #0f172a) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
}

.receipt-drop-zone {
    border: 1.5px dashed var(--border, #cbd5e1) !important;
    border-radius: 10px !important;
    padding: 12px !important;
    text-align: center !important;
    background: rgba(0, 0, 0, 0.015) !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.receipt-drop-zone:hover {
    border-color: var(--primary, #10b981) !important;
    background: rgba(16, 185, 129, 0.04) !important;
}

.coupon-box {
    background: #f8fafc !important;
    border: 1px dashed var(--border, #cbd5e1) !important;
    border-radius: 10px !important;
    padding: 10px 12px !important;
}

#cartCouponInput {
    font-size: 15px !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
}

#cartCouponInput::placeholder {
    font-size: 15px !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    color: #94a3b8 !important;
    text-transform: uppercase !important;
}

/* =====================================================================
   CART DRAWER BACKDROP & SHEET (SHADCN SHEET SPECIFICATION)
   ===================================================================== */
.cart-drawer-overlay,
.cart-backdrop {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    background: rgba(15, 23, 42, 0.65) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    z-index: 10000 !important;
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: opacity 0.28s ease, visibility 0.28s ease !important;
}

.cart-drawer-overlay.open,
.cart-backdrop.open {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

/* Ocultar dock inferior cuando el carrito, el menú de categorías o el modal de producto están abiertos para evitar solapamientos */
body.drawer-open .mobile-dock-unified,
body.categories-drawer-open .mobile-dock-unified,
body.modal-open .mobile-dock-unified {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translate3d(0, 105%, 0) !important;
    -webkit-transform: translate3d(0, 105%, 0) !important;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, visibility 0.25s ease !important;
    z-index: -1 !important;
}

.cart-drawer-sheet,
.cart-drawer {
    background: #ffffff !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    box-shadow: 0 -12px 48px rgba(0, 0, 0, 0.22) !important;
    z-index: 10001 !important;
}

/* Modo Escritorio: Slide-Over derecho (>= 768px) */
@media (min-width: 768px) {

    .cart-drawer-overlay,
    .cart-backdrop {
        justify-content: flex-end !important;
        align-items: stretch !important;
        padding: 0 !important;
    }

    .cart-drawer-sheet,
    .cart-drawer {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        left: auto !important;
        width: 440px !important;
        max-width: 440px !important;
        height: 100vh !important;
        height: 100dvh !important;
        max-height: 100vh !important;
        max-height: 100dvh !important;
        border-radius: 0 !important;
        border-left: 1px solid var(--border, #e2e8f0) !important;
        padding: 16px 20px 0 20px !important;
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }

    .cart-drawer-overlay.open .cart-drawer-sheet,
    .cart-backdrop.open .cart-drawer {
        transform: translateX(0) !important;
    }

    .drawer-grabber {
        display: none !important;
    }
}

/* Modo Móvil: Bottom Sheet nativo pegado al suelo (< 768px) */
@media (max-width: 767px) {

    .cart-drawer-overlay,
    .cart-backdrop {
        align-items: flex-end !important;
        justify-content: center !important;
        padding: 0 !important;
    }

    .cart-drawer-sheet,
    .cart-drawer {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        top: auto !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100vw !important;
        height: auto !important;
        max-height: 90vh !important;
        max-height: 90dvh !important;
        border-radius: 22px 22px 0 0 !important;
        border: none !important;
        padding: 12px 18px 0 18px !important;
        transform: translateY(105%);
        transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }

    .cart-drawer-overlay.open .cart-drawer-sheet,
    .cart-backdrop.open .cart-drawer {
        transform: translateY(0) !important;
    }

    .drawer-grabber {
        display: block !important;
        width: 38px !important;
        height: 4px !important;
        background: #cbd5e1 !important;
        border-radius: 9999px !important;
        margin: 0 auto 10px auto !important;
        flex-shrink: 0 !important;
    }
}

.drawer-scrollable-body {
    flex: 1 1 auto !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    padding-right: 2px !important;
    padding-bottom: 12px !important;
    min-height: 0 !important;
}

.drawer-scrollable-body::-webkit-scrollbar {
    width: 4px;
}

.drawer-scrollable-body::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.3);
    border-radius: 4px;
}

.drawer-scrollable-body::-webkit-scrollbar-track {
    background: transparent;
}

.drawer-fixed-footer {
    flex-shrink: 0 !important;
    padding: 12px 0 max(14px, env(safe-area-inset-bottom, 14px)) 0 !important;
    background: #ffffff !important;
    border-top: 1px solid var(--border, #e2e8f0) !important;
    margin-top: auto !important;
    z-index: 10 !important;
}

/* =====================================================================
   CUSTOMER FORM & INPUTS (SHADCN INPUT)
   ===================================================================== */
.customer-form-section {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

.customer-form-title {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    color: var(--text-muted, #64748b) !important;
    margin-bottom: 2px !important;
}

.checkout-label {
    display: block !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: var(--text-muted, #64748b) !important;
    margin-bottom: 4px !important;
}

.cust-input-wrap {
    position: relative !important;
    width: 100% !important;
    display: block !important;
}

.cust-input-icon {
    position: absolute !important;
    left: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #94a3b8 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    pointer-events: none !important;
    z-index: 2 !important;
}

.cust-input {
    width: 100% !important;
    height: 42px !important;
    border-radius: 9px !important;
    border: 1px solid var(--border, #e2e8f0) !important;
    background: #ffffff !important;
    padding: 0 12px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: var(--text-main, #0f172a) !important;
    outline: none !important;
    box-sizing: border-box !important;
    transition: all 0.2s ease !important;
    font-family: inherit !important;
}

.cust-input-wrap .cust-input {
    padding-left: 36px !important;
}

.cust-input:focus {
    border-color: var(--primary, #10b981) !important;
    box-shadow: 0 0 0 3px var(--primary-glow, rgba(16, 185, 129, 0.15)) !important;
}

.cust-input::placeholder {
    color: #94a3b8 !important;
    font-weight: 400 !important;
}

select.cust-input {
    appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    padding-right: 36px !important;
    cursor: pointer !important;
}

/* =====================================================================
   WHATSAPP CHECKOUT BUTTON
   ===================================================================== */
.btn-checkout-wa {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    width: 100% !important;
    height: 48px !important;
    border-radius: 12px !important;
    background: #25d366 !important;
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    border: none !important;
    cursor: pointer !important;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35) !important;
    transition: all 0.2s ease !important;
    user-select: none !important;
    text-decoration: none !important;
}

.btn-checkout-wa:hover {
    background: #20ba5a !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45) !important;
}

.btn-checkout-wa:active {
    transform: scale(0.99) !important;
}

.btn-checkout-wa svg {
    flex-shrink: 0 !important;
}

/* =====================================================================
   SMART CART PULSE & FLOATING PILL NOTIFICATIONS (OPCIÓN 2)
   ===================================================================== */
@keyframes cartPulseBounce {
    0% {
        transform: scale(1);
    }

    30% {
        transform: scale(1.12);
        filter: brightness(1.15);
        box-shadow: 0 0 16px var(--primary-glow, rgba(16, 185, 129, 0.4));
    }

    60% {
        transform: scale(0.96);
    }

    100% {
        transform: scale(1);
    }
}

.cart-bounce-pulse {
    animation: cartPulseBounce 0.48s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.cart-floating-pill-toast {
    position: fixed !important;
    z-index: 9999 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    padding: 9px 16px !important;
    background: #0f172a !important;
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    border-radius: 9999px !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.12) !important;
    pointer-events: none !important;
    opacity: 0 !important;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease !important;
}

.cart-floating-pill-toast.pos-mobile {
    bottom: 84px !important;
    left: 50% !important;
    transform: translate(-50%, 14px) scale(0.92) !important;
}

.cart-floating-pill-toast.pos-mobile.show {
    opacity: 1 !important;
    transform: translate(-50%, 0) scale(1) !important;
}

.cart-floating-pill-toast.pos-mobile.hide {
    opacity: 0 !important;
    transform: translate(-50%, -10px) scale(0.95) !important;
}

.cart-floating-pill-toast.pos-desktop {
    top: 80px !important;
    right: 28px !important;
    left: auto !important;
    transform: translateY(-10px) scale(0.92) !important;
}

.cart-floating-pill-toast.pos-desktop.show {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
}

.cart-floating-pill-toast.pos-desktop.hide {
    opacity: 0 !important;
    transform: translateY(-8px) scale(0.95) !important;
}

.cart-floating-pill-toast svg {
    color: #10b981 !important;
    flex-shrink: 0 !important;
}

.btn-micro-float-pill {
    position: absolute !important;
    top: -12px !important;
    right: -6px !important;
    background: #10b981 !important;
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    padding: 2px 6px !important;
    border-radius: 999px !important;
    pointer-events: none !important;
    animation: microFloatUp 0.75s ease-out forwards !important;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.4) !important;
    z-index: 10 !important;
}

@keyframes microFloatUp {
    0% {
        opacity: 0;
        transform: translateY(6px) scale(0.8);
    }

    30% {
        opacity: 1;
        transform: translateY(0) scale(1.1);
    }

    70% {
        opacity: 1;
        transform: translateY(-8px) scale(1);
    }

    100% {
        opacity: 0;
        transform: translateY(-16px) scale(0.9);
    }
}

/* ==========================================================================
   EXPERIENCIA PARA CATÁLOGOS EXTENSOS (+40 Y +100 PRODUCTOS) & CARGA PROGRESIVA
   ========================================================================== */

/* Optimización de Rendimiento y Memoria para Catálogos Extensos */
.product-card-modern {
    content-visibility: auto;
    contain-intrinsic-size: 320px;
}

/* Tarjetas diferidas para no sobrecargar el render inicial */
.product-card-modern.is-deferred {
    display: none !important;
}

/* Animación de revelado suave al cargar más productos */
.product-card-modern.card-fade-in {
    animation: cardFadeInUp 0.38s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes cardFadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Bloque controlador de carga progresiva */
.catalog-pagination-ctrl {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin: 28px auto 20px;
    padding: 0 16px;
    max-width: 440px;
    width: 100%;
    box-sizing: border-box;
}

.catalog-progress-box {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.catalog-progress-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12.5px;
    color: #64748b;
    font-weight: 500;
}

.catalog-progress-header strong {
    color: #0f172a;
    font-weight: 700;
}

.catalog-progress-pct {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--primary, #10b981);
    background: rgba(16, 185, 129, 0.1);
    padding: 2px 7px;
    border-radius: 9999px;
}

.catalog-progress-track {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 9999px;
    overflow: hidden;
    position: relative;
}

.catalog-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary, #10b981), #059669);
    border-radius: 9999px;
    transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-load-more-catalog {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #ffffff;
    color: #0f172a;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 10px 22px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
}

.btn-load-more-catalog:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.btn-load-more-catalog:active {
    transform: scale(0.98);
}

.btn-load-more-catalog.is-loading {
    opacity: 0.7;
    pointer-events: none;
}

.catalog-infinite-sentinel {
    width: 100%;
    height: 20px;
    pointer-events: none;
    opacity: 0;
}

.catalog-end-banner {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
}

.catalog-end-banner svg {
    color: var(--primary, #10b981);
    flex-shrink: 0;
}

/* ==========================================================================
   MODAL Y DETALLE DE PRODUCTO: INSIGNIAS Y CONTROLES DE GALERÍA
   ========================================================================== */

/* 1. Insignia personalizada (Vendido, Tendencia, Destacado, etc.) - Esquina superior izquierda */
.pmodal-main-img-wrap .detail-badge-pill {
    position: absolute !important;
    top: 12px !important;
    left: 12px !important;
    right: auto !important;
    bottom: auto !important;
    z-index: 6 !important;
    background: rgba(15, 23, 42, 0.88) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    padding: 4px 10px !important;
    border-radius: 6px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
    pointer-events: none !important;
}

/* 2. Insignia de Descuento (-XX% OFF) - Esquina superior derecha */
.pmodal-main-img-wrap .badge-discount-clean {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    left: auto !important;
    bottom: auto !important;
    z-index: 6 !important;
    background: #ef4444 !important;
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    padding: 4px 9px !important;
    border-radius: 6px !important;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.35) !important;
    pointer-events: none !important;
}

/* 3. Contador de Imágenes de Galería (1 / 4, 1 / 10) - Esquina inferior derecha (sin tapar etiquetas ni flechas) */
.pmodal-gallery-counter {
    position: absolute !important;
    bottom: 12px !important;
    right: 12px !important;
    top: auto !important;
    left: auto !important;
    background: rgba(15, 23, 42, 0.78) !important;
    color: #ffffff !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    padding: 3.5px 10px !important;
    border-radius: 9999px !important;
    z-index: 6 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
    pointer-events: none !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    font-variant-numeric: tabular-nums !important;
}

.pmodal-gallery-nav {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.92) !important;
    color: #0f172a !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16) !important;
    backdrop-filter: blur(6px) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    z-index: 7 !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    padding: 0 !important;
}

.pmodal-gallery-prev {
    left: 10px !important;
}

.pmodal-gallery-next {
    right: 10px !important;
}

.pmodal-gallery-nav:hover {
    background: #ffffff !important;
    color: var(--primary, #10b981) !important;
    transform: translateY(-50%) scale(1.1) !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22) !important;
}

.pmodal-gallery-nav:active {
    transform: translateY(-50%) scale(0.94) !important;
}

/* Riel de miniaturas para soportar fluidamente 10 fotos */
.pmodal-thumbs-row {
    display: flex !important;
    gap: 8px !important;
    margin-top: 10px !important;
    overflow-x: auto !important;
    padding: 4px 2px 8px !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: thin !important;
}

.pmodal-thumbs-row::-webkit-scrollbar {
    height: 4px !important;
}

.pmodal-thumbs-row::-webkit-scrollbar-thumb {
    background: #cbd5e1 !important;
    border-radius: 9999px !important;
}

.pmodal-thumb {
    flex: 0 0 62px !important;
    width: 62px !important;
    height: 62px !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    border: 2px solid #e2e8f0 !important;
    cursor: pointer !important;
    background: #f8fafc !important;
    scroll-snap-align: center !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    position: relative !important;
}

.pmodal-thumb:hover {
    border-color: #94a3b8 !important;
    transform: translateY(-2px) !important;
}

.pmodal-thumb.active {
    border-color: var(--primary, #10b981) !important;
    box-shadow: 0 0 0 2px var(--primary-glow, rgba(16, 185, 129, 0.3)) !important;
    transform: scale(1.05) !important;
}

.pmodal-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

/* =========================================================================
   PULL-TO-DISMISS & GRABBER INTERACTIVO
   ========================================================================= */
.drawer-grabber {
    cursor: grab !important;
    touch-action: none !important;
    position: relative !important;
    transition: background 0.15s ease, transform 0.15s ease !important;
}

.drawer-grabber::before {
    content: '' !important;
    position: absolute !important;
    top: -14px !important;
    bottom: -14px !important;
    left: -30px !important;
    right: -30px !important;
    cursor: grab !important;
}

.drawer-grabber:active {
    cursor: grabbing !important;
    background: #94a3b8 !important;
    transform: scaleX(1.2) !important;
}

.product-modal-sheet.is-dragging,
.cart-drawer-sheet.is-dragging {
    user-select: none !important;
    transition: none !important;
}

/* =========================================================================
   BANNER DE CORRECCIÓN TIPOGRÁFICA Y SUGERENCIAS DEL BUSCADOR
   ========================================================================= */
.search-typo-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f0fdf4 !important;
    border: 1px solid #bbf7d0 !important;
    color: #166534 !important;
    padding: 10px 16px !important;
    border-radius: 14px !important;
    margin-bottom: 16px !important;
    font-size: 13px !important;
    box-shadow: 0 1px 3px rgba(16, 185, 129, 0.08) !important;
}

.search-typo-banner .stb-icon {
    color: #16a34a !important;
    display: inline-flex !important;
    flex-shrink: 0 !important;
}

.search-typo-banner .stb-content {
    flex: 1 !important;
    min-width: 0 !important;
    line-height: 1.4 !important;
}

.search-typo-banner .stb-content strong {
    color: #14532d !important;
    font-weight: 700 !important;
}

.search-typo-banner .stb-clear-btn {
    background: #dcfce7 !important;
    color: #15803d !important;
    border: 1px solid #86efac !important;
    padding: 5px 12px !important;
    border-radius: 9px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    transition: all 0.15s ease !important;
}

.search-typo-banner .stb-clear-btn:hover {
    background: #bbf7d0 !important;
    color: #14532d !important;
}

/* Chips de Sugerencias en Estado Vacío */
.search-suggestion-chip {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    color: #1e293b !important;
    padding: 7px 15px !important;
    border-radius: 9999px !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.search-suggestion-chip:hover {
    border-color: var(--primary, #10b981) !important;
    color: var(--primary, #10b981) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.14) !important;
}

.search-cat-chip {
    display: inline-flex !important;
    align-items: center !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #475569 !important;
    padding: 7px 14px !important;
    border-radius: 11px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
}

.search-cat-chip:hover {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

/* =========================================================================
   BOTTOM SHEET TÁCTIL DE CATEGORÍAS (MOBILE-FIRST - MERCADOLIBRE / ZARA STYLE)
   ========================================================================= */

.categories-drawer-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(15, 23, 42, 0.6) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    z-index: 10000 !important;
    display: none !important;
    align-items: flex-end !important;
    justify-content: center !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.categories-drawer-overlay.open {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

body.categories-drawer-open,
body.drawer-open,
body.modal-open {
    overflow: hidden !important;
}

body.categories-drawer-open .mobile-dock-unified {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translate3d(0, 105%, 0) !important;
    -webkit-transform: translate3d(0, 105%, 0) !important;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, visibility 0.25s ease !important;
    z-index: -1 !important;
}

.categories-drawer-sheet {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    top: auto !important;
    margin: 0 auto !important;
    width: 100% !important;
    max-width: 600px !important;
    max-height: 85vh !important;
    max-height: 85dvh !important;
    background: #ffffff !important;
    border-radius: 24px 24px 0 0 !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    box-shadow: 0 -12px 48px rgba(0, 0, 0, 0.24) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    transform: translateY(100%) !important;
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1) !important;
    z-index: 10001 !important;
    padding-bottom: max(16px, env(safe-area-inset-bottom, 16px)) !important;
    box-sizing: border-box !important;
}

.categories-drawer-overlay.open .categories-drawer-sheet {
    transform: translateY(0) !important;
}

/* Adaptación a Modal Centrado EXCLUSIVAMENTE en Pantallas de Escritorio (>= 1024px) */
@media (min-width: 1024px) {
    .categories-drawer-overlay {
        align-items: center !important;
        justify-content: center !important;
        padding: 24px !important;
    }

    .categories-drawer-sheet {
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        margin: auto !important;
        border-radius: 20px !important;
        border-bottom-left-radius: 20px !important;
        border-bottom-right-radius: 20px !important;
        max-width: 560px !important;
        max-height: 82vh !important;
        max-height: 82dvh !important;
        box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.08) !important;
        transform: scale(0.96) translateY(12px) !important;
        opacity: 0 !important;
        transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease !important;
        padding-bottom: 0 !important;
    }

    .categories-drawer-overlay.open .categories-drawer-sheet {
        transform: scale(1) translateY(0) !important;
        opacity: 1 !important;
    }

    .cat-drawer-grabber {
        display: none !important;
        /* El grabber táctil es solo para gestos en móviles y tablets */
    }
}

.cat-drawer-grabber {
    width: 40px;
    height: 4.5px;
    background: #cbd5e1;
    border-radius: 9999px;
    margin: 10px auto 4px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color 0.2s ease;
}

.cat-drawer-grabber:hover {
    background: #94a3b8;
}

.categories-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px 14px;
    border-bottom: 1px solid var(--border, #f1f5f9);
    flex-shrink: 0;
}

.cat-drawer-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cat-drawer-icon-wrap {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(16, 185, 129, 0.12);
    color: var(--primary, #10b981);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cat-drawer-title {
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.cat-drawer-subtitle {
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
    display: block;
    margin-top: 1px;
}

.categories-drawer-body {
    padding: 14px 16px 24px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cat-drawer-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 14px;
    background: #ffffff;
    border: 1.5px solid var(--border, #f1f5f9);
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.cat-drawer-item:hover,
.cat-drawer-item:active {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: scale(0.995);
}

.cat-drawer-item.active {
    background: rgba(16, 185, 129, 0.08);
    border-color: var(--primary, #10b981);
}

.cat-drawer-item.active .cat-drawer-item-name {
    color: var(--primary, #10b981);
}

.cat-drawer-item-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
}

.cat-drawer-item-thumb {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    overflow: hidden;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.cat-drawer-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cat-drawer-item-thumb.all-thumb {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
}

.cat-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: #64748b;
}

.cat-drawer-item-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.cat-drawer-item-name {
    font-size: 14.5px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cat-drawer-item-count {
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
    margin-top: 1px;
}

.cat-drawer-item-right {
    display: flex;
    align-items: center;
    margin-left: 10px;
    flex-shrink: 0;
}

.cat-drawer-active-check {
    display: none;
    color: var(--primary, #10b981);
    background: rgba(16, 185, 129, 0.15);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
}

.cat-drawer-item.active .cat-drawer-active-check {
    display: flex;
}

.cat-drawer-chevron {
    display: flex;
    color: #94a3b8;
    transition: transform 0.15s ease;
}

.cat-drawer-item.active .cat-drawer-chevron {
    display: none;
}

.cat-drawer-divider {
    height: 1px;
    background: var(--border, #f1f5f9);
    margin: 4px 0 6px;
}

/* BUSCADOR DE CATEGORÍAS */
.cat-drawer-search-wrap {
    padding: 10px 16px 12px;
    background: #ffffff;
    border-bottom: 1px solid var(--border, #f1f5f9);
    position: sticky;
    top: 0;
    z-index: 5;
    flex-shrink: 0;
}

.cat-drawer-search-bar {
    display: flex;
    align-items: center;
    gap: 9px;
    background: #f1f5f9;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 0 12px;
    height: 42px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.cat-drawer-search-bar:focus-within {
    background: #ffffff;
    border-color: var(--primary, #10b981);
    box-shadow: 0 0 0 3px var(--primary-glow, rgba(16, 185, 129, 0.15));
}

.cat-drawer-search-bar svg {
    color: #94a3b8;
    flex-shrink: 0;
}

.cat-drawer-search-bar input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 13.5px;
    font-weight: 500;
    color: #0f172a;
    width: 100%;
    padding: 0;
}

.cat-drawer-search-bar input::placeholder {
    color: #94a3b8;
}

.cat-drawer-search-clear {
    background: #cbd5e1;
    border: none;
    color: #334155;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
    transition: all 0.15s ease;
}

.cat-drawer-search-clear:hover {
    background: #94a3b8;
    color: #ffffff;
}

/* ACORDEÓN DE SUBCATEGORÍAS FLUIDO */
.cat-drawer-expand-btn {
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 6px;
    color: #64748b;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.cat-drawer-expand-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #0f172a;
}

.cat-drawer-subs-badge {
    font-size: 11px;
    font-weight: 700;
    background: #f1f5f9;
    color: #475569;
    padding: 2px 7px;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
}

.cat-drawer-chevron-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    color: #94a3b8;
}

.cat-drawer-item-wrapper.is-expanded .cat-drawer-chevron-arrow {
    transform: rotate(180deg);
    color: var(--primary, #10b981);
}

.cat-drawer-subcategories {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
    opacity: 0;
    overflow: hidden;
    padding: 0 8px 0 52px;
}

.cat-drawer-item-wrapper.is-expanded .cat-drawer-subcategories {
    grid-template-rows: 1fr;
    opacity: 1;
    padding: 6px 8px 10px 52px;
}

.cat-drawer-subcategories-inner {
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.cat-drawer-sub-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}

.cat-drawer-sub-item:hover,
.cat-drawer-sub-item:active {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.cat-drawer-sub-item.active {
    background: rgba(16, 185, 129, 0.12);
    color: var(--primary, #10b981);
    border-color: rgba(16, 185, 129, 0.35);
    font-weight: 700;
}

.cat-drawer-sub-item.active .cat-drawer-sub-name {
    color: var(--primary, #10b981);
}

.cat-drawer-sub-all {
    background: #ffffff;
    border-color: #cbd5e1;
    color: #0f172a;
}

.cat-drawer-sub-all-icon {
    display: flex;
    align-items: center;
    color: var(--primary, #10b981);
}

.cat-drawer-sub-badge {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    background: #e2e8f0;
    padding: 1px 6px;
    border-radius: 999px;
}

.cat-drawer-sub-item.active .cat-drawer-sub-badge {
    background: rgba(16, 185, 129, 0.2);
    color: var(--primary, #10b981);
}

/* ESTADO VACÍO CUANDO NO HAY COINCIDENCIAS */
.cat-drawer-empty {
    padding: 36px 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.cat-empty-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: #f1f5f9;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.cat-empty-title {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 4px;
}

.cat-empty-sub {
    font-size: 12.5px;
    color: #64748b;
    margin: 0 0 16px;
}

.btn-clear-cat-search {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #0f172a;
    font-size: 12.5px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-clear-cat-search:hover {
    background: #e2e8f0;
}

/* Botón "Ver todas" en el header del carrusel */
.btn-open-cat-drawer {
    background: none;
    border: none;
    color: var(--primary, #10b981);
    font-size: 12.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 6px;
    cursor: pointer;
    border-radius: 6px;
    transition: background-color 0.15s ease;
    user-select: none;
}

.btn-open-cat-drawer:hover {
    background: rgba(16, 185, 129, 0.08);
}

/* =========================================================================
   PÍLDORA FLOTANTE DE CATEGORÍAS PARA ESCRITORIO (FLOATING DOCK IXD)
   ========================================================================= */
.desktop-cat-pill-wrapper {
    display: none;
    /* Oculto en móvil (< 1024px) */
}

@media (min-width: 1024px) {
    .desktop-cat-pill-wrapper {
        display: block;
        position: fixed;
        bottom: 26px;
        left: 50%;
        transform: translateX(-50%) translateY(24px);
        z-index: 990;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, visibility 0.25s ease;
    }

    .desktop-cat-pill-wrapper.is-visible {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateX(-50%) translateY(0);
    }

    /* Señal de presencia (Micro-nudge al bajar por primera vez) */
    .desktop-cat-pill-wrapper.is-visible.has-nudged {
        animation: pillNudgeSignal 0.65s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    }

    /* Al bajar activamente: se atenúa sutilmente para no competir con los productos */
    .desktop-cat-pill-wrapper.is-scrolling-down {
        opacity: 0.35;
        visibility: visible;
        transform: translateX(-50%) translateY(10px) scale(0.96);
    }

    /* Ocultar suavemente al llegar al footer para despejar enlaces de políticas y legal */
    .desktop-cat-pill-wrapper.is-footer-hidden {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        transform: translateX(-50%) translateY(24px) scale(0.95) !important;
        transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.22s ease, visibility 0.22s ease !important;
    }

    /* Ocultar si el drawer de categorías, carrito o modal de producto están abiertos */
    body.categories-drawer-open .desktop-cat-pill-wrapper,
    body.drawer-open .desktop-cat-pill-wrapper,
    body.modal-open .desktop-cat-pill-wrapper {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        transform: translateX(-50%) translateY(20px) !important;
    }

    .desktop-cat-pill-btn {
        background: rgba(255, 255, 255, 0.88);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border: 1px solid rgba(226, 232, 240, 0.95);
        border-radius: 9999px;
        padding: 6px 16px 6px 10px;
        box-shadow: 0 10px 25px -4px rgba(15, 23, 42, 0.12), 0 4px 10px -2px rgba(15, 23, 42, 0.05);
        display: inline-flex;
        align-items: center;
        gap: 9px;
        cursor: pointer;
        outline: none;
        user-select: none;
        transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .desktop-cat-pill-btn:hover {
        background: #ffffff;
        border-color: var(--primary, #10b981);
        box-shadow: 0 14px 32px -4px rgba(15, 23, 42, 0.18), 0 6px 14px -2px rgba(15, 23, 42, 0.08);
        transform: translateY(-2px);
    }

    .desktop-cat-pill-btn:active {
        transform: translateY(0) scale(0.97);
    }

    .dcp-icon {
        width: 28px;
        height: 28px;
        border-radius: 50%;
        background: rgba(16, 185, 129, 0.12);
        color: var(--primary, #10b981);
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        transition: transform 0.2s ease;
    }

    .desktop-cat-pill-btn:hover .dcp-icon {
        transform: scale(1.08);
    }

    .dcp-label {
        font-size: 13.5px;
        font-weight: 700;
        color: #0f172a;
        letter-spacing: -0.01em;
        white-space: nowrap;
    }

    .dcp-badge {
        font-size: 11px;
        font-weight: 700;
        color: #475569;
        background: #f1f5f9;
        border: 1px solid #e2e8f0;
        border-radius: 999px;
        padding: 1.5px 7px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .dcp-chevron {
        color: #94a3b8;
        display: flex;
        align-items: center;
        transition: transform 0.2s ease, color 0.2s ease;
    }

    .desktop-cat-pill-btn:hover .dcp-chevron {
        color: var(--primary, #10b981);
        transform: translateY(1.5px);
    }
}

@keyframes pillNudgeSignal {
    0% {
        transform: translateX(-50%) translateY(24px);
        opacity: 0;
    }

    45% {
        transform: translateX(-50%) translateY(-6px);
        opacity: 1;
    }

    75% {
        transform: translateX(-50%) translateY(2px);
    }

    100% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

/* =========================================================================
   COMBOS & PACKS AHORRO (GROWTH SUITE BUNDLES)
   ========================================================================= */
/* =====================================================================
   COMBOS & PACKS AHORRO - GROWTH SUITE STOREFRONT (Pure Shadcn UI Style)
   ===================================================================== */
.bundles-section-master {
    margin-bottom: 24px;
    width: 100%;
    box-sizing: border-box;
}

.bundles-master-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    gap: 12px;
    flex-wrap: wrap;
}

.bundles-master-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bundles-master-badge-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bundles-master-heading {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.bundles-master-subheading {
    font-size: 0.8rem;
    color: #64748b;
    margin: 2px 0 0 0;
}

/* Shadcn Outline Badge para la cabecera */
.bundle-shadcn-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 9999px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857;
    font-size: 0.725rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.bundles-cards-scroll {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    width: 100%;
    box-sizing: border-box;
}

.bundles-cards-scroll.multiple-bundles {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
}

/* Tarjeta Principal del Combo (Shadcn Card) */
.bundle-store-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.bundle-store-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* Modalidad Hero Card (1 Solo Combo destacado en escritorio) */
@media (min-width: 860px) {
    .bundle-store-card.bundle-hero-card {
        display: grid;
        grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
        gap: 20px;
        align-items: stretch;
        padding: 18px;
    }
}

/* Columna Visual / Showcase */
.bundle-visual-showcase {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.bundle-cover-wrap {
    width: 100%;
    height: 180px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.bundle-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    display: block;
}

/* Badge Flotante Llamativo y Constrastante (Emerald Vibrant) */
.bundle-floating-savings {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #10b981;
    color: #ffffff;
    font-size: 0.725rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    letter-spacing: 0.01em;
}

/* Ecuación Visual de Productos (Shadcn Tiles) */
.bundle-equation-strip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.bundle-equation-strip::-webkit-scrollbar {
    display: none;
}

.bundle-eq-bubble {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.bundle-eq-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bundle-eq-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    background: #f1f5f9;
}

.bundle-eq-qty {
    position: absolute;
    bottom: 2px;
    right: 2px;
    background: #0f172a;
    color: #ffffff;
    font-size: 0.55rem;
    font-weight: 700;
    padding: 1px 3px;
    border-radius: 3px;
}

/* Conector '+' minimalista (tipográfico, sin círculos con sombras) */
.bundle-eq-plus {
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    flex-shrink: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.bundle-eq-more {
    width: 34px;
    height: 44px;
    border-radius: 6px;
    background: #f1f5f9;
    border: 1px dashed #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 0.725rem;
    font-weight: 600;
    flex-shrink: 0;
}

/* Columna de Contenido */
.bundle-content-wrap {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
}

/* Fila de Título y Ahorro destacado a la derecha para llenar el espacio */
.bundle-title-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

.bundle-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
    margin: 0;
    letter-spacing: -0.01em;
}

/* Badge de Ahorro inline a la derecha del título */
.bundle-savings-badge-inline {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.725rem;
    font-weight: 700;
    color: #047857;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 2px 8px;
    border-radius: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Fila de Chips y Metadatos del Combo */
.bundle-meta-pills-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.bundle-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.725rem;
    font-weight: 600;
    color: #1e40af;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    padding: 2px 8px;
    border-radius: 5px;
    white-space: nowrap;
}

.bundle-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    font-weight: 500;
    color: #64748b;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 2px 7px;
    border-radius: 5px;
    white-space: nowrap;
}

.bundle-meta-chip.bundle-stock-low {
    color: #b45309;
    background: #fffbeb;
    border-color: #fde68a;
}

.bundle-savings-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.725rem;
    font-weight: 600;
    color: #047857;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 2px 7px;
    border-radius: 5px;
}

.bundle-description-text {
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.4;
    margin: 0;
}

/* Desglose Interactivo de Artículos Incluidos (Shadcn Accordion) */
.bundle-breakdown-details {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.15s ease;
}

.bundle-breakdown-summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    color: #334155;
    user-select: none;
    background: #f8fafc;
    transition: background-color 0.15s ease;
}

.bundle-breakdown-summary:hover {
    background-color: #f1f5f9;
}

.bundle-breakdown-summary::-webkit-details-marker {
    display: none;
}

.bundle-summary-left {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #334155;
    font-size: 0.75rem;
}

.bundle-summary-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bundle-summary-chevron {
    display: inline-flex;
    align-items: center;
    color: #64748b;
    transition: transform 0.2s ease;
}

.bundle-breakdown-details[open] .bundle-summary-chevron {
    transform: rotate(180deg);
}

.bundle-breakdown-details[open] .bundle-breakdown-summary {
    border-bottom: 1px solid #e2e8f0;
}

.bundle-breakdown-sum {
    color: #94a3b8;
    text-transform: none;
    font-weight: 500;
    text-decoration: line-through;
    font-size: 0.725rem;
}

.bundle-items-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 160px;
    overflow-y: auto;
    padding: 8px 12px;
    background: #ffffff;
}

.bundle-item-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.775rem;
}

.bundle-item-line-left {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    overflow: hidden;
}

.bundle-line-thumb {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    object-fit: cover;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
    background: #ffffff;
}

.bundle-line-thumb.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    background: #f1f5f9;
}

.bundle-line-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #334155;
    font-size: 0.75rem;
}

.bundle-line-price {
    color: #94a3b8;
    font-size: 0.725rem;
    flex-shrink: 0;
    text-decoration: line-through;
    white-space: nowrap;
}

/* Footer de Precios y Botón */
.bundle-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
    flex-wrap: wrap;
}

.bundle-pricing-block {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.bundle-price-label {
    font-size: 0.675rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.bundle-price-group {
    display: flex;
    align-items: baseline;
    gap: 8px;
    white-space: nowrap;
}

.bundle-price-current {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary, #10b981);
    letter-spacing: -0.02em;
    line-height: 1.1;
    white-space: nowrap !important;
}

.bundle-price-compare-at {
    font-size: 0.825rem;
    text-decoration: line-through;
    color: #94a3b8;
    font-weight: 500;
    white-space: nowrap !important;
}

/* Botón Shadcn UI (Limpio, Sin Sombras Neón/Naranjas) */
.btn-add-bundle {
    height: 40px;
    padding: 0 16px;
    background: var(--primary, #10b981);
    color: #ffffff;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); /* Shadcn shadow-sm: limpio y sutil */
    transition: opacity 0.15s ease, background-color 0.15s ease, transform 0.1s ease;
    user-select: none;
    outline: none;
}

.btn-add-bundle:hover {
    opacity: 0.92;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.08);
}

.btn-add-bundle:active {
    transform: scale(0.985);
}

.btn-bundle-out {
    height: 40px;
    padding: 0 16px;
    background: #f1f5f9;
    color: #94a3b8;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: not-allowed;
}

/* =========================================================================
   OPTIMIZACIONES ESPECÍFICAS PARA CELULARES (Mobile Viewports <= 640px)
   ========================================================================= */
@media (max-width: 640px) {
    .bundles-section-master {
        margin-bottom: 16px;
    }

    .bundle-store-card {
        padding: 12px;
        border-radius: 10px;
        gap: 10px;
    }

    /* Portada de foto compacta y bien encuadrada */
    .bundle-cover-wrap {
        height: 130px;
        border-radius: 8px;
    }

    .bundle-cover-img {
        object-position: center 25%;
    }

    .bundle-floating-savings {
        top: 6px;
        right: 6px;
        font-size: 0.675rem;
        padding: 2px 7px;
    }

    /* Ecuación visual en móvil: compacta y limpia */
    .bundle-equation-strip {
        padding: 6px 8px;
        gap: 5px;
        border-radius: 6px;
    }

    .bundle-eq-bubble {
        width: 36px;
        height: 36px;
        border-radius: 5px;
    }

    .bundle-eq-plus {
        width: 12px;
        height: 12px;
    }

    .bundle-eq-plus svg {
        width: 9px;
        height: 9px;
    }

    .bundle-eq-more {
        width: 30px;
        height: 36px;
        font-size: 0.675rem;
        border-radius: 5px;
    }

    .bundle-eq-qty {
        font-size: 0.5rem;
        padding: 1px 3px;
    }

    /* Tipografía y textos ajustados */
    .bundle-title-row {
        flex-wrap: wrap;
        gap: 6px;
    }

    .bundle-title {
        font-size: 1rem;
        line-height: 1.25;
    }

    .bundle-description-text {
        font-size: 0.775rem;
        line-height: 1.35;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* Desglose colapsable en móvil */
    .bundle-breakdown-details {
        border-radius: 6px;
    }

    .bundle-breakdown-summary {
        padding: 6px 10px;
        font-size: 0.725rem;
    }

    .bundle-summary-left {
        font-size: 0.725rem;
    }

    .bundle-summary-left svg {
        width: 12px;
        height: 12px;
    }

    .bundle-breakdown-sum {
        font-size: 0.7rem;
    }

    .bundle-items-list {
        padding: 6px 10px;
        gap: 4px;
        max-height: 130px;
    }

    .bundle-item-line {
        font-size: 0.725rem;
    }

    .bundle-line-thumb {
        width: 20px;
        height: 20px;
        border-radius: 4px;
    }

    .bundle-line-name {
        font-size: 0.725rem;
    }

    .bundle-line-price {
        font-size: 0.675rem;
    }

    /* Fila de precio y botón: Limpia, sin saltos de línea de moneda */
    .bundle-footer-row {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding-top: 8px;
    }

    .bundle-pricing-block {
        display: flex;
        flex-direction: row;
        align-items: baseline;
        justify-content: flex-start;
        gap: 8px;
        flex-wrap: nowrap;
        width: 100%;
    }

    .bundle-price-label {
        display: none;
    }

    .bundle-price-group {
        display: flex;
        align-items: baseline;
        gap: 8px;
        white-space: nowrap !important;
    }

    .bundle-price-current {
        font-size: 1.25rem !important;
        font-weight: 700 !important;
        line-height: 1 !important;
        white-space: nowrap !important;
    }

    .bundle-price-compare-at {
        font-size: 0.8rem !important;
        white-space: nowrap !important;
        color: #94a3b8 !important;
    }

    .btn-add-bundle {
        width: 100%;
        height: 44px;
        font-size: 0.875rem;
        border-radius: 8px;
        box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); /* Sin sombras de color */
    }
}