/* BuyTuga UI Fixes v1.0.3 — WooCommerce Visual Polish */
:root{
  --bt-blue:#0f6fff;
  --bt-navy:#102d3f;
  --bt-navy-2:#0b2333;
  --bt-yellow:#ffb800;
  --bt-green:#20c65a;
  --bt-text:#14233b;
  --bt-muted:#6b7280;
  --bt-border:#e6edf5;
  --bt-card:#ffffff;
  --bt-bg:#f5f8fc;
  --bt-radius:16px;
  --bt-shadow:0 10px 30px rgba(15,35,55,.08);
}

body.woocommerce,
body.woocommerce-page{
  background:#f5f8fc;
  color:var(--bt-text);
}

/* Prevent footer/background from visually invading WooCommerce content */
.woocommerce main,
.woocommerce-page main,
.woocommerce .site-main,
.woocommerce-page .site-main,
.woocommerce .content-area,
.woocommerce-page .content-area,
.woocommerce.archive .site-content,
.woocommerce-page.archive .site-content{
  background:#f5f8fc;
  position:relative;
  z-index:2;
}

.woocommerce ul.products,
.woocommerce-page ul.products{
  background:#f5f8fc;
  padding:22px 0 42px !important;
  clear:both;
}

/* Product cards */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
ul.products li.bt-product-card-polish{
  background:var(--bt-card) !important;
  border:1px solid var(--bt-border) !important;
  border-radius:var(--bt-radius) !important;
  box-shadow:var(--bt-shadow) !important;
  padding:14px 14px 16px !important;
  overflow:hidden;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  min-height:360px;
}

.woocommerce ul.products li.product:hover,
.woocommerce-page ul.products li.product:hover{
  transform:translateY(-3px);
  border-color:#d7e5f7 !important;
  box-shadow:0 14px 36px rgba(15,35,55,.13) !important;
}

.woocommerce ul.products li.product a img,
.woocommerce-page ul.products li.product a img{
  background:#fff;
  border-radius:12px;
  width:100%;
  aspect-ratio:1 / 1;
  object-fit:contain;
  padding:8px;
  margin:0 0 12px !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h2,
.woocommerce ul.products li.product h3,
.woocommerce-page ul.products li.product .woocommerce-loop-product__title{
  color:var(--bt-text) !important;
  font-size:14px !important;
  line-height:1.35 !important;
  font-weight:700 !important;
  min-height:38px;
  margin:8px 0 7px !important;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

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

.woocommerce ul.products li.product .stock,
.woocommerce-page ul.products li.product .stock,
.woocommerce div.product p.stock{
  display:inline-flex;
  align-items:center;
  gap:6px;
  color:#087a35 !important;
  background:#e9fbef;
  border:1px solid #c8f2d5;
  padding:4px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
  line-height:1.2;
}

.woocommerce ul.products li.product .stock:before,
.woocommerce div.product p.stock:before{
  content:"";
  width:7px;
  height:7px;
  background:var(--bt-green);
  border-radius:50%;
  display:inline-block;
}

/* Buttons */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce div.product form.cart .button{
  border-radius:10px !important;
  min-height:40px;
  border:0 !important;
  font-weight:800 !important;
  text-transform:none !important;
  box-shadow:none !important;
}

.woocommerce div.product form.cart .button,
.woocommerce a.add_to_cart_button,
.woocommerce a.product_type_simple{
  background:var(--bt-yellow) !important;
  color:#111 !important;
}

.woocommerce div.product form.cart .button:hover,
.woocommerce a.add_to_cart_button:hover,
.woocommerce a.product_type_simple:hover{
  filter:brightness(.96);
}

.bt-whatsapp-btn,
.woocommerce a.bt-whatsapp-btn,
a[href*="whatsapp"],
a[href*="wa.me"]{
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  border-radius:10px !important;
  background:#25D366 !important;
  color:#fff !important;
  font-weight:800 !important;
  padding:10px 18px !important;
  text-decoration:none !important;
  border:0 !important;
}

.bt-soft-action,
.compare,
.add_to_wishlist,
.yith-wcwl-add-button a{
  border:1px solid var(--bt-border) !important;
  background:#fff !important;
  color:var(--bt-text) !important;
  border-radius:8px !important;
  padding:7px 10px !important;
  font-size:12px !important;
  text-decoration:none !important;
}

/* Single product */
.woocommerce div.product{
  background:#fff;
  border-radius:18px;
  padding:24px;
  box-shadow:var(--bt-shadow);
  border:1px solid var(--bt-border);
  margin-bottom:40px;
}

.woocommerce div.product .product_title{
  color:var(--bt-text);
  font-size:28px;
  line-height:1.18;
  font-weight:800;
  margin-bottom:10px;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price{
  color:#111827 !important;
  font-size:30px !important;
  font-weight:900 !important;
  margin:12px 0 18px !important;
}

.woocommerce div.product div.images img{
  border-radius:14px;
  background:#fff;
  object-fit:contain;
}

.woocommerce div.product form.cart{
  display:flex;
  gap:12px;
  align-items:center;
  flex-wrap:wrap;
  margin:18px 0 !important;
}

.woocommerce .quantity .qty{
  border:1px solid var(--bt-border) !important;
  border-radius:8px !important;
  min-height:40px;
}

.product_meta,
.woocommerce div.product .product_meta{
  border-top:1px solid var(--bt-border);
  padding-top:14px;
  color:var(--bt-muted);
  font-size:14px;
}

.product_meta a,
.woocommerce div.product .product_meta a{
  color:var(--bt-blue);
  font-weight:700;
}

/* Tabs cleanup */
.woocommerce div.product .woocommerce-tabs{
  margin-top:34px;
  background:#fff;
  border-radius:16px;
  border:1px solid var(--bt-border);
  overflow:hidden;
}

.woocommerce div.product .woocommerce-tabs ul.tabs{
  display:flex;
  gap:0;
  align-items:stretch;
  padding:0 !important;
  margin:0 !important;
  background:#f8fafc;
  border-bottom:1px solid var(--bt-border);
}

.woocommerce div.product .woocommerce-tabs ul.tabs:before,
.woocommerce div.product .woocommerce-tabs ul.tabs:after{
  display:none !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li{
  list-style:none !important;
  border:0 !important;
  background:transparent !important;
  margin:0 !important;
  padding:0 !important;
  border-radius:0 !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li:before,
.woocommerce div.product .woocommerce-tabs ul.tabs li:after,
.woocommerce div.product .woocommerce-tabs ul.tabs li::marker{
  display:none !important;
  content:none !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a{
  display:block;
  padding:16px 22px !important;
  color:var(--bt-text) !important;
  font-weight:800 !important;
  text-decoration:none !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a{
  color:#111 !important;
  background:#fff !important;
  box-shadow:inset 0 -3px 0 var(--bt-yellow);
}

.woocommerce div.product .woocommerce-tabs .panel{
  padding:24px !important;
  margin:0 !important;
  color:var(--bt-text);
  line-height:1.75;
}

.woocommerce div.product .woocommerce-tabs .panel h2{
  font-size:22px;
  font-weight:900;
  margin-top:0;
}

/* Remove theme/plugin stray bullets around tabs/products */
.woocommerce-tabs > ul:not(.tabs),
.woocommerce-tabs li:empty,
.entry-summary li:empty,
ul.products li.product > ul:empty{
  display:none !important;
}

/* Account page */
.woocommerce-account .woocommerce,
.woocommerce-account .entry-content > .woocommerce{
  background:#fff;
  border-radius:18px;
  box-shadow:var(--bt-shadow);
  border:1px solid var(--bt-border);
  padding:28px;
  margin:30px 0 45px;
}

.woocommerce-account .entry-title,
.woocommerce-account h1,
.woocommerce-account .page-title{
  color:#111827;
  font-weight:900;
}

.woocommerce-MyAccount-navigation,
.bt-account-nav{
  background:#fff;
  border:1px solid var(--bt-border);
  border-radius:14px;
  overflow:hidden;
  box-shadow:0 6px 18px rgba(15,35,55,.06);
}

.woocommerce-MyAccount-navigation ul{
  margin:0 !important;
  padding:0 !important;
}

.woocommerce-MyAccount-navigation li{
  list-style:none !important;
  margin:0 !important;
  border-bottom:1px solid var(--bt-border);
}

.woocommerce-MyAccount-navigation li:last-child{border-bottom:0;}

.woocommerce-MyAccount-navigation li a{
  display:block;
  padding:15px 18px !important;
  color:#111827 !important;
  font-weight:800;
  text-transform:none;
  text-decoration:none;
}

.woocommerce-MyAccount-navigation li.is-active a,
.woocommerce-MyAccount-navigation li a:hover{
  background:var(--bt-yellow) !important;
  color:#111 !important;
}

.woocommerce-MyAccount-content,
.bt-account-card{
  background:#fff;
  border:1px solid var(--bt-border);
  border-radius:14px;
  padding:22px;
  box-shadow:0 6px 18px rgba(15,35,55,.06);
}

.woocommerce-account .addresses .title h3,
.woocommerce-account .woocommerce-Address-title h3{
  color:#111827;
  font-size:21px;
  font-weight:900;
}

/* Archive header and sorting */
.woocommerce .woocommerce-result-count,
.woocommerce-page .woocommerce-result-count{
  font-weight:700;
  color:var(--bt-text);
}

.woocommerce .woocommerce-ordering select,
.woocommerce-page .woocommerce-ordering select{
  border:1px solid var(--bt-border);
  background:#fff;
  border-radius:10px;
  min-height:42px;
  padding:0 12px;
  color:var(--bt-text);
}

/* Pagination */
.woocommerce nav.woocommerce-pagination ul{
  border:0 !important;
  display:flex;
  gap:8px;
  justify-content:center;
  flex-wrap:wrap;
  margin:22px 0 38px !important;
}

.woocommerce nav.woocommerce-pagination ul li{
  border:0 !important;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span{
  min-width:42px;
  height:42px;
  display:flex !important;
  align-items:center;
  justify-content:center;
  border-radius:10px !important;
  background:#fff !important;
  border:1px solid var(--bt-border) !important;
  color:var(--bt-text) !important;
  font-weight:800 !important;
}

.woocommerce nav.woocommerce-pagination ul li span.current,
.woocommerce nav.woocommerce-pagination ul li a:hover{
  background:var(--bt-yellow) !important;
  color:#111 !important;
  border-color:var(--bt-yellow) !important;
}

/* Newsletter/footer spacing harmony */
footer,
.site-footer{
  position:relative;
  z-index:1;
  margin-top:0;
}

.woocommerce.archive footer,
.woocommerce-page.archive footer,
.woocommerce.archive .site-footer,
.woocommerce-page.archive .site-footer{
  margin-top:40px !important;
}

/* Better readability on imported descriptions */
.woocommerce div.product .woocommerce-tabs .panel p,
.woocommerce div.product .woocommerce-product-details__short-description p{
  font-size:15px;
  color:#253044;
}

/* Mobile */
@media (max-width: 768px){
  .woocommerce div.product{
    padding:16px;
    border-radius:14px;
  }
  .woocommerce div.product .product_title{
    font-size:22px;
  }
  .woocommerce div.product p.price,
  .woocommerce div.product span.price{
    font-size:24px !important;
  }
  .woocommerce div.product .woocommerce-tabs ul.tabs{
    display:block;
  }
  .woocommerce div.product .woocommerce-tabs ul.tabs li a{
    padding:13px 16px !important;
  }
  .woocommerce-account .entry-content > .woocommerce,
  .woocommerce-account .woocommerce{
    padding:16px;
  }
  .woocommerce-MyAccount-navigation,
  .woocommerce-MyAccount-content{
    width:100% !important;
    float:none !important;
    margin-bottom:18px;
  }
  .woocommerce ul.products li.product,
  .woocommerce-page ul.products li.product{
    min-height:auto;
  }
}

/* v1.0.1 — Archive hover/grid hotfix
   Fixes TemplateMela/MegaShop product cards where hover overlays and dark footer/sidebar background leak into the product grid. */
body.woocommerce.archive,
body.woocommerce-page.archive,
body.tax-product_cat,
body.post-type-archive-product{
  background:#f5f8fc !important;
}

body.woocommerce.archive #page,
body.woocommerce.archive #content,
body.woocommerce.archive .site-content,
body.woocommerce.archive .main-content,
body.woocommerce.archive .content-wrapper,
body.woocommerce.archive .primary-content,
body.woocommerce.archive .container,
body.woocommerce.archive main,
body.woocommerce.archive .site-main,
body.tax-product_cat #page,
body.tax-product_cat #content,
body.tax-product_cat .site-content,
body.tax-product_cat .main-content,
body.tax-product_cat .content-wrapper,
body.tax-product_cat .primary-content,
body.tax-product_cat main,
body.tax-product_cat .site-main{
  background:#f5f8fc !important;
}

body.woocommerce.archive .site-main,
body.tax-product_cat .site-main,
body.post-type-archive-product .site-main{
  padding-top:24px !important;
  padding-bottom:48px !important;
  min-height:620px;
}

/* Force a stable grid instead of theme floats that break when hover effects run. */
body.woocommerce.archive ul.products,
body.woocommerce-page.archive ul.products,
body.tax-product_cat ul.products,
body.post-type-archive-product ul.products{
  display:grid !important;
  grid-template-columns:repeat(auto-fill, minmax(230px, 1fr)) !important;
  gap:24px !important;
  align-items:stretch !important;
  width:100% !important;
  max-width:1280px !important;
  margin:0 auto 42px !important;
  padding:24px !important;
  background:#f5f8fc !important;
  box-sizing:border-box !important;
}

body.woocommerce.archive ul.products:before,
body.woocommerce.archive ul.products:after,
body.tax-product_cat ul.products:before,
body.tax-product_cat ul.products:after{
  display:none !important;
  content:none !important;
}

body.woocommerce.archive ul.products li.product,
body.woocommerce-page.archive ul.products li.product,
body.tax-product_cat ul.products li.product,
body.post-type-archive-product ul.products li.product{
  float:none !important;
  clear:none !important;
  width:auto !important;
  max-width:none !important;
  margin:0 !important;
  display:flex !important;
  flex-direction:column !important;
  justify-content:flex-start !important;
  min-height:410px !important;
  height:auto !important;
  position:relative !important;
  z-index:1;
}

/* Do not let hover move the card or create a visual gap over the dark footer. */
body.woocommerce.archive ul.products li.product:hover,
body.tax-product_cat ul.products li.product:hover,
body.post-type-archive-product ul.products li.product:hover{
  transform:none !important;
  z-index:5 !important;
}

/* Image area with fixed height to align all cards. */
body.woocommerce.archive ul.products li.product a.woocommerce-LoopProduct-link,
body.tax-product_cat ul.products li.product a.woocommerce-LoopProduct-link,
body.post-type-archive-product ul.products li.product a.woocommerce-LoopProduct-link{
  display:block !important;
  text-decoration:none !important;
}

body.woocommerce.archive ul.products li.product img,
body.tax-product_cat ul.products li.product img,
body.post-type-archive-product ul.products li.product img{
  height:210px !important;
  max-height:210px !important;
  object-fit:contain !important;
  object-position:center !important;
}

/* Product title: keep it readable and avoid long text pushing buttons down too far. */
body.woocommerce.archive ul.products li.product .woocommerce-loop-product__title,
body.tax-product_cat ul.products li.product .woocommerce-loop-product__title,
body.post-type-archive-product ul.products li.product .woocommerce-loop-product__title,
body.woocommerce.archive ul.products li.product h2,
body.tax-product_cat ul.products li.product h2{
  min-height:58px !important;
  max-height:58px !important;
  font-size:15px !important;
  line-height:1.28 !important;
  color:#005fd6 !important;
}

body.woocommerce.archive ul.products li.product .price,
body.tax-product_cat ul.products li.product .price,
body.post-type-archive-product ul.products li.product .price{
  margin-top:auto !important;
  color:#111827 !important;
}

/* Keep stock badge inside the card, not floating over the name. */
body.woocommerce.archive ul.products li.product .stock,
body.tax-product_cat ul.products li.product .stock,
body.post-type-archive-product ul.products li.product .stock{
  position:static !important;
  width:max-content !important;
  max-width:100% !important;
  margin:6px 0 4px !important;
}

/* Theme hover quick icons: keep them only on image area and avoid breaking card layout. */
body.woocommerce.archive ul.products li.product .product-button-hover,
body.woocommerce.archive ul.products li.product .product-buttons,
body.woocommerce.archive ul.products li.product .product-action,
body.woocommerce.archive ul.products li.product .product-actions,
body.woocommerce.archive ul.products li.product .button-group,
body.tax-product_cat ul.products li.product .product-button-hover,
body.tax-product_cat ul.products li.product .product-buttons,
body.tax-product_cat ul.products li.product .product-action,
body.tax-product_cat ul.products li.product .product-actions,
body.tax-product_cat ul.products li.product .button-group{
  position:absolute !important;
  left:50% !important;
  top:132px !important;
  transform:translate(-50%, -50%) !important;
  z-index:10 !important;
  display:flex !important;
  gap:10px !important;
  align-items:center !important;
  justify-content:center !important;
  width:auto !important;
  height:auto !important;
  background:transparent !important;
}

/* If the theme injects empty black/dark pseudo elements around loop cards, neutralize them. */
body.woocommerce.archive ul.products li.product:before,
body.woocommerce.archive ul.products li.product:after,
body.tax-product_cat ul.products li.product:before,
body.tax-product_cat ul.products li.product:after{
  pointer-events:none !important;
}

body.woocommerce.archive .woocommerce-pagination,
body.tax-product_cat .woocommerce-pagination,
body.post-type-archive-product .woocommerce-pagination{
  width:100% !important;
  max-width:1280px !important;
  margin-left:auto !important;
  margin-right:auto !important;
  background:#f5f8fc !important;
  padding:0 24px 34px !important;
  box-sizing:border-box !important;
}

@media (max-width: 980px){
  body.woocommerce.archive ul.products,
  body.woocommerce-page.archive ul.products,
  body.tax-product_cat ul.products,
  body.post-type-archive-product ul.products{
    grid-template-columns:repeat(auto-fill, minmax(180px, 1fr)) !important;
    gap:16px !important;
    padding:16px !important;
  }
  body.woocommerce.archive ul.products li.product,
  body.tax-product_cat ul.products li.product{
    min-height:360px !important;
  }
  body.woocommerce.archive ul.products li.product img,
  body.tax-product_cat ul.products li.product img{
    height:170px !important;
    max-height:170px !important;
  }
}

/* v1.0.2 — Sidebar & Translation Polish
   Remove empty category sidebar / banner column and give the archive a full-width product grid. */
body.tax-product_cat .site-content,
body.post-type-archive-product .site-content,
body.woocommerce.archive .site-content,
body.woocommerce-page.archive .site-content{
  background:#f5f8fc !important;
}

/* Hide common WooCommerce/category sidebars only on product archives. */
body.tax-product_cat #secondary,
body.post-type-archive-product #secondary,
body.woocommerce.archive #secondary,
body.tax-product_cat .secondary,
body.post-type-archive-product .secondary,
body.woocommerce.archive .secondary,
body.tax-product_cat aside.widget-area,
body.post-type-archive-product aside.widget-area,
body.woocommerce.archive aside.widget-area,
body.tax-product_cat .widget-area.sidebar,
body.post-type-archive-product .widget-area.sidebar,
body.woocommerce.archive .widget-area.sidebar,
body.tax-product_cat .left-sidebar,
body.post-type-archive-product .left-sidebar,
body.woocommerce.archive .left-sidebar,
body.tax-product_cat .right-sidebar,
body.post-type-archive-product .right-sidebar,
body.woocommerce.archive .right-sidebar,
body.tax-product_cat .shop-sidebar,
body.post-type-archive-product .shop-sidebar,
body.woocommerce.archive .shop-sidebar,
body.tax-product_cat .woocommerce-sidebar,
body.post-type-archive-product .woocommerce-sidebar,
body.woocommerce.archive .woocommerce-sidebar,
body.tax-product_cat .sidebar-area,
body.post-type-archive-product .sidebar-area,
body.woocommerce.archive .sidebar-area,
body.tax-product_cat .primary-sidebar,
body.post-type-archive-product .primary-sidebar,
body.woocommerce.archive .primary-sidebar,
body.tax-product_cat .tm-left-sidebar,
body.post-type-archive-product .tm-left-sidebar,
body.woocommerce.archive .tm-left-sidebar{
  display:none !important;
  width:0 !important;
  max-width:0 !important;
  min-width:0 !important;
  padding:0 !important;
  margin:0 !important;
  border:0 !important;
  overflow:hidden !important;
}

/* Reset layouts that reserve an empty sidebar column. */
body.tax-product_cat #primary,
body.post-type-archive-product #primary,
body.woocommerce.archive #primary,
body.tax-product_cat .content-area,
body.post-type-archive-product .content-area,
body.woocommerce.archive .content-area,
body.tax-product_cat .site-main,
body.post-type-archive-product .site-main,
body.woocommerce.archive .site-main,
body.tax-product_cat .main-content,
body.post-type-archive-product .main-content,
body.woocommerce.archive .main-content,
body.tax-product_cat .primary-content,
body.post-type-archive-product .primary-content,
body.woocommerce.archive .primary-content,
body.tax-product_cat .woocommerce-products-header,
body.post-type-archive-product .woocommerce-products-header,
body.woocommerce.archive .woocommerce-products-header{
  float:none !important;
  width:100% !important;
  max-width:1280px !important;
  margin-left:auto !important;
  margin-right:auto !important;
  left:auto !important;
  right:auto !important;
  padding-left:24px !important;
  padding-right:24px !important;
  box-sizing:border-box !important;
}

/* Remove dark left block caused by theme grid/sidebar wrappers. */
body.tax-product_cat .site-content > .container,
body.post-type-archive-product .site-content > .container,
body.woocommerce.archive .site-content > .container,
body.tax-product_cat .main-container,
body.post-type-archive-product .main-container,
body.woocommerce.archive .main-container,
body.tax-product_cat .main-content-inner,
body.post-type-archive-product .main-content-inner,
body.woocommerce.archive .main-content-inner{
  background:#f5f8fc !important;
  display:block !important;
  grid-template-columns:1fr !important;
}

/* Larger cards when sidebar is removed: 4 columns on wide screens, 3 on normal desktop. */
body.tax-product_cat ul.products,
body.post-type-archive-product ul.products,
body.woocommerce.archive ul.products{
  grid-template-columns:repeat(4, minmax(0, 1fr)) !important;
  max-width:1280px !important;
  padding-left:0 !important;
  padding-right:0 !important;
}

@media (max-width:1200px){
  body.tax-product_cat ul.products,
  body.post-type-archive-product ul.products,
  body.woocommerce.archive ul.products{
    grid-template-columns:repeat(3, minmax(0, 1fr)) !important;
  }
}
@media (max-width:800px){
  body.tax-product_cat ul.products,
  body.post-type-archive-product ul.products,
  body.woocommerce.archive ul.products{
    grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width:520px){
  body.tax-product_cat #primary,
  body.post-type-archive-product #primary,
  body.woocommerce.archive #primary,
  body.tax-product_cat .content-area,
  body.post-type-archive-product .content-area,
  body.woocommerce.archive .content-area,
  body.tax-product_cat .site-main,
  body.post-type-archive-product .site-main,
  body.woocommerce.archive .site-main{
    padding-left:12px !important;
    padding-right:12px !important;
  }
  body.tax-product_cat ul.products,
  body.post-type-archive-product ul.products,
  body.woocommerce.archive ul.products{
    grid-template-columns:1fr !important;
  }
}

/* Polish hover labels and untranslated action buttons. */
body.tax-product_cat .product-button-hover a,
body.post-type-archive-product .product-button-hover a,
body.woocommerce.archive .product-button-hover a,
body.tax-product_cat .product-buttons a,
body.post-type-archive-product .product-buttons a,
body.woocommerce.archive .product-buttons a{
  text-decoration:none !important;
}

/* If TemplateMela injects tooltip text, keep it clean and compact. */
body.tax-product_cat .tooltip,
body.post-type-archive-product .tooltip,
body.woocommerce.archive .tooltip{
  font-size:12px !important;
  font-weight:700 !important;
}


/* v1.0.3 — Conversion Buttons
   Make the add-to-cart action visible and conversion-focused instead of hiding it only inside hover icons. */
body.tax-product_cat ul.products li.product .bt-loop-conversion-actions,
body.post-type-archive-product ul.products li.product .bt-loop-conversion-actions,
body.woocommerce.archive ul.products li.product .bt-loop-conversion-actions{
  margin:10px 0 8px !important;
  width:100% !important;
  display:block !important;
  clear:both !important;
}

body.tax-product_cat ul.products li.product .bt-loop-add-to-cart,
body.post-type-archive-product ul.products li.product .bt-loop-add-to-cart,
body.woocommerce.archive ul.products li.product .bt-loop-add-to-cart{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:100% !important;
  min-height:42px !important;
  border-radius:12px !important;
  background:var(--bt-yellow) !important;
  color:#111827 !important;
  font-weight:900 !important;
  font-size:14px !important;
  line-height:1.1 !important;
  text-align:center !important;
  text-decoration:none !important;
  border:0 !important;
  box-shadow:0 8px 18px rgba(255,184,0,.22) !important;
  padding:11px 14px !important;
  margin:0 !important;
  text-transform:none !important;
}

body.tax-product_cat ul.products li.product .bt-loop-add-to-cart:hover,
body.post-type-archive-product ul.products li.product .bt-loop-add-to-cart:hover,
body.woocommerce.archive ul.products li.product .bt-loop-add-to-cart:hover{
  filter:brightness(.97) !important;
  transform:translateY(-1px) !important;
  box-shadow:0 10px 22px rgba(255,184,0,.30) !important;
}

body.tax-product_cat ul.products li.product .bt-loop-add-to-cart.added,
body.post-type-archive-product ul.products li.product .bt-loop-add-to-cart.added,
body.woocommerce.archive ul.products li.product .bt-loop-add-to-cart.added{
  background:#16a34a !important;
  color:#fff !important;
}

body.tax-product_cat ul.products li.product .bt-loop-unavailable,
body.post-type-archive-product ul.products li.product .bt-loop-unavailable,
body.woocommerce.archive ul.products li.product .bt-loop-unavailable{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:100% !important;
  min-height:40px !important;
  border-radius:12px !important;
  background:#eef2f7 !important;
  color:#64748b !important;
  font-weight:900 !important;
  font-size:13px !important;
  border:1px solid #d8e1ec !important;
}

/* Keep WhatsApp as secondary CTA. */
body.tax-product_cat ul.products li.product a[href*="whatsapp"],
body.tax-product_cat ul.products li.product a[href*="wa.me"],
body.post-type-archive-product ul.products li.product a[href*="whatsapp"],
body.post-type-archive-product ul.products li.product a[href*="wa.me"],
body.woocommerce.archive ul.products li.product a[href*="whatsapp"],
body.woocommerce.archive ul.products li.product a[href*="wa.me"]{
  width:100% !important;
  max-width:none !important;
  min-height:38px !important;
  margin-top:8px !important;
  border-radius:12px !important;
  font-size:13px !important;
  padding:9px 12px !important;
}

/* Make Compare/Wishlist visually secondary and compact. */
body.tax-product_cat ul.products li.product a.compare,
body.post-type-archive-product ul.products li.product a.compare,
body.woocommerce.archive ul.products li.product a.compare,
body.tax-product_cat ul.products li.product .compare,
body.post-type-archive-product ul.products li.product .compare,
body.woocommerce.archive ul.products li.product .compare{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-height:32px !important;
  width:auto !important;
  margin:4px 0 0 !important;
  font-size:12px !important;
  border-radius:9px !important;
}

/* Existing theme hover add icon becomes optional quick action; primary buying button is now always visible. */
body.tax-product_cat ul.products li.product .product-button-hover a.add_to_cart_button,
body.tax-product_cat ul.products li.product .product-buttons a.add_to_cart_button,
body.tax-product_cat ul.products li.product .product-action a.add_to_cart_button,
body.post-type-archive-product ul.products li.product .product-button-hover a.add_to_cart_button,
body.post-type-archive-product ul.products li.product .product-buttons a.add_to_cart_button,
body.post-type-archive-product ul.products li.product .product-action a.add_to_cart_button,
body.woocommerce.archive ul.products li.product .product-button-hover a.add_to_cart_button,
body.woocommerce.archive ul.products li.product .product-buttons a.add_to_cart_button,
body.woocommerce.archive ul.products li.product .product-action a.add_to_cart_button{
  font-size:0 !important;
  width:42px !important;
  height:42px !important;
  min-height:42px !important;
  border-radius:12px !important;
  overflow:hidden !important;
}

/* Align card rhythm after adding the visible CTA. */
body.tax-product_cat ul.products li.product,
body.post-type-archive-product ul.products li.product,
body.woocommerce.archive ul.products li.product{
  min-height:475px !important;
}

body.tax-product_cat ul.products li.product .price,
body.post-type-archive-product ul.products li.product .price,
body.woocommerce.archive ul.products li.product .price{
  margin-top:8px !important;
  margin-bottom:4px !important;
}

@media (max-width:800px){
  body.tax-product_cat ul.products li.product .bt-loop-add-to-cart,
  body.post-type-archive-product ul.products li.product .bt-loop-add-to-cart,
  body.woocommerce.archive ul.products li.product .bt-loop-add-to-cart{
    min-height:44px !important;
    font-size:14px !important;
  }
}
