/* ==========================================================================
   TOQUEMONOS PURE - BUNDLES CATALOG & BYOB WIZARD (PANDAREN V2)
   ========================================================================== */

.tqm-bundles-page-wrapper {
    max-width: 1240px;
    margin: 0 auto;
    padding: 25px 20px 80px;
    font-family: inherit;
    color: #1e293b;
}

/* 1. HERO HEADER */
.tqm-bundles-hero {
    text-align: center;
    padding: 35px 20px 25px;
    background: linear-gradient(180deg, #fff5f6 0%, #ffffff 100%);
    border-radius: 20px;
    margin-bottom: 30px;
    border: 1px solid rgba(202, 118, 126, 0.15);
}

.tqm-bundles-tagline {
    display: inline-block;
    background: #fce7f3;
    color: #9d174d;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.tqm-bundles-title {
    font-size: 32px;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 10px;
    line-height: 1.2;
}

.tqm-bundles-subtitle {
    font-size: 15px;
    color: #64748b;
    max-width: 680px;
    margin: 0 auto 20px;
    line-height: 1.5;
}

.tqm-bundles-trust-pills {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.tqm-trust-pill {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

/* 2. MODE SWITCHER TABS */
.tqm-mode-switcher-wrap {
    display: inline-flex;
    background: #f1f5f9;
    padding: 5px;
    border-radius: 30px;
    gap: 6px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.04);
}

.tqm-mode-tab-btn {
    background: transparent;
    border: none;
    padding: 10px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    transition: all 0.25s ease;
}

.tqm-mode-tab-btn:hover {
    color: #ca767e;
}

.tqm-mode-tab-btn.active {
    background: #ca767e;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(202, 118, 126, 0.35);
}

/* Tab Contents Toggle */
.tqm-bundle-tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.tqm-bundle-tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 3. CATEGORY FILTER PILLS (CURATED SECTION) */
.tqm-bundles-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.tqm-bundle-filter-btn {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #475569;
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tqm-bundle-filter-btn:hover {
    background: #feebee;
    border-color: #ca767e;
    color: #ca767e;
}

.tqm-bundle-filter-btn.active {
    background: #ca767e;
    border-color: #ca767e;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(202, 118, 126, 0.3);
}

/* 4. BUNDLE GRID */
.tqm-bundles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 992px) {
    .tqm-bundles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .tqm-bundles-grid {
        grid-template-columns: 1fr;
    }
}

/* 5. BUNDLE CARD (CURATED) */
.tqm-b-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
}

.tqm-b-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(202, 118, 126, 0.12);
    border-color: rgba(202, 118, 126, 0.4);
}

.tqm-b-card-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2;
}

.tqm-b-discount-badge {
    background: #9d174d;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 12px;
    letter-spacing: 0.5px;
}

.tqm-b-shipping-badge {
    background: #dcfce7;
    color: #15803d;
    font-size: 10.5px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 12px;
}

.tqm-b-visual-box {
    background: linear-gradient(135deg, #fdf2f4 0%, #f8fafc 100%);
    padding: 40px 16px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-bottom: 1px solid #f1f5f9;
}

.tqm-b-img-wrapper {
    width: 105px;
    height: 105px;
    background: #ffffff;
    border-radius: 12px;
    padding: 6px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.tqm-b-card:hover .tqm-b-img-wrapper {
    transform: scale(1.04);
}

.tqm-b-img-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.tqm-b-plus-symbol {
    font-size: 20px;
    font-weight: 800;
    color: #ca767e;
}

.tqm-b-card-body {
    padding: 16px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tqm-b-card-title {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 12px;
    line-height: 1.35;
    min-height: 40px;
}

.tqm-b-items-list {
    background: #f8fafc;
    border: 1px solid #edf2f7;
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 16px;
}

.tqm-b-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    padding: 4px 0;
    border-bottom: 1px dashed #e2e8f0;
}

.tqm-b-item-row:last-child {
    border-bottom: none;
}

.tqm-b-item-name {
    color: #334155;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 75%;
}

.tqm-b-item-price {
    color: #64748b;
    font-weight: 600;
}

.tqm-b-pricing-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 14px;
    margin-top: auto;
}

.tqm-b-prices {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.tqm-b-price-old {
    font-size: 13px;
    color: #94a3b8;
    text-decoration: line-through;
}

.tqm-b-price-new {
    font-size: 20px;
    font-weight: 800;
    color: #ca767e;
}

.tqm-b-savings-text {
    font-size: 12px;
    font-weight: 700;
    color: #15803d;
    background: #dcfce7;
    padding: 2px 8px;
    border-radius: 8px;
}

.tqm-b-add-btn {
    width: 100%;
    background: #ca767e;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(202, 118, 126, 0.25);
}

.tqm-b-add-btn:hover {
    background: #b55d66;
    box-shadow: 0 6px 14px rgba(202, 118, 126, 0.35);
}

.tqm-b-add-btn.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* ==========================================================================
   6. BYOB (BUILD YOUR OWN BUNDLE) WIZARD STYLES
   ========================================================================== */

/* Progress & Incentive Container */
.byob-progress-container {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.byob-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.byob-progress-status {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
}

.byob-discount-badge {
    background: #ca767e;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 14px;
    transition: all 0.3s ease;
}

.byob-progress-track {
    width: 100%;
    height: 10px;
    background: #f1f5f9;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
}

.byob-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #ca767e 0%, #10b981 100%);
    border-radius: 10px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.byob-tiers-legend {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #64748b;
    flex-wrap: wrap;
    gap: 8px;
}

/* Step Boxes */
.byob-step-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.byob-step-title {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.byob-step-num {
    width: 34px;
    height: 34px;
    background: #ca767e;
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.byob-step-title h3 {
    font-size: 18px;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 4px;
}

.byob-step-title p {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

/* Choice Cards Grid */
.byob-items-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

@media (max-width: 992px) {
    .byob-items-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 640px) {
    .byob-items-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.byob-choice-card {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.byob-choice-card:hover {
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.byob-choice-card.selected {
    background: #fff5f6;
    border-color: #ca767e;
    box-shadow: 0 4px 14px rgba(202, 118, 126, 0.2);
}

.byob-card-check {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    background: #e2e8f0;
    color: transparent;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.byob-choice-card.selected .byob-card-check {
    background: #ca767e;
    color: #ffffff;
}

.byob-img-wrap {
    width: 85px;
    height: 85px;
    background: #ffffff;
    border-radius: 8px;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.byob-img-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.byob-item-name {
    font-size: 12px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 6px;
    line-height: 1.3;
    height: 32px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.byob-item-price {
    font-size: 13px;
    font-weight: 800;
    color: #ca767e;
}

/* Sticky Checkout Bar */
.byob-sticky-summary-bar {
    position: sticky;
    bottom: 20px;
    background: #1e293b;
    color: #ffffff;
    border-radius: 16px;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    z-index: 100;
    margin-top: 30px;
}

.byob-selected-count {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 4px;
}

.byob-summary-prices {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.byob-old-total {
    font-size: 14px;
    color: #64748b;
    text-decoration: line-through;
}

.byob-new-total {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
}

.byob-savings-pill {
    background: #10b981;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 8px;
}

.byob-checkout-btn {
    background: #ca767e;
    color: #ffffff;
    border: none;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.byob-checkout-btn:hover:not(:disabled) {
    background: #b55d66;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(202, 118, 126, 0.4);
}

.byob-checkout-btn:disabled {
    background: #475569;
    cursor: not-allowed;
    opacity: 0.6;
}

@media (max-width: 768px) {
    .byob-sticky-summary-bar {
        flex-direction: column;
        gap: 12px;
        bottom: 10px;
        padding: 14px 16px;
    }
    .byob-checkout-btn {
        width: 100%;
        justify-content: center;
    }
}
