/* ── PLP HERO BANNER ── */
.plp-hero {
  background: var(--black);
  padding: 52px 24px 44px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.plp-hero::before {
  content: 'SHOP';
  position: absolute;
  font-family: var(--font-display);
  font-size: clamp(60px, 15vw, 240px);
  color: rgba(255,255,255,0.02);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  letter-spacing: 10px;
  pointer-events: none;
}
.plp-hero-label {
  font-size: 11px; font-weight: 600;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 10px;
}
.plp-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(52px, 9vw, 108px);
  color: var(--white); letter-spacing: 2px; line-height: 1;
}
.plp-hero-count {
  margin-top: 12px; font-size: 13px;
  color: rgba(255,255,255,0.35);
}
.plp-hero-subtitle {
  margin-top: 10px; font-size: 11px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  color: rgba(255,255,255,.4);
}

/* ── TOOLBAR ── */
.plp-toolbar {
  border-bottom: 1px solid #e5e5e5;
  border-top: 1px solid #e5e5e5;
  background: var(--white);
  position: sticky;
  top: 104px;
  z-index: 900;
}
.plp-toolbar-inner {
  max-width: 100%;
  padding: 0 16px; height: 52px;
  display: flex; align-items: center;
  justify-content: space-between; gap: 16px;
}
.toolbar-left { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; overflow: hidden; }
.toolbar-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.filter-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--black); color: var(--white);
  font-size: 11px; font-weight: 600;
  padding: 5px 10px; letter-spacing: 0.5px;
  cursor: pointer; white-space: nowrap;
  transition: background 0.2s;
}
.filter-tag:hover { background: #333; }
.filter-tag i { font-size: 9px; }
.filter-clear-btn {
  font-size: 11px; font-weight: 600;
  color: var(--mid-grey); letter-spacing: 0.5px;
  cursor: pointer; white-space: nowrap;
  background: none; border: none;
  transition: color 0.2s;
}
.filter-clear-btn:hover { color: var(--black); }

.sort-select {
  appearance: none;
  border: 1px solid #e0e0e0;
  padding: 7px 32px 7px 12px;
  font-size: 12px; font-weight: 600;
  font-family: var(--font-body);
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23333'/%3E%3C/svg%3E") no-repeat right 12px center;
  cursor: pointer; color: var(--black);
}
.sort-select:focus { outline: 1.5px solid var(--black); }

.view-toggle { display: flex; gap: 2px; }
.view-btn {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid #e0e0e0; background: none;
  cursor: pointer; font-size: 13px; color: var(--mid-grey);
  transition: all 0.2s;
}
.view-btn.active { background: var(--black); color: var(--white); border-color: var(--black); }

.filter-toggle-btn {
  display: none;
  align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  border: 1.5px solid var(--black);
  padding: 7px 14px;
  background: none; color: var(--black);
  transition: all 0.2s;
}
.filter-toggle-btn:hover { background: var(--black); color: var(--white); }

/* ── MAIN LAYOUT ── */
.plp-layout {
  max-width: 100%;
  padding: 28px 16px 80px;
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 32px;
  align-items: start;
}

/* ── FILTER SIDEBAR ── */
.filter-sidebar {
  position: sticky;
  top: 160px;
  border: 1px solid #e5e5e5;
}
.filter-group { border-bottom: 1px solid #e5e5e5; }
.filter-group:last-child { border-bottom: none; }
.filter-group-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 16px; cursor: pointer; user-select: none;
}
.filter-group-head h4 {
  font-size: 11px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
}
.filter-group-head i { font-size: 10px; color: var(--mid-grey); transition: transform 0.25s; }
.filter-group.open .filter-group-head i { transform: rotate(180deg); }
.filter-group-body { padding: 0 16px 14px; display: none; }
.filter-group.open .filter-group-body { display: block; }

.filter-cat-list { list-style: none; display: flex; flex-direction: column; }
.filter-cat-list li a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 0; font-size: 13px; color: #555;
  border-bottom: 1px solid #f5f5f5; transition: color 0.2s;
}
.filter-cat-list li:last-child a { border-bottom: none; }
.filter-cat-list li a:hover, .filter-cat-list li a.active { color: var(--black); font-weight: 600; }
.filter-cat-list .count { font-size: 11px; color: var(--mid-grey); font-weight: 400; }

.size-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.size-chip {
  min-width: 40px; height: 34px; padding: 0 10px;
  border: 1.5px solid #e0e0e0;
  font-size: 12px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.18s;
  background: var(--white); color: var(--black);
}
.size-chip:hover { border-color: var(--black); }
.size-chip.active { background: var(--black); color: var(--white); border-color: var(--black); }

.color-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.color-swatch {
  width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid #fff; box-shadow: 0 0 0 1.5px #ddd;
  cursor: pointer; transition: box-shadow 0.18s;
}
.color-swatch:hover, .color-swatch.active { box-shadow: 0 0 0 2px var(--black); }

.price-range-wrap { display: flex; flex-direction: column; gap: 10px; }
.price-labels { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; }
.price-slider {
  -webkit-appearance: none; width: 100%; height: 3px;
  background: linear-gradient(to right, var(--black) 45%, #e0e0e0 45%);
  outline: none;
}
.price-slider::-webkit-slider-thumb {
  -webkit-appearance: none; width: 18px; height: 18px;
  border-radius: 50%; background: var(--black); cursor: pointer;
  border: 3px solid var(--white); box-shadow: 0 0 0 1.5px var(--black);
}

/* ── PRODUCT GRID AREA ── */
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--mid-grey); margin-bottom: 20px;
}
.breadcrumb a:hover { color: var(--black); }
.breadcrumb i { font-size: 9px; }

.plp-product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

/* ── PRODUCT CARD ── */
.pcard {
  position: relative; background: var(--white); cursor: pointer; overflow: hidden;
  transition: transform 0.3s ease;
}
.pcard:hover { transform: translateY(-2px); }
.pcard-img-wrap {
  position: relative; aspect-ratio: 3/4; overflow: hidden; background: var(--grey);
}
.pcard-img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top; display: block;
  transition: transform 0.7s cubic-bezier(0.25,0.46,0.45,0.94);
}
.pcard:hover .pcard-img { transform: scale(1.05); }


.pcard-badges {
  position: absolute; top: 10px; left: 10px;
  display: flex; flex-direction: column; gap: 4px; z-index: 2;
}
.pbadge {
  font-size: 9px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase; padding: 4px 8px;
}
.pbadge-new { background: #0a0a0a; color: #fff; }
.pbadge-hot { background: #e63946; color: #fff; }
.pbadge-sale { background: #e63946; color: #fff; }

.pcard-wish {
  position: absolute; top: 10px; right: 10px;
  width: 34px; height: 34px;
  background: rgba(255,255,255,0.92); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--black); z-index: 3;
  opacity: 0; transform: scale(0.85);
  transition: color 0.2s, background 0.2s, transform 0.2s, opacity 0.2s;
  border: none; cursor: pointer;
}
.pcard:hover .pcard-wish { opacity: 1; transform: scale(1); }
.pcard-wish:hover { background: #fff; transform: scale(1.1) !important; }
.pcard-wish.wishlisted { opacity: 1; transform: scale(1); color: #e63946; }


.pcard-info {
  padding: 10px 4px 14px;
  background: var(--white);
}
.pcard-brand { font-size: 9px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--mid-grey); margin-bottom: 2px; }
.pcard-name { font-size: 13px; font-weight: 400; color: var(--black); margin-bottom: 5px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard-pricing { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.pcard-price { font-size: 13px; font-weight: 600; }
.pcard-original { font-size: 12px; color: var(--mid-grey); text-decoration: line-through; }
.pcard-off { font-size: 11px; font-weight: 600; color: #e63946; }
.pcard-rating { display: flex; align-items: center; gap: 4px; margin-top: 4px; }
.pcard-stars { color: #f4c430; font-size: 10px; }
.pcard-rcount { font-size: 10px; color: var(--mid-grey); }

.load-more-wrap { text-align: center; margin-top: 48px; }
.btn-load-more {
  display: inline-flex; align-items: center; gap: 10px;
  border: 2px solid var(--black); padding: 14px 40px;
  font-size: 12px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--black); background: none; cursor: pointer; transition: all 0.2s;
}
.btn-load-more:hover { background: var(--black); color: var(--white); }

/* ── MOBILE FILTER DRAWER ── */
.filter-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.55); z-index: 2050;
}
.filter-overlay.open { display: block; }
.filter-drawer {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--white); z-index: 2100;
  transform: translateY(100%);
  transition: transform 0.38s cubic-bezier(0.4,0,0.2,1);
  border-radius: 16px 16px 0 0;
  max-height: 88dvh;
  display: flex; flex-direction: column;
  box-shadow: 0 -8px 32px rgba(0,0,0,0.18);
}
.filter-drawer.open { transform: translateY(0); }
.filter-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px 14px; border-bottom: 1px solid #ebebeb; flex-shrink: 0;
}
.filter-drawer-head h3 { font-family: var(--font-display); font-size: 26px; letter-spacing: 1px; }
.filter-drawer-close {
  width: 36px; height: 36px; background: var(--grey); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; border: none; cursor: pointer;
}
.filter-drawer-body { flex: 1; overflow-y: auto; }
.filter-drawer-body .filter-group { border-bottom: 1px solid #f0f0f0; }
.filter-drawer-body .filter-group-head { padding: 14px 20px; }
.filter-drawer-body .filter-group-body { padding: 0 20px 14px; }
.filter-drawer-foot {
  padding: 14px 20px; border-top: 1px solid #ebebeb;
  display: flex; gap: 12px; flex-shrink: 0;
}
.btn-drawer-clear {
  flex: 1; padding: 14px; border: 1.5px solid var(--black);
  font-size: 12px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; background: none; color: var(--black); cursor: pointer;
}
.btn-drawer-apply {
  flex: 2; padding: 14px; background: var(--black); color: var(--white);
  font-size: 12px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; border: none; cursor: pointer;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .plp-layout { grid-template-columns: 210px 1fr; gap: 20px; }
  .plp-product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .plp-toolbar { top: 64px; }
  .plp-toolbar-inner { padding: 0 12px; gap: 8px; }
  .toolbar-left { display: none; }
  .toolbar-right { width: 100%; justify-content: space-between; }
  .filter-toggle-btn { display: flex; flex: 1; justify-content: center; font-size: 11px; padding: 7px 8px; }
  .sort-select { flex: 1; font-size: 11px; padding: 6px 24px 6px 8px; background-position: right 8px center; width: auto; min-width: 130px; }
  .plp-layout { grid-template-columns: 1fr; padding: 14px 12px 60px; }
  .filter-sidebar { display: none; }
  .plp-product-grid { grid-template-columns: repeat(2, 1fr); gap: 1px; }
  .pcard-wish { opacity: 1; transform: none; top: 10px; }
  .plp-hero { padding: 32px 16px 28px; }
  .plp-hero h1 { font-size: 42px; }
  /* Allow 2-line product names on narrow mobile cards */
  .pcard-name {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}
@media (max-width: 480px) {
  .pcard-info { padding: 9px 8px 11px; }
  .pcard-name { font-size: 12px; margin-bottom: 4px; }
  .pcard-price { font-size: 13px; }
  .pcard-original { font-size: 11px; }
  .pcard-off { display: none; }
  .pcard-brand { font-size: 8px; letter-spacing: 1px; }
  .plp-toolbar-inner { height: 48px; }
  .view-toggle { display: none; }
}

/* ── Pcard extras ── */
.pcard { display: block; text-decoration: none; color: inherit; }
.pcard-colors {
  position: absolute; bottom: 10px; left: 10px;
  display: flex; gap: 5px; z-index: 3;
}
.pcard-swatch {
  width: 18px; height: 18px; border-radius: 50%; cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.pcard-swatch:hover,
.pcard-swatch.active {
  transform: scale(1.2);
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px #1e1e1e;
}
.pcard-oos {
  font-size: 10px; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; color: #64748b;
  background: #f1f5f9; padding: 2px 6px;
}
.hidden-badge { display: none !important; }

.pcard-outer { position: relative; }
.pcard-outer > .pcard-wish {
  position: absolute; top: 10px; right: 10px; z-index: 10;
  width: 34px; height: 34px;
  background: rgba(255,255,255,0.92); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: none; cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.pcard-outer > .pcard-wish:hover { background: #fff; transform: scale(1.1); }
.pcard-outer > .pcard-wish.wishlisted { color: #e63946; }

.plp-card-wrap .pcard-outer { width: 100%; }
.plp-card-wrap .pcard-outer .pcard { width: 100%; }
