.section-dresses-collection {
  background-color: rgb(var(--color-background));
}

.dresses-collection__group {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.dresses-collection__group .subheading {
  text-align: center;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgb(var(--color-foreground));
  margin-bottom: 8px;
}

.dresses-collection__group .block-heading {
  text-align: center;
}

.dresses-collection__group .block-heading.title3 {
  font-size: 48px;
  font-weight: 400;
  line-height: 1.1;
  color: rgb(var(--color-foreground));
}

.dresses-collection__grid {
  display: grid;
  grid-template-columns: repeat(var(--columns, 4), 1fr);
  gap: 0;
  width: calc(100% + 32px);
  margin-left: -16px;
  position: relative;
  border-bottom: 1px solid #000000;
  border-radius: 0 0 4px 4px;
  overflow: visible;
  padding: 0 16px;
}

.dresses-collection__grid::before {
  content: '';
  position: absolute;
  top: 250px;
  left: 0;
  right: 0;
  height: 1px;
  background-color: #000000;
  z-index: 0;
}

.dresses-collection__grid::after {
  content: '';
  position: absolute;
  top: 250px;
  bottom: 0;
  left: 0;
  right: 0;
  border-left: 1px solid #000000;
  border-right: 1px solid #000000;
  pointer-events: none;
}

.dresses-collection__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  padding: 24px 16px 38px;
}

.dresses-collection__card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  background-color: #f5f5f5;
  margin-bottom: 20px;
}

.dresses-collection__card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dresses-collection__card-name {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  color: rgb(var(--color-foreground));
  margin-bottom: 8px;
}

.dresses-collection__card-style {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgb(var(--color-foreground-secondary));
}

.dresses-collection__card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.dresses-collection__group .button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #000000 !important;
  background-color: #ffffff !important;
  border: 1.5px solid #000000 !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
  padding: 16px 36px !important;
  cursor: pointer;
  text-decoration: none !important;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  margin-top: -25px !important;
  z-index: 1;
}

.dresses-collection__group .button:hover {
  color: #ffffff !important;
  background-color: #000000 !important;
  border-color: #000000 !important;
}

.dresses-collection__group .button::after {
  box-shadow: none !important;
  content: none !important;
}

.dresses-collection__group .button--secondary {
  background-color: #ffffff !important;
  color: #000000 !important;
  border-color: #000000 !important;
}

.dresses-collection__group .button--secondary:hover {
  background-color: #000000 !important;
  color: #ffffff !important;
}

@media (max-width: 767px) {
  .dresses-collection__group .subheading {
    font-size: 12px;
    letter-spacing: 2px;
  }

  .dresses-collection__group .block-heading {
    margin-bottom: 32px;
  }

  .dresses-collection__group .block-heading.title3 {
    font-size: 36px;
  }

  .dresses-collection__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dresses-collection__card {
    padding: 16px 12px;
  }

  .dresses-collection__card-image {
    aspect-ratio: 3/4;
    margin-bottom: 16px;
  }

  .dresses-collection__card-name {
    font-size: 14px;
  }

  .dresses-collection__group .button {
    font-size: 11px !important;
    padding: 14px 28px !important;
    letter-spacing: 1px !important;
  }
}