/* Ürün detay kartı v2 + alt bilgi kartları — sitenin kendi --pd-* renklerini kullanır (açık/koyu tema otomatik) */
.pd2, .pd2-info, .product-formats-premium {
    --p-card: var(--pd-surface, #fff);
    --p-surf: var(--pd-surface-2, #f8fafc);
    --p-line: var(--pd-border, #e2e8f0);
    --p-text: var(--pd-text, #0f172a);
    --p-muted: var(--pd-text-2, #475569);
    --p-acc: var(--pd-accent, #10b981);
    --p-btn: var(--pd-accent-2, #059669);
    --p-ink: #047857;
    --p-soft: rgba(16, 185, 129, .10);
    --p-rose: #ef4444;
    --p-ring: rgba(16, 185, 129, .5);
    font-variant-numeric: tabular-nums;
}
body.dark-theme .pd2, body.dark-theme .pd2-info, body.dark-theme .product-formats-premium {
    --p-ink: #34d399;
    --p-soft: rgba(16, 185, 129, .14);
}
.pd2 i, .pd2-info i { font-style: normal; }
.pd2 :where(button, a):focus-visible, .pd2-info :where(button, a):focus-visible { outline: 3px solid var(--p-ring); outline-offset: 2px; }

/* ───── ürün kartı ───── */
.pd2 { background: var(--p-card); border: 1px solid var(--p-line); border-radius: 22px; padding: 22px; margin-bottom: 16px; color: var(--p-text); box-shadow: var(--pd-shadow, 0 4px 16px rgba(0,0,0,.07)); }
.pd2-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; min-height: 36px; }
.pd2-cat { font-size: 12.5px; font-weight: 650; color: var(--p-ink); background: var(--p-soft); padding: 5px 11px; border-radius: 999px; text-decoration: none; }
.pd2-code { display: inline-flex; align-items: center; gap: 7px; border: 0; background: none; color: var(--p-muted); font: 650 13px/1 inherit; cursor: pointer; padding: 8px 6px; border-radius: 8px; min-height: 36px; }
.pd2-code:hover { color: var(--p-text); }
.pd2-code .pd2-copy { opacity: .75; flex: none; }
.pd2 h1.pd2-title { margin: 0; font-size: 23px; line-height: 1.25; font-weight: 750; letter-spacing: -.02em; color: var(--p-text); text-wrap: balance; }
.pd2 .short-description { border: 0 !important; padding: 0 !important; background: none !important; margin: 9px 0 0 !important; font-size: 14.5px; line-height: 1.6; color: var(--p-muted); max-width: 64ch; }
.pd2 .short-description::before, .pd2 .short-description::after { display: none !important; }
.pd2 .short-description .read-more-link { color: var(--p-ink); font-weight: 650; text-decoration: none; white-space: nowrap; }

/* dosya bilgisi */
.pd2-facts { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); gap: 8px; }
.pd2-facts li { display: flex; gap: 11px; align-items: flex-start; background: var(--p-surf); border: 1px solid var(--p-line); border-radius: 14px; padding: 12px 14px; min-width: 0; }
.pd2-facts li > i { font-size: 17px; width: 20px; text-align: center; margin-top: 3px; color: var(--p-acc); }
.pd2-facts small { display: block; font-size: 12px; color: var(--p-muted); font-weight: 500; }
.pd2-facts b { display: block; font-size: 17px; font-weight: 750; letter-spacing: -.01em; line-height: 1.25; margin-top: 1px; color: var(--p-text); overflow-wrap: anywhere; }
.pd2-facts em { display: block; font-style: normal; font-size: 12px; color: var(--p-muted); margin-top: 1px; }
.pd2-compat { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 12px; font-size: 13px; color: var(--p-muted); }
.pd2-compat .tag { font-weight: 650; color: var(--p-text); border: 1px solid var(--p-line); padding: 5px 12px; border-radius: 999px; font-size: 13px; }

/* indirme paneli: sitenin yüzey renginde, vurgu yalnızca düğmede */
.pd2-dock { margin-top: 18px; border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 14px; background: var(--p-surf); border: 1px solid var(--p-line); }
.pd2-price b, .pd2-price .current-price { display: block; font-size: 30px; line-height: 1; font-weight: 800; letter-spacing: -.03em; color: var(--p-text); background: none; -webkit-text-fill-color: currentColor; }
.pd2-price b.free { color: var(--p-ink); }
.pd2-price span.sub { display: block; margin-top: 6px; font-size: 13px; color: var(--p-muted); }
.pd2-price .old-price { display: inline-block; margin-left: 8px; font-size: 15px; color: var(--p-muted); text-decoration: line-through; font-weight: 500; }
.pd2-price .price-display { display: flex; align-items: baseline; flex-wrap: wrap; }
.pd2-price .discount-badge { display: inline-block; margin-top: 8px; font-size: 12px; font-weight: 700; color: var(--p-ink); background: var(--p-soft); padding: 3px 9px; border-radius: 999px; }
.pd2-acts { display: flex; flex-direction: column; gap: 10px; flex: 1; max-width: 100%; }

/* ana düğme: düz, gölgesiz, tek satır */
.pd2 .pd2-acts .btn-buy {
    position: relative; display: flex !important; flex-direction: row !important; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 12px;
    width: 100%; height: auto !important; min-height: 54px; padding: 10px 18px !important; margin: 0;
    border: 0 !important; border-radius: 14px !important; cursor: pointer; line-height: 1.2;
    background: var(--p-btn) !important; color: #fff !important; box-shadow: none !important; filter: none; transform: none;
    font-size: 16px !important; font-weight: 700; transition: background .15s, transform .1s;
}
.pd2 .pd2-acts .btn-buy::before, .pd2 .pd2-acts .btn-buy::after { display: none !important; }
.pd2 .pd2-acts .btn-buy:hover { background: #047857 !important; }
.pd2 .pd2-acts .btn-buy:active { transform: scale(.985); }
.pd2 .pd2-acts .btn-buy:disabled { opacity: .85; cursor: progress; }
.pd2 .pd2-acts .btn-buy .btn-main-txt { padding: 0 !important; font-size: 16px !important; font-weight: 700; display: inline-flex; align-items: center; gap: 9px; color: inherit; }
.pd2 .pd2-acts .btn-buy .btn-sub-tag { display: none; }
/* durum etiketi (Sepetinizde / Satın alındı): ayrı bir küçük rozet, yazılar üst üste binmez */
.pd2 .pd2-acts .btn-buy.in-cart .btn-sub-tag, .pd2 .pd2-acts .btn-buy.purchased .btn-sub-tag {
    display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 650; line-height: 1; padding: 6px 10px; border-radius: 999px;
    background: rgba(255,255,255,.2); color: inherit; opacity: 1; letter-spacing: 0; text-transform: none;
}
/* sepette: nötr, yeşilden ayrışan koyu/açık düğme */
.pd2 .pd2-acts .btn-buy.in-cart { background: var(--p-text) !important; color: var(--p-card) !important; }
.pd2 .pd2-acts .btn-buy.in-cart:hover { background: var(--p-muted) !important; }
.pd2 .pd2-acts .btn-buy.in-cart .btn-sub-tag { background: color-mix(in srgb, var(--p-card) 22%, transparent); }

.pd2-sec { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pd2-sec button {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; width: auto; height: auto;
    border: 1px solid var(--p-line); background: var(--p-card); border-radius: 12px; color: var(--p-text);
    font: 600 14px/1 inherit; cursor: pointer; padding: 0 12px; transition: transform .1s, border-color .15s; box-shadow: none;
}
.pd2-sec button:hover { border-color: color-mix(in srgb, var(--p-text) 28%, var(--p-line)); }
.pd2-sec button:active { transform: scale(.97); }
.pd2-sec button i { font-size: 15px; }
.pd2-like b { font-weight: 700; color: var(--p-muted); font-size: 13.5px; }
.pd2-like.liked, .pd2-like.liked b { color: var(--p-rose); }
.pd2-like.liked { border-color: color-mix(in srgb, var(--p-rose) 45%, var(--p-line)); }
.pd2-dock .product-purchased-notice { flex-basis: 100%; margin: 0 0 4px; }

.pd2 .lr-info-banner { margin-top: 12px; }
.pd2-assure { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13.5px; color: var(--p-muted); }
.pd2-assure li { display: inline-flex; align-items: center; gap: 7px; }
.pd2-assure i { color: var(--p-acc); font-size: 14px; }
.pd2-proof { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; margin-top: 16px; padding-top: 15px; border-top: 1px solid var(--p-line); font-size: 13.5px; color: var(--p-muted); }
.pd2-proof span { display: inline-flex; align-items: center; gap: 7px; }
.pd2-proof b { color: var(--p-text); font-weight: 700; font-size: 14.5px; }
.pd2-proof i { font-size: 13px; }
.pd2-proof .dt { margin-left: auto; }

@media (min-width: 640px) {
    .pd2-dock { flex-direction: row; align-items: center; justify-content: space-between; gap: 22px; }
    .pd2-acts { max-width: 340px; }
}
@media (max-width: 639px) {
    .pd2 { padding: 18px; border-radius: 20px; }
    .pd2-facts { grid-template-columns: 1fr; }
    .pd2-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
    .pd2-price b { font-size: 24px; }
    .pd2-price span.sub { margin: 0; }
    .pd2-proof .dt { margin-left: 0; }
}

/* ───── alt bilgi kartı ───── */
.pd2-info { background: var(--p-card); border: 1px solid var(--p-line); border-radius: 22px; padding: 6px 22px; margin-bottom: 16px; color: var(--p-text); box-shadow: var(--pd-shadow, 0 4px 16px rgba(0,0,0,.07)); }
.pd2-row { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 16px 0; border-top: 1px solid var(--p-line); align-items: start; }
.pd2-row:first-child { border-top: 0; }
.pd2-k { font-size: 13.5px; font-weight: 600; color: var(--p-muted); padding-top: 7px; }
.pd2-v { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-width: 0; }
.pd2-chip { display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; border-radius: 999px; font-size: 13.5px; font-weight: 550; line-height: 1;
    color: var(--p-text); background: var(--p-surf); border: 1px solid var(--p-line); text-decoration: none; transition: border-color .15s; }
.pd2-chip:hover { border-color: var(--p-acc); }
.pd2-chip.cat, .pd2-chip.prod { background: var(--p-soft); color: var(--p-ink); border-color: transparent; font-weight: 650; }
.pd2-tags .extra { display: none; }
.pd2-tags[data-open=true] .extra { display: inline-flex; }
.pd2-more { min-height: 34px; padding: 0 12px; border: 1px dashed color-mix(in srgb, var(--p-muted) 55%, transparent); background: none; border-radius: 999px; color: var(--p-muted); font: 600 13px/1 inherit; cursor: pointer; }
.pd2-more:hover { color: var(--p-text); border-color: var(--p-muted); }
@media (max-width: 639px) {
    .pd2-info { padding: 4px 18px; border-radius: 20px; }
    .pd2-row { grid-template-columns: 1fr; gap: 8px; padding: 14px 0; }
    .pd2-k { padding-top: 0; }
}

/* ───── "Geniş Format Desteği" kartı ───── */
.product-formats-premium { background: var(--p-card) !important; border: 1px solid var(--p-line) !important; border-radius: 22px !important; padding: 16px 22px 18px !important; margin-bottom: 16px; box-shadow: var(--pd-shadow, 0 4px 16px rgba(0,0,0,.07)) !important; overflow: hidden; }
.product-formats-premium::before { display: none !important; }
.product-formats-premium .pf-header { margin-bottom: 12px; gap: 10px; }
.product-formats-premium .pf-icon { background: var(--p-soft) !important; color: var(--p-ink) !important; box-shadow: none !important; border-radius: 10px; }
.product-formats-premium .pf-title { font-size: 14px; font-weight: 650; color: var(--p-muted); }
.product-formats-premium .pf-badge-pro { border-radius: 999px !important; background: var(--p-surf) !important; border: 1px solid var(--p-line) !important; box-shadow: none !important; padding: 7px 14px !important; }
.product-formats-premium .pf-badge-pro:hover { border-color: var(--p-acc) !important; transform: none; }
.product-formats-premium .pf-ext { font-size: 13.5px; font-weight: 650; }

@media (prefers-reduced-motion: reduce) { .pd2 *, .pd2-info * { transition: none !important; animation: none !important; } }

/* ───── ücretli ürün: fiyat, indirim rozeti, "satın alındı" bilgisi ───── */
.pd2-dock { flex-wrap: wrap; }
.pd2-price { flex: none; max-width: 100%; }
.pd2 .pd2-price .current-price, .pd2 .pd2-price b {
    font-size: 30px !important; font-weight: 800 !important; letter-spacing: -.03em !important; line-height: 1 !important; white-space: nowrap;
    color: var(--p-text) !important; background: none !important; -webkit-background-clip: border-box !important; background-clip: border-box !important; -webkit-text-fill-color: currentColor !important;
}
.pd2 .pd2-price b.free { color: var(--p-ink) !important; }
.pd2 .pd2-price .price-display { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.pd2 .pd2-price .old-price { font-size: 15px !important; font-weight: 500 !important; color: var(--p-muted) !important; text-decoration: line-through; margin: 0; white-space: nowrap; opacity: .85; }
.pd2 .pd2-price .discount-badge {
    display: inline-flex; align-items: center; margin-top: 8px; padding: 4px 10px !important; border-radius: 999px !important; font-size: 12px !important; font-weight: 700 !important; letter-spacing: 0 !important;
    color: var(--p-ink) !important; background: var(--p-soft) !important; border: 0 !important; box-shadow: none !important; text-shadow: none !important; animation: none !important;
}
.pd2 .pd2-price .discount-badge::before, .pd2 .pd2-price .discount-badge::after { display: none !important; }
.pd2-dock .product-purchased-notice {
    order: 3; flex: 1 1 100%; margin: 0 !important; display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; font-size: 13.5px; font-weight: 600; line-height: 1.35;
    color: var(--p-ink); background: var(--p-soft); border: 1px solid color-mix(in srgb, var(--p-acc) 28%, transparent); box-shadow: none;
}
.pd2-dock .product-purchased-notice i { color: var(--p-acc); }
.pd2-sec button { white-space: nowrap; }
.pd2-sec button span { overflow: hidden; text-overflow: ellipsis; }

/* ───── indirme paneli: akışkan, ışıklı yüzey (sitenin yeşil tonlarında) ───── */
.pd2-dock {
    position: relative; overflow: hidden; isolation: isolate;
    background: linear-gradient(145deg, color-mix(in srgb, var(--p-card) 82%, #10b981 18%), color-mix(in srgb, var(--p-card) 92%, #2dd4bf 8%)) !important;
    border: 1px solid color-mix(in srgb, var(--p-acc) 26%, var(--p-line)) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.55) !important; color: var(--p-text);
}
body.dark-theme .pd2-dock { background: linear-gradient(145deg, #1b211e, #141414) !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.06) !important; border-color: rgba(16,185,129,.22) !important; }
/* yavaşça kayan renk lekeleri: yağ gibi akıcı */
.pd2-dock::before, .pd2-dock::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(34px); pointer-events: none; will-change: transform; }
.pd2-dock::before { width: 62%; height: 150%; left: -12%; top: -45%; background: radial-gradient(closest-side, rgba(16,185,129,.42), transparent 72%); animation: pd2-drift-a 16s ease-in-out infinite alternate; }
.pd2-dock::after  { width: 55%; height: 140%; right: -10%; bottom: -55%; background: radial-gradient(closest-side, rgba(45,212,191,.34), transparent 72%); animation: pd2-drift-b 19s ease-in-out infinite alternate; }
body.dark-theme .pd2-dock::before { background: radial-gradient(closest-side, rgba(16,185,129,.30), transparent 72%); }
body.dark-theme .pd2-dock::after  { background: radial-gradient(closest-side, rgba(45,212,191,.20), transparent 72%); }
@keyframes pd2-drift-a { 0% { transform: translate(0,0) scale(1); } 100% { transform: translate(28%, 14%) scale(1.18); } }
@keyframes pd2-drift-b { 0% { transform: translate(0,0) scale(1.1); } 100% { transform: translate(-30%, -12%) scale(.92); } }

.pd2 .pd2-dock .pd2-price .current-price, .pd2 .pd2-dock .pd2-price b { color: var(--p-text) !important; }
.pd2 .pd2-dock .pd2-price b.free { color: var(--p-text) !important; }
.pd2 .pd2-dock .pd2-price span.sub { color: var(--p-muted); }
.pd2 .pd2-dock .pd2-price .old-price { color: var(--p-muted) !important; }
.pd2 .pd2-dock .pd2-price .discount-badge { color: var(--p-ink) !important; background: color-mix(in srgb, var(--p-acc) 18%, transparent) !important; }

/* ana düğme: parlak yeşil, içten ışıltı, dış gölge yok; üzerine gelince akışkan kayar */
.pd2 .pd2-dock .pd2-acts .btn-buy {
    background: linear-gradient(120deg, #10b981 0%, #34d399 45%, #10b981 100%) !important; background-size: 220% 100% !important; background-position: 0% 0 !important;
    color: #04261a !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.45), inset 0 -1px 0 rgba(0,0,0,.08) !important;
    transition: background-position .6s cubic-bezier(.22,1,.36,1), transform .25s cubic-bezier(.22,1,.36,1) !important;
}
.pd2 .pd2-dock .pd2-acts .btn-buy:hover { background-position: 100% 0 !important; }
.pd2 .pd2-dock .pd2-acts .btn-buy:active { transform: scale(.98); }
.pd2 .pd2-dock .pd2-acts .btn-buy .btn-sub-tag { background: rgba(4,38,26,.12); }
.pd2 .pd2-dock .pd2-acts .btn-buy.in-cart { background: var(--p-text) !important; color: var(--p-card) !important; box-shadow: none !important; }
.pd2 .pd2-dock .pd2-acts .btn-buy.in-cart:hover { background: var(--p-muted) !important; }
.pd2 .pd2-dock .pd2-acts .btn-buy.in-cart .btn-sub-tag { background: color-mix(in srgb, var(--p-card) 22%, transparent); }

/* ikincil düğmeler: buzlu cam */
.pd2-dock .pd2-sec button {
    background: color-mix(in srgb, var(--p-card) 55%, transparent); border: 1px solid color-mix(in srgb, var(--p-text) 12%, transparent); color: var(--p-text);
    -webkit-backdrop-filter: blur(12px) saturate(1.4); backdrop-filter: blur(12px) saturate(1.4);
    transition: transform .3s cubic-bezier(.22,1,.36,1), background .3s, border-color .3s;
}
.pd2-dock .pd2-sec button:hover { background: color-mix(in srgb, var(--p-card) 80%, transparent); border-color: color-mix(in srgb, var(--p-acc) 55%, transparent); transform: translateY(-1px); }
.pd2-dock .pd2-sec button:active { transform: scale(.97); }
.pd2-dock .pd2-like b { color: var(--p-muted); }
.pd2-dock .pd2-like.liked, .pd2-dock .pd2-like.liked b { color: var(--p-rose); }
.pd2-dock .pd2-like.liked { border-color: color-mix(in srgb, var(--p-rose) 50%, transparent); }
.pd2-dock .product-purchased-notice { color: var(--p-ink); background: color-mix(in srgb, var(--p-card) 55%, transparent); border-color: color-mix(in srgb, var(--p-acc) 32%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.pd2-dock .product-purchased-notice i { color: var(--p-acc); }
@media (prefers-reduced-motion: reduce) { .pd2-dock::before, .pd2-dock::after { animation: none !important; } }
