/*
* JKR eShop Frontend Styles V7 - THE DEFINITIVE MATCH
* Targeting Astra + WooCommerce with Extreme Specificity to match Image 2.
*/

:root {
  --jkr-blue: #2980b9 !important;
  --jkr-red: #e74c3c !important;
  --jkr-red-hover: #c0392b !important;
  --jkr-grey: #777777 !important;
  --jkr-bg-white: #ffffff !important;
  --jkr-shadow-soft: 0 10px 40px rgba(0,0,0,0.06) !important;
  --jkr-shadow-hover: 0 20px 50px rgba(0,0,0,0.12) !important;
}

/* --- THE NUCLEAR OPTION: NO UNDERLINES ANYWHERE --- */
.eshop-products-container *,
.eshop-section-title *,
.eshop-product-card *,
li.product *,
ul.products * {
  text-decoration: none !important;
  box-shadow: none !important;
  border-bottom: none !important;
}

/* --- 1. ARCHIVE HEADER BANNER (Centered White Box) --- */
.eshop-section-title,
.woocommerce-products-header,
header.woocommerce-products-header,
.ast-archive-description {
  background: #ffffff !important;
  padding: 50px 40px !important;
  border-radius: var(--jkr-radius-md) !important;
  margin-bottom: 50px !important;
  text-align: center !important;
  box-shadow: none !important;
  border: 1px solid #eef0f2 !important;
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  display: block !important;
}

.eshop-section-title h2,
.woocommerce-products-header .woocommerce-products-header__title,
.ast-archive-description .page-title {
  font-size: 38px !important;
  color: #333333 !important;
  font-weight: 500 !important;
  margin: 0 !important;
  padding: 0 !important;
  text-transform: none !important;
}

.eshop-section-title p,
.woocommerce-products-header .term-description,
.ast-archive-description p {
  color: #666 !important;
  font-size: 16px !important;
  margin-top: 15px !important;
}

/* --- 2. THE GRID (4 columns as per Image 1, but Premium) --- */
.eshop-products-grid,
ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
  gap: 30px !important;
  list-style: none !important;
  padding: 0 !important;
}

ul.products::before, ul.products::after { display: none !important; }

/* --- 3. THE PRODUCT CARD (Centered White Card) --- */
.eshop-product-card,
li.product,
.woocommerce ul.products li.product {
  background: white !important;
  border-radius: var(--jkr-radius-md) !important;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.08) !important;
  border: 1px solid #f0f0f0 !important;
  overflow: hidden !important;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
  width: 100% !important;
  height: 100% !important;
}

li.product:hover {
  transform: translateY(-12px) !important;
  box-shadow: 0 30px 60px -15px rgba(0,0,0,0.18), 0 15px 25px -10px rgba(0,0,0,0.08) !important;
}

/* --- 4. IMAGE AREA --- */
.product-image-container,
li.product a img,
li.product .attachment-woocommerce_thumbnail {
  width: 100% !important;
  height: 280px !important;
  object-fit: cover !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
  transition: transform 0.6s ease !important;
}

li.product:hover img { transform: scale(1.05) !important; }

/* --- CATEGORY (Blue centered caps - NO UNDERLINE) --- */
.product-category,
li.product .ast-loop-product__link .ast-woo-product-category,
li.product .woocommerce-loop-product__category,
.ast-woo-product-category {
  color: var(--jkr-blue) !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  margin: 25px 0 10px 0 !important;
  display: block !important;
  letter-spacing: 1px !important;
  text-decoration: none !important;
}

li.product .product-category a, 
li.product .ast-woo-product-category a,
.product-category a { 
  color: inherit !important; 
  text-decoration: none !important; 
  border: none !important;
  box-shadow: none !important;
}

/* --- TITLE (Blue centered bold - NO UNDERLINE) --- */
.product-title,
.woocommerce-loop-product__title,
li.product h2,
li.product h3,
.ast-loop-product__link h2 {
  color: var(--jkr-blue) !important;
  font-size: 21px !important;
  font-weight: 800 !important;
  margin: 0 0 15px 0 !important;
  line-height: 1.3 !important;
  padding: 0 20px !important;
  text-decoration: none !important;
  display: block !important;
}

li.product a,
.eshop-product-card a,
.woocommerce-LoopProduct-link,
.ast-loop-product__link { 
  text-decoration: none !important; 
  border: none !important; 
  outline: none !important;
  box-shadow: none !important;
}

li.product a:hover,
li.product a:focus {
  text-decoration: none !important;
}

/* --- 7. DESCRIPTION / EXCERPT (Grey centered) --- */
.product-description,
li.product .woocommerce-loop-product__desc,
li.product .ast-woo-shop-product-description {
  color: var(--jkr-grey) !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
  margin-bottom: 25px !important;
  padding: 0 25px !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

/* --- 8. PRICE (Hidden to match Image 2) --- */
.price, .product-price { display: none !important; }

/* --- 9. BUTTON (Red Pill Centered) --- */
.pizza-add-to-cart,
li.product .button,
li.product .add_to_cart_button,
.woocommerce li.product .button {
  background-color: var(--jkr-red) !important;
  color: white !important;
  padding: 14px 35px !important;
  border-radius: var(--jkr-btn-radius) !important;
  font-weight: 800 !important;
  font-size: 15px !important;
  text-transform: none !important;
  text-decoration: none !important;
  display: inline-block !important;
  margin: 0 auto 15px !important;
  width: auto !important;
  min-width: 150px !important;
  border: none !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 15px rgba(231, 76, 60, 0.2) !important;
}

li.product .button:hover {
  background-color: var(--jkr-red-hover) !important;
  transform: scale(1.05) !important;
  box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4) !important;
}

/* --- 10. STOCK STATUS WITH CHECKMARK --- */
.product-stock-status,
.stock-status-wrapper,
li.product .stock-status {
  margin-top: 10px !important;
  margin-bottom: 20px !important;
  font-weight: 700 !important;
  color: #333 !important;
  font-size: 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
}

/* Force Checkmark if template failed */
.product-stock-status.in-stock::before,
.stock-status-wrapper .in-stock::before,
li.product .instock::before {
  content: '✔' !important;
  color: #27ae60 !important;
  font-size: 18px !important;
}

/* Ensure text is correct */
.product-stock-status::after, 
.stock-status-wrapper::after {
  content: 'In Stock' !important;
}

/* --- 11. CLEANUP --- */
.star-rating { display: none !important; }
.woocommerce-loop-product__link { margin: 0 !important; display: block !important; width: 100% !important; }
