:root {
  --dprv-blue: #18498f;
  --dprv-navy: #15417e;
  --dprv-orange: #FF5001;
  --dprv-line: #dfe6ef;
  --dprv-muted: #6f7b8b;
}

.dprv-recent[hidden] {
  display: none !important;
}

.dprv-recent {
  margin: 0;
  padding: 28px 0 34px;
  border-top: 10px solid #f4f6f9;
  background: #fff;
}

.dprv-recent__container {
  width: min(1230px, calc(100% - 48px));
  margin-inline: auto;
}

.dprv-recent__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.dprv-recent__header h2 {
  margin: 0;
  color: #1f2937;
  font-size: clamp(23px, 2.5vw, 32px);
  font-weight: 700;
  letter-spacing: -.025em;
}

.dprv-recent__clear {
  min-height: 40px;
  padding: 5px 2px;
  border: 0;
  background: transparent;
  color: #9aa3af;
  font-size: 14px;
  white-space: nowrap;
  cursor: pointer;
}

.dprv-recent__clear:hover {
  color: var(--dprv-blue);
}

.dprv-recent__status {
  margin: 0;
  color: var(--dprv-muted);
  font-size: 13px;
}

.dprv-recent__rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.dprv-card {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--dprv-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 7px 20px rgba(15, 48, 81, .05);
}

.dprv-card__image {
  width: 92px;
  height: 92px;
  display: block;
  overflow: hidden;
  border-radius: 10px;
  background: #f4f6f9;
}

.dprv-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dprv-card__copy {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 7px;
  padding-right: 20px;
}

.dprv-card__title {
  overflow: hidden;
  color: #202936;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.38;
  text-decoration: none;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.dprv-card__price {
  color: #d8352a;
  font-size: 15px;
  font-weight: 700;
}

.dprv-card__price del {
  color: #9aa3af;
  font-size: 12px;
  font-weight: 400;
}

.dprv-card__price ins {
  text-decoration: none;
}

.dprv-contact-price {
  color: var(--dprv-blue);
}

.dprv-card__rating {
  display: block;
  color: #8b6500;
  font-size: 11px;
  line-height: 1.35;
}

.dprv-card__action {
  width: max-content;
  max-width: 100%;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 11px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--dprv-orange), #CC4000);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
}

.dprv-card__action.is-choose,
.dprv-card__action.is-detail {
  background: linear-gradient(135deg, #3156b2, #15417e);
}

.dprv-card__action:not(.is-choose):not(.is-detail):hover,
.dprv-card__action:not(.is-choose):not(.is-detail):focus-visible {
  background: #CC4000;
}

.dprv-card__remove {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #9ba5b5;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.dprv-card__remove:hover {
  background: #687386;
}

.dprv-buy-now {
  border-color: transparent !important;
  background: linear-gradient(135deg, var(--dprv-orange), #CC4000) !important;
  color: #fff !important;
  box-shadow: 0 7px 16px rgba(255, 80, 1, .24) !important;
  text-transform: uppercase;
}

.dprv-buy-now:hover {
  background: #CC4000 !important;
  filter: none;
  transform: translateY(-1px);
}

.decor-loop-product-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.decor-loop-product-actions .dprv-buy-now--loop {
  grid-column: 1 / -1;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 8px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

.woocommerce div.product form.cart .dprv-buy-now--single {
  position: static;
  width: 100%;
  min-width: 0;
  min-height: 50px;
  margin: 0;
  white-space: nowrap;
}

.woocommerce div.product form.cart.dprv-needs-selection {
  outline: 3px solid rgba(255, 80, 1, .34);
  outline-offset: 6px;
  border-radius: 10px;
}


.single-product {
  --dprv-buy-color: #FF5001;
}

.dprv-recent--standalone {
  margin: 24px 0 48px;
}

.dprv-recent--standalone .dprv-recent__container {
  padding-top: 0;
}

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

@media (max-width: 782px) {
  .dprv-recent {
    padding: 22px 0 28px;
    border-top-width: 8px;
  }

  .dprv-recent__container {
    width: 100%;
  }

  .dprv-recent__header {
    margin-bottom: 13px;
    padding: 0 16px;
  }

  .dprv-recent__header h2 {
    font-size: 22px;
  }

  .dprv-recent__clear {
    font-size: 13px;
  }

  .dprv-recent__status {
    padding: 0 16px;
  }

  .dprv-recent__rail {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 0 16px 8px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .dprv-recent__rail::-webkit-scrollbar {
    display: none;
  }

  .dprv-card {
    flex: 0 0 min(86vw, 360px);
    grid-template-columns: 84px minmax(0, 1fr);
    padding: 10px;
    scroll-snap-align: start;
  }

  .dprv-card__image {
    width: 84px;
    height: 84px;
  }

  .dprv-card__copy {
    gap: 6px;
  }

  .dprv-card__title {
    font-size: 14px;
  }

  .dprv-card__price {
    font-size: 16px;
  }

  .dprv-card__rating {
    font-size: 11px;
  }

  .decor-loop-product-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .decor-loop-product-actions .decor-loop-product-detail {
    grid-column: auto;
  }

  .decor-loop-product-actions .dprv-buy-now--loop {
    grid-column: 1 / -1;
  }

  .woocommerce div.product form.cart .dprv-buy-now--single {
    margin-left: 0;
  }






}

@media (max-width: 380px) {

  .dprv-card {
    flex-basis: 90vw;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dprv-buy-now,
  .dprv-card__action {
    transition: none !important;
  }
}
