
.comparison-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  align-self: stretch;
  width: 100%;
  flex: 0 0 auto;
  z-index: 1;
  background: transparent;
}

.comparison-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  position: relative;
  align-self: stretch;
  width: 100%;
  flex: 0 0 auto;
}

.comparison-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  position: relative;
  align-self: stretch;
  width: 100%;
  flex: 0 0 auto;
}

.page-title {
  width: fit-content;
  margin-top: -1.00px;
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
  color: #353837;
  font-size: 40px;
  line-height: 48.0px;
  white-space: nowrap;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0;
}

.comparison-content {
  display: grid;

  grid-template-columns: repeat(var(--total-columns, 4), minmax(calc(25% - 9px), 1fr));
  gap: 12px;
  overflow-x: auto;
  width: 100%;
  position: relative;
  align-self: stretch;
  flex: 0 0 auto;
  align-items: stretch;
  scroll-behavior: smooth;

  padding-bottom: 20px;

  scrollbar-width: none;
  -ms-overflow-style: none;
}

.comparison-content::-webkit-scrollbar {
  display: none;
  width: 0px;
  background: transparent;
}

.comparison-grid,
.comparison-specs-wrapper,
.specs-container,
.comparison-footer {
  display: contents;
}

.comparison-sidebar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 24px;
  position: relative;
  align-self: stretch;
  background-color: #ffffff;
  border-radius: 40px;
  overflow: hidden;
  border: 1px solid rgba(53, 56, 55, 0.12);
  grid-row: 1;
  z-index: 20;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.sidebar-section {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-self: stretch;
}

.product-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 0px 0px;
  position: relative;

  flex-grow: 1;
  background-color: #ffffff;
  border-radius: 40px;
  overflow: hidden;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  grid-row: 1;
  border: 1px solid rgba(53, 56, 55, 0.12);
}

.specs-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  border-radius: 40px;
  overflow: hidden;
  border: 1px solid rgba(53, 56, 55, 0.12);
  background-color: #fff;
  grid-row: 2;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.specs-column:first-child {

  min-width: 0;
  grid-column: 1;
}

.specs-column:not(:first-child) {

  min-width: 0;
}

.btn-send {
  grid-row: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 17px 24px;
  background: linear-gradient(310deg, rgba(245, 206, 221, 1) 0%, rgba(228, 169, 192, 1) 100%);
  border: none;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  border-radius: 100px;
  cursor: pointer;
  height: 48px;
}

.footer-spacer {
  grid-row: 3;
  grid-column: 1;
  display: block;
  min-width: 0;
}

.btn-buy {
  grid-row: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(310deg, rgba(245, 206, 221, 1) 0%, rgba(228, 169, 192, 1) 100%);
  color: #353837;
  border-radius: 100px;
  padding: 12px 24px;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  height: 48px;
  border: none;
  cursor: pointer;
}

@media (max-width: 1200px) {
    .comparison-content {

      grid-template-columns: repeat(var(--total-columns, 4), minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
  .comparison-content {
    grid-template-columns: repeat(var(--product-count, 3), minmax(calc(50% - 6px), 1fr));
    scroll-snap-type: x mandatory;
  }
  .comparison-sidebar, .specs-column:first-child, .btn-send, .footer-spacer {
    display: none;
  }

    .product-card,
    .specs-column:not(:first-child),
    .btn-buy {
        min-width: calc(50% - 6px);
        scroll-snap-align: start;
    }

    .product-card { grid-row: 1; }
    .specs-column { grid-row: 2; }
    .btn-buy { grid-row: 3; }

    .card-actions {
      flex-direction: row;
      gap: 8px;
    }

    .card-actions a,
    .card-actions button {
      width: 40px !important;
      height: 40px !important;
    }

    .card-actions a span,
    .card-actions button span {
      width: 20px !important;
      height: 20px !important;
    }

    .comparison-header {
      flex-wrap: wrap;
    }

    .page-title {
      white-space: normal;
      font-size: 28px;
      line-height: 36px;
      flex: 1;
    }

    .nav-controls {
      flex-shrink: 0;
    }
}

.sidebar-stat {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
  align-self: stretch;
  width: 100%;
  flex: 0 0 auto;
}

.stat-text {
  margin-top: -1.00px;
  font-size: 16px;
  line-height: 19.2px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  font-family: "Open Sans", Helvetica, sans-serif;
  font-weight: 400;
  color: #353837;
  letter-spacing: 0;
  white-space: nowrap;
}

.btn-add-product {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  position: relative;
  flex: 0 0 auto;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.filter-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  position: relative;
  align-self: stretch;
  width: 100%;
  flex: 0 0 auto;
  border: none;
  padding: 0;
  margin: 0;
}

.filter-option {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  position: relative;
  flex: 0 0 auto;
  cursor: pointer;
  margin-bottom: 8px;
}

.filter-option input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  white-space: nowrap;
  clip-path: inset(100%);
  clip: rect(0 0 0 0);
  overflow: hidden;
}

.custom-radio {
  width: 20px;
  height: 20px;
  border: 1px solid #D0D5DD;
  border-radius: 6px;
  position: relative;
  background-color: white;
  transition: all 0.2s;
  box-sizing: border-box;
  flex-shrink: 0;
}

input[type="radio"]:checked + .custom-radio {
  background-color: #fff;
  border-color: #353837;
}

input[type="radio"]:checked + .custom-radio::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  background-color: #353837;
  border-radius: 2px;
}

.filter-option:hover .custom-radio {
  border-color: #353837;
}

.product-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 0px 0px;
  position: relative;
  flex: 1 0 250px;
  flex-grow: 1;
  background-color: #ffffff;
  border-radius: 40px;
  overflow: hidden;
  border: 1px solid rgba(53, 56, 55, 0.12);
}

.product-image {
  position: relative;
  width: 104px;
  height: 240px;
  aspect-ratio: 0.44;
  object-fit: contain;
}

.product-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  position: relative;
  align-self: stretch;
  width: 100%;
  flex: 0 0 auto;
}

.product-name {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  align-self: stretch;
  margin-top: -1.00px;
  font-family: "Open Sans", Helvetica, sans-serif;
  font-weight: 600;
  color: #353837;
  font-size: 16px;
  letter-spacing: 0;
  line-height: 19.2px;
  text-align: left;
}

.product-price {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: fit-content;
  font-family: "Open Sans", Helvetica, sans-serif;
  font-weight: 600;
  color: #353837;
  font-size: 24px;
  letter-spacing: 0;
  line-height: 28.8px;
  white-space: nowrap;
}

.card-actions {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
  position: absolute;
  top: 24px;
  right: 24px;
}

.spec-item {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-around;
  gap: 24px;
  padding: 12px 24px;
  position: relative;
  align-self: stretch;
  width: 100%;
}

.spec-item:nth-child(odd) {
  background-color: #f9f9f9;
}

.spec-item:nth-child(even) {
  background-color: #ffffff;
}

.spec-label {
  flex: 1;
  font-family: "Open Sans", Helvetica, sans-serif;
  font-weight: 400;
  color: #353837;
  font-size: 16px;
  line-height: 19.2px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  letter-spacing: 0;
}

.spec-value {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  font-family: "Open Sans", Helvetica, sans-serif;
  font-weight: 600;
  color: #353837;
  font-size: 16px;
  letter-spacing: 0;
  line-height: 19.2px;
  text-align: center;
}

  width: fit-content;
  margin-top: -3.50px;
  margin-bottom: -1.50px;
  font-family: "Open Sans", Helvetica, sans-serif;
  font-weight: 600;
  color: #353837;
  font-size: 16px;
  line-height: 19.2px;
  white-space: nowrap;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  white-space: nowrap;
  clip-path: inset(100%);
  clip: rect(0 0 0 0);
  overflow: hidden;
}
