/* ================================================================
   PRODUCT LISTING PAGE  —  Snakko Brand Design System
   Brand Red : #e41e26  |  Dark Red : #bc000d
   Font      : Inter (loaded via nav.css)
   ================================================================ */

/* ================================================================
   HERO
   ================================================================ */
.plp-hero {
  position: relative;
  width: 100%;
  height: 62vh;
  min-height: 380px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  /* slight parallax feel */
  background-attachment: fixed;
}

/* Dark gradient overlay — bottom-weighted so text is clear */
.plp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.25) 0%,
    rgba(0, 0, 0, 0.55) 100%
  );
}

.plp-hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 20px 24px;
  max-width: 700px;
}

.plp-hero-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #ffdede;
  background: rgba(228, 30, 38, 0.75);
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 18px;
}

.plp-hero-title {
  font-size: clamp(36px, 7vw, 76px);
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.0;
  margin-bottom: 14px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.plp-hero-sub {
  font-size: clamp(11px, 2vw, 15px);
  letter-spacing: 4px;
  text-transform: uppercase;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 24px;
}

.plp-hero-pills {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.plp-hero-pills span {
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
}

@media (max-width: 768px) {
  .plp-hero {
    height: 52vh;
    background-attachment: scroll;
  }
  .plp-hero-pills {
    display: none; /* hide on very small screens */
  }
}


/* ================================================================
   MOBILE STICKY BAR  (filter toggle + sort)
   ================================================================ */
.plp-mbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #fff;
  border-top: 1px solid #f0e0e0;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);

  /* Hidden until user scrolls past hero */
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.plp-mbar.plp-mbar-visible {
  transform: translateY(0);
}

.plp-mbar-filter {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #e41e26;
  color: #fff;
  border: none;
  padding: 11px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  transition: background 0.2s ease;
}

.plp-mbar-filter:active {
  background: #bc000d;
}

.plp-mbar-badge {
  background: #fff;
  color: #e41e26;
  font-size: 10px;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.plp-mbar-sort {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f9f9f9;
  border: 1.5px solid #ebebeb;
  border-radius: 10px;
  padding: 0 14px;
  height: 44px;
}

.plp-mbar-sort i {
  color: #888;
  font-size: 13px;
}

.plp-mbar-sort select {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

/* Offset body so sticky bar never hides content */
@media (max-width: 991px) {
  body {
    padding-bottom: 70px;
  }
}


/* ================================================================
   SIDEBAR OVERLAY (mobile)
   ================================================================ */
.plp-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.plp-overlay.plp-overlay-active {
  opacity: 1;
  visibility: visible;
}


/* ================================================================
   MAIN LAYOUT  —  sidebar + content grid
   ================================================================ */
.plp-main {
  display: grid;
  grid-template-columns: 272px 1fr;
  gap: 32px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 44px 24px 60px;
}

/* TABLET: narrower sidebar */
@media (max-width: 1100px) {
  .plp-main {
    grid-template-columns: 240px 1fr;
    gap: 24px;
  }
}

/* MOBILE: single column, sidebar slides in as overlay */
@media (max-width: 991px) {
  .plp-main {
    grid-template-columns: 1fr;
    padding: 24px 16px 60px;
  }
}


/* ================================================================
   SIDEBAR
   ================================================================ */
.plp-sidebar {
  background: #fff;
  border: 1px solid #f2e8e8;
  border-radius: 16px;
  padding: 28px;
  height: fit-content;
  position: sticky;
  top: 80px; /* clear fixed navbar */
  box-shadow: 0 2px 12px rgba(188, 0, 13, 0.06);
}

/* MOBILE: slide-over panel */
@media (max-width: 991px) {
  .plp-sidebar {
    position: fixed;
    top: 0;
    left: -310px;
    width: 300px;
    height: 100%;
    border-radius: 0 16px 16px 0;
    padding: 24px 20px;
    z-index: 1002;
    overflow-y: auto;
    border: none;
    border-right: 1px solid #f2e8e8;
    transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: none;
  }

  .plp-sidebar.plp-sidebar-open {
    left: 0;
    box-shadow: 4px 0 30px rgba(0, 0, 0, 0.15);
  }
}

/* Sidebar header */
.plp-sidebar-hd {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1.5px solid #fdeeee;
}

.plp-sidebar-title {
  font-size: 18px;
  font-weight: 900;
  color: #1a1a1a;
  margin: 0;
}

.plp-sidebar-sub {
  font-size: 12px;
  color: #888;
  margin: 2px 0 0;
}

.plp-sidebar-close {
  background: #f9f0f0;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #e41e26;
  font-size: 14px;
  flex-shrink: 0;
  transition: background 0.2s ease;

  /* Hide on desktop */
  display: none;
}

@media (max-width: 991px) {
  .plp-sidebar-close {
    display: flex;
  }
}

.plp-sidebar-close:hover {
  background: #e41e26;
  color: #fff;
}


/* ================================================================
   FILTER FORM
   ================================================================ */
.plp-filter-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* --- Filter group --- */
.plp-fgroup {
  padding: 20px 0;
  border-bottom: 1px solid #f5ecec;
}

.plp-fgroup:last-of-type {
  border-bottom: none;
}

.plp-fgroup-title {
  font-size: 12px;
  font-weight: 800;
  color: #555;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.plp-fgroup-title i {
  color: #e41e26;
  font-size: 11px;
}


/* --- Category radio list --- */
.plp-category-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.plp-radio-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 9px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  transition: background 0.2s ease, color 0.2s ease;
  border: 1.5px solid transparent;
}

.plp-radio-item input[type="radio"] {
  display: none;
}

.plp-radio-dot {
  width: 14px;
  height: 14px;
  border: 2px solid #ccc;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  transition: border-color 0.2s ease;
}

.plp-radio-item:hover {
  background: #fdeeee;
  border-color: #f5cece;
}

.plp-radio-item.plp-radio-active {
  background: #e41e26;
  border-color: #e41e26;
  color: #fff;
}

.plp-radio-item.plp-radio-active .plp-radio-dot {
  border-color: #fff;
  background: #fff;
}

.plp-radio-item.plp-radio-active .plp-radio-dot::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e41e26;
}


/* --- Price Slider --- */
.plp-price-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.plp-price-display {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #888;
}

.plp-price-current {
  font-size: 13px;
  font-weight: 700;
  color: #e41e26;
  background: #fdeeee;
  padding: 3px 10px;
  border-radius: 20px;
}

.plp-price-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 5px;
  border-radius: 10px;
  background: #fdeeee;
  outline: none;
  cursor: pointer;
}

.plp-price-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e41e26;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(228, 30, 38, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.plp-price-slider::-webkit-slider-thumb:hover {
  transform: scale(1.18);
  box-shadow: 0 4px 14px rgba(228, 30, 38, 0.5);
}

.plp-price-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e41e26;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 8px rgba(228, 30, 38, 0.4);
}

.plp-price-slider:focus {
  outline: none;
}

.plp-price-slider:focus::-webkit-slider-thumb {
  box-shadow: 0 0 0 3px rgba(228, 30, 38, 0.2);
}


/* --- Checkbox --- */
.plp-check-item {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 6px 0;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  user-select: none;
}

.plp-check-item input[type="checkbox"] {
  display: none;
}

.plp-check-box {
  width: 20px;
  height: 20px;
  border: 2px solid #ddd;
  border-radius: 5px;
  flex-shrink: 0;
  position: relative;
  transition: all 0.2s ease;
  background: #fff;
}

.plp-check-item input:checked ~ .plp-check-box,
.plp-check-item input:checked + .plp-check-box {
  background: #e41e26;
  border-color: #e41e26;
}

.plp-check-item input:checked ~ .plp-check-box::after,
.plp-check-item input:checked + .plp-check-box::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.plp-check-item:hover .plp-check-box {
  border-color: #e41e26;
}


/* --- Filter action buttons (mobile) --- */
.plp-factions {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plp-btn-apply {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 20px;
  background: #e41e26;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease;
}

.plp-btn-apply:hover {
  background: #bc000d;
  transform: translateY(-1px);
  color: #fff;
  text-decoration: none;
}

.plp-btn-clear {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px 20px;
  background: transparent;
  color: #888;
  border: 1.5px solid #ddd;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.plp-btn-clear:hover {
  border-color: #e41e26;
  color: #e41e26;
  text-decoration: none;
}

/* Desktop clear link */
.plp-dclear {
  padding-top: 16px;
  border-top: 1px solid #f5ecec;
}

.plp-dclear-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #888;
  text-decoration: none;
  transition: color 0.2s ease;
}

.plp-dclear-link:hover {
  color: #e41e26;
  text-decoration: none;
}


/* ================================================================
   CONTENT AREA
   ================================================================ */
.plp-content {
  min-width: 0; /* prevent grid overflow */
}


/* ================================================================
   TOP BAR
   ================================================================ */
.plp-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.plp-topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.plp-count {
  font-size: 14px;
  color: #555;
  white-space: nowrap;
}

.plp-count strong {
  color: #1a1a1a;
}

/* Active Filter Chips */
.plp-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.plp-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fdeeee;
  color: #bc000d;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 50px;
  border: 1px solid #f5cece;
}

.plp-chip-x {
  background: none;
  border: none;
  color: #bc000d;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  padding: 0 0 0 2px;
  font-weight: 700;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.plp-chip-x:hover {
  opacity: 1;
}

/* Sort (Desktop) */
.plp-sort {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1.5px solid #ebebeb;
  border-radius: 10px;
  padding: 8px 16px 8px 14px;
  white-space: nowrap;
  transition: border-color 0.2s ease;
  flex-shrink: 0;
}

.plp-sort:hover {
  border-color: #e41e26;
}

.plp-sort-label {
  font-size: 13px;
  font-weight: 600;
  color: #666;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  margin: 0;
}

.plp-sort-label i {
  color: #e41e26;
}

.plp-sort-select {
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  padding-right: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23e41e26' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
}


/* ================================================================
   PRODUCT GRID
   ================================================================ */
.plp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 1100px) {
  .plp-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 991px) {
  .plp-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

@media (max-width: 680px) {
  .plp-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}


/* ================================================================
   PRODUCT CARD
   ================================================================ */
.plp-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #f2e8e8;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.plp-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 16px 40px rgba(188, 0, 13, 0.13);
}

/* --- Badge --- */
.plp-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 50px;
}

.plp-badge-bs {
  background: #e41e26;
  color: #fff;
}

.plp-badge-new {
  background: #1a1a1a;
  color: #fff;
}

/* --- Wishlist button --- */
.plp-wishlist {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  background: rgba(255, 255, 255, 0.92);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transition: all 0.25s ease;
  backdrop-filter: blur(4px);
}

.plp-wishlist i {
  color: #888;
  font-size: 14px;
  transition: color 0.25s ease;
}

.plp-wishlist:hover {
  background: #e41e26;
  box-shadow: 0 4px 14px rgba(228, 30, 38, 0.35);
  transform: scale(1.1);
}

.plp-wishlist:hover i {
  color: #fff;
}

/* --- Product image --- */
.plp-card-img-link {
  display: block;
  text-decoration: none;
}

.plp-card-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #faf5f5;
}

.plp-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.plp-card:hover .plp-card-img img {
  transform: scale(1.07);
}

.plp-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(228, 30, 38, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.plp-card:hover .plp-card-overlay {
  opacity: 1;
}

.plp-card-overlay span {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* --- Card body --- */
.plp-card-body {
  padding: 16px 16px 18px;
}

.plp-card-cat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #e41e26;
  margin: 0 0 6px;
}

.plp-card-name {
  font-size: 15px;
  font-weight: 800;
  color: #1a1a1a;
  line-height: 1.3;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.plp-card-name a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.plp-card-name a:hover {
  color: #e41e26;
}

/* Stars */
.plp-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 12px;
}

.plp-stars i {
  font-size: 12px;
  color: #f5b400;
}

.plp-stars .far {
  color: #ddd;
}

/* Price + CTA row */
.plp-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.plp-price {
  font-size: 18px;
  font-weight: 900;
  color: #e41e26;
  letter-spacing: -0.5px;
}

.plp-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  background: transparent;
  color: #e41e26;
  border: 2px solid #e41e26;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.22s ease;
  white-space: nowrap;
}

.plp-cta:hover {
  background: #e41e26;
  color: #fff;
  text-decoration: none;
  transform: scale(1.03);
}

/* Mobile: stack footer inside card */
@media (max-width: 400px) {
  .plp-card-foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .plp-cta {
    width: 100%;
    justify-content: center;
    padding: 10px;
  }
  .plp-card-body {
    padding: 12px 12px 14px;
  }
  .plp-card-name {
    font-size: 13px;
  }
}


/* ================================================================
   EMPTY STATE
   ================================================================ */
.plp-empty {
  grid-column: 1 / -1; /* span entire grid width */
  text-align: center;
  padding: 80px 24px;
}

.plp-empty-icon {
  width: 80px;
  height: 80px;
  background: #fdeeee;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.plp-empty-icon i {
  font-size: 32px;
  color: #e41e26;
}

.plp-empty h3 {
  font-size: 22px;
  font-weight: 900;
  color: #1a1a1a;
  margin-bottom: 10px;
}

.plp-empty p {
  font-size: 15px;
  color: #777;
  margin-bottom: 28px;
}


/* ================================================================
   UTILITY: Scrollbar in sidebar (webkit)
   ================================================================ */
.plp-sidebar::-webkit-scrollbar {
  width: 5px;
}

.plp-sidebar::-webkit-scrollbar-track {
  background: #f9f9f9;
}

.plp-sidebar::-webkit-scrollbar-thumb {
  background: #f5cece;
  border-radius: 10px;
}

.plp-sidebar::-webkit-scrollbar-thumb:hover {
  background: #e41e26;
}
