/* BuyTuga UI MAX - product grid fix + premium WooCommerce cards */
:root{
  --bt-accent:#ff6600;
  --bt-price:#e60023;
  --bt-card-min:230px;
  --bt-card-min-large:250px;
  --bt-mobile-cols:2;
}

/* Prevent vertical text/cards */
.bt-products,
.bt-section-products,
.buytuga-products,
.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(var(--bt-card-min), 1fr)) !important;
  gap: 22px !important;
  align-items: stretch !important;
}

@media (min-width: 1600px){
  .bt-products,
  .bt-section-products,
  .buytuga-products,
  .woocommerce ul.products {
    grid-template-columns: repeat(auto-fit, minmax(var(--bt-card-min-large), 1fr)) !important;
  }
}

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

.woocommerce ul.products li.product,
.bt-products li.product,
.bt-product-card {
  width: auto !important;
  min-width: 0 !important;
  float: none !important;
  clear: none !important;
  margin: 0 !important;
  background: #fff !important;
  border: 1px solid #edf0f3 !important;
  border-radius: 14px !important;
  padding: 14px 14px 54px !important;
  position: relative !important;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease !important;
  overflow: hidden !important;
  box-shadow: 0 2px 8px rgba(15,23,42,.035) !important;
}

.woocommerce ul.products li.product:hover,
.bt-products li.product:hover,
.bt-product-card:hover {
  transform: translateY(-4px) !important;
  border-color: rgba(255,102,0,.25) !important;
  box-shadow: 0 12px 28px rgba(15,23,42,.12) !important;
}

.woocommerce ul.products li.product a img,
.woocommerce ul.products li.product img,
.bt-product-card img {
  width: 100% !important;
  height: 190px !important;
  max-height: 190px !important;
  object-fit: contain !important;
  object-position: center !important;
  margin: 0 auto 12px !important;
  display: block !important;
  transition: transform .25s ease !important;
  background: #fff !important;
}

.woocommerce ul.products li.product:hover img,
.bt-product-card:hover img { transform: scale(1.035) !important; }

.woocommerce-loop-product__title,
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h2,
.woocommerce ul.products li.product h3,
.bt-product-title {
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: anywhere !important;
  line-height: 1.28 !important;
  min-height: 38px !important;
  max-height: 42px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  color: #0f2f45 !important;
  text-transform: none !important;
  padding: 0 !important;
  margin: 0 0 8px !important;
}

.woocommerce ul.products li.product .price,
.bt-product-price {
  color: var(--bt-price) !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  display: block !important;
  margin: 8px 0 0 !important;
}

.woocommerce ul.products li.product .price del { color:#9ca3af !important; font-size:12px !important; opacity:1 !important; }
.woocommerce ul.products li.product .price ins { text-decoration:none !important; color:var(--bt-price) !important; }

.woocommerce ul.products li.product .star-rating {
  font-size: 12px !important;
  margin: 5px 0 !important;
}

.woocommerce span.onsale,
.woocommerce ul.products li.product .onsale {
  background: var(--bt-accent) !important;
  color: #fff !important;
  border-radius: 999px !important;
  padding: 5px 9px !important;
  min-height: auto !important;
  line-height: 1 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  top: 10px !important;
  left: 10px !important;
  right: auto !important;
  z-index: 3 !important;
}

.woocommerce ul.products li.product .button,
.bt-product-card .button,
.bt-product-card .add_to_cart_button {
  position: absolute !important;
  left: 14px !important;
  right: 14px !important;
  bottom: 12px !important;
  width: auto !important;
  border-radius: 9px !important;
  background: var(--bt-accent) !important;
  color: #fff !important;
  font-weight: 800 !important;
  font-size: 13px !important;
  padding: 10px 12px !important;
  text-align: center !important;
  line-height: 1.1 !important;
  border: 0 !important;
  box-shadow: 0 8px 16px rgba(255,102,0,.18) !important;
  transition: transform .2s ease, filter .2s ease !important;
}

.woocommerce ul.products li.product .button:hover,
.bt-product-card .button:hover { filter: brightness(.94) !important; transform: translateY(-1px) !important; }

/* Section headers */
.bt-section-title,
.bt-home h2,
.bt-home h3,
.bt-container h2,
.bt-container h3 {
  margin-top: 42px !important;
  margin-bottom: 16px !important;
  font-weight: 800 !important;
  color: #111827 !important;
}

/* Hero & banners cleaner */
.bt-hero,
.bt-hero-grid { gap: 22px !important; }
.bt-banner,
.bt-main-banner,
.bt-slide {
  border-radius: 18px !important;
  overflow: hidden !important;
  box-shadow: 0 10px 30px rgba(15,23,42,.08) !important;
}
.bt-banner:before,
.bt-main-banner:before,
.bt-slide:before { background: rgba(255,255,255,.10) !important; }

/* Top page menu */
.bt-top-menu,
.bt-pages-menu { display:flex !important; gap:22px !important; align-items:center !important; flex-wrap:wrap !important; margin:18px 0 22px !important; }
.bt-top-menu a,
.bt-pages-menu a { font-weight:700 !important; color:#0f2f45 !important; text-decoration:none !important; }
.bt-top-menu a:hover,
.bt-pages-menu a:hover { color:var(--bt-accent) !important; }

/* Trust/footer blocks */
.bt-trust-row { display:grid !important; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)) !important; gap:16px !important; margin:36px 0 !important; }
.bt-trust-row > * { background:#fff !important; border:1px solid #edf0f3 !important; border-radius:14px !important; padding:18px !important; box-shadow:0 4px 14px rgba(15,23,42,.04) !important; }

.bt-scroll-top {
  position: fixed;
  right: 22px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 0;
  background: var(--bt-accent);
  color:#fff;
  font-size:22px;
  font-weight:900;
  z-index:9999;
  cursor:pointer;
  opacity:0;
  visibility:hidden;
  transform:translateY(10px);
  transition:.25s ease;
  box-shadow:0 10px 22px rgba(255,102,0,.35);
}
.bt-scroll-top.is-visible { opacity:1; visibility:visible; transform:translateY(0); }

@media (max-width: 768px){
  .bt-products,
  .bt-section-products,
  .buytuga-products,
  .woocommerce ul.products {
    grid-template-columns: repeat(var(--bt-mobile-cols), minmax(0, 1fr)) !important;
    gap: 12px !important;
  }
  .woocommerce ul.products li.product,
  .bt-products li.product,
  .bt-product-card {
    padding: 10px 10px 48px !important;
    border-radius: 12px !important;
  }
  .woocommerce ul.products li.product a img,
  .woocommerce ul.products li.product img,
  .bt-product-card img {
    height: 135px !important;
    max-height: 135px !important;
  }
  .woocommerce-loop-product__title,
  .woocommerce ul.products li.product .woocommerce-loop-product__title,
  .woocommerce ul.products li.product h2,
  .woocommerce ul.products li.product h3 {
    font-size: 12px !important;
    min-height: 34px !important;
    max-height: 36px !important;
  }
  .woocommerce ul.products li.product .price { font-size: 14px !important; }
  .woocommerce ul.products li.product .button { left:10px!important; right:10px!important; bottom:10px!important; font-size:12px!important; padding:9px!important; }
}
