/* ============================================================
   PRODUCT GALLERY RENDER INSTRUCTIONS
   For blog-article.js generateGalleryMarkup()
   
   Use these exact HTML classes when rendering product galleries
   to achieve the premium magazine aesthetic.
   ============================================================ */

.gallery-grid,
.shop-grid,
.article-gallery-items,
.editorial-product-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
  margin: 56px 0;
}

/* ============================================================
   UNIVERSAL PRODUCT CARD SELECTOR FOR EDITORIALS
   Applies to any .product-card within blog content
   ============================================================ */

.blog-content .product-card,
.blog-content .article-product-item,
.gallery-item,
.shop-item,
.product-card-editorial {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  border: 1px solid rgba(215, 180, 107, 0.1);
  display: flex;
  flex-direction: column;
  height: 100%;
  max-width: 100%;
}

.blog-content .product-card:hover,
.blog-content .article-product-item:hover,
.gallery-item:hover,
.shop-item:hover,
.product-card-editorial:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.14);
  border-color: rgba(215, 180, 107, 0.3);
}

/* ============================================================
   PRODUCT IMAGE CONTAINER
   ============================================================ */

.blog-content .product-card-image,
.blog-content .product-image-wrap,
.gallery-image,
.shop-image,
.product-image-editorial,
.product-image-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f9f6f1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-content .product-card-image img,
.blog-content .product-image-wrap img,
.gallery-image img,
.shop-image img,
.product-image-editorial img,
.product-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: block;
}

.blog-content .product-card:hover .product-card-image img,
.blog-content .product-card:hover .product-image-wrap img,
.gallery-item:hover .gallery-image img,
.shop-item:hover .shop-image img,
.product-card-editorial:hover .product-image-container img {
  transform: scale(1.06);
}

/* ============================================================
   PINTEREST SAVE BADGE
   ============================================================ */

.blog-content .product-card .pin-badge,
.blog-content .article-product-item .pin-badge,
.gallery-item .pin-badge,
.shop-item .pin-badge,
.product-pin-badge {
  position: absolute;
  top: 28px;
  right: 28px;
  background: #e60023;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.8rem;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.blog-content .product-card:hover .pin-badge,
.blog-content .article-product-item:hover .pin-badge,
.gallery-item:hover .pin-badge,
.shop-item:hover .pin-badge,
.product-card-editorial:hover .product-pin-badge {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .blog-content .product-card .pin-badge,
  .blog-content .article-product-item .pin-badge {
    opacity: 1;
    transform: none;
    top: 12px;
    right: 12px;
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
  }
}

/* ============================================================
   PRODUCT BODY / METADATA
   ============================================================ */

.blog-content .product-card .card-body,
.blog-content .article-product-item .body,
.gallery-item .item-details,
.shop-item .item-details,
.product-body-editorial {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ============================================================
   PRODUCT TITLE
   ============================================================ */

.blog-content .product-card .card-title,
.blog-content .article-product-item .title,
.gallery-item .item-title,
.shop-item .item-title,
.product-title-editorial {
  font-family: "Playfair Display", "Cormorant Garamond", serif;
  font-size: 1rem;
  font-weight: 700;
  color: #2a2722;
  margin: 0;
  line-height: 1.4;
  min-height: 2.8em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============================================================
   PRODUCT DESCRIPTION
   ============================================================ */

.blog-content .product-card .card-text,
.blog-content .article-product-item .description,
.gallery-item .item-description,
.shop-item .item-description,
.product-desc-editorial {
  font-size: 0.95rem;
  color: #5a5550;
  margin: 0;
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============================================================
   PRODUCT PRICE
   ============================================================ */

.blog-content .product-card .price,
.blog-content .article-product-item .price,
.gallery-item .item-price,
.shop-item .item-price,
.product-price-editorial {
  font-weight: 700;
  font-size: 1.15rem;
  color: #b48c3d;
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.product-currency {
  font-size: 0.85rem;
  font-weight: 700;
}

.product-amount {
  font-size: 1.15rem;
  font-weight: 700;
}

/* ============================================================
   PRODUCT CTA BUTTON
   ============================================================ */

.blog-content .product-card .btn,
.blog-content .article-product-item .cta,
.gallery-item .item-cta,
.shop-item .item-cta,
.product-cta-editorial,
.product-cta-btn {
  background: linear-gradient(135deg, #d7b46b 0%, #b48c3d 100%);
  color: #1a1410;
  border: none;
  padding: 0.75rem 1.2rem;
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 8px 20px rgba(215, 180, 107, 0.25);
  width: 100%;
  text-align: center;
  margin-top: auto;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.blog-content .product-card .btn:hover,
.blog-content .article-product-item .cta:hover,
.gallery-item .item-cta:hover,
.shop-item .item-cta:hover,
.product-cta-editorial:hover,
.product-cta-btn:hover {
  background: linear-gradient(135deg, #b48c3d 0%, #a07e34 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(215, 180, 107, 0.35);
  color: #1a1410;
  text-decoration: none;
}

.blog-content .product-card .btn:active,
.product-cta-editorial:active,
.product-cta-btn:active {
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE PRODUCT CARDS
   ============================================================ */

@media (max-width: 768px) {
  .gallery-grid,
  .shop-grid,
  .article-gallery-items,
  .editorial-product-list {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 28px;
    margin: 40px 0;
  }

  .blog-content .product-card,
  .product-card-editorial {
    border-radius: 14px;
  }

  .blog-content .product-card .card-body,
  .product-body-editorial {
    padding: 18px;
  }

  .blog-content .product-card .card-title,
  .product-title-editorial {
    font-size: 0.95rem;
    min-height: 2.4em;
  }

  .blog-content .product-card .card-text,
  .product-desc-editorial {
    font-size: 0.9rem;
  }

  .blog-content .product-card .price,
  .product-price-editorial {
    font-size: 1rem;
  }

  .blog-content .product-card .btn,
  .product-cta-editorial {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .gallery-grid,
  .shop-grid,
  .article-gallery-items,
  .editorial-product-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin: 28px 0;
  }

  .blog-content .product-card .card-body,
  .product-body-editorial {
    padding: 14px;
  }

  .blog-content .product-card .pin-badge {
    top: 8px;
    right: 8px;
    font-size: 0.65rem;
    padding: 0.35rem 0.65rem;
  }

  .blog-content .product-card .card-title,
  .product-title-editorial {
    font-size: 0.9rem;
    min-height: 2.2em;
    margin-bottom: 0;
  }

  .blog-content .product-card .card-text,
  .product-desc-editorial {
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
  }

  .blog-content .product-card .price,
  .product-price-editorial {
    font-size: 0.95rem;
    margin-bottom: 8px;
  }

  .blog-content .product-card .btn,
  .product-cta-editorial {
    padding: 0.5rem 0.8rem;
    font-size: 0.8rem;
    border-radius: 10px;
  }
}

/* ============================================================
   SPECIAL: CENTER ALIGNED GALLERY SECTION
   Use class="gallery-grid-centered" on parent
   ============================================================ */

.gallery-grid-centered {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 28px;
  margin: 56px auto;
  max-width: 900px;
}

.gallery-grid-centered .product-card-editorial,
.gallery-grid-centered .blog-content .product-card {
  flex: 0 1 220px;
}

/* ============================================================
   CART / SHOPPING SUMMARY BOX
   For product collections in articles
   ============================================================ */

.article-summary-box,
.product-collection-summary {
  background: linear-gradient(135deg, rgba(215, 180, 107, 0.08) 0%, #faf8f4 100%);
  border: 1px solid rgba(215, 180, 107, 0.2);
  border-radius: 20px;
  padding: 40px;
  margin: 56px 0;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.article-summary-title,
.collection-summary-title {
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #2a2722;
  margin: 0 0 28px;
  letter-spacing: -0.01em;
}

.article-summary-count,
.collection-summary-count {
  font-size: 1.05rem;
  color: #5a5550;
  line-height: 1.7;
  margin: 0;
}

.article-summary-count strong,
.collection-summary-count strong {
  color: #b48c3d;
  font-weight: 700;
}
