.tw-products {
  padding: 0px 0 172px;
}

.tw-products__heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 118px;
}

.tw-products__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: start;
}

.tw-product-card {
  position: relative;
  border-radius: var(--tw-radius-card);
  padding: 20px;
  transition: background 0.25s ease, box-shadow 0.25s ease;
  text-align: center;
}

.tw-product-card:hover {
  background: var(--tw-color-card-bg);
  box-shadow: 0 18px 40px rgba(17, 15, 15, 0.08);
}

.tw-product-card__media {
  height: 480px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
}

.tw-product-card__image {
  height: 100% !important;
  width: 100%;
  margin-inline: auto;
  object-fit: cover;
}

.tw-product-card__title {
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -1px;
  color: #000000;
  margin-bottom: 10px;
}

.tw-product-card__colors {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.5px;
  color: var(--tw-color-text-light);
  margin-bottom: 18px;
}

.tw-product-card__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tw-color-dot);
}

.tw-product-card__prices {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-direction: row-reverse;
  gap: 10px;
  margin-bottom: 8px;
}

.tw-product-card__price-old {
  font-size: 16px;
    line-height: 1;
  letter-spacing: 0.5px;
  font-family: var(--tw-font-almog);
  color: var(--tw-color-price-old);
  text-decoration: line-through;
}


.tw-product-card__price,
.tw-product-card__price .amount,
.tw-product-card__price del,
.tw-product-card__price ins {
  font-size: 24px;
  font-weight: 600;
  line-height: 1;
    font-family: var(--tw-font-almog);
  letter-spacing: 0.5px;
  color: var(--tw-color-price);
  text-decoration: none;
  background: none;
}

.tw-product-card__price del {
  display: none;
}

.tw-product-card__cart {
  width: 100%;
  margin-top: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  /* Icon on physical left of Hebrew text */
  direction: ltr;
  gap: 8px;
}

.tw-product-card__cart svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: block;
}

.tw-product-card:hover .tw-product-card__cart {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.tw-products__empty {
  text-align: center;
  color: var(--tw-color-text-muted);
}

@media (max-width: 1024px) {
  .tw-products {
    padding: 0 0 96px;
  }

  .tw-products__heading {
    margin-bottom: 64px;
  }

  .tw-products__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 16px;
  }

  .tw-product-card {
    padding: 16px;
  }

  .tw-product-card__media {
    height: 340px;
    margin-bottom: 24px;
  }

  .tw-product-card__title {
    font-size: 18px;
  }

  .tw-product-card__colors {
    font-size: 14px;
    margin-bottom: 14px;
  }

  .tw-product-card__price,
  .tw-product-card__price .amount,
  .tw-product-card__price del,
  .tw-product-card__price ins {
    font-size: 22px;
  }

  .tw-product-card__price-old {
    font-size: 15px;
  }

  /* Always show cart on touch / tablet */
  .tw-product-card__cart {
    opacity: 1;
    visibility: visible;
    transform: none;
    margin-top: 16px;
    font-size: 16px;
    min-height: 48px;
  }
}

@media (max-width: 768px) {
  .tw-products {
    padding: 0 0 64px;
  }

  .tw-products__heading {
    margin-bottom: 40px;
    padding-inline: 8px;
    text-align: center;
  }

  .tw-products__grid {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 380px;
    margin-inline: auto;
  }

  .tw-product-card {
    padding: 16px 14px 18px;
  }

  .tw-product-card__media {
    height: 280px;
    margin-bottom: 20px;
  }

  .tw-product-card__title {
    font-size: 17px;
    line-height: 1.25;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
  }

  .tw-product-card__colors {
    gap: 6px;
    font-size: 13px;
    margin-bottom: 12px;
  }

  .tw-product-card__dot {
    width: 5px;
    height: 5px;
  }

  .tw-product-card__prices {
    gap: 8px;
    margin-bottom: 4px;
  }

  .tw-product-card__price,
  .tw-product-card__price .amount,
  .tw-product-card__price del,
  .tw-product-card__price ins {
    font-size: 20px;
  }

  .tw-product-card__price-old {
    font-size: 14px;
  }

  .tw-product-card__cart {
    margin-top: 14px;
    font-size: 15px;
    min-height: 46px;
    padding: 10px 18px;
  }

  .tw-product-card__cart svg {
    width: 18px;
    height: 18px;
  }
}
