.qm-vitrina-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
    font-family: system-ui, sans-serif;
}
.qm-vitrina-title {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
}
.qm-view-switcher {
    display: inline-flex;
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 30px;
    padding: 3px;
    user-select: none;
}
.qm-switch-btn {
    background: transparent;
    border: none;
    border-radius: 25px;
    color: #9ca3af;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    outline: none;
}
.qm-switch-btn.active {
    background: #3b82f6;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3);
}

.qm-vitrina-search-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 24px;
    font-family: system-ui, sans-serif;
}
@media (min-width: 768px) {
    .qm-vitrina-search-section {
        grid-template-columns: 1fr auto;
    }
}
.qm-search-bar-wrapper {
    position: relative;
    width: 100%;
}
.qm-search-input {
    width: 100%;
    padding: 12px 16px 12px 42px;
    border-radius: 99px;
    background: #1f2937;
    border: 1px solid #374151;
    color: #ffffff;
    font-size: 14px;
    transition: all 0.2s;
}
.qm-search-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.15);
    outline: none;
}
.qm-search-icon-wrapper {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
    display: flex;
    align-items: center;
}

/* Categorías vertical/lista scroll */
.qm-vitrina-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.qm-cat-chip {
    padding: 8px 16px;
    border-radius: 99px;
    background: #1f2937;
    border: 1px solid #374151;
    color: #9ca3af;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
    user-select: none;
}
.qm-cat-chip:hover {
    background: #374151;
    color: #ffffff;
}
.qm-cat-chip.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #ffffff;
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.15);
}

/* Grid modo vertical */
.qm-atomic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    font-family: system-ui, sans-serif;
    margin-top: 20px;
}
.qm-glass-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 12px;
}
.qm-glass-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid #374151;
}
.qm-glass-card .qm-card-body {
    padding: 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.qm-glass-card h4 {
    margin: 0 0 8px 0;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
}
.qm-glass-card .qm-card-price {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #10b981;
}
.qm-glass-card .qm-card-alert {
    font-size: 13px;
    margin-top: 15px;
    color: #ef4444;
    font-weight: 600;
    text-align: center;
}

.qm-btn-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 15px;
}
.qm-action-btn-styled {
    cursor: pointer;
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    text-align: center;
}
.qm-btn-wa {
    background: #10b98120;
    border-color: #10b98140;
    color: #10b981;
}
.qm-btn-wa:hover {
    background: #10b981;
    color: #ffffff;
}
.qm-btn-wc {
    background: #3b82f620;
    border-color: #3b82f640;
    color: #3b82f6;
}
.qm-btn-wc:hover {
    background: #3b82f6;
    color: #ffffff;
}

/* Modo Netflix */
.qm-netflix-mode-view {
    display: flex;
    flex-direction: column;
    gap: 26px;
    margin-top: 20px;
    font-family: system-ui, sans-serif;
}
.qm-netflix-cat-section {
    display: flex;
    flex-direction: column;
}
.qm-netflix-cat-title {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 12px 0;
    border-left: 3.5px solid #3b82f6;
    padding-left: 8px;
}
.qm-netflix-row {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
}
.qm-netflix-row::-webkit-scrollbar {
    display: none;
}
.qm-netflix-card {
    flex: 0 0 160px;
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}
.qm-netflix-card:active {
    transform: scale(0.97);
}
.qm-netflix-card img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    border-bottom: 1px solid #374151;
}
.qm-netflix-card-body {
    padding: 10px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.qm-netflix-card h5 {
    margin: 0 0 4px 0;
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.qm-netflix-card-price {
    font-size: 13px;
    font-weight: 700;
    color: #10b981;
}
.qm-netflix-card-alert {
    font-size: 11px;
    color: #ef4444;
    font-weight: 600;
    text-align: center;
}
.qm-netflix-btn-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-top: 10px;
}
.qm-netflix-action-btn {
    cursor: pointer;
    padding: 6px 4px;
    font-size: 10px;
    font-weight: 700;
    border-radius: 6px;
    border: 1px solid transparent;
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
}
.qm-netflix-btn-wa {
    background: #10b98115;
    border-color: #10b98130;
    color: #10b981;
}
.qm-netflix-btn-wa:hover {
    background: #10b981;
    color: #ffffff;
}
.qm-netflix-btn-wc {
    background: #3b82f615;
    border-color: #3b82f630;
    color: #3b82f6;
}
.qm-netflix-btn-wc:hover {
    background: #3b82f6;
    color: #ffffff;
}

/* Conmutación entre vistas */
.qm-netflix-mode-view { display: none; }
.qm-vertical-mode-view { display: none; }

.qm-vitrina-atomica-wrapper.qm-view-netflix .qm-netflix-mode-view { display: flex; }
.qm-vitrina-atomica-wrapper.qm-view-vertical .qm-vertical-mode-view { display: grid; }

/* -------------------------------------------
   NUEVO: IFRAME TOPBAR & SOCIAL HEADER
------------------------------------------- */
body {
    margin: 0;
    background-color: #111827;
}
.qm-vitrina-atomica-wrapper {
    transition: transform 0.3s ease-in-out;
}
.slide-out-right {
    transform: translateX(100%);
}

.qm-iframe-topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(31, 41, 55, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #374151;
}
.qm-iframe-back-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    margin-left: -8px;
    margin-right: 8px;
    border-radius: 50%;
    transition: background 0.2s;
}
.qm-iframe-back-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}
.qm-iframe-topbar-title {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    font-family: system-ui, sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.qm-social-profile-header {
    background: #1f2937;
    border-bottom: 1px solid #374151;
    margin-bottom: 24px;
    font-family: system-ui, sans-serif;
}
.qm-profile-cover {
    width: 100%;
    height: 160px;
    background-size: cover;
    background-position: center;
    background-color: #374151;
}
.qm-profile-info-section {
    position: relative;
    padding: 0 16px 20px 16px;
    display: flex;
    flex-direction: column;
}
.qm-profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid #1f2937;
    margin-top: -40px;
    background: #374151;
    overflow: hidden;
    flex-shrink: 0;
    z-index: 2;
}
.qm-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.qm-profile-details {
    margin-top: 12px;
}
.qm-profile-name {
    margin: 0 0 6px 0;
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
}
.qm-profile-bio {
    margin: 0;
    font-size: 14px;
    color: #9ca3af;
    line-height: 1.5;
}

/* -------------------------------------------
   NUEVO: PRODUCT MODAL / BOTTOM SHEET
------------------------------------------- */
.qm-product-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.qm-product-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.qm-product-modal-content {
    background: #1f2937;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    border-radius: 20px 20px 0 0;
    display: flex;
    flex-direction: column;
    position: relative;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1);
    box-shadow: 0 -10px 40px rgba(0,0,0,0.5);
}
.qm-product-modal-overlay.active .qm-product-modal-content {
    transform: translateY(0);
}
@media (min-width: 768px) {
    .qm-product-modal-overlay {
        align-items: center;
    }
    .qm-product-modal-content {
        border-radius: 16px;
        height: auto;
    }
}
.qm-modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0,0,0,0.5);
    border: none;
    border-radius: 50%;
    color: white;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s;
}
.qm-modal-close-btn:hover {
    background: rgba(0,0,0,0.8);
}
.qm-modal-scroll-area {
    overflow-y: auto;
    flex-grow: 1;
    padding-bottom: 20px;
}
.qm-modal-scroll-area img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: #374151;
    border-radius: 20px 20px 0 0;
}
@media (min-width: 768px) {
    .qm-modal-scroll-area img {
        border-radius: 16px 16px 0 0;
    }
}
.qm-modal-info {
    padding: 20px;
    font-family: system-ui, sans-serif;
}
.qm-modal-info h2 {
    margin: 0 0 10px 0;
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
}
.qm-modal-price {
    font-size: 20px;
    font-weight: 800;
    color: #10b981;
    margin: 0 0 15px 0;
}
.qm-modal-desc {
    color: #9ca3af;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}
.qm-modal-actions {
    padding: 16px 20px 20px 20px;
    background: #1f2937;
    border-top: 1px solid #374151;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.qm-modal-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: 10px;
    border: none;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
    font-family: system-ui, sans-serif;
}
.qm-modal-btn:active {
    transform: scale(0.97);
}
.qm-btn-whatsapp {
    background: #10b981;
    color: white;
}
.qm-btn-whatsapp:hover { background: #059669; }
.qm-btn-cart {
    background: #3b82f6;
    color: white;
}
.qm-btn-cart:hover { background: #2563eb; }
