/* ══════════════════════════════════════════════════════════════════════
   KUTUNU OLUŞTUR
   ----------------------------------------------------------------------
   Tema dili: monokrom, keskin köşe, beyaz kutulu başlık. Slider/banner
   tipografisiyle aynı ailedendir — ayrı bir görsel dil kurmaz.
   ══════════════════════════════════════════════════════════════════════ */

.nrs-kutu { padding-bottom: 0 !important; }

/* ── Başlık alanı ── */
.nrs-kutu-hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: center;
    padding: 8px 0 36px;
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 32px;
}
@media (min-width: 900px) {
    .nrs-kutu-hero { grid-template-columns: 1fr 320px; gap: 40px; }
}

.nrs-kutu-baslik {
    margin: 0 0 8px;
    font-family: var(--font-baslik, inherit);
    font-size: clamp(26px, 4vw, 42px);
    font-weight: 800;
    letter-spacing: .5px;
    text-transform: uppercase;
    line-height: 1.1;
    color: #000;
}
.nrs-kutu-alt {
    margin: 0 0 10px;
    font-size: 15px;
    color: #4a4f57;
    max-width: 60ch;
}
.nrs-kutu-aciklama {
    margin: 0 0 18px;
    font-size: 13.5px;
    line-height: 1.6;
    color: #767677;
    max-width: 65ch;
}

/* Kural şeridi: Ayakkabı → Cüzdan → Çakmak → Kutu ücretsiz */
.nrs-kutu-kural {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: none;
}
.nrs-kutu-kural li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px 7px 7px;
    background: #f2f3f4;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #111;
}
.nrs-kutu-kural li > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px; height: 22px;
    background: #111;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
}
.nrs-kutu-kural .nrs-kutu-kural-odul { background: #111; color: #fff; }
.nrs-kutu-kural .nrs-kutu-kural-odul > span { background: #fff; color: #111; }

.nrs-kutu-hero-gorsel {
    aspect-ratio: 1 / 1;
    background: #f2f3f4;
    overflow: hidden;
}
.nrs-kutu-hero-gorsel img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── Adım blokları ── */
.nrs-kutu-adim { margin-bottom: 36px; }
.nrs-kutu-adim-bas {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}
.nrs-kutu-adim-no {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px; height: 30px;
    background: #111;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    transition: background .2s ease;
}
.nrs-kutu-adim.secildi .nrs-kutu-adim-no { background: #1f7a3f; }
.nrs-kutu-adim-bas h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #111;
    line-height: 1.3;
}
.nrs-kutu-adim-bas h2 small {
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: #767677;
    margin-left: 6px;
}
.nrs-kutu-adim-bas p { margin: 3px 0 0; font-size: 13px; color: #767677; }
.nrs-kutu-adim-durum {
    margin-left: auto;
    font-size: 12.5px;
    font-weight: 700;
    color: #1f7a3f;
    text-align: right;
    max-width: 40%;
}
.nrs-kutu-bos { font-size: 13px; color: #767677; margin: 0; }

/* ── Ürün seçici (yatay kaydırma) ── */
.nrs-kutu-kaydir {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(150px, 1fr);
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
}
@media (min-width: 768px) { .nrs-kutu-kaydir { grid-auto-columns: minmax(180px, 200px); } }
.nrs-kutu-kaydir::-webkit-scrollbar { height: 6px; }
.nrs-kutu-kaydir::-webkit-scrollbar-thumb { background: #d5d9df; }

.nrs-kutu-kart {
    position: relative;
    display: block;
    cursor: pointer;
    scroll-snap-align: start;
    -webkit-tap-highlight-color: transparent;
}
.nrs-kutu-kart input { position: absolute; opacity: 0; pointer-events: none; }

.nrs-kutu-kart-gorsel {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    background: #f2f3f4;
    overflow: hidden;
    border: 2px solid transparent;
    transition: border-color .18s ease;
}
.nrs-kutu-kart-gorsel img { width: 100%; height: 100%; object-fit: contain; display: block; }
.nrs-kutu-kart-bos { display: block; width: 100%; height: 100%; background: #e9ebed; }

/* Seçim işareti — sağ üstte siyah kare */
.nrs-kutu-kart-tik {
    position: absolute;
    top: 0; right: 0;
    width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    background: #111;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    opacity: 0;
    transform: scale(.6);
    transition: opacity .18s ease, transform .18s ease;
}
/* Seçili durum İKİ yoldan da yazılır:
   1) input:checked ~ …  → JS kapalıyken bile çalışır (ilerici geliştirme)
   2) .secili sınıfı      → JS seçimi işaretler; kardeş sırası değişse de bozulmaz
   İkisi birlikte, markup yeniden düzenlenirse sessizce kırılmayı önler. */
.nrs-kutu-kart input:checked ~ .nrs-kutu-kart-gorsel,
.nrs-kutu-kart.secili .nrs-kutu-kart-gorsel { border-color: #111; }
.nrs-kutu-kart input:checked ~ .nrs-kutu-kart-gorsel .nrs-kutu-kart-tik,
.nrs-kutu-kart.secili .nrs-kutu-kart-tik { opacity: 1; transform: none; }
.nrs-kutu-kart input:focus-visible ~ .nrs-kutu-kart-gorsel { outline: 2px solid #111; outline-offset: 2px; }
.nrs-kutu-kart:hover .nrs-kutu-kart-gorsel { border-color: #b8bcc2; }
.nrs-kutu-kart.secili:hover .nrs-kutu-kart-gorsel { border-color: #111; }

.nrs-kutu-kart-ad {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.35;
    color: #14171c;
}
.nrs-kutu-kart-fiyat {
    display: block;
    margin-top: 2px;
    font-size: 13.5px;
    font-weight: 700;
    color: #14171c;
}

/* ── Yapışkan özet çubuğu ── */
.nrs-kutu-ozet {
    position: sticky;
    bottom: 0;
    z-index: 40;
    margin: 8px -20px 0;
    padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid #e5e5e5;
    box-shadow: 0 -6px 24px rgba(0, 0, 0, .07);
}
@media (min-width: 1024px) { .nrs-kutu-ozet { margin-left: -40px; margin-right: -40px; padding-left: 40px; padding-right: 40px; } }

.nrs-kutu-ozet-ic {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.nrs-kutu-ozet-bilgi { flex: 1 1 220px; min-width: 0; }

.nrs-kutu-ilerleme {
    display: block;
    height: 4px;
    background: #e5e5e5;
    overflow: hidden;
    margin-bottom: 7px;
}
.nrs-kutu-ilerleme-dolgu {
    display: block;
    height: 100%;
    width: 0;
    background: #111;
    transition: width .3s ease;
}
.kutu-tamam .nrs-kutu-ilerleme-dolgu { background: #1f7a3f; }

.nrs-kutu-ozet-metin {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #14171c;
    line-height: 1.35;
}
.kutu-tamam .nrs-kutu-ozet-metin { color: #1f7a3f; }

.nrs-kutu-ozet-tutar { text-align: right; line-height: 1.25; }
.nrs-kutu-ozet-etiket { display: block; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #767677; }
.nrs-kutu-ozet-tutar strong { font-size: 18px; font-weight: 800; color: #14171c; }
.nrs-kutu-ozet-kutu {
    display: block;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #1f7a3f;
}
.nrs-kutu-ozet-kutu[hidden] { display: none !important; }

.nrs-kutu-ozet .adx-btn:disabled { opacity: .35; cursor: not-allowed; }

@media (max-width: 560px) {
    .nrs-kutu-ozet-ic { gap: 10px; }
    .nrs-kutu-ozet-bilgi { flex: 1 1 100%; order: 1; }
    .nrs-kutu-ozet-tutar { order: 2; text-align: left; flex: 0 0 auto; }
    .nrs-kutu-ozet .adx-btn { order: 3; flex: 1 1 auto; }
    .nrs-kutu-adim-durum { max-width: 50%; font-size: 11.5px; }
}

/* ── Sepetteki kutu satırı + teşvik şeridi ── */
.nrs-kutu-rozet {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    background: #111;
    color: #fff;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    vertical-align: middle;
}
.nrs-kutu-serit {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 13px 16px;
    margin: 0 0 16px;
    background: #111;
    color: #fff;
    font-size: 13.5px;
    line-height: 1.45;
}
.nrs-kutu-serit--basarili { background: #1f7a3f; }
.nrs-kutu-serit a {
    margin-left: auto;
    background: #fff;
    color: #111;
    padding: 9px 16px;
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    text-decoration: none;
}
.nrs-kutu-serit a:hover { background: #e8e8e8; }
.nrs-kutu-serit[hidden] { display: none !important; }
@media (max-width: 520px) {
    .nrs-kutu-serit { font-size: 12.5px; }
    .nrs-kutu-serit a { margin-left: 0; width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
    .nrs-kutu-kart-tik, .nrs-kutu-kart-gorsel, .nrs-kutu-ilerleme-dolgu { transition: none; }
}
