/* ============================================================
   ZEST NEPAL — Product Listing Page Styles
   Font: Poppins | Accent: #f05a27
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ---- Reset & Base ---------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

.zpl-wrap {
  font-family: 'Poppins', sans-serif;
  background: #f8f8f8;
  min-height: 100vh;
}

/* ---- Breadcrumb Banner ------------------------------------ */
.zpl-breadcrumb-band {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 60%, #3a1800 100%);
  padding: 38px 0 32px;
  position: relative;
  overflow: hidden;
}

.zpl-breadcrumb-band::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(240,90,39,.35) 0%, transparent 70%);
  border-radius: 50%;
}

.zpl-breadcrumb-band::after {
  content: '';
  position: absolute;
  bottom: -60px; left: 10%;
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(240,90,39,.18) 0%, transparent 70%);
  border-radius: 50%;
}

.zpl-breadcrumb-band h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 6px;
  letter-spacing: 0.5px;
}

.zpl-breadcrumb-band h1 span {
  color: #f05a27;
}

.zpl-breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: rgba(255,255,255,.6);
}

.zpl-breadcrumb-nav a {
  color: rgba(255,255,255,.75);
  text-decoration: none;
  transition: color .2s;
}

.zpl-breadcrumb-nav a:hover { color: #f05a27; }
.zpl-breadcrumb-nav .sep { color: rgba(255,255,255,.35); }
.zpl-breadcrumb-nav .current { color: #f05a27; font-weight: 500; }

/* ---- Layout ------------------------------------------------ */
.zpl-layout {
  display: flex;
  gap: 28px;
  padding: 36px 28px 60px;
  max-width: 1480px;
  margin: 0 auto;
  align-items: flex-start;
}

/* ---- SIDEBAR ---------------------------------------------- */
.zpl-sidebar {
  width: 280px;
  flex-shrink: 0;
  position: sticky;
  top: 90px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #f05a27 #f0f0f0;
}

.zpl-sidebar::-webkit-scrollbar { width: 4px; }
.zpl-sidebar::-webkit-scrollbar-track { background: #f0f0f0; border-radius: 10px; }
.zpl-sidebar::-webkit-scrollbar-thumb { background: #f05a27; border-radius: 10px; }

/* Filter Card */
.zpl-filter-card {
  background: #fff;
  border-radius: 20px;
  padding: 28px 22px;
  box-shadow: 0 4px 30px rgba(0,0,0,.07);
  margin-bottom: 18px;
  border: 1px solid rgba(240,90,39,.08);
  transition: box-shadow .3s;
}

.zpl-filter-card:hover {
  box-shadow: 0 8px 40px rgba(0,0,0,.10);
}

.zpl-filter-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #f05a27;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.zpl-filter-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(240,90,39,.3), transparent);
}

/* Category list */
.zpl-cat-list {
  list-style: none;
  padding: 0; margin: 0;
}

.zpl-cat-list li {
  padding: 0;
  margin-bottom: 4px;
}

.zpl-cat-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-radius: 10px;
  color: #444;
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  transition: all .22s ease;
  border: 1.5px solid transparent;
}

.zpl-cat-list a:hover,
.zpl-cat-list a.active {
  background: rgba(240,90,39,.07);
  border-color: rgba(240,90,39,.2);
  color: #f05a27;
  padding-left: 18px;
}

.zpl-cat-list a .cat-count {
  background: #f8f0ed;
  color: #f05a27;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  transition: all .22s;
}

.zpl-cat-list a:hover .cat-count,
.zpl-cat-list a.active .cat-count {
  background: #f05a27;
  color: #fff;
}

/* Price Range */
.zpl-price-inputs {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.zpl-price-inputs .price-field {
  flex: 1;
  position: relative;
}

.zpl-price-inputs .price-field label {
  font-size: 0.7rem;
  font-weight: 600;
  color: #888;
  letter-spacing: .5px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 5px;
}

.zpl-price-inputs .price-field input {
  width: 100%;
  border: 1.5px solid #e8e8e8;
  border-radius: 10px;
  padding: 8px 10px 8px 26px;
  font-size: 0.85rem;
  font-family: 'Poppins', sans-serif;
  color: #333;
  outline: none;
  transition: border-color .2s;
  background: #fafafa;
}

.zpl-price-inputs .price-field input:focus {
  border-color: #f05a27;
  background: #fff;
}

.zpl-price-inputs .price-field .prefix {
  position: absolute;
  bottom: 9px;
  left: 10px;
  font-size: 0.8rem;
  color: #aaa;
  font-weight: 600;
}

/* Range slider */
.zpl-range-wrap {
  position: relative;
  padding: 8px 0 4px;
}

.zpl-range-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 5px;
  border-radius: 10px;
  background: linear-gradient(90deg, #f05a27 var(--val, 60%), #e8e8e8 var(--val, 60%));
  outline: none;
  cursor: pointer;
}

.zpl-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #f05a27;
  border: 3px solid #fff;
  box-shadow: 0 2px 10px rgba(240,90,39,.4);
  cursor: pointer;
  transition: transform .15s;
}

.zpl-range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.zpl-range-slider::-moz-range-thumb {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #f05a27;
  border: 3px solid #fff;
  box-shadow: 0 2px 10px rgba(240,90,39,.4);
  cursor: pointer;
}

.zpl-range-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: #aaa;
  margin-top: 6px;
}

/* Checkbox filters */
.zpl-checkbox-list {
  list-style: none;
  padding: 0; margin: 0;
}

.zpl-checkbox-list li {
  margin-bottom: 10px;
}

.zpl-checkbox-list label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.87rem;
  color: #444;
  font-weight: 500;
  transition: color .2s;
  user-select: none;
}

.zpl-checkbox-list label:hover { color: #f05a27; }

.zpl-checkbox-list input[type="checkbox"] {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border: 2px solid #ddd;
  border-radius: 6px;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  transition: all .2s;
  background: #fafafa;
}

.zpl-checkbox-list input[type="checkbox"]:checked {
  background: #f05a27;
  border-color: #f05a27;
}

.zpl-checkbox-list input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 3px; top: 0px;
  width: 8px; height: 12px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(43deg);
}

.zpl-checkbox-list .brand-count {
  margin-left: auto;
  font-size: 0.72rem;
  color: #bbb;
  font-weight: 400;
}

/* Rating filter */
.zpl-rating-list {
  list-style: none;
  padding: 0; margin: 0;
}

.zpl-rating-list li {
  margin-bottom: 8px;
}

.zpl-rating-list label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.83rem;
  color: #555;
  font-weight: 500;
  transition: color .2s;
  user-select: none;
}

.zpl-rating-list label:hover { color: #f05a27; }

.zpl-rating-list input[type="radio"] {
  -webkit-appearance: none;
  width: 16px; height: 16px;
  border: 2px solid #ddd;
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  transition: all .2s;
}

.zpl-rating-list input[type="radio"]:checked {
  border-color: #f05a27;
  background: #f05a27;
}

.zpl-rating-list input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 6px; height: 6px;
  background: #fff;
  border-radius: 50%;
}

.zpl-stars {
  display: inline-flex;
  gap: 2px;
  color: #f5a623;
  font-size: 0.85rem;
}

.zpl-star-empty { color: #ddd; }

/* Frame type pills */
.zpl-pill-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.zpl-pill {
  padding: 6px 14px;
  border-radius: 30px;
  border: 1.5px solid #e8e8e8;
  font-size: 0.78rem;
  font-weight: 600;
  color: #666;
  cursor: pointer;
  transition: all .2s;
  background: #fafafa;
  user-select: none;
}

.zpl-pill:hover,
.zpl-pill.active {
  background: #f05a27;
  border-color: #f05a27;
  color: #fff;
  box-shadow: 0 4px 14px rgba(240,90,39,.3);
}

/* Gender toggle */
.zpl-gender-tabs {
  display: flex;
  background: #f5f5f5;
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
}

.zpl-gender-tab {
  flex: 1;
  text-align: center;
  padding: 8px 0;
  border-radius: 9px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  color: #888;
  user-select: none;
}

.zpl-gender-tab.active {
  background: #fff;
  color: #f05a27;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

/* Filter Action Buttons */
.zpl-filter-actions {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.zpl-btn-apply {
  flex: 1;
  padding: 12px 0;
  background: linear-gradient(135deg, #f05a27, #e04518);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  transition: all .25s;
  box-shadow: 0 4px 18px rgba(240,90,39,.35);
  letter-spacing: .3px;
}

.zpl-btn-apply:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(240,90,39,.45);
}

.zpl-btn-reset {
  flex: 1;
  padding: 12px 0;
  background: #fff;
  color: #888;
  border: 1.5px solid #e8e8e8;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  transition: all .25s;
}

.zpl-btn-reset:hover {
  border-color: #f05a27;
  color: #f05a27;
  background: rgba(240,90,39,.04);
}

/* ---- MAIN CONTENT ----------------------------------------- */
.zpl-main {
  flex: 1;
  min-width: 0;
}

/* Toolbar */
.zpl-toolbar {
  background: #fff;
  border-radius: 16px;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: 0 4px 20px rgba(0,0,0,.05);
  margin-bottom: 24px;
  border: 1px solid rgba(0,0,0,.04);
}

.zpl-toolbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.zpl-product-count {
  font-size: 0.83rem;
  color: #999;
  font-weight: 400;
}

.zpl-product-count strong {
  color: #222;
  font-weight: 700;
  font-size: 1rem;
}

.zpl-active-filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(240,90,39,.09);
  color: #f05a27;
  font-size: 0.73rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(240,90,39,.2);
}

.zpl-active-filter-tag span {
  cursor: pointer;
  opacity: .7;
}
.zpl-active-filter-tag span:hover { opacity: 1; }

.zpl-toolbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.zpl-sort-select {
  border: 1.5px solid #e8e8e8;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 0.84rem;
  font-family: 'Poppins', sans-serif;
  color: #444;
  outline: none;
  cursor: pointer;
  background: #fafafa;
  transition: border-color .2s;
  min-width: 170px;
}

.zpl-sort-select:focus { border-color: #f05a27; }

/* View toggle */
.zpl-view-toggle {
  display: flex;
  background: #f5f5f5;
  border-radius: 10px;
  padding: 3px;
  gap: 2px;
}

.zpl-view-btn {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .2s;
  color: #aaa;
  font-size: 0.95rem;
  border: none;
  background: transparent;
}

.zpl-view-btn.active {
  background: #fff;
  color: #f05a27;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
}

/* Filter toggle (mobile) */
.zpl-filter-toggle-btn {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  background: #f05a27;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
}

/* ---- PRODUCT GRID ----------------------------------------- */
.zpl-product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  transition: all .3s;
}

.zpl-product-grid.list-view {
  grid-template-columns: 1fr;
}

/* Product Card */
.zpl-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 22px rgba(0,0,0,.06);
  border: 1px solid rgba(0,0,0,.04);
  display: flex;
  flex-direction: column;
  transition: transform .3s cubic-bezier(.25,.8,.25,1),
              box-shadow .3s cubic-bezier(.25,.8,.25,1);
  position: relative;
}

.zpl-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 18px 50px rgba(0,0,0,.12);
}

/* Card image wrapper */
.zpl-card-img-wrap {
  position: relative;
  overflow: hidden;
  background: #f9f9f9;
  height: 230px;
}

.zpl-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.25,.8,.25,1);
}

.zpl-card:hover .zpl-card-img-wrap img {
  transform: scale(1.08);
}

/* Badges */
.zpl-badge {
  position: absolute;
  top: 14px; left: 14px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  z-index: 2;
}

.zpl-badge-sale {
  background: #f05a27;
  color: #fff;
  box-shadow: 0 3px 10px rgba(240,90,39,.4);
}

.zpl-badge-new {
  background: #1aad73;
  color: #fff;
  box-shadow: 0 3px 10px rgba(26,173,115,.35);
}

.zpl-badge-hot {
  background: #e02020;
  color: #fff;
  box-shadow: 0 3px 10px rgba(224,32,32,.35);
}

.zpl-badge-premium {
  background: linear-gradient(135deg, #b8860b, #d4a017);
  color: #fff;
}

/* Wishlist */
.zpl-wishlist-btn {
  position: absolute;
  top: 14px; right: 14px;
  width: 38px; height: 38px;
  background: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,.12);
  transition: all .2s;
  border: none;
  z-index: 2;
  color: #ccc;
  font-size: 1rem;
}

.zpl-wishlist-btn:hover,
.zpl-wishlist-btn.active {
  color: #f05a27;
  box-shadow: 0 4px 18px rgba(240,90,39,.3);
  transform: scale(1.1);
}

.zpl-wishlist-btn.active {
  background: #fff5f2;
}

/* Quick add overlay */
.zpl-quick-add {
  position: absolute;
  bottom: -100%;
  left: 0; right: 0;
  background: rgba(240,90,39,.95);
  backdrop-filter: blur(4px);
  color: #fff;
  text-align: center;
  padding: 14px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: bottom .3s cubic-bezier(.25,.8,.25,1);
  border: none;
  font-family: 'Poppins', sans-serif;
  letter-spacing: .3px;
}

.zpl-card:hover .zpl-quick-add {
  bottom: 0;
}

/* Card Body */
.zpl-card-body {
  padding: 18px 18px 10px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.zpl-card-brand {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #f05a27;
  margin-bottom: 5px;
}

.zpl-card-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 5px;
  line-height: 1.35;
}

.zpl-card-desc {
  font-size: 0.78rem;
  color: #888;
  line-height: 1.5;
  margin-bottom: 10px;
  flex: 1;
}

/* Stars */
.zpl-card-stars {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.zpl-card-stars .stars {
  display: inline-flex;
  gap: 2px;
  font-size: 0.82rem;
  color: #f5a623;
}

.zpl-card-stars .star-empty { color: #ddd; }

.zpl-card-stars .rating-count {
  font-size: 0.73rem;
  color: #bbb;
}

/* Price */
.zpl-card-footer {
  padding: 12px 18px 18px;
  border-top: 1px solid #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.zpl-price-wrap {}

.zpl-price-original {
  font-size: 0.78rem;
  color: #bbb;
  text-decoration: line-through;
  display: block;
  line-height: 1;
}

.zpl-price-now {
  font-size: 1.15rem;
  font-weight: 800;
  color: #1a1a1a;
  display: block;
  line-height: 1.2;
}

.zpl-price-discount {
  font-size: 0.72rem;
  font-weight: 700;
  color: #1aad73;
  background: rgba(26,173,115,.1);
  padding: 2px 7px;
  border-radius: 20px;
  display: inline-block;
  margin-top: 3px;
}

.zpl-btn-cart {
  padding: 10px 18px;
  background: linear-gradient(135deg, #f05a27, #e04518);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  transition: all .25s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 14px rgba(240,90,39,.3);
}

.zpl-btn-cart:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(240,90,39,.45);
}

/* ---- LIST VIEW CARD --------------------------------------- */
.zpl-product-grid.list-view .zpl-card {
  flex-direction: row;
}

.zpl-product-grid.list-view .zpl-card-img-wrap {
  width: 260px;
  flex-shrink: 0;
  height: auto;
  min-height: 200px;
}

.zpl-product-grid.list-view .zpl-card-body {
  padding: 22px;
}

.zpl-product-grid.list-view .zpl-card-footer {
  border-top: none;
  border-left: 1px solid #f5f5f5;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px;
  min-width: 160px;
}

.zpl-product-grid.list-view .zpl-card-name {
  font-size: 1.1rem;
}

.zpl-product-grid.list-view .zpl-card-desc {
  font-size: 0.83rem;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  display: -webkit-box;
  overflow: hidden;
}

/* ---- Pagination ------------------------------------------- */
.zpl-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.zpl-page-btn {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  border: 1.5px solid #e8e8e8;
  background: #fff;
  color: #555;
  font-family: 'Poppins', sans-serif;
}

.zpl-page-btn:hover,
.zpl-page-btn.active {
  background: #f05a27;
  border-color: #f05a27;
  color: #fff;
  box-shadow: 0 4px 14px rgba(240,90,39,.35);
}

/* ---- No results ------------------------------------------- */
.zpl-no-results {
  text-align: center;
  padding: 80px 20px;
  display: none;
}

.zpl-no-results.visible { display: block; }

.zpl-no-results svg {
  opacity: .15;
  margin-bottom: 20px;
}

.zpl-no-results h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #444;
  margin-bottom: 8px;
}

.zpl-no-results p {
  font-size: 0.88rem;
  color: #aaa;
}

/* ---- Mobile Sidebar Overlay ------------------------------- */
.zpl-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 1040;
  backdrop-filter: blur(2px);
}

.zpl-sidebar-overlay.open { display: block; }

.zpl-sidebar-drawer {
  position: fixed;
  top: 0; left: -320px;
  width: 300px; height: 100%;
  background: #fff;
  z-index: 1050;
  overflow-y: auto;
  transition: left .35s cubic-bezier(.25,.8,.25,1);
  padding: 20px;
  box-shadow: 4px 0 30px rgba(0,0,0,.15);
}

.zpl-sidebar-drawer.open { left: 0; }

.zpl-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1.5px solid #f5f5f5;
}

.zpl-drawer-header h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #222;
  margin: 0;
}

.zpl-drawer-close {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: #f5f5f5;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #555;
  transition: all .2s;
}

.zpl-drawer-close:hover {
  background: #f05a27;
  color: #fff;
}

/* ---- Loading skeleton ------------------------------------- */
@keyframes zpl-shimmer {
  0% { background-position: -800px 0; }
  100% { background-position: 800px 0; }
}

.zpl-skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 800px 100%;
  animation: zpl-shimmer 1.4s infinite linear;
  border-radius: 10px;
}

/* ---- Animations ------------------------------------------- */
@keyframes zpl-fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.zpl-card {
  animation: zpl-fadeInUp .45s both;
}

.zpl-card:nth-child(1) { animation-delay: .05s; }
.zpl-card:nth-child(2) { animation-delay: .10s; }
.zpl-card:nth-child(3) { animation-delay: .15s; }
.zpl-card:nth-child(4) { animation-delay: .20s; }
.zpl-card:nth-child(5) { animation-delay: .25s; }
.zpl-card:nth-child(6) { animation-delay: .30s; }
.zpl-card:nth-child(7) { animation-delay: .35s; }
.zpl-card:nth-child(8) { animation-delay: .40s; }
.zpl-card:nth-child(9) { animation-delay: .45s; }

/* ---- Toast notification ----------------------------------- */
.zpl-toast {
  position: fixed;
  bottom: 30px; right: 30px;
  background: #1a1a1a;
  color: #fff;
  padding: 14px 22px;
  border-radius: 14px;
  font-size: 0.87rem;
  font-weight: 500;
  font-family: 'Poppins', sans-serif;
  box-shadow: 0 8px 30px rgba(0,0,0,.25);
  display: flex; align-items: center; gap: 10px;
  transform: translateY(80px);
  opacity: 0;
  transition: all .35s cubic-bezier(.25,.8,.25,1);
  z-index: 9999;
  max-width: 320px;
}

.zpl-toast.show {
  transform: translateY(0);
  opacity: 1;
}

.zpl-toast .toast-icon {
  width: 28px; height: 28px;
  background: #f05a27;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet */
@media (max-width: 1100px) {
  .zpl-layout { padding: 24px 20px 50px; gap: 22px; }
  .zpl-sidebar { width: 240px; }
  .zpl-product-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile sidebar + tablet grid */
@media (max-width: 900px) {
  .zpl-sidebar { display: none; }
  .zpl-filter-toggle-btn { display: flex; }
  .zpl-layout { padding: 20px 16px 48px; }
  .zpl-product-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .zpl-product-grid.list-view .zpl-card-img-wrap { width: 180px; }
}

/* Mobile */
@media (max-width: 600px) {
  .zpl-breadcrumb-band h1 { font-size: 1.45rem; }
  .zpl-layout { padding: 16px 12px 40px; }
  .zpl-product-grid { grid-template-columns: 1fr; gap: 14px; }
  .zpl-product-grid.list-view .zpl-card { flex-direction: column; }
  .zpl-product-grid.list-view .zpl-card-img-wrap { width: 100%; height: 220px; }
  .zpl-product-grid.list-view .zpl-card-footer {
    flex-direction: row;
    border-left: none;
    border-top: 1px solid #f5f5f5;
    min-width: unset;
  }
  .zpl-toolbar { padding: 12px 16px; }
  .zpl-sort-select { min-width: 130px; }
  .zpl-card-img-wrap { height: 200px; }
  .zpl-toast { right: 16px; bottom: 16px; left: 16px; max-width: unset; }
}
