.flashsale {
  min-height: 50vh;

  .flashsale-card {
    background: #fff;
    padding: 0.5rem;
    width: 100%;
    display: block;
    margin: 0 auto;
    border-radius: 0.5rem;
    box-shadow: inset 0rem 0rem 0.5rem rgba(0, 0, 0, 0.25);
    text-shadow: 0 0.25rem 0.25rem rgba(0, 0, 0, 0.25);
  }
}
.ss {
  position: relative;
  height: 640px;

  .ss-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
  }

  .ss-content {
    padding: 64px;
    display: flex;
    gap: 2rem;

    justify-content: center;
    align-items: center;
    height: 100%;
    z-index: 1;
  }
}

.ss-grid {
  margin-left: 64px;
  margin-right: 64px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);

  div {
    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  }

  .grid1 {
    grid-column: span 2 / span 2;
    grid-row: span 2 / span 2;
  }

  .grid2 {
    grid-column: span 2 / span 2;
    grid-column-start: 3;
  }

  .grid3 {
    grid-column-start: 3;
    grid-row-start: 2;
  }

  .grid4 {
    grid-column-start: 4;
    grid-row-start: 2;
  }
}

@media screen and (max-width: 768px) {
  .ss {
    .ss-content {
      flex-direction: column;
    }
  }

  .ss-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(4, 1fr);
  }
}

.brand-container {
  position: relative;

  .brand-content {
    position: absolute;
    bottom: -100%;
    width: 100%;
    max-height: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    text-align: center;
    padding: 0.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: all 0.5s ease-in-out;
  }
}

.brand-container:hover .brand-content {
  bottom: 0;
}
