/* --- Core Layout & Shared Transitions --- */
.products-tabs {
  display: flex;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  align-items: stretch;
  transition: height 0.3s ease;

}

.tab-btn {
  flex: 1;
  display: flex;
  flex-direction: row;
  /* Default: Horizontal layout */
  align-items: center;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  cursor: pointer;
  overflow: hidden;
  position: relative;
  text-align: center;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-btn:hover {
  border-color: var(--orange-primary);
}

.tab-btn.active {
  flex: 3;
  background: var(--orange-primary);
  border-color: var(--orange-primary);
}

/* --- Content & Typography --- */
.tab-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transform: translateX(50px);
  /* Default: Slide from right */
  transition: all 0.4s ease;
  pointer-events: none;
  width: 300px;
  min-width: 300px;
  margin-left: 20px;
}

.tab-btn.active .tab-content {
  opacity: 1;
  transform: translate(0);
  pointer-events: auto;
}

.tab-title {
  writing-mode: vertical-lr;
  transform: rotate(180deg);
  font-family: "Manrope", sans-serif;
  font-size: 40px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: padding 0.5s, border 0.5s, color 0.3s, transform 0.5s;
}

.tab-btn.active .tab-title {
  color: #000;
  border-left: 2px solid rgba(0, 0, 0, 0.2);
  padding-left: 20px;
}

.product-name {
  font-size: 28px;
  font-family: "Manrope", sans-serif;
  margin-bottom: 4px;
  color: var(--text-primary)
}

.product-description {
  font-size: 20px;
  color: rgba(0, 0, 0, 0.8);
}

/* --- Product Card Component --- */
.product-card {
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  transition: all 0.4s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--orange-dark);
}

.product-image {
  aspect-ratio: 1;
  background: linear-gradient(180deg, #1F1D1A 0%, #151412 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

/* --- Responsive Refactor --- */
@media (max-width: 1000px) {
  .tab-title {
    font-size: 32px;
  }

  .product-name {
    font-size: 22px;
  }

  .product-description {
    font-size: 16px;
  }

}

@media (max-width: 960px) {
  .products-tabs {
    flex-direction: column;
    height: 480px;
    max-width: 600px;
  }

  .tab-btn {
    flex-direction: column;
    padding: 10px;
  }

  .tab-btn.active {
    flex: 2;
  }

  .tab-content {
    transform: translateY(30px);
    /* Slide from bottom instead of right */
    margin-left: 0;
  }

  .tab-title {
    writing-mode: horizontal-tb;
    transform: rotate(0);
    font-size: 30px;
  }

  .tab-btn.active .tab-title {
    border-left: 0;
    border-bottom: 2px solid rgba(0, 0, 0, 0.2);
    padding-left: 0;
    padding-bottom: 10px;
  }
}

@media (max-width: 480px) {
  .products-tabs {
    width: 85%;
  }

  .product-name {
    font-size: 20px;
  }

  .product-description {
    font-size: 14px;
  }
}