/* ==========================================================================
   Fiyat vitrini (resources/views/paket/_vitrin.blade.php): açılış sayfası #fiyatlar ve firma sahibinin Paketler ekranı.
   Kaynak: Figma "Açılış ve giriş" sayfası → "Fiyatlar (yeni, 4 paket)" (masaüstü 1440 + mobil 375).
   Renkler kurumsal kimlikten (koyu yeşil #1F4938, nane #7FD1B3, açık yeşil #EEF6F2, mürekkep #111827); geri kalanı --ds-* (tasarim.css).
   Başlık ve fiyat Montserrat, gövde sayfanın yazı tipi. Sınıflar pv- önekli. Kart ızgarası kapsayıcı genişliğine göre (container query).
   ========================================================================== */
.pv-vitrin {
    --pv-koyu: #1f4938;
    --pv-koyu-yazi: #cfe7dd;
    --pv-nane: #7fd1b3;
    --pv-nane-koyu: #6cc3a4;
    --pv-acik: #eef6f2;
    --pv-acik-cizgi: #cfe7dd;
    --pv-murekkep: #111827;
    --pv-baslik: "Montserrat", "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
    container-type: inline-size;
    display: flex; flex-direction: column; gap: 40px;
    color: var(--ds-metin);
}
.pv-vitrin *, .pv-vitrin *::before, .pv-vitrin *::after { box-sizing: border-box; }
.pv-vitrin :where(h2, h3, h4, p, ul, dl, dd, fieldset, legend) { margin: 0; padding: 0; }
.pv-vitrin :where(ul) { list-style: none; }
.pv-vitrin svg { display: block; flex: 0 0 auto; }
.pv-gizli { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ------------------------------------------------------------------ dönem seçici (radyo grubu) */
.pv-donem-satir { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 16px; }
.pv-donem { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--pv-acik-cizgi); border-radius: 999px; background: var(--pv-acik); min-width: 0; }
.pv-secenek { position: relative; display: block; margin: 0; cursor: pointer; }
.pv-secenek input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.pv-secenek span {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 22px; border-radius: 999px;
    font-size: 15px; line-height: 22px; font-weight: 600; color: var(--pv-koyu); white-space: nowrap; transition: background-color .15s, color .15s;
}
.pv-secenek input:checked + span { background: var(--pv-koyu); color: #fff; box-shadow: 0 2px 6px rgba(16, 51, 38, .18); }
.pv-secenek input:focus-visible + span { box-shadow: var(--ds-odak); }
.pv-secenek:hover input:not(:checked) + span { background: rgba(31, 73, 56, .07); }
.pv-donem-not { font-size: 14px; line-height: 20px; color: var(--ds-metin-2); }

.pv-rozet { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; font-size: 11px; line-height: 16px; font-weight: 700; letter-spacing: .01em; color: var(--pv-koyu); white-space: nowrap; }
.pv-rozet--nane { background: var(--pv-nane); }
.pv-rozet--acik { background: var(--pv-acik); }
.pv-secenek input:checked + span .pv-rozet { background: var(--pv-nane); color: var(--pv-koyu); }

/* dönem: seçili olmayanın fiyatı ve düğmesi gizlenir */
.pv-vitrin[data-donem="aylik"] .pv-d-yillik, .pv-vitrin[data-donem="yillik"] .pv-d-aylik { display: none; }

/* ------------------------------------------------------------------ kartlar */
.pv-kartlar {
    display: grid; grid-template-columns: repeat(var(--pv-adet, 4), minmax(0, 1fr)); gap: 24px; align-items: stretch;
    width: 100%; max-width: calc(var(--pv-adet, 4) * 300px + (var(--pv-adet, 4) - 1) * 24px); margin: 0 auto;
}
.pv-kart {
    display: flex; flex-direction: column; gap: 20px; padding: 28px 24px; min-width: 0;
    border: 1px solid var(--ds-cizgi); border-radius: 16px; background: var(--ds-yuzey);
}
.pv-donemlik { display: flex; flex-direction: column; gap: 20px; }
.pv-ust { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.pv-ad { font-family: var(--pv-baslik); font-size: 20px; line-height: 28px; font-weight: 600; color: var(--pv-murekkep); overflow-wrap: anywhere; }
.pv-fiyat { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; }
.pv-tutar { font-family: var(--pv-baslik); font-size: 32px; line-height: 40px; font-weight: 700; letter-spacing: -.01em; color: var(--pv-koyu); white-space: nowrap; }
.pv-den { font-family: var(--pv-baslik); font-size: 18px; line-height: 24px; font-weight: 600; color: var(--pv-koyu); white-space: nowrap; }
.pv-eki { font-size: 15px; line-height: 22px; color: var(--ds-soluk); }
.pv-fiyat-not { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: -12px; font-size: 13px; line-height: 18px; font-weight: 500; color: var(--ds-metin-2); }
.pv-eylem { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.pv-eylem .ds-btn { width: 100%; }
.pv-btn-nane { background: var(--pv-nane); border-color: var(--pv-nane); color: var(--pv-koyu) !important; }
.pv-btn-nane:hover, .pv-btn-nane:active { background: var(--pv-nane-koyu); border-color: var(--pv-nane-koyu); color: var(--pv-koyu) !important; }
.pv-vitrin a.pv-teklif { margin-top: 2px; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ds-ana); text-decoration: none; }
.pv-vitrin a.pv-teklif:hover { color: var(--ds-ana-koyu); text-decoration: underline; }
.pv-teklif-not { max-width: 240px; font-size: 12px; line-height: 16px; color: var(--ds-soluk); text-align: center; }
.pv-mevcut { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.pv-mevcut small { font-size: 12px; line-height: 16px; color: var(--ds-soluk); }
.pv-vitrin a:focus-visible { outline: none; box-shadow: var(--ds-odak); border-radius: var(--ds-yaricap); }

/* sınır listesi: etiket–değer satırları */
.pv-ara { margin-bottom: 2px !important; font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .04em; color: var(--ds-ana); }
.pv-sinirlar dl > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--ds-cizgi); }
.pv-sinirlar dt { font-size: 14px; line-height: 22px; font-weight: 400; color: var(--ds-metin-2); }
.pv-sinirlar dd { font-size: 14px; line-height: 22px; font-weight: 600; color: var(--ds-metin); text-align: right; white-space: nowrap; }
.pv-sinirlar .pv-var { color: var(--ds-ana); }
.pv-sinirlar .pv-yok { font-weight: 400; color: var(--ds-soluk); }

/* öne çıkan kart (koyu yeşil) */
.pv-kart--one { border-color: var(--pv-koyu); background: var(--pv-koyu); box-shadow: 0 16px 32px -8px rgba(18, 61, 46, .28); }
.pv-kart--one .pv-ad, .pv-kart--one .pv-tutar, .pv-kart--one .pv-den, .pv-kart--one .pv-fiyat-not, .pv-kart--one .pv-sinirlar dd { color: #fff; }
.pv-kart--one .pv-eki, .pv-kart--one .pv-sinirlar dt, .pv-kart--one .pv-teklif-not, .pv-kart--one .pv-mevcut small { color: var(--pv-koyu-yazi); }
.pv-kart--one .pv-ara, .pv-kart--one .pv-sinirlar .pv-var { color: var(--pv-nane); }
.pv-kart--one .pv-sinirlar .pv-yok { color: var(--pv-koyu-yazi); }
.pv-kart--one .pv-sinirlar dl > div { border-bottom-color: rgba(255, 255, 255, .14); }
.pv-kart--one a.pv-teklif { color: var(--pv-nane); }
.pv-kart--one a:focus-visible { box-shadow: 0 0 0 3px rgba(127, 209, 179, .7); }

/* ------------------------------------------------------------------ her pakette */
.pv-her-pakette { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; padding: 32px; border-radius: 16px; background: var(--pv-acik); }
.pv-her-bas :where(h2, h3, h4) { font-family: var(--pv-baslik); font-size: 20px; line-height: 28px; font-weight: 600; color: var(--pv-koyu); }
.pv-her-bas p { margin-top: 8px; font-size: 14px; line-height: 20px; color: var(--ds-metin-2); }
.pv-her-pakette ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 24px; align-content: center; }
.pv-her-pakette li { display: flex; align-items: center; gap: 12px; font-size: 15px; line-height: 22px; font-weight: 500; color: var(--pv-koyu); }
.pv-simge { flex: 0 0 36px; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: var(--ds-yuzey); color: var(--ds-ana); }

/* ------------------------------------------------------------------ notlar */
.pv-notlar { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px 24px; padding-top: 24px; border-top: 1px solid var(--ds-cizgi); }
.pv-notlar dt { font-size: 13px; line-height: 18px; font-weight: 600; color: var(--ds-metin); }
.pv-notlar dd { margin-top: 4px !important; font-size: 13px; line-height: 20px; color: var(--ds-soluk); }

/* ------------------------------------------------------------------ dar kapsayıcı */
@container (max-width: 1040px) {
    .pv-kartlar { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); max-width: min(720px, calc(var(--pv-adet, 4) * 300px + (var(--pv-adet, 4) - 1) * 24px)); }
    .pv-her-pakette { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .pv-her-pakette ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container (max-width: 600px) {
    .pv-donem-satir { flex-direction: column; }
    .pv-donem { display: flex; width: 100%; }
    .pv-secenek { flex: 1 1 0; }
    .pv-secenek span { width: 100%; padding: 0 12px; }
    .pv-donem-not { font-size: 13px; text-align: center; }
    .pv-kartlar { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .pv-kart { padding: 24px 20px; gap: 18px; }
    .pv-tutar { font-size: 34px; }
    .pv-her-pakette { padding: 24px 20px; }
    .pv-her-pakette ul { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
    .pv-secenek span { transition: none; }
}
