/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.store-container {
    max-width: 1200px;
    text-align: center;
}

/* Product Grid Layout */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

/* Product Card Styling */
.product-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    font-family: 'Source Sans Pro', sans-serif;
}

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

/* Product Image */
.product-card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* Titles and Text */
.product-card h3 {
    font-size: 1.25rem;
    color: #222;
    margin-bottom: 0.5rem;
}

.product-card p {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

/* Price Styling */
.product-price {
    color: #28ac44;          /* primary green */
    font-weight: 600;
    font-size: 1rem;
}

/* Notes (like: "View partner site for price") */
.product-note {
    color: #888;
    font-style: italic;
    font-size: 0.9rem;
}

/* Button Styles */
.product-card a {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    border-radius: 24px;
    font-size: 0.95rem;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

/* Affiliate button (secondary style) */
.product-card a[href*="http"] { 
    background-color: #6c757d;
    color: #fff;
}

.product-card a[href*="http"]:hover {
    background-color: #5a6268;
}

/* Native store button (primary style) */
.product-card a:not([href*="http"]) {
    background-color: #28ac44;
    color: #fff;
}

.product-card a:not([href*="http"]):hover {
    background-color: #218838;
}

.ad-placeholder {
  width: 100%;
  min-height: 100px; /* Adjust for banner/in-feed */
  box-sizing: border-box;
}
.ad-placeholder[data-ad-placeholder="banner"] {
  grid-column: 1 / -1; /* Full-width for banners */
  margin: 20px 0;
  text-align: center;
}
.ad-placeholder[data-ad-placeholder="in-feed"] {
  grid-column: span 1; /* Match product-card width */
  min-height: 200px; /* Match card height or adjust */
  background: #f9f9f9; /* Optional: visual cue for testing */
}
.ad-section {
  grid-column: 1 / -1; /* Full-width for non-Google ads */
  text-align: center;
  margin: 20px 0;
  background: #f0f0f0; /* Style for [ Advertisement Space ] */
}
.adsbygoogle {
  max-width: 100%; /* Ensure ads don’t overflow */
}

/* Responsive behavior */
@media (max-width: 768px) {
    .store-container {
        max-width: 100%;
        padding: 1rem;
    }
    
    .product-card {
        padding: 0.75rem;
    }
}