/* static/catalog/css/artspace_bundle.css */
.artspace-bundle-section {
    margin: 28px 0;
    padding: 24px;
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border-subtle, rgba(0,0,0,0.06));
    border-radius: 20px;
    contain: layout paint;
    box-shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.03);
}
html.dark-theme .artspace-bundle-section {
    background: #1c1d22;
    border-color: rgba(255,255,255,0.08);
    box-shadow: none;
}

.bundle-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.bundle-title-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bundle-icon {
    font-size: 1.3rem;
}

.bundle-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-main, #0f172a);
    margin: 0;
    letter-spacing: -0.3px;
}
html.dark-theme .bundle-title {
    color: #f8fafc;
}

.bundle-badge {
    background: #dcfce7;
    color: #166534;
    border: none;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
}
html.dark-theme .bundle-badge {
    background: rgba(22, 163, 74, 0.2);
    color: #4ade80;
}

.bundle-grid-track {
    display: flex;
    align-items: stretch;
    gap: 14px;
    overflow-x: auto;
    padding: 6px 4px 16px 4px;
    -webkit-overflow-scrolling: touch;
}

.bundle-card {
    flex: 1;
    min-width: 200px;
    max-width: 240px;
    padding: 16px;
    border-radius: 16px;
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border-subtle, rgba(0,0,0,0.08));
    position: relative;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s, border-color 0.2s;
    box-sizing: border-box;
}
html.dark-theme .bundle-card {
    background: #23242c;
    border-color: rgba(255,255,255,0.08);
}

.bundle-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px -4px rgba(0,0,0,0.06);
    border-color: rgba(0,91,255,0.3);
}
html.dark-theme .bundle-card:hover {
    box-shadow: 0 8px 24px -4px rgba(0,0,0,0.4);
    border-color: rgba(56,189,248,0.3);
}

.bundle-card.is-active,
.bundle-card.is-primary {
    background: var(--bg-card, #ffffff);
}
html.dark-theme .bundle-card.is-active,
html.dark-theme .bundle-card.is-primary {
    background: #23242c;
}

.bundle-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    min-height: 24px;
}

.bundle-role-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    display: inline-block;
}
.bundle-role-badge.primary-badge {
    background: rgba(255,106,0,0.1);
    color: #ff6a00;
}
html.dark-theme .bundle-role-badge.primary-badge {
    background: rgba(255,106,0,0.2);
    color: #ff9800;
}
.bundle-role-badge.addon-badge {
    background: rgba(0,0,0,0.04);
    color: #475569;
}
html.dark-theme .bundle-role-badge.addon-badge {
    background: rgba(255,255,255,0.08);
    color: #cbd5e1;
}

.bundle-custom-check-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
}
.bundle-checkbox {
    width: 18px;
    height: 18px;
    accent-color: #ff6a00;
    cursor: pointer;
}

.bundle-thumb {
    width: 100%;
    height: 110px;
    margin: 4px auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary, #f8fafc);
    border-radius: 12px;
    overflow: hidden;
}
html.dark-theme .bundle-thumb {
    background: #1c1d22;
}

.bundle-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.bundle-card:hover .bundle-thumb img {
    transform: scale(1.05);
}

.bundle-info {
    position: relative;
    z-index: 2;
}

.bundle-prod-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 12.5px;
    color: var(--text-main, #1e293b);
    line-height: 1.35;
    height: 34px;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 6px;
}
html.dark-theme .bundle-prod-title {
    color: #e2e8f0;
}
.bundle-prod-title:hover {
    color: #ff6a00;
}
html.dark-theme .bundle-prod-title:hover {
    color: #ff9800;
}

.bundle-prod-price {
    display: block;
    font-weight: 800;
    color: var(--text-main, #0f172a);
    font-variant-numeric: tabular-nums;
    font-size: 0.95rem;
}
html.dark-theme .bundle-prod-price {
    color: #ffffff;
}

.bundle-plus-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    align-self: center;
}

.bundle-plus {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-secondary, #f1f5f9);
    font-size: 1.1rem;
    font-weight: 700;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
html.dark-theme .bundle-plus {
    background: #272830;
    color: #94a3b8;
}

.bundle-summary-bar {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--border-subtle, rgba(0,0,0,0.06));
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}
html.dark-theme .bundle-summary-bar {
    border-top-color: rgba(255,255,255,0.08);
}

.bundle-pricing {
    contain: layout;
    font-variant-numeric: tabular-nums;
}

.bundle-summary-label {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted, #64748b);
    margin-bottom: 3px;
    font-weight: 500;
}

.bundle-price-values {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.bundle-old-price {
    text-decoration: line-through;
    color: var(--text-muted, #94a3b8);
    font-size: 0.95rem;
    font-weight: 500;
}

.bundle-final-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main, #0f172a);
    font-feature-settings: "tnum";
}
html.dark-theme .bundle-final-price {
    color: #ffffff;
}

.bundle-savings {
    display: inline-block;
    font-size: 0.8rem;
    color: #166534;
    background: #dcfce7;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
}
html.dark-theme .bundle-savings {
    background: rgba(22, 163, 74, 0.2);
    color: #4ade80;
}

.bundle-submit-btn {
    min-height: 48px;
    height: 48px;
    padding: 0 24px;
    background: linear-gradient(135deg, #ff6a00 0%, #ff4b00 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(255, 75, 0, 0.25);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.2s;
}

.bundle-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(255, 75, 0, 0.35);
}

.bundle-submit-btn:active {
    transform: scale(0.98);
}

/* Social Proof Bar — No broken orphaned lines */
.artspace-social-proof-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    padding: 8px 14px;
    background: var(--bg-secondary, #f8fafc);
    border: 1px solid var(--border-subtle, rgba(0,0,0,0.05));
    border-radius: 10px;
    margin: 10px 0 14px 0;
    contain: layout;
    font-size: 0.82rem;
    color: var(--text-muted, #475569);
    line-height: 1.4;
}
html.dark-theme .artspace-social-proof-bar {
    background: rgba(255,255,255,0.03);
    border-color: rgba(255,255,255,0.06);
    color: #94a3b8;
}

.sp-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.sp-num {
    display: inline-block;
    min-width: 1.2ch;
    text-align: center;
    font-variant-numeric: tabular-nums;
    color: var(--text-main, #0f172a);
    font-weight: 700;
}
html.dark-theme .sp-num {
    color: #f8fafc;
}

.pulse-eye {
    transition: transform 0.2s ease;
}

@keyframes eyePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* Instant Search Dropdown */
.search-suggest-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 100%;
    min-width: 360px;
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border-subtle, rgba(0,0,0,0.08));
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 1000;
    overflow: hidden;
    padding: 10px;
}

.suggest-cat-chips {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color, #f1f5f9);
}

.suggest-cat-chip {
    padding: 4px 10px;
    background: rgba(255, 106, 0, 0.08);
    color: #ff6a00;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.15s;
}

.suggest-cat-chip:hover {
    background: rgba(255, 106, 0, 0.15);
}

.suggest-prod-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-main, #0f172a);
    transition: background-color 0.15s;
    min-height: 48px;
}

.suggest-prod-item:hover,
.suggest-prod-item.is-highlighted {
    background: var(--bg-surface, #f8fafc);
}

.suggest-thumb {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    overflow: hidden;
    background: #f1f5f9;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.suggest-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.suggest-meta {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.suggest-title {
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.suggest-price {
    font-size: 0.78rem;
    color: #ff6a00;
    font-weight: 700;
}

.suggest-footer {
    padding-top: 8px;
    margin-top: 4px;
    border-top: 1px solid var(--border-color, #f1f5f9);
    text-align: center;
}

.suggest-all-link {
    font-size: 0.82rem;
    font-weight: 700;
    color: #ff6a00;
    text-decoration: none;
}

@media (max-width: 640px) {
    .bundle-grid-track {
        scroll-snap-type: x mandatory;
        padding-bottom: 12px;
    }
    .bundle-card {
        flex: 0 0 200px;
        scroll-snap-align: start;
    }
    .bundle-summary-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .bundle-submit-btn {
        width: 100%;
        justify-content: center;
    }
    .artspace-social-proof-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .search-suggest-dropdown {
        min-width: calc(100vw - 32px);
    }
}
