/* Source: kabasakal/epin-detay.html (pd-*) and epin-detay_files/theme.css (tabs).
   Reference geometry uses Pay2Zone's shared theme tokens; no separate page palette. */
.epin-detail {
    --container: 1140px;
    --background: var(--bg);
    --foreground: var(--text);
    --primary: var(--blue);
    --card: var(--panel);
    --muted-foreground: var(--muted);
    --border: var(--line);
    --pd-success: #0cd780;
    background: var(--background);
    color: var(--foreground);
    letter-spacing: 0;
}
.pd-wrap { padding: 24px 0 48px; }
.pd-inner { max-width: var(--container, 1400px); margin: 0 auto; padding: 0 20px; display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.epin-detail [hidden] { display: none !important; }
.epin-detail :is(h1, h2, h3, button, input, a) { font-family: inherit; letter-spacing: 0; }
.epin-detail :is(button, input, a, [tabindex]):focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.epin-detail .pd-crumb { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted-foreground); padding: 6px 0; background: transparent; border: 0; }
.pd-crumb a { color: var(--muted-foreground); transition: color .15s; }
.pd-crumb a:hover { color: var(--primary); }
.pd-crumb-sep { opacity: .5; }
.pd-crumb .is-active { color: var(--foreground); font-weight: 600; overflow-wrap: anywhere; }

.pd-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 36px; align-items: center; max-width: 1100px; margin: 0 auto; width: 100%; }
.pd-gallery { display: flex; flex-direction: column; gap: 12px; max-width: 560px; width: 100%; min-width: 0; }
.pd-gallery__main { position: relative; aspect-ratio: 1 / 1; border-radius: 16px; overflow: hidden; background: var(--card); display: grid; place-items: center; border: 1px solid var(--border); }
/* Portrait/landscape uploads share the square frame without losing product artwork. */
.pd-gallery__main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
.pd-badge-discount { position: absolute; top: 14px; left: 14px; z-index: 2; background: #dc2626; color: #fff; padding: 6px 12px; border-radius: 8px; font-size: 13px; font-weight: 800; }
.pd-gallery__thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 3px; scrollbar-width: thin; }
.pd-thumb { flex: 0 0 78px; width: 78px; height: 78px; border: 2px solid var(--border); background: var(--card); border-radius: 8px; overflow: hidden; cursor: pointer; padding: 0; transition: border-color .15s; }
.pd-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pd-thumb:hover, .pd-thumb.is-on { border-color: var(--primary); }
.pd-thumb.is-on { box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 25%, transparent); }

.pd-info { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.pd-brand-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pd-brand { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--muted-foreground); }
.pd-brand i { color: var(--primary); font-size: 15px; }
.pd-title { font-size: 30px; font-weight: 800; line-height: 1.2; margin: 0; color: var(--foreground); overflow-wrap: anywhere; }
.pd-sub { font-size: 14px; color: var(--muted-foreground); line-height: 1.5; margin: 0; overflow-wrap: anywhere; }
.epin-detail .member-favorite-form { margin: 0; }
.epin-detail .member-favorite-button { display: inline-flex; align-items: center; gap: 5px; padding: 4px 0; font-size: 11.5px; color: var(--muted-foreground); background: transparent; border: 0; }
.epin-detail .member-favorite-button:hover { color: var(--primary); }
.epin-detail .member-favorite-button .ui-icon { width: 14px; height: 14px; }
.pd-rating { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.pd-rating__stars { color: #f59e0b; font-size: 16px; }
.pd-rating strong { font-weight: 700; }
.pd-rating a { color: var(--primary); margin-left: auto; font-weight: 600; }
.pd-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.pd-chip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 99px; font-size: 11.5px; font-weight: 700; }
.pd-chip i { font-size: 13px; }
.pd-chip--ok { background: color-mix(in srgb, var(--pd-success) 12%, transparent); color: var(--pd-success); }
.pd-chip--oos { background: rgba(220, 38, 38, .12); color: #f87171; }
.pd-chip--instant { background: color-mix(in srgb, var(--primary) 14%, transparent); color: var(--primary); }
.pd-chip--secure { background: color-mix(in srgb, var(--primary) 12%, transparent); color: #8ecbfa; }

.pd-buy { padding: 18px; background: color-mix(in srgb, var(--primary) 5%, var(--card)); border: 1px solid color-mix(in srgb, var(--primary) 20%, var(--border)); border-radius: 16px; display: flex; flex-direction: column; gap: 14px; margin: 6px 0 0; min-width: 0; }
.pd-buy-row { display: grid; grid-template-columns: 128px minmax(0, 1fr); align-items: start; gap: 14px; }
.pd-buy-left { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pd-qty-label, .pd-price-label { font-size: 11.5px; font-weight: 600; line-height: 1.5; color: var(--muted-foreground); }
.pd-buy-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; min-width: 0; }
.pd-price-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.pd-price-old { color: var(--muted-foreground); font-size: 14px; text-decoration: line-through; opacity: .75; font-weight: 500; }
.pd-price-new { font-size: 28px; font-weight: 800; color: var(--foreground); line-height: 1.3; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.pd-price-unit { font-size: 11.5px; color: var(--muted-foreground); font-weight: 600; }
.pd-qty { display: inline-flex; align-items: center; background: var(--card); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; height: 42px; width: 128px; }
.epin-detail .pd-qty-btn { flex: 0 0 38px; width: 38px; height: 42px; padding: 0; background: transparent; border: 0; cursor: pointer; color: var(--foreground); display: grid; place-items: center; transition: background .15s; }
.pd-qty-btn:hover { background: color-mix(in srgb, var(--primary) 12%, var(--card)); }
.pd-qty-btn i { font-size: 16px; }
.epin-detail .pd-qty input { width: 50px; min-width: 0; height: 42px; padding: 0; border: 0; outline: 0; background: transparent; text-align: center; font-size: 14px; font-weight: 700; color: var(--foreground); appearance: textfield; }
.pd-qty input::-webkit-outer-spin-button, .pd-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.epin-detail .pd-qty input:focus-visible { outline-offset: -3px; }
.pd-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.epin-detail :is(.pd-cart, .pd-buy-now) { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; min-width: 0; padding: 10px 8px; border: 0; cursor: pointer; border-radius: 10px; font-size: 13.5px; font-weight: 700; line-height: 1.3; transition: transform .12s, background .2s, box-shadow .2s; }
.pd-cart i, .pd-buy-now i { font-size: 16px; flex-shrink: 0; }
.epin-detail :is(.pd-cart, .pd-buy-now) span { min-width: 0; overflow-wrap: anywhere; }
.epin-detail .pd-cart { background: var(--primary); color: #07121e; border: 1px solid var(--primary); }
.epin-detail .pd-cart:hover { background: #70bcff; border-color: #70bcff; }
.epin-detail .pd-buy-now { background: var(--pd-success); color: #061c14; border: 1px solid #2be396; }
.epin-detail .pd-buy-now:hover { background: #2be396; }
.epin-detail :is(.pd-cart, .pd-buy-now, .pd-qty-btn):disabled { opacity: .45; cursor: not-allowed; transform: none; }
.pd-feedback { margin: 0; padding: 10px 12px; border-left: 2px solid #34d17d; color: var(--foreground); font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.pd-feedback--error { border-color: #f87171; color: #f87171; }
/* Two stable columns keep translated trust labels from dropping into an uneven last row. */
.pd-trust { list-style: none; margin: 6px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; font-size: 12px; }
.pd-trust li { display: flex; align-items: flex-start; gap: 7px; min-width: 0; }
.pd-trust i { width: 16px; font-size: 15px; line-height: 1.5; color: var(--primary); flex-shrink: 0; }
.pd-trust span { min-width: 0; font-weight: 500; line-height: 1.5; color: var(--muted-foreground); overflow-wrap: anywhere; }

.pd-vars { margin-top: 8px; min-width: 0; }
.pd-vars__head, .pd-rec__head { margin-bottom: 14px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; }
.pd-vars__head > div, .pd-rec__head > div { min-width: 0; }
.epin-detail :is(.pd-vars__head, .pd-rec__head) { background: transparent; border: 0; box-shadow: none; position: static; }
.pd-vars__head h2, .pd-rec__head h2 { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.4; display: flex; align-items: center; gap: 8px; color: var(--foreground); overflow-wrap: anywhere; }
.pd-vars__head h2 i, .pd-rec__head h2 i { color: var(--primary); flex-shrink: 0; }
.pd-vars__head p, .pd-rec__head p { margin: 4px 0 0; font-size: 12.5px; color: var(--muted-foreground); overflow-wrap: anywhere; }
.pd-vars__nav { display: inline-flex; gap: 6px; }
.pd-vars__btn { width: 32px; height: 32px; padding: 0; border: 1px solid var(--border); border-radius: 8px; background: var(--card); color: var(--foreground); cursor: pointer; display: grid; place-items: center; font-size: 16px; }
.pd-vars__btn:hover { border-color: var(--primary); color: var(--primary); }
.pd-vars__btn:disabled { opacity: .35; cursor: default; }
/* Native scrolling replaces only Swiper, keeping the reference's 220px variation cards. */
.pd-vars__track { display: flex; gap: 10px; max-width: 100%; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; padding: 3px 0; }
.pd-vars__empty { width: 100%; margin: 0; padding: 18px 0; border-block: 1px solid var(--border); font-size: 13px; line-height: 1.6; color: var(--muted-foreground); }
.pd-vars__track::-webkit-scrollbar { display: none; }
.pd-var { flex: 0 0 220px; display: flex; align-items: center; gap: 10px; padding: 8px; background: var(--card); border: 1px solid var(--border); border-radius: 8px; text-decoration: none; color: var(--foreground); transition: border-color .15s; }
.pd-var:hover { border-color: var(--primary); }
.pd-var__cover { width: 54px; height: 54px; flex-shrink: 0; border-radius: 8px; overflow: hidden; background: var(--background); display: grid; place-items: center; }
.pd-var__cover img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pd-var__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.pd-var__body h3 { margin: 0; min-height: 35px; font-size: 12.5px; font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--foreground); overflow-wrap: anywhere; }
.pd-var__bottom { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.pd-var__price { display: flex; align-items: baseline; gap: 5px; min-width: 0; flex-wrap: wrap; }
.pd-var__price del { font-size: 10.5px; color: var(--muted-foreground); opacity: .7; }
.pd-var__price strong { font-size: 13px; font-weight: 700; color: var(--foreground); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.pd-var__stock { font-size: 14px; flex-shrink: 0; color: var(--primary); }
.pd-var__stock--ok { color: var(--pd-success); }
.pd-var__stock--oos { color: #f87171; }

.epin-detail .cat-tabs-wrap { padding-top: 32px; min-width: 0; }
.epin-detail .cat-tabs__nav { display: flex; gap: 2px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; margin-bottom: 24px; }
.epin-detail .cat-tabs__nav::-webkit-scrollbar { display: none; }
.epin-detail .cat-tabs__btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 18px; background: transparent; border: 0; cursor: pointer; color: var(--muted-foreground); font-size: 13.5px; font-weight: 600; border-bottom: 2px solid transparent; white-space: nowrap; }
.epin-detail .cat-tabs__btn i { font-size: 16px; opacity: .7; }
.epin-detail .cat-tabs__btn:hover { color: var(--foreground); }
.epin-detail .cat-tabs__btn.is-on { color: var(--primary); border-bottom-color: var(--primary); }
.epin-detail .cat-tabs__panel { padding: 0; }
.pd-tab-count { font-size: 11px; color: var(--muted-foreground); }
.epin-detail .cat-rich { font-size: 15px; line-height: 1.75; color: var(--foreground); max-width: 880px; overflow-wrap: anywhere; }
.epin-detail .cat-rich :first-child { margin-top: 0; }
.epin-detail .cat-rich :last-child { margin-bottom: 0; }
.epin-detail .cat-rich h2 { margin: 22px 0 10px; font-weight: 800; color: var(--foreground); font-size: 22px; line-height: 1.25; }
.epin-detail .cat-rich p { margin: 0 0 14px; color: var(--muted-foreground); }
.epin-detail .cat-rich ol, .epin-detail .cat-rich ul { margin: 0 0 14px; padding-left: 22px; color: var(--muted-foreground); }
.epin-detail .cat-rich li { margin-bottom: 6px; line-height: 1.6; }
.epin-detail .cat-rich a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.pd-specs { margin: 24px 0; border-top: 1px solid var(--border); font-size: 13px; }
.pd-specs > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.pd-specs dt { min-width: 0; color: var(--muted-foreground); }
.pd-specs dd { min-width: 0; margin: 0; text-align: right; overflow-wrap: anywhere; }
.epin-detail .product-review-section { padding: 0; border: 0; margin: 0; }
.epin-detail .product-review-section .section-head { margin-bottom: 18px; gap: 16px; }
.epin-detail .product-review-section h2 { font-size: 18px; }
.epin-detail .product-review-section :is(.community-copy, .community-review p, .community-review small, .section-head p) { color: var(--muted-foreground); }
.epin-detail .community-review { border-color: var(--border); }
.epin-detail .community-review blockquote { background: var(--card); border-color: var(--primary); }
.epin-detail .community-avatar { background: var(--card); color: var(--primary); }
.epin-detail .community-link { color: var(--primary); }

.pd-rec { margin-top: 8px; min-width: 0; }
.pd-rec__head h2 { font-size: 20px; }
.pd-category-link { display: inline-flex; align-items: center; gap: 6px; color: var(--primary); font-size: 12.5px; }
.pd-rec__nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pd-rec__nav .pd-category-link { margin-right: 8px; }
.pd-rec__track { display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; padding: 3px 0; }
.pd-rec__track::-webkit-scrollbar { display: none; }
.pd-rec-card { flex: 0 0 calc((100% - 8.4px) / 1.6); min-width: 0; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; text-decoration: none; color: var(--foreground); transition: border-color .2s; }
.pd-rec-card:hover { border-color: var(--primary); }
.pd-rec-card__cover { position: relative; aspect-ratio: 5 / 6; background: var(--background); overflow: hidden; }
.pd-rec-card__cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
.pd-rec-card__body { padding: 10px 12px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pd-rec-card__body h3 { margin: 0; font-size: 13.5px; font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 38px; color: var(--foreground); overflow-wrap: anywhere; }
.pd-rec-card__price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin-top: auto; }
.pd-rec-card__price del { font-size: 11.5px; color: var(--muted-foreground); opacity: .7; }
.pd-rec-card__price strong { font-size: 15px; font-weight: 700; color: var(--foreground); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.product-unavailable { padding-block: 60px; text-align: center; align-items: center; }
.product-unavailable h1 { font-size: 28px; }
.product-unavailable p { color: var(--muted-foreground); }
.product-unavailable a { color: var(--primary); }

@media (max-width: 900px) {
    .pd-hero { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .pd-gallery { max-width: none; margin: 0 auto; }
    .pd-title { font-size: 26px; }
}
@media (max-width: 1100px) { .pd-price-new { font-size: 24px; } }
@media (min-width: 480px) { .pd-rec-card { flex-basis: calc((100% - 19.6px) / 2.4); } }
@media (min-width: 760px) { .pd-rec-card { flex-basis: calc((100% - 30.8px) / 3.2); } }
@media (min-width: 1024px) { .pd-rec-card { flex-basis: calc((100% - 44.8px) / 4.2); } }
@media (min-width: 1280px) { .pd-rec-card { flex-basis: calc((100% - 58.8px) / 5.2); } }
@media (max-width: 600px) {
    .pd-title { font-size: 22px; }
    .pd-vars__head h2 { font-size: 16px; }
    .pd-rec__head { grid-template-columns: minmax(0, 1fr); }
    .pd-buy-row { grid-template-columns: minmax(0, 1fr); }
    .pd-buy-right { align-items: flex-start; }
    .pd-price-row { justify-content: flex-start; }
    .epin-detail .cat-tabs__btn { padding: 12px 14px; font-size: 12.5px; }
    .epin-detail .cat-rich { font-size: 14px; }
    .epin-detail .cat-rich h2 { font-size: 19px; }
    .pd-trust { font-size: 11.5px; gap: 8px 12px; }
}
@media (max-width: 360px) {
    .pd-inner { padding-inline: 14px; }
    .pd-buy { padding: 14px; }
    .epin-detail :is(.pd-cart, .pd-buy-now) { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    .epin-detail * { transition: none !important; scroll-behavior: auto !important; }
}
