/* ============================================================
   HEDIYE SEPETI - 5 ADIMLI STEPPER
   ============================================================ */

/* Tasarim token'lari (modal .hediye-sepet disinda oldugu icin ona da tanimli) */
.hediye-sepet,
.hediye-modal-overlay {
    --hd-primary: #4a90c8;
    --hd-primary-hover: #3f81b7;
    --hd-primary-strong: #2f6c9c;
    --hd-primary-soft: #f2f7fc;
    --hd-primary-ring: #dde9f4;
    --hd-primary-border: #e0eaf3;
    --hd-border: #e4e7eb;
    --hd-border-soft: #eef0f3;
    --hd-border-hover: #d3d8de;
    --hd-border-hover-soft: #d5dae0;
    --hd-surface-hover: #fafbfc;
    --hd-surface: #ffffff;
    --hd-text: #111827;
    --hd-text-body: #4b5563;
    --hd-muted: #8a919b;
    --hd-success: #1f9d63;
    --hd-success-text: #23804f;
    --hd-success-soft: #e9f6ef;
    --hd-success-border: #c9ead8;
    --hd-danger: #c9434f;
    --hd-danger-soft: #fdeeee;
    --hd-danger-border: #f7dcdc;
    --hd-danger-hover-bg: #fbe1e1;
    --hd-danger-hover-border: #f1c9c9;
    --hd-warning-text: #9a6212;
    --hd-radius-lg: 20px;
    --hd-radius-md: 14px;
    --hd-radius-sm: 12px;
    --hd-control-h: 52px;
    --hd-ease: cubic-bezier(0.23, 1, 0.32, 1);
}

.hediye-sepet {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 60px;
    color: var(--hd-text);
}
@media (max-width: 768px) {
    .hediye-sepet { padding-top: 30px; }
}

/* ============================================================
   STEPPER
   ============================================================ */
.hediye-stepper {
    display: flex;
    margin: 0 0 36px 0;
    padding: 0;
}
.hediye-stepper-item {
    flex: 1;
    text-align: center;
    position: relative;
    cursor: not-allowed;
}
.hediye-stepper-item.tamamlandi,
.hediye-stepper-item.aktif {
    cursor: pointer;
}

/* Cizgi: iki daire arasinda bosluklu kisa segment */
.hediye-stepper-item::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 84%;
    width: 32%;
    height: 2px;
    border-radius: 2px;
    background: var(--hd-border);
    transition: background-color .2s ease;
}
.hediye-stepper-item:last-child::after {
    display: none;
}
.hediye-stepper-item.tamamlandi::after {
    background: var(--hd-primary);
}

/* Numara dairesi */
.hediye-stepper-item .step-numara {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    background: var(--hd-surface);
    border: 1.5px solid var(--hd-border);
    color: var(--hd-muted);
    font-weight: 600;
    font-size: 15px;
    font-variant-numeric: tabular-nums;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.hediye-stepper-item.aktif .step-numara {
    border: 2px solid var(--hd-primary);
    color: var(--hd-primary-strong);
    box-shadow: 0 0 0 5px var(--hd-primary-ring);
}
.hediye-stepper-item.tamamlandi .step-numara {
    background: var(--hd-primary);
    border-color: var(--hd-primary);
    color: #fff;
}
.hediye-stepper-item.tamamlandi .step-numara span { display: none; }
.hediye-stepper-item.tamamlandi .step-numara::before {
    content: "\e92b";
    font-family: Feather;
    font-size: 18px;
    line-height: 1;
}

/* Baslik */
.hediye-stepper-item .step-baslik {
    font-size: 15px;
    margin-top: 12px;
    font-weight: 500;
    color: var(--hd-muted);
    line-height: 1.25;
    transition: color .2s ease;
}
.hediye-stepper-item.aktif .step-baslik {
    color: var(--hd-primary-strong);
    font-weight: 600;
}
.hediye-stepper-item.tamamlandi .step-baslik {
    color: var(--hd-text);
    font-weight: 600;
}

/* ============================================================
   PANEL (KART)
   ============================================================ */
.hediye-step-panel {
    background: var(--hd-surface);
    border: 1px solid var(--hd-border);
    border-radius: var(--hd-radius-lg);
    box-shadow: 0 1px 2px rgba(17, 24, 39, 0.03);
    display: none;
}
/* Sag sutunu olmayan adimlar (sepet, alici, gonderen) dar ve ortali */
.hediye-step-panel[data-panel="1"],
.hediye-step-panel[data-panel="3"],
.hediye-step-panel[data-panel="4"] {
    max-width: 820px;
    margin-inline: auto;
}
.hediye-step-panel.aktif {
    display: block;
    animation: fadeIn .2s var(--hd-ease);
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.hediye-panel-baslik {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    column-gap: 16px;
    row-gap: 6px;
    align-items: center;
    padding: 32px 40px 28px;
    border-bottom: 1px solid var(--hd-border-soft);
}
.hediye-panel-ikon {
    width: 42px;
    height: 42px;
    border-radius: var(--hd-radius-sm);
    background: var(--hd-primary-soft);
    border: 1px solid var(--hd-primary-border);
    color: var(--hd-primary-strong);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    flex-shrink: 0;
}
.hediye-step-baslik {
    margin: 0;
    font-size: 24px;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--hd-text);
}
.hediye-step-aciklama {
    grid-column: 2;
    margin: 0;
    color: var(--hd-text-body);
    font-size: 15px;
    line-height: 1.6;
}

.hediye-panel-govde {
    padding: 32px 40px 36px;
}

/* ============================================================
   ORTAK FORM OGELERI
   ============================================================ */
.hediye-etiket {
    display: block;
    margin-bottom: 10px;
    font-size: 15px;
    font-weight: 600;
    color: var(--hd-text);
}
.hediye-alan { margin-bottom: 22px; }
.hediye-alan:last-child { margin-bottom: 0; }
.hediye-form-dar {
    width: 100%;
}

.hediye-input {
    display: block;
    width: 100%;
    height: var(--hd-control-h);
    padding: 0 18px;
    font: inherit;
    font-size: 15px;
    color: var(--hd-text);
    background: var(--hd-surface);
    border: 1.5px solid var(--hd-border);
    border-radius: var(--hd-radius-sm);
    outline: none;
    appearance: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.hediye-input::placeholder { color: var(--hd-muted); opacity: 1; }
.hediye-input:focus {
    border-color: var(--hd-primary);
}
.hediye-textarea {
    height: auto;
    min-height: 120px;
    padding: 14px 18px;
    line-height: 1.55;
    resize: vertical;
}

.hediye-ipucu {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 10px 0 0;
    font-size: 14px;
    line-height: 1.45;
    color: var(--hd-muted);
}
.hediye-ipucu .fe { font-size: 14px; line-height: 1.45; }

.hediye-rozet {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 5px 13px;
    border-radius: 999px;
    background: var(--hd-primary-soft);
    border: 1px solid var(--hd-primary-border);
    color: var(--hd-primary-strong);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.hediye-rozet.basari {
    background: var(--hd-success-soft);
    border-color: var(--hd-success-border);
    color: var(--hd-success-text);
    font-size: 12px;
    padding: 3px 10px;
}

.hediye-gorsel-gizli {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
    opacity: 0;
}

/* Ortak odak halkasi */
.hediye-input:focus,
.hediye-btn:focus-visible,
.hediye-segment-btn:focus-visible,
.hediye-modal-kapat:focus-visible,
.hediye-onay-kutu:focus-visible,
.hediye-odeme-secenek:has(.hediye-odeme-radio:focus-visible) {
    outline: none;
    box-shadow: 0 0 0 4px var(--hd-primary-ring);
}

/* Butonlar */
.hediye-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: var(--hd-control-h);
    padding: 0 26px;
    border-radius: var(--hd-radius-sm);
    font: inherit;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .16s var(--hd-ease);
}
.hediye-btn:active:not(:disabled) { transform: scale(0.97); }
.hediye-btn:disabled { opacity: .55; cursor: not-allowed; }
.hediye-btn .fe { font-size: 17px; }

.hediye-btn-birincil {
    background: var(--hd-primary);
    color: #fff;
    box-shadow: 0 10px 22px -10px rgba(74, 144, 200, 0.75);
}
.hediye-btn-birincil:focus-visible {
    box-shadow: 0 0 0 4px var(--hd-primary-ring), 0 10px 22px -10px rgba(74, 144, 200, 0.75);
}
.hediye-btn-ikincil {
    background: var(--hd-surface);
    border-color: var(--hd-border);
    color: var(--hd-text);
}
.hediye-btn-ikincil .fe { color: var(--hd-muted); }
@media (hover: hover) and (pointer: fine) {
    .hediye-btn-birincil:hover:not(:disabled) { background: var(--hd-primary-hover); color: #fff; }
    .hediye-btn-ikincil:hover:not(:disabled) { border-color: var(--hd-border-hover); background: var(--hd-surface-hover); color: var(--hd-text); }
}

/* Step navigasyon */
.hediye-step-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 32px;
}
/* Tek buton kaldiginda (adim 1) de saga yaslansin */
.hediye-step-nav .step-ileri,
.hediye-step-nav #hediye_siparis_btn { margin-left: auto; }

/* ============================================================
   ADIM 1: SEPET
   ============================================================ */
.hediye-bolum-ust {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.hediye-arama {
    position: relative;
    margin-bottom: 22px;
}
.hediye-arama-ikon {
    position: absolute;
    left: 18px;
    top: calc(var(--hd-control-h) / 2);
    transform: translateY(-50%);
    font-size: 18px;
    color: var(--hd-muted);
    pointer-events: none;
}
.hediye-sepet .hediye-arama-input { padding-left: 48px; }

.hediye-sepet .hediye-arama-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 20;
    padding: 6px;
    background: var(--hd-surface);
    border: 1px solid var(--hd-border);
    border-radius: var(--hd-radius-md);
    box-shadow: 0 16px 32px -12px rgba(17, 24, 39, 0.18);
    max-height: 320px;
    overflow-y: auto;
    display: none;
    transform-origin: top center;
}
.hediye-sepet .hediye-arama-dropdown:not(:empty) {
    display: block;
    animation: hediyeAcilir .16s var(--hd-ease);
}
@keyframes hediyeAcilir {
    from { opacity: 0; transform: translateY(-4px) scale(0.98); }
    to { opacity: 1; transform: none; }
}
.hediye-sepet .hediye-arama-sonuc-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color .12s ease;
}
.hediye-sepet .hediye-arama-sonuc-item:hover {
    background-color: var(--hd-primary-soft);
}
.hediye-sepet .hediye-arama-sonuc-item.bilgi {
    cursor: default;
    color: var(--hd-muted);
    font-size: 14px;
}
.hediye-sepet .hediye-arama-sonuc-item.bilgi:hover { background: transparent; }
.hediye-sepet .hediye-arama-sonuc-item.hata { color: var(--hd-danger); }
.hediye-sepet .hediye-arama-sonuc-item img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}
.hediye-arama-sonuc-bilgi { flex: 1; min-width: 0; }
.hediye-arama-sonuc-adi {
    font-size: 14px;
    font-weight: 600;
    color: var(--hd-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.hediye-arama-sonuc-fiyat {
    font-size: 13px;
    color: var(--hd-muted);
    font-variant-numeric: tabular-nums;
}
.hediye-arama-ekle {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--hd-primary-soft);
    border: 1px solid var(--hd-primary-border);
    color: var(--hd-primary-strong);
    flex-shrink: 0;
}

.hediye-kurs-listesi {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.hediye-sepet .hediye-kurs-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 18px 20px 22px;
    border: 1px solid var(--hd-border);
    border-radius: var(--hd-radius-md);
    background: var(--hd-surface);
    transition: border-color .15s ease;
}
@media (hover: hover) and (pointer: fine) {
    .hediye-sepet .hediye-kurs-item:hover { border-color: var(--hd-border-hover-soft); }
}
.hediye-kurs-gorsel {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
    background: var(--hd-border-soft);
}
.hediye-kurs-bilgi { flex: 1; min-width: 0; }
.hediye-kurs-adi {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--hd-text);
}
.hediye-kurs-fiyat {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    column-gap: 10px;
    margin-top: 6px;
}
.hediye-fiyat {
    font-size: 16px;
    font-weight: 700;
    color: var(--hd-text);
    font-variant-numeric: tabular-nums;
}
.hediye-fiyat-eski {
    font-size: 14px;
    color: var(--hd-muted);
    font-variant-numeric: tabular-nums;
}
.hediye-kurs-cikar {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid var(--hd-danger-border);
    background: var(--hd-danger-soft);
    color: var(--hd-danger);
    font-size: 18px;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, transform .16s var(--hd-ease);
}
.hediye-kurs-cikar:active:not(:disabled) { transform: scale(0.95); }
.hediye-kurs-cikar:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--hd-danger-border); }
.hediye-kurs-cikar:disabled { opacity: .5; cursor: progress; }
@media (hover: hover) and (pointer: fine) {
    .hediye-kurs-cikar:hover:not(:disabled) { background: var(--hd-danger-hover-bg); border-color: var(--hd-danger-hover-border); }
}

.hediye-bos-durum {
    padding: 28px 24px;
    border: 1.5px dashed var(--hd-border);
    border-radius: var(--hd-radius-md);
    text-align: center;
    font-size: 15px;
    line-height: 1.55;
    color: var(--hd-muted);
}

.hediye-sepet-ozet {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 26px;
    padding: 20px 22px;
    background: var(--hd-primary-soft);
    border: 1px solid var(--hd-primary-border);
    border-radius: var(--hd-radius-md);
}
.hediye-sepet-ozet[hidden] { display: none; }
.hediye-sepet-ozet-metin {
    font-size: 15px;
    color: var(--hd-primary-strong);
}
.hediye-sepet-ozet-metin strong { color: var(--hd-text); font-weight: 700; }
.hediye-sepet-ozet-tutar {
    display: flex;
    align-items: baseline;
    gap: 10px;
}
.hediye-sepet-ozet-toplam {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--hd-text);
    font-variant-numeric: tabular-nums;
}

/* ============================================================
   ADIM 2: KART (tasarim, kime/kimden, mesaj, zaman + canli onizleme)
   Kartin kendisi kart.css'te (.hd-kart)
   ============================================================ */
.hediye-kart-duzen {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(340px, 40%, 440px);
    grid-template-rows: auto 1fr;
    grid-template-areas:
        "form onizleme"
        "zaman onizleme";
    column-gap: 40px;
    row-gap: 0;
    align-items: start;
}
.hediye-kart-form { grid-area: form; min-width: 0; }
.hediye-kart-onizleme { grid-area: onizleme; }
/* Bolum 4 DOM'da onizlemeden sonra; masaustunde sol sutunda bolum 3'un altina oturur */
.hediye-kart-form > .hediye-kart-bolum:last-child { padding-bottom: 28px; }
.hediye-kart-bolum.hediye-kart-bolum-zaman {
    grid-area: zaman;
    min-width: 0;
    padding-bottom: 0;
}

/* Numarali bolumler */
.hediye-kart-bolum {
    padding: 28px 0;
    border-top: 1px solid var(--hd-border-soft);
}
.hediye-kart-bolum:first-child { padding-top: 0; border-top: 0; }
.hediye-kart-bolum:last-child { padding-bottom: 0; }
.hediye-bolum-baslik {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 18px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--hd-text);
}
.hediye-bolum-no {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--hd-primary-soft);
    border: 1px solid var(--hd-primary-border);
    color: var(--hd-primary-strong);
    font-size: 13px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.hediye-bolum-ust-satir {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}
.hediye-bolum-ust-satir .hediye-bolum-baslik { margin-bottom: 0; }
.hediye-bolum-not {
    font-size: 13px;
    color: var(--hd-muted);
    white-space: nowrap;
}

/* 1. Tasarim kutulari */
.hediye-sablon-izgara {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}
.hediye-sepet .hediye-kart-secim {
    position: relative;
    display: block;
    margin: 0;
    cursor: pointer;
}
.hediye-sablon-kart {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 100%;
    padding: 6px 6px 10px;
    border: 1.5px solid var(--hd-border);
    border-radius: var(--hd-radius-md);
    background: var(--hd-surface);
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease, transform .16s var(--hd-ease);
}
.hediye-kart-secim:active .hediye-sablon-kart { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
    .hediye-kart-secim:hover .hediye-sablon-kart { border-color: var(--hd-border-hover); }
}
.hediye-sablon-gorsel {
    display: block;
    aspect-ratio: 160 / 110;
    border-radius: 9px;
    overflow: hidden;
    background: var(--hd-primary-soft);
}
.hediye-sablon-gorsel svg { display: block; width: 100%; height: 100%; }
.hediye-sablon-gorsel[data-illustrasyon="dogum_gunu"] { background: #fde6ec; }
.hediye-sablon-gorsel[data-illustrasyon="yeni_yil"] { background: #e7eefb; }
.hediye-sablon-gorsel[data-illustrasyon="tebrikler"] { background: #e3f3ea; }
.hediye-sablon-gorsel[data-illustrasyon="klasik"] { background: #fdf1dc; }
.hediye-sablon-adi {
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
    color: var(--hd-text);
}
.hediye-sablon-tik {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--hd-primary);
    box-shadow: 0 0 0 3px var(--hd-surface);
    color: #fff;
    font-size: 13px;
    opacity: 0;
    transform: scale(0.85);
    transition: opacity .15s ease, transform .2s var(--hd-ease);
}
.hediye-sepet .kart-sablon-input:checked + .hediye-sablon-kart {
    border-color: var(--hd-primary);
    background: var(--hd-primary-soft);
    box-shadow: 0 0 0 3px var(--hd-primary-ring);
}
.hediye-sepet .kart-sablon-input:checked + .hediye-sablon-kart .hediye-sablon-tik {
    opacity: 1;
    transform: scale(1);
}
.hediye-sepet .kart-sablon-input:focus-visible + .hediye-sablon-kart {
    outline: 2px solid var(--hd-primary);
    outline-offset: 3px;
}

/* 2. Kime, kimden */
.hediye-alan-cift {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}
.hediye-alan-cift .hediye-alan { margin-bottom: 0; }
.hediye-alan-cift .hediye-ipucu { font-size: 13px; margin-top: 8px; }
.hediye-zorunlu { color: var(--hd-primary); }
.hediye-input:disabled {
    background: var(--hd-surface-hover);
    border-color: var(--hd-border-soft);
    color: var(--hd-muted);
    cursor: not-allowed;
}
.hediye-alan:has(.hediye-input:disabled) .hediye-etiket,
.hediye-alan:has(.hediye-input:disabled) .hediye-ipucu { color: var(--hd-muted); }

.hediye-onay {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 4px 0 0;
    font-size: 15px;
    color: var(--hd-text-body);
    cursor: pointer;
}
.hediye-onay-kutu {
    appearance: none;
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    margin: 0;
    flex-shrink: 0;
    border: 1.5px solid var(--hd-border);
    border-radius: 6px;
    background: var(--hd-surface) center / 14px 14px no-repeat;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.hediye-onay-kutu:checked {
    background-color: var(--hd-primary);
    border-color: var(--hd-primary);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}
.hediye-onay-not { color: var(--hd-muted); }

/* 3. Mesaj */
.hediye-sayac {
    margin-top: 8px;
    text-align: right;
    font-size: 14px;
    color: var(--hd-muted);
    font-variant-numeric: tabular-nums;
}
.hediye-mesaj-kutu { position: relative; }
.hediye-mesaj-kutu .hediye-textarea {
    min-height: 116px;
    padding-bottom: 38px;
}
.hediye-mesaj-kutu .hediye-sayac {
    position: absolute;
    right: 16px;
    bottom: 12px;
    margin: 0;
    font-size: 13px;
    line-height: 1;
    pointer-events: none;
}
.hediye-oneriler {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}
.hediye-oneriler[hidden] { display: none; }
.hediye-oneri {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    padding: 0 14px;
    border: 1.5px solid var(--hd-border);
    border-radius: 999px;
    background: var(--hd-surface);
    color: var(--hd-text-body);
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    text-align: left;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease, color .15s ease, transform .16s var(--hd-ease);
}
.hediye-oneri .fe { display: none; font-size: 14px; }
.hediye-oneri:active { transform: scale(0.97); }
.hediye-oneri[aria-pressed="true"] {
    border-color: var(--hd-primary-ring);
    background: var(--hd-primary-soft);
    color: var(--hd-primary-strong);
}
.hediye-oneri[aria-pressed="true"] .fe { display: inline-block; }
.hediye-oneri:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px var(--hd-primary-ring);
}
@media (hover: hover) and (pointer: fine) {
    .hediye-oneri:hover { border-color: var(--hd-border-hover); color: var(--hd-text); }
    .hediye-oneri[aria-pressed="true"]:hover { border-color: var(--hd-primary-ring); color: var(--hd-primary-strong); }
}

/* 4. Gonderim zamani */
.hediye-zaman-izgara {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.hediye-zaman-kart {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 14px 16px;
    border: 1.5px solid var(--hd-border);
    border-radius: var(--hd-radius-sm);
    background: var(--hd-surface);
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.hediye-zaman-kart:has(.hediye-zaman-radio:checked) {
    border-color: var(--hd-primary);
    background: var(--hd-primary-soft);
}
.hediye-zaman-kart:has(.hediye-zaman-radio:focus-visible) { box-shadow: 0 0 0 4px var(--hd-primary-ring); }
@media (hover: hover) and (pointer: fine) {
    .hediye-zaman-kart:hover { border-color: var(--hd-border-hover); }
    .hediye-zaman-kart:has(.hediye-zaman-radio:checked):hover { border-color: var(--hd-primary); }
}
.hediye-zaman-radio {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    margin: 0;
    flex-shrink: 0;
    border: 1.5px solid var(--hd-border-hover);
    border-radius: 50%;
    background: var(--hd-surface);
    cursor: pointer;
    transition: border-color .15s ease, border-width .15s var(--hd-ease);
}
.hediye-zaman-radio:checked {
    border: 6px solid var(--hd-primary);
}
.hediye-zaman-radio:focus-visible { outline: none; }
.hediye-zaman-metin {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}
.hediye-zaman-metin strong {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--hd-text);
}
.hediye-zaman-metin small {
    font-size: 13px;
    line-height: 1.35;
    color: var(--hd-muted);
}
.hediye-tarih-alani {
    margin-top: 18px;
    max-width: 280px;
    animation: fadeIn .2s var(--hd-ease);
}
.hediye-tarih-alani[hidden] { display: none; }
.hediye-tarih-alani .hediye-ipucu { font-size: 13px; margin-top: 8px; }

/* Sag sutun: canli onizleme */
.hediye-kart-onizleme { min-width: 0; }
.hediye-onizleme-ust {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.hediye-onizleme-etiket {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--hd-muted);
}
.hediye-kart-sahne {
    --hediye-sahne: #f8f4ec;
    padding: 26px 22px;
    border-radius: var(--hd-radius-lg);
    border: 1px solid rgba(17, 24, 39, 0.04);
    background-color: var(--hediye-sahne);
    background-image: radial-gradient(rgba(17, 24, 39, 0.075) 1px, transparent 1.4px);
    background-size: 14px 14px;
    background-position: 7px 7px;
    transition: background-color .25s ease;
}
.hediye-kart-sahne .hd-kart-giris { animation: hediyeKartGiris .22s var(--hd-ease); }
@keyframes hediyeKartGiris {
    from { opacity: .4; transform: scale(0.985); }
    to { opacity: 1; transform: scale(1); }
}
.hediye-bilgi-kutusu.sade {
    margin-top: 16px;
    padding: 14px 16px;
    background: var(--hd-surface);
    border-color: var(--hd-border);
    color: var(--hd-text-body);
    font-size: 13.5px;
    line-height: 1.55;
}
.hediye-bilgi-kutusu.sade > .fe { color: var(--hd-muted); font-size: 16px; }

/* Iki sutun sigmadiginda: form ustte, onizleme altta */
@media (max-width: 991px) {
    .hediye-kart-duzen {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto;
        grid-template-areas: "form" "onizleme" "zaman";
    }
    .hediye-kart-onizleme { width: 100%; max-width: 440px; margin: 0 auto; }
    .hediye-kart-bolum.hediye-kart-bolum-zaman { margin-top: 28px; }
}

/* ============================================================
   ADIM 3: ILETISIM YONTEMI
   ============================================================ */
.hediye-segment {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.hediye-segment-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: var(--hd-control-h);
    padding: 0 14px;
    border: 1.5px solid var(--hd-border);
    border-radius: var(--hd-radius-sm);
    background: var(--hd-surface);
    color: var(--hd-text);
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease, color .15s ease, transform .16s var(--hd-ease);
}
.hediye-segment-btn .fe { font-size: 17px; color: var(--hd-muted); transition: color .15s ease; }
.hediye-segment-btn:active { transform: scale(0.98); }
.hediye-segment-btn.active {
    border-color: var(--hd-primary);
    background: var(--hd-primary-soft);
    color: var(--hd-primary-strong);
}
.hediye-segment-btn.active .fe { color: var(--hd-primary-strong); }
@media (hover: hover) and (pointer: fine) {
    .hediye-segment-btn:not(.active):hover { border-color: var(--hd-border-hover); }
}

/* ============================================================
   ADIM 4: GONDEREN - EMAIL KONTROL
   ============================================================ */
.hediye-gonderen-detaylar {
    display: none;
    margin-top: 22px;
    animation: fadeIn .2s var(--hd-ease);
}
.hediye-gonderen-detaylar.aktif { display: block; }

/* Satir ici durum satiri (e-posta kontrol, modal) */
.hediye-email-info,
.hediye-durum {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 12px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
    color: var(--hd-muted);
}
.hediye-email-info .fe,
.hediye-durum .fe { font-size: 15px; line-height: 1.35; flex-shrink: 0; }
.hediye-durum:empty { margin-top: 0; }
/* Modal (#modal_hata_alani) .hediye-sepet disinda oldugu icin overlay kapsami da gerekli */
.hediye-sepet .durum-basari, .hediye-modal-overlay .durum-basari { color: var(--hd-success-text); font-weight: 600; }
.hediye-sepet .durum-bilgi, .hediye-modal-overlay .durum-bilgi { color: var(--hd-primary-strong); }
.hediye-sepet .durum-uyari, .hediye-modal-overlay .durum-uyari { color: var(--hd-warning-text); }
.hediye-sepet .durum-hata, .hediye-modal-overlay .durum-hata { color: var(--hd-danger); }
.hediye-sepet .durum-yukleniyor, .hediye-modal-overlay .durum-yukleniyor { color: var(--hd-muted); }

.hediye-bilgi-kutusu {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 24px;
    padding: 18px 20px;
    background: var(--hd-primary-soft);
    border: 1px solid var(--hd-primary-border);
    border-radius: var(--hd-radius-md);
    font-size: 14px;
    line-height: 1.6;
    color: var(--hd-primary-strong);
}
.hediye-bilgi-kutusu > .fe { font-size: 17px; line-height: 1.4; flex-shrink: 0; }
.hediye-bilgi-kutusu strong { color: var(--hd-text); font-weight: 700; }
.hediye-bilgi-kutusu.basari {
    margin-top: 0;
    background: var(--hd-success-soft);
    border-color: var(--hd-success-border);
    color: var(--hd-success-text);
}

/* ============================================================
   ADIM 5: OZET VE ODEME
   ============================================================ */
.hediye-odeme-duzen {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 20px;
    align-items: start;
}
.hediye-odeme-sol,
.hediye-odeme-sag {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}
.hediye-ozet-kutu {
    border: 1px solid var(--hd-border);
    border-radius: var(--hd-radius-md);
    background: var(--hd-surface);
    overflow: hidden;
}
.hediye-ozet-baslik {
    margin: 0;
    padding: 14px 18px;
    border-bottom: 1px solid var(--hd-border-soft);
    font-size: 15px;
    font-weight: 600;
    color: var(--hd-text);
}
.hediye-ozet-icerik {
    padding: 14px 18px;
    font-size: 14px;
    color: var(--hd-text-body);
}
.hediye-ozet-satir {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--hd-border-soft);
}
.hediye-ozet-satir:first-child { padding-top: 0; }
.hediye-ozet-satir:last-child { border-bottom: 0; padding-bottom: 0; }
.hediye-ozet-satir span:first-child { color: var(--hd-text); min-width: 0; }
.hediye-ozet-satir span:last-child {
    font-weight: 600;
    color: var(--hd-text);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.hediye-ozet-alici-adi { font-weight: 600; color: var(--hd-text); }
.hediye-ozet-alici-iletisim {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    color: var(--hd-muted);
    overflow-wrap: anywhere;
}
.hediye-ozet-kart-liste {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
}
.hediye-ozet-kart-liste > div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
}
.hediye-ozet-kart-liste dt {
    flex-shrink: 0;
    font-weight: 400;
    color: var(--hd-muted);
}
.hediye-ozet-kart-liste dd {
    margin: 0;
    min-width: 0;
    text-align: right;
    font-weight: 600;
    color: var(--hd-text);
    overflow-wrap: anywhere;
}
.hediye-ozet-bos { color: var(--hd-muted); }

.hediye-toplam-satir {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    color: var(--hd-text-body);
}
.hediye-toplam-tutar {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--hd-text);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
/* display JS tarafinda 'flex' / 'none' olarak yazilir */
.hediye-havale-satiri {
    justify-content: space-between;
    gap: 12px;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--hd-success-text);
    font-variant-numeric: tabular-nums;
}
.hediye-havale-satiri .fe { margin-right: 4px; }

.hediye-odeme-secenekler {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.hediye-odeme-secenek {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 12px 14px;
    border: 1.5px solid var(--hd-border);
    border-radius: var(--hd-radius-sm);
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease;
}
.hediye-odeme-secenek:has(.hediye-odeme-radio:checked) {
    border-color: var(--hd-primary);
    background: var(--hd-primary-soft);
}
@media (hover: hover) and (pointer: fine) {
    .hediye-odeme-secenek:hover { border-color: var(--hd-border-hover); }
    .hediye-odeme-secenek:has(.hediye-odeme-radio:checked):hover { border-color: var(--hd-primary); }
}
.hediye-odeme-radio {
    width: 18px;
    height: 18px;
    margin: 0;
    flex-shrink: 0;
    accent-color: var(--hd-primary);
    cursor: pointer;
}
.hediye-odeme-radio:focus-visible { outline: none; }
.hediye-odeme-adi {
    font-size: 15px;
    font-weight: 500;
    color: var(--hd-text);
}

.hediye-hata-alani:not(:empty) { margin-top: 20px; }
.hediye-hata-alani .alert { margin-bottom: 0; border-radius: var(--hd-radius-sm); }

/* ============================================================
   MODAL POPUP - EMAIL KAYITLI ISE GIRIS
   ============================================================ */
.hediye-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    animation: hediyeSolma .2s ease;
}
.hediye-modal-overlay.aktif { display: flex; }
@keyframes hediyeSolma {
    from { opacity: 0; }
    to { opacity: 1; }
}
.hediye-modal {
    position: relative;
    background: var(--hd-surface);
    color: var(--hd-text);
    border-radius: var(--hd-radius-lg);
    width: 92%;
    max-width: 440px;
    box-shadow: 0 30px 60px -20px rgba(15, 23, 42, 0.4);
    overflow: hidden;
    animation: modalIn .22s var(--hd-ease);
}
@keyframes modalIn {
    from { opacity: 0; transform: translateY(12px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.hediye-modal-baslik {
    padding: 28px 28px 0;
}
.hediye-modal-baslik .hediye-panel-ikon { margin-bottom: 16px; }
.hediye-modal-baslik h4 {
    margin: 0;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: -0.01em;
    color: var(--hd-text);
}
.hediye-modal-baslik p {
    margin: 6px 0 0 0;
    color: var(--hd-text-body);
    font-size: 14px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}
.hediye-modal-icerik {
    padding: 22px 28px 0;
}
.hediye-modal-aksiyon {
    padding: 22px 28px 28px;
    display: flex;
    gap: 12px;
}
.hediye-modal-aksiyon .hediye-btn { flex: 1; padding: 0 16px; }
.hediye-modal-kapat {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: transparent;
    border: 0;
    font-size: 18px;
    color: var(--hd-muted);
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
}
.hediye-modal-kapat:hover { background: var(--hd-border-soft); color: var(--hd-text); }

/* Sifre yardim linki */
.hediye-sifremi-unuttum {
    display: block;
    text-align: right;
    font-size: 13px;
    font-weight: 500;
    margin-top: 10px;
    color: var(--hd-primary-strong);
}

/* ============================================================
   MOBIL
   ============================================================ */
@media (max-width: 768px) {
    .hediye-stepper { margin-bottom: 24px; }
    .hediye-stepper-item .step-baslik { display: none; }
    .hediye-stepper-item .step-numara { width: 36px; height: 36px; font-size: 14px; }
    .hediye-stepper-item.aktif .step-numara { box-shadow: 0 0 0 4px var(--hd-primary-ring); }
    .hediye-stepper-item.tamamlandi .step-numara::before { font-size: 16px; }
    .hediye-stepper-item::after { top: 17px; left: 78%; width: 44%; }

    .hediye-panel-baslik {
        grid-template-columns: 38px minmax(0, 1fr);
        column-gap: 12px;
        padding: 22px 20px 20px;
    }
    .hediye-panel-ikon { width: 38px; height: 38px; font-size: 17px; }
    .hediye-step-baslik { font-size: 20px; }
    .hediye-step-aciklama { grid-column: 1 / -1; margin-top: 4px; font-size: 14px; }
    .hediye-panel-govde { padding: 22px 20px 24px; }

    .hediye-odeme-duzen { grid-template-columns: minmax(0, 1fr); gap: 24px; }

    .hediye-sepet .hediye-kurs-item { gap: 14px; padding: 14px; }
    .hediye-kurs-gorsel { width: 56px; height: 56px; }
    .hediye-kurs-adi { font-size: 15px; }
    .hediye-fiyat { font-size: 15px; }
    .hediye-sepet-ozet { padding: 16px 18px; }
    .hediye-sepet-ozet-toplam { font-size: 20px; }

    .hediye-kart-bolum { padding: 24px 0; }
    .hediye-kart-form > .hediye-kart-bolum:last-child { padding-bottom: 24px; }
    .hediye-kart-bolum.hediye-kart-bolum-zaman { margin-top: 24px; padding-bottom: 0; }
    .hediye-sablon-izgara { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .hediye-alan-cift,
    .hediye-zaman-izgara { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .hediye-alan-cift { gap: 18px; }
    .hediye-tarih-alani { max-width: none; }

    .hediye-segment { gap: 10px; }
    .hediye-segment-btn { gap: 8px; padding: 0 8px; font-size: 14px; white-space: nowrap; }

    .hediye-step-nav { flex-wrap: wrap; margin-top: 26px; }
    .hediye-btn { padding: 0 20px; font-size: 15px; }
    #hediye_siparis_btn { flex: 1 1 100%; order: -1; padding: 0 14px; white-space: normal; }
}

@media (max-width: 360px) {
    .hediye-segment-btn { white-space: normal; line-height: 1.2; text-align: center; }
}

/* Hareket azaltma */
@media (prefers-reduced-motion: reduce) {
    .hediye-step-panel.aktif,
    .hediye-gonderen-detaylar,
    .hediye-sepet .hediye-arama-dropdown:not(:empty),
    .hediye-modal,
    .hediye-tarih-alani,
    .hediye-kart-sahne .hd-kart-giris { animation-name: hediyeSolma; }
    .hediye-btn:active:not(:disabled),
    .hediye-kurs-cikar:active:not(:disabled),
    .hediye-segment-btn:active,
    .hediye-kart-secim:active .hediye-sablon-kart,
    .hediye-oneri:active { transform: none; }
    .hediye-sablon-tik { transform: none; }
}
