/* ==========================================================================
   Luxury Liquid Glass 3-Slot Bundle Builder System (Arovell Style)
   ========================================================================== */

.cc-bundle-builder-wrap {
    background: #ffffff;
    border: 1.5px solid #ede8e1;
    border-radius: 20px;
    padding: 28px 24px;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.04);
    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.25;
    pointer-events: none;
    filter: grayscale(0.85);
    user-select: none;
    transition: all 0.3s ease;
}

.cc-bundle-pill-badge {
    display: inline-flex;
    align-items: center;
    background: var(--primary, #091712);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 6px;
}

.cc-bundle-pill-badge--shipping {
    background: #e0f2fe;
    color: #0369a1;
}

.cc-bundle-title {
    font-size: 22px;
    font-weight: 900;
    color: #091712;
    letter-spacing: -0.02em;
}

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

.cc-bundle-slot-card {
    background: #ffffff;
    border: 1.5px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    min-height: 440px;
}

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

.cc-slot-number {
    font-size: 11.5px;
    font-weight: 900;
    color: #091712;
    letter-spacing: 0.05em;
}

.cc-slot-status {
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #94a3b8;
}

.cc-slot-status--active {
    color: #059669;
    background: #ecfdf5;
    padding: 3px 9px;
    border-radius: 4px;
}

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

.cc-bundle-slot-img-wrap {
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 14px;
    padding: 8px;
}

.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.04);
}

.cc-bundle-slot-title {
    font-size: 15px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 12px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 40px;
}

/* Variant Pills in Slot Card */
.cc-bundle-slot-variants {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.cc-bundle-variant-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 11px;
    border-radius: 8px;
    border: 1.5px solid #e5e7eb;
    background: #ffffff;
    font-size: 12px;
    font-weight: 800;
    color: #1f2937;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cc-bundle-variant-pill:hover {
    border-color: var(--primary, #091712);
}

.cc-bundle-variant-pill.is-active {
    background: var(--primary, #091712);
    color: #ffffff;
    border-color: var(--primary, #091712);
}

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

.cc-bundle-slot-price {
    font-size: 16px;
    font-weight: 900;
    color: #091712;
}

.cc-bundle-slot-badge {
    background: var(--primary, #091712);
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 4px;
}

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

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

/* Empty Slot Card */
.cc-bundle-slot--empty {
    cursor: pointer;
    border-style: dashed;
    border-color: #cbd5e1;
    background: #fafafa;
}

.cc-bundle-slot--empty:hover {
    border-color: var(--primary, #091712);
    background: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.05);
}

.cc-bundle-slot-body--empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 380px;
    text-align: center;
    padding: 30px 20px;
}

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

.cc-bundle-plus-orb {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 2px dashed #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #64748b;
    margin-bottom: 16px;
    transition: all 0.25s ease;
}

.cc-bundle-slot--empty:hover .cc-bundle-plus-orb {
    border-color: var(--primary, #091712);
    color: var(--primary, #091712);
    background: #f1f5f9;
    transform: scale(1.08);
}

.cc-bundle-empty-text {
    font-size: 12.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
}

.cc-bundle-pick-btn {
    width: 100%;
    background: var(--primary, #091712);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 13px 18px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    transition: all 0.2s ease;
}

.cc-bundle-pick-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* ==========================================================================
   Master Bottom Summary Bar (Liquid White Glass Bar)
   ========================================================================== */

.cc-bundle-summary-bar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1.5px solid #e5e7eb;
    border-radius: 16px;
    padding: 20px 28px;
    color: #111827;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

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

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

.cc-bundle-final-price {
    font-size: 25px;
    font-weight: 900;
    color: var(--primary, #091712);
    letter-spacing: -0.02em;
}

.cc-bundle-save-amount {
    font-size: 18px;
    font-weight: 800;
    color: #059669;
    margin-right: 12px;
}

.cc-bundle-progress-chip {
    background: #f1f5f9;
    color: #091712;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    margin-left: 4px;
}

.cc-bundle-progress-chip--unlocked {
    background: var(--primary, #091712);
    color: #ffffff;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.15);
}

.cc-bundle-add-btn {
    background: var(--primary, #091712);
    color: #ffffff;
    font-weight: 900;
    font-size: 13.5px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border: none;
    border-radius: 12px;
    padding: 14px 28px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.cc-bundle-add-btn:hover {
    opacity: 0.92;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

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

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

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

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

.cc-bundle-modal-title {
    font-size: 18px;
    font-weight: 900;
    color: #091712;
}

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

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

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

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

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

.cc-bundle-search-input:focus {
    border-color: var(--primary, #091712);
    box-shadow: 0 0 0 3px rgba(9, 23, 18, 0.08);
}

.cc-bundle-modal-body,
#bundleCatalogModal .modal-body {
    padding: 18px 22px !important;
    max-height: 410px !important;
    overflow-y: auto !important;
    scrollbar-width: thin !important;
    scrollbar-color: #cbd5e1 transparent !important;
    border-bottom-left-radius: 22px !important;
    border-bottom-right-radius: 22px !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: 12px;
}

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

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

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

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

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

.cc-catalog-price {
    font-size: 13.5px;
    font-weight: 900;
    color: var(--primary, #091712);
}

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

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

.cc-cat-var-pill.is-active {
    background: var(--primary, #091712);
    color: #ffffff;
    border-color: var(--primary, #091712);
}

.cc-catalog-select-btn {
    width: 100%;
    background: var(--primary, #091712);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.cc-catalog-select-btn:hover {
    opacity: 0.9;
}

/* ==========================================================================
   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: 12px;
    }
    .cc-bundle-slot-img-wrap {
        height: 180px;
    }
    .cc-bundle-summary-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }
    .cc-bundle-catalog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .cc-bundle-builder-wrap {
        padding: 20px 14px;
        border-radius: 16px;
    }
    .cc-bundle-slots-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .cc-bundle-slot-img-wrap {
        height: 220px;
    }
    .cc-bundle-slot-body--empty {
        min-height: 240px;
        padding: 20px;
    }
    .cc-bundle-catalog-grid {
        grid-template-columns: 1fr;
    }
}
