/**
 * Popüler paketler — bridge altı, zigzag yok.
 */
.orvix-popular-packages {
    position: relative;
    z-index: auto;
    --orvix-pp-plat: var(--bs-primary, #3762ea);
    --orvix-pp-sq-radius: var(--orvix-ui-radius-sm, 0.5rem);
    --orvix-pp-card-bg: rgba(30, 41, 59, 0.52);
    --orvix-pp-card-border: rgba(255, 255, 255, 0.1);
    padding: clamp(3.25rem, 5vw, 4.25rem) 0 clamp(7.5rem, 9vw, 9rem);
    background: linear-gradient(168deg, #1a222c 0%, #1e2630 48%, #181f28 100%);
    background-color: #181f28;
    margin-top: 0;
    overflow-x: clip;
}

html[data-bs-theme="dark"] .orvix-popular-packages {
    position: relative;
    z-index: 1;
    background: linear-gradient(168deg, #0a0e14 0%, #10161e 52%, #080c12 100%);
    background-color: #080c12;
    overflow-x: clip;
    overflow-y: visible;
    /* Promo kartları bindirmesi için ekstra alt alan */
}

/* Default dark — bindirme için hafif yukarı çekim + alt padding (Tüm Kategoriler) */
html[data-bs-theme="dark"][data-orvix-theme="orvapro-default"] .orvix-popular-packages {
    margin-top: clamp(-2.25rem, -3.5vw, -3rem);
    padding-top: clamp(3.25rem, 5vw, 4.25rem);
    padding-bottom: clamp(7.5rem, 9vw, 9rem);
    overflow: visible !important;
    background: linear-gradient(168deg, #0a0e14 0%, #10161e 52%, #080c12 100%);
    background-color: #080c12;
}

html[data-bs-theme="dark"][data-orvix-theme="orvapro-default"] .orvix-popular-packages::after {
    display: block;
}

.orvix-popular-packages::before {
    display: none !important;
    content: none !important;
    mask-image: none !important;
    -webkit-mask-image: none !important;
}

.orvix-popular-packages::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 34% 88% at -4% 50%, var(--orvix-primary-tint-14, rgba(55, 98, 234, 0.14)), transparent 70%),
        radial-gradient(ellipse 34% 88% at 104% 50%, var(--orvix-primary-tint-14, rgba(55, 98, 234, 0.14)), transparent 70%);
}

.orvix-popular-packages .fdh-shell {
    position: relative;
    z-index: 1;
}

.orvix-popular-packages__head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-items: start;
    column-gap: 1.25rem;
    row-gap: 0.5rem;
    margin: 0 0 clamp(1.65rem, 2.8vw, 2.15rem);
}

.orvix-popular-packages__title {
    grid-column: 1;
    grid-row: 1;
    margin: 0 !important;
    text-align: left;
}

.orvix-popular-packages__desc {
    grid-column: 1;
    grid-row: 2;
    margin: 0 !important;
    max-width: 32rem;
    text-align: left;
}

.orvix-popular-packages__tabs-wrap {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: start;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
}

.orvix-popular-packages__tabs {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.orvix-popular-packages__tabs .nav-item {
    flex: 0 0 auto;
}

.orvix-popular-packages__tabs .nav-link.orvix-popular-packages__tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.85rem;
    height: 2.85rem;
    min-width: 2.85rem;
    padding: 0;
    margin: 0;
    border-radius: var(--orvix-pp-sq-radius);
    font-size: 1.15rem;
    line-height: 0;
    color: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(15, 23, 42, 0.55);
    box-shadow: none;
    transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.orvix-popular-packages__tabs .nav-link.orvix-popular-packages__tab > i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.2em;
    height: 1.2em;
    font-size: 1.15rem;
    line-height: 1;
}

.orvix-popular-packages__tabs .nav-link.orvix-popular-packages__tab:hover {
    border-color: rgba(255, 255, 255, 0.28);
    color: #fff;
    background: rgba(15, 23, 42, 0.72);
}

.orvix-popular-packages__tabs .nav-link.orvix-popular-packages__tab.active {
    color: #fff;
    border-color: var(--orvix-pp-tab-accent, var(--bs-primary, #3762ea));
    background: var(--orvix-pp-tab-accent, var(--bs-primary, #3762ea));
}

@media (max-width: 767.98px) {
    .orvix-popular-packages__head {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        row-gap: 0.65rem;
        justify-items: center;
        text-align: center;
    }

    .orvix-popular-packages__title,
    .orvix-popular-packages__desc {
        grid-column: 1;
        text-align: center;
        max-width: none;
    }

    .orvix-popular-packages__title {
        grid-row: 1;
    }

    .orvix-popular-packages__desc {
        grid-row: 2;
    }

    .orvix-popular-packages__tabs-wrap {
        grid-column: 1;
        grid-row: 3;
        justify-content: center;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.15rem;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .orvix-popular-packages__tabs-wrap::-webkit-scrollbar {
        display: none;
    }

    .orvix-popular-packages__tabs {
        justify-content: center;
    }
}

.orvix-popular-packages__panes {
    width: 100%;
}

.orvix-popular-packages__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
    width: 100%;
}

@media (min-width: 768px) {
    .orvix-popular-packages__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.65rem;
    }
}

@media (min-width: 1200px) {
    .orvix-popular-packages__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .orvix-popular-packages__grid {
        grid-template-columns: 1fr;
        gap: 0.55rem;
    }
}

.orvix-popular-packages__card {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 4.75rem;
    padding: 0.6rem 0.6rem 0.6rem 0.7rem;
    border-radius: var(--orvix-ui-radius, 0.75rem);
    border: 1px solid var(--orvix-pp-card-border);
    background: var(--orvix-pp-card-bg);
    color: rgba(255, 255, 255, 0.94);
}

.orvix-popular-packages__card-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex: 1 1 auto;
    min-width: 0;
    text-decoration: none;
    color: inherit;
}

.orvix-popular-packages__card-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.65rem;
    height: 2.65rem;
    border-radius: var(--orvix-pp-sq-radius);
    background: var(--orvix-pp-plat);
    color: #fff;
    font-size: 1.2rem;
    line-height: 0;
}

.orvix-popular-packages__card-icon > i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.2em;
    height: 1.2em;
    font-size: 1.15rem;
    line-height: 1;
}

.orvix-popular-packages__card-body {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    min-width: 0;
}

.orvix-popular-packages__card-plat {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.2;
    color: var(--orvix-pp-plat);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.orvix-popular-packages__card-name {
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.25;
    color: rgba(255, 255, 255, 0.94);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

.orvix-popular-packages__card-buy {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 0.45rem;
}

.orvix-popular-packages__price-now {
    font-size: 0.88rem;
    font-weight: 400;
    line-height: 1.15;
    color: rgba(255, 255, 255, 0.92);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.orvix-popular-packages__cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    padding: 0;
    border-radius: var(--orvix-pp-sq-radius);
    border: none;
    background: var(--orvix-pp-plat);
    color: #fff;
    font-size: 1.05rem;
    line-height: 0;
    cursor: pointer;
}

.orvix-popular-packages__cart:hover,
.orvix-popular-packages__cart:focus-visible {
    filter: brightness(1.06);
    color: #fff;
    outline: none;
}

.orvix-popular-packages__pane-foot {
    position: relative;
    z-index: 8;
    display: flex;
    justify-content: center;
    margin-top: clamp(1.65rem, 3vw, 2.25rem);
    padding-top: 0.35rem;
    padding-bottom: clamp(1.5rem, 2.5vw, 2rem);
}

.orvix-popular-packages__all-cta {
    position: relative;
    z-index: 12;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 2.85rem;
    padding: 0.6rem 1.45rem;
    border-radius: 999px;
    background: var(--orvix-cta-btn-gradient, linear-gradient(135deg, #2dd4bf 0%, #3b82f6 100%));
    color: #fff !important;
    font-weight: 700;
    font-size: 0.88rem;
    line-height: 1.2;
    text-decoration: none;
    transition: filter 0.18s ease;
}

.orvix-popular-packages__all-cta:hover,
.orvix-popular-packages__all-cta:focus-visible {
    filter: brightness(1.06);
    color: #fff !important;
    outline: none;
}

.orvix-popular-packages__all-cta i {
    font-size: 1rem;
    line-height: 1;
}

.orvix-popular-packages__empty {
    margin: 0;
    padding: 0.85rem 1rem;
    border-radius: var(--orvix-pp-sq-radius);
    border: 1px dashed rgba(255, 255, 255, 0.22);
    background: rgba(15, 23, 42, 0.45);
    color: rgba(255, 255, 255, 0.78);
    text-align: center;
    font-size: 0.9rem;
}

.orvix-popular-packages__empty-all {
    margin: 0.25rem 0 0;
    padding: 0.85rem 1rem;
    border-radius: var(--orvix-pp-sq-radius);
    border: 1px dashed rgba(255, 255, 255, 0.22);
    background: rgba(15, 23, 42, 0.5);
    color: rgba(255, 255, 255, 0.82);
    text-align: center;
    font-size: 0.9rem;
}

.orvix-popular-packages__empty-all p {
    margin: 0;
}
