:host {
  display: block;
  min-height: 100dvh;
}

.app-shell {
  display: grid;
  place-items: center;
  min-height: 100dvh;
  padding: 1.5rem;
}

.component-demo {
  width: min(100%, 64rem);
  border: 0;
}

.component-demo--ticket-selector {
  width: min(100%, 76rem);
}

.store-section-demo {
  width: min(100%, 64rem);
}

.carousel-product {
  position: relative;
  width: clamp(15rem, 30vw, 18rem);
  height: 100%;

  &__mock-id {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 2;
    padding: 0.35rem 0.55rem;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.08em;
    background: rgb(20 20 20 / 82%);
    border-radius: 999px;
  }

  app-product-column-with-image {
    display: block;
    height: 100%;
  }
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6c757d;
}

h1 {
  margin-bottom: 0.75rem;
}

.button-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button-showcase {
  display: grid;
  gap: 1.25rem;
}

.button-group {
  display: grid;
  gap: 0.75rem;
}

.modal-showcase__result {
  padding: 0.875rem 1rem;
  border: 1px dashed var(--border-color);
  border-radius: 0.875rem;
  background: linear-gradient(180deg, rgba(248, 248, 248, 0.92), rgba(255, 255, 255, 0.98));
  color: #495057;
  font-size: 0.95rem;
}

:host ::ng-deep .modal-demo-content {
  display: grid;
  gap: 1rem;
}

:host ::ng-deep .modal-demo-content__eyebrow {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6c757d;
}

:host ::ng-deep .modal-demo-content__title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: #202020;
}

:host ::ng-deep .modal-demo-content__description {
  margin: 0;
  color: #505050;
  line-height: 1.6;
}

:host ::ng-deep .modal-demo-content__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem;
}

.button-group h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.paginator-showcase {
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  text-align: center;
}

.cart-showcase {
  display: grid;
  gap: 1rem;
  justify-items: start;
}

.cart-showcase__viewport {
  width: 100%;
  max-width: 504px;
  height: 640px;
}

.cart-showcase__header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.button-grid--single-char app-button {
  min-width: 3rem;
}

.store-section-demo__item {
  app-product-column-with-image {
    width: 100%;
  }
}

.section-divider {
  margin: 2rem 0;
}

.input-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.input-field {
  display: grid;
  gap: 0;
}

.file-field {
  display: grid;
  gap: 0.75rem;
}

.file-field {
  display: grid;
  gap: 0.75rem;
}

@media (max-width: 991.98px) {
  .input-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .carousel-product {
    width: min(18rem, calc(100vw - 5rem));
  }

  .input-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cart-showcase__header {
    align-items: start;
    flex-direction: column;
  }

  .modal-showcase__result {
    font-size: 0.875rem;
  }
}

.configuracion-tennant {
  margin-top: 2rem;

  .tenant-logo-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;

    &__label {
      font-size: 0.875rem;
      font-weight: 600;
      color: #495057;
    }

    &__container {
      display: flex;
      align-items: center;
      justify-content: center;
      height: 120px;
      border-radius: 8px;
      border: 1px solid var(--border-color);
      padding: 1rem;
      overflow: hidden;
      box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
      transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;

      &:hover {
        transform: translateY(-2px);
        box-shadow:
          inset 0 2px 4px rgba(0, 0, 0, 0.05),
          0 4px 12px rgba(0, 0, 0, 0.08);
      }
    }

    &__img {
      max-height: 100%;
      max-width: 100%;
      object-fit: contain;
      filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    }

    &__placeholder {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      color: #6c757d;
      font-size: 0.875rem;

      i {
        font-size: 2rem;
        opacity: 0.6;
      }
    }
  }

  .header-bg {
    background-color: var(--tenant-header-bg, #f8f9fa);
  }

  .footer-bg {
    background-color: var(--tenant-footer-bg, #f8f9fa);
  }

  .color-swatch-card {
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    background-color: #ffffff;
    transition:
      transform 0.2s ease,
      box-shadow 0.2s ease;

    &:hover {
      transform: translateY(-3px);
      box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1) !important;
    }

    &__preview {
      height: 80px;
      width: 100%;
      border-bottom: 1px solid var(--border-color);
      transition: opacity 0.2s ease;

      &:hover {
        opacity: 0.95;
      }
    }

    &__body {
      padding: 0.75rem 1rem;
      display: flex;
      flex-direction: column;
      gap: 0.25rem;
    }

    &__title {
      font-size: 0.75rem;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      font-weight: 700;
      color: #6c757d;
    }

    &__value {
      font-size: 0.875rem;
      color: #212529;
      font-family: var(--bs-font-monospace);
    }
  }
}

.icon-button-showcase {
  display: grid;
  gap: 1.5rem;

  &__grid {
    display: grid;
    gap: 1.5rem;
    background-color: #eaeaea;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
  }

  &__row {
    display: grid;
    grid-template-columns: 160px 1fr;
    align-items: center;
    gap: 1.5rem;

    @media (max-width: 575.98px) {
      grid-template-columns: minmax(0, 1fr);
      gap: 0.5rem;
    }
  }

  &__label {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #495057;
    letter-spacing: 0.05em;
  }

  &__items {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
  }
}
