.store-container {
  display: grid;
  grid-template-columns: 30% 70%;
  margin: 2rem 0;
  width: 100%;
}

@media screen and (max-width: 876px) {
  .store-container {
    grid-template-columns: 100%;
  }
}

.store-aside {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0 1rem;
}

.store-box {
  background-color: white;
  padding: 1rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* store info */
.store-info {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.store-info__title {
  font-size: 1.2rem;
  font-weight: 550;
  color: var(--ast-global-color-0);
  margin-bottom: 0;
}

.store-info__rating {
  margin-bottom: 1rem;
  text-align: center;
}

.store-info__rating-star {
  color: #f39d13;
  font-size: 1.4rem;
}

.store-info__rating-text {
  font-size: 1.2rem;
}

.store-info__alert {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ast-global-color-0);
  background-color: white;
  border: 1px solid var(--ast-global-color-0);
  padding: 0.5rem 1.5rem;
  border-radius: 0.2rem;
  text-align: center;
  transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
  cursor: pointer;
}

.store-info__alert:hover {
  background-color: var(--ast-global-color-0);
  color: white;
}

/* store count */
.store-count {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.store-count__title {
  font-weight: 700;
  margin: 0;
}

.store-count__item {
  display: flex;
  justify-content: space-between;
}

/* popular store */
.store-popular-store h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.store-popular-store ul {
  display: flex;
  flex-direction: column;
  list-style: none;
  padding: 0;
  margin: 0;
  border: 1px solid #e7e6e6;
  border-radius: 0.3rem;
  overflow: hidden;
}

.store-popular-store ul li a {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: black;
  padding: 1rem;
  background: white;
}

.store-popular-store ul li:not(:last-of-type) a {
  border-bottom: 1px solid #e7e6e6;
}

.store-popular-store ul li img {
  width: 5rem;
  height: 5rem;
}

.store-popular-store__title {
  font-size: 1.1rem;
  font-weight: 600;
}

.store-popular-store.mobile {
  display: none;
}

@media screen and (max-width: 876px) {
  .store-popular-store.desktop {
    display: none;
  }
  .store-popular-store.mobile {
    display: block;
  }
}

/* store content */
.store-content {
  padding: 0 1rem;
}

.store-content__title {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.store-content__description {
  margin-bottom: 1rem;
}

.store-content__category {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.store-content__category > button {
  color: var(--ast-global-color-0);
  background-color: white;
  border: none;
  padding: 0.5rem 1rem;
  font-size: 1.2rem;
  font-weight: 550;
  border-radius: 0.3rem;
  cursor: pointer;
}

.store-content__category > button.active {
  background-color: var(--ast-global-color-0);
  color: white;
  cursor: default;
}

.store-content__list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.store-content__list[data-type="all"] > .store-content__list-item {
  display: flex;
}

.store-content__list[data-type="verified"]
  > .store-content__list-item[data-verified] {
  display: flex;
}

.store-content__list[data-type="code"]
  > .store-content__list-item[data-type="code"] {
  display: flex;
}

.store-content__list[data-type="deal"]
  > .store-content__list-item[data-type="deal"] {
  display: flex;
}

.store-content__list-item {
  display: none;
  flex-wrap: nowrap;
  gap: 0.5rem;
  background-color: white;
  padding: 1rem;
  border-radius: 0.3rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.store-content__list-item-discount {
  display: flex;
  align-self: stretch;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-right: 1px dashed #e7e6e6;
  padding-right: 0.2rem;
  font-size: 1.5rem;
  font-weight: 700;
  width: 7rem;
  text-align: center;
  color: var(--ast-global-color-0);
}

.store-content__list-item-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-grow: 1;
  gap: 0.5rem;
}

@media screen and (max-width: 876px) {
  .store-content__list-item-content {
    flex-direction: column;
  }
}

.store-content__list-item-type {
  color: var(--ast-global-color-0);
  font-weight: 600;
}

.store-content__list-item-title {
  font-weight: 600;
  font-size: 1.2rem;
  margin: 1rem 0;
}

.store-content__list-item-description {
  color: #8a8a8a;
}

.store-content__list-item-code {
  flex-shrink: 0;
  position: relative;
}

.store-content__list-item-code > button {
  color: white;
  background-color: var(--ast-global-color-0);
  border: none;
  padding: 0.75rem 3.2rem;
  border-radius: 0.3rem;
  font-weight: 500;
  font-size: 1.1rem;
  min-width: 12rem;
  cursor: pointer;
}

.store-content__list-item[data-type="code"]
  .store-content__list-item-code
  > button {
  transition: transform 0.2s ease-in-out;
  clip-path: polygon(85% 0, 100% 81%, 100% 100%, 0 99%, 0 0);
  position: relative;
}

.store-content__list-item[data-type="code"]
  .store-content__list-item-code
  > button::after {
  content: "";
  position: absolute;
  background-color: color-mix(in srgb, var(--ast-global-color-0), black 40%);
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  clip-path: polygon(85% 0, 80% 50%, 100% 82%);
}

.store-content__list-item[data-type="code"]
  .store-content__list-item-code
  > button:hover {
  transform: translateX(-1rem);
}

.store-content__list-item[data-type="code"]
  .store-content__list-item-code-text {
  position: absolute;
  width: 100%;
  height: 99%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  text-transform: uppercase;
  color: var(--ast-global-color-0);
  font-size: 1.2rem;
  font-weight: 600;
  padding-right: 0.2rem;
  border: 0.1rem dashed var(--ast-global-color-0);
  border-radius: 0.3rem;
  box-sizing: border-box;
}

.store-content__list-item[data-type="deal"]
  .store-content__list-item-code-text {
  display: none;
}

.store-content__box {
  margin-bottom: 2rem;
}

.store-content__box-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.store-content__box-description {
  padding: 1rem;
  border: 1px solid #d3d3d3;
  font-size: 1.1rem;
}

.store-content__box-description:has(table) {
  padding: 0;
  border: none;
}

.store-content__box-description table {
  height: unset !important;
  border-color: #d3d3d3;
}

.store-content__box-description table td {
  border-color: #d3d3d3;
}

/* offer modal */
.store-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.store-modal-content {
  background: white;
  padding: 20px;
  max-width: 500px;
  width: 100%;
  border-radius: 5px;
  text-align: center;
  position: relative;
  transform: translateY(-50px);
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.store-modal-overlay {
  opacity: 0;
  visibility: hidden;
}

.store-modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.store-modal-overlay.show .store-modal-content {
  transform: translateY(0);
  opacity: 1;
}

.store-close-modal {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: none;
  background: none;
  font-size: 1.5rem;
  box-shadow: none;
  color: black;
  line-height: 1.2rem;
  padding: 0;
  cursor: pointer;
}

.store-close-modal:hover {
  background: none;
  color: black;
}

.store-modal__store-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid #e7e6e6;
}

.store-modal__store-avatar {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  margin: 0;
  object-fit: cover;
  border: 1px solid #e7e6e6;
}

.store-modal__offer-title {
  font-weight: 600;
  font-size: 1.3rem;
}

.store-modal__content {
  padding: 1rem;
}

.store-modal__content-description {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.store-modal__content-copy {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.store-modal__content-copy-code {
  border: 2px dashed var(--ast-global-color-0);
  background-color: #e8ecee;
  color: black;
  border-radius: 0.3rem;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-right: none;
  padding: 0.5rem 2rem;
  width: 100%;
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
}

.store-modal__content-copy-code:focus {
  border: 2px dashed var(--ast-global-color-0);
  border-right: none;
  padding: 0.5rem 2rem;
}

.store-modal__content-copy > button {
  background-color: var(--ast-global-color-0);
  color: white;
  border: none;
  border-radius: 0.3rem;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  padding: 0.5rem;
  font-size: 1.1rem;
  width: 9rem;
  flex-shrink: 0;
  cursor: pointer;
}

.store-modal__content-deal {
  margin-bottom: 1rem;
}

.store-modal__content-deal-button {
  background-color: var(--ast-global-color-0);
  color: white;
  border: none;
  border-radius: 0.3rem;
  padding: 0.5rem;
  font-size: 1.1rem;
}

.store-modal__content-deal-button:hover {
  color: white;
}

.store-modal__content-logo-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.3rem;
  font-size: 1.3rem;
  font-weight: 600;
  margin-top: 1rem;
}

.store-modal__content-logo {
  height: 32px;
  margin-left: -2rem;
}
