.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

.breadcrumb {
  margin-bottom: 24px;
  color: #aaa;
}

.breadcrumb a {
  color: #aaa;
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--color-text);
}

.breadcrumb .home-link {
  font-weight: 500;
  color: #ff69b4;
}

.breadcrumb .home-link:hover {
  text-decoration: underline;
}

.error-container {
  text-align: center;
  padding: 48px 0;
}

.error-container h2 {
  margin-bottom: 16px;
  color: #ff6b6b;
}

.error-container .btn {
  margin-top: 24px;
}

.product-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 48px;
}

@media (min-width: 768px) {
  .product-detail {
    grid-template-columns: 1fr 1fr;
  }
}

.product-image-container {
  background-color: var(--color-card-bg);
  border-radius: 8px;
  overflow: hidden;
}

.product-image {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.product-title {
  font-size: 28px;
  margin-bottom: 16px;
}

.product-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  color: #aaa;
}

.product-price {
  font-size: 32px;
  font-weight: bold;
  margin: 24px 0;
  color: #ff69b4;
}

.product-attributes {
  margin: 24px 0;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  border: 1px solid var(--color-border, #eee);
}

.product-attributes .attributes-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--color-text);
}

.product-attributes .attributes-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 768px) {
  .product-attributes .attributes-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.product-attributes .attribute-item {
  display: flex;
  align-items: center;
  padding: 8px 0;
}

.product-attributes .attribute-label {
  font-weight: 600;
  color: #888;
  min-width: 100px;
  margin-right: 12px;
}

.product-attributes .attribute-value {
  color: var(--color-text);
  font-weight: 500;
}

.product-description {
  margin: 24px 0;
}

.product-description h3 {
  margin-bottom: 8px;
}

.product-description p {
  line-height: 1.6;
}

.product-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 24px;
}

.buy-button, .discord-link {
  text-align: center;
  text-decoration: none;
}

.related-products {
  max-width: 100%;
  overflow-x: hidden;
  margin: 40px 0;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  max-width: 100%;
}

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

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

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

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
}

.loading {
  text-align: center;
  grid-column: 1 / -1;
  padding: 24px;
  color: #aaa;
}

.related-title {
  margin-bottom: 20px;
  font-size: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border, #eee);
  font-weight: 600;
}

.related-title a {
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.2s;
}

.related-title a:hover {
  color: #ff69b4;
}

.product-card {
  background-color: var(--color-card-bg);
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  max-width: 100%;
  font-size: 12px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  height: 100%;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.product-card .product-link {
  display: block;
  text-decoration: none;
  color: inherit;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-card .product-image {
  width: 100%;
  height: 200px;
  object-fit: contain;
}

.product-card a {
  display: block;
  text-decoration: none;
}

.product-card a:hover img {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

.product-card .product-info {
  padding: 15px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-card .product-title {
  font-size: 14px;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 42px;
  line-height: 1.5;
}

.product-card .title-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.product-card .title-link:hover {
  color: #ff69b4;
}

.product-card .product-price {
  font-size: 16px;
  font-weight: bold;
  color: #ff69b4;
  margin-bottom: 14px;
}

.view-details {
  text-align: center;
  border-radius: 25px;
  background: linear-gradient(to right, #e55d87, #5fc3e4);
  color: white;
  border: none;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: block;
  width: calc(100% - 16px);
  margin: 0 auto 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.view-details:hover {
  background: linear-gradient(to right, #d83a7c, #4db1d8);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 24px;
  color: #aaa;
}
