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

body {
  line-height: 1.6;
  color: #333;
  background-color: #f9f9f9;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}
.header {
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  font-size: 24px;
  font-weight: 700;
  color: #222;
}

.nav a {
  margin-left: 20px;
  text-decoration: none;
  color: #555;
  font-weight: 500;
  transition: color 0.3s;
}

.nav a:hover {
  color: #000;
}

.cart-icon {
  font-size: 20px;
  cursor: pointer;
}
.product-page {
  padding: 30px 0;
}

.product-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 50px;
}

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

.product-details {
  flex: 1;
  min-width: 300px;
}
.main-image {
  width: 100%;
  height: 500px;
  overflow: hidden;
  margin-bottom: 15px;
  border-radius: 8px;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.main-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s;
  cursor: zoom-in;
}

.main-image img:hover {
  transform: scale(1.05);
}

.thumbnails {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.thumbnail {
  width: 80px;
  height: 80px;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s;
  flex-shrink: 0;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
}

.thumbnail img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.thumbnail.active {
  border-color: #000;
}

/* Product Details Styles */
.product-title {
  font-size: 28px;
  margin-bottom: 10px;
  color: #222;
}

.product-price {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #000;
}

.product-rating {
  color: #ffc107;
  margin-bottom: 20px;
  font-size: 18px;
}

.variant-section {
  margin-bottom: 25px;
}

.variant-section h3 {
  font-size: 16px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.color-swatches {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.color-swatch {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s;
}

.color-swatch.active {
  border-color: #000;
  transform: scale(1.1);
}

.compare-btn {
  background: none;
  border: none;
  color: #0066cc;
  text-decoration: underline;
  cursor: pointer;
  font-size: 14px;
  padding: 0;
  margin-top: 5px;
}

.size-chart-btn {
  background: none;
  border: none;
  color: #0066cc;
  text-decoration: underline;
  cursor: pointer;
  font-size: 14px;
  margin-left: 10px;
  padding: 0;
}

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

.size-option {
  padding: 8px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
}

.size-option.active {
  background-color: #000;
  color: #fff;
  border-color: #000;
}

/* Add to Cart Styles */
.add-to-cart {
  margin: 30px 0;
  display: flex;
  gap: 15px;
  align-items: center;
}

.quantity-selector {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.quantity-btn {
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quantity-input {
  width: 50px;
  height: 40px;
  text-align: center;
  border: none;
  border-left: 1px solid #ddd;
  border-right: 1px solid #ddd;
  -moz-appearance: textfield;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.add-to-cart-btn {
  flex: 1;
  height: 40px;
  background-color: #000;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
}

.add-to-cart-btn:hover {
  background-color: #333;
}

.add-to-cart-btn.small {
  height: auto;
  padding: 8px 15px;
  font-size: 14px;
}
.product-tabs {
  margin-top: 30px;
}

.tab-buttons {
  display: flex;
  border-bottom: 1px solid #ddd;
}

.tab-btn {
  padding: 10px 20px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font-weight: 600;
  color: #555;
  transition: all 0.3s;
}

.tab-btn.active {
  color: #000;
  border-bottom-color: #000;
}

.tab-content {
  padding: 20px 0;
  display: none;
}

.tab-content.active {
  display: block;
}

/* Pair Well With Section */
.pair-well {
  margin: 50px 0;
}

.pair-well h2 {
  font-size: 22px;
  margin-bottom: 20px;
  text-align: center;
}

.pair-products {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 20px 0;
}

.pair-product {
  min-width: 200px;
  background-color: #fff;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.pair-product img {
  width: 100%;
  height: 150px;
  object-fit: contain;
  margin-bottom: 10px;
}

.pair-product h3 {
  font-size: 16px;
  margin-bottom: 10px;
}

.pair-product .price {
  font-weight: 700;
  margin-bottom: 10px;
}
.product-bundle {
  margin: 50px 0;
  background-color: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.product-bundle h2 {
  font-size: 22px;
  margin-bottom: 20px;
  text-align: center;
}

.bundle-items {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}

.bundle-item {
  display: flex;
  align-items: center;
  gap: 15px;
}

.bundle-item img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.plus-sign {
  font-size: 24px;
  font-weight: 700;
  color: #555;
}

.bundle-total {
  text-align: center;
  margin-top: 20px;
}

.total-price {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 15px;
}

.savings {
  color: #28a745;
  font-size: 16px;
}

.add-bundle-btn {
  padding: 12px 30px;
  background-color: #000;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
}

.add-bundle-btn:hover {
  background-color: #333;
}
.related-products {
  margin: 50px 0;
}

.related-products h2 {
  font-size: 22px;
  margin-bottom: 20px;
  text-align: center;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.product-card {
  background-color: #fff;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: relative;
  transition: transform 0.3s;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  margin-bottom: 10px;
}

.product-card h3 {
  font-size: 16px;
  margin-bottom: 10px;
}

.product-card .price {
  font-weight: 700;
}

.badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #000;
  color: #fff;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: #fff;
  padding: 30px;
  border-radius: 8px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
}

.size-chart-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.size-chart-table th,
.size-chart-table td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: center;
}

.size-chart-table th {
  background-color: #f5f5f5;
  font-weight: 600;
}

.compare-colors {
  display: flex;
  justify-content: space-around;
  margin: 20px 0;
}

.compare-color {
  text-align: center;
}

.compare-swatch {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin: 0 auto 10px;
  border: 2px solid #ddd;
}

.select-colors-btn {
  display: block;
  margin: 20px auto 0;
  padding: 10px 20px;
  background-color: #000;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.footer {
  background-color: #222;
  color: #fff;
  padding: 50px 0 20px;
}

.footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}

.footer-section {
  flex: 1;
  min-width: 200px;
}

.footer-section h3 {
  font-size: 18px;
  margin-bottom: 20px;
  color: #fff;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul li a {
  color: #bbb;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section ul li a:hover {
  color: #fff;
}

.newsletter-form {
  display: flex;
  margin-top: 15px;
}

.newsletter-form input {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 4px 0 0 4px;
}

.newsletter-form button {
  padding: 10px 15px;
  background-color: #0066cc;
  color: #fff;
  border: none;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
}

.copyright {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #444;
  color: #bbb;
  font-size: 14px;
}

@media (max-width: 768px) {
  .header .container {
    flex-direction: column;
    gap: 15px;
  }

  .nav {
    display: flex;
    gap: 15px;
  }

  .nav a {
    margin-left: 0;
  }

  .main-image {
    height: 400px;
  }

  .add-to-cart {
    flex-direction: column;
    align-items: flex-start;
  }

  .add-to-cart-btn {
    width: 100%;
    padding: 0.8rem;
  }
}

@media (max-width: 480px) {
  .main-image {
    height: 300px;
  }

  .tab-buttons {
    flex-direction: column;
  }

  .tab-btn {
    text-align: left;
    border-bottom: none;
    border-left: 2px solid transparent;
  }

  .tab-btn.active {
    border-bottom: none;
    border-left-color: #000;
  }
}
