:root {
  --blue: #074799;
  --teal: #009990;
  --bg: #f9f9f9;
  --radius: 10px;
  --shadow: 0 4px 10px rgba(0,0,0,0.08);
  --star: #f39c12;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: #fff;
  color: #333;
}

main.modern-product {
  max-width: 1100px;
  margin: auto;
  padding: 2rem;
}

.product-main {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.image-section {
  flex: 1 1 20%;
}

.image-section img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.thumbs {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.thumbs img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
}

.thumbs img:hover {
  border-color: var(--blue);
}

.info-section {
  flex: 1 1 50%;
}

.short-desc {
  font-size: 1rem;
  margin: 1rem 0;
}

.rating .star, .stars .star {
  color: #ccc;
  font-size: 1.2em;
}

.rating .star.filled, .stars .star.filled {
  color: var(--star);
}

.full-description {
  margin: 3rem 0;
  line-height: 1.6;
}

.reviews-modern {
  background: var(--bg);
  padding: 2rem;
  border-radius: var(--radius);
}

.reviews-modern form {
  margin-bottom: 2rem;
}

.reviews-modern input, .reviews-modern textarea, .reviews-modern select {
  width: 100%;
  padding: 10px;
  margin: 8px 0;
  border: 1px solid #ccc;
  border-radius: var(--radius);
}

.reviews-modern button {
  background: var(--teal);
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: var(--radius);
  cursor: pointer;
}

.review-item {
  background: white;
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.review-item.hidden {
  display: none;
}

.square-image {
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.square-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.square-image img:hover {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}




.suggested-products {
  margin-top: 4rem;
  padding: 2rem 1rem;
  background: #f9f9f9;
}
.suggested-products h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.8rem;
  color: #001a6e;
}
.suggested-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.suggest-card {
  background: white;
  border: 1px solid #ddd;
  padding: 1rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}
.suggest-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
}
.suggest-card h3 {
  margin: 1rem 0;
  font-size: 1rem;
  color: #333;
}
.blue-btn {
  display: inline-block;
  background-color: #007bff;
  color: #fff;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.3s;
  text-decoration: none;
}
.blue-btn:hover {
  background-color: #0056b3;
}
.suggest-card:hover {
  transform: translateY(-5px);
  transition: transform 0.2s ease;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  main.modern-product {
    padding: 1rem;
  }
  
  .product-main {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .image-section {
    flex: 1 1 100%;
    max-width: 100%;
  }
  
  .square-image {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    aspect-ratio: 1/1;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }
  
  .square-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  
  .thumbs {
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
  }
  
  .thumbs img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border: 2px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
  }
  
  .info-section {
    flex: 1 1 100%;
    text-align: center;
  }
  
  .info-section h1 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    padding: 0 1rem;
  }
  
  .short-desc {
    font-size: 0.95rem;
    margin: 1rem 0;
    text-align: left;
    padding: 0 1rem;
  }
  
  .rating {
    justify-content: center;
    margin: 1rem 0;
    padding: 0 1rem;
  }
  
  .full-description {
    margin: 2rem 0;
    text-align: left;
    padding: 0 1rem;
  }
  
  .reviews-modern {
    padding: 1.5rem;
  }
  
  .suggested-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  main.modern-product {
    padding: 0.5rem;
  }
  
  .square-image {
    max-width: 320px;
  }
  
  .thumbs img {
    width: 45px;
    height: 45px;
  }
  
  .info-section h1 {
    font-size: 1.3rem;
    padding: 0 1rem;
  }
  
  .reviews-modern {
    padding: 1rem;
  }
  
  .full-description {
    padding: 0 1rem;
  }
  
  .suggested-grid {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  }
}