:root {
  --primary: #ffd700;
  --secondary: #000;
  --accent: #ff9500;
  --text: #333;
  --light-gray: #f5f5f5;
  --gray: #ddd;
  --dark-gray: #777;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  color: var(--text);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.product-section {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 60px;
}

.product-gallery {
  flex: 1;
  min-width: 300px;
}

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

.main-image img {
  width: 100%;
  height: 580px;
  object-fit: cover;
  border-radius: 8px;
}

.thumbnail-container {
  display: flex;
  gap: 10px;
}

.thumbnail {
  width: 80px;
  height: 80px;
  border: 2px solid var(--gray);
  border-radius: 4px;
  cursor: pointer;
  overflow: hidden;
}

.thumbnail.active {
  border-color: var(--accent);
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.product-details {
  flex: 1;
  min-width: 300px;
}

.product-title {
  font-size: 28px;
  margin-bottom: 10px;
  color: var(--secondary);
}

.product-price {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--accent);
}

.product-note {
  color: var(--dark-gray);
  margin-bottom: 20px;
  font-size: 14px;
}

.size-guide-btn {
  background: none;
  border: none;
  color: var(--accent);
  text-decoration: underline;
  cursor: pointer;
  margin-bottom: 25px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.size-guide-btn:hover {
  color: var(--secondary);
}

.size-selector,
.quantity-selector {
  margin-bottom: 25px;
}

.size-selector h3,
.quantity-selector h3 {
  margin-bottom: 10px;
  font-size: 16px;
}

.size-options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.size-option {
  width: 50px;
  height: 50px;
  border: 1px solid var(--gray);
  background: white;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}

.size-option:hover {
  border-color: var(--accent);
}

.size-option.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.quantity-control {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quantity-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--gray);
  background: white;
  font-size: 18px;
  cursor: pointer;
  border-radius: 4px;
}

.quantity-btn:hover {
  background: var(--light-gray);
}

.quantity-input {
  width: 60px;
  height: 40px;
  text-align: center;
  border: 1px solid var(--gray);
  border-radius: 5px;
  font-size: 1.1rem;
}

.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 30px;
}

.btn {
  padding: 15px;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.3s ease;
}

.add-to-cart {
  background: var(--primary);
  color: var(--secondary);
}

.add-to-cart:hover {
  background: #ffc000;
}

.buy-now {
  background: var(--secondary);
  color: white;
}

.buy-now:hover {
  background: #333;
}
.related-products {
  margin-top: 60px;
}

.related-products h2 {
  margin-bottom: 20px;
  font-size: 24px;
}

.product-scroller {
  display: flex;
  gap: 1rem;
  overflow-x: scroll;
  padding-bottom: 20px;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) var(--light-gray);
}

.product-scroller::-webkit-scrollbar {
  height: 8px;
}

.product-scroller::-webkit-scrollbar-track {
  background: var(--light-gray);
  border-radius: 10px;
}

.product-scroller::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 10px;
}

.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 200px;
  text-align: center;
  cursor: pointer;
}

.product-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
}

.product-card h3 {
  font-size: 16px;
  margin-bottom: 5px;
  flex-grow: 1;
}

.product-card p {
  font-weight: bold;
  color: var(--accent);
  margin-top: auto;
}

.modal {
  margin-top: 4rem;
  display: none;
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  overflow-y: auto;
}

.modal-content {
  background-color: white;
  margin: 5% auto;
  padding: 30px;
  border-radius: 8px;
  width: 90%;
  max-width: 800px;
  position: relative;
}

.close {
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: var(--accent);
}

.size-chart {
  overflow-x: auto;
  margin-top: 20px;
}

.size-chart table {
  width: 100%;
  border-collapse: collapse;
}

.size-chart th,
.size-chart td {
  padding: 12px;
  text-align: center;
  border: 1px solid var(--gray);
}

.size-chart th {
  background: var(--light-gray);
  font-weight: bold;
}

.size-chart tr:nth-child(even) {
  background: var(--light-gray);
}

.navbar {
  background-color: var(--light-gray);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.navbar-brand a {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ff9500;
  text-decoration: none;
}

.navbar-menu {
  display: flex;
  align-items: center;
}

.navbar-nav {
  display: flex;
  list-style: none;
  margin-right: 2rem;
}

.nav-item {
  margin-left: 1.5rem;
}

.nav-link {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
  padding: 0.5rem 0;
  position: relative;
}

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

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #ff9500;
}

.navbar-icons {
  display: flex;
  align-items: center;
}

.icon-btn {
  background: none;
  border: none;
  color: #333;
  font-size: 1.1rem;
  margin-left: 1.2rem;
  cursor: pointer;
  position: relative;
  transition: color 0.3s;
}

.icon-btn:hover {
  color: #ff9500;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: #ff9500;
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.navbar-toggler {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #333;
  cursor: pointer;
}

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

  .product-title {
    font-size: 24px;
  }

  .product-price {
    font-size: 20px;
  }

  .action-buttons {
    margin-top: 20px;
  }

  .btn {
    padding: 12px;
  }

  .modal-content {
    margin: 10% auto;
    padding: 20px;
  }

  .navbar-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 80%;
    height: calc(100vh - 70px);
    background-color: white;
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    transition: left 0.3s;
  }

  .navbar-menu.active {
    left: 0;
  }

  .navbar-nav {
    flex-direction: column;
    width: 100%;
    margin-right: 0;
    margin-bottom: 2rem;
  }

  .nav-item {
    margin: 0.5rem 0;
  }

  .navbar-icons {
    width: 100%;
    justify-content: space-around;
    margin-top: 1rem;
  }

  .icon-btn {
    margin: 0;
  }

  .navbar-toggler {
    display: block;
  }

  .search-form {
    max-width: 100%;
  }
}
