/* EWT Hardware Showcase */

.ewt-hardware-showcase__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .ewt-hardware-showcase__grid {
    grid-template-columns: 1fr 1.1fr;
  }
}

.ewt-hardware-showcase__content-col {
  display: flex;
  flex-direction: column;
}

.ewt-hardware-showcase__headline {
  margin-bottom: 2rem;
}

.ewt-hardware-showcase__tabs {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

/* Tab button */
.ewt-hardware-tab {
  background: none;
  border: 1px solid var(--ewt-border);
  padding: 1.25rem;
  border-radius: var(--radius);
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: all var(--duration-base) var(--ease-out);
}

.ewt-hardware-tab:hover {
  border-color: #0049ca;
}

.ewt-hardware-tab.is-active {
  background: rgba(0, 73, 202, 0.06);
  border-color: #0049ca;
  box-shadow: 0 4px 14px rgba(0, 73, 202, 0.12);
}

.ewt-hardware-tab__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.25rem;
}

.ewt-hardware-tab__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ewt-text-primary);
  transition: color var(--duration-base);
}

.ewt-hardware-tab.is-active .ewt-hardware-tab__title {
  color: #0049ca;
}

.ewt-hardware-tab__header span.material-icons {
  font-size: 1.25rem;
  color: var(--ewt-text-muted);
  transition: color var(--duration-base);
}

.ewt-hardware-tab.is-active span.material-icons {
  color: #0049ca;
}

.ewt-hardware-tab__desc {
  font-size: 0.875rem;
  color: var(--ewt-text-body);
  line-height: 1.5;
  margin: 0;
}

/* Media column (Top Slider) */
.ewt-hardware-showcase__media-col {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 380px;
}

@media (min-width: 768px) {
  .ewt-hardware-showcase__media-col {
    min-height: 520px;
  }
}

.ewt-hardware-container {
  width: 100%;
  max-width: 520px;
  opacity: 1;
  transform: none;
  transition: opacity 300ms ease, transform 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.ewt-hardware-container.is-hidden {
  opacity: 0;
  transform: scale(0.96);
  pointer-events: none;
  position: absolute;
}

/* Scrollable image strip */
.ewt-hardware-scroll {
  width: 100%;
}

.ewt-hardware-scroll__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  border-radius: var(--radius-xl, 16px);
}

.ewt-hardware-scroll__track::-webkit-scrollbar {
  display: none;
}

.ewt-hardware-scroll__slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  background: rgba(240, 239, 237, 0.3);
  padding: 1.5rem;
  border-radius: var(--radius-xl, 16px);
  box-sizing: border-box;
}

.ewt-hardware-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius, 8px);
  box-shadow: var(--shadow-card);
  display: block;
}

/* Dot indicators */
.ewt-hardware-scroll__dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.ewt-hardware-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 73, 202, 0.2);
  cursor: pointer;
  padding: 0;
  transition: background 200ms ease, transform 200ms ease;
}

.ewt-hardware-dot.is-active {
  background: #0049ca;
  transform: scale(1.4);
}

/* Bottom Products Reveal Containers */
.ewt-hardware-products-reveal {
  width: 100%;
  position: relative;
}

.ewt-hardware-products-container {
  width: 100%;
  opacity: 1;
  transform: none;
  transition: opacity 300ms ease, transform 450ms cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
}

.ewt-hardware-products-container.is-hidden {
  opacity: 0;
  transform: scale(0.98) translateY(10px);
  pointer-events: none;
  position: absolute;
  top: 0;
  left: 0;
}

/* Products Grid */
.ewt-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  width: 100%;
}

@media (max-width: 1023px) {
  .ewt-products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 639px) {
  .ewt-products-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* Product Card */
.ewt-product-card {
  display: flex;
  flex-direction: column;
  background: var(--ewt-card-bg, #ffffff);
  border: 1px solid var(--ewt-border, rgba(0, 0, 0, 0.08));
  border-radius: 12px;
  overflow: hidden;
  transition: transform 300ms cubic-bezier(0.25, 1, 0.5, 1),
              border-color 300ms ease,
              box-shadow 300ms ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.ewt-product-card:hover {
  transform: translateY(-5px);
  border-color: #0049ca;
  box-shadow: 0 12px 30px rgba(0, 73, 202, 0.12);
}

.ewt-product-card__image-wrapper {
  aspect-ratio: 1 / 1;
  width: 100%;
  overflow: hidden;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.ewt-product-card__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.75rem;
  transition: transform 450ms cubic-bezier(0.25, 1, 0.5, 1);
  display: block;
}

.ewt-product-card:hover .ewt-product-card__image {
  transform: scale(1.06);
}

.ewt-product-card__info {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.ewt-product-card__title {
  font-family: var(--font-display), inherit !important;
  font-size: 0.6875rem !important;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ewt-text-primary, #191b24);
  margin: 0 0 0.875rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.8em;
}

.ewt-product-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: auto;
}

.ewt-product-card__price {
  font-size: 1.05rem;
  font-weight: 800;
  color: #16A34A; /* EWT Green */
  white-space: nowrap;
}

.ewt-product-card__cta {
  background: #0049ca; /* EWT Blue */
  color: #ffffff !important;
  padding: 0.45rem 0.9rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  border: 1px solid #0049ca;
  transition: all 250ms ease;
  text-align: center;
  display: inline-block;
  line-height: 1.2;
}

.ewt-product-card__cta:hover {
  background: #003697;
  border-color: #003697;
  box-shadow: 0 4px 10px rgba(0, 73, 202, 0.2);
}
