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

body {
  font-family: Arial, sans-serif;
  background: #f8f8f8;
  color: #333;
}


.navbar {
  background: #fff;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  flex-wrap: wrap;
  text-align: center;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: green;
}

.cart {
  color: green;
  font-weight: bold;
  cursor: pointer;
}


.container {
  padding: 2rem;
}

.product-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  flex-grow: 1;
}

.product-card {
  background: #fff;
  border: 1px solid #ddd;
  width: 200px;
  padding: 15px;
  text-align: center;
  position: relative;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: 0.3s;
  border-radius: 8px;
}

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

.product-card img {
  width: 100%;
  height: 180px;
  object-fit: contain;
}

.product-card h4 {
  margin-top: 10px;
  font-size: 16px;
}

.product-card .price {
  font-weight: bold;
  margin: 5px 0;
}

.btn {
  display: inline-block;
  padding: 8px 12px;
  background: green;
  color: white;
  text-decoration: none;
  border: none;
  border-radius: 4px;
  margin-top: 10px;
  cursor: pointer;
}

.btn:hover {
  background: darkgreen;
  color: #e6c63b
}

.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: red;
  color: white;
  padding: 4px 8px;
  font-size: 12px;
  border-radius: 4px;
}
#product-detail {
  width: 100%;
}

.product-layout {
  display: flex;
  gap: 40px;
  padding: 40px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.product-image {
  flex: 1 1 300px;
  max-width: 300px;
}

.product-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}

.product-info {
  flex: 2 1 400px;
  max-width: 600px;
}

.product-info h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

.product-info p {
  margin: 10px 0;
}

.product-info label {
  display: inline-block;
  margin: 5px 15px 5px 0;
}

.product-info .price {
  margin-top: 15px;
  font-size: 18px;
}

.product-info .price span {
  display: inline-block;
  margin-right: 10px;
}

.product-info .qty-controls {
  margin: 15px 0;
}

.product-info input[type='number'] {
  width: 50px;
  text-align: center;
  margin: 0 10px;
}

.product-info .btn {
  margin-top: 20px;
  width: 100%;
  font-size: 16px;
  padding: 12px;
}

.product-related {
  flex: 1 1 200px;
  max-width: 250px;
}

.product-related h4 {
  margin-bottom: 10px;
}

.product-related ul {
  list-style: none;
  padding: 0;
}

.product-related li {
  background: #fff;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ddd;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.slider-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}

.product-slider {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 16px;
  padding: 10px;
  scrollbar-width: none;
}

.product-slider::-webkit-scrollbar {
  display: none;
}

.product-card {
  flex: 0 0 calc(25% - 16px);
  box-sizing: border-box;
}

.slider-btn {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  font-size: 24px;
  padding: 10px;
  cursor: pointer;
  z-index: 1;
}

.slider-btn.prev {
  left: 0;
}

.slider-btn.next {
  right: 0;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.modal-content {
  background: white;
  padding: 20px;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  position: relative;
}

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

.qty-controls button {
  padding: 5px 10px;
}

.qty-controls input {
  width: 50px;
  text-align: center;
}

.pagination-btn {
  background-color: #f0f0f0;
  border: 1px solid #aaa;
  border-radius: 50%;
  padding: 6px 12px;
  margin: 0 5px 20px 5px;
  cursor: pointer;
  color: #333;
  transition: background-color 0.2s ease;
}

.pagination-btn:hover:not(.active) {
  background-color: #ddd;
}

.pagination-btn.active {
  background-color: #333;
  color: white;
  font-weight: bold;
  cursor: default;
}

.responsive-nav {
  display: block;
}

.responsive-nav-mobile {
  display: none;
}

@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 10px;
  }

  .product-layout {
    flex-direction: column;
    padding: 20px;
  }

  .product-image,
  .product-info,
  .product-related {
    max-width: 100%;
    align-items: center;
    flex: 1 1 10%;
  }
  .product-related{
    margin-left: auto;
    margin-right: auto;
  }
  

  .product-related li {
    flex-direction: column;
    align-items: flex-start;
  }

  .product-info .btn {
    font-size: 14px;
    padding: 10px;
  }

  .product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 10px;
  }

  .product-card {
    flex: 1 1 100%;
    width: 100%;
  }

  .product-slider {
    flex-wrap: wrap;
    overflow-x: hidden;
    justify-content: center;
  }

  .modal-content {
    width: 95%;
    padding: 15px;
  }

  .pagination-btn {
    margin: 5px 4px 10px;
    padding: 4px 8px;
  }

  .responsive-nav {
    display: none;
  }

  .responsive-nav-mobile {
    display:block;
  }
}
/* You already have inline styles, but this improves consistency */
button[title="Remove Item"] {
  min-width: 30px;
  text-align: center;
}
