/* Store Page Styling */

.store-intro {
  margin-bottom: 2rem;
  text-align: center;
}

/* Product Grid Layout */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.product-card {
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--card-background, white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-image-wrapper {
  position: relative;
  width: 100%;
  padding-top: 75%; /* 4:3 Aspect Ratio */
  overflow: hidden;
}

.product-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.product-image-wrapper:hover .product-overlay {
  opacity: 1;
}

.product-image-wrapper:hover .product-image {
  transform: scale(1.1);
}

.inquiry-button {
  padding: 10px 20px;
  background-color: var(--link-col);
  color: white;
  border: none;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.inquiry-button:hover {
  background-color: var(--hover-col);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.product-name {
  margin: 1rem 0 0.5rem;
  padding: 0 1rem;
}

.product-price {
  font-weight: 600;
  color: var(--link-col);
  margin: 0.5rem 0;
  padding: 0 1rem;
}

.product-description {
  font-size: 0.9rem;
  margin-bottom: 1rem;
  padding: 0 1rem;
  line-height: 1.4;
}

.product-pickup {
  font-size: 0.85rem;
  color: var(--text-col);
  margin: 0.3rem 0 0.7rem;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  gap: 5px;
}

.product-pickup i {
  color: var(--link-col);
}

/* Interest button styles */
.interest-btn {
  background-color: var(--link-col);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 1rem;
  transition: background-color 0.2s;
}

.interest-btn:hover {
  background-color: var(--hover-col);
}

.interest-btn.large {
  padding: 12px 24px;
  font-size: 1.1rem;
}

/* Modal styles */
.product-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.7);
  z-index: 1000;
  overflow-y: auto;
}

.modal-content {
  position: relative;
  background-color:   #2A2A2A;
  margin: 5% auto;
  padding: 20px;
  width: 90%;
  max-width: 1000px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.close-modal {
  position: absolute;
  right: 20px;
  top: 10px;
  font-size: 28px;
  cursor: pointer;
  color: var(--text-col);
}

.modal-product-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 1rem;
}

.modal-image img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.modal-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal-price {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--link-col);
}

.modal-additional-details {
  margin-top: 1rem;
  padding: 1rem;
  background-color: var(--card-background);
  border-radius: 4px;
}

/* Dark mode adjustments */
[data-theme="dark"] .product-card {
  background-color: rgba(255,255,255,0.05);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

[data-theme="dark"] .product-card:hover {
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.5rem;
  }
  
  .modal-product-details {
    grid-template-columns: 1fr;
  }
  
  .modal-content {
    margin: 0;
    width: 100%;
    min-height: 100vh;
    border-radius: 0;
  }
}