.product-reveal-card {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: box-shadow 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.product-reveal-card:hover { box-shadow: 0 8px 25px rgba(0,0,0,0.15); }

.reveal-compact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
}
.compact-image {
  width: 15rem;
  height: 9rem;
  object-fit: cover;
  border-radius: 12px;
}
.compact-image.placeholder {
  display: flex; align-items: center; justify-content: center;
  color: #999; font-size: 0.9rem;
}
.compact-info{
  display: flex;
  flex-direction: column;
}
.compact-info .product-name   { margin: 0; font-size: 1.1rem; font-weight: 600; }
.compact-info .product-category { margin: 1rem 0; color: #666; font-size: 0.9rem; }
.compact-info .product-price  { margin: 0; font-size: 1.25rem; font-weight: 700; color: #2563eb; }

.chevron { font-size: 20px; transition: transform 0.7s; }

.reveal-expanded {
  position: absolute;
  left: 0; right: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: max-height 0.5s cubic-bezier(0.4,0,0.2,1), opacity 0.3s ease;
  padding: 0 16px;
  visibility: hidden;
}

.is-open .reveal-expanded {
  position: relative;
  max-height: 1600px;
  opacity: 1;
  pointer-events: auto;
  padding: 24px 16px 32px;
  visibility: visible;
}
.is-open .chevron { transform: rotate(180deg); }

.close-btn {
  position: absolute; top: 12px; right: 12px;
  width: 36px; height: 36px; background: rgba(0,0,0,0.6); color: white;
  border: none; border-radius: 50%; font-size: 20px; cursor: pointer; z-index: 10;
}
/* safe to delete files above this comment */
/* ==== PRODUCT MODAL ==== */
.product-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
}

.product-modal-backdrop.open {
  display: flex;
}

.product-modal-content {
  position: relative;
  background: white;
  border-radius: 16px;
  width: 95%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
  animation: modalPop 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 640px) {
  .product-modal-content {
    width: 80%;
  }
}

@keyframes modalPop {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.product-modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-modal-close:hover {
  background: rgba(0, 0, 0, 0.8);
}

/* Prevent body scroll when modal open */
body.modal-open {
  overflow: hidden;
}

/* Optional: rotate chevron when modal is open */
.chevron .base-icon {
  transition: transform 0.5s ease;
}
.chevron.rotated .base-icon {
  transform: rotate(180deg);
}
