/* Hediye Seti Oluştur – /hediye-seti-olustur
   Sitenin canlı tema değişkenlerini (--cv-*) kullanır; yeni renk/yazı tanımlamaz. */
.hs { --hs-r: var(--media-radius, 16px); color: var(--cv-ink, #16142b); }
.hs *, .hs *::before, .hs *::after { box-sizing: border-box; }
.hs [hidden] { display: none !important; } /* .hs-form gibi display tanımlı öğelerde hidden niteliği çalışsın */
.hs .visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hs button { font: inherit; }
.hs :focus-visible { outline: 3px solid var(--cv-blue, #1f5eff); outline-offset: 2px; }

/* Hero */
.hs-hero { background: var(--cv-warm, #fff4ee); border-radius: 24px; padding: 32px 20px; margin: 16px 0 24px; display: grid; gap: 20px; align-items: center; overflow: hidden; }
.hs-hero h1 { font-size: clamp(2.6rem, 5vw, 4.4rem); line-height: 1.1; margin: 0 0 12px; }
.hs-hero p { font-size: 1.7rem; line-height: 1.55; color: var(--cv-muted, #5e5b72); margin: 0 0 20px; max-width: 52ch; }
.hs-hero__gorsel { max-width: 460px; width: 100%; justify-self: center; }
@media (min-width: 750px) { .hs-hero { grid-template-columns: 1.1fr 1fr; padding: 48px; } }

/* Butonlar: tema .button sınıfını kullanır; burada sadece boyut/durum */
.hs .button { min-height: 44px; }
.hs-btn-ikincil { background: #fff; color: var(--cv-ink); border: 2px solid var(--cv-ink); border-radius: var(--buttons-radius, 999px); padding: 10px 22px; min-height: 44px; font-weight: 600; cursor: pointer; }
.hs-btn-ikincil:hover { background: var(--cv-soft); }
.hs .button[disabled], .hs .button[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.hs-link { background: none; border: 0; padding: 4px 0; color: var(--cv-blue, #1f5eff); text-decoration: underline; cursor: pointer; min-height: 44px; font-size: 1.4rem; }

/* Adım göstergesi */
.hs-adimlar { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0 0 20px; overflow-x: auto; scrollbar-width: none; }
.hs-adimlar li { flex: 1 1 0; min-width: 0; }
.hs-adimlar button { width: 100%; min-height: 48px; display: flex; align-items: center; gap: 8px; justify-content: center; border: 1px solid var(--cv-line); background: #fff; border-radius: 999px; padding: 6px 10px; cursor: pointer; color: var(--cv-muted); font-size: 1.4rem; font-weight: 600; white-space: nowrap; }
.hs-adimlar .no { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--cv-soft); color: var(--cv-ink); font-size: 1.3rem; flex: none; }
.hs-adimlar button[aria-current="step"] { border-color: var(--cv-red); color: var(--cv-ink); box-shadow: var(--cv-shadow); }
.hs-adimlar button[aria-current="step"] .no { background: var(--cv-red); color: #fff; }
.hs-adimlar button.tamam .no { background: var(--cv-teal, #00a99d); color: #fff; }
.hs-adimlar button:disabled { cursor: not-allowed; opacity: .55; }
@media (max-width: 600px) { .hs-adimlar .ad { display: none; } .hs-adimlar button[aria-current="step"] .ad { display: inline; } }

/* Yerleşim */
.hs-duzen { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) { .hs-duzen { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; } }
.hs-adim h2 { font-size: 2.4rem; margin: 0 0 6px; }
.hs-adim .alt { color: var(--cv-muted); margin: 0 0 16px; font-size: 1.5rem; }
.hs-adim h3 { font-size: 1.9rem; margin: 28px 0 12px; }
.hs-adim-alt { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--cv-line); }
.hs-uyari { color: var(--cv-red-dark, #b00b17); font-weight: 600; font-size: 1.4rem; }

/* Sekmeler */
.hs-sekmeler { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 14px; scrollbar-width: thin; }
.hs-sekmeler button { flex: none; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--cv-line); background: #fff; cursor: pointer; font-weight: 600; font-size: 1.4rem; color: var(--cv-ink); }
.hs-sekmeler button[aria-selected="true"] { background: var(--cv-ink); color: #fff; border-color: var(--cv-ink); }

/* Ürün kartları */
.hs-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 750px) { .hs-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.hs-kart { background: #fff; border: 1px solid var(--cv-line); border-radius: var(--hs-r); padding: 10px; display: flex; flex-direction: column; gap: 6px; position: relative; transition: box-shadow .2s, border-color .2s; }
.hs-kart:hover { box-shadow: var(--cv-shadow); }
.hs-kart.secili { border-color: var(--cv-red); box-shadow: 0 0 0 2px var(--cv-red) inset; }
.hs-kart.hata { border-color: var(--cv-red-dark); background: #fff6f6; }
.hs-kart__gorsel { aspect-ratio: 1; background: #fff; border-radius: 12px; overflow: hidden; display: grid; place-items: center; }
.hs-kart__gorsel img { width: 100%; height: 100%; object-fit: contain; }
.hs-kart__ad { font-size: 1.45rem; font-weight: 600; line-height: 1.3; margin: 2px 0 0; }
.hs-kart__bilgi { font-size: 1.3rem; color: var(--cv-muted); margin: 0; }
.hs-kart__fiyat { font-size: 1.6rem; font-weight: 700; margin: 0; }
.hs-kart__fiyat small { font-size: 1.1rem; font-weight: 500; color: var(--cv-muted); }
.hs-kart__hata { font-size: 1.3rem; color: var(--cv-red-dark); font-weight: 600; margin: 0; }
.hs-kart .button, .hs-kart .hs-btn-ikincil { width: 100%; margin-top: auto; padding: 8px 12px; font-size: 1.4rem; }
.hs-rozet { position: absolute; top: 14px; left: 14px; background: var(--cv-red); color: #fff; border-radius: 999px; font-size: 1.2rem; font-weight: 700; padding: 3px 10px; z-index: 1; }

/* Renk seçici */
.hs-renkler { display: flex; flex-wrap: wrap; gap: 10px; margin: 2px 0; padding: 0; border: 0; }
.hs-renkler legend { font-size: 1.2rem; color: var(--cv-muted); padding: 0; margin-bottom: 4px; }
.hs-renk { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px #c9c7d6; cursor: pointer; padding: 0; position: relative; background: var(--sw, #eee); }
.hs-renk::after { content: ""; position: absolute; inset: -7px; } /* 44px dokunma alanı */
.hs-renk[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--cv-ink); }
.hs-renk:disabled { cursor: not-allowed; opacity: .5; }
.hs-renk:disabled::before { content: ""; position: absolute; left: 50%; top: -2px; bottom: -2px; width: 2px; background: var(--cv-red-dark); transform: rotate(45deg); }
.hs-renk--yazi { width: auto; height: 30px; border-radius: 999px; padding: 0 10px; font-size: 1.2rem; background: #fff; }

/* Adet */
.hs-adet { display: inline-flex; align-items: center; border: 1px solid var(--cv-line); border-radius: 999px; overflow: hidden; }
.hs-adet button { width: 44px; height: 44px; border: 0; background: var(--cv-soft); cursor: pointer; font-size: 1.8rem; color: var(--cv-ink); }
.hs-adet button:disabled { opacity: .4; cursor: not-allowed; }
.hs-adet output { min-width: 34px; text-align: center; font-weight: 700; }

/* Paketler */

/* Not */
.hs-not label { display: block; font-weight: 600; margin-bottom: 6px; }
.hs-not textarea { width: 100%; min-height: 110px; border: 1px solid #c9c7d6; border-radius: var(--inputs-radius, 12px); padding: 12px; font: inherit; font-size: 1.6rem; resize: vertical; }
.hs-sayac { font-size: 1.3rem; color: var(--cv-muted); text-align: right; margin-top: 4px; }

/* Özet */
.hs-ozet { width: 100%; border-collapse: collapse; font-size: 1.45rem; }
.hs-ozet th, .hs-ozet td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--cv-line); vertical-align: middle; }
.hs-ozet td.sag, .hs-ozet th.sag { text-align: right; white-space: nowrap; }
.hs-ozet img { width: 48px; height: 48px; object-fit: contain; border-radius: 8px; border: 1px solid var(--cv-line); background: #fff; }
.hs-ozet td:nth-child(2) { overflow-wrap: anywhere; }
.hs-ozet .hs-link { white-space: nowrap; }
.hs-ozet tfoot td { font-weight: 700; font-size: 1.6rem; border-bottom: 0; }
@media (max-width: 600px) {
  .hs-ozet thead { display: none; }
  .hs-ozet tr { display: grid; grid-template-columns: 56px 1fr auto; gap: 2px 10px; padding: 10px 0; border-bottom: 1px solid var(--cv-line); }
  .hs-ozet td { border: 0; padding: 0; }
  .hs-ozet td:first-child { grid-row: span 3; }
  .hs-ozet tfoot tr { grid-template-columns: 1fr auto; }
}
.hs-son-butonlar { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.hs-son-butonlar > * { flex: 1 1 240px; }

/* Hediye Setim paneli */
.hs-panel { background: #fff; border: 1px solid var(--cv-line); border-radius: 20px; padding: 16px; box-shadow: var(--cv-shadow); }
@media (min-width: 1024px) { .hs-panel { position: sticky; top: 130px; max-height: calc(100vh - 150px); overflow: auto; } }
.hs-panel h2 { font-size: 2rem; margin: 0 0 10px; }
.hs-satirlar { list-style: none; margin: 12px 0; padding: 0; display: grid; gap: 10px; }
.hs-satir { display: grid; grid-template-columns: 44px 1fr auto; gap: 8px; align-items: center; font-size: 1.35rem; }
.hs-satir img { width: 44px; height: 44px; object-fit: contain; border-radius: 8px; border: 1px solid var(--cv-line); background: #fff; }
.hs-satir .ad { font-weight: 600; line-height: 1.25; }
.hs-satir .renk { color: var(--cv-muted); font-size: 1.25rem; }
.hs-satir .islem { display: flex; align-items: center; gap: 6px; grid-column: 2 / 4; justify-content: space-between; }
.hs-satir.hata .ad { color: var(--cv-red-dark); }
.hs-toplamlar { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 6px; font-size: 1.45rem; }
.hs-toplamlar dt { color: var(--cv-muted); }
.hs-toplamlar dd { margin: 0; text-align: right; font-weight: 600; }
.hs-toplamlar .genel { font-size: 1.8rem; color: var(--cv-ink); font-weight: 700; }
.hs-kdv { font-size: 1.2rem; color: var(--cv-muted); margin: 6px 0 12px; }
.hs-panel .button { width: 100%; }
.hs-bos { color: var(--cv-muted); font-size: 1.4rem; margin: 8px 0; }


/* Mobil alt çubuk ve alt sayfa */
.hs-cubuk { display: none; }
@media (max-width: 1023px) {
  .hs-cubuk { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: #fff; border-top: 1px solid var(--cv-line); box-shadow: 0 -6px 20px rgba(22,20,43,.1); padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); gap: 10px; align-items: center; }
  .hs-cubuk__toplam { flex: 1; min-width: 0; line-height: 1.2; }
  .hs-cubuk__toplam strong { display: block; font-size: 1.6rem; white-space: nowrap; }
  .hs-cubuk__toplam span { font-size: 1.25rem; color: var(--cv-muted); }
  .hs-cubuk .hs-btn-ikincil { padding: 8px 12px; font-size: 1.3rem; white-space: nowrap; }
  .hs-cubuk .button { padding: 8px 14px; font-size: 1.3rem; white-space: nowrap; min-width: 0; }
  .hs-cubuk__toplam span { white-space: nowrap; }
  body:has(#hediye-seti) .th-whatsapp-float { bottom: 92px !important; }
  body.hs-sayfa-acik .th-whatsapp-float { display: none !important; }
  .hs { padding-bottom: 90px; }
  .hs-panel { display: none; }
  .hs-panel.acik { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; max-height: 88vh; overflow: auto; border-radius: 20px 20px 0 0; animation: hs-yukari .25s ease-out; padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
  .hs-perde { position: fixed; inset: 0; background: rgba(22,20,43,.45); z-index: 55; }
}
@keyframes hs-yukari { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.hs-panel__kapat { display: none; }
@media (max-width: 1023px) { .hs-panel__kapat { display: inline-grid; place-items: center; position: absolute; right: 10px; top: 10px; width: 44px; height: 44px; border: 0; background: var(--cv-soft); border-radius: 50%; font-size: 2rem; cursor: pointer; } .hs-panel { position: relative; } }

/* Toplu teklif formu */
.hs-form { display: grid; gap: 14px; margin-top: 16px; background: var(--cv-soft); border-radius: 20px; padding: 18px; }
.hs-form h3 { margin: 0; }
.hs-form .alan { display: grid; gap: 6px; }
.hs-form label, .hs-form legend { font-weight: 600; font-size: 1.4rem; }
.hs-form input[type=text], .hs-form input[type=email], .hs-form input[type=tel], .hs-form input[type=number], .hs-form input[type=date], .hs-form textarea { width: 100%; min-height: 44px; border: 1px solid #c9c7d6; border-radius: var(--inputs-radius, 12px); padding: 10px 12px; font: inherit; font-size: 1.6rem; background: #fff; }
.hs-form fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 16px; }
.hs-form fieldset label { font-weight: 500; display: inline-flex; gap: 8px; align-items: center; min-height: 44px; }
.hs-form input[type=checkbox] { width: 20px; height: 20px; }
.hs-form .ikili { display: grid; gap: 14px; }
@media (min-width: 750px) { .hs-form .ikili { grid-template-columns: 1fr 1fr; } }
.hs-form pre { white-space: pre-wrap; background: #fff; border: 1px solid var(--cv-line); border-radius: 12px; padding: 12px; font: inherit; font-size: 1.35rem; margin: 0; max-height: 260px; overflow: auto; }
.hs-form .hata-metni { color: var(--cv-red-dark); font-size: 1.3rem; }
.hs-hp { position: absolute !important; left: -9999px !important; }

/* Fiyat değişti penceresi */
.hs-dialog { border: 0; border-radius: 20px; padding: 20px; max-width: 480px; width: calc(100% - 24px); box-shadow: var(--cv-shadow-hover); }
.hs-dialog::backdrop { background: rgba(22,20,43,.5); }
.hs-dialog ul { padding-left: 18px; }
.hs-dialog .hs-son-butonlar { margin-top: 12px; }

/* Ana sayfa kartı */
.hs-anasayfa { margin: 40px auto; }
.hs-anasayfa__kart { display: grid; gap: 20px; align-items: center; background: var(--cv-warm, #fff4ee); border-radius: 24px; padding: 24px; text-decoration: none; color: var(--cv-ink); }
.hs-anasayfa__kart h2 { font-size: clamp(2.4rem, 4vw, 3.4rem); margin: 0 0 8px; }
.hs-anasayfa__kart p { margin: 0 0 16px; color: var(--cv-muted); font-size: 1.6rem; }
.hs-anasayfa__kart img { width: 100%; max-width: 440px; justify-self: center; border-radius: 16px; }
@media (min-width: 750px) { .hs-anasayfa__kart { grid-template-columns: 1fr 1fr; padding: 40px; } }

@media (prefers-reduced-motion: reduce) {
  .hs-panel.acik { animation: none; }
  .hs-kart { transition: none; }
}

/* Siyah çerçeve önizlemesi (kutu seçimi kaldırıldı) */
.hs-cerceve { border: 10px solid #111; border-radius: 18px; background: #fff; padding: 16px; }
.hs-cerceve__liste { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: flex-end; }
.hs-cerceve__oge { position: relative; flex: 0 1 25%; max-width: 120px; aspect-ratio: 1; }
.hs-cerceve__oge.termos { flex-basis: 33%; max-width: 160px; aspect-ratio: 3 / 4; }
.hs-cerceve__oge img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(0,0,0,.18)); }
.hs-cerceve__adet { position: absolute; top: 0; right: 0; background: #111; color: #fff; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 2px 7px; }
.hs-cerceve__bos { text-align: center; color: var(--cv-muted, #6b6b6b); padding: 32px 8px; margin: 0; }
.hs-cerceve__oge.dus { animation: hs-dus .35s ease-out; }
@keyframes hs-dus { from { transform: translateY(-24px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hs-cerceve__oge.dus { animation: none; } }
.hs-hero__gorsel { aspect-ratio: 1; width: 100%; height: auto; object-fit: contain; }
.hs-anasayfa__kart img { height: auto; aspect-ratio: 1; object-fit: contain; }

/* Set adedi (minimum 100 set) */
.hs-set-adedi { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 16px 0; }
.hs-set-adedi label { font-weight: 700; font-size: 1.5rem; }
.hs-set-adedi input { width: 84px; height: 44px; border: 0; text-align: center; font: inherit; font-weight: 700; font-size: 1.6rem; -moz-appearance: textfield; }
.hs-set-adedi input::-webkit-outer-spin-button, .hs-set-adedi input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.hs-set-adedi__not { flex-basis: 100%; margin: 0; font-size: 1.35rem; color: var(--cv-muted, #5e5b72); }
.hs-set-adedi__not.uyari { color: var(--cv-red-dark, #b3001b); font-weight: 700; }
.hs-min-not { margin-top: -8px; }

/* Panel: sette / toplam adet, toplam tutar ve birim fiyat */
.hs-satir .miktar { color: var(--cv-muted); font-size: 1.2rem; margin-top: 2px; }
.hs-satir .tutar { display: grid; justify-items: end; line-height: 1.2; }
.hs-satir .tutar small { color: var(--cv-muted); font-size: 1.15rem; font-weight: 400; white-space: nowrap; }
.hs-satir .tutar strong { white-space: nowrap; }
.hs-set-adedi--panel { margin: 12px 0; padding-top: 12px; border-top: 1px solid var(--cv-line); }
.hs-set-adedi--panel input { width: 72px; }

/* + Kutu Fiyatı satırı (set başına hediye kutusu) */
.hs-kutu-satir { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 4px 0 10px; padding: 10px 0; border-top: 1px dashed var(--cv-line); font-size: 1.4rem; font-weight: 600; }
.hs-kutu-satir .tutar { display: grid; justify-items: end; line-height: 1.2; }
.hs-kutu-satir .tutar small { color: var(--cv-muted); font-size: 1.15rem; font-weight: 400; }

/* "Fiyatlarımız KDV hariçtir." – fiyat alanında okunur uyarı */
.hs-kdv-not { margin: 8px 0 0; font-size: 1.45rem; font-weight: 700; color: var(--cv-ink, #16142b); }
.hs-panel .hs-kdv-not + .hs-kdv { margin-top: 2px; }
.hs-ozet .hs-kdv-satir td { border-bottom: 0; padding-top: 0; }
.hs-ozet .hs-kdv-satir .hs-kdv-not { margin: 0; }
.hs-cubuk__toplam .hs-kdv-not { display: block; margin: 1px 0 0; font-size: 1.25rem; line-height: 1.25; color: var(--cv-ink, #16142b); white-space: normal; }
