.dpsg-bs {
  padding: 64px 3.33vw 0;
  color: #fff;
}

.dpsg-bs__head {
  display: flex;
  align-items: baseline;
  gap: 28px;
  margin-bottom: 24px;
}

.dpsg-bs__title {
  flex: none;
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
}

.dpsg-bs__tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 28px;
  min-width: 0;
}

.dpsg-bs__tab {
  position: relative;
  margin: 0;
  padding: 0 0 2px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  cursor: pointer;
}

.dpsg-bs__tab input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}

.dpsg-bs__tab:has(input:checked) {
  font-weight: 800;
  border-bottom-color: #f1ab11;
}

.dpsg-bs__tab:has(input:focus-visible) {
  outline: 2px solid #f1ab11;
  outline-offset: 3px;
}

.dpsg-bs__all {
  display: none;
  flex: none;
  margin-left: auto;
  color: #f1ab11;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
}

.dpsg-bs a.dpsg-bs__all:hover,
.dpsg-bs a.dpsg-bs__all:focus {
  color: #ffc043;
  text-decoration: none;
}

.dpsg-bs__panel {
  display: none;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.dpsg-bs:has(#dpsg-bs-0:checked) .dpsg-bs__panel--0,
.dpsg-bs:has(#dpsg-bs-1:checked) .dpsg-bs__panel--1,
.dpsg-bs:has(#dpsg-bs-2:checked) .dpsg-bs__panel--2,
.dpsg-bs:has(#dpsg-bs-3:checked) .dpsg-bs__panel--3,
.dpsg-bs:has(#dpsg-bs-4:checked) .dpsg-bs__panel--4,
.dpsg-bs:has(#dpsg-bs-5:checked) .dpsg-bs__panel--5,
.dpsg-bs:has(#dpsg-bs-6:checked) .dpsg-bs__panel--6,
.dpsg-bs:has(#dpsg-bs-7:checked) .dpsg-bs__panel--7,
.dpsg-bs:has(#dpsg-bs-8:checked) .dpsg-bs__panel--8,
.dpsg-bs:has(#dpsg-bs-9:checked) .dpsg-bs__panel--9,
.dpsg-bs:has(#dpsg-bs-10:checked) .dpsg-bs__panel--10,
.dpsg-bs:has(#dpsg-bs-11:checked) .dpsg-bs__panel--11 {
  display: grid;
}

.dpsg-bs:has(#dpsg-bs-0:checked) .dpsg-bs__all--0,
.dpsg-bs:has(#dpsg-bs-1:checked) .dpsg-bs__all--1,
.dpsg-bs:has(#dpsg-bs-2:checked) .dpsg-bs__all--2,
.dpsg-bs:has(#dpsg-bs-3:checked) .dpsg-bs__all--3,
.dpsg-bs:has(#dpsg-bs-4:checked) .dpsg-bs__all--4,
.dpsg-bs:has(#dpsg-bs-5:checked) .dpsg-bs__all--5,
.dpsg-bs:has(#dpsg-bs-6:checked) .dpsg-bs__all--6,
.dpsg-bs:has(#dpsg-bs-7:checked) .dpsg-bs__all--7,
.dpsg-bs:has(#dpsg-bs-8:checked) .dpsg-bs__all--8,
.dpsg-bs:has(#dpsg-bs-9:checked) .dpsg-bs__all--9,
.dpsg-bs:has(#dpsg-bs-10:checked) .dpsg-bs__all--10,
.dpsg-bs:has(#dpsg-bs-11:checked) .dpsg-bs__all--11 {
  display: inline;
}

.dpsg-bs__card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #fff;
  text-decoration: none;
}

.dpsg-bs a.dpsg-bs__body,
.dpsg-bs a.dpsg-bs__body:hover,
.dpsg-bs a.dpsg-bs__body:focus,
.dpsg-bs a.dpsg-bs__media:hover,
.dpsg-bs a.dpsg-bs__media:focus {
  color: #fff;
  text-decoration: none;
}

.dpsg-bs__visual {
  position: relative;
  display: block;
  aspect-ratio: 1;
  background: #fff;
  border: 1px solid #e6e6ee;
  border-radius: 16px;
  overflow: hidden;
}

.dpsg-bs__media {
  position: absolute;
  inset: 0;
  display: block;
}

.dpsg-bs__visual img {
  position: absolute;
  inset: 9%;
  width: 82%;
  height: 82%;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.dpsg-bs__card:hover .dpsg-bs__visual img {
  transform: scale(1.1);
}

.dpsg-bs__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 4px 10px;
  color: #f1ab11;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: #000024;
  border-radius: 999px;
}

.dpsg-bs__brand {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dpsg-bs .dpsg-bs__name {
  margin: 8px 0 0;
  color: #fff;
  min-height: 40px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
  text-transform: none;
}

.dpsg-bs__prices {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.dpsg-bs__card .dpsg-bs__price,
.dpsg-bs__card:hover .dpsg-bs__price,
.dpsg-bs a.dpsg-bs__body .dpsg-bs__price,
.dpsg-bs a.dpsg-bs__body:hover .dpsg-bs__price {
  margin: 0;
  color: var(--product-price-discount);
  font-size: 18px;
  font-weight: 800;
}

.dpsg-bs__card .dpsg-bs__old,
.dpsg-bs__card:hover .dpsg-bs__old,
.dpsg-bs a.dpsg-bs__body .dpsg-bs__old {
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  font-weight: 400;
  text-decoration: line-through;
}

.dpsg-bs__body {
  display: flex;
  flex-direction: column;
}

.dpsg-bs__card:hover .dpsg-bs__name {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dpsg-bs__icons,
.dpsg-bs__hover {
  display: none;
}

@media (min-width: 768px) {
  .dpsg-bs__icons {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.2s ease;
  }

  .dpsg-bs__card:hover .dpsg-bs__icons {
    opacity: 1;
  }

  .dpsg-bs__icon,
  .dpsg-bs__icons .wishlist-button-add {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    color: #000024;
    background: #fff;
    border: 1px solid #e6e6ee;
    border-radius: 50%;
    box-shadow: none;
  }

  .dpsg-bs__icon svg,
  .dpsg-bs__icons .wishlist-button-add svg {
    width: 18px;
    height: 18px;
  }

  .dpsg-bs__hover {
    position: absolute;
    right: 10px;
    bottom: 12px;
    left: 10px;
    z-index: 3;
    display: block;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }

  .dpsg-bs__card:hover .dpsg-bs__hover {
    opacity: 1;
    pointer-events: auto;
  }

  .dpsg-bs__hover form {
    display: flex;
    gap: 6px;
    align-items: center;
    width: 100%;
    margin: 0;
  }

  .dpsg-bs__hover .quantity-button {
    flex: none;
  }

  .dpsg-bs__hover .input-group {
    flex: none;
    width: auto;
    height: 44px;
    overflow: hidden;
    background: #000024;
    border: 0;
    border-radius: 12px;
  }

  .dpsg-bs__hover .input-group .btn,
  .dpsg-bs__hover .input-group .form-control {
    width: 28px;
    height: 44px;
    padding: 0;
    color: #fff;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .dpsg-bs__hover .input-group .form-control {
    width: 1.1rem;
    font-weight: 800;
    text-align: center;
  }

  .dpsg-bs__hover .input-group .material-icons {
    font-size: 18px;
    line-height: 1;
  }

  .dpsg-bs__add,
  .dpsg-bs__options {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 44px;
    margin: 0;
    padding: 0 36px 0 12px;
    color: #000024;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
    background: #f1ab11;
    border: 0;
    border-radius: 12px;
  }

  .dpsg-bs__add {
    position: relative;
  }

  .dpsg-bs__add svg {
    position: absolute;
    right: 14px;
    width: 18px;
    height: 18px;
  }

  .dpsg-bs__options {
    justify-content: space-between;
    padding: 0 16px;
  }

  .dpsg-bs__add:hover,
  .dpsg-bs__options:hover {
    color: #000024;
    background: #ffc54a;
  }
}

.dpsg-bs__empty {
  grid-column: 1 / -1;
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 991.98px) {
  .dpsg-bs {
    padding: 40px 16px 0;
  }

  .dpsg-bs__head {
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
  }

  .dpsg-bs__title {
    font-size: 22px;
  }

  .dpsg-bs__all {
    font-size: 13px;
  }

  .dpsg-bs__tabs {
    flex: 1 0 100%;
    flex-wrap: nowrap;
    order: 3;
    gap: 8px;
    margin: 0 -16px;
    padding: 0 16px 4px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .dpsg-bs__tabs::-webkit-scrollbar {
    display: none;
  }

  .dpsg-bs__tab {
    flex: none;
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 16px;
    font-size: 13px;
    border: 1px solid transparent;
    border-radius: 999px;
  }

  .dpsg-bs__tab:has(input:checked) {
    border-color: #f1ab11;
  }

  .dpsg-bs__panel {
    grid-template-columns: 1fr 1fr;
    gap: 16px 12px;
  }

  .dpsg-bs__name {
    min-height: 40px;
    font-size: 16px;
  }

  .dpsg-bs__badge {
    top: 10px;
    left: 10px;
  }
}
