/*
  Anasayfa lisans ürün kartları — kompakt & premium katman.
  Sadece .orvix-license-home bölümünü etkiler (lisans sayfasındaki kartlar aynı kalır).
*/

.orvix-license-home .orvix-license-media-grid--four {
    gap: 0.85rem;
}

.orvix-license-home .orvix-license-product-card {
    border-radius: 0.9rem;
    border-color: rgba(15, 23, 42, 0.09);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
    transition: transform 0.26s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.26s ease, border-color 0.26s ease;
}

.orvix-license-home .orvix-license-product-card:hover,
.orvix-license-home .orvix-license-product-card:focus-within {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--orvix-license-primary, #2563eb) 38%, transparent);
    box-shadow: 0 18px 34px -18px color-mix(in srgb, var(--orvix-license-primary, #2563eb) 55%, transparent);
}

/* kapak: kare (1/1) yerine 3:2 → kart belirgin şekilde kısalır, kutu görseli tam oturur */
.orvix-license-home .orvix-license-product-card .orvix-license-media-card__cover {
    aspect-ratio: 3 / 2;
}

.orvix-license-home .orvix-license-product-card .orvix-license-media-card__cover > img {
    transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.orvix-license-home .orvix-license-product-card:hover .orvix-license-media-card__cover > img {
    transform: scale(1.05);
}

/* rozetler: daha küçük ve zarif */
.orvix-license-home .orvix-license-card-badges {
    gap: 0.25rem;
}

.orvix-license-home .orvix-license-card-badges__item {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    padding: 0.2rem 0.42rem;
    gap: 0.22rem;
    border-radius: 0.45rem;
}

.orvix-license-home .orvix-license-card-badges__item i {
    font-size: 0.72rem;
}

/* kategori logosu küçült */
.orvix-license-home .orvix-license-product-card .orvix-license-media-card__logo {
    width: 2rem;
    height: 2rem;
}

/* gövde: sıkı tipografi */
.orvix-license-home .orvix-license-product-card__body {
    padding: 0.62rem 0.72rem 0.5rem;
    gap: 0.3rem;
}

.orvix-license-home .orvix-license-product-card__title {
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.28;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

/* fiyat tek satırda: eski üstü çizili + güncel */
.orvix-license-home .orvix-license-product-card__price-row {
    flex-direction: row;
    align-items: baseline;
    gap: 0.4rem;
}

.orvix-license-home .orvix-license-product-card__price-old {
    font-size: 0.72rem;
}

.orvix-license-home .orvix-license-product-card__price {
    font-size: 0.96rem;
}

/* aksiyonlar kompakt */
.orvix-license-home .orvix-license-product-card__actions {
    padding: 0 0.72rem 0.72rem;
    gap: 0.4rem;
    align-items: center;
}

.orvix-license-home .orvix-license-product-card__actions .orvix-license-cart-btn {
    height: 2.5rem;
    min-height: 2.5rem;
    padding: 0 0.6rem;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 0.65rem;
    gap: 0.4rem;
}

.orvix-license-home .orvix-license-product-card__actions .orvix-license-cart-btn i {
    font-size: 0.98rem;
}

.orvix-license-home .orvix-license-product-card__actions .orvix-catpkg-fav {
    flex: 0 0 2.5rem;
    width: 2.5rem;
    min-width: 2.5rem;
    height: 2.5rem;
    min-height: 2.5rem;
    border-radius: 0.65rem;
}

.orvix-license-home .orvix-license-product-card__actions .orvix-catpkg-fav i {
    font-size: 0.95rem;
}

/* koyu tema uyumu */
html[data-bs-theme="dark"] .orvix-license-home .orvix-license-product-card {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.09);
    box-shadow: none;
}

html[data-bs-theme="dark"] .orvix-license-home .orvix-license-product-card__title {
    color: rgba(255, 255, 255, 0.94);
}

html[data-bs-theme="dark"] .orvix-license-home .orvix-license-product-card__price-old {
    color: rgba(255, 255, 255, 0.45);
}

/* responsive: tablet 3, mobil 2 sütun */
@media (max-width: 991.98px) {
    .orvix-license-home .orvix-license-media-grid--four {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .orvix-license-home .orvix-license-media-grid--four {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.55rem;
    }

    .orvix-license-home .orvix-license-product-card__body {
        padding: 0.5rem 0.6rem 0.4rem;
        gap: 0.22rem;
    }

    .orvix-license-home .orvix-license-product-card__title {
        font-size: 0.76rem;
        line-height: 1.24;
    }

    .orvix-license-home .orvix-license-product-card__price {
        font-size: 0.86rem;
    }

    .orvix-license-home .orvix-license-product-card__price-old {
        font-size: 0.66rem;
    }

    /* aksiyon satırı: kompakt, sepet + favori aynı yükseklikte hizalı */
    .orvix-license-home .orvix-license-product-card__actions {
        padding: 0 0.6rem 0.6rem;
        gap: 0.35rem;
        align-items: center;
    }

    .orvix-license-home .orvix-license-product-card__actions .orvix-license-cart-btn {
        height: 2.2rem;
        min-height: 2.2rem;
        padding: 0 0.45rem;
        font-size: 0.72rem;
        border-radius: 0.55rem;
    }

    .orvix-license-home .orvix-license-product-card__actions .orvix-license-cart-btn span {
        display: none;
    }

    .orvix-license-home .orvix-license-product-card__actions .orvix-license-cart-btn i {
        font-size: 1rem;
    }

    .orvix-license-home .orvix-license-product-card__actions .orvix-catpkg-fav {
        flex: 0 0 2.2rem;
        width: 2.2rem;
        min-width: 2.2rem;
        height: 2.2rem;
        min-height: 2.2rem;
        border-radius: 0.55rem;
    }

    .orvix-license-home .orvix-license-product-card__actions .orvix-catpkg-fav i {
        font-size: 0.9rem;
    }

    .orvix-license-home .orvix-license-card-badges__item {
        font-size: 0.55rem;
        padding: 0.16rem 0.36rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .orvix-license-home .orvix-license-product-card,
    .orvix-license-home .orvix-license-product-card .orvix-license-media-card__cover > img {
        transition: none;
    }
}

/* ---------- "Daha fazla göster" toggle: desktop ilk 8, mobil ilk 4 ---------- */
.orvix-license-home__more-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-top: clamp(1.1rem, 2.2vw, 1.5rem);
}

.orvix-license-home__toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.62rem 1.4rem;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--orvix-license-primary, #2563eb) 26%, transparent);
    background: color-mix(in srgb, var(--orvix-license-primary, #2563eb) 9%, transparent);
    color: var(--orvix-license-primary, #2563eb);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.orvix-license-home__toggle:hover {
    background: color-mix(in srgb, var(--orvix-license-primary, #2563eb) 15%, transparent);
    transform: translateY(-1px);
}

.orvix-license-home__toggle > i {
    transition: transform 0.25s ease;
}

.orvix-license-home__toggle.is-open > i {
    transform: rotate(180deg);
}

/* desktop/tablet: 9. karttan itibaren gizli, açılınca göster */
.orvix-license-home [data-lic-grid] > .orvix-license-product-card:nth-child(n + 9) {
    display: none;
}

.orvix-license-home [data-lic-grid].is-expanded > .orvix-license-product-card:nth-child(n + 9) {
    display: flex;
    animation: orvixLicReveal 0.38s ease both;
}

/* mobil: 5. karttan itibaren gizli */
@media (max-width: 575.98px) {
    .orvix-license-home [data-lic-grid] > .orvix-license-product-card:nth-child(n + 5) {
        display: none;
    }

    .orvix-license-home [data-lic-grid].is-expanded > .orvix-license-product-card:nth-child(n + 5) {
        display: flex;
        animation: orvixLicReveal 0.38s ease both;
    }
}

@keyframes orvixLicReveal {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .orvix-license-home [data-lic-grid].is-expanded > .orvix-license-product-card {
        animation: none;
    }
}
