/**
 * Tarık Ediz–style PLP presentation layer (pixel parity v2)
 */
body.te-plp.premium-plp {
  --te-font: 'Poppins', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --te-text: #000000;
  --te-muted: #6b6b6b;
  --te-border: rgba(0, 0, 0, 0.08);
  --te-bg: #ffffff;
  --te-ease: cubic-bezier(0.215, 0.61, 0.355, 1);
  --te-ease-image: cubic-bezier(0.33, 0, 0, 1);
  --te-container: 100%;
  --te-gutter: clamp(12px, 1.25vw, 28px);
  --te-grid-gap: clamp(12px, 1.1vw, 18px);
  font-family: var(--te-font);
  color: var(--te-text);
  background: var(--te-bg);
}

body.te-plp .page-banner-main,
body.te-plp .cat-right-header-out,
body.te-plp .cat-right-elements-out,
body.te-plp .ph-plp-hero,
body.te-plp .ph-plp-toolbar,
body.te-plp .cat-detail-products,
body.te-plp .category-pagination-out,
body.te-plp .te-plp__toolbar {
  display: none !important;
}

body.te-plp .detail-none,
body.te-plp .cat-detail-main-div-in > .cat-left-main {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

body.te-plp.premium-plp.premium-site .cat-detail-main-div-in,
body.te-plp .cat-detail-main-div-in {
  width: 100% !important;
  max-width: none !important;
  padding-left: var(--te-gutter) !important;
  padding-right: var(--te-gutter) !important;
  box-sizing: border-box !important;
}

body.te-plp .cat-detail-main-div,
body.te-plp .cat-detail-main-div-in {
  padding: 0 !important;
  background: var(--te-bg) !important;
  max-width: none !important;
}

body.te-plp .cat-right-main {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: clamp(1.25rem, 2.5vw, 2rem) 0 clamp(3.5rem, 6vw, 5rem) !important;
  float: none !important;
  flex: 0 0 100% !important;
}

body.te-plp .te-plp-legacy-bridge {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* Legacy bleed overrides */
body.te-plp .nice-select {
  display: none !important;
}

body.te-plp #dynamic_select.te-plp-native-select {
  display: block !important;
  width: 100%;
  font-family: var(--te-font);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--te-border);
  background: var(--te-bg);
  color: var(--te-text);
  padding: 0.65rem 0.75rem;
  cursor: pointer;
  appearance: auto;
}

/* —— Head + filter trigger —— */
body.te-plp .te-plp__head {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

body.te-plp .te-plp__eyebrow {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--te-muted);
  margin: 0 0 0.75rem;
}

body.te-plp .te-plp__title {
  font-family: var(--te-font);
  font-size: clamp(1.75rem, 2.8vw, 2.5rem);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0;
}

body.te-plp .te-plp__filter-trigger-wrap {
  margin: 1.25rem 0 0;
}

body.te-plp .te-plp__filter-trigger {
  background: none;
  border: none;
  font-family: var(--te-font);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--te-muted);
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

body.te-plp .te-plp__filter-trigger:hover {
  color: var(--te-text);
}

/* —— Active filter chips —— */
body.te-plp .te-plp__active-filters,
body.te-plp .cat-left-box-out-filterbox-out.te-plp__active-filters {
  display: flex !important;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  justify-content: center;
}

body.te-plp .te-plp__active-filters a,
body.te-plp .cat-left-box-out-filterbox-out.te-plp__active-filters a {
  font-family: var(--te-font) !important;
  font-size: 10px !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  padding: 0.35rem 0.65rem !important;
  border: 1px solid var(--te-border) !important;
  background: transparent !important;
  color: var(--te-text) !important;
  border-radius: 0 !important;
}

body.te-plp .cat-left-box-out-filterbox-out.te-plp__active-filters a i {
  display: none;
}

/* —— Grid —— */
body.te-plp .te-plp__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--te-grid-gap);
  width: 100%;
}

@media (min-width: 768px) {
  body.te-plp .te-plp__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  body.te-plp .te-plp__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

body.te-plp .te-plp__empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 1rem;
  color: var(--te-muted);
}

/* —— Card —— */
body.te-plp .te-plp-card {
  position: relative;
  text-align: left;
}

body.te-plp .te-plp-card--sold-out {
  opacity: 0.55;
}

body.te-plp .te-plp-card__media-wrap {
  position: relative;
  overflow: hidden;
  background: #f4f4f4;
}

body.te-plp .te-plp-card__media {
  display: block;
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

body.te-plp .te-plp-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.45s var(--te-ease-image);
  will-change: opacity;
}

body.te-plp .te-plp-card__img--hover {
  opacity: 0;
}

body.te-plp .te-plp-card:hover .te-plp-card__img--primary {
  opacity: 0;
}

body.te-plp .te-plp-card:hover .te-plp-card__img--hover {
  opacity: 1;
}

body.te-plp .te-plp-card--no-hover:hover .te-plp-card__img--primary {
  opacity: 1;
}

body.te-plp .te-plp-card__meta {
  font-family: var(--te-font);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0.75rem 0 0;
  line-height: 1.4;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.5rem;
}

body.te-plp .te-plp-card__name {
  color: var(--te-text);
  text-decoration: none;
}

body.te-plp .te-plp-card__name:hover {
  opacity: 0.65;
}

body.te-plp .te-plp-card__price {
  display: inline;
  font-size: 13px;
  color: var(--te-text);
}

body.te-plp .te-plp-card__price-from {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--te-muted);
  margin-right: 0.25rem;
}

body.te-plp .te-plp-card__price-old {
  color: var(--te-muted);
  text-decoration: line-through;
  font-size: 12px;
  margin-left: 0.35rem;
}

body.te-plp .te-plp-card__sold-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--te-muted);
}

body.te-plp .te-plp-card__quick {
  margin-top: 0.35rem;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.25s var(--te-ease), max-height 0.25s var(--te-ease);
}

body.te-plp .te-plp-card:hover .te-plp-card__quick {
  opacity: 1;
  max-height: 2rem;
}

body.te-plp .te-plp-card__quick-form {
  display: inline;
}

body.te-plp .te-plp-card__quick-btn {
  background: transparent !important;
  color: var(--te-text) !important;
  border: none !important;
  border-bottom: 1px solid var(--te-text) !important;
  font-family: var(--te-font);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0 0 2px;
  cursor: pointer;
  width: auto;
  line-height: 1.2;
}

body.te-plp .te-plp-card__quick-btn:hover {
  opacity: 0.55;
}

body.te-plp .te-plp-card__rental .ph-rental-plp-from {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--te-muted);
  margin: 0.25rem 0 0;
}

body.te-plp .te-plp-card__rental .ph-rental-plp-preview {
  display: none;
}

body.te-plp .te-plp-card--sold-out .te-plp-card__quick {
  display: none;
}

/* —— Pagination —— */
body.te-plp .te-plp__pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--te-border);
}

body.te-plp .te-plp__page {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--te-text);
  text-decoration: none;
}

body.te-plp .te-plp__page--disabled {
  color: var(--te-muted);
  opacity: 0.4;
  pointer-events: none;
}

/* —— Filter drawer —— */
body.te-plp .ph-filter-drawer {
  font-family: var(--te-font);
  width: min(420px, 92vw) !important;
  background: var(--te-bg) !important;
  box-shadow: -2px 0 24px rgba(0, 0, 0, 0.06) !important;
  transition: transform 0.4s var(--te-ease) !important;
}

body.te-plp .ph-filter-drawer__head {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--te-border);
  padding: 1.25rem 1.5rem;
}

body.te-plp .ph-filter-drawer__close {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--te-text);
}

body.te-plp .ph-filter-drawer__body {
  padding: 0 1.5rem 2rem;
}

body.te-plp .te-plp__drawer-sort {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--te-border);
  margin-bottom: 1rem;
}

body.te-plp .te-plp__drawer-sort-label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--te-muted);
  margin-bottom: 0.65rem;
}

body.te-plp .ph-filter-drawer .cat-left-main {
  display: block !important;
  position: static !important;
  width: auto !important;
  height: auto !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  left: auto !important;
  overflow: visible !important;
  border: none !important;
  padding: 0 !important;
  background: transparent !important;
}

body.te-plp .ph-filter-drawer .cat-left-box-t {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--te-text);
  border-bottom: 1px solid var(--te-border) !important;
  padding: 1rem 0 0.75rem !important;
  margin-bottom: 0.75rem;
}

body.te-plp .ph-filter-drawer .cat-left-box-main {
  margin-bottom: 1.25rem;
}

body.te-plp .ph-filter-drawer .custom-control-label {
  font-family: var(--te-font) !important;
  font-size: 11px !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: var(--te-text) !important;
}

body.te-plp .ph-filter-drawer .custom-control-input:checked ~ .custom-control-label::before {
  background-color: var(--te-text) !important;
  border-color: var(--te-text) !important;
}

body.te-plp .ph-filter-drawer .custom-control-label::before {
  border-radius: 0 !important;
  border-color: var(--te-border) !important;
}

body.te-plp .ph-filter-drawer a {
  font-family: var(--te-font);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--te-text);
  text-decoration: none;
}

body.te-plp .ph-filter-drawer a:hover {
  opacity: 0.55;
}

/* —— Footer on PLP —— */
body.te-plp .footer-module-main-div.zt-footer {
  background: #f5f5f5 !important;
}

@media (prefers-reduced-motion: reduce) {
  body.te-plp .te-plp-card__img,
  body.te-plp .te-plp-card__quick,
  body.te-plp .ph-filter-drawer {
    transition: none !important;
  }
}
