/*
 * Shop Page CSS — Isolated Styles
 * Theme: Astra (Custom)
 * Version: 1.1 (2026-07-09)
 *
 * This file is loaded ONLY on pages using the "Custom Shop Page" template.
 * It supplements assets/css/style.css with shop-specific overrides and
 * fixes specificity conflicts introduced after the WooCommerce plugin update.
 *
 * WooCommerce tested up to: 10.2.3
 */

/* =============================
   Shop Page Section Wrapper
   ============================= */
section.shop_listing {
  padding: 30px;
  width: 100%;
  overflow: hidden;
  float: left;
}

/* Page Heading */
section.shop_listing h1.sub-heading {
  color: #000;
  font-family: 'stangith';
  margin: 15px 0;
  font-size: 40px;
  line-height: 40px;
  letter-spacing: 1px;
  font-weight: 400;
  text-align: center;
}

/* Intro Paragraph */
.shop_listing > .container > p {
  font-size: 14px;
  font-family: 'Europa-Regular';
  text-align: center;
  margin: 20px 0;
  color: #555;
}

/* =============================
   Category Filter Tabs
   ============================= */
.tabs_shop {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  gap: 10px;
  flex-wrap: wrap;
}

.tabs_shop button {
  background: #FFFFFF;
  cursor: pointer;
  color: #767980;
  font-family: 'Europa-Regular';
  font-size: 14px;
  padding: 10px 30px;
  border: 1px solid #767980;
  text-decoration: none;
  display: inline-block;
  transform: translateY(0);
  transition: all 0.3s ease;
}

.tabs_shop button.active,
.tabs_shop button:hover {
  background: #fff;
  color: #000;
  border-color: #000;
}

/* =============================
   Product Grid Layout
   FIX: Restored from .ul.products.columns-4 (broken) -> .product-grid (correct)
   ============================= */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

/* =============================
   Individual Product Card
   ============================= */
.product_shop {
  position: relative;
  overflow: hidden;
  /* Hidden by default; JS adds .show class for tab-filter and load-more */
  display: none;
}

.product_shop.show {
  display: block;
}

/* Products inside non-tab-filtered sections always show */
.product_list_section .product_shop {
  display: block;
}

/* Product Image */
.product_shop img {
  width: 100%;
  display: block;
  transition: transform 0.3s ease;
  height: auto;
}

.product_shop:hover img {
  transform: scale(1.03);
}

/* =============================
   Heart Wishlist Icon
   ============================= */
.product_shop .heart {
  position: absolute;
  top: 30px;
  right: 10px;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  color: #555;
  transition: color 0.3s;
  z-index: 2;
}

.product_shop .heart.active {
  color: red;
}

/* =============================
   Add to Cart Button (Overlay)
   ============================= */
.product_shop .add-to-cart {
  position: absolute;
  top: 30px;
  left: 30px;
  padding: 8px 16px;
  font-size: 14px;
  text-decoration: none;
  color: #000;
  transition: color 0.3s ease, background 0.3s ease;
  background: #FFFFFF;
  font-family: 'Europa-Regular';
  font-weight: 600;
  z-index: 2;
      font-family: 'Europa-Regular';
    letter-spacing: 1.3px;
}

.product_shop a.add-to-cart:hover {
  color: #A37B5E;
  background: #f9f9f9;
}

/* =============================
   Product Info Overlay (Bottom)
   FIX: Scoped to .product_shop to prevent global p{color:#000} override
   ============================= */
.product_shop .product-info {
  position: absolute;
  bottom: 30px;
  left: 30px;
  color: #fff;
  z-index: 2;
}

.product_shop .product-info h3 {
  font-size: 14px;
  margin: 0 0 4px;
  font-weight: 600;
  font-family: 'Europa-Regular';
  color: #fff !important; /* Override global h3 / p{color:#000} */
}

/* Price */
.product_shop .price {
  font-size: 14px;
  font-weight: bold;
}

.product_shop .price p {
  margin: 0 0 4px;
  text-align: left;
  color: #fff !important; /* Override global p{color:#000} */
  font-family: 'Europa-Regular';
}

/* WooCommerce outputs price inside <span> elements */
.product_shop .price span,
.product_shop .price bdi,
.product_shop .price .woocommerce-Price-amount {
  color: #fff !important;
}

/* =============================
   Load More Button
   ============================= */
.load-more-container {
  text-align: center;
  margin-top: 20px;
}

.load-more-container button#loadMoreBtn {
  background: #FFFFFF;
  cursor: pointer;
  color: #000;
  font-family: 'Europa-Regular';
  font-size: 14px;
  padding: 10px 30px;
  border: 1px solid #767980;
  text-decoration: none;
  display: inline-block;
  transform: translateY(0);
  transition: all 0.3s ease;
}

.load-more-container button#loadMoreBtn:hover {
  border-color: #000;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
@media screen and (min-width: 1600px) and (max-width: 2560px) {
  .tabs_shop button {
    background: #FFFFFF;
    cursor: pointer;
    color: #767980;
        
    font-size: 20px;

}
.product_shop .product-info h3 {
    font-size: 18px;
    letter-spacing: 1.3px;
}


}

/* =============================
   Responsive — Tablet (≤1024px)
   ============================= */
@media screen and (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* =============================
   Responsive — Mobile (≤768px)
   ============================= */
@media screen and (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  section.shop_listing {
    padding: 30px 10px;
  }

  .product_shop .product-info {
    bottom: 15px;
    left: 15px;
  }

  .product_shop .add-to-cart {
    top: 15px;
    left: 15px;
    padding: 6px 12px;
    font-size: 13px;
  }

  .product_shop .heart {
    top: 15px;
    right: 8px;
  }
}

/* =============================
   Responsive — Small Mobile (≤600px)
   ============================= */
@media screen and (max-width: 600px) {
  .tabs_shop {
    flex-wrap: wrap;
    gap: 8px;
  }

  .tabs_shop button {
    padding: 8px 20px;
    font-size: 13px;
  }

  .product-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  section.shop_listing h1.sub-heading {
    font-size: 30px;
  }
}

/* =============================
   Responsive — Extra Small (≤400px)
   ============================= */
@media screen and (max-width: 400px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}
