.product-card {
  border: 1px solid #e1e5e9;
  border-radius: 8px;
  overflow: hidden;
  background: white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  max-width: 350px;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.product-card-header {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: #f8f9fa;
}

.product-card-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
  position: absolute;
  top: 0;
  left: 0;
  cursor: pointer;
}

.product-card:hover .product-card-image {
  transform: scale(1.05);
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease;
  z-index: 100;
}

.gallery-arrow:hover {
  background: rgba(0, 0, 0, 0.7);
}

.gallery-arrow-left {
  left: 10px;
}

.gallery-arrow-right {
  right: 10px;
}

.product-card-body {
  padding: 1rem;
}

.product-card-title {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #212529;
  line-height: 1.3;
}

.product-card-description {
  margin: 0 0 1rem 0;
  color: #6c757d;
  font-size: 0.9rem;
  line-height: 1.4;
}

.product-variants {
  border-top: 1px solid #e9ecef;
  padding-top: 1rem;
}

.product-variant {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.product-variant:last-child {
  margin-bottom: 0;
}

.variant-info {
  display: flex;
  flex-direction: column;
}

.variant-name {
  font-weight: 500;
  color: #212529;
  font-size: 0.9rem;
}

.variant-price {
  color: #28a745;
  font-weight: 600;
  font-size: 1rem;
}

/* modal */
.modal {
  max-width: fit-content;
  margin: auto;
}

.modal-content {
  position: relative;
  margin-top: -2rem;
}

.modal-close {
  border-radius: 50%;
  background-color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;

  position: sticky;
  width: 1rem;
  height: 1rem;
  top: 1rem;
  left: 95%;
}
::backdrop {
  background-color: #000;
  opacity: 0.75;
}
