﻿[data-cb-type="product-list"] {
  width: 100%;
  --pl-image-blush: #ffeff6;
}

[data-cb-type="product-list"] .snippet-product-container {
  width: 100%;
  min-height: 120px;
}

[data-cb-type="product-list"] .snippet-loading,
[data-cb-type="product-list"] .snippet-empty,
[data-cb-type="product-list"] .snippet-builder-placeholder {
  padding: 28px 16px;
  text-align: center;
  color: #605d63;
  border: 1px dashed rgba(145, 158, 171, 0.4);
  border-radius: 16px;
  background: #f8f9fa;
}

/* Sellzy product grid: 5 â†’ 4 â†’ 3 â†’ 2 â†’ 1 (aligned to slick breakpoints) */
[data-cb-type="product-list"] .snippet-product-grid-inner {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.25rem;
}

@media (max-width: 1440px) {
  [data-cb-type="product-list"] .snippet-product-grid-inner {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  [data-cb-type="product-list"] .snippet-product-grid-inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  [data-cb-type="product-list"] .snippet-product-grid-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 479px) {
  [data-cb-type="product-list"] .snippet-product-grid-inner {
    grid-template-columns: 1fr;
  }
}

/* Sellzy header: title left, circular arrows right (same pattern as Category Slider) */
[data-cb-type="product-list"] .snippet-pl-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-bottom: 2.5rem;
}

[data-cb-type="product-list"] .snippet-pl-heading {
  flex: 1 1 auto;
  min-width: 0;
}

[data-cb-type="product-list"] .snippet-pl-title {
  margin: 0;
  font-family: var(--font-urbanist, "Urbanist", sans-serif);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.3;
  color: #212b36;
}

[data-cb-type="product-list"] .snippet-pl-subtitle {
  margin: 0.35rem 0 0;
  font-size: 1rem;
  line-height: 1.5;
  color: #605d63;
}

[data-cb-type="product-list"] .snippet-pl-nav {
  display: none;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 1.5rem;
  margin-left: auto;
}

@media (min-width: 768px) {
  [data-cb-type="product-list"] .snippet-pl-nav {
    display: flex;
  }
}

[data-cb-type="product-list"] .snippet-pl-nav-btn {
  box-sizing: border-box;
  width: 3rem;
  height: 3rem;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  background-color: var(--color-primary, #bbddc6);
  color: var(--color-primary-ink, #334d3b);
  transition: background-color 0.3s ease, color 0.3s ease;
  appearance: none;
  -webkit-appearance: none;
}

[data-cb-type="product-list"] .snippet-pl-nav-btn:hover,
[data-cb-type="product-list"] .snippet-pl-nav-btn:focus-visible {
  background-color: var(--color-primary-dark, #9cc7a9);
  color: var(--color-primary-ink, #334d3b);
  outline: none;
}

[data-cb-type="product-list"] .snippet-pl-nav-btn i,
[data-cb-type="product-list"] .snippet-pl-nav-btn .hgi {
  font-size: 1.375rem;
  line-height: 1;
}

[data-cb-type="product-list"] .snippet-product-list--newly-launched .snippet-pl-title {
  color: #212b36;
}

[data-cb-type="product-list"] .snippet-product-list--newly-launched .snippet-pl-subtitle {
  color: #454f5b;
}

[data-cb-type="product-list"] .snippet-product-grid-item,
[data-cb-type="product-list"] .swiper-slide {
  height: auto;
}

[data-cb-type="product-list"] .product-card-1 {
  height: 100%;
}

[data-cb-type="product-list"] .product-card-1 .product-image img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

[data-cb-type="product-list"] .snippet-product-swiper {
  padding-bottom: 2.5rem;
}

[data-cb-type="product-list"] .swiper-button-next,
[data-cb-type="product-list"] .swiper-button-prev {
  color: var(--color-primary-ink, #334d3b);
}

[data-cb-type="product-list"] .swiper-pagination-bullet-active {
  background: var(--color-primary-darker, #7fae8d);
}

/* --------------------------------------------------------------------------
   Most Loved / Newly Launched rich cards (scoped)
   -------------------------------------------------------------------------- */

[data-cb-type="product-list"] .snippet-product-list--most-loved {
  /* Sellzy index-2 Most Loved: section is plain (pb only) â€” no section bg/border box */
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
}

[data-cb-type="product-list"] .snippet-product-list--newly-launched {
  /* Sellzy #FFEB69 â†’ closest palette token */
  background: var(--color-warning-light, #ffe16a);
  border-radius: 1.5rem;
  padding: 1.5rem 1rem 1.25rem;
}

[data-cb-type="product-list"] .snippet-pl-newly-shell {
  width: 100%;
}

.snippet-pl-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
  padding: 1rem;
  border: 1px solid #dfe3e8;
  border-radius: 1rem;
  background: #fff;
}

[data-cb-type="product-list"] .snippet-product-list--newly-launched .snippet-pl-card {
  border-color: transparent;
}

.snippet-pl-card__media {
  position: relative;
  margin-bottom: 1rem;
}

.snippet-pl-card__image {
  border-radius: 0.75rem;
  overflow: hidden;
  background: var(--pl-image-blush);
}

.snippet-pl-card__image img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.snippet-pl-card.group:hover .snippet-pl-card__image img {
  transform: scale(1.08);
}

.snippet-pl-badge-new {
  position: absolute;
  top: 11px;
  left: 0;
  z-index: 2;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #0a0a0a;
  background: var(--color-success-light, #aaf27f);
  border-radius: 0 0.35rem 0.35rem 0;
}

.snippet-pl-card__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
}

.snippet-pl-card__title {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 600;
  font-family: var(--font-urbanist, "Urbanist", sans-serif);
}

.snippet-pl-card__title a {
  color: #212b36;
  text-decoration: none;
}

.snippet-pl-card__title a:hover {
  color: var(--color-primary-darker, #7fae8d);
}

.snippet-pl-card__price {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.85rem;
}

.snippet-pl-price-current {
  font-size: 1rem;
  font-weight: 700;
  color: #212b36;
}

.snippet-pl-price-old {
  font-size: 0.875rem;
  color: #919eab;
  text-decoration: line-through;
}

.snippet-pl-price-off {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-error, #cb0233);
}

.snippet-pl-card__btns {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto;
}

/* Circular wishlist stub â€” left of Detaljnije (same as former Add to Cart row) */
.snippet-pl-card__wish {
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  border: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f4f6f8;
  color: #605d63;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.snippet-pl-card__wish:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.snippet-pl-card__wish:not(:disabled):hover {
  background: rgba(187, 221, 198, 0.45);
  color: var(--color-primary-ink, #334d3b);
}

.snippet-pl-card__wish.is-active,
.snippet-pl-card__wish.wishlist-btn--active {
  background: var(--color-primary, #bbddc6);
  color: var(--color-primary-ink, #334d3b);
}

.snippet-pl-card__wish.is-active:hover,
.snippet-pl-card__wish.wishlist-btn--active:hover {
  background: var(--color-primary-dark, #9cc7a9);
  color: var(--color-primary-ink, #334d3b);
}

.snippet-pl-card__wish i {
  font-size: 1.25rem;
  line-height: 1;
}

/* Same chrome as former Add to Cart â€” "Detaljnije" takes remaining width */
.snippet-pl-card__details {
  flex: 1 1 auto;
  min-width: 0;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  height: 2.75rem;
  padding: 0 1rem;
  border: 0;
  border-radius: 999px;
  background: var(--color-primary, #bbddc6);
  color: var(--color-primary-ink, #334d3b);
  font-family: var(--font-dm-sans, "DM Sans", sans-serif);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.snippet-pl-card__details:hover,
.snippet-pl-card__details:focus-visible {
  background: var(--color-primary-dark, #9cc7a9);
  color: var(--color-primary-ink, #334d3b);
  text-decoration: none;
  outline: none;
}

[data-cb-type="product-list"] .snippet-pl-view-all {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.5rem;
}

[data-cb-type="product-list"] .snippet-pl-view-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.65rem 0.65rem 1.25rem;
  border-radius: 60px;
  background: #fff;
  color: var(--color-primary-ink, #334d3b);
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(33, 43, 54, 0.08);
  cursor: default;
  pointer-events: none;
}

[data-cb-type="product-list"] .snippet-pl-view-all-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary, #bbddc6);
  color: var(--color-primary-ink, #334d3b);
}

[data-cb-type="product-list"] .snippet-pl-view-all-icon i {
  font-size: 1rem;
  line-height: 1;
}

[data-cb-type="product-list"] .cbp-settings-panel .cbp-field {
  margin-bottom: 12px;
}

[data-cb-type="product-list"] .cbp-settings-panel label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 4px;
}

[data-cb-type="product-list"] .cbp-select,
[data-cb-type="product-list"] .cbp-input,
.cbp-settings-panel .cbp-select,
.cbp-settings-panel .cbp-input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
}

.cbp-settings-panel .cbp-apply-btn {
  width: 100%;
  margin-top: 8px;
  padding: 10px;
}
