/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #f5f5f5;
  color: #222;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
}

/* NAVBAR */
.navbar {
  background: #fff;
  padding: 15px 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 22px;
  font-weight: bold;
}

.logo span {
  color: #007bff;
}

.nav-links a {
  margin-left: 20px;
  text-decoration: none;
  color: #444;
  font-size: 16px;
}

.nav-links a:hover {
  color: #007bff;
}

/* PRODUCT SECTION */
.product-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 30px;
}

/* GALLERY */
.product-gallery {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
}

.main-image {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 15px;
}

.thumbnails {
  display: flex;
  gap: 10px;
}

.thumb {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  opacity: 0.6;
  transition: 0.3s;
}

.thumb:hover {
  opacity: 1;
}

.active-thumb {
  border: 2px solid #007bff;
  opacity: 1;
}

/* PRODUCT DETAILS */
.product-details {
  background: #fff;
  padding: 25px;
  border-radius: 10px;
}

.product-details h1 {
  margin-bottom: 10px;
}

.rating {
  color: #ff9800;
  margin-bottom: 10px;
}

.price {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
}

/* COLORS */
.colors {
  margin-bottom: 20px;
}

.color-options {
  display: flex;
  gap: 10px;
  margin-top: 5px;
}

.color-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
}

.black {
  background: #000;
}
.red {
  background: #e53935;
}
.blue {
  background: #1e88e5;
}

.active-color {
  border-color: #007bff;
}

/* QUANTITY */
.quantity {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.quantity button {
  width: 30px;
  height: 30px;
  font-size: 20px;
  cursor: pointer;
  border: none;
  background: #ddd;
  border-radius: 5px;
}

#qty {
  font-size: 18px;
  font-weight: bold;
}

/* TOTAL PRICE */
.total-price {
  font-size: 20px;
  margin-bottom: 20px;
}

/* BUTTON */
.btn-primary {
  background: #007bff;
  color: #fff;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
}

.btn-primary:hover {
  background: #0056b3;
}

/* TABS */
.tabs-section {
  margin-top: 40px;
  background: #fff;
  padding: 20px;
  border-radius: 10px;
}

.tabs {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.tab {
  padding: 10px 20px;
  border: none;
  background: #ddd;
  cursor: pointer;
  border-radius: 6px;
}

.active-tab {
  background: #007bff;
  color: #fff;
}

.content {
  display: none;
}

.active-content {
  display: block;
}

/* RELATED PRODUCTS */
.related {
  margin-top: 40px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.related-card {
  background: #fff;
  padding: 15px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.related-card img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 10px;
}

.related-card span {
  font-weight: bold;
  color: #007bff;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .product-section {
    grid-template-columns: 1fr;
  }

  .tabs {
    flex-direction: column;
  }
}
