/* =============================================================================
   ÜRÜN DETAYI — SADE SATIN ALMA ALANI (12.2026, v3: kibar kartlar)
   urun-detay.css'ten SONRA yüklenir (urun-detay.php). Sağ sütun: fiyat kartı → ölçü kartı → adet → montaj →
   sepet → WhatsApp → güven kartı (rozetler) → taksit kartı. Görsel revizyonlar YALNIZ bu dosyada yapılır.
   JS'in kullandığı sınıflar (qty-input, btn-add-cart, installment-item …) burada yalnız biçimlenir.
   ============================================================================= */

/* Ortak kart dili: ince gri çerçeve, yumuşak köşe, çok hafif gölge */
.product-price,
.ud-olcu,
.ud-guven,
.installment-info {
    border: 1px solid #ebebef;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(17, 24, 39, .04);
}

/* ── Fiyat kartı ── */
.product-price { padding: .9rem 1.1rem; margin: .4rem 0 .9rem; background: linear-gradient(135deg, #fff8f4 0%, #ffffff 60%); border-color: #fde3d6; }
.price-main { gap: .6rem; margin-bottom: .15rem; align-items: center; }
.current-price { font-size: 2.05rem; letter-spacing: -.02em; line-height: 1.1; }
.old-price { font-size: 1.02rem; color: #a3a3a3; }
.discount-badge { background: #f35b23; color: #fff; border-radius: 99px; padding: .22rem .6rem; font-size: .72rem; letter-spacing: .02em; }
.price-info { font-size: .8rem; color: #7c7c86; margin-top: .1rem; }
.price-info i { font-size: .78rem; color: #b0b0b8; }

/* ── Seçenek blokları arası ── */
.product-options { gap: .85rem; }

/* ── Ölçü kartı ── */
.ud-olcu { padding: .85rem 1rem; font-size: .92rem; color: #2b2b31; }
.ud-olcu-satir { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .6rem; }
.ud-olcu-satir i { width: 30px; height: 30px; border-radius: 9px; background: #fff1ea; color: #f35b23; display: inline-flex; align-items: center;
                   justify-content: center; font-size: .85rem; flex-shrink: 0; }
.ud-olcu-satir b { font-weight: 700; color: #111827; }
.ud-olcu-satir span { font-weight: 600; }
.ud-olcu-satir small { color: #9a9aa3; font-size: .76rem; }
.ud-ozel { margin-top: .7rem; padding-top: .7rem; border-top: 1px dashed #ececf0; font-size: .82rem; color: #6b7280;
           display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; }
.ud-ozel > span[aria-hidden] { display: none; }
.ud-ozel a { display: inline-flex; align-items: center; gap: .35rem; padding: .38rem .8rem; border-radius: 99px; font-size: .8rem; font-weight: 600;
             text-decoration: none; white-space: nowrap; border: 1px solid #fcd5c3; background: #fff8f4; color: #e4501b; transition: background .15s, border-color .15s; }
.ud-ozel a:hover { background: #ffefe6; border-color: #f9b99c; text-decoration: none; }
.ud-ozel a.wa { border-color: #bbf0cf; background: #f2fcf6; color: #15803d; }
.ud-ozel a.wa:hover { background: #e3f8ec; border-color: #95e2b4; }

/* ── Adet ── */
.quantity-section { gap: .8rem; padding: .35rem 0 .15rem; align-items: center; }
.quantity-section > .option-label { font-size: .88rem; color: #4b5563; margin: 0; font-weight: 600; }
.quantity-selector { border: 1px solid #e3e3e8; border-radius: 10px; background: #fff; }
.qty-btn { width: 38px; height: 38px; font-size: 1.05rem; color: #4b5563; }
.qty-input { width: 48px; height: 38px; font-size: 1rem; border-color: #ececf0; }
.stock-info { font-size: .84rem; }
.stock-info i { font-size: .85rem; }
.urgency-badge, .urgency-badge.orange, .urgency-badge.red, .urgency-badge.yellow, .urgency-badge.pulse {
    background: #fff7ed; color: #b45309; border: 1px solid #fed7aa; padding: .3rem .7rem; border-radius: 99px;
    font-size: .78rem; font-weight: 600; animation: none; box-shadow: none; }
.urgency-badge i { font-size: .75rem; }

/* ── Montaj satırı ── */
.mtj { margin: .7rem 0 .2rem; border-radius: 14px; }

/* ── WhatsApp: kibar hap ── */
.btn-whatsapp { margin-top: .55rem; padding: .55rem .9rem; border: 1px solid #c9f0d8; border-radius: 12px; background: #f6fdf9;
                color: #15803d; font-size: .86rem; font-weight: 600; gap: .45rem; }
.btn-whatsapp:hover { background: #ebfaf1; color: #166534; border-color: #9fe3bb; transform: none; box-shadow: none; }
.btn-whatsapp i { font-size: 1rem; }

/* ── Güven kartı: teslimat satırı + rozetler ── */
.ud-guven { margin: .9rem 0; padding: .85rem 1rem; }
.ud-teslim { display: flex; align-items: center; gap: .55rem; font-size: .88rem; color: #4b5563; }
.ud-teslim i { width: 30px; height: 30px; border-radius: 9px; background: #fff1ea; color: #f35b23; display: inline-flex; align-items: center;
               justify-content: center; font-size: .85rem; flex-shrink: 0; margin: 0; }
.ud-teslim b { color: #111827; }
.ud-rozetler { list-style: none; margin: .75rem 0 0; padding: .75rem 0 0; border-top: 1px dashed #ececf0; display: flex; flex-wrap: wrap; gap: .45rem; }
.ud-rozetler li { display: inline-flex; align-items: center; gap: .4rem; padding: .34rem .7rem; border-radius: 99px; background: #f7f7f9;
                  border: 1px solid #efeff3; font-size: .78rem; font-weight: 500; color: #4b5563; white-space: nowrap; }
.ud-rozetler li i { color: #f35b23; font-size: .75rem; }

/* ── Taksit kartı ── */
.installment-info { overflow: hidden; }
.installment-info .installment-header.ud-taksit-ac { width: 100%; border: 0; outline: 0; cursor: pointer; font: inherit; font-weight: 600; font-size: .9rem;
    text-align: left; padding: .8rem 1rem; background: #fff; color: #2b2b31; gap: .6rem; display: flex; align-items: center; }
.installment-info .installment-header.ud-taksit-ac:hover { background: #fafafb; }
.installment-info .installment-header.ud-taksit-ac:focus-visible { box-shadow: inset 0 0 0 2px #fcd5c3; }
.installment-info .installment-header.ud-taksit-ac .fa-credit-card { color: #f35b23; }
.installment-info .installment-header.ud-taksit-ac .fa-chevron-down { margin-left: auto; color: #a3a3ad; font-size: .75rem; transition: transform .15s; }
.installment-info.acik .ud-taksit-ac { border-bottom: 1px solid #f1f1f4; }
.installment-info.acik .ud-taksit-ac .fa-chevron-down { transform: rotate(180deg); }
.installment-info:not(.acik) #installmentOptions { display: none; }

/* ── Telefon ── */
@media (max-width: 480px) {
    .product-price { padding: .8rem .9rem; display: block; }
    .price-info { margin-top: .35rem; }
    .current-price { font-size: 1.8rem; }
    .ud-olcu, .ud-guven { padding: .8rem .85rem; }
    .quantity-section { flex-direction: row; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; }
    .ud-ozel a { padding: .36rem .7rem; }
    .installment-options { padding: 0 .75rem .9rem; }
    .installment-options-header, .installment-item { grid-template-columns: 64px 1fr 1fr; font-size: .8rem; padding: .6rem .25rem; }
    .installment-options-header > span:nth-child(4), .installment-item > .installment-commission { display: none; }
}
