/* Product page styles */

/* Header Actions */
.header-actions {
  display: flex;
  gap: 10px;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background-color: #f3f4f6;
  color: #333;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.back-button:hover {
  background-color: #e5e7eb;
}

.test-font-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background-color: #2563eb;
  color: white;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.test-font-button:hover {
  background-color: #1d4ed8;
}

/* Navigation Sidebar */
.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.nav-link {
  display: block;
  padding: 10px 15px;
  color: #333;
  text-decoration: none;
  font-weight: 500;
  border-radius: 1rem;
  transition: background-color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  background-color: #f3f4f6;
}

.nav-link.active {
  font-weight: 700;
}

/* Product Container */
.product-container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: auto;
  padding: 5rem;
}

/* Carousel */
.carousel-container {
  position: relative;
  width: 100%;
  height: 60%;
  background-color: #c9b6f2;
  border-radius: 10px 10px 0 0;
  overflow: hidden;
}

.carousel-item {
  width: 100%;
  height: 100%;
  display: none;
  justify-content: center;
  align-items: center;
}

.carousel-item.active {
  display: flex;
}

.carousel-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #333;
  font-size: 24px;
  cursor: pointer;
  z-index: 5;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-prev {
  left: 20px;
}

.carousel-next {
  right: 20px;
}

.carousel-dots {
  position: absolute;
  bottom: 15px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.carousel-dot.active {
  background-color: #6938e8;
}

/* Product Info Section */
.product-info {
  padding: 30px;
  display: flex;
  background-color: #f0f0f0;
  height: 40%;
  border-radius: 0 0 10px 10px;
}

.product-details {
  flex: 1;
  padding-right: 20px;
  max-height: 100%;
}

.product-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
  font-family: 'Roboto Mono', monospace;
}

.product-description {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 16px;
  max-height: calc(100% - 50px);
  overflow-y: auto;
}

.product-actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
  justify-content: center;
  min-width: 180px;
}

.product-button {
  display: inline-block;
  padding: 12px 20px;
  text-align: center;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.test-button {
  background-color: #333;
  color: white;
}

.test-button:hover {
  background-color: #555;
}

.buy-button {
  background-color: #4257f5;
  color: white;
}

.buy-button:hover {
  background-color: #3246e4;
}

@media (max-width: 768px) {
  .product-info {
    flex-direction: column;
  }

  .product-details {
    margin-bottom: 20px;
    padding-right: 0;
  }

  .product-actions {
    flex-direction: row;
    justify-content: space-between;
  }
}