/* ══════════════════════════════════════════════════════════════
   Ürün Detay — premium restyle (anasayfa dili: Montserrat + btn-ba + var tokens)
   Tüm renkler tema değişkenlerinden → dark-mode otomatik.
   ══════════════════════════════════════════════════════════════ */
.ud-wrap { padding: clamp(2rem, 5vw, 4rem) 0; }
.ud-grid { display: grid; grid-template-columns: 6fr 6fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
@media (max-width: 991.98px) { .ud-grid { grid-template-columns: 1fr; gap: 1.75rem; } }

/* ── Galeri: solda dikey küçük resim şeridi, sağda büyük sahne (dar ekranda şerit sahnenin altına iner) ── */
.ud-gallery {
    --ud-stage-h: clamp(320px, 42vw, 460px);
    position: sticky; top: 90px;
    display: grid; grid-template-columns: 66px minmax(0, 1fr); grid-template-areas: "thumbs stage";
    gap: .85rem; align-items: start;
}
@media (max-width: 991.98px) { .ud-gallery { position: static; } }
.ud-stage {
    grid-area: stage; position: relative; border: 1px solid var(--border); border-radius: 20px; overflow: hidden;
    background: var(--surface); box-shadow: 0 20px 50px -24px rgba(0,0,0,.28); margin-bottom: 0;
}
.ud-stage .carousel-item img,
.ud-stage__media { display: block; width: 100%; height: var(--ud-stage-h); object-fit: cover;
    background: color-mix(in srgb, var(--text) 4%, var(--surface)); }
.ud-stage .carousel-control-prev, .ud-stage .carousel-control-next { width: 12%; }
.ud-stage .carousel-control-prev-icon, .ud-stage .carousel-control-next-icon {
    background-color: rgba(0,0,0,.45); border-radius: 50%; padding: 1.1rem; background-size: 45%; }
.ud-video-cover { display: flex; align-items: center; justify-content: center; height: var(--ud-stage-h);
    background: #0d1b2a; }
.ud-video-cover .ud-play { width: 66px; height: 66px; border-radius: 50%; background: #fff; display: grid;
    place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.35); transition: transform .2s ease; }
.ud-video-cover:hover .ud-play { transform: scale(1.06); }

/* Küçük resimler: sahne yüksekliğini aşarsa şerit kendi içinde kayar */
.ud-thumbs { grid-area: thumbs; display: flex; flex-direction: column; gap: .55rem; flex-wrap: nowrap;
    max-height: calc(var(--ud-stage-h) + 2px); overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; }
.ud-thumb {
    flex: 0 0 auto; width: 66px; height: 66px; border-radius: 12px; overflow: hidden; cursor: pointer;
    border: 2px solid var(--border); background: var(--surface); padding: 0; transition: border-color .18s ease;
    display: grid; place-items: center;
}
@media (max-width: 575.98px) {
    .ud-gallery { grid-template-columns: 1fr; grid-template-areas: "stage" "thumbs"; gap: .75rem; }
    .ud-thumbs { flex-direction: row; flex-wrap: wrap; max-height: none; overflow: visible; }
}
.ud-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ud-thumb:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); }
.ud-thumb.is-active { border-color: var(--accent); }
.ud-thumb--video { background: #0d1b2a; color: #fff; font-size: 1.4rem; }

/* ── Bilgi kolonu ── */
.ud-badges { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .9rem; }
.ud-badge { font: 600 .72rem/1 "Montserrat", sans-serif; letter-spacing: .06em; text-transform: uppercase;
    padding: .42em .8em; border-radius: 999px; }
.ud-badge--new { background: color-mix(in srgb, #16a34a 15%, transparent); color: #16a34a; }
.ud-badge--sale { background: color-mix(in srgb, #dc2626 15%, transparent); color: #dc2626; }
.ud-badge--kategori { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); text-decoration: none;
    transition: background-color .18s ease; }
.ud-badge--kategori:hover, .ud-badge--kategori:focus-visible { background: color-mix(in srgb, var(--accent) 26%, transparent); color: var(--accent); }
.ud-badge--stok { background: color-mix(in srgb, var(--muted) 22%, transparent); color: var(--muted); }

.ud-title { font: 600 clamp(1.55rem, 2.6vw, 2.15rem)/1.15 "Montserrat", sans-serif; letter-spacing: -.02em;
    color: var(--text); margin: 0 0 .6rem; }
.ud-metaline { display: flex; flex-wrap: wrap; gap: .35rem 1.25rem; color: var(--muted); font-size: .9rem;
    margin-bottom: 1.1rem; }
.ud-metaline strong { color: var(--text); font-weight: 600; }

.ud-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: .55rem; margin: 0 0 1.35rem;
    padding-bottom: 1.35rem; border-bottom: 1px solid var(--border); }
.ud-price__now { font: 700 clamp(1.7rem, 3vw, 2.3rem)/1 "Montserrat", sans-serif; color: var(--text);
    font-variant-numeric: tabular-nums; }
.ud-price__cur { font-size: .95rem; font-weight: 500; color: var(--muted); margin-left: .15rem; }
.ud-price__old { font-size: 1.05rem; color: var(--muted); text-decoration: line-through; font-variant-numeric: tabular-nums; }
.ud-price__kdv { font-size: .78rem; color: var(--muted); background: color-mix(in srgb, var(--text) 6%, transparent);
    padding: .25em .6em; border-radius: 999px; }

.ud-lead { color: var(--muted); line-height: 1.85; margin: 0 0 1.6rem; font-size: 1.02rem; }
.ud-lead p:last-child { margin-bottom: 0; }

/* ── Sekmeler — galeri+bilgi bloğunun altında tam genişlik ──
   Sekme başlıkları 44px dokunma hedefi; aktif sekme alt çizgi + koyu metin; mobilde yatay kaydırılır (sarmaz) */
.ud-detail-tabs { padding-top: 0; border-top: 0; }
.ud-tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--border); margin: 0 0 1.75rem; padding: 0;
    list-style: none; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.ud-tabs::-webkit-scrollbar { display: none; }
.ud-tab { position: relative; display: inline-flex; align-items: center; gap: .5rem; white-space: nowrap;
    background: none; border: 0; min-height: 48px; padding: .6rem 1.1rem; cursor: pointer; border-radius: 12px 12px 0 0;
    font: 600 .95rem/1 "Montserrat", sans-serif; color: var(--muted); letter-spacing: .01em;
    transition: color .18s ease, background-color .18s ease; }
.ud-tab .bi { font-size: 1.05rem; opacity: .8; }
.ud-tab::after { content: ""; position: absolute; left: 1.1rem; right: 1.1rem; bottom: -1px; height: 2.5px; border-radius: 2px;
    background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .22s ease-out; }
.ud-tab:hover { color: var(--text); background: color-mix(in srgb, var(--text) 4%, transparent); }
.ud-tab.active { color: var(--text); }
.ud-tab.active::after { transform: scaleX(1); }
.ud-tab-content > .tab-pane { animation: udFadeIn .22s ease-out; }
@keyframes udFadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* Teknik özellikler tablosu — dar ekranda yatay kaydırılır, hücreler taşmaz */
.ud-specs-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.ud-specs { width: 100%; border-collapse: collapse; min-width: 420px; }
.ud-specs tr + tr { border-top: 1px solid var(--border); }
.ud-specs th, .ud-specs td { padding: .85rem 1.1rem; text-align: left; vertical-align: top; font-size: .95rem; line-height: 1.6; }
.ud-specs th { width: 32%; font-weight: 600; color: var(--text);
    background: color-mix(in srgb, var(--text) 3.5%, transparent); }
.ud-specs td { color: var(--text); }
.ud-video-frame { border-radius: 16px; overflow: hidden; background: #0d1b2a; max-width: 960px; }

/* ── Editör içeriği (Jodit HTML) — başlık / paragraf / liste / tablo / görsel / alıntı ──
   Tüm bloklar tam genişlikte (istek üzerine satır uzunluğu sınırlanmaz) */
.ud-prose { color: var(--text); font-size: 1.02rem; line-height: 1.85; word-wrap: break-word; overflow-wrap: anywhere; }
.ud-prose p { margin: 0 0 1.1rem; }
.ud-prose > :first-child { margin-top: 0; }
.ud-prose > :last-child { margin-bottom: 0; }
.ud-prose h1, .ud-prose h2, .ud-prose h3, .ud-prose h4 { font-family: "Montserrat", sans-serif; font-weight: 600;
    letter-spacing: -.015em; color: var(--text); line-height: 1.25; margin: 1.9rem 0 .7rem; }
.ud-prose h1 { font-size: 1.5rem; }
.ud-prose h2 { font-size: 1.32rem; }
.ud-prose h3 { font-size: 1.15rem; }
.ud-prose h4 { font-size: 1.02rem; }
.ud-prose strong, .ud-prose b { font-weight: 600; color: var(--text); }
.ud-prose ul, .ud-prose ol { margin: 0 0 1.1rem; padding-left: 1.35rem; }
.ud-prose li { margin-bottom: .35rem; }
.ud-prose li::marker { color: var(--accent); }
.ud-prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.ud-prose img { display: block; max-width: 100%; height: auto; border-radius: 14px; margin: 1.25rem 0; }
.ud-prose figure { margin: 1.25rem 0; }
.ud-prose figcaption { font-size: .85rem; color: var(--muted); margin-top: .5rem; }
.ud-prose blockquote { margin: 1.25rem 0; padding: .9rem 1.2rem; border-left: 3px solid var(--accent); border-radius: 0 12px 12px 0;
    background: color-mix(in srgb, var(--accent) 6%, transparent); color: var(--text); }
.ud-prose blockquote p:last-child { margin-bottom: 0; }
.ud-prose hr { border: 0; border-top: 1px solid var(--border); margin: 1.5rem 0; }
.ud-prose table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-size: .95rem; }
/* Editör tabloları JS ile .ud-table-scroll içine alınır → dar ekranda yatay kaydırma, sayfa taşmaz */
.ud-prose .ud-table-scroll { overflow-x: auto; margin: 1.25rem 0; border: 1px solid var(--border); border-radius: 12px; max-width: 100%; }
.ud-prose .ud-table-scroll > table { margin: 0; min-width: 480px; }
.ud-prose .ud-table-scroll th:first-child, .ud-prose .ud-table-scroll td:first-child { border-left: 0; }
.ud-prose .ud-table-scroll th:last-child, .ud-prose .ud-table-scroll td:last-child { border-right: 0; }
.ud-prose .ud-table-scroll tr:first-child th, .ud-prose .ud-table-scroll tr:first-child td { border-top: 0; }
.ud-prose .ud-table-scroll tr:last-child td { border-bottom: 0; }
.ud-prose th, .ud-prose td { padding: .7rem .9rem; border: 1px solid var(--border); text-align: left; vertical-align: top; }
.ud-prose th { font-weight: 600; background: color-mix(in srgb, var(--text) 3.5%, transparent); }
.ud-prose iframe { max-width: 100%; border-radius: 12px; }
.ud-prose--compact { font-size: .95rem; line-height: 1.7; }
.ud-prose--compact p { margin-bottom: .6rem; }

/* ── CTA ── */
.ud-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.75rem; }
.ud-actions .btn-ba { margin: 0; }
/* btn-ba bir <button>/<summary> ise UA default kenarlık/zemin çıkmasın (sadece SVG pill kalsın) */
button.btn-ba, summary.btn-ba { border: 0; background: transparent; cursor: pointer;
    -webkit-appearance: none; appearance: none; }
summary.btn-ba { display: inline-block; }
summary.btn-ba::-webkit-details-marker { display: none; }
.ud-link-pdf { display: inline-flex; align-items: center; gap: .4rem; text-decoration: none; color: var(--text);
    border: 1px solid var(--border); border-radius: 999px; padding: .7rem 1.2rem; font: 600 .85rem "Montserrat", sans-serif;
    transition: border-color .18s ease, color .18s ease; }
.ud-link-pdf:hover { border-color: var(--accent); color: var(--accent); }

/* ── Alt bölümler (sekmeler / SSS / benzer / yorum) ── */
.ud-section { margin-top: clamp(2.5rem, 6vw, 4rem); padding-top: 2rem; border-top: 1px solid var(--border); }
.ud-section__head { margin-bottom: 1.4rem; }
.ud-section__head .ud-section__title { margin-bottom: .3rem; }
.ud-section__title { font: 600 clamp(1.3rem, 2.2vw, 1.7rem)/1.2 "Montserrat", sans-serif; letter-spacing: -.02em;
    color: var(--text); margin: 0 0 1.4rem; }
.ud-section__sub { margin: 0; color: var(--muted); font-size: .95rem; }

/* ── SSS — premium akordeon (<details>): soru rozeti + dönen chevron; açık öğe vurgulu; masaüstünde iki sütun ── */
.ud-sss { display: grid; gap: .8rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 768px) { .ud-sss { grid-template-columns: 1fr 1fr; } }
.ud-sss__item { border: 1px solid var(--border); border-radius: 14px; background: var(--surface);
    transition: border-color .25s ease, box-shadow .25s ease; }
.ud-sss__item:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.ud-sss__item[open] { border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
    box-shadow: 0 14px 34px -16px color-mix(in srgb, var(--accent) 45%, transparent);
    background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 6%, transparent) 0%, transparent 60%) var(--surface); }
.ud-sss__item summary { display: flex; align-items: center; gap: .85rem; min-height: 56px; padding: .8rem 1rem;
    cursor: pointer; list-style: none; font-weight: 600; color: var(--text); border-radius: 14px; line-height: 1.4; }
.ud-sss__item summary::-webkit-details-marker { display: none; }
.ud-sss__item summary:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; }
.ud-sss__q { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center;
    justify-content: center; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); font-size: .95rem;
    transition: background .25s ease, color .25s ease; }
.ud-sss__item[open] .ud-sss__q { background: var(--accent); color: #fff; }
.ud-sss__text { flex: 1 1 auto; }
.ud-sss__chev { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center;
    justify-content: center; color: var(--muted); font-size: .9rem; border: 1.5px solid var(--border);
    transition: transform .25s ease, background .25s ease, color .25s ease; }
.ud-sss__item summary:hover .ud-sss__chev { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); }
.ud-sss__item[open] .ud-sss__chev { transform: rotate(180deg); background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.ud-sss__body { padding: 0 1rem 1rem 3.15rem; }
.ud-sss__body > .ud-prose { border-top: 1px dashed color-mix(in srgb, var(--accent) 35%, var(--border)); padding-top: .8rem; color: var(--muted); }
.ud-sss__item[open] .ud-sss__body { animation: udSssIn .26s ease-out; }
@keyframes udSssIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (max-width: 575.98px) { .ud-sss__body { padding-left: 1rem; } }

/* ── Yorumlar — sol özet kart (ortalama + puan dağılımı + form), sağ yorum kartları ── */
:root { --ud-star: #e0a20b; }
[data-theme="dark"] { --ud-star: #f6c343; }
.ud-reviews { display: grid; grid-template-columns: minmax(260px, 340px) 1fr; gap: clamp(1.25rem, 3vw, 2.5rem); align-items: start; }
@media (max-width: 991.98px) { .ud-reviews { grid-template-columns: 1fr; } }
.ud-reviews--bos { grid-template-columns: minmax(0, 560px); }
.ud-reviews--bos .ud-rating-card { position: static; }
.ud-stars { display: inline-flex; gap: .15rem; color: var(--ud-star); font-size: 1.25rem; line-height: 1; }
.ud-stars .bi-star { color: color-mix(in srgb, var(--muted) 55%, transparent); }
.ud-stars--sm { font-size: .95rem; }
.ud-rating-card { position: sticky; top: 90px; padding: 1.4rem; border: 1px solid var(--border); border-radius: 18px;
    background: var(--surface); box-shadow: var(--shadow); }
@media (max-width: 991.98px) { .ud-rating-card { position: static; } }
.ud-rating-card__score { font: 700 3rem/1 "Montserrat", sans-serif; letter-spacing: -.03em; color: var(--text);
    font-variant-numeric: tabular-nums; margin-bottom: .5rem; }
.ud-rating-card__score small { font-size: 1rem; font-weight: 500; color: var(--muted); margin-left: .3rem; letter-spacing: 0; }
.ud-rating-card__count { color: var(--muted); font-size: .9rem; margin: .45rem 0 1.1rem; }
.ud-rating-bars { list-style: none; margin: 0 0 1.25rem; padding: 0; display: grid; gap: .45rem; }
.ud-rating-bars li { display: grid; grid-template-columns: 2.6rem 1fr 2rem; align-items: center; gap: .6rem; font-size: .85rem; }
.ud-rating-bars__label { color: var(--text); font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ud-rating-bars__label .bi { color: var(--ud-star); font-size: .75rem; }
.ud-rating-bars__track { height: 8px; border-radius: 999px; background: color-mix(in srgb, var(--text) 8%, transparent); overflow: hidden; }
.ud-rating-bars__fill { display: block; height: 100%; border-radius: inherit; background: var(--ud-star); }
.ud-rating-bars__n { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.ud-rating-card__empty { display: grid; gap: .35rem; margin-bottom: 1.25rem; color: var(--muted); }
.ud-rating-card__empty .bi { font-size: 2rem; color: var(--accent); }
.ud-rating-card__empty strong { color: var(--text); font-size: 1.05rem; }

.ud-review-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.ud-review { padding: 1.1rem 1.25rem; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.ud-review__head { display: flex; align-items: center; gap: .8rem; margin-bottom: .6rem; }
.ud-review__avatar { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
    background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); font: 700 1rem "Montserrat", sans-serif; }
.ud-review__meta { flex: 1 1 auto; min-width: 0; display: grid; }
.ud-review__name { font-weight: 600; color: var(--text); }
.ud-review__date { font-size: .8rem; color: var(--muted); }
.ud-review__text { margin: 0; color: var(--text); line-height: 1.75; }

/* Yorum formu — açılır (<details>); alanlar 44px, etiketler görünür */
.ud-review-form summary { list-style: none; display: inline-block; width: auto; padding: .7rem 1.4rem; }
.ud-review-form summary::-webkit-details-marker { display: none; }
.ud-review-form summary .bi { margin-right: .4rem; }
.ud-review-form__body { display: grid; gap: .9rem; margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px dashed var(--border); }
.ud-field { display: grid; gap: .35rem; margin: 0; padding: 0; border: 0; min-width: 0; }
.ud-field label, .ud-field legend { font-size: .85rem; font-weight: 600; color: var(--text); padding: 0; margin: 0; float: none; width: auto; }
.ud-field label small { font-weight: 400; color: var(--muted); }
.ud-field input, .ud-field textarea { width: 100%; min-height: 44px; padding: .6rem .85rem; border: 1px solid var(--border); border-radius: 12px;
    background: var(--bg); color: var(--text); font: inherit; font-size: 1rem; transition: border-color .18s ease, box-shadow .18s ease; }
.ud-field textarea { resize: vertical; }
.ud-field input:focus, .ud-field textarea:focus { outline: none; border-color: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.rating-input { display: inline-flex; gap: .15rem; }
.rating-input label { display: grid; place-items: center; width: 44px; height: 44px; margin: 0; cursor: pointer; font-size: 1.6rem;
    color: color-mix(in srgb, var(--muted) 55%, transparent); border-radius: 10px; transition: color .15s ease, transform .15s ease; }
.rating-input label:hover { transform: scale(1.08); color: var(--ud-star); }
.rating-input .star-icon.is-on { color: var(--ud-star); }
.rating-input label:has(:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.ud-review-form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.ud-review-form__foot small { color: var(--muted); }
.ud-btn-primary { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .65rem 1.4rem; border: 0;
    border-radius: 999px; background: var(--accent); color: #fff; font: 600 .9rem "Montserrat", sans-serif; cursor: pointer;
    transition: filter .18s ease, transform .18s ease; }
.ud-btn-primary:hover { filter: brightness(1.08); }
.ud-btn-primary:active { transform: scale(.98); }
.ud-btn-primary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.ud-alert { display: flex; align-items: center; gap: .6rem; padding: .8rem 1rem; border-radius: 12px; margin-bottom: 1.25rem; font-size: .95rem; }
.ud-alert--ok { background: color-mix(in srgb, #16a34a 12%, transparent); color: #15803d; }
.ud-alert--err { background: color-mix(in srgb, #dc2626 12%, transparent); color: #b91c1c; }
[data-theme="dark"] .ud-alert--ok { color: #4ade80; }
[data-theme="dark"] .ud-alert--err { color: #f87171; }

/* Erişilebilirlik + hareket */
.ud-tab:focus-visible, .ud-thumb:focus-visible, .ud-link-pdf:focus-visible {
    outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
    .ud-tab, .ud-tab::after, .ud-video-cover .ud-play, .ud-thumb, .ud-link-pdf, .ud-sss__item, .ud-sss__q, .ud-sss__chev,
    .rating-input label, .ud-btn-primary, .ud-opt, .ud-stepper, .ud-step, .ud-cta { transition: none; }
    .ud-opt:active, .ud-cta:active:not(:disabled) { transform: none; }
    .ud-tab-content > .tab-pane, .ud-sss__item[open] .ud-sss__body { animation: none; }
}
@media print {
    .ud-actions, .ud-buy, .urun-fixed-actions, .carousel-control-prev, .carousel-control-next, .ud-review-form,
    .modal-backdrop { display: none !important; }
    .ud-grid { grid-template-columns: 1fr 1fr; }
    .ud-tab-content > .tab-pane { display: block !important; opacity: 1 !important; }
    .ud-sss__item { break-inside: avoid; }
}

/* ── Seçenekler (birim × nitelik) — kutu seçenekler: açık gri zemin, seçili = beyaz + lacivert kenarlık ──
   Örnek diller: moda (SIZE kutuları), Quokka (yumuşak gri kutular), Macho Fuel (seçenekte fiyat) */
:root { --ud-navy: #0d395e; --ud-steel: #79a1bb; --ud-opt-bg: #f3f4f6; --ud-opt-bg-hover: #e8eaee; }
[data-theme="dark"] { --ud-navy: #2b6ea8; --ud-steel: #8fb6cf; --ud-opt-bg: #26272b; --ud-opt-bg-hover: #303136; }
.ud-opts { display: grid; gap: 1.35rem; margin: 0 0 1.75rem; }
.ud-opt-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .6rem; }
.ud-opt-label { font: 700 .74rem/1 "Montserrat", sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--text); }
.ud-opt-sel { font-size: .82rem; font-weight: 500; color: var(--muted); }
.ud-opt-sel.is-set { color: var(--text); font-weight: 600; }
.ud-opt-row { display: flex; flex-wrap: wrap; align-items: stretch; gap: .55rem; }
.ud-opt-row + .ud-opt-row { margin-top: .6rem; }
.ud-opt-grup { align-self: center; min-width: 3.6rem; font: 700 .7rem/1 "Montserrat", sans-serif; letter-spacing: .08em;
    text-transform: uppercase; color: var(--muted); }
.ud-opt {
    position: relative; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem;
    min-width: 64px; min-height: 48px; padding: .55rem 1.1rem; border-radius: 10px; border: 2px solid transparent;
    background: var(--ud-opt-bg); color: var(--text); font: 600 .92rem/1.15 "Montserrat", sans-serif; letter-spacing: .01em;
    cursor: pointer; touch-action: manipulation;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease, opacity .2s ease, transform .12s ease, box-shadow .2s ease;
}
.ud-opt--alt { padding: .5rem 1.1rem .45rem; }
.ud-opt__alt { font: 500 .7rem/1.1 "Montserrat", sans-serif; color: var(--muted); letter-spacing: 0; white-space: nowrap; }
.ud-opt:hover { background: var(--ud-opt-bg-hover); }
.ud-opt:active { transform: scale(.97); }
.ud-opt.is-active { background: var(--surface); border-color: var(--ud-navy); color: var(--text); box-shadow: 0 6px 16px -10px rgba(13, 57, 94, .5); }
.ud-opt.is-active .ud-opt__alt { color: var(--ud-navy); }
[data-theme="dark"] .ud-opt.is-active { background: #111214; border-color: var(--ud-steel); }
[data-theme="dark"] .ud-opt.is-active .ud-opt__alt { color: var(--ud-steel); }
.ud-opt.is-disabled { opacity: .38; }
.ud-opt.is-stokyok .ud-opt__ad { text-decoration: line-through; color: var(--muted); }
.ud-opt:focus-visible { outline: 2px solid var(--ud-navy); outline-offset: 2px; }
[data-theme="dark"] .ud-opt:focus-visible { outline-color: var(--ud-steel); }
.ud-opts-bos { font-size: .9rem; color: var(--muted); margin: 0 0 1.35rem; }
.ud-price__now--secenek { font-size: clamp(1.35rem, 2.4vw, 1.8rem); }

/* ── Miktar + Teklif Sepetine Ekle — gri stepper + tam genişlik lacivert buton (buton içinde tutar) ── */
.ud-buy { display: flex; flex-wrap: wrap; align-items: stretch; gap: .65rem; margin-top: 1.5rem; }
.ud-buy + .ud-actions { margin-top: 1rem; }
.ud-stepper { display: inline-flex; align-items: center; flex: 0 0 auto; min-height: 54px; padding: 0 .35rem;
    border: 2px solid transparent; border-radius: 12px; background: var(--ud-opt-bg); transition: border-color .2s ease, background-color .2s ease; }
.ud-stepper:hover { background: var(--ud-opt-bg-hover); }
.ud-stepper:focus-within { border-color: var(--ud-navy); background: var(--surface); }
[data-theme="dark"] .ud-stepper:focus-within { border-color: var(--ud-steel); }
.ud-step { width: 42px; height: 42px; border: 0; border-radius: 9px; background: transparent; color: var(--text);
    display: grid; place-items: center; cursor: pointer; touch-action: manipulation; font-size: 1rem; transition: background-color .15s ease; }
.ud-step:hover { background: color-mix(in srgb, var(--text) 8%, transparent); }
.ud-step:active { background: color-mix(in srgb, var(--text) 14%, transparent); }
.ud-qty { width: 3.6rem; border: 0; background: transparent; color: var(--text); text-align: center;
    font: 700 1.05rem "Montserrat", sans-serif; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.ud-qty::-webkit-outer-spin-button, .ud-qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ud-qty:focus { outline: none; }
.ud-qty__birim { font: 600 .78rem "Montserrat", sans-serif; color: var(--muted); padding-right: .45rem; }
.ud-qty__birim:empty { display: none; }

.ud-cta {
    flex: 1 1 220px; display: inline-flex; align-items: center; justify-content: center; gap: .65rem;
    min-height: 54px; padding: .7rem 1.5rem; border: 0; border-radius: 14px; cursor: pointer; touch-action: manipulation;
    background: var(--ud-navy); color: #fff; font: 700 .86rem/1 "Montserrat", sans-serif; letter-spacing: .06em; text-transform: uppercase;
    box-shadow: 0 10px 24px -12px rgba(13, 57, 94, .75);
    transition: background-color .2s ease, box-shadow .2s ease, transform .12s ease, opacity .2s ease;
}
.ud-cta .bi { font-size: 1.1rem; }
.ud-cta__tutar { font-variant-numeric: tabular-nums; letter-spacing: .02em; text-transform: none; opacity: .92; }
.ud-cta__tutar::before { content: "·"; margin-right: .65rem; opacity: .6; }
.ud-cta:hover:not(:disabled), .ud-cta:focus-visible { background: var(--ud-steel); color: #fff; box-shadow: 0 12px 28px -12px rgba(121, 161, 187, .9); }
.ud-cta:active:not(:disabled) { transform: scale(.985); }
.ud-cta:focus-visible { outline: 2px solid var(--ud-steel); outline-offset: 3px; }
.ud-cta:disabled { background: var(--ud-opt-bg); color: var(--muted); cursor: not-allowed; box-shadow: none; }
.ud-cta.is-ok { background: #16a34a; }
@media (max-width: 575.98px) { .ud-buy { flex-direction: column; } .ud-stepper { justify-content: center; } .ud-cta { flex-basis: auto; } }

/* ── Sepet bildirimi ── */
.ud-toast { position: fixed; left: 50%; bottom: 1.25rem; transform: translate(-50%, 160%); z-index: 1080;
    display: flex; align-items: center; gap: .6rem; max-width: calc(100vw - 2rem); padding: .75rem 1rem;
    border-radius: 14px; background: var(--text); color: var(--surface); box-shadow: 0 12px 30px rgba(0,0,0,.25);
    font-size: .9rem; transition: transform .25s ease; }
.ud-toast.show { transform: translate(-50%, 0); }
.ud-toast .bi { color: #34c759; }
.ud-toast.is-hata .bi { color: #ff9f0a; }
.ud-toast a { color: inherit; font-weight: 600; text-decoration: underline; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .ud-toast { transition: none; } }
