/* TWB ürün sayfası bölümleri */
:root {
    --twb-text: #1a1a1a;
    --twb-muted: #555;
    --twb-line: #e5e5e5;
    --twb-soft: #f4f4f4;
    --twb-accent: #111;
    --twb-radius: 6px;
    --twb-gap: clamp(20px, 4vw, 56px);
}

.twb-product-sections { max-width: 1200px; margin: 0 auto; padding: 0 16px; color: var(--twb-text); }
.twb-sec { margin: clamp(48px, 7vw, 96px) 0; }
.twb-h { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.2; margin: 0 0 18px; font-weight: 600; }
.twb-h--center { text-align: center; }
.twb-rte { font-size: 14px; line-height: 1.75; color: var(--twb-muted); }
.twb-rte p { margin: 0 0 12px; }
.twb-rte p:last-child { margin-bottom: 0; }
.twb-rte strong { color: var(--twb-text); }
.twb-rte--specs { font-size: 13.5px; line-height: 1.9; }
.twb-sec img { display: block; width: 100%; height: auto; border-radius: var(--twb-radius); }

/* Tedarik kutusu (özet alanında) */
.twb-tedarik { display: inline-block; margin: 18px 0 16px; padding: 10px 16px; border: 1px solid var(--twb-text); border-radius: 16px; font-size: 13px; line-height: 1.6; }
.twb-tedarik__title { display: block; }
.twb-tedarik__body p { margin: 0; }
.twb-desc { margin: 16px 0; font-size: 14px; }

/* Metin + görsel */
.twb-split { display: grid; grid-template-columns: 1fr minmax(0, 420px); gap: var(--twb-gap); align-items: center; }
.twb-split--media-first { grid-template-columns: minmax(0, 420px) 1fr; }
.twb-split--text-first .twb-split__text { text-align: center; }
.twb-split__media img { aspect-ratio: 1 / 1; object-fit: cover; }

/* Galeri bloğu */
.twb-gal { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; align-items: stretch; }
.twb-gal--nobig { grid-template-columns: 1fr; }
.twb-gal__big img { height: 100%; object-fit: cover; }
.twb-gal__right { display: grid; gap: 16px; align-content: start; }
.twb-gal__top { display: grid; grid-template-columns: minmax(0, 1fr) 1fr; gap: 16px; align-items: center; }
.twb-gal__top:not(:has(.twb-gal__small)) { grid-template-columns: 1fr; }
.twb-gal__small img { aspect-ratio: 1 / 1; object-fit: cover; }
.twb-gal__text { font-size: 12.5px; }
.twb-gal__box { background: var(--twb-soft); border-radius: var(--twb-radius); padding: clamp(18px, 3vw, 36px); text-align: center; font-size: 12.5px; }

.twb-long { max-width: 860px; margin-left: auto; margin-right: auto; }

/* YouTube (tıklayınca yüklenir) */
.twb-yt { position: relative; display: block; width: 100%; padding: 0; border: 0; background: #000; cursor: pointer; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--twb-radius); }
.twb-yt img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; opacity: .92; transition: opacity .2s; }
.twb-yt:hover img { opacity: 1; }
.twb-yt__play { position: absolute; left: 20px; bottom: 20px; width: 56px; height: 56px; border-radius: 50%; border: 2px solid #fff; }
.twb-yt__play::after { content: ""; position: absolute; left: 22px; top: 17px; border-style: solid; border-width: 10px 0 10px 16px; border-color: transparent transparent transparent #fff; }
.twb-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.twb-video-single { max-width: 960px; margin-left: auto; margin-right: auto; }

/* Marka / video */
.twb-brand { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--twb-gap); align-items: center; }
.twb-brand__sub { font-size: 16px; margin: 22px 0 8px; font-weight: 600; }

/* SSS */
.twb-faq { display: grid; grid-template-columns: 1fr 1fr; gap: var(--twb-gap); align-items: start; }
.twb-faq__caption { font-size: 11px; letter-spacing: .08em; margin: 0 0 6px; color: var(--twb-muted); }
.twb-faq__item { border-bottom: 1px solid var(--twb-line); }
.twb-faq__item summary { list-style: none; cursor: pointer; padding: 18px 28px 18px 0; position: relative; font-weight: 600; font-size: 14px; }
.twb-faq__item summary::-webkit-details-marker { display: none; }
.twb-faq__item summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 20px; font-weight: 400; }
.twb-faq__item[open] summary::after { content: "–"; }
.twb-faq__a { padding: 0 0 18px; font-size: 13px; color: var(--twb-muted); }
.twb-faq__a p { margin: 0; }
.twb-faq__media { position: relative; }
.twb-ask { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; gap: 16px; align-items: center; justify-content: space-between; background: #fff; padding: 16px 18px; border-radius: var(--twb-radius); box-shadow: 0 6px 24px rgba(0, 0, 0, .12); }
.twb-ask h3 { font-size: 14px; margin: 0 0 4px; }
.twb-ask p { font-size: 12px; margin: 0; color: var(--twb-muted); }
.twb-ask__btn { flex: 0 0 auto; background: var(--twb-accent); color: #fff !important; padding: 10px 18px; border-radius: 4px; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-decoration: none; }

/* Varyasyon butonları */
.twb-swatch-wrap select { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0; pointer-events: none; }
.twb-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.twb-swatch { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 6px 14px; border: 1px solid var(--twb-line); border-radius: 999px; background: #fff; color: var(--twb-text); font-size: 13px; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.twb-swatch:hover { border-color: var(--twb-text); }
.twb-swatch.is-active { border-color: var(--twb-text); box-shadow: inset 0 0 0 1px var(--twb-text); }
.twb-swatch.is-disabled { opacity: .35; text-decoration: line-through; }
.twb-swatch__dot { width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }

@media (max-width: 900px) {
    .twb-split, .twb-split--media-first, .twb-gal, .twb-brand, .twb-faq { grid-template-columns: 1fr; }
    .twb-split--text-first .twb-split__media { order: -1; }
    .twb-split__media { max-width: 520px; }
}
@media (max-width: 520px) {
    .twb-gal__top { grid-template-columns: 1fr; }
    .twb-ask { position: static; margin-top: 12px; flex-direction: column; align-items: flex-start; }
}

/* Tema buton stillerini ez (yükseklik/genişlik/font) */
.product .summary .twb-swatches .twb-swatch { display: inline-flex; width: auto; height: auto; min-height: 40px; margin: 0; padding: 8px 18px; font: inherit; font-size: 13px; line-height: 1.2; letter-spacing: 0; text-transform: none; }
.product .summary .twb-swatches .twb-swatch:hover { background: #fff; color: var(--twb-text); }
.product .summary .twb-swatches .twb-swatch.is-active { background: var(--twb-text); color: #fff; }
