/*
 * Single Product Page Styles
 * Mobile-first, semantic structure
 */

.product-single {
  background-color: #ffffff;
}

.product-single-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 76.25rem; /* 1220px */
  margin: 0 auto;
}

/* Product Media */
.product-single-media {
  position: relative;
  width: 100%;
}

.product-single-image {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 0.5rem;
  background-color: #f6f8fb;
  margin: 0;
}

.product-single-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Placeholder Logo */
.product-single-placeholder {
  width: 100%;
  height: 25rem; /* Default height for placeholder */
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f6f8fb;
}

.product-single-placeholder-logo {
  width: 60%; /* Adjust logo size within placeholder */
  height: auto;
  max-width: 25rem;
  opacity: 0.8;
}

@media (max-width: 767px) {
  .product-single-placeholder {
    height: 15rem;
  }
}

/* Product Content */
.product-single-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.product-single-header {
  padding-bottom: 1.5rem;
  border-bottom: 0.0625rem solid #f6f8fb;
}

.product-single-code {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.9375rem; /* 15px */
  line-height: 1.2;
  color: #24516d;
  letter-spacing: -0.0088rem;
  margin: 0 0 1rem;
}

.product-single-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 2rem; /* 32px */
  line-height: 1.2;
  color: #0c0c0c;
  letter-spacing: -0.0422rem;
  margin: 0 0 1.5rem;
}

.product-single-meta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.product-meta-item {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.4;
  color: #737b7d;
}

.product-meta-item strong {
  color: #0c0c0c;
  font-weight: 600;
}

/* Product Description */
.product-single-description {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 1.0625rem; /* 17px */
  line-height: 1.6;
  color: #24516d;
}

.product-single-description p {
  margin-bottom: 1rem;
}

.product-single-description p:last-child {
  margin-bottom: 0;
}

/* Additional Codes */
.product-single-codes {
  background-color: #f6f8fb;
  padding: 1.5rem;
  border-radius: 0.5rem;
}

.product-single-codes h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  color: #0c0c0c;
  margin: 0 0 1rem;
}

.product-single-codes p {
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  color: #737b7d;
  margin: 0.5rem 0;
}

.product-single-codes p strong {
  color: #0c0c0c;
  font-weight: 600;
}

/* Actions */
.product-single-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 0.375rem;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-secondary {
  background-color: #24516d;
  color: #ffffff;
}

.btn-secondary:hover {
  background-color: #1a3d52;
  transform: translateY(-2px);
  box-shadow: 0 0.25rem 0.75rem rgba(36, 81, 109, 0.2);
}

/* Related Products */
.related-products {
  background-color: #D9E1E7;
}

.related-products .section-title {
  text-align: center;
  margin-bottom: 3rem;
}

/* Products Grid (for related products) */
.products-archive-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 0;
}

/* Responsive Tablet */
@media (min-width: 768px) {
  .product-single-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
  
  .product-single-title {
    font-size: 2.5rem; /* 40px */
  }
  
  .product-single-meta {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.5rem;
  }
  
  .products-archive-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

/* Responsive Desktop */
@media (min-width: 992px) {
  .product-single-grid {
    gap: 4rem;
  }
  
  .product-single-title {
    font-size: 3rem; /* 48px */
  }
  
  .product-single-description {
    font-size: 1.125rem; /* 18px */
  }
  
  .products-archive-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}




