/*
Theme Name: WoodMart Child
Description: Child theme for WoodMart
Author: Custom
Template: woodmart
Version: 1.0.0
*/

/* Add your custom CSS below */

/* ==========================================================================
   Complete Outer Border Removal & Modern Grid Overrides
   ========================================================================== */

/* 1. Force Remove Outer Border on Shortcode & Grid Container */
.wd-products-element,
div.products-bordered-grid,
div.products-bordered-grid-ins,
.wd-products-element > div,
.wd-products-element .shop-loop-head,
.nishant123.products.wd-products,
.products-footer {
  border: 0 !important;
  border-width: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

/* Clear pseudo-element borders that WoodMart creates */
div.products-bordered-grid::before,
div.products-bordered-grid::after,
div.products-bordered-grid-ins::before,
div.products-bordered-grid-ins::after,
.nishant123::before,
.nishant123::after {
  display: none !important;
  border: none !important;
  content: none !important;
}

/* Remove borders between grid items forced by WoodMart bordered-grid */
.nishant123.products.wd-products .product,
.nishant123.products.wd-products .wd-product {
  border-right: none !important;
  border-bottom: none !important;
  border-top: none !important;
  border-left: none !important;
}

/* 2. Style Individual Cards Modernly */
.nishant123.products.wd-products .product {
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 1.25rem !important;
  position: relative !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03) !important;
  transition: all 0.3s ease !important;
}

.nishant123.products.wd-products .product:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 12px 24px -4px rgba(0, 0, 0, 0.08) !important;
  border-color: #cbd5e1 !important;
}

/* 3. Modern Sorting & Top Tools Bar */
.wd-products-element .shop-loop-head,
.shop-loop-head {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 0.85rem 1.25rem !important;
  margin-bottom: 2rem !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.shop-loop-head select {
  border: 1px solid #cbd5e1 !important;
  border-radius: 6px !important;
  padding: 0.4rem 2rem 0.4rem 0.75rem !important;
  background-color: #f8fafc !important;
}

/* 4. Grid Container (4 Columns) */
.nishant123.products.wd-products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 1.5rem !important;
  padding: 0 !important;
  margin: 0 0 2.5rem 0 !important;
}

@media (max-width: 1024px) {
  .nishant123.products.wd-products {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 640px) {
  .nishant123.products.wd-products {
    grid-template-columns: repeat(1, 1fr) !important;
  }
}

/* 5. Book Images Container */
.nishant123.products.wd-products .product .product-element-top,
.nishant123.products.wd-products .product .wd-product-thumb {
  background: #f8fafc !important;
  border-radius: 8px !important;
  padding: 0.75rem !important;
  margin-bottom: 1rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 240px !important;
  border: none !important;
}

.nishant123.products.wd-products .product img {
  max-height: 100% !important;
  width: auto !important;
  object-fit: contain !important;
  border-radius: 4px !important;
  transition: transform 0.3s ease !important;
}

.nishant123.products.wd-products .product:hover img {
  transform: scale(1.04) !important;
}

/* 6. Title and Price Formatting */
.nishant123.products.wd-products .product .woocommerce-loop-product__title,
.nishant123.products.wd-products .product .product-title {
  font-size: 0.925rem !important;
  font-weight: 600 !important;
  color: #1e293b !important;
  line-height: 1.35 !important;
  margin-bottom: 0.5rem !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  height: 2.7em !important;
}

.nishant123.products.wd-products .product .price {
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  color: #2563eb !important;
  margin-top: auto !important;
  margin-bottom: 0.5rem !important;
}

.nishant123.products.wd-products .product .price del {
  color: #94a3b8 !important;
  font-weight: 400 !important;
  font-size: 0.85rem !important;
}

/* 7. Clean Modern Pagination Bar */
.wd-products-element nav.woocommerce-pagination,
.wd-products-element .woocommerce-pagination,
nav.woocommerce-pagination {
  margin-top: 2rem !important;
  padding: 0 !important;
  border: none !important;
}

nav.woocommerce-pagination ul.page-numbers,
.wd-pagination ul.page-numbers {
  border: none !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 0.35rem !important;
  padding: 0 !important;
}

nav.woocommerce-pagination ul.page-numbers li {
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

nav.woocommerce-pagination ul.page-numbers li a,
nav.woocommerce-pagination ul.page-numbers li span {
  border-radius: 8px !important;
  border: 1px solid #e2e8f0 !important;
  background: #ffffff !important;
  color: #1e293b !important;
  font-weight: 600 !important;
  padding: 0.5rem 0.85rem !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02) !important;
}

nav.woocommerce-pagination ul.page-numbers li span.current {
  background: #2563eb !important;
  color: #ffffff !important;
  border-color: #2563eb !important;
}