/* Homepage product card — desktop quick add (reference-style) */
@media (min-width: 1024px) {
  .tecsa-home-product-card .tecsa-card-quick-btn {
    position: absolute;
    right: 0.65rem;
    bottom: 0.65rem;
    z-index: 12;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.65rem;
    border: 0;
    border-radius: 9999px;
    background: #fff;
    color: #111827;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(4px);
    transition: opacity 0.2s ease, transform 0.2s ease, padding 0.2s ease, gap 0.2s ease, box-shadow 0.2s ease;
  }

  .tecsa-home-product-card:hover .tecsa-card-quick-btn {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .tecsa-card-quick-btn__label {
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    white-space: nowrap;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1;
    transition: max-width 0.22s ease, opacity 0.18s ease, margin 0.22s ease;
    margin-left: 0;
  }

  .tecsa-card-quick-btn:hover,
  .tecsa-card-quick-btn:focus-visible {
    padding-left: 0.75rem;
    padding-right: 0.9rem;
    gap: 0.45rem;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.22);
    outline: none;
  }

  .tecsa-card-quick-btn:hover .tecsa-card-quick-btn__label,
  .tecsa-card-quick-btn:focus-visible .tecsa-card-quick-btn__label {
    max-width: 7.5rem;
    opacity: 1;
    margin-left: 0.1rem;
  }

  .tecsa-card-quick-btn__icon {
    flex-shrink: 0;
  }
}

@media (max-width: 1023px) {
  .tecsa-card-quick-btn {
    display: none !important;
  }
}

/* Quick view modal */
.tecsa-quickview {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.tecsa-quickview.is-hidden {
  display: none;
}

.tecsa-quickview__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
}

.tecsa-quickview__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 58rem;
  height: min(60vh, 560px);
  min-height: min(55vh, 480px);
  max-height: 92vh;
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.tecsa-quickview__inner {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.tecsa-quickview__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 5;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 9999px;
  background: #fff;
  color: #374151;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tecsa-quickview__close:hover {
  background: #f3f4f6;
}

.tecsa-quickview__body {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 0;
  flex: 1;
  overflow: hidden;
  height: 100%;
}

@media (min-width: 768px) {
  .tecsa-quickview__body {
    /* Narrower image column, wider details — matches reference */
    grid-template-columns: minmax(0, 38%) minmax(0, 62%);
  }
}

/* Left: full-bleed vertical image stack (scroll, no thumbnails) */
.tecsa-quickview__gallery {
  position: relative;
  min-height: 0;
  height: 100%;
  padding: 0;
  margin: 0;
  background: #fff;
  overflow: hidden;
  border-bottom: 1px solid #e5e7eb;
}

@media (min-width: 768px) {
  .tecsa-quickview__gallery {
    border-bottom: 0;
    border-right: 1px solid #e5e7eb;
  }
}

.tecsa-quickview__scroll {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.tecsa-quickview__scroll::-webkit-scrollbar {
  display: none;
}

.tecsa-quickview__slide {
  width: 100%;
  flex-shrink: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: block;
  line-height: 0;
}

.tecsa-quickview__slide img {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center;
  display: block;
  vertical-align: top;
}

.tecsa-quickview__details {
  padding: 1.5rem 1.75rem 1.75rem;
  overflow-y: auto;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.tecsa-quickview__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.35;
  padding-right: 2rem;
}

.tecsa-quickview__price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.tecsa-quickview__price {
  font-size: 1.25rem;
  font-weight: 700;
  color: #00aaec;
}

.tecsa-quickview__price--sale {
  color: #dc2626;
}

.tecsa-quickview__old-price {
  font-size: 0.95rem;
  color: #9ca3af;
  text-decoration: line-through;
}

.tecsa-quickview__options {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tecsa-quickview__field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #374151;
  margin-bottom: 0.5rem;
}

.tecsa-quickview__variant-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.85rem;
  border-radius: 9999px;
  border: 1px solid #e5e7eb;
  background: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #111827;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.tecsa-quickview__variant-btn.is-active {
  background: #111827;
  border-color: #111827;
  color: #fff;
}

.tecsa-quickview__color-btn {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  padding: 0;
  cursor: pointer;
  outline: none;
  flex-shrink: 0;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.2s ease;
}

.tecsa-quickview__color-btn:hover {
  transform: scale(1.08);
  border-color: rgba(0, 0, 0, 0.24);
}

.tecsa-quickview__color-btn.is-active {
  border-color: #ffffff !important;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08), 0 0 0 2px #ffffff, 0 0 0 4.5px #00aaec !important;
  transform: scale(1.04);
}

.tecsa-quickview__purchase-row {
  display: flex;
  align-items: stretch;
  gap: 0.65rem;
  margin-top: auto;
  padding-top: 1rem;
}

.tecsa-quickview__qty-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0;
  flex-shrink: 0;
}

.tecsa-quickview__qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid #e5e7eb;
  border-radius: 0.375rem;
  overflow: hidden;
}

.tecsa-quickview__qty button {
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  background: #f3f4f6;
  font-weight: 700;
  cursor: pointer;
}

.tecsa-quickview__qty input {
  width: 2.5rem;
  text-align: center;
  border: 0;
  font-weight: 700;
  outline: none;
}

.tecsa-quickview__actions {
  margin-top: 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.tecsa-quickview__btn-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
  width: auto;
  padding: 0.85rem 1rem;
  border: 0;
  border-radius: 0.375rem;
  background: #111827;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.tecsa-quickview__btn-cart:hover {
  background: #1f2937;
}

.tecsa-quickview__btn-buy {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 0;
  border-radius: 0.375rem;
  background: #00aaec;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.tecsa-quickview__btn-buy:hover {
  background: #0099d6;
}

@media (max-width: 767px) {
  .tecsa-quickview__dialog {
    height: auto;
    min-height: 0;
    max-height: 94vh;
  }

  .tecsa-quickview__gallery {
    min-height: 42vh;
    max-height: 48vh;
  }

  .tecsa-quickview__purchase-row {
    flex-direction: column;
  }

  .tecsa-quickview__btn-cart {
    width: 100%;
  }
}

.tecsa-quickview__link {
  display: block;
  text-align: center;
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #00aaec;
}

.tecsa-quickview__link:hover {
  text-decoration: underline;
}

.tecsa-quickview__loading {
  padding: 3rem;
  text-align: center;
  color: #6b7280;
}

body.tecsa-quickview-open {
  overflow: hidden;
}
