/* Chavill backend-owned CSS chunk: 1f64ff1451024178.css; version: 1.0.0-105db2c98093 */
/* Chavill CSS chunk 3: 1f64ff1451024178.css */

.product.card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 260px;
  width: 100%;
  padding: 18px;
}

.product.card h3 {
  min-height: 2.9em;
  margin: 8px 0 0;
  line-height: 1.45;
}

.product.card p {
  margin: 4px 0;
}

.product.card .thumb,
.product.card img {
  height: 168px;
}

select.input,
select {
  background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10l5 5 5-5' stroke='%230f6b4f' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"), linear-gradient(135deg, #ffffff, #fbfdfc);
  background-position: left 18px center, 0 0;
  background-size: 18px 18px, 100% 100%;
  border-radius: 20px;
}

.filter-panel {
  border-radius: 24px;
  padding: 18px;
  box-shadow: inset 0 1px 0 #ffffff, 0 10px 26px #12382708;
}

.filter-panel summary {
  gap: 12px;
}

.filter-panel summary::before {
  content: '';
  width: 9px;
  height: 9px;
  border-right: 3px solid #8b9892;
  border-bottom: 3px solid #8b9892;
  border-radius: 1px;
  transform: rotate(45deg);
  transition: transform .18s ease, border-color .18s ease;
}

.filter-panel[open] summary::before {
  transform: rotate(225deg);
  border-color: #0a8062;
}

.range-slider {
  --range-min: 0%;
  --range-max: 100%;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(to right, #fff 0 var(--range-min), #2378e8 var(--range-min) var(--range-max), #fff var(--range-max) 100%);
  box-shadow: inset 0 0 0 1px #e8f1ed;
}

.range-slider input[type="range"] {
  height: 40px;
  accent-color: #2378e8;
}

.range-slider input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  background: transparent;
}

.range-slider input[type="range"]::-webkit-slider-thumb {
  width: 26px;
  height: 26px;
  margin-top: -11px;
  border: 4px solid #fff;
  background: #2378e8;
  box-shadow: 0 0 0 1px #1d6fd6, 0 8px 18px #2378e866;
}

.range-slider input[type="range"]::-moz-range-track {
  height: 4px;
  background: transparent;
}

.range-slider input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 4px solid #fff;
  background: #2378e8;
  box-shadow: 0 0 0 1px #1d6fd6, 0 8px 18px #2378e866;
}

@media (max-width: 1024px) {
  .filters #products.grid {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  }

  .product.card {
    max-width: none;
  }
}

@media (max-width: 1024px) {
  .filters #products.grid {
    grid-template-columns: 1fr;
  }

  .product.card .thumb,
  .product.card img {
    height: 150px;
  }
}

/* Final slider reset: draw the range ourselves and hide browser-native fill. */
.range-slider {
  height: 30px;
  margin-top: 10px;
  background: linear-gradient(to right, #fff 0 var(--range-min), #2378e8 var(--range-min) var(--range-max), #fff var(--range-max) 100%);
  box-shadow: inset 0 0 0 1px #e8f1ed, 0 8px 18px #2378e812;
}

.range-slider input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  height: 30px;
  border: 0;
  outline: 0;
  background: transparent;
}

.range-slider input[type="range"]::-webkit-slider-runnable-track {
  -webkit-appearance: none;
  height: 4px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
}

.range-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  margin-top: -9px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #2378e8;
  box-shadow: 0 0 0 1px #1f6ed4, 0 6px 16px #2378e85c;
}

.range-slider input[type="range"]::-moz-range-track,
.range-slider input[type="range"]::-moz-range-progress {
  height: 4px;
  border: 0;
  border-radius: 999px;
  background: transparent;
}

.range-slider input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #2378e8;
  box-shadow: 0 0 0 1px #1f6ed4, 0 6px 16px #2378e85c;
}

/* Correct RTL range direction and make the price slider a thin line with white
   handles.

   The fill has to run the same way the handles do. The inputs below carry
   `direction: rtl`, so value 0 sits at the RIGHT edge and the maximum at the
   left -- but this band was painted `to right`, a physical direction, so the
   coloured section appeared on the opposite side from the handles that set it.
   That mirroring is half of the reported slider bug; the other half was a value
   swap in the filter script. `to left` puts the paint back under the handles. */
.range-slider {
  height: 28px;
  background:
    linear-gradient(to left, transparent 0 var(--range-min), #2378e8 var(--range-min) var(--range-max), transparent var(--range-max) 100%) center / 100% 3px no-repeat,
    linear-gradient(#fff, #fff) center / 100% 3px no-repeat;
  box-shadow: none;
}

.range-slider input[type="range"] {
  direction: rtl;
  height: 28px;
}

.range-slider input[type="range"]::-webkit-slider-runnable-track {
  height: 3px;
}

.range-slider input[type="range"]::-webkit-slider-thumb {
  width: 22px;
  height: 22px;
  margin-top: -9.5px;
  border: 3px solid #2378e8;
  background: #fff;
  box-shadow: 0 4px 14px #2378e84a;
}

.range-slider input[type="range"]::-moz-range-track,
.range-slider input[type="range"]::-moz-range-progress {
  height: 3px;
}

.range-slider input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 3px solid #2378e8;
  background: #fff;
  box-shadow: 0 4px 14px #2378e84a;
}

/* Product detail spacing, multiline text, questions and notifications. */
#detail.list,
.panel #panel.list,
.panel #admin.list {
  gap: 22px;
}

.product-detail-grid {
  align-items: stretch;
}

.product-description p {
  white-space: normal;
  line-height: 2.1;
}

.qa-section,
.notification-card {
  display: grid;
  gap: 12px;
}

.notification-card {
  border: 1px solid #f0f6f3;
  border-radius: 18px;
  padding: 16px;
  background: #fbfdfc;
}

.notification-card p {
  margin: 0;
  line-height: 1.9;
}

.notify-link {
  position: relative;
}

.unread-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 4px #ef444422, 0 0 14px #ef4444;
}

.notification-card.is-unread {
  border-color: #fecaca;
  background: #fffafa;
}

/* Final product/filter layout corrections. */
.filters {
  align-items: start;
}

.filters #products.grid {
  gap: 30px;
  row-gap: 34px;
}

.product.card {
  margin: 0;
}

.unread-dot {
  top: -5px;
  right: auto;
  left: -5px;
  z-index: 2;
}

@media (max-width: 1024px) {
  .product-filters {
    position: relative;
    top: auto;
    z-index: 2;
    margin-bottom: 28px;
  }

  .filters #products.grid {
    clear: both;
    margin-top: 24px;
    padding-top: 8px;
    gap: 24px;
  }
}

/* Product card refinements: clickable image and a slim full-width compare action. */
.product-image-link {
  display: block;
}

.product-image-link img {
  transition: transform .2s ease, box-shadow .2s ease;
}

.product-image-link:hover img {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px #0a80621f;
}

/* Give product-detail cards breathing room even when they are adjacent grids/sections. */
#detail {
  display: grid;
  gap: 28px;
}

.product-detail-grid {
  gap: 30px;
}

.product-detail-grid .card {
  min-width: 0;
}

@media (max-width: 1024px) {
  #detail {
    gap: 22px;
  }

  .product-detail-grid {
    gap: 22px;
  }
}
