/* ========== SHOP GRID & ITEMS ========== */

/* Container for product grid */
.shopgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

/* Individual product card */
.product-item {
  background: #ffffff;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Thumbnail images (if used) */
.thumbnail-image {
  width: 100%;
  max-width: 100px;
  max-height: 100px;
  object-fit: cover;
}

/* Main product image */
.product-image img {
  width: 100%;
  max-width: 200px;
  object-fit: cover;
}

/* Title of the product */
.product-title {
  font-size: 1.2rem;
  margin: 0.75rem 0 0.5rem;
  color: #333;
}

/* Short description under title */
.product-description {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 0.5rem;
}

/* Price label */
.product-price {
  font-size: 1rem;
  font-weight: 600;
  color: #cf5c36;
  margin-bottom: 0.75rem;
}


/* ========== BUTTONS LAYOUT & STYLING ========== */

/* Wrapper for both buttons (Shopify link + Buy Button) */
.button-container {
  display: flex;
  flex-direction: column;  /* Stack vertically */
  gap: 0.5rem;
  margin-top: 1rem;
  align-items: stretch;
}

/* “Order on Shopify” link styled as button */
.button-container a.button,
.product-button {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #cf5c36;
  color: #ffffff;
  font-size: 0.85rem;
  border: none;
  border-radius: 6px;
  padding: 0.65rem 1rem;
  text-decoration: none;
  width: 100%;
  box-sizing: border-box;
  transition: background-color 0.3s ease;
}

/* Hover effect for custom button */
.button-container a.button:hover,
.product-button:hover {
  background-color: #b24f2e;
}

/* Container for Shopify Buy Button iframe or placeholder */
.buy-button-container {
  width: 100%;
  min-height: 50px;  /* Reserve vertical space */
  box-sizing: border-box;
}

/* Ensure the SDK’s inner button fills its container */
.button-container .buy-button-container > div,
.shopify-buy__btn {
  width: 100% !important;
  box-sizing: border-box !important;
}

/* Override default Shopify Buy Button styles */
.shopify-buy__btn {
  background-color: #cf5c36 !important;
  color: #ffffff !important;
  border-radius: 6px !important;
  font-size: 0.85rem !important;
  padding: 0.65rem 1rem !important;
  border: none !important;
  transition: background-color 0.3s ease !important;
}

/* Hover effect for Shopify Buy Button */
.shopify-buy__btn:hover {
  background-color: #a74226 !important;
}

/* Optional placeholder if the Buy Button fails to load */
.buy-button-placeholder {
  background-color: #f0f0f0;
  color: #999;
  text-align: center;
  padding: 0.7rem;
  border-radius: 6px;
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

/* ========== RESPONSIVE TWEAKS ========== */
/* 
@media (min-width: 480px) {
  .button-container {
    flex-direction: row;     // Uncomment to switch to inline buttons on larger screens
    justify-content: center;
  }
}
*/
