/* Shop page styling */
.shop-page .content-wrapper {
  padding-top: 120px;
}

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

.product {
  text-align: center;
  transition: transform 0.3s ease;
}

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

.product-image {
  margin-bottom: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.product-image img {
  width: 100%;
  display: block;
}

.product h3 {
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 5px;
}

.product p.price {
  font-size: 16px;
  margin-bottom: 15px;
}

.product button {
  padding: 8px 15px;
  background: #fff;
  color: #000;
  border: none;
  font-family: "Montserrat", sans-serif;
  font-size: 12px;
  letter-spacing: 2px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.product button:hover {
  background: #f1f1f1;
}

/* Product modal */
.product-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.product-modal.active {
  opacity: 1;
  visibility: visible;
}

.product-detail {
  width: 80%;
  max-width: 900px;
  background: #000;
  display: flex;
  position: relative;
}

.product-detail-image {
  width: 50%;
}

.product-detail-image img {
  width: 100%;
  display: block;
}

.product-detail-info {
  width: 50%;
  padding: 30px;
}

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

.product-detail-info p.price {
  font-size: 20px;
  margin-bottom: 20px;
}

.product-detail-info p.description {
  margin-bottom: 30px;
  line-height: 1.6;
}

.product-detail-info .size-selector {
  margin-bottom: 20px;
}

.product-detail-info .size-selector h4 {
  margin-bottom: 10px;
  font-weight: 400;
}

.product-detail-info .size-selector .sizes {
  display: flex;
}

.product-detail-info .size-selector .size {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.product-detail-info .size-selector .size:hover,
.product-detail-info .size-selector .size.active {
  background: #fff;
  color: #000;
}

.product-detail-info .quantity {
  margin-bottom: 20px;
}

.product-detail-info .quantity h4 {
  margin-bottom: 10px;
  font-weight: 400;
}

.product-detail-info .quantity-selector {
  display: flex;
  align-items: center;
}

.product-detail-info .quantity-selector button {
  width: 30px;
  height: 30px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}

.product-detail-info .quantity-selector span {
  width: 40px;
  text-align: center;
}

.product-detail-info .add-to-cart {
  width: 100%;
  padding: 12px 15px;
  background: #fff;
  color: #000;
  border: none;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  letter-spacing: 2px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.product-detail-info .add-to-cart:hover {
  background: #f1f1f1;
}

.close-product-modal {
  position: absolute;
  top: 10px;
  right: 10px;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

/* Responsive styles */
@media (max-width: 768px) {
  .product-detail {
    flex-direction: column;
  }

  .product-detail-image,
  .product-detail-info {
    width: 100%;
  }
}
