/**
Theme Name: Astra Child
Author: Brainstorm Force
Author URI: http://wpastra.com/about/
Description: Astra is the fastest, fully customizable & beautiful theme suitable for blogs, personal portfolios and business websites. It is very lightweight (less than 50KB on frontend) and offers unparalleled speed. Built with SEO in mind, Astra comes with schema.org code integrated so search engines will love your site. Astra offers plenty of sidebar options and widget areas giving you a full control for customizations. Furthermore, we have included special features and templates so feel free to choose any of your favorite page builder plugin to create pages flexibly. Some of the other features: # WooCommerce Ready # Responsive # Compatible with major plugins # Translation Ready # Extendible with premium addons # Regularly updated # Designed, Developed, Maintained & Supported by Brainstorm Force. Looking for a perfect base theme? Look no further. Astra is fast, fully customizable and beautiful theme!
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra-child
Template: astra
*/

/* === Simple Fancy Related Products (4 items, no hover effects) === */
.related {
  margin-top: 2rem;
}

.related .products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 0;
  padding: 0;
}

/* Responsive grid */
@media (max-width: 1024px) {
  .related .products { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .related .products { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .related .products { grid-template-columns: 1fr; }
}

/* Product card */
.related .products .product {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  text-align: center;
  padding-bottom: 12px;
  transition: box-shadow 0.2s ease;
}

/* Subtle hover lift */
.related .products .product:hover {
  box-shadow: 0 4px 18px rgba(0,0,0,0.1);
}

/* Product image */
.related .products .product img {
  width: 100%;
  height: auto;
  display: block;
  border-bottom: 1px solid #f0f0f0;
}

/* Title */
.related .products .product .woocommerce-loop-product__title {
  font-size: 15px;
  font-weight: 600;
  color: #111;
  margin: 12px 0 6px;
  padding: 0 8px;
  line-height: 1.3;
}

/* Price */
.related .products .product .price {
  font-size: 14px;
  color: #0073aa;
  font-weight: 700;
}

/* Hide add-to-cart and sale badges for simplicity */
.related .products .product a.button,
.related .products .product .onsale {
  display: none !important;
}

.simple-related-posts {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e5e5;
}

.simple-related-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.simple-related-list {
  list-style-type: disc;
  margin-left: 1.2rem;
  padding-left: 0;
}

.simple-related-list li {
  margin-bottom: 0.3rem;
}

.simple-related-list a {
  text-decoration: none;
  color: #0073aa;
}

.simple-related-list a:hover {
  text-decoration: underline;
}

.blog-products-section {
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid #eeeeee;
}

.blog-products-title {
    text-align: center;
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: 1.8rem;
}

/* ✅ Always create a responsive grid */
.blog-products-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* Optional: make sure on bigger screens 2 products sit side by side */
@media (min-width: 640px) {
    .blog-products-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }
}

.blog-product-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.06);
}

.blog-product-image {
    display: block;
    margin-bottom: 1rem;
    text-align: center;
}

.blog-product-image img {
    max-height: 220px;
    width: auto;
    margin: 0 auto;
    object-fit: contain;
}

.blog-product-content {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: 0.3rem;
}

.blog-product-name {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.blog-product-name a {
    text-decoration: none;
}

.blog-product-price {
    font-weight: 600;
    font-size: 0.95rem;
    opacity: 0.9;
}

.blog-product-button {
    margin-top: 0.6rem;
    width: 100%;
    text-align: center;
    border-radius: 999px !important;
    padding: 0.55rem 1rem;
    font-weight: 600;
    font-size: 0.9rem;
}
