/* ==========================================================================
   Luxury Compact 3-Slot Bundle Builder System (High-End Perfumery Edition)
   ========================================================================== */

.cc-bundle-builder-wrap {
    background: linear-gradient(180deg, #ffffff 0%, #faf8f5 100%);
    border: 1px solid #ebe6df;
    border-radius: 16px;
    padding: 18px 20px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Disabled State when Toggled OFF */
.cc-bundle-builder-wrap.cc-bundle--disabled .cc-bundle-slots-grid,
.cc-bundle-builder-wrap.cc-bundle--disabled .cc-bundle-summary-bar {
    opacity: 0.28;
    pointer-events: none;
    filter: grayscale(0.85);
    user-select: none;
    transition: all 0.3s ease;
}

/* Header Area */
.cc-bundle-header {
    border-bottom: 1px solid #f1eee9;
    padding-bottom: 14px;
    margin-bottom: 16px !important;
}

.cc-bundle-pill-badge {
    display: inline-flex;
    align-items: center;
    background: #0f172a;
    color: #f8fafc;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid rgba(212, 175, 55, 0.25);
    line-height: 1.2;
}

.cc-bundle-pill-badge--shipping {
    background: #ecfdf5;
    color: #047857;
    border-color: #a7f3d0;
}

.cc-bundle-title {
    font-size: 18px;
    font-weight: 850;
    color: #0f172a;
    letter-spacing: -0.015em;
    line-height: 1.25;
    margin-top: 4px;
}

.cc-bundle-subtitle {
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
}

/* Toggle Switch */
.cc-bundle-toggle-wrap {
    background: #ffffff;
    padding: 6px 12px;
    border-radius: 10px;
    border: 1px solid #ebe6df;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.cc-bundle-toggle-wrap .cibato-switch {
    transform: scale(0.9);
    margin-bottom: 0;
}

/* 3-Slot Grid - Tight & Proportional */
.cc-bundle-slots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

/* Slot Card - Compact 290px */
.cc-bundle-slot-card {
    background: #ffffff;
    border: 1px solid #ebe6df;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    min-height: 290px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.cc-bundle-slot-card.cc-bundle-slot--filled:hover {
    border-color: #c5a059;
    box-shadow: 0 8px 20px rgba(197, 160, 89, 0.1);
    transform: translateY(-2px);
}

.cc-bundle-slot-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: #fbfaf8;
    border-bottom: 1px solid #f1eee9;
}

.cc-slot-number {
    font-size: 10.5px;
    font-weight: 850;
    color: #8c827a;
    letter-spacing: 0.06em;
}

.cc-slot-status {
    font-size: 9.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    background: #f1f5f9;
    padding: 2px 7px;
    border-radius: 999px;
}

.cc-slot-status--active {
    color: #059669;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 2px 7px;
    border-radius: 999px;
}

/* Slot Body - Filled */
.cc-bundle-slot-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
    background: #ffffff;
}

.cc-bundle-slot-img-wrap {
    height: 115px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fbfaf8;
    border: 1px solid #f3f0ea;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 8px;
    padding: 6px;
    position: relative;
}

.cc-bundle-slot-img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.cc-bundle-slot-card:hover .cc-bundle-slot-img {
    transform: scale(1.05);
}

.cc-bundle-slot-title {
    font-size: 13px;
    font-weight: 750;
    color: #0f172a;
    margin-bottom: 6px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 34px;
    max-height: 34px;
}

/* Variant Pills in Slot Card */
.cc-bundle-slot-variants {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 8px;
    min-height: 24px;
}

.cc-bundle-variant-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2.5px 8px;
    border-radius: 5px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    font-size: 11px;
    font-weight: 750;
    color: #334155;
    cursor: pointer;
    transition: all 0.15s ease;
    line-height: 1.2;
}

.cc-bundle-variant-pill:hover {
    border-color: #0f172a;
    color: #0f172a;
}

.cc-bundle-variant-pill.is-active {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
}

.cc-bundle-slot-price-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid #f1f5f9;
}

.cc-bundle-slot-price {
    font-size: 14.5px;
    font-weight: 850;
    color: #0f172a;
}

.cc-bundle-slot-badge {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
    font-size: 9.5px;
    font-weight: 800;
    padding: 1.5px 6px;
    border-radius: 4px;
}

.cc-bundle-remove-btn {
    background: transparent;
    border: none;
    color: #ef4444;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    padding: 2px 5px;
    border-radius: 4px;
    transition: all 0.15s ease;
}

.cc-bundle-remove-btn:hover {
    background: #fee2e2;
}

/* Empty Slot Card */
.cc-bundle-slot--empty {
    cursor: pointer;
    border: 1.5px dashed #d5cfc5;
    background: #faf9f7;
    transition: all 0.25s ease;
}

.cc-bundle-slot--empty:hover {
    border-color: #c5a059;
    background: #fffcf7;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(197, 160, 89, 0.12);
}

.cc-bundle-slot-body--empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    padding: 18px 14px 12px 14px;
    flex: 1;
    min-height: 245px;
}

.cc-bundle-empty-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: auto 0;
}

.cc-bundle-plus-orb {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px dashed #c4b5a5;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #8c827a;
    margin-bottom: 10px;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.cc-bundle-slot--empty:hover .cc-bundle-plus-orb {
    border-color: #c5a059;
    color: #c5a059;
    background: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(197, 160, 89, 0.2);
}

.cc-bundle-empty-text {
    font-size: 11.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #475569;
    line-height: 1.3;
}

.cc-bundle-empty-subtext {
    font-size: 10.5px;
    color: #94a3b8;
    margin-top: 3px;
    font-weight: 500;
}

.cc-bundle-pick-btn {
    width: 100%;
    background: #0f172a;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 11.5px;
    font-weight: 750;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: auto;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12);
}

.cc-bundle-slot--empty:hover .cc-bundle-pick-btn {
    background: #1e293b;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}

/* ==========================================================================
   Master Bottom Summary Bar - Sleek & Compact
   ========================================================================== */

.cc-bundle-summary-bar {
    background: #ffffff;
    border: 1px solid #ebe6df;
    border-radius: 12px;
    padding: 12px 18px;
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

.cc-bundle-summary-col {
    display: flex;
    flex-direction: column;
}

.cc-bundle-summary-label {
    display: block;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    margin-bottom: 2px;
}

.cc-bundle-original-price {
    font-size: 13px;
    font-weight: 600;
    color: #94a3b8;
}

.cc-bundle-final-price {
    font-size: 20px;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: -0.02em;
    line-height: 1;
}

.cc-bundle-save-amount {
    font-size: 15px;
    font-weight: 850;
    color: #059669;
}

.cc-bundle-progress-chip {
    background: #f1f5f9;
    color: #475569;
    font-size: 10px;
    font-weight: 750;
    padding: 3px 9px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    display: inline-flex;
    align-items: center;
}

.cc-bundle-progress-chip--unlocked {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
    font-weight: 800;
}

.cc-bundle-add-btn {
    background: #0f172a;
    color: #ffffff;
    font-weight: 850;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border: none;
    border-radius: 9px;
    padding: 10px 22px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.cc-bundle-add-btn:hover {
    background: #1e293b;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.22);
}

.cc-bundle-add-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ==========================================================================
   Liquid Glass Catalog Modal Styling (4 Columns)
   ========================================================================== */

.cc-bundle-modal .modal-dialog {
    max-width: 980px !important;
    margin: 1.75rem auto !important;
    border-radius: 20px !important;
}

.cc-bundle-modal-content,
#bundleCatalogModal .modal-content {
    background: #ffffff !important;
    border: 1.5px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 20px !important;
    box-shadow: 0 25px 70px -15px rgba(0, 0, 0, 0.25) !important;
    overflow: hidden !important;
}

.cc-bundle-modal-header,
#bundleCatalogModal .modal-header {
    padding: 16px 22px 12px 22px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    border-top-left-radius: 20px !important;
    border-top-right-radius: 20px !important;
    background: #ffffff !important;
}

.cc-bundle-modal-title {
    font-size: 17px;
    font-weight: 850;
    color: #0f172a;
}

.cc-bundle-modal-close {
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cc-bundle-modal-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.cc-bundle-modal-search-wrap {
    padding: 10px 22px;
    background: #f8fafc;
    border-bottom: 1px solid #f1f5f9;
}

.cc-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #94a3b8;
}

.cc-bundle-search-input {
    padding-left: 38px !important;
    height: 38px;
    border-radius: 10px;
    border: 1.5px solid #e2e8f0;
    font-size: 13px;
}

.cc-bundle-search-input:focus {
    border-color: #0f172a;
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}

.cc-bundle-modal-body,
#bundleCatalogModal .modal-body {
    padding: 16px 20px !important;
    max-height: 420px !important;
    overflow-y: auto !important;
    scrollbar-width: thin !important;
    scrollbar-color: #cbd5e1 transparent !important;
    background: #ffffff !important;
}

.cc-bundle-modal-body::-webkit-scrollbar {
    width: 6px;
}

.cc-bundle-modal-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.cc-bundle-catalog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.cc-bundle-catalog-item {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.2s ease;
}

.cc-bundle-catalog-item:hover {
    border-color: #0f172a;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.cc-catalog-thumb {
    height: 95px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: 7px;
    overflow: hidden;
    margin-bottom: 6px;
}

.cc-catalog-thumb img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.cc-catalog-title {
    font-size: 11.5px;
    font-weight: 750;
    color: #111827;
    margin-bottom: 4px;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 28px;
}

.cc-catalog-price {
    font-size: 13px;
    font-weight: 850;
    color: #0f172a;
}

.cc-catalog-variants {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 6px 0;
}

.cc-cat-var-pill {
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    font-size: 10px;
    font-weight: 700;
    color: #374151;
    cursor: pointer;
}

.cc-cat-var-pill.is-active {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
}

.cc-catalog-select-btn {
    width: 100%;
    background: #0f172a;
    color: #ffffff;
    border: none;
    border-radius: 7px;
    padding: 7px 10px;
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 6px;
}

.cc-catalog-select-btn:hover {
    background: #1e293b;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1199px) {
    .cc-bundle-catalog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991px) {
    .cc-bundle-slots-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    .cc-bundle-slot-img-wrap {
        height: 100px;
    }
    .cc-bundle-slot-card {
        min-height: 275px;
    }
    .cc-bundle-summary-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .cc-bundle-add-btn {
        width: 100%;
        padding: 11px 18px;
    }
    .cc-bundle-catalog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .cc-bundle-builder-wrap {
        padding: 15px 12px;
        border-radius: 14px;
    }
    .cc-bundle-slots-grid {
        grid-template-columns: repeat(3, minmax(210px, 1fr));
        overflow-x: auto;
        padding-bottom: 8px;
        scrollbar-width: thin;
        scroll-snap-type: x mandatory;
        gap: 10px;
    }
    .cc-bundle-slot-card {
        scroll-snap-align: start;
        min-height: 275px;
    }
    .cc-bundle-catalog-grid {
        grid-template-columns: 1fr;
    }
}
