/**
 * Tarık Ediz–style PDP (reference: tarikediz.com product pages)
 */
body.te-pdp.premium-pdp {
  --te-font: 'Poppins', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --te-text: #000;
  --te-muted: #6b6b6b;
  --te-border: rgba(0, 0, 0, 0.12);
  --te-bg: #fff;
  --te-ease: cubic-bezier(0.215, 0.61, 0.355, 1);
  font-family: var(--te-font);
  color: var(--te-text);
  background: var(--te-bg);
}

body.te-pdp .page-banner-main,
body.te-pdp .urun-detay-main > .page-banner-main {
  display: none !important;
}

body.te-pdp .urun-detay-main,
body.te-pdp .urun-detay-main-in,
body.te-pdp .urun-detay-desc-main {
  width: 100% !important;
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  background: transparent !important;
  overflow: visible !important;
}

body.te-pdp .header-main-div,
body.te-pdp .header-desktop-main-div {
  background: var(--te-bg) !important;
}

/* ─── Layout ─── */
.te-pdp {
  width: 100%;
  padding: clamp(1rem, 2vw, 1.75rem) clamp(12px, 2.5vw, 40px) clamp(4rem, 8vw, 6rem);
  box-sizing: border-box;
}

.te-pdp__crumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: clamp(1.25rem, 2.5vw, 2rem);
  color: var(--te-muted);
}

.te-pdp__crumbs a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s var(--te-ease);
}

.te-pdp__crumbs a:hover {
  color: var(--te-text);
}

.te-pdp__crumbs-sep {
  opacity: 0.5;
}

.te-pdp__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}

/* ─── Gallery (horizontal swipe slider) ─── */
.te-pdp__gallery {
  position: relative;
  width: 100%;
}

.te-pdp__slider-viewport {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-height: min(88vh, 980px);
  aspect-ratio: 3 / 4;
  background: transparent;
  touch-action: none;
  user-select: none;
  cursor: zoom-in;
}

.te-pdp__slider-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.48s var(--te-ease);
  will-change: transform;
}

.te-pdp__slider-track.is-dragging {
  transition: none;
}

.te-pdp__slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  margin: 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.te-pdp__slide picture {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.te-pdp__slide img,
.te-pdp__slide picture img {
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: unset !important;
  object-fit: contain !important;
  object-position: center center;
  background: transparent;
  pointer-events: none;
}

.te-pdp__slider-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--te-text);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.25s var(--te-ease), background 0.2s var(--te-ease);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.te-pdp__slider-viewport:hover .te-pdp__slider-nav,
.te-pdp__slider-nav:focus-visible {
  opacity: 1;
}

.te-pdp__slider-nav:hover {
  background: #fff;
}

.te-pdp__slider-nav--prev {
  left: 0.75rem;
}

.te-pdp__slider-nav--next {
  right: 0.75rem;
}

.te-pdp__slider-counter {
  position: absolute;
  right: 0.85rem;
  bottom: 0.85rem;
  z-index: 2;
  padding: 0.35rem 0.65rem;
  font-size: 11px;
  letter-spacing: 0.12em;
  background: rgba(255, 255, 255, 0.88);
  color: var(--te-muted);
  pointer-events: none;
}

.te-pdp__slider-counter-sep {
  margin: 0 0.15rem;
  opacity: 0.6;
}

.te-pdp__slider-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.85rem;
  padding: 0 0.25rem;
}

.te-pdp__slider-dot {
  width: 2rem;
  height: 2px;
  padding: 0;
  border: none;
  background: var(--te-border);
  cursor: pointer;
  transition: background 0.3s var(--te-ease), transform 0.3s var(--te-ease);
}

.te-pdp__slider-dot.is-active {
  background: var(--te-text);
  transform: scaleX(1.15);
}

.te-pdp__slider-dot:hover {
  background: var(--te-muted);
}

.te-pdp__slider-zoom {
  position: absolute;
  right: 0.85rem;
  top: 0.85rem;
  z-index: 2;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--te-border);
  color: var(--te-text);
  font-size: 1.2rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0.9;
}

/* ─── Cinematic fullscreen lightbox ─── */
.te-pdp-lightbox {
  position: fixed;
  inset: 0;
  z-index: 110000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.45s var(--te-ease), visibility 0.45s var(--te-ease);
}

body.te-pdp-lightbox-open {
  overflow: hidden !important;
}

body.te-pdp-lightbox-open .te-pdp__buy,
body.te-pdp-lightbox-open .te-pdp__gallery,
body.te-pdp-lightbox-open #tePdpMain {
  pointer-events: none;
}

.te-pdp-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.te-pdp-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: #050505;
  opacity: 0.97;
}

.te-pdp-lightbox__grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.12;
  pointer-events: none;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

.te-pdp-lightbox__stage {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: min(1040px, 92vw);
  max-height: 90vh;
  padding: clamp(3.5rem, 8vw, 5rem) clamp(3.5rem, 10vw, 6rem);
  box-sizing: border-box;
  transform: scale(0.97);
  opacity: 0;
  transition: transform 0.55s var(--te-ease), opacity 0.55s var(--te-ease);
  pointer-events: none;
}

.te-pdp-lightbox.is-open .te-pdp-lightbox__stage {
  transform: scale(1);
  opacity: 1;
}

.te-pdp-lightbox__img {
  display: block;
  max-width: 100%;
  max-height: 86vh;
  width: auto;
  height: auto;
  margin: 0 auto;
  aspect-ratio: unset !important;
  object-fit: contain !important;
  pointer-events: none;
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.65);
  transition: opacity 0.35s var(--te-ease);
}

.te-pdp-lightbox__close {
  position: fixed;
  top: max(1rem, env(safe-area-inset-top, 1rem));
  right: max(1rem, env(safe-area-inset-right, 1rem));
  z-index: 4;
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s var(--te-ease), border-color 0.2s var(--te-ease);
}

.te-pdp-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.55);
}

.te-pdp-lightbox__nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 3.25rem;
  height: 3.25rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s var(--te-ease), border-color 0.2s var(--te-ease);
}

.te-pdp-lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.55);
}

.te-pdp-lightbox__nav--prev {
  left: max(1rem, env(safe-area-inset-left, 1rem));
}

.te-pdp-lightbox__nav--next {
  right: max(1rem, env(safe-area-inset-right, 1rem));
}

.te-pdp-lightbox__counter {
  position: fixed;
  bottom: max(1.25rem, env(safe-area-inset-bottom, 1.25rem));
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  margin: 0;
  padding: 0.4rem 0.85rem;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  pointer-events: none;
}

/* Legacy figure hook (related / JS) */
.te-pdp__figure {
  margin: 0;
  width: 100%;
}

.te-pdp__figure img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(90vh, 1000px);
  object-fit: contain;
  object-position: center center;
  background: #fff;
}

/* ─── Buy box ─── */
.te-pdp__buy {
  position: relative;
  z-index: 100;
  isolation: isolate;
  pointer-events: auto;
}

.te-pdp__buy-sticky {
  position: sticky;
  top: clamp(5rem, 10vh, 7rem);
}

.te-pdp__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.35rem, 2.2vw, 1.65rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.25;
}

.te-pdp__price {
  margin: 0 0 1.5rem;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* ─── Accordions ─── */
.te-pdp__accordions {
  border-top: 1px solid var(--te-border);
  margin-bottom: 1.5rem;
}

.te-pdp__acc {
  border-bottom: 1px solid var(--te-border);
}

.te-pdp__acc summary {
  list-style: none;
  cursor: pointer;
  padding: 0.85rem 0;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.te-pdp__acc summary::-webkit-details-marker {
  display: none;
}

.te-pdp__acc summary::after {
  content: '+';
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1;
}

.te-pdp__acc[open] summary::after {
  content: '−';
}

.te-pdp__acc-body {
  padding: 0 0 1rem;
  font-size: 13px;
  line-height: 1.65;
  color: var(--te-muted);
}

.te-pdp__acc-body p {
  margin: 0 0 0.5rem;
}

.te-pdp__acc-body--list ul {
  margin: 0;
  padding: 0 0 0 1rem;
}

.te-pdp__acc-body--list li {
  margin-bottom: 0.35rem;
}

/* ─── Variants (SIZE pills) ─── */
.te-pdp__variants {
  margin-bottom: 1.25rem;
}

.te-pdp__variant-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
  font-weight: 500;
}

.te-pdp__size-chart-row,
.te-pdp__variant-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.te-pdp__size-chart-row .te-pdp__variant-label,
.te-pdp__variant-head .te-pdp__variant-label {
  margin-bottom: 0;
}

.te-pdp__size-chart {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1a1a1a;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  white-space: nowrap;
}

.te-pdp__size-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.15rem;
  align-items: baseline;
}

.te-pdp__size-pill {
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #9a9a9a;
  cursor: pointer;
}

.te-pdp__size-pill:hover:not(:disabled) {
  color: #1a1a1a;
}

.te-pdp__size-pill.is-active {
  background: transparent;
  color: #1a1a1a;
  font-weight: 600;
}

.te-pdp__size-pill:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  text-decoration: line-through;
}

.te-pdp__qty {
  margin-bottom: 1rem;
}

.te-pdp__qty label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.te-pdp__qty input {
  width: 4rem;
  padding: 0.5rem;
  border: 1px solid var(--te-border);
  font-family: inherit;
  font-size: 14px;
  text-align: center;
}

/* Hidden legacy form bridge */
.te-pdp-legacy-bridge {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.te-pdp__configure {
  position: relative;
  min-height: 1px;
}

/* ─── Actions ─── */
.te-pdp__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.te-pdp__consult {
  font-size: 12px;
  letter-spacing: 0.04em;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--te-text);
  text-align: center;
  padding: 0.25rem 0;
}

.te-pdp__consult:hover {
  opacity: 0.7;
}

.te-pdp__atc {
  width: 100%;
  padding: 1rem 1.5rem;
  border: none;
  background: var(--te-text);
  color: var(--te-bg);
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.2s var(--te-ease);
}

.te-pdp__atc:hover {
  opacity: 0.88;
}

.te-pdp__atc:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.te-pdp__oos {
  font-size: 13px;
  color: var(--te-muted);
  margin-bottom: 1rem;
}

.te-pdp__sku {
  margin: 1.25rem 0 0;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--te-muted);
  text-transform: uppercase;
}

/* Rental CTA in TE layout */
body.te-pdp .ph-rental-cta--inline {
  margin: 0.75rem 0 0;
}

body.te-pdp .ph-rental-cta__btn--inline {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--te-text) !important;
  background: transparent !important;
  color: var(--te-text) !important;
  font-family: var(--te-font) !important;
  font-size: 11px !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  border-radius: 0 !important;
}

body.te-pdp .ph-rental-cta__btn--inline:hover {
  background: var(--te-text) !important;
  color: var(--te-bg) !important;
}

body.te-pdp .te-pdp-rental-faq {
  margin-top: 1.5rem;
  font-size: 13px;
}

body.te-pdp .ph-rental-faq {
  margin-top: 1.5rem;
  border-top: 1px solid var(--te-border);
  padding-top: 1rem;
}

body.te-pdp .ph-rental-faq__title {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  margin: 0 0 0.75rem;
}

body.te-pdp .ph-rental-faq__item {
  border-bottom: 1px solid var(--te-border);
}

body.te-pdp .ph-rental-faq__item summary {
  padding: 0.75rem 0;
  font-size: 12px;
  cursor: pointer;
  list-style: none;
}

body.te-pdp .ph-rental-faq__item p {
  margin: 0 0 0.75rem;
  font-size: 13px;
  color: var(--te-muted);
  line-height: 1.6;
}

/* ─── Related products ─── */
.te-pdp__related {
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: 2rem;
  border-top: 1px solid var(--te-border);
}

.te-pdp__related-title {
  margin: 0 0 1.5rem;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--te-muted);
}

.te-pdp__related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
}

.te-pdp__related-card {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.te-pdp__related-media {
  overflow: hidden;
  background: #f4f4f4;
  aspect-ratio: 3 / 4;
}

.te-pdp__related-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--te-ease);
}

.te-pdp__related-card:hover .te-pdp__related-media img {
  transform: scale(1.04);
}

.te-pdp__related-name {
  font-size: 11px;
  letter-spacing: 0.1em;
  font-weight: 500;
}

.te-pdp__related-price {
  font-size: 12px;
  color: var(--te-muted);
}

.te-pdp__desc {
  max-width: 720px;
  margin: 3rem auto 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--te-muted);
}

/* ─── Mobile sticky bar ─── */
.te-pdp__mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: var(--te-bg);
  border-top: 1px solid var(--te-border);
  transform: translateY(100%);
  transition: transform 0.35s var(--te-ease);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.06);
}

.te-pdp__mobile-bar.is-visible {
  transform: translateY(0);
}

.te-pdp__mobile-bar-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.te-pdp__mobile-bar-title {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.te-pdp__mobile-bar-price {
  font-size: 12px;
  color: var(--te-muted);
}

.te-pdp__mobile-bar-btn {
  flex-shrink: 0;
  padding: 0.75rem 1.25rem;
  border: none;
  background: var(--te-text);
  color: var(--te-bg);
  font-family: inherit;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

/* ─── Responsive ─── */
@media (max-width: 991px) {
  .te-pdp__layout {
    grid-template-columns: 1fr;
  }

  .te-pdp__buy-sticky {
    position: static;
  }

  .te-pdp__slider-nav {
    opacity: 1;
    width: 2.25rem;
    height: 2.25rem;
    font-size: 0.95rem;
  }

  .te-pdp__related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.te-pdp {
    padding-bottom: 5rem;
  }
}

@media (min-width: 992px) {
  .te-pdp__mobile-bar {
    display: none;
  }
}

@media (max-width: 479px) {
  .te-pdp__related-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
  }
}
