/* Bundles Index (page-scoped, independent from global bundle rules) */
.bundle-shell[data-page="bundles-index"] {
    --bundles-surface: #ffffff;
    --bundles-ink: #0f172a;
    --bundles-muted: #64748b;
    --bundles-line: #d9e3f0;
    --bundles-soft: #f4f8fd;
    --bundles-soft-2: #eef4fb;
    --bundles-accent: #ff2d55;
    --bundles-accent-strong: #e11d48;
    background:
        radial-gradient(1200px 420px at 10% -15%, rgba(62, 122, 186, 0.16) 0%, rgba(62, 122, 186, 0) 56%),
        linear-gradient(180deg, #f7faff 0%, #f2f6fb 38%, #f5f7fb 100%);
    min-height: 100vh;
    padding: 24px 0 44px;
}

.bundle-shell[data-page="bundles-index"] .container {
    max-width: 1280px;
}

.bundle-shell[data-page="bundles-index"] .shop-hero.bundles-v2__hero {
    border-radius: 20px;
    border: 1px solid var(--bundles-line);
    background: var(--bundles-surface);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.bundle-shell[data-page="bundles-index"] .bundles-v2__hero-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.bundle-shell[data-page="bundles-index"] .bundles-v2__hero h1 {
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.08;
    letter-spacing: -0.01em;
    color: var(--bundles-ink);
}

.bundle-shell[data-page="bundles-index"] .bundles-v2__hero-meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.bundle-shell[data-page="bundles-index"] .breadcrumb a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.bundle-shell[data-page="bundles-index"] .breadcrumb i {
    color: #64748b;
    font-size: 12px;
}

.bundle-shell[data-page="bundles-index"] .bundles-v2__chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #cddcf0;
    border-radius: 999px;
    background: linear-gradient(180deg, #f8fbff 0%, #eff5fc 100%);
    color: #24496f;
    font-weight: 700;
}

.bundle-shell[data-page="bundles-index"] .bundles-v2__toolbar {
    border: 1px solid var(--bundles-line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    padding: 10px 12px;
    margin-bottom: 14px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 10px;
    align-items: center;
    position: sticky;
    top: 12px;
    z-index: 15;
}

.bundle-shell[data-page="bundles-index"] .bundles-v2__toolbar-search {
    position: relative;
    display: block;
    min-width: 0;
}

.bundle-shell[data-page="bundles-index"] .bundles-v2__toolbar-search > i {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    pointer-events: none;
    z-index: 2;
}

.bundle-shell[data-page="bundles-index"] .bundles-v2__toolbar-search .form-control {
    border-color: #d2ddea;
    min-width: 0;
    padding-left: 34px;
    padding-right: 40px;
    min-height: 40px;
}

.bundle-shell[data-page="bundles-index"] .bundles-v2__toolbar-search .form-control:focus {
    border-color: #3e7aba;
    box-shadow: 0 0 0 3px rgba(62, 122, 186, 0.15);
}

.bundle-shell[data-page="bundles-index"] .bundles-v2__toolbar-clear {
    border: 1px solid #d2ddea;
    background: #f8fbff;
    color: #3c4e65;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.15s ease, background-color 0.15s ease;
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
}

.bundle-shell[data-page="bundles-index"] .bundles-v2__toolbar-clear:hover {
    border-color: #3e7aba;
    background: #eef5ff;
}

.bundle-shell[data-page="bundles-index"] .bundles-v2__toolbar-sort {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.bundle-shell[data-page="bundles-index"] .bundles-v2__toolbar-sort label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #4b647f;
    font-weight: 600;
}

.bundle-shell[data-page="bundles-index"] .bundles-v2__toolbar-sort .form-select {
    min-width: 200px;
    border-color: #d2ddea;
    min-height: 38px;
}

.bundle-shell[data-page="bundles-index"] .bundles-v2__toolbar-sort .form-select:focus {
    border-color: #3e7aba;
    box-shadow: 0 0 0 3px rgba(62, 122, 186, 0.14);
}

.bundle-shell[data-page="bundles-index"] .bundles-v2__toolbar-count {
    color: var(--bundles-muted);
    font-size: 13px;
    white-space: nowrap;
}

.bundle-shell[data-page="bundles-index"] .bundles-v2__toolbar-count {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.bundle-shell[data-page="bundles-index"] .bundles-v2__toolbar-count i {
    color: #94a3b8;
    font-size: 13px;
}

.bundle-shell[data-page="bundles-index"] .bundles-v2__toolbar-count strong {
    color: var(--bundles-ink);
}

.bundle-shell[data-page="bundles-index"] .bundles-v2__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 18px;
}

.bundle-shell[data-page="bundles-index"] .bundles-v2__card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--bundles-line);
    border-radius: 18px;
    background: var(--bundles-surface);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
    align-self: start;
    height: auto;
    cursor: pointer;
}

.bundle-shell[data-page="bundles-index"] .bundles-v2__card--tiktok {
    border-radius: 20px;
    border: 1px solid #e5edf7;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.bundle-shell[data-page="bundles-index"] .bundles-v2__card:hover {
    transform: translateY(-2px);
    border-color: #b8cde6;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.11);
}

.bundle-shell[data-page="bundles-index"] .bundles-v2__card:focus-within {
    border-color: #3e7aba;
    box-shadow: 0 0 0 3px rgba(62, 122, 186, 0.16), 0 10px 22px rgba(15, 23, 42, 0.11);
}

.bundle-shell[data-page="bundles-index"] .bundles-v2__card:focus-visible {
    outline: 0;
    border-color: #3e7aba;
    box-shadow: 0 0 0 3px rgba(62, 122, 186, 0.2), 0 10px 22px rgba(15, 23, 42, 0.11);
}

.bundle-shell[data-page="bundles-index"] .bundles-v2__media {
    position: relative;
    display: block;
    border-bottom: 1px solid var(--bundles-line);
    background: linear-gradient(180deg, var(--bundles-soft) 0%, var(--bundles-soft-2) 100%);
    aspect-ratio: 16 / 10;
    height: auto;
    overflow: hidden;
}

.bundle-shell[data-page="bundles-index"] .bundles-v2__tag {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.2);
}

.bundle-shell[data-page="bundles-index"] .bundles-v2__media picture {
    display: block;
    width: 100%;
    height: 100%;
}

.bundle-shell[data-page="bundles-index"] .bundles-v2__media img {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    padding: 8px;
    object-fit: contain !important;
    transition: transform 0.22s ease;
    display: block;
}

.bundle-shell[data-page="bundles-index"] .product-tile:hover .bundles-v2__media img {
    transform: scale(1.03);
}

.bundle-shell[data-page="bundles-index"] .bundle-badge {
    top: 10px;
    right: 10px;
    left: auto;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: linear-gradient(135deg, var(--bundles-accent) 0%, var(--bundles-accent-strong) 100%);
    box-shadow: 0 8px 18px rgba(225, 29, 72, 0.35);
}

.bundle-shell[data-page="bundles-index"] .bundles-v2__count {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(15, 23, 42, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.bundle-shell[data-page="bundles-index"] .bundles-v2__body {
    display: grid;
    gap: 10px;
    height: auto;
    padding: 14px 14px 12px;
}

.bundle-shell[data-page="bundles-index"] .bundles-v2__title {
    min-height: 0;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 700;
    color: var(--bundles-ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bundle-shell[data-page="bundles-index"] .bundles-v2__meta-line {
    margin-top: -1px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    overflow: hidden;
    color: #3f5874;
    font-size: 12px;
    font-weight: 600;
}

.bundle-shell[data-page="bundles-index"] .bundles-v2__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}

.bundle-shell[data-page="bundles-index"] .bundles-v2__meta-item + .bundles-v2__meta-item::before {
    content: none;
}

.bundle-shell[data-page="bundles-index"] .bundles-v2__meta-icon {
    flex: 0 0 auto;
    margin-right: 0;
    line-height: 1;
    color: #567291;
    font-size: 12px;
}

.bundle-shell[data-page="bundles-index"] .bundles-v2__price-wrap {
    margin-top: 2px;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 8px;
    align-content: flex-start;
}

.bundle-shell[data-page="bundles-index"] .bundles-v2__from-label {
    font-size: 12px;
    font-weight: 700;
    color: #466589;
}

.bundle-shell[data-page="bundles-index"] .bundles-v2__price {
    font-size: clamp(28px, 2.9vw, 36px);
    font-weight: 900;
    letter-spacing: -0.015em;
    color: var(--bundles-accent-strong);
}

.bundle-shell[data-page="bundles-index"] .bundle-price-inline__vat {
    padding: 2px 8px;
    border-radius: 999px;
    background: #fff1f2;
    color: #be123c;
    font-weight: 700;
    font-size: 11px;
    white-space: nowrap;
}

.bundle-shell[data-page="bundles-index"] .bundle-meta {
    color: #7b8ca1;
    font-size: 13px;
    font-weight: 600;
}


.bundle-shell[data-page="bundles-index"] .product-grid > .text-center {
    grid-column: 1 / -1;
    border: 1px dashed var(--bundles-line);
    border-radius: 14px;
    background: #fff;
}

.bundle-shell[data-page="bundles-index"] .bundles-v2__empty {
    border: 1px dashed var(--bundles-line);
    border-radius: 12px;
    background: #fff;
    color: var(--bundles-muted);
    text-align: center;
    padding: 16px;
    margin-top: 12px;
}

.bundle-shell[data-page="bundles-index"] .bundles-v2__empty-title {
    font-size: 17px;
    font-weight: 700;
    color: #1f3047;
}

.bundle-shell[data-page="bundles-index"] .bundles-v2__empty-sub {
    margin-top: 6px;
    font-size: 13px;
    color: #60738d;
}

.bundle-shell[data-page="bundles-index"] .bundles-v2__empty-actions {
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.bundle-shell[data-page="bundles-index"] .bundles-v2__empty-suggest {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}

.bundle-shell[data-page="bundles-index"] .bundles-v2__empty-chip {
    border: 1px solid #c8d9ee;
    background: #f7fbff;
    border-radius: 999px;
    color: #35567a;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    line-height: 1.2;
}

.bundle-shell[data-page="bundles-index"] .bundles-v2__empty-chip:hover {
    border-color: #3e7aba;
    background: #edf5ff;
}

.bundle-shell[data-page="bundles-index"] .pagination {
    gap: 6px;
}

.bundle-shell[data-page="bundles-index"] .pagination .page-link {
    border-radius: 10px;
    border-color: var(--bundles-line);
    color: #334155;
    min-width: 38px;
    text-align: center;
}

.bundle-shell[data-page="bundles-index"] .pagination .active .page-link {
    border-color: #3e7aba;
    background: #3e7aba;
    color: #fff;
}

@media (max-width: 1199.98px) {
    .bundle-shell[data-page="bundles-index"] .container {
        max-width: 1120px;
    }

    .bundle-shell[data-page="bundles-index"] .bundles-v2__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }
}

@media (max-width: 991.98px) {
    .bundle-shell[data-page="bundles-index"] {
        padding-top: 18px;
    }

    .bundle-shell[data-page="bundles-index"] .bundles-v2__hero {
        border-radius: 16px;
    }

    .bundle-shell[data-page="bundles-index"] .bundles-v2__hero-row {
        align-items: flex-start;
        gap: 8px;
    }

    .bundle-shell[data-page="bundles-index"] .bundles-v2__toolbar {
        grid-template-columns: 1fr;
        top: 8px;
        padding: 10px;
    }

    .bundle-shell[data-page="bundles-index"] .bundles-v2__toolbar-sort {
        width: 100%;
        justify-content: space-between;
        gap: 10px;
    }

    .bundle-shell[data-page="bundles-index"] .bundles-v2__toolbar-sort .form-select {
        min-width: 0;
        width: 100%;
    }
}

@media (max-width: 767.98px) {
    .bundle-shell[data-page="bundles-index"] {
        padding-bottom: 26px !important;
    }

    .bundle-shell[data-page="bundles-index"] .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .bundle-shell[data-page="bundles-index"] .bundles-v2__toolbar-count {
        justify-content: flex-start;
        width: 100%;
    }

    .bundle-shell[data-page="bundles-index"] .bundles-v2__grid {
        grid-template-columns: 1fr;
    }

    .bundle-shell[data-page="bundles-index"] .bundles-v2__media img {
        height: 100%;
        aspect-ratio: auto;
        padding: 8px;
    }

    .bundle-shell[data-page="bundles-index"] .bundles-v2__hero {
        margin-bottom: 12px !important;
    }

    .bundle-shell[data-page="bundles-index"] .bundles-v2__hero-meta {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 2px;
        width: 100%;
        scrollbar-width: none;
    }

    .bundle-shell[data-page="bundles-index"] .bundles-v2__hero-meta::-webkit-scrollbar {
        display: none;
    }

    .bundle-shell[data-page="bundles-index"] .bundles-v2__chip {
        font-size: 11px;
        padding: 4px 8px;
        white-space: nowrap;
        flex: 0 0 auto;
    }

    .bundle-shell[data-page="bundles-index"] .bundles-v2__toolbar {
        margin-bottom: 12px;
        border-radius: 14px;
        gap: 9px;
    }

    .bundle-shell[data-page="bundles-index"] .bundles-v2__toolbar-sort {
        display: grid;
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .bundle-shell[data-page="bundles-index"] .bundles-v2__toolbar-sort label {
        font-size: 12px;
    }

    .bundle-shell[data-page="bundles-index"] .bundles-v2__toolbar-sort .form-select {
        min-height: 40px;
    }

    .bundle-shell[data-page="bundles-index"] .bundles-v2__grid {
        gap: 12px;
    }

    .bundle-shell[data-page="bundles-index"] .bundles-v2__card {
        border-radius: 16px;
    }

    .bundle-shell[data-page="bundles-index"] .bundles-v2__media {
        aspect-ratio: 4 / 3;
    }

    .bundle-shell[data-page="bundles-index"] .bundles-v2__body {
        padding: 12px;
    }

    .bundle-shell[data-page="bundles-index"] .bundles-v2__title {
        min-height: auto;
        font-size: 15px;
    }

    .bundle-shell[data-page="bundles-index"] .bundles-v2__tag {
        top: 8px;
        left: 8px;
        font-size: 10px;
        padding: 3px 8px;
    }

    .bundle-shell[data-page="bundles-index"] .bundle-badge {
        top: 8px;
        right: 8px;
    }

    .bundle-shell[data-page="bundles-index"] .bundles-v2__price {
        font-size: clamp(24px, 8.5vw, 30px);
    }

    .bundle-shell[data-page="bundles-index"] .bundle-meta {
        font-size: 12px;
    }

}

