/*
Theme Name: NovaWholesale Professional
Theme URI: https://novawholesale.store
Author: NovaWholesale
Description: Professional WooCommerce wholesale marketplace theme with fixed product grids and clear product images, homepage featured products, shop layout, and marketplace footer.
Version: 3.5.0
Text Domain: novawholesale-professional
*/

:root{
  --nova-dark:#111;
  --nova-orange:#ff6a00;
  --nova-bg:#f6f7fb;
  --nova-card:#fff;
  --nova-text:#151515;
  --nova-muted:#666;
  --nova-border:#e9e9e9;
  --nova-shadow:0 10px 30px rgba(0,0,0,.07);
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;overflow-x:hidden}
body{font-family:Arial,Helvetica,sans-serif;background:var(--nova-bg);color:var(--nova-text)}
a{text-decoration:none;color:inherit}
img{max-width:100%;height:auto}
.nova-container{width:min(1280px,calc(100% - 40px));margin:auto}
.nova-header{position:sticky;top:0;z-index:99;background:rgba(255,255,255,.96);backdrop-filter:blur(12px);border-bottom:1px solid var(--nova-border)}
.admin-bar .nova-header{top:32px}
.nova-header-inner{height:76px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.nova-logo{display:flex;align-items:center;gap:12px}
.nova-logo-mark{width:42px;height:42px;border-radius:14px;background:linear-gradient(135deg,var(--nova-dark),var(--nova-orange));color:#fff;display:flex;align-items:center;justify-content:center;font-weight:900}
.nova-logo-title{font-size:24px;font-weight:900;line-height:1}
.nova-logo-sub{font-size:12px;color:var(--nova-muted);margin-top:4px}
.nova-nav{display:flex;align-items:center;gap:10px}
.nova-nav a{font-weight:800;padding:12px 16px;border-radius:12px}
.nova-nav a:hover{background:#f0f0f0}
.nova-btn{display:inline-flex;align-items:center;justify-content:center;border-radius:14px;padding:14px 22px;background:var(--nova-orange);color:#fff!important;font-weight:900;border:0;cursor:pointer;box-shadow:0 10px 22px rgba(255,106,0,.25)}
.nova-btn-dark{background:var(--nova-dark);box-shadow:none}
.nova-btn:hover{transform:translateY(-1px)}
.nova-hero{background:linear-gradient(135deg,#070707,#2b2b2b);color:#fff;padding:86px 0;border-radius:0 0 44px 44px}
.nova-hero-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:46px;align-items:center}
.nova-hero h1{font-size:64px;line-height:1.02;margin:0 0 22px;font-weight:900;letter-spacing:-2px}
.nova-hero p{font-size:18px;line-height:1.7;color:#d2d2d2;margin:0 0 28px;max-width:720px}
.nova-search{display:flex;background:#fff;border-radius:18px;padding:8px;max-width:680px;margin:28px 0}
.nova-search input{flex:1;border:0;outline:0;padding:16px 18px;font-size:15px;color:#111}
.nova-search button{border:0;background:var(--nova-orange);color:#fff;border-radius:14px;padding:0 28px;font-weight:900;cursor:pointer}
.nova-trust{display:flex;flex-wrap:wrap;gap:10px}
.nova-trust span{background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.12);padding:9px 14px;border-radius:999px;font-size:13px;font-weight:800}
.nova-hero-card{background:#fff;color:#111;border-radius:30px;padding:28px;box-shadow:0 25px 60px rgba(0,0,0,.35)}
.nova-hero-panel{background:#f7f8fb;border-radius:24px;padding:26px}
.nova-hero-panel h2{font-size:30px;line-height:1.15;margin:0 0 12px;font-weight:900}
.nova-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:22px 0}
.nova-stat{background:#fff;border-radius:18px;padding:18px;text-align:center}
.nova-stat strong{display:block;font-size:28px;font-weight:900}
.nova-stat small{color:var(--nova-muted)}
.nova-section{padding:72px 0}
.nova-title{text-align:center;margin-bottom:40px}
.nova-title span{display:inline-block;background:#111;color:#fff;padding:8px 16px;border-radius:999px;font-size:13px;font-weight:900}
.nova-title h2{font-size:42px;line-height:1.15;margin:16px 0 8px;font-weight:900;letter-spacing:-1px}
.nova-title p{color:var(--nova-muted);margin:0;font-size:16px}
.nova-cat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.nova-cat-card{background:#fff;border:1px solid var(--nova-border);border-radius:26px;padding:28px;box-shadow:var(--nova-shadow);cursor:pointer;transition:.25s;position:relative;overflow:hidden}
.nova-cat-card:before{content:"";position:absolute;top:0;left:0;width:100%;height:5px;background:linear-gradient(90deg,#111,var(--nova-orange))}
.nova-cat-card:hover,.nova-cat-card.active{transform:translateY(-6px);box-shadow:0 22px 55px rgba(0,0,0,.13);border-color:#111}
.nova-cat-icon{width:58px;height:58px;background:#111;color:#fff;border-radius:19px;display:flex;align-items:center;justify-content:center;font-size:27px;margin-bottom:18px}
.nova-cat-card h3{font-size:20px;line-height:1.28;margin:0 0 10px;font-weight:900}
.nova-cat-card p{font-size:14px;color:var(--nova-muted);line-height:1.6;margin:0}
.nova-cat-meta{display:flex;justify-content:space-between;align-items:center;margin-top:20px}
.nova-cat-badge{background:#fff3e8;color:#d35400;padding:7px 12px;border-radius:999px;font-size:12px;font-weight:900}
.nova-cat-arrow{font-size:24px;font-weight:900}
.nova-subbox{display:none;background:#fff;border-radius:30px;margin-top:32px;padding:30px;box-shadow:0 14px 38px rgba(0,0,0,.09);border:1px solid var(--nova-border)}
.nova-subbox.is-open{display:block}
.nova-subbox h3{font-size:28px;margin:0 0 8px;font-weight:900}
.nova-subbox p{color:var(--nova-muted);margin:0 0 24px}
.nova-subgrid{display:grid;grid-template-columns:repeat(4,1fr);gap:15px}
.nova-subitem{background:#f7f8fb;border:1px solid #e8e8e8;border-radius:18px;padding:18px;color:#111;font-weight:900;display:block;transition:.25s}
.nova-subitem:hover{background:#111;color:#fff;transform:translateY(-4px)}
.nova-subitem small{display:block;color:#777;margin-top:7px;font-weight:600}
.nova-subitem:hover small{color:#ddd}
.nova-benefits{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.nova-benefit{background:#fff;border-radius:24px;padding:26px;box-shadow:var(--nova-shadow)}
.nova-benefit h3{margin:0 0 10px;font-size:19px;font-weight:900}
.nova-benefit p{margin:0;color:var(--nova-muted);line-height:1.6;font-size:14px}
.nova-products-section{clear:both;width:100%;overflow:hidden}
.nova-products-header{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:28px;clear:both}
.nova-products-header h2{font-size:42px;margin:0 0 8px;font-weight:900;letter-spacing:-1px}
.nova-products-header p{color:var(--nova-muted);margin:0}

/* IMPORTANT FIXES: prevent WooCommerce floats from creating empty first columns */
.nova-products-grid,
.nova-shop-products,
.woocommerce,
.woocommerce .products-wrapper{
  clear:both;
  width:100%;
}
.woocommerce::after,
.nova-products-grid::after,
.nova-shop-products::after{
  content:"";
  display:block;
  clear:both;
}
.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering{
  float:none!important;
  display:block!important;
}
.woocommerce .woocommerce-ordering{
  text-align:right;
  margin-bottom:24px!important;
}

/* Product grid */
.woocommerce ul.products,
ul.products{
  clear:both!important;
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:24px!important;
  margin:0!important;
  padding:0!important;
  list-style:none!important;
  width:100%!important;
}
.woocommerce ul.products:before,
.woocommerce ul.products:after,
ul.products:before,
ul.products:after{
  display:none!important;
}
.woocommerce ul.products li.product,
ul.products li.product{
  float:none!important;
  clear:none!important;
  width:auto!important;
  max-width:none!important;
  margin:0!important;
  background:#fff!important;
  border:1px solid var(--nova-border)!important;
  border-radius:22px!important;
  padding:14px!important;
  box-shadow:var(--nova-shadow)!important;
  overflow:hidden!important;
  transition:.25s!important;
  min-height:100%;
}
.woocommerce ul.products li.product.first,
.woocommerce ul.products li.product.last,
ul.products li.product.first,
ul.products li.product.last{
  clear:none!important;
}
.woocommerce ul.products li.product:hover,
ul.products li.product:hover{
  transform:translateY(-4px);
  box-shadow:0 18px 45px rgba(0,0,0,.11)!important;
}
.woocommerce ul.products li.product img,
ul.products li.product img{
  width:100%!important;
  height:230px!important;
  object-fit:cover!important;
  border-radius:16px!important;
  margin:0 0 14px!important;
  background:#eee!important;
}
.woocommerce-loop-product__title,
.woocommerce ul.products li.product h2,
ul.products li.product h2{
  font-size:15px!important;
  line-height:1.45!important;
  margin:0 0 10px!important;
  font-weight:900!important;
  color:#111!important;
  padding:0!important;
}
.woocommerce ul.products li.product .price,
ul.products li.product .price{
  font-size:18px!important;
  color:#111!important;
  font-weight:900!important;
  margin:0 0 12px!important;
  display:block!important;
}
.woocommerce ul.products li.product .button,
ul.products li.product .button{
  display:block!important;
  text-align:center!important;
  background:#111!important;
  color:#fff!important;
  border-radius:14px!important;
  padding:12px 14px!important;
  font-size:13px!important;
  font-weight:900!important;
  margin-top:12px!important;
}
.woocommerce-pagination{margin-top:34px;text-align:center}
.nova-shop-hero{background:#111;color:#fff;border-radius:34px;padding:46px;margin:34px 0}
.nova-shop-hero h1{font-size:46px;margin:0 0 10px;font-weight:900}
.nova-shop-hero p{color:#ccc;font-size:17px;margin:0}
.nova-shop-cats{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin:30px 0 36px}
.nova-shop-cat{background:#fff;border-radius:22px;border:1px solid var(--nova-border);padding:24px;box-shadow:var(--nova-shadow)}
.nova-shop-cat h3{margin:0 0 12px;font-size:18px;font-weight:900}
.nova-shop-cat a{display:inline-flex;margin-top:12px;color:#fff;background:#111;border-radius:12px;padding:10px 14px;font-weight:900;font-size:13px}
.nova-footer{background:#090909;color:#fff;margin-top:50px;padding:64px 0 28px}
.nova-footer-grid{display:grid;grid-template-columns:1.5fr repeat(3,1fr);gap:34px}
.nova-footer h3,.nova-footer h4{margin:0 0 16px;font-weight:900}
.nova-footer p,.nova-footer a{color:#cfcfcf;font-size:14px;line-height:1.8}
.nova-footer a{display:block;margin-bottom:8px}
.nova-footer a:hover{color:#fff}
.nova-footer-logo{display:flex;align-items:center;gap:12px;margin-bottom:14px}
.nova-footer-badges{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
.nova-footer-badges span{background:rgba(255,255,255,.1);padding:8px 10px;border-radius:999px;font-size:12px;color:#ddd}
.nova-footer-bottom{border-top:1px solid rgba(255,255,255,.12);margin-top:34px;padding-top:22px;display:flex;justify-content:space-between;gap:20px;color:#aaa;font-size:13px}
@media(max-width:1000px){
  .nova-hero-grid,.nova-cat-grid,.nova-benefits,.nova-shop-cats{grid-template-columns:repeat(2,1fr)}
  .nova-subgrid{grid-template-columns:repeat(2,1fr)}
  .woocommerce ul.products,ul.products{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .nova-footer-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:700px){
  .nova-container{width:min(100% - 28px,1280px)}
  .nova-header-inner{height:auto;padding:14px 0;flex-direction:column;align-items:flex-start}
  .nova-nav{width:100%;flex-wrap:wrap}
  .nova-hero{padding:54px 0;border-radius:0 0 28px 28px}
  .nova-hero-grid,.nova-cat-grid,.nova-benefits,.nova-shop-cats,.nova-subgrid,.nova-footer-grid{grid-template-columns:1fr}
  .nova-hero h1{font-size:38px;letter-spacing:-1px}
  .nova-title h2,.nova-products-header h2,.nova-shop-hero h1{font-size:32px}
  .nova-search{flex-direction:column}
  .nova-search button{padding:14px}
  .nova-stats{grid-template-columns:1fr}
  .woocommerce ul.products,ul.products{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important}
  .woocommerce ul.products li.product img,ul.products li.product img{height:170px!important}
  .nova-footer-bottom{flex-direction:column}
}


/* V3 FIX: show full product images clearly, do not crop */
.woocommerce ul.products li.product img,
ul.products li.product img{
  height:260px!important;
  width:100%!important;
  object-fit:contain!important;
  object-position:center center!important;
  background:#fff!important;
  padding:12px!important;
  border-radius:16px!important;
  display:block!important;
}

.woocommerce ul.products li.product,
ul.products li.product{
  display:flex!important;
  flex-direction:column!important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__link,
ul.products li.product .woocommerce-loop-product__link{
  display:block!important;
}

@media(max-width:700px){
  .woocommerce ul.products li.product img,
  ul.products li.product img{
    height:210px!important;
    object-fit:contain!important;
    padding:10px!important;
  }
}


/* V4 Premium support/policy/cart pages */
.nova-page-hero{
  background:linear-gradient(135deg,#080808,#2b2b2b);
  color:#fff;
  padding:72px 0;
  border-radius:0 0 38px 38px;
}
.nova-page-hero span{
  display:inline-block;
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.14);
  padding:8px 14px;
  border-radius:999px;
  font-size:13px;
  font-weight:900;
  margin-bottom:18px;
}
.nova-page-hero h1{
  font-size:54px;
  line-height:1.05;
  margin:0 0 14px;
  font-weight:900;
  color:#fff;
}
.nova-page-hero p{
  max-width:760px;
  color:#d4d4d4;
  font-size:18px;
  line-height:1.7;
  margin:0;
}
.nova-page-section{
  padding:58px 0 74px;
}
.nova-info-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
  margin-bottom:30px;
}
.nova-info-card{
  background:#fff;
  border:1px solid var(--nova-border);
  border-radius:24px;
  padding:26px;
  box-shadow:var(--nova-shadow);
}
.nova-info-card h3{
  margin:0 0 10px;
  font-size:18px;
  font-weight:900;
}
.nova-info-card strong{
  display:block;
  font-size:21px;
  margin-bottom:10px;
}
.nova-info-card p{
  margin:0;
  color:var(--nova-muted);
  line-height:1.65;
}
.nova-policy-body,
.nova-contact-panel{
  background:#fff;
  border:1px solid var(--nova-border);
  border-radius:28px;
  padding:34px;
  box-shadow:var(--nova-shadow);
}
.nova-policy-body h3,
.nova-contact-panel h3{
  font-size:24px;
  font-weight:900;
  margin:0 0 12px;
}
.nova-policy-body p{
  color:var(--nova-muted);
  line-height:1.8;
  margin:0 0 24px;
}
.nova-contact-form{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:16px;
  margin-top:22px;
}
.nova-contact-form input,
.nova-contact-form textarea{
  width:100%;
  border:1px solid var(--nova-border);
  border-radius:16px;
  padding:15px 16px;
  font-size:15px;
  outline:none;
  background:#f8f8f8;
}
.nova-contact-form textarea{
  grid-column:1/-1;
  min-height:150px;
  resize:vertical;
}
.nova-contact-form button{
  background:#111;
  color:#fff;
  border:0;
  border-radius:16px;
  padding:15px 20px;
  font-weight:900;
  cursor:pointer;
}
.nova-woo-box .woocommerce{
  max-width:100%;
}
.nova-woo-box table.shop_table{
  border-radius:18px!important;
  overflow:hidden;
}
.nova-woo-box .button,
.nova-woo-box button,
.nova-woo-box input[type="submit"]{
  background:#111!important;
  color:#fff!important;
  border-radius:14px!important;
  padding:13px 18px!important;
  font-weight:900!important;
}
@media(max-width:900px){
  .nova-info-grid{grid-template-columns:1fr}
  .nova-page-hero h1{font-size:38px}
  .nova-contact-form{grid-template-columns:1fr}
}
