/*
Theme Name: NSD Mart Commerce
Theme URI: https://nsdmart.in/
Author: NSD Mart
Description: Custom WooCommerce theme for NSD Mart with modern marketplace homepage and shop layout.
Version: 98.14
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: nsdmart
*/

:root{
  --nsd-blue:#071a46;
  --nsd-blue-2:#0c2e72;
  --nsd-orange:#ffad0a;
  --nsd-bg:#f7f8fb;
  --nsd-text:#172033;
  --nsd-border:#e6e9ef;
}
*{box-sizing:border-box}
body{margin:0;font-family:Arial,Helvetica,sans-serif;background:#fff;color:var(--nsd-text)}
a{text-decoration:none;color:inherit}
img{max-width:100%;height:auto}
.nsd-container{width:min(1420px,94%);margin:auto}
.nsd-topbar{background:var(--nsd-blue);color:#fff;font-size:12px}
.nsd-topbar .nsd-container{display:flex;justify-content:space-between;gap:20px;padding:8px 0;flex-wrap:wrap}
.nsd-header-main{background:#fff;border-bottom:1px solid var(--nsd-border)}
.nsd-header-row{display:grid;grid-template-columns:240px 1fr 340px;gap:24px;align-items:center;padding:18px 0}
.nsd-logo{display:flex;align-items:center;gap:10px;font-size:31px;font-weight:800;color:var(--nsd-blue)}
.nsd-logo-bag{width:42px;height:42px;border:3px solid var(--nsd-orange);border-radius:8px;display:grid;place-items:center;color:var(--nsd-orange)}
.nsd-logo span{color:var(--nsd-orange);font-weight:600}
.nsd-search{display:flex;border:1px solid var(--nsd-border);border-radius:7px;overflow:hidden;background:#fff}
.nsd-search select,.nsd-search input{border:0;padding:14px;outline:0}
.nsd-search select{background:#f7f7f8;min-width:150px}
.nsd-search input{flex:1}
.nsd-search button{border:0;background:var(--nsd-orange);padding:0 26px;font-weight:700;cursor:pointer}
.nsd-header-actions{display:flex;justify-content:flex-end;gap:22px;font-size:13px}
.nsd-header-actions div{display:flex;gap:8px;align-items:center}
.nsd-nav{background:var(--nsd-blue);color:#fff}
.nsd-nav .nsd-container{display:flex;align-items:center}
.nsd-allcats{background:var(--nsd-orange);color:#fff;font-weight:700;padding:15px 24px;min-width:220px}
.nsd-menu{display:flex;gap:28px;padding:0 24px;align-items:center;flex:1}
.nsd-menu a{font-size:14px;font-weight:600}
.nsd-whatsapp{background:#0d8f47;padding:15px 20px;font-weight:700}
.nsd-main-wrap{background:var(--nsd-bg);padding:14px 0 0}
.nsd-hero-grid{display:grid;grid-template-columns:220px 1fr;gap:14px}
.nsd-sidebar{background:#fff;border:1px solid var(--nsd-border);border-radius:8px;padding:12px 0}
.nsd-sidebar a{display:block;padding:11px 18px;font-size:14px;border-bottom:1px solid #f3f3f3}
.nsd-hero{min-height:360px;border-radius:10px;padding:50px 60px;background:linear-gradient(90deg,#fffaf3 0%,#fff 46%,#fff1d2 100%);position:relative;overflow:hidden;display:flex;align-items:center}
.nsd-hero-content{position:relative;z-index:2;max-width:520px}
.nsd-kicker{font-size:14px;font-weight:800;color:var(--nsd-blue);letter-spacing:.5px}
.nsd-hero h1{font-size:56px;line-height:1.03;margin:14px 0;color:var(--nsd-blue)}
.nsd-hero h1 span{display:block;color:var(--nsd-orange)}
.nsd-hero p{font-size:17px;line-height:1.7;color:#5c6373}
.nsd-btn{display:inline-block;background:var(--nsd-blue);color:#fff;padding:14px 28px;border-radius:5px;font-weight:700;margin-right:12px}
.nsd-btn.alt{background:transparent;color:var(--nsd-blue)}
.nsd-hero-art{position:absolute;right:4%;bottom:0;width:45%;height:92%;display:flex;align-items:flex-end;justify-content:center}
.nsd-hero-circle{position:absolute;width:330px;height:330px;border-radius:50%;background:var(--nsd-orange);right:8%;top:7%}
.nsd-device{position:relative;z-index:2;width:70%;height:75%;background:linear-gradient(145deg,#dbe5f0,#87a5c2);border-radius:30px 30px 10px 10px;box-shadow:0 18px 35px rgba(0,0,0,.15)}
.nsd-badges{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;padding:20px 0}
.nsd-badge{background:#fff;border:1px solid var(--nsd-border);border-radius:8px;padding:18px;display:flex;gap:12px;align-items:center}
.nsd-badge strong{display:block;font-size:14px}.nsd-badge span{font-size:12px;color:#697184}
.nsd-strip{background:var(--nsd-blue);color:#fff;border-radius:8px;display:grid;grid-template-columns:repeat(4,1fr);padding:20px 25px;gap:20px}
.nsd-section{padding:30px 0}
.nsd-section-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}
.nsd-section h2{font-size:30px;margin:0}
.nsd-products{display:grid;grid-template-columns:repeat(5,1fr);gap:16px}
.nsd-product-card{background:#fff;border:1px solid var(--nsd-border);border-radius:9px;padding:14px;position:relative}
.nsd-sale{position:absolute;left:10px;top:10px;background:#e53935;color:#fff;font-size:11px;padding:5px 7px;border-radius:20px}
.nsd-prod-img{height:185px;background:linear-gradient(180deg,#fafafa,#eceff4);border-radius:7px;margin-bottom:14px;display:grid;place-items:center;color:#9ba3b2;font-weight:700}
.nsd-product-card h3{font-size:15px;line-height:1.4;margin:8px 0;min-height:42px}
.nsd-stars{color:#ffad0a;font-size:12px}.nsd-price{font-weight:800;margin-top:8px}.nsd-old{text-decoration:line-through;color:#999;font-size:12px;margin-left:6px}
.nsd-cat-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:14px}
.nsd-cat{border-radius:10px;padding:18px;text-align:center;min-height:130px;display:flex;flex-direction:column;justify-content:center;font-weight:700}
.nsd-cat:nth-child(1){background:#e7f6ff}.nsd-cat:nth-child(2){background:#ffe9eb}.nsd-cat:nth-child(3){background:#fff3d7}.nsd-cat:nth-child(4){background:#e8f7e8}.nsd-cat:nth-child(5){background:#f4eaff}.nsd-cat:nth-child(6){background:#e4f5f9}
.nsd-footer{background:var(--nsd-blue);color:#fff;margin-top:30px}
.nsd-footer-grid{display:grid;grid-template-columns:2fr repeat(4,1fr);gap:28px;padding:45px 0}
.nsd-footer h4{margin:0 0 14px}.nsd-footer a{display:block;color:#d6def0;margin:9px 0;font-size:14px}
.nsd-copy{border-top:1px solid rgba(255,255,255,.15);padding:14px 0;font-size:13px}

/* Shop */
.nsd-shop-shell{display:grid;grid-template-columns:240px 1fr;gap:24px;padding:25px 0}
.nsd-shop-sidebar{background:#fff;border:1px solid var(--nsd-border);border-radius:8px;padding:18px}
.nsd-shop-sidebar h3{margin-top:0}.nsd-filter{padding:16px 0;border-bottom:1px solid var(--nsd-border)}
.nsd-shop-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}
.woocommerce ul.products{display:grid!important;grid-template-columns:repeat(4,1fr)!important;gap:18px!important}
.woocommerce ul.products li.product{width:auto!important;margin:0!important;background:#fff;border:1px solid var(--nsd-border);border-radius:8px;padding:14px!important}
.woocommerce ul.products li.product .button{background:var(--nsd-blue)!important;color:#fff!important}
.woocommerce div.product{padding:30px 0}

@media(max-width:1024px){
.nsd-header-row{grid-template-columns:1fr}.nsd-header-actions{justify-content:flex-start}.nsd-menu{overflow:auto}.nsd-hero-grid{grid-template-columns:1fr}.nsd-sidebar{display:none}.nsd-products{grid-template-columns:repeat(3,1fr)}.nsd-cat-grid{grid-template-columns:repeat(3,1fr)}.nsd-footer-grid{grid-template-columns:repeat(2,1fr)}.nsd-shop-shell{grid-template-columns:1fr}.nsd-shop-sidebar{display:none}.woocommerce ul.products{grid-template-columns:repeat(3,1fr)!important}
}
@media(max-width:640px){
.nsd-topbar .nsd-container{justify-content:center}.nsd-header-actions{display:none}.nsd-search select{display:none}.nsd-nav .nsd-container{overflow:auto}.nsd-menu{gap:18px}.nsd-allcats{display:none}.nsd-whatsapp{display:none}.nsd-hero{padding:32px 24px;min-height:420px;align-items:flex-start}.nsd-hero h1{font-size:39px}.nsd-hero-art{width:65%;opacity:.35}.nsd-badges,.nsd-strip{grid-template-columns:1fr}.nsd-products{grid-template-columns:repeat(2,1fr)}.nsd-cat-grid{grid-template-columns:repeat(2,1fr)}.nsd-footer-grid{grid-template-columns:1fr}.woocommerce ul.products{grid-template-columns:repeat(2,1fr)!important}
}

/* V2 customizer enhancements */
.nsd-logo .custom-logo{max-height:62px;width:auto}.nsd-logo small{display:block;font-size:10px;font-weight:400;color:#555}.nsd-header-actions a{display:flex;gap:8px;align-items:center}.nsd-hero-grid.no-sidebar{grid-template-columns:1fr}.nsd-hero-product-image{position:relative;z-index:2;max-width:90%;max-height:100%;object-fit:contain;filter:drop-shadow(0 20px 24px rgba(0,0,0,.18))}.nsd-search,.dgwt-wcas-search-wrapp{width:100%}.nsd-btn,.nsd-search,.nsd-product-card,.woocommerce ul.products li.product,.nsd-cat,.nsd-badge,.nsd-sidebar,.nsd-strip{border-radius:var(--nsd-radius)}

/* V2.1 Premium account, wishlist and cart actions */
.nsd-header-actions{gap:10px;align-items:center}
.nsd-action-card{position:relative;display:flex!important;align-items:center;gap:10px;min-height:58px;padding:9px 12px;border:1px solid #e5e9f2;border-radius:12px;background:#fff;box-shadow:0 3px 12px rgba(7,26,70,.06);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;color:var(--nsd-blue)}
.nsd-action-card:hover{transform:translateY(-2px);border-color:rgba(255,173,10,.65);box-shadow:0 8px 22px rgba(7,26,70,.12)}
.nsd-action-icon{position:relative;display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border-radius:10px;background:#f1f5ff;color:var(--nsd-blue)}
.nsd-action-icon svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.nsd-account-action .nsd-action-icon svg{fill:currentColor;stroke:none}
.nsd-wishlist-action .nsd-action-icon{background:#fff1f3;color:#e11d48}
.nsd-cart-action .nsd-action-icon{background:#fff7e6;color:#d97706}
.nsd-action-copy{display:flex;flex-direction:column;line-height:1.1;white-space:nowrap}
.nsd-action-copy small{font-size:10px;color:#6b7280;margin-bottom:4px;font-weight:500}
.nsd-action-copy strong{font-size:13px;color:#111827;font-weight:800;max-width:110px;overflow:hidden;text-overflow:ellipsis}
.nsd-action-count{position:absolute;right:-5px;top:-6px;display:grid;place-items:center;min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:var(--nsd-orange);color:#071a46;border:2px solid #fff;font-size:10px;font-weight:900;box-shadow:0 2px 7px rgba(0,0,0,.18)}
.nsd-cart-action{min-width:128px}
.nsd-wishlist-action{min-width:118px}
.nsd-account-action{min-width:145px}
@media(max-width:1200px){.nsd-header-row{grid-template-columns:220px 1fr 300px}.nsd-action-copy small{display:none}.nsd-action-card{min-width:auto;padding:8px}.nsd-action-copy strong{font-size:12px}.nsd-account-action,.nsd-wishlist-action,.nsd-cart-action{min-width:auto}}

/* V2.1.1 Header overlap fix */
.nsd-header-row{
  grid-template-columns:220px minmax(360px,1fr) max-content;
  gap:16px;
}
.nsd-header-row > *{min-width:0}
.nsd-header-actions{width:max-content;flex-wrap:nowrap}
.nsd-search,.dgwt-wcas-search-wrapp{min-width:0;max-width:100%}
.nsd-account-action{min-width:132px}
.nsd-wishlist-action{min-width:108px}
.nsd-cart-action{min-width:116px}
.nsd-action-card{padding:8px 10px;gap:8px}
.nsd-action-icon{flex-basis:36px;width:36px;height:36px}
.nsd-action-copy strong{max-width:92px}

@media(max-width:1320px){
  .nsd-header-row{grid-template-columns:205px minmax(300px,1fr) max-content;gap:12px}
  .nsd-action-copy small{display:none}
  .nsd-action-card{min-width:auto;padding:7px 8px}
  .nsd-action-copy strong{font-size:12px;max-width:78px}
  .nsd-action-icon{flex-basis:34px;width:34px;height:34px}
}


/* V3 Homepage sections */
.nsd-home-notice{background:#fff7db;border:1px solid #ffd36a;border-radius:10px;padding:14px 18px;margin:0 0 18px;font-size:14px}
.nsd-software-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.nsd-software-card{background:#fff;border:1px solid var(--nsd-border);border-radius:12px;padding:22px;box-shadow:0 8px 25px rgba(7,26,70,.06);transition:.2s}
.nsd-software-card:hover{transform:translateY(-4px);box-shadow:0 14px 32px rgba(7,26,70,.12)}
.nsd-software-icon{width:48px;height:48px;border-radius:12px;background:linear-gradient(135deg,var(--nsd-blue),#1654b8);color:#fff;display:grid;place-items:center;font-size:24px;margin-bottom:14px}
.nsd-software-card h3{margin:0 0 8px;color:var(--nsd-blue);font-size:18px}
.nsd-software-card p{margin:0 0 14px;color:#667085;font-size:14px;line-height:1.6}
.nsd-link-btn{display:inline-flex;align-items:center;gap:7px;color:var(--nsd-blue);font-weight:700;font-size:14px}
.nsd-empty-products{background:#fff;border:1px dashed var(--nsd-border);border-radius:10px;padding:26px;text-align:center;color:#667085}
@media(max-width:1000px){.nsd-software-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){.nsd-software-grid{grid-template-columns:1fr}}

/* =========================================================
   V3.1 Professional Single Product Page
   ========================================================= */
.nsd-single-product-page{background:#f5f7fb;padding:22px 0 40px}
.nsd-product-main{width:100%;min-width:0}
.nsd-single-product-page .woocommerce-breadcrumb{margin:0 0 16px;padding:0;color:#667085;font-size:13px}
.nsd-single-product-page .woocommerce-breadcrumb a{color:#475467}
.nsd-breadcrumb-sep{display:inline-block;margin:0 8px;color:#98a2b3}

.nsd-single-product-page div.product{display:grid;grid-template-columns:minmax(420px,1.05fr) minmax(420px,.95fr);column-gap:38px;row-gap:24px;background:#fff;border:1px solid #e5e9f2;border-radius:16px;padding:28px!important;box-shadow:0 10px 32px rgba(7,26,70,.07)}
.nsd-single-product-page div.product .woocommerce-product-gallery{width:100%!important;float:none!important;margin:0!important;min-width:0}
.nsd-single-product-page div.product .summary{width:100%!important;float:none!important;margin:0!important;min-width:0;padding:4px 0}
.nsd-single-product-page div.product .woocommerce-tabs,
.nsd-single-product-page div.product .related,
.nsd-single-product-page div.product .upsells{grid-column:1/-1;width:100%;clear:both}

.nsd-single-product-page .woocommerce-product-gallery__wrapper{border:1px solid #edf0f5;border-radius:14px;overflow:hidden;background:#fff}
.nsd-single-product-page .woocommerce-product-gallery__image a{display:flex;align-items:center;justify-content:center;min-height:520px;background:#fff}
.nsd-single-product-page .woocommerce-product-gallery__image img{width:100%!important;max-height:560px;object-fit:contain;padding:14px}
.nsd-single-product-page .flex-control-thumbs{display:grid!important;grid-template-columns:repeat(5,1fr);gap:10px;margin:12px 0 0!important;padding:0!important}
.nsd-single-product-page .flex-control-thumbs li{width:auto!important;float:none!important;margin:0!important}
.nsd-single-product-page .flex-control-thumbs img{border:2px solid #e8ecf3;border-radius:10px;padding:4px;background:#fff;opacity:1!important}
.nsd-single-product-page .flex-control-thumbs img.flex-active{border-color:var(--nsd-orange)}
.nsd-single-product-page .woocommerce-product-gallery__trigger{top:14px!important;right:14px!important;background:#fff!important;box-shadow:0 5px 18px rgba(0,0,0,.12)}

.nsd-single-product-page .product_title{font-size:32px;line-height:1.22;color:#0b1f48;margin:0 0 12px!important;font-weight:800}
.nsd-single-product-page .woocommerce-product-rating{display:flex;align-items:center;gap:10px;margin:0 0 14px!important}
.nsd-single-product-page .star-rating{color:#ffad0a}
.nsd-single-product-page .woocommerce-review-link{font-size:13px;color:#475467}
.nsd-single-product-page p.price{display:flex;align-items:center;flex-wrap:wrap;gap:9px;margin:10px 0 4px!important;color:#071a46!important;font-size:28px!important;font-weight:900}
.nsd-single-product-page p.price del{color:#98a2b3!important;font-size:17px;opacity:1!important;font-weight:500}
.nsd-single-product-page p.price ins{text-decoration:none;color:#071a46}
.nsd-discount-badge{display:inline-flex;align-items:center;background:#eaf8ef;color:#087a3e;border:1px solid #bce7cb;border-radius:999px;padding:5px 10px;margin:5px 0 15px;font-size:12px;font-weight:900}
.nsd-single-product-page .woocommerce-product-details__short-description{color:#475467;line-height:1.7;border-top:1px solid #edf0f5;padding-top:15px;margin-top:5px}
.nsd-single-product-page .stock{display:inline-flex;align-items:center;background:#eaf8ef;color:#087a3e;border-radius:999px;padding:6px 11px;font-weight:800;font-size:13px}

.nsd-single-product-page form.cart{display:flex!important;align-items:stretch;flex-wrap:wrap;gap:10px;margin:20px 0 16px!important;padding:18px;background:#f8faff;border:1px solid #e7ecf5;border-radius:13px}
.nsd-single-product-page form.cart .quantity{margin:0!important}
.nsd-single-product-page form.cart .qty{height:50px;width:74px;border:1px solid #cfd6e3;border-radius:8px;font-size:16px;font-weight:700;text-align:center}
.nsd-single-product-page form.cart .single_add_to_cart_button,
.nsd-single-product-page form.cart .nsd-buy-now{height:50px!important;border-radius:8px!important;padding:0 24px!important;font-size:15px!important;font-weight:900!important;line-height:50px!important;transition:.2s}
.nsd-single-product-page form.cart .single_add_to_cart_button{background:var(--nsd-blue)!important;color:#fff!important;flex:1 1 170px}
.nsd-single-product-page form.cart .single_add_to_cart_button:hover{transform:translateY(-1px);filter:brightness(1.08)}
.nsd-single-product-page form.cart .nsd-buy-now{background:var(--nsd-orange)!important;color:#071a46!important;flex:1 1 150px;border:0!important}
.nsd-single-product-page form.cart .nsd-buy-now:hover{transform:translateY(-1px);filter:brightness(.96)}
.nsd-single-product-page .tinvwl_add_to_wishlist_button,
.nsd-single-product-page .woosw-btn,
.nsd-single-product-page .add_to_wishlist{display:inline-flex!important;align-items:center;justify-content:center;min-height:42px;padding:9px 14px!important;border:1px solid #d8deea!important;border-radius:8px!important;background:#fff!important;color:#071a46!important;font-weight:700!important;text-decoration:none!important}

.nsd-product-benefits{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:18px 0}
.nsd-benefit-item{display:flex;align-items:center;gap:11px;border:1px solid #e6eaf1;background:#fff;border-radius:11px;padding:12px}
.nsd-benefit-icon{display:grid;place-items:center;width:38px;height:38px;flex:0 0 38px;border-radius:10px;background:#fff5df;color:#a85f00;font-size:18px;font-weight:900}
.nsd-benefit-item span:last-child{display:flex;flex-direction:column;min-width:0}
.nsd-benefit-item strong{font-size:13px;color:#172033}
.nsd-benefit-item small{font-size:11px;color:#667085;margin-top:3px;line-height:1.35}

.nsd-single-product-page .product_meta{border-top:1px solid #edf0f5;padding-top:15px;margin-top:12px;color:#667085;font-size:13px}
.nsd-single-product-page .product_meta > span{display:block;margin:6px 0}
.nsd-single-product-page .product_meta a{color:#071a46;font-weight:700}

.nsd-single-product-page .woocommerce-tabs{margin-top:8px;background:#fff;border:1px solid #e5e9f2;border-radius:14px;padding:22px}
.nsd-single-product-page .woocommerce-tabs ul.tabs{display:flex;gap:8px;flex-wrap:wrap;padding:0!important;margin:0 0 22px!important;border-bottom:1px solid #e8ecf3}
.nsd-single-product-page .woocommerce-tabs ul.tabs::before{display:none!important}
.nsd-single-product-page .woocommerce-tabs ul.tabs li{border:0!important;background:transparent!important;margin:0!important;padding:0!important;border-radius:0!important}
.nsd-single-product-page .woocommerce-tabs ul.tabs li::before,
.nsd-single-product-page .woocommerce-tabs ul.tabs li::after{display:none!important}
.nsd-single-product-page .woocommerce-tabs ul.tabs li a{padding:12px 16px!important;color:#667085!important;font-weight:800!important;border-bottom:3px solid transparent}
.nsd-single-product-page .woocommerce-tabs ul.tabs li.active a{color:#071a46!important;border-bottom-color:var(--nsd-orange)}
.nsd-single-product-page .woocommerce-Tabs-panel{color:#475467;line-height:1.75}
.nsd-single-product-page .woocommerce-Tabs-panel h2{font-size:24px;color:#071a46}

.nsd-single-product-page .related.products,
.nsd-single-product-page .upsells.products{margin-top:10px;background:#fff;border:1px solid #e5e9f2;border-radius:14px;padding:22px}
.nsd-single-product-page .related.products > h2,
.nsd-single-product-page .upsells.products > h2{font-size:26px;color:#071a46;margin:0 0 18px}

@media(max-width:980px){
  .nsd-single-product-page div.product{grid-template-columns:1fr;padding:20px!important}
  .nsd-single-product-page .woocommerce-product-gallery__image a{min-height:420px}
  .nsd-single-product-page .woocommerce-tabs,.nsd-single-product-page .related,.nsd-single-product-page .upsells{grid-column:1}
}
@media(max-width:640px){
  .nsd-single-product-page{padding-top:12px}
  .nsd-single-product-page div.product{padding:14px!important;border-radius:12px}
  .nsd-single-product-page .product_title{font-size:24px}
  .nsd-single-product-page p.price{font-size:24px!important}
  .nsd-single-product-page .woocommerce-product-gallery__image a{min-height:320px}
  .nsd-single-product-page form.cart{padding:12px}
  .nsd-single-product-page form.cart .quantity{width:100%}
  .nsd-single-product-page form.cart .qty{width:100%}
  .nsd-single-product-page form.cart .single_add_to_cart_button,
  .nsd-single-product-page form.cart .nsd-buy-now{flex:1 1 100%}
  .nsd-product-benefits{grid-template-columns:1fr}
  .nsd-single-product-page .woocommerce-tabs{padding:15px}
}


/* V3.2 automatic percentage sale badge */
.woocommerce span.onsale.nsd-percentage-sale-badge,
.woocommerce-page span.onsale.nsd-percentage-sale-badge{
  min-width:auto;
  min-height:auto;
  line-height:1;
  padding:9px 11px;
  border-radius:8px;
  background:linear-gradient(135deg,#ff6a00,#e53935);
  color:#fff;
  font-size:12px;
  font-weight:900;
  letter-spacing:.2px;
  box-shadow:0 6px 16px rgba(229,57,53,.25);
  top:14px;
  left:14px;
  margin:0;
  z-index:5;
}
@media(max-width:600px){
  .woocommerce span.onsale.nsd-percentage-sale-badge,
  .woocommerce-page span.onsale.nsd-percentage-sale-badge{
    padding:8px 9px;
    font-size:11px;
    top:10px;
    left:10px;
  }
}


/* =========================================================
   V3.4 — Premium product cards and HD gallery zoom
   ========================================================= */

/* Product gallery: clear zoom affordance and smooth image behaviour. */
.nsd-single-product-page .woocommerce-product-gallery{position:relative}
.nsd-single-product-page .woocommerce-product-gallery__image{overflow:hidden;border-radius:14px}
.nsd-single-product-page .woocommerce-product-gallery__image a{cursor:zoom-in}
.nsd-single-product-page .woocommerce-product-gallery__image img{transition:transform .24s ease,opacity .2s ease;backface-visibility:hidden}
.nsd-single-product-page .woocommerce-product-gallery__image:hover img:not(.zoomImg){transform:scale(1.015)}
.nsd-single-product-page .woocommerce-product-gallery .zoomImg{cursor:crosshair}
.nsd-gallery-zoom-hint{display:flex;align-items:center;justify-content:center;gap:8px;margin:11px 0 3px;color:#667085;font-size:12px;font-weight:700}
.nsd-gallery-zoom-hint span:first-child{display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:#eef3fb;color:#071a46;font-size:17px}
.pswp__bg{background:rgba(3,12,31,.96)!important}
.pswp__button{opacity:1!important}

/* Product cards: modern marketplace layout without fake ratings. */
.woocommerce ul.products li.product{display:flex;flex-direction:column;overflow:hidden;box-shadow:0 5px 18px rgba(7,26,70,.055);transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease}
.woocommerce ul.products li.product:hover{transform:translateY(-4px);box-shadow:0 14px 34px rgba(7,26,70,.13);border-color:#d5ddea}
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link{display:block;color:inherit;text-decoration:none}
.woocommerce ul.products li.product a img{aspect-ratio:1/1;object-fit:contain;margin:0 0 12px!important;border-radius:8px;background:#fff;transition:transform .28s ease}
.woocommerce ul.products li.product:hover a img{transform:scale(1.025)}
.woocommerce ul.products li.product .woocommerce-loop-product__title{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;min-height:42px;margin:3px 0 8px!important;font-size:15px!important;line-height:1.38!important;color:#172033;font-weight:800!important}
.woocommerce ul.products li.product .star-rating{margin:0 0 7px!important;color:#ffad0a;font-size:13px}
.woocommerce ul.products li.product .price{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin:0 0 7px!important;color:#071a46!important;font-size:17px!important;font-weight:900!important}
.woocommerce ul.products li.product .price del{color:#98a2b3!important;font-size:12px;opacity:1!important;font-weight:500}
.woocommerce ul.products li.product .price ins{text-decoration:none;color:#071a46}
.nsd-loop-extras{display:flex;flex-wrap:wrap;align-items:center;gap:6px 9px;margin:2px 0 12px;min-height:38px;font-size:11px;font-weight:800}
.nsd-loop-save{color:#087a3e;background:#eaf8ef;border:1px solid #c7ead3;border-radius:999px;padding:4px 7px}
.nsd-loop-stock{display:inline-flex;align-items:center;gap:5px;color:#087a3e}
.nsd-loop-stock i{width:7px;height:7px;border-radius:50%;background:#16a34a;box-shadow:0 0 0 3px rgba(22,163,74,.12)}
.nsd-loop-delivery{color:#475467}
.woocommerce ul.products li.product .button{margin-top:auto!important;width:100%;min-height:42px;display:flex!important;align-items:center;justify-content:center;border-radius:8px!important;font-size:13px!important;font-weight:900!important;transition:transform .18s ease,filter .18s ease}
.woocommerce ul.products li.product .button:hover{transform:translateY(-1px);filter:brightness(1.08)}
.woocommerce ul.products li.product .tinvwl_add_to_wishlist_button,
.woocommerce ul.products li.product .woosw-btn,
.woocommerce ul.products li.product .add_to_wishlist{width:100%;margin:7px 0 0!important;min-height:38px;display:flex!important;align-items:center;justify-content:center;border:1px solid #dbe1eb!important;border-radius:8px!important;background:#fff!important;color:#071a46!important;font-size:12px!important;font-weight:800!important;text-decoration:none!important}

/* Single-product extra polish. */
.nsd-single-product-page .summary .price + .nsd-discount-badge{vertical-align:middle}
.nsd-single-product-page .woocommerce-product-gallery__trigger{display:grid!important;place-items:center;width:44px!important;height:44px!important;border-radius:50%!important}
.nsd-single-product-page .woocommerce-product-gallery__trigger::before{top:12px!important;left:12px!important}
.nsd-single-product-page .woocommerce-product-gallery__trigger::after{top:25px!important;left:27px!important}

@media(max-width:640px){
  .nsd-gallery-zoom-hint{font-size:11px;text-align:center;padding:0 8px}
  .nsd-single-product-page .woocommerce-product-gallery__image a{cursor:pointer}
  .woocommerce ul.products li.product{padding:10px!important}
  .woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:13px!important;min-height:36px}
  .woocommerce ul.products li.product .price{font-size:15px!important}
  .nsd-loop-extras{font-size:10px;gap:5px;min-height:34px}
}

/* =========================================================
   V3.6 — Amazon-style white full-screen product gallery
   ========================================================= */
html.nsd-lightbox-open,html.nsd-lightbox-open body{overflow:hidden!important}
.nsd-hd-lightbox{position:fixed;inset:0;z-index:999999;display:none;background:rgba(0,0,0,.55);padding:26px;color:#172033;touch-action:none}
.nsd-hd-lightbox.is-open{display:flex;align-items:center;justify-content:center;animation:nsdLbFade .16s ease-out}
@keyframes nsdLbFade{from{opacity:0}to{opacity:1}}
.nsd-hd-lightbox__dialog{position:relative;width:min(1560px,calc(100vw - 52px));height:min(850px,calc(100vh - 52px));display:grid;grid-template-columns:minmax(0,1fr) 300px;background:#fff;border-radius:10px;box-shadow:0 24px 80px rgba(0,0,0,.32);overflow:hidden}
.nsd-hd-lightbox__close{position:absolute;z-index:10;right:10px;top:8px;width:42px;height:42px;border:0;background:transparent;color:#111;font-size:34px;line-height:1;cursor:pointer;border-radius:50%}
.nsd-hd-lightbox__close:hover{background:#f1f3f5}
.nsd-hd-lightbox__main{position:relative;min-width:0;display:flex;align-items:center;justify-content:center;padding:26px 34px 64px;background:#fff;border-right:1px solid #e5e7eb}
.nsd-hd-lightbox__stage{position:relative;width:100%;height:100%;display:flex;align-items:center;justify-content:center;overflow:hidden}
.nsd-hd-lightbox__image{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;transform-origin:center center;user-select:none;-webkit-user-drag:none;will-change:transform;transition:transform .08s linear}
.nsd-hd-lightbox__prev,.nsd-hd-lightbox__next{position:absolute;z-index:5;top:50%;transform:translateY(-50%);width:46px;height:62px;border:1px solid #d5d9d9;background:rgba(255,255,255,.94);color:#333;box-shadow:0 2px 8px rgba(0,0,0,.12);cursor:pointer;display:grid;place-items:center;font-size:42px;line-height:1;border-radius:8px}
.nsd-hd-lightbox__prev{left:10px}.nsd-hd-lightbox__next{right:10px}
.nsd-hd-lightbox__prev:hover,.nsd-hd-lightbox__next:hover{background:#fff;border-color:#8d9096}
.nsd-hd-lightbox--single .nsd-hd-lightbox__prev,.nsd-hd-lightbox--single .nsd-hd-lightbox__next{display:none}
.nsd-hd-lightbox__zoomtools{position:absolute;z-index:6;left:50%;bottom:14px;transform:translateX(-50%);display:flex;align-items:center;gap:8px;background:#fff;border:1px solid #d9dde3;border-radius:999px;padding:6px;box-shadow:0 4px 16px rgba(0,0,0,.12)}
.nsd-hd-lightbox__zoomtools button{height:36px;min-width:38px;border:0;background:#f3f4f6;color:#111;border-radius:999px;font-weight:800;cursor:pointer}
.nsd-hd-lightbox__zoomtools .nsd-hd-lightbox__reset{min-width:64px;background:#fff;border:1px solid #d9dde3}
.nsd-hd-lightbox__side{padding:42px 24px 24px;overflow:auto;background:#fff}
.nsd-hd-lightbox__title{font-size:18px;line-height:1.28;font-weight:500;color:#111;margin:0 30px 10px 0}
.nsd-hd-lightbox__counter{font-size:12px;color:#6b7280;margin-bottom:14px}
.nsd-hd-lightbox__thumbs{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.nsd-hd-lightbox__thumb{aspect-ratio:1;border:1px solid #d5d9d9;background:#fff;border-radius:2px;padding:3px;cursor:pointer;overflow:hidden}
.nsd-hd-lightbox__thumb img{width:100%;height:100%;object-fit:contain;display:block}
.nsd-hd-lightbox__thumb:hover{border-color:#888}
.nsd-hd-lightbox__thumb.is-active{border:2px solid #007185;box-shadow:0 0 0 1px #fff inset}
.nsd-hd-lightbox__caption{margin-top:18px;font-size:12px;line-height:1.45;color:#666}
.nsd-single-product-page .woocommerce-product-gallery__image a,.nsd-single-product-page .woocommerce-product-gallery__trigger{cursor:zoom-in!important}
@media(max-width:900px){
  .nsd-hd-lightbox{padding:0}
  .nsd-hd-lightbox__dialog{width:100vw;height:100vh;border-radius:0;grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) auto}
  .nsd-hd-lightbox__main{border-right:0;border-bottom:1px solid #e5e7eb;padding:58px 14px 60px}
  .nsd-hd-lightbox__side{padding:14px 16px 18px;max-height:32vh}
  .nsd-hd-lightbox__title{font-size:15px;margin-right:34px}
  .nsd-hd-lightbox__thumbs{grid-template-columns:repeat(6,58px);overflow-x:auto;display:flex;gap:8px}
  .nsd-hd-lightbox__thumb{flex:0 0 58px;width:58px;height:58px}
  .nsd-hd-lightbox__prev,.nsd-hd-lightbox__next{width:40px;height:54px;font-size:36px}
}

/* V3.8 — Shop sidebar toggle layout fix */
.nsd-shop-shell.nsd-shop-no-sidebar{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  width:100%;
}
.nsd-shop-shell.nsd-shop-no-sidebar .nsd-shop-main{
  grid-column:1 / -1;
  width:100%;
  min-width:0;
}
.nsd-shop-shell .nsd-shop-main{
  min-width:0;
}
.nsd-shop-main > .nsd-container,
.nsd-shop-main .woocommerce,
.nsd-shop-main .woocommerce-notices-wrapper,
.nsd-shop-main ul.products{
  width:100%;
  max-width:none;
  min-width:0;
}
.nsd-shop-no-sidebar .woocommerce ul.products{
  width:100%;
}
@media (max-width:1024px){
  .nsd-shop-shell,
  .nsd-shop-shell.nsd-shop-no-sidebar{grid-template-columns:minmax(0,1fr)}
  .nsd-shop-main{grid-column:1 / -1}
}

/* =========================================================
   V3.9 — Sticky header overlap fix + premium mobile layout
   ========================================================= */
.nsd-sticky-shell{background:#fff;box-shadow:0 2px 12px rgba(7,26,70,.08)}
.nsd-sticky-shell .nsd-header-main,.nsd-sticky-shell .nsd-nav{position:relative!important;top:auto!important}
.nsd-main-wrap{position:relative;z-index:1}
.nsd-hero-grid{align-items:start}
.nsd-sidebar{position:sticky;top:calc(var(--nsd-sticky-height, 145px) + 14px);z-index:10;max-height:calc(100vh - var(--nsd-sticky-height, 145px) - 28px);overflow:auto;scrollbar-width:thin}
.nsd-mobile-header-tools,.nsd-mobile-menu-toggle,.nsd-mobile-bottom-nav,.nsd-mobile-overlay{display:none}

@media(max-width:782px){.admin-bar .nsd-sticky-shell{top:46px!important}}

@media(max-width:1024px){
  body{padding-bottom:68px}
  .nsd-topbar{display:none}
  .nsd-sticky-shell{box-shadow:0 3px 16px rgba(7,26,70,.12)}
  .nsd-header-main{border:0}
  .nsd-header-row{grid-template-columns:minmax(120px,1fr) auto;gap:10px;padding:9px 0}
  .nsd-logo{font-size:22px;min-width:0}
  .nsd-logo .custom-logo{max-height:46px!important;max-width:170px;width:auto}
  .nsd-logo-bag{width:34px;height:34px;border-width:2px}
  .nsd-logo small{display:none}
  .nsd-search,.dgwt-wcas-search-wrapp{grid-column:1/-1;order:3;display:none;width:100%!important;margin-top:3px}
  body.nsd-mobile-search-open .nsd-search,body.nsd-mobile-search-open .dgwt-wcas-search-wrapp{display:flex}
  .nsd-header-actions{display:none!important}
  .nsd-mobile-header-tools{display:flex;align-items:center;justify-content:flex-end;gap:7px}
  .nsd-mobile-header-tools>a,.nsd-mobile-header-tools>button{position:relative;width:38px;height:38px;border:1px solid #e1e6ef;border-radius:10px;background:#fff;color:var(--nsd-blue);display:grid;place-items:center;font-size:20px;padding:0;box-shadow:0 2px 8px rgba(7,26,70,.06)}
  .nsd-mobile-cart-count{position:absolute;right:-5px;top:-5px;min-width:18px;height:18px;padding:0 4px;border-radius:999px;background:var(--nsd-orange);color:var(--nsd-blue);display:grid;place-items:center;font-size:10px;font-style:normal;font-weight:900;border:2px solid #fff}
  .nsd-nav .nsd-container{width:100%;overflow:visible;padding:0 3%;position:relative}
  .nsd-mobile-menu-toggle{display:flex;align-items:center;gap:5px;width:100%;height:44px;border:0;background:var(--nsd-blue);color:#fff;padding:0;font-weight:800}
  .nsd-mobile-menu-toggle span{display:block;width:18px;height:2px;background:#fff;border-radius:3px;position:absolute;left:3%}
  .nsd-mobile-menu-toggle span:nth-child(1){transform:translateY(-6px)}
  .nsd-mobile-menu-toggle span:nth-child(3){transform:translateY(6px)}
  .nsd-mobile-menu-toggle b{margin-left:30px;font-size:14px}
  .nsd-allcats,.nsd-whatsapp{display:none!important}
  .nsd-menu{position:fixed;left:0;top:0;bottom:0;width:min(330px,86vw);z-index:10002;background:#fff;color:var(--nsd-blue);display:flex!important;flex-direction:column;align-items:stretch;gap:0;padding:82px 18px 28px;overflow-y:auto;transform:translateX(-105%);transition:transform .25s ease;box-shadow:12px 0 35px rgba(0,0,0,.22)}
  .nsd-menu::before{content:'NSD MART MENU';position:absolute;left:18px;top:24px;font-size:18px;font-weight:900;color:var(--nsd-blue)}
  .nsd-menu a{display:block;padding:14px 10px;border-bottom:1px solid #edf0f5;font-size:15px;font-weight:800}
  body.nsd-mobile-menu-open .nsd-menu{transform:translateX(0)}
  .nsd-mobile-overlay{position:fixed;inset:0;z-index:10001;background:rgba(3,12,31,.55);backdrop-filter:blur(2px)}
  body.nsd-mobile-menu-open .nsd-mobile-overlay{display:block}
  body.nsd-mobile-menu-open{overflow:hidden}
  .nsd-sidebar{display:none!important;position:static;max-height:none}
  body.nsd-mobile-categories-open .nsd-sidebar{display:block!important;position:fixed;z-index:10003;left:4%;right:4%;top:86px;max-height:calc(100vh - 170px);overflow:auto;border-radius:14px;box-shadow:0 18px 50px rgba(0,0,0,.3)}
  body.nsd-mobile-categories-open .nsd-mobile-overlay{display:block}
  body.nsd-mobile-categories-open{overflow:hidden}
  .nsd-hero-grid{grid-template-columns:1fr;gap:0}
  .nsd-hero{min-height:390px;padding:34px 28px;border-radius:0 0 14px 14px}
  .nsd-hero h1{font-size:42px}
  .nsd-badges{grid-template-columns:repeat(2,1fr);gap:9px;padding:12px 0}
  .nsd-badge{padding:12px;min-height:70px}
  .nsd-strip{grid-template-columns:repeat(2,1fr);font-size:13px;padding:15px}
  .nsd-mobile-bottom-nav{position:fixed;left:0;right:0;bottom:0;z-index:10000;height:64px;background:#fff;border-top:1px solid #dfe4ed;box-shadow:0 -5px 18px rgba(7,26,70,.1);display:grid;grid-template-columns:repeat(5,1fr);padding-bottom:env(safe-area-inset-bottom)}
  .nsd-mobile-bottom-nav a,.nsd-mobile-bottom-nav button{position:relative;border:0;background:transparent;color:#44506a;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font:inherit;padding:4px 2px}
  .nsd-mobile-bottom-nav span{font-size:20px;line-height:1}
  .nsd-mobile-bottom-nav small{font-size:10px;font-weight:800}
  .nsd-mobile-bottom-nav a:first-child{color:var(--nsd-blue)}
  .nsd-mobile-bottom-nav em{right:18%;top:5px}
}

@media(max-width:640px){
  .nsd-container{width:94%}
  .nsd-header-row{padding:7px 0}
  .nsd-logo .custom-logo{max-width:145px;max-height:42px!important}
  .nsd-mobile-header-tools>a,.nsd-mobile-header-tools>button{width:35px;height:35px;font-size:18px}
  .nsd-nav .nsd-container{padding:0 4%}
  .nsd-mobile-menu-toggle span{left:4%}
  .nsd-hero{min-height:350px;padding:28px 20px;align-items:flex-start}
  .nsd-hero h1{font-size:35px;margin:10px 0}
  .nsd-hero p{font-size:14px;line-height:1.55;max-width:68%}
  .nsd-hero-art{right:-8%;width:62%;height:78%;opacity:.42}
  .nsd-hero-circle{width:230px;height:230px}
  .nsd-btn{padding:12px 20px;font-size:13px}
  .nsd-badges{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;padding:12px 0 8px}
  .nsd-badge{flex:0 0 78%;scroll-snap-align:start}
  .nsd-strip{display:flex;overflow-x:auto;border-radius:9px;gap:24px;white-space:nowrap}
  .nsd-section{padding:22px 0}
  .nsd-section h2{font-size:23px}
}

/* =========================================================
   V4.0 — Balanced homepage products + mobile swipe rows
   ========================================================= */
/* Keep all five homepage products in one balanced desktop row. */
.home .nsd-section > ul.products,
.home .nsd-section .woocommerce > ul.products{
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  align-items:stretch;
}
.home .nsd-section ul.products li.product{
  min-width:0;
}

@media(max-width:1200px) and (min-width:641px){
  .home .nsd-section > ul.products,
  .home .nsd-section .woocommerce > ul.products{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
}

@media(max-width:640px){
  /* Shopping-app style left-to-right swipe, without stacking a long page. */
  .home .nsd-section > ul.products,
  .home .nsd-section .woocommerce > ul.products{
    display:flex!important;
    flex-wrap:nowrap!important;
    gap:12px!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    width:100%!important;
    margin:0!important;
    padding:2px 16px 14px 2px!important;
    scroll-snap-type:x mandatory;
    scroll-padding-left:2px;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
  }
  .home .nsd-section > ul.products::-webkit-scrollbar,
  .home .nsd-section .woocommerce > ul.products::-webkit-scrollbar{
    display:none;
  }
  .home .nsd-section ul.products li.product{
    flex:0 0 78vw!important;
    width:78vw!important;
    max-width:285px!important;
    margin:0!important;
    scroll-snap-align:start;
  }
  .home .nsd-section ul.products li.product:first-child{
    margin-left:0!important;
  }
  .home .nsd-section-head{
    margin-bottom:12px;
  }
  .home .nsd-section-head h2{
    font-size:24px;
  }
}


/* =========================================================
   V4.1 — Force complete 5-card desktop row
   Fixes WooCommerce float/width rules that wrapped card #5.
   ========================================================= */
@media(min-width:901px){
  body.home .nsd-section ul.products,
  body.home .nsd-section .woocommerce ul.products{
    display:grid!important;
    grid-template-columns:repeat(5,minmax(0,1fr))!important;
    gap:16px!important;
    width:100%!important;
    margin-left:0!important;
    margin-right:0!important;
  }
  body.home .nsd-section ul.products::before,
  body.home .nsd-section ul.products::after{
    display:none!important;
    content:none!important;
  }
  body.home .nsd-section ul.products li.product,
  body.home .nsd-section ul.products[class*=columns-] li.product{
    float:none!important;
    clear:none!important;
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    margin:0!important;
  }
}

@media(min-width:641px) and (max-width:900px){
  body.home .nsd-section ul.products,
  body.home .nsd-section .woocommerce ul.products{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:14px!important;
  }
  body.home .nsd-section ul.products li.product{
    float:none!important;
    width:100%!important;
    margin:0!important;
  }
}

/* =========================================================
   V4.2 — Shop page left alignment + full-width 4-column grid
   Removes the empty corner below the Shop heading.
   ========================================================= */
@media (min-width:1025px){
  body.woocommerce-shop .nsd-shop-main .woocommerce,
  body.post-type-archive-product .nsd-shop-main .woocommerce,
  body.tax-product_cat .nsd-shop-main .woocommerce,
  body.tax-product_tag .nsd-shop-main .woocommerce{
    display:block!important;
    width:100%!important;
    max-width:none!important;
  }

  body.woocommerce-shop .nsd-shop-main ul.products,
  body.post-type-archive-product .nsd-shop-main ul.products,
  body.tax-product_cat .nsd-shop-main ul.products,
  body.tax-product_tag .nsd-shop-main ul.products{
    display:grid!important;
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    gap:18px!important;
    width:100%!important;
    max-width:none!important;
    margin:18px 0 0!important;
    padding:0!important;
    clear:both!important;
    float:none!important;
    justify-content:stretch!important;
    align-items:stretch!important;
  }

  body.woocommerce-shop .nsd-shop-main ul.products::before,
  body.woocommerce-shop .nsd-shop-main ul.products::after,
  body.post-type-archive-product .nsd-shop-main ul.products::before,
  body.post-type-archive-product .nsd-shop-main ul.products::after,
  body.tax-product_cat .nsd-shop-main ul.products::before,
  body.tax-product_cat .nsd-shop-main ul.products::after,
  body.tax-product_tag .nsd-shop-main ul.products::before,
  body.tax-product_tag .nsd-shop-main ul.products::after{
    display:none!important;
    content:none!important;
  }

  body.woocommerce-shop .nsd-shop-main ul.products li.product,
  body.post-type-archive-product .nsd-shop-main ul.products li.product,
  body.tax-product_cat .nsd-shop-main ul.products li.product,
  body.tax-product_tag .nsd-shop-main ul.products li.product{
    float:none!important;
    clear:none!important;
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    margin:0!important;
  }

  body.woocommerce-shop .woocommerce-result-count,
  body.post-type-archive-product .woocommerce-result-count,
  body.tax-product_cat .woocommerce-result-count,
  body.tax-product_tag .woocommerce-result-count{
    margin:8px 0 0!important;
  }

  body.woocommerce-shop .woocommerce-ordering,
  body.post-type-archive-product .woocommerce-ordering,
  body.tax-product_cat .woocommerce-ordering,
  body.tax-product_tag .woocommerce-ordering{
    margin:0 0 10px!important;
  }
}

@media (min-width:641px) and (max-width:1024px){
  body.woocommerce-shop .nsd-shop-main ul.products,
  body.post-type-archive-product .nsd-shop-main ul.products,
  body.tax-product_cat .nsd-shop-main ul.products,
  body.tax-product_tag .nsd-shop-main ul.products{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:14px!important;
    width:100%!important;
    margin:16px 0 0!important;
    padding:0!important;
  }
  body.woocommerce-shop .nsd-shop-main ul.products li.product,
  body.post-type-archive-product .nsd-shop-main ul.products li.product,
  body.tax-product_cat .nsd-shop-main ul.products li.product,
  body.tax-product_tag .nsd-shop-main ul.products li.product{
    float:none!important;
    width:100%!important;
    margin:0!important;
  }
}


/* =========================================================
   V5.0 — Global Meesho-style horizontal category bar
   Final approved design: visible on every page.
   Shop smart-filter sidebar remains unchanged.
   ========================================================= */
.nsd-category-bar{
  position:relative;
  z-index:45;
  background:#fff;
  border-bottom:1px solid #e6e9ef;
  box-shadow:0 4px 14px rgba(7,26,70,.07);
}
.nsd-category-scroll{
  display:grid;
  grid-template-columns:repeat(10,minmax(0,1fr));
  align-items:stretch;
  overflow:visible;
}
.nsd-category-item{
  position:relative;
  min-width:0;
  border-right:1px solid #e8ebf1;
}
.nsd-category-item:first-child{border-left:1px solid #e8ebf1}
.nsd-category-item>a{
  min-height:82px;
  padding:10px 7px 9px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:6px;
  text-align:center;
  color:var(--nsd-blue);
  transition:background .2s ease,color .2s ease,transform .2s ease;
}
.nsd-category-icon{
  width:39px;
  height:39px;
  display:grid;
  place-items:center;
  border:1px solid #dfe4ec;
  border-radius:10px;
  background:#fff;
  color:var(--nsd-orange);
  font-size:24px;
  line-height:1;
  font-weight:900;
  box-shadow:0 2px 8px rgba(7,26,70,.05);
}
.nsd-category-name{
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:12px;
  line-height:1.2;
  font-weight:800;
}
.nsd-category-item:hover>a,
.nsd-category-item:focus-within>a{
  background:#fff8e8;
  color:#071a46;
}
.nsd-category-item:hover .nsd-category-icon,
.nsd-category-item:focus-within .nsd-category-icon{
  background:var(--nsd-orange);
  border-color:var(--nsd-orange);
  color:var(--nsd-blue);
  transform:translateY(-2px);
}
.nsd-category-dropdown{
  position:absolute;
  top:calc(100% - 1px);
  left:0;
  width:230px;
  padding:9px;
  background:#fff;
  border:1px solid #e3e7ee;
  border-radius:0 0 11px 11px;
  box-shadow:0 18px 35px rgba(7,26,70,.18);
  opacity:0;
  visibility:hidden;
  transform:translateY(8px);
  transition:opacity .18s ease,transform .18s ease,visibility .18s ease;
}
.nsd-category-dropdown-right{left:auto;right:0}
.nsd-category-item:hover>.nsd-category-dropdown,
.nsd-category-item:focus-within>.nsd-category-dropdown{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
}
.nsd-category-dropdown>a{
  display:block;
  padding:10px 11px;
  border-radius:7px;
  color:#172033;
  font-size:13px;
  font-weight:700;
}
.nsd-category-dropdown>a:hover,
.nsd-category-dropdown>a:focus{
  background:#f2f6ff;
  color:var(--nsd-blue-2);
}
.nsd-category-more .nsd-category-icon{font-size:19px;letter-spacing:2px}

@media(max-width:1024px){
  .nsd-category-bar{box-shadow:0 3px 12px rgba(7,26,70,.08)}
  .nsd-category-scroll{
    display:flex;
    width:100%;
    overflow-x:auto;
    overflow-y:visible;
    padding:0;
    scroll-snap-type:x proximity;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
  }
  .nsd-category-scroll::-webkit-scrollbar{display:none}
  .nsd-category-item{
    flex:0 0 112px;
    scroll-snap-align:start;
  }
  .nsd-category-item>a{min-height:70px;padding:8px 6px}
  .nsd-category-icon{width:34px;height:34px;font-size:20px;border-radius:9px}
  .nsd-category-name{font-size:11px}
  .nsd-category-dropdown{display:none!important}
}

@media(max-width:640px){
  .nsd-category-item{flex-basis:96px}
  .nsd-category-item>a{min-height:64px;gap:4px}
  .nsd-category-icon{width:31px;height:31px;font-size:18px}
  .nsd-category-name{font-size:10px}
}

/* =========================================================
   V5.1 FINAL LIVE — Large premium category bar + grid/list view
   ========================================================= */
.nsd-category-bar{
  padding:10px 0 12px;
  background:#fff;
}
.nsd-category-scroll{
  gap:0;
  border:1px solid #e7eaf0;
  border-radius:14px;
  overflow:visible;
  background:#fff;
  box-shadow:0 8px 24px rgba(7,26,70,.08);
}
.nsd-category-item{border-right:1px solid #e5e9f0}
.nsd-category-item:first-child{border-left:0}
.nsd-category-item:last-child{border-right:0}
.nsd-category-item>a{
  min-height:132px;
  padding:13px 8px 11px;
  gap:5px;
  border-radius:13px;
}
.nsd-category-icon{
  width:74px;
  height:74px;
  border:0;
  border-radius:50%;
  overflow:hidden;
  font-size:38px;
  background:linear-gradient(145deg,#fff3e1,#edf4ff);
  box-shadow:inset 0 0 0 1px rgba(7,26,70,.05),0 5px 14px rgba(7,26,70,.08);
}
.nsd-category-icon img{
  width:100%;height:100%;object-fit:cover;display:block;
}
.nsd-category-fallback{display:grid;place-items:center;width:100%;height:100%;filter:saturate(1.15)}
.nsd-category-name{
  font-size:13px;
  line-height:1.25;
  font-weight:800;
  color:#071a46;
}
.nsd-category-count{
  display:block;
  font-size:11px;
  line-height:1.15;
  color:#65708a;
  white-space:nowrap;
}
.nsd-category-item:hover>a,.nsd-category-item:focus-within>a{
  background:#fffaf0;
  transform:translateY(-2px);
}
.nsd-category-item:hover .nsd-category-icon,.nsd-category-item:focus-within .nsd-category-icon{
  background:linear-gradient(145deg,#fff2d2,#eef4ff);
  border-color:transparent;
  color:inherit;
  transform:scale(1.05);
}
.nsd-more-icon{background:#fff!important;border:2px solid #d9dfeb!important;color:#071a46!important}
.nsd-more-icon span{font-size:24px;letter-spacing:4px;transform:translateX(2px)}

/* Shop grid/list buttons */
.nsd-product-view-toggle{
  float:right;
  display:flex;
  gap:7px;
  margin:0 0 10px 10px;
}
.nsd-view-btn{
  width:38px;height:38px;padding:0;border:1px solid #d9dfeb;border-radius:7px;
  display:grid;place-items:center;background:#fff;color:#071a46;cursor:pointer;
  font-size:18px;font-weight:800;line-height:1;
}
.nsd-view-btn:hover,.nsd-view-btn.is-active{background:#071a46;color:#fff;border-color:#071a46}
body.nsd-list-view .nsd-shop-main ul.products{
  grid-template-columns:1fr!important;
}
body.nsd-list-view .nsd-shop-main ul.products li.product{
  display:grid!important;
  grid-template-columns:230px minmax(0,1fr)!important;
  grid-template-rows:auto!important;
  column-gap:22px!important;
  align-items:center!important;
  padding:14px!important;
}
body.nsd-list-view .nsd-shop-main ul.products li.product>a.woocommerce-LoopProduct-link{
  display:contents!important;
}
body.nsd-list-view .nsd-shop-main ul.products li.product img{
  grid-column:1!important;grid-row:1 / span 12!important;margin:0!important;width:100%!important;
}
body.nsd-list-view .nsd-shop-main ul.products li.product .onsale{grid-column:1!important}
body.nsd-list-view .nsd-shop-main ul.products li.product h2,
body.nsd-list-view .nsd-shop-main ul.products li.product .price,
body.nsd-list-view .nsd-shop-main ul.products li.product .nsd-loop-extras,
body.nsd-list-view .nsd-shop-main ul.products li.product .button,
body.nsd-list-view .nsd-shop-main ul.products li.product .yith-wcwl-add-to-wishlist{
  grid-column:2!important;
}

@media(max-width:1024px){
  .nsd-category-bar{padding:8px 0}
  .nsd-category-scroll{border-radius:11px}
  .nsd-category-item{flex:0 0 126px}
  .nsd-category-item>a{min-height:112px;padding:10px 7px}
  .nsd-category-icon{width:62px;height:62px;font-size:32px}
  .nsd-category-name{font-size:12px}
  .nsd-category-count{font-size:10px}
}
@media(max-width:640px){
  .nsd-category-item{flex-basis:108px}
  .nsd-category-item>a{min-height:100px}
  .nsd-category-icon{width:54px;height:54px;font-size:28px}
  .nsd-product-view-toggle{display:none}
  body.nsd-list-view .nsd-shop-main ul.products li.product{display:block!important}
}

/* =========================================================
   V5.2 PROFESSIONAL MEGA MENU
   ========================================================= */
.nsd-category-item{position:relative}
.nsd-category-caret{display:inline-block;margin-top:-2px;font-size:13px;color:#6c7892;line-height:1}
.nsd-mega-toggle{display:none}
.nsd-mega-menu{
  position:absolute;left:0;top:calc(100% - 1px);z-index:10020;
  width:min(780px,calc(100vw - 40px));padding:18px;
  background:#fff;border:1px solid #e1e6ef;border-radius:0 0 14px 14px;
  box-shadow:0 18px 48px rgba(7,26,70,.18);
  opacity:0;visibility:hidden;transform:translateY(10px);pointer-events:none;
  transition:opacity .18s ease,transform .18s ease,visibility .18s ease;
}
.nsd-mega-menu-right{left:auto;right:0}
.nsd-category-item:hover>.nsd-mega-menu,.nsd-category-item:focus-within>.nsd-mega-menu,.nsd-category-item.is-mega-open>.nsd-mega-menu{
  opacity:1;visibility:visible;transform:translateY(0);pointer-events:auto;
}
.nsd-mega-head{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:0 2px 13px;border-bottom:1px solid #edf0f5;margin-bottom:14px}
.nsd-mega-head strong{display:block;font-size:18px;color:#071a46}
.nsd-mega-head span{display:block;margin-top:3px;font-size:12px;color:#6c7892}
.nsd-mega-head>a{font-size:13px;font-weight:800;color:#071a46;white-space:nowrap}
.nsd-mega-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px 22px;max-height:390px;overflow:auto;padding-right:4px}
.nsd-mega-grid-compact{grid-template-columns:repeat(3,minmax(0,1fr))}
.nsd-mega-column{min-width:0}
.nsd-mega-title{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 9px;border-radius:8px;background:#f6f8fc;color:#071a46;font-size:13px;font-weight:800}
.nsd-mega-title:hover{background:#fff3d7;color:#071a46}
.nsd-mega-title span{color:#ff9f00}
.nsd-mega-links{display:grid;gap:2px;padding:7px 8px 0}
.nsd-mega-links a{padding:5px 0;color:#4c5871;font-size:12px;line-height:1.25}
.nsd-mega-links a:hover{color:#ff9500;transform:translateX(2px)}

@media(max-width:1180px){
  .nsd-mega-menu{width:min(650px,calc(100vw - 28px))}
  .nsd-mega-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:767px){
  .nsd-category-scroll{overflow-x:auto!important;overflow-y:visible!important}
  .nsd-category-item{position:relative}
  .nsd-category-caret{display:none}
  .nsd-category-item.has-children>a{padding-right:25px}
  .nsd-mega-toggle{display:grid;place-items:center;position:absolute;right:5px;top:7px;z-index:3;width:25px;height:25px;padding:0;border:1px solid #dce2ec;border-radius:50%;background:#fff;color:#071a46;font-size:17px;line-height:1;box-shadow:0 2px 7px rgba(7,26,70,.08)}
  .nsd-category-item.is-mega-open .nsd-mega-toggle{background:#071a46;color:#fff;transform:rotate(45deg)}
  .nsd-mega-menu,.nsd-mega-menu-right{position:fixed;left:12px;right:12px;top:auto;bottom:78px;width:auto;max-height:68vh;overflow:auto;border-radius:14px;padding:14px;transform:translateY(16px)}
  .nsd-category-item.is-mega-open>.nsd-mega-menu{transform:translateY(0)}
  .nsd-mega-grid,.nsd-mega-grid-compact{grid-template-columns:1fr 1fr;max-height:none;gap:10px}
  .nsd-mega-head{position:sticky;top:-14px;z-index:2;background:#fff;padding-top:12px}
  body.nsd-mega-menu-open{overflow:hidden}
}
@media(max-width:420px){.nsd-mega-grid,.nsd-mega-grid-compact{grid-template-columns:1fr}}


/* =========================================================
   V5.3 COMPACT MEGA MENU FIX
   ========================================================= */
@media(min-width:768px){
  .nsd-mega-menu{
    width:min(680px,calc(100vw - 40px));
    padding:13px 14px 14px;
    border-radius:0 0 12px 12px;
  }
  .nsd-mega-menu.nsd-mega-single{width:360px;max-width:calc(100vw - 40px)}
  .nsd-mega-menu.nsd-mega-count-2{width:470px;max-width:calc(100vw - 40px)}
  .nsd-mega-menu.nsd-mega-count-3{width:590px;max-width:calc(100vw - 40px)}
  .nsd-mega-head{gap:12px;padding:0 1px 9px;margin-bottom:10px}
  .nsd-mega-head strong{font-size:16px}
  .nsd-mega-head span{margin-top:2px;font-size:11px}
  .nsd-mega-head>a{font-size:12px}
  .nsd-mega-grid{
    grid-template-columns:repeat(4,minmax(120px,1fr));
    gap:8px 12px;
    max-height:300px;
    overflow:auto;
    padding-right:2px;
  }
  .nsd-mega-count-1 .nsd-mega-grid{grid-template-columns:1fr}
  .nsd-mega-count-2 .nsd-mega-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .nsd-mega-count-3 .nsd-mega-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .nsd-mega-title{padding:7px 9px;border-radius:7px;font-size:12px}
  .nsd-mega-links{gap:0;padding:5px 8px 0}
  .nsd-mega-links a{padding:4px 0;font-size:11px}
  .nsd-mega-single .nsd-mega-links{padding-top:3px}
  .nsd-mega-single .nsd-mega-links a{padding:3px 0}
}


/* =========================================================
   V5.4 LEAF SUBCATEGORY ORDER FIX
   Leaf subcategories such as Mens / Women are shown vertically.
   ========================================================= */
@media(min-width:768px){
  .nsd-mega-menu.nsd-mega-leaf-only{
    width:360px !important;
    max-width:calc(100vw - 40px);
  }
  .nsd-mega-leaf-only .nsd-mega-grid{
    grid-template-columns:1fr !important;
    gap:7px !important;
  }
  .nsd-mega-leaf-only .nsd-mega-column{
    width:100%;
  }
  .nsd-mega-leaf-only .nsd-mega-title{
    min-height:38px;
    padding:9px 11px;
    font-size:13px;
  }
}


/* V5.6: Homepage category duplication cleanup */
.home .nsd-home-hero-full,
.front-page .nsd-home-hero-full{
  display:grid;
  grid-template-columns:minmax(0,1fr)!important;
  gap:0!important;
  width:100%;
}
.home .nsd-home-hero-full .nsd-hero,
.front-page .nsd-home-hero-full .nsd-hero{
  width:100%;
}

html{scroll-behavior:smooth}
.nsd-scroll-target{scroll-margin-top:190px}
@media(max-width:782px){.nsd-scroll-target{scroll-margin-top:145px}}


/* =========================================================
   V6.0 Smart Slider + Elementor compatibility
   ========================================================= */
.nsd-smart-slider-full{width:100vw;position:relative;left:50%;right:50%;margin-left:-50vw;margin-right:-50vw;overflow:hidden}
.nsd-smart-slider-contained{width:100%;overflow:hidden;border-radius:var(--nsd-radius,8px)}
.nsd-elementor-home,.nsd-elementor-full-width{width:100%;margin:0;padding:0}
.nsd-elementor-home .elementor,.nsd-elementor-full-width .elementor{width:100%}
body.nsd-elementor-canvas{margin:0;background:#fff}
@media(max-width:782px){.admin-bar .nsd-sticky-shell{top:46px}}

/* =========================================================
   V6.1 — Flipkart-style compact header & category navigation
   ========================================================= */
@media (min-width:1025px){
  .nsd-header-row{
    grid-template-columns:190px minmax(380px,1fr) max-content;
    gap:12px;
    padding:10px 0;
  }
  .nsd-logo{font-size:27px;gap:8px;white-space:nowrap;line-height:1}
  .nsd-logo-bag{width:38px;height:38px;border-width:2px;flex:0 0 38px}
  .nsd-logo > div:not(.nsd-logo-bag){display:flex;align-items:baseline;gap:6px;flex-wrap:wrap;white-space:nowrap}
  .nsd-logo small{flex-basis:100%;margin-top:4px;font-size:9px;line-height:1.1;white-space:nowrap}
  .nsd-logo .custom-logo{max-height:48px!important;max-width:185px;width:auto}
  .nsd-search select,.nsd-search input{padding:11px 12px}
  .nsd-search button{padding:0 22px}
  .dgwt-wcas-search-wrapp .dgwt-wcas-sf-wrapp input[type=search].dgwt-wcas-search-input{height:42px!important;min-height:42px!important}
  .nsd-action-card{min-height:48px;padding:6px 8px}
  .nsd-action-icon{width:32px;height:32px;flex-basis:32px}
  .nsd-action-copy small{margin-bottom:2px}
  .nsd-allcats,.nsd-whatsapp{padding-top:12px;padding-bottom:12px}
  .nsd-category-bar{padding:6px 0 8px}
  .nsd-category-scroll{border-radius:10px;box-shadow:0 4px 14px rgba(7,26,70,.07)}
  .nsd-category-item{flex:1 1 0;min-width:0}
  .nsd-category-item>a{min-height:82px;padding:7px 5px 6px;gap:3px}
  .nsd-category-icon{width:43px;height:43px;font-size:23px}
  .nsd-category-name{font-size:11px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .nsd-category-count{font-size:9px}

  /* Compact sticky state after scrolling. */
  body.nsd-header-compact .nsd-sticky-shell{box-shadow:0 5px 18px rgba(7,26,70,.15)}
  body.nsd-header-compact .nsd-header-row{grid-template-columns:165px minmax(380px,1fr) max-content;padding:5px 0}
  body.nsd-header-compact .nsd-logo{font-size:23px}
  body.nsd-header-compact .nsd-logo-bag{width:32px;height:32px;flex-basis:32px}
  body.nsd-header-compact .nsd-logo small{display:none}
  body.nsd-header-compact .nsd-logo .custom-logo{max-height:36px!important;max-width:160px}
  body.nsd-header-compact .nsd-action-card{min-height:40px;padding:4px 7px;border-radius:9px;box-shadow:none}
  body.nsd-header-compact .nsd-action-icon{width:29px;height:29px;flex-basis:29px}
  body.nsd-header-compact .nsd-action-copy small{display:none}
  body.nsd-header-compact .nsd-nav .nsd-container{min-height:38px}
  body.nsd-header-compact .nsd-allcats,body.nsd-header-compact .nsd-whatsapp{padding-top:10px;padding-bottom:10px}
  body.nsd-header-compact .nsd-menu a{font-size:13px}
  body.nsd-header-compact .nsd-category-bar{padding:0;background:#fff;border-top:1px solid #edf0f5;border-bottom:1px solid #e5e9f0}
  body.nsd-header-compact .nsd-category-scroll{width:min(1420px,94%);border:0;border-radius:0;box-shadow:none;display:flex;justify-content:center;overflow-x:auto;overflow-y:visible}
  body.nsd-header-compact .nsd-category-item{flex:0 0 auto;border:0}
  body.nsd-header-compact .nsd-category-item>a{min-height:38px;padding:0 14px;display:flex;flex-direction:row;align-items:center;gap:4px;border-radius:0}
  body.nsd-header-compact .nsd-category-icon,
  body.nsd-header-compact .nsd-category-count{display:none}
  body.nsd-header-compact .nsd-category-name{font-size:12px;font-weight:700;max-width:none}
  body.nsd-header-compact .nsd-category-caret{margin:0;font-size:11px}
  body.nsd-header-compact .nsd-category-item:hover>a{transform:none;background:#f5f8ff;color:var(--nsd-blue)}
  body.nsd-header-compact .nsd-mega-menu{top:100%}
}

@media (prefers-reduced-motion:no-preference){
  .nsd-header-row,.nsd-logo,.nsd-logo-bag,.nsd-action-card,.nsd-action-icon,.nsd-category-item>a,.nsd-category-icon{transition:all .18s ease}
}

/* =========================================================
   V6.2 — Clearer category names, smaller icons, cleaner cards
   ========================================================= */
@media (min-width: 901px){
  body:not(.nsd-header-compact) .nsd-category-item>a{
    min-height:76px;
    padding:6px 6px 7px;
    gap:4px;
  }
  body:not(.nsd-header-compact) .nsd-category-icon{
    width:38px;
    height:38px;
    font-size:21px;
    border-radius:10px;
  }
  body:not(.nsd-header-compact) .nsd-category-name{
    font-size:14px;
    font-weight:700;
    line-height:1.18;
    max-width:112px;
    min-height:33px;
    white-space:normal;
    overflow:visible;
    text-overflow:clip;
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
  }
  body:not(.nsd-header-compact) .nsd-category-count{
    display:none;
  }

  body.nsd-header-compact .nsd-category-name{
    font-size:13px;
    font-weight:700;
  }
}


/* =========================================================
   V6.3 — Smaller category cards with the same clear text/icons
   ========================================================= */
@media (min-width: 901px){
  body:not(.nsd-header-compact) .nsd-category-bar{
    padding:4px 0 6px;
  }
  body:not(.nsd-header-compact) .nsd-category-scroll{
    width:fit-content;
    max-width:94%;
    margin:0 auto;
    justify-content:center;
    border-radius:10px;
  }
  body:not(.nsd-header-compact) .nsd-category-item{
    flex:0 0 112px;
    min-width:112px;
  }
  body:not(.nsd-header-compact) .nsd-category-item>a{
    min-height:66px;
    padding:4px 5px 5px;
    gap:2px;
    border-radius:9px;
  }
  body:not(.nsd-header-compact) .nsd-category-icon{
    width:36px;
    height:36px;
  }
  body:not(.nsd-header-compact) .nsd-category-name{
    min-height:28px;
    max-width:102px;
    line-height:1.12;
  }
}

/* ================================================================
   V6.4 — Professional button hover and keyboard-focus interactions
   ================================================================ */
@media (hover:hover) and (pointer:fine){
  /* Product-grid Add to cart / Select options */
  .woocommerce ul.products li.product .button:not(.disabled):not(:disabled):hover{
    background:var(--nsd-orange)!important;
    color:var(--nsd-blue)!important;
    border-color:var(--nsd-orange)!important;
    transform:translateY(-2px);
    filter:none;
    box-shadow:0 8px 18px rgba(255,173,10,.28);
  }

  /* Product-grid wishlist buttons */
  .woocommerce ul.products li.product .tinvwl_add_to_wishlist_button:hover,
  .woocommerce ul.products li.product .woosw-btn:hover,
  .woocommerce ul.products li.product .add_to_wishlist:hover{
    background:#fff5df!important;
    color:#9a5700!important;
    border-color:var(--nsd-orange)!important;
    transform:translateY(-2px);
    box-shadow:0 7px 16px rgba(255,173,10,.18);
  }

  /* Single-product Add to cart */
  .nsd-single-product-page form.cart .single_add_to_cart_button:not(.disabled):not(:disabled):hover{
    background:var(--nsd-orange)!important;
    color:var(--nsd-blue)!important;
    transform:translateY(-2px);
    filter:none;
    box-shadow:0 9px 20px rgba(255,173,10,.30);
  }

  /* Single-product Buy Now */
  .nsd-single-product-page form.cart .nsd-buy-now:not(:disabled):hover{
    background:var(--nsd-blue)!important;
    color:#fff!important;
    transform:translateY(-2px);
    filter:none;
    box-shadow:0 9px 20px rgba(7,26,70,.24);
  }

  /* Single-product wishlist */
  .nsd-single-product-page .tinvwl_add_to_wishlist_button:hover,
  .nsd-single-product-page .woosw-btn:hover,
  .nsd-single-product-page .add_to_wishlist:hover{
    background:#fff5df!important;
    color:#9a5700!important;
    border-color:var(--nsd-orange)!important;
    transform:translateY(-2px);
    box-shadow:0 7px 16px rgba(255,173,10,.18);
  }
}

/* Smooth motion and accessible keyboard focus. */
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .tinvwl_add_to_wishlist_button,
.woocommerce ul.products li.product .woosw-btn,
.woocommerce ul.products li.product .add_to_wishlist,
.nsd-single-product-page form.cart .single_add_to_cart_button,
.nsd-single-product-page form.cart .nsd-buy-now,
.nsd-single-product-page .tinvwl_add_to_wishlist_button,
.nsd-single-product-page .woosw-btn,
.nsd-single-product-page .add_to_wishlist{
  transition:background-color .24s ease,color .24s ease,border-color .24s ease,transform .24s ease,box-shadow .24s ease!important;
}

.woocommerce ul.products li.product .button:focus-visible,
.woocommerce ul.products li.product .tinvwl_add_to_wishlist_button:focus-visible,
.woocommerce ul.products li.product .woosw-btn:focus-visible,
.woocommerce ul.products li.product .add_to_wishlist:focus-visible,
.nsd-single-product-page form.cart .single_add_to_cart_button:focus-visible,
.nsd-single-product-page form.cart .nsd-buy-now:focus-visible,
.nsd-single-product-page .tinvwl_add_to_wishlist_button:focus-visible,
.nsd-single-product-page .woosw-btn:focus-visible,
.nsd-single-product-page .add_to_wishlist:focus-visible{
  outline:3px solid rgba(255,173,10,.42)!important;
  outline-offset:3px!important;
}

@media (prefers-reduced-motion:reduce){
  .woocommerce ul.products li.product .button,
  .woocommerce ul.products li.product .tinvwl_add_to_wishlist_button,
  .woocommerce ul.products li.product .woosw-btn,
  .woocommerce ul.products li.product .add_to_wishlist,
  .nsd-single-product-page form.cart .single_add_to_cart_button,
  .nsd-single-product-page form.cart .nsd-buy-now,
  .nsd-single-product-page .tinvwl_add_to_wishlist_button,
  .nsd-single-product-page .woosw-btn,
  .nsd-single-product-page .add_to_wishlist{
    transition:none!important;
  }
}

/* =========================================================
   V6.5 — Navigation & footer interactive states
   ========================================================= */
.nsd-menu a,
.nsd-whatsapp,
.nsd-allcats{
  transition:background-color .22s ease,color .22s ease,transform .22s ease,box-shadow .22s ease;
}
.nsd-menu a{
  position:relative;
  display:flex;
  align-items:center;
  min-height:46px;
  padding:0 5px;
}
.nsd-menu a::after{
  content:"";
  position:absolute;
  left:5px;
  right:5px;
  bottom:6px;
  height:3px;
  border-radius:3px;
  background:var(--nsd-orange);
  transform:scaleX(0);
  transform-origin:center;
  transition:transform .22s ease;
}
.nsd-menu a:hover,
.nsd-menu a:focus-visible,
.nsd-menu .current-menu-item > a,
.nsd-menu .current_page_item > a{
  color:var(--nsd-orange);
}
.nsd-menu a:hover::after,
.nsd-menu a:focus-visible::after,
.nsd-menu .current-menu-item > a::after,
.nsd-menu .current_page_item > a::after{
  transform:scaleX(1);
}
.nsd-allcats:hover,
.nsd-allcats:focus-visible{
  background:#f39b00;
  color:#fff;
}
.nsd-whatsapp:hover,
.nsd-whatsapp:focus-visible{
  background:#087a3b;
  color:#fff;
  box-shadow:0 7px 16px rgba(0,0,0,.18);
}

.nsd-footer-links{list-style:none;margin:0;padding:0}
.nsd-footer-links li{margin:0;padding:0}
.nsd-footer-links a{
  display:flex!important;
  align-items:center;
  gap:9px;
  width:max-content;
  max-width:100%;
  padding:3px 0;
  margin:4px 0!important;
  transition:color .22s ease,transform .22s ease;
}
.nsd-footer-link-icon{
  display:inline-grid;
  place-items:center;
  flex:0 0 19px;
  width:19px;
  height:19px;
  color:var(--nsd-orange);
  font-size:14px;
  line-height:1;
  transition:transform .22s ease,color .22s ease;
}
.nsd-footer-links a:hover,
.nsd-footer-links a:focus-visible{
  color:var(--nsd-orange)!important;
  transform:translateX(5px);
}
.nsd-footer-links a:hover .nsd-footer-link-icon,
.nsd-footer-links a:focus-visible .nsd-footer-link-icon{
  color:#fff;
  transform:scale(1.15);
}
.nsd-footer .nsd-subscribe-form{display:flex;max-width:330px}
.nsd-footer .nsd-subscribe-form input{
  min-width:0;
  flex:1;
  border:0;
  border-radius:7px 0 0 7px;
  padding:12px 13px;
}
.nsd-footer .nsd-subscribe-form button{
  border:0;
  border-radius:0 7px 7px 0;
  background:var(--nsd-orange);
  color:#111;
  font-weight:800;
  padding:0 18px;
  cursor:pointer;
  transition:background-color .22s ease,color .22s ease,transform .22s ease;
}
.nsd-footer .nsd-subscribe-form button:hover,
.nsd-footer .nsd-subscribe-form button:focus-visible{
  background:#fff;
  color:var(--nsd-blue);
}
@media(max-width:767px){
  .nsd-menu a::after{display:none}
  .nsd-menu a:hover,.nsd-menu a:focus-visible{background:#fff7e5;color:var(--nsd-blue)}
  .nsd-footer-links a{width:100%}
}



/* V6.6 one-line brand logo and software hub actions */
.nsd-logo{min-width:190px;gap:10px;white-space:nowrap}
.nsd-brand-mark{width:40px;height:40px;flex:0 0 40px;display:inline-grid;place-items:center}
.nsd-brand-mark svg{width:40px;height:40px;overflow:visible}
.nsd-brand-mark rect{fill:#fff8e6;stroke:var(--nsd-orange);stroke-width:2.5}
.nsd-brand-mark path{fill:none;stroke:var(--nsd-blue);stroke-width:2.8;stroke-linecap:round;stroke-linejoin:round}
.nsd-brand-copy{display:flex;flex-direction:column;min-width:0}
.nsd-brand-name{display:flex;align-items:baseline;gap:7px;line-height:1;white-space:nowrap;font-size:27px;letter-spacing:-.5px}
.nsd-brand-name b{color:var(--nsd-blue);font-weight:900}
.nsd-brand-name strong{color:var(--nsd-orange);font-weight:900}
.nsd-brand-copy small{display:block;margin-top:5px;font-size:9px;line-height:1;color:#667085;letter-spacing:.05px}

.nsd-software-card{display:flex;flex-direction:column;min-height:270px;position:relative;overflow:hidden}
.nsd-software-card:before{content:"";position:absolute;inset:0 0 auto;height:3px;background:linear-gradient(90deg,var(--nsd-orange),var(--nsd-blue));opacity:0;transition:.2s}
.nsd-software-card:hover:before{opacity:1}
.nsd-software-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.nsd-software-status{display:inline-flex;align-items:center;justify-content:center;padding:5px 9px;border-radius:999px;background:#e8f8ee;color:#087a3d;border:1px solid #bfe7ce;font-size:10px;font-weight:900;letter-spacing:.4px}
.nsd-software-card h3 a{color:inherit}
.nsd-software-card p{flex:1}
.nsd-software-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:auto}
.nsd-software-btn{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:10px 12px;border-radius:8px;font-size:12px;font-weight:900;transition:transform .2s ease,box-shadow .2s ease,background .2s ease,color .2s ease,border-color .2s ease}
.nsd-demo-btn{background:var(--nsd-orange);color:#071a46;border:1px solid var(--nsd-orange)}
.nsd-demo-btn:hover{background:var(--nsd-blue);color:#fff;border-color:var(--nsd-blue);transform:translateY(-2px);box-shadow:0 8px 18px rgba(7,26,70,.16)}
.nsd-download-btn{background:var(--nsd-blue);color:#fff;border:1px solid var(--nsd-blue)}
.nsd-download-btn:hover{background:#fff;color:var(--nsd-blue);border-color:var(--nsd-blue);transform:translateY(-2px);box-shadow:0 8px 18px rgba(7,26,70,.12)}
.nsd-software-card:focus-within{outline:3px solid rgba(255,173,10,.28);outline-offset:2px}

@media(max-width:1100px){
  .nsd-brand-name{font-size:24px}
  .nsd-logo{min-width:170px}
}
@media(max-width:600px){
  .nsd-brand-mark,.nsd-brand-mark svg{width:34px;height:34px}
  .nsd-brand-mark{flex-basis:34px}
  .nsd-brand-name{font-size:21px;gap:5px}
  .nsd-brand-copy small{display:none}
  .nsd-software-actions{grid-template-columns:1fr}
}


/* V6.7 compact category selector and refined NSD MART logo */
@media(min-width:768px){
  .nsd-search select{
    width:170px!important;
    min-width:170px!important;
    max-width:170px!important;
    flex:0 0 170px!important;
  }
}
.nsd-brand-mark{filter:drop-shadow(0 3px 7px rgba(7,26,70,.12))}
.nsd-brand-mark .nsd-logo-tile{fill:var(--nsd-blue);stroke:var(--nsd-orange);stroke-width:2.2}
.nsd-brand-mark .nsd-logo-bag-shape{fill:var(--nsd-orange);stroke:none}
.nsd-brand-mark .nsd-logo-handle{fill:none;stroke:#fff;stroke-width:2.6;stroke-linecap:round}
.nsd-brand-mark .nsd-logo-n{fill:none;stroke:#fff;stroke-width:2.8;stroke-linecap:round;stroke-linejoin:round}
.nsd-logo:hover .nsd-brand-mark{transform:translateY(-1px) scale(1.03);filter:drop-shadow(0 6px 12px rgba(7,26,70,.18))}
.nsd-brand-mark{transition:transform .2s ease,filter .2s ease}
.nsd-footer .nsd-brand-mark .nsd-logo-tile{fill:#fff;stroke:var(--nsd-orange)}
.nsd-footer .nsd-brand-mark .nsd-logo-bag-shape{fill:var(--nsd-orange)}
.nsd-footer .nsd-brand-mark .nsd-logo-handle,.nsd-footer .nsd-brand-mark .nsd-logo-n{stroke:var(--nsd-blue)}


/* =========================================================
   V6.8 — Compact desktop search width so the one-line logo stays fully visible
   ========================================================= */
@media (min-width:1025px){
  .nsd-header-row{
    grid-template-columns:220px minmax(0,450px) max-content!important;
    justify-content:center;
    column-gap:12px;
  }
  .nsd-search{
    width:450px!important;
    max-width:450px!important;
    min-width:0!important;
    justify-self:start;
  }
  .nsd-search input[type="search"]{
    min-width:0!important;
  }
  .nsd-logo{
    min-width:220px;
    overflow:visible;
  }
  body.nsd-header-compact .nsd-header-row{
    grid-template-columns:205px minmax(0,430px) max-content!important;
  }
  body.nsd-header-compact .nsd-search{
    width:430px!important;
    max-width:430px!important;
  }
}
@media (min-width:1025px) and (max-width:1350px){
  .nsd-header-row{
    grid-template-columns:205px minmax(0,380px) max-content!important;
  }
  .nsd-search{
    width:380px!important;
    max-width:380px!important;
  }
  body.nsd-header-compact .nsd-header-row{
    grid-template-columns:195px minmax(0,360px) max-content!important;
  }
  body.nsd-header-compact .nsd-search{
    width:360px!important;
    max-width:360px!important;
  }
}

/* =========================================================
   V6.9 — Final balanced desktop header
   Restore a useful search width while keeping the one-line logo visible.
   ========================================================= */
@media (min-width:1351px){
  .nsd-header-row{
    grid-template-columns:230px minmax(560px,1fr) max-content!important;
    justify-content:stretch!important;
    column-gap:14px!important;
  }
  .nsd-search,
  .dgwt-wcas-search-wrapp{
    width:100%!important;
    max-width:none!important;
    min-width:560px!important;
    justify-self:stretch!important;
  }
  .nsd-logo{
    min-width:230px!important;
    overflow:visible!important;
  }
  body.nsd-header-compact .nsd-header-row{
    grid-template-columns:215px minmax(540px,1fr) max-content!important;
  }
  body.nsd-header-compact .nsd-search,
  body.nsd-header-compact .dgwt-wcas-search-wrapp{
    width:100%!important;
    max-width:none!important;
    min-width:540px!important;
  }
}
@media (min-width:1025px) and (max-width:1350px){
  .nsd-header-row{
    grid-template-columns:205px minmax(430px,1fr) max-content!important;
    justify-content:stretch!important;
    column-gap:10px!important;
  }
  .nsd-search,
  .dgwt-wcas-search-wrapp{
    width:100%!important;
    max-width:none!important;
    min-width:430px!important;
    justify-self:stretch!important;
  }
  .nsd-logo{
    min-width:205px!important;
    overflow:visible!important;
  }
  body.nsd-header-compact .nsd-header-row{
    grid-template-columns:195px minmax(410px,1fr) max-content!important;
  }
  body.nsd-header-compact .nsd-search,
  body.nsd-header-compact .dgwt-wcas-search-wrapp{
    width:100%!important;
    max-width:none!important;
    min-width:410px!important;
  }
}

/* NSD MART V7 Control Panel extras */
.nsd-announcement{background:var(--nsd-orange,#ffad0a);text-align:center;padding:8px 15px;font-weight:800}
.nsd-announcement a{color:var(--nsd-blue,#071a46);text-decoration:none}
.nsd-offer-banner{display:block;margin:14px 0;border-radius:var(--nsd-radius,8px);overflow:hidden}
.nsd-offer-banner img{display:block;width:100%;height:auto}
.nsd-footer-contact{color:#d6def0;margin:6px 0;font-size:13px}


/* V8.1 Homepage Builder */
.nsd-home-builder-banner{display:block;margin:20px 0;border-radius:var(--nsd-radius,10px);overflow:hidden;background:#fff}
.nsd-home-builder-banner img{display:block;width:100%;height:auto}
.nsd-builder-cat{gap:8px;min-height:170px;overflow:hidden}
.nsd-builder-cat img{width:82px;height:82px;object-fit:contain;margin:0 auto}
.nsd-builder-cat strong{display:block}.nsd-cat-placeholder{font-size:48px;line-height:1}
.nsd-brand-grid{display:grid;grid-template-columns:repeat(8,1fr);gap:12px}
.nsd-brand-grid a,.nsd-brand-grid>span{display:flex;align-items:center;justify-content:center;min-height:82px;padding:14px;background:#fff;border:1px solid var(--nsd-border);border-radius:var(--nsd-radius,8px);font-weight:700;text-align:center}
.nsd-testimonial-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.nsd-testimonial-grid article{background:#fff;border:1px solid var(--nsd-border);border-radius:var(--nsd-radius,8px);padding:22px;box-shadow:0 5px 18px rgba(7,26,70,.05)}
.nsd-testimonial-grid p{line-height:1.7;color:#596273}.nsd-testimonial-stars{color:#ffad0a;letter-spacing:2px}
@media(max-width:900px){.nsd-brand-grid{grid-template-columns:repeat(4,1fr)}.nsd-testimonial-grid{grid-template-columns:1fr}.nsd-cat-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:560px){.nsd-brand-grid{grid-template-columns:repeat(2,1fr)}.nsd-cat-grid{grid-template-columns:repeat(2,1fr)}}

/* NSD MART V9.0 e-commerce features */
.nsd-shipping-progress{padding:14px 16px;margin:0 0 18px;background:#fff;border:1px solid #e5e9f0;border-radius:10px}.nsd-shipping-message{font-weight:700;margin-bottom:8px}.nsd-progress-track{height:9px;background:#e9edf3;border-radius:99px;overflow:hidden}.nsd-progress-track span{display:block;height:100%;background:#0d8f47;border-radius:99px;transition:width .3s}
.nsd-card-actions{display:flex;gap:7px;margin-top:8px}.nsd-card-actions button{flex:1;border:1px solid #dce2eb;background:#fff;border-radius:7px;padding:7px 6px;font-size:12px;font-weight:700;cursor:pointer}.nsd-card-actions button:hover{border-color:#071a46;color:#071a46}
.nsd-modal{display:none;position:fixed;inset:0;background:rgba(3,12,32,.68);z-index:999999;align-items:center;justify-content:center;padding:20px}.nsd-modal.is-open{display:flex}.nsd-modal-box{position:relative;background:#fff;width:min(860px,96vw);max-height:90vh;overflow:auto;border-radius:14px;padding:26px}.nsd-modal-close{position:absolute;right:12px;top:8px;border:0;background:transparent;font-size:32px;cursor:pointer}.nsd-qv-grid{display:grid;grid-template-columns:1fr 1fr;gap:28px;align-items:center}.nsd-qv-grid img{width:100%;height:auto}.nsd-qv-grid .price{font-size:22px;font-weight:800;margin:12px 0}.nsd-qv-desc{margin-bottom:18px}
.nsd-compare-drawer{position:fixed;right:-560px;top:0;width:min(540px,96vw);height:100vh;background:#fff;z-index:999999;box-shadow:-8px 0 30px rgba(0,0,0,.18);padding:24px;overflow:auto;transition:right .25s}.nsd-compare-drawer.is-open{right:0}.nsd-compare-close{float:right;border:0;background:transparent;font-size:30px}.nsd-compare-table{width:100%;border-collapse:collapse}.nsd-compare-table th,.nsd-compare-table td{border-bottom:1px solid #e7ebf1;padding:10px;text-align:left;vertical-align:middle}.nsd-compare-table img{width:46px;height:46px;object-fit:cover;margin-right:8px;vertical-align:middle}.nsd-compare-remove{border:0;background:#f2f4f7;border-radius:50%;width:28px;height:28px}
.nsd-recently-viewed,.nsd-product-video,.nsd-product-faq{clear:both;margin:32px auto;max-width:1420px;padding:0 18px}.nsd-product-video iframe,.nsd-product-video video{width:100%;max-width:850px;aspect-ratio:16/9;height:auto;border:0;border-radius:12px}.nsd-product-faq details{border:1px solid #e3e8ef;border-radius:9px;margin:9px 0;background:#fff}.nsd-product-faq summary{cursor:pointer;font-weight:750;padding:14px 16px}.nsd-product-faq details div{padding:0 16px 14px;color:#475467}
.nsd-pincode-checker{margin:16px 0;padding:14px;background:#f7f9fc;border:1px solid #e2e7ef;border-radius:9px}.nsd-pincode-checker>div{display:flex;margin-top:8px}.nsd-pincode-checker input{flex:1;min-width:0;padding:10px;border:1px solid #cfd6e1;border-radius:7px 0 0 7px}.nsd-pincode-checker button{border:0;background:#071a46;color:#fff;padding:0 16px;border-radius:0 7px 7px 0;font-weight:700}.nsd-pincode-result{margin:8px 0 0}.nsd-pincode-result.ok{color:#0d8f47}.nsd-pincode-result.bad{color:#b42318}
.nsd-v9-trust-badges{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:16px 0}.nsd-v9-trust-badges span{display:block;padding:10px;background:#f8fafc;border:1px solid #e4e9f0;border-radius:8px;font-size:13px;font-weight:700}
.nsd-sticky-cart{position:fixed;left:0;right:0;bottom:0;z-index:99990;background:#fff;border-top:1px solid #dfe5ed;box-shadow:0 -5px 20px rgba(0,0,0,.1);display:flex;align-items:center;justify-content:space-between;gap:20px;padding:10px max(18px,calc((100vw - 1420px)/2));transform:translateY(110%);animation:nsdStickyIn .35s forwards .7s}.nsd-sticky-product{display:flex;align-items:center;gap:10px}.nsd-sticky-product img{width:48px;height:48px;object-fit:cover;border-radius:7px}.nsd-sticky-product span{display:grid}.nsd-sticky-add{min-width:150px}@keyframes nsdStickyIn{to{transform:translateY(0)}}
@media(max-width:700px){.nsd-qv-grid{grid-template-columns:1fr}.nsd-v9-trust-badges{grid-template-columns:1fr}.nsd-sticky-product strong{max-width:150px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.nsd-sticky-product img{display:none}.nsd-sticky-cart{padding:8px 12px}.nsd-sticky-add{min-width:120px}}

/* V9.2: title line count is generated dynamically in wp_head with stronger selectors. */

/* NSD MART V28.4 — Stability fix
   Reverted the global scrollbar/drawer overrides that caused white flashing
   and header jumps during navigation. Native drawer styles remain active. */
html{scroll-behavior:auto;}
body{overflow-x:hidden;}


/* =========================================================
 * NSD MART V28.4 — Targeted right off-canvas stability fix
 * Keeps the normal browser scrollbar and header untouched.
 * ========================================================= */
html, body {
  max-width: 100%;
  overflow-x: clip;
}

/* Compare drawer: fully outside paint/hit testing until opened. */
#nsd-compare-drawer.nsd-compare-drawer {
  right: 0 !important;
  transform: translate3d(110%,0,0) !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  will-change: transform;
  transition: transform .25s ease, opacity .15s ease, visibility 0s linear .25s !important;
  contain: layout paint style;
}
#nsd-compare-drawer.nsd-compare-drawer.is-open {
  transform: translate3d(0,0,0) !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  transition: transform .25s ease, opacity .15s ease, visibility 0s !important;
}

/* Wishlist drawer: prevent any white strip or slide flash on navigation. */
#nsd-v25-wishlist-drawer.nsd-v25-drawer {
  right: 0 !important;
  transform: translate3d(110%,0,0) !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  will-change: transform;
  transition: transform .25s ease, opacity .15s ease, visibility 0s linear .25s !important;
  contain: layout paint style;
}
#nsd-v25-wishlist-drawer.nsd-v25-drawer.is-open {
  transform: translate3d(0,0,0) !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  transition: transform .25s ease, opacity .15s ease, visibility 0s !important;
}

/* Overlay is also non-interactive until explicitly opened. */
#nsd-v25-overlay.nsd-v25-overlay {
  pointer-events: none !important;
}
#nsd-v25-overlay.nsd-v25-overlay.is-open {
  pointer-events: auto !important;
}

/* Mobile filter drawer only; desktop filter layout remains unchanged. */
@media (max-width:680px) {
  .nsd-v26-filter-form {
    right: 0 !important;
    transform: translate3d(110%,0,0) !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: transform .25s ease, opacity .15s ease, visibility 0s linear .25s !important;
    contain: layout paint style;
  }
  .nsd-v26-filter-form.is-open {
    transform: translate3d(0,0,0) !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transition: transform .25s ease, opacity .15s ease, visibility 0s !important;
  }
}
\n\n/* =========================================================
 * NSD MART V28.6 — Stable sticky header + names-only category strip
 * Desktop only. Header/menu remain fixed; category icons disappear
 * after scrolling without repeated compact/expand shaking.
 * ========================================================= */
@media (min-width:1025px){
  .nsd-sticky-shell{
    position:sticky;
    top:0;
    z-index:9999;
    isolation:isolate;
  }
  .admin-bar .nsd-sticky-shell{top:32px!important}

  /* Keep the main header and navigation dimensions unchanged. */
  body.nsd-header-compact .nsd-header-row{
    grid-template-columns:205px minmax(430px,1fr) max-content!important;
    padding:10px 0!important;
  }
  body.nsd-header-compact .nsd-logo{font-size:27px!important}
  body.nsd-header-compact .nsd-logo small{display:block!important}
  body.nsd-header-compact .nsd-logo .custom-logo{max-height:48px!important;max-width:185px!important}
  body.nsd-header-compact .nsd-action-card{min-height:48px!important;padding:6px 8px!important}
  body.nsd-header-compact .nsd-action-icon{width:32px!important;height:32px!important;flex-basis:32px!important}
  body.nsd-header-compact .nsd-action-copy small{display:block!important}
  body.nsd-header-compact .nsd-nav .nsd-container{min-height:44px!important}
  body.nsd-header-compact .nsd-allcats,
  body.nsd-header-compact .nsd-whatsapp{padding-top:12px!important;padding-bottom:12px!important}
  body.nsd-header-compact .nsd-menu a{font-size:13px!important}

  /* Only the category strip becomes compact and text-only. */
  body.nsd-header-compact .nsd-category-bar{
    padding:0!important;
    background:#fff!important;
    border-top:1px solid #edf0f5!important;
    border-bottom:1px solid #e5e9f0!important;
    box-shadow:0 4px 12px rgba(7,26,70,.08)!important;
  }
  body.nsd-header-compact .nsd-category-scroll{
    width:min(1420px,94%)!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
    display:flex!important;
    justify-content:center!important;
    overflow-x:auto!important;
    overflow-y:visible!important;
    scrollbar-width:none;
  }
  body.nsd-header-compact .nsd-category-scroll::-webkit-scrollbar{display:none}
  body.nsd-header-compact .nsd-category-item{
    flex:0 0 auto!important;
    min-width:0!important;
    border:0!important;
  }
  body.nsd-header-compact .nsd-category-item>a{
    min-height:38px!important;
    padding:0 14px!important;
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:center!important;
    gap:4px!important;
    border-radius:0!important;
    transform:none!important;
    transition:background-color .15s ease,color .15s ease!important;
  }
  body.nsd-header-compact .nsd-category-icon,
  body.nsd-header-compact .nsd-category-count{
    display:none!important;
  }
  body.nsd-header-compact .nsd-category-name{
    display:block!important;
    min-height:0!important;
    max-width:none!important;
    font-size:13px!important;
    font-weight:700!important;
    line-height:38px!important;
    white-space:nowrap!important;
    overflow:visible!important;
  }
  body.nsd-header-compact .nsd-category-caret{margin:0!important;font-size:11px!important}
  body.nsd-header-compact .nsd-category-item:hover>a,
  body.nsd-header-compact .nsd-category-item:focus-within>a{
    background:#f5f8ff!important;
    color:var(--nsd-blue)!important;
  }
  body.nsd-header-compact .nsd-mega-menu{top:100%!important}

  /* Prevent old all-property transitions from animating layout height. */
  .nsd-header-row,.nsd-logo,.nsd-action-card,.nsd-action-icon,
  .nsd-category-item>a,.nsd-category-icon{
    transition:none!important;
  }
}

/* V28.7 — Active category highlight + reliable desktop hover submenus */
@media (min-width:768px){
  .nsd-category-item.is-current-category > a,
  body.nsd-header-compact .nsd-category-item.is-current-category > a{
    background:#fff1cf!important;
    color:#071a46!important;
    box-shadow:inset 0 -3px 0 #ff9f00!important;
    font-weight:800!important;
  }
  .nsd-category-item.is-current-category .nsd-category-caret{color:#ff8a00!important}

  /* Menu is positioned by JS as fixed, so horizontal category scrolling cannot clip it. */
  .nsd-category-item > .nsd-mega-menu.nsd-desktop-hover-menu{
    position:fixed!important;
    top:var(--nsd-mega-top, 0px)!important;
    left:var(--nsd-mega-left, 0px)!important;
    right:auto!important;
    width:var(--nsd-mega-width, min(780px, calc(100vw - 32px)))!important;
    max-width:calc(100vw - 24px)!important;
    z-index:100000!important;
  }
  .nsd-category-item:hover > a,
  .nsd-category-item.is-mega-open > a{
    background:#fff7e5!important;
    color:#071a46!important;
  }
}


/* =========================================================
 * NSD MART V28.9 — Clear active menu + smaller hover submenu
 * ========================================================= */
@media (min-width:768px){
  /* The currently opened main page is clearly visible. */
  .nsd-menu .current-menu-item > a,
  .nsd-menu .current_page_item > a,
  .nsd-menu .current-menu-ancestor > a,
  .nsd-menu a.is-current-nav{
    background:#ffad0a!important;
    color:#071a46!important;
    border-radius:5px!important;
    font-weight:900!important;
    box-shadow:inset 0 -3px 0 #e78600!important;
    padding-left:12px!important;
    padding-right:12px!important;
  }
  .nsd-menu .current-menu-item > a::after,
  .nsd-menu .current_page_item > a::after,
  .nsd-menu .current-menu-ancestor > a::after,
  .nsd-menu a.is-current-nav::after{display:none!important}

  /* Compact category dropdown, especially simple Mens/Women lists. */
  .nsd-category-item > .nsd-mega-menu.nsd-desktop-hover-menu{
    padding:10px 11px 11px!important;
    border-radius:0 0 10px 10px!important;
  }
  .nsd-category-item > .nsd-mega-menu.nsd-desktop-hover-menu.nsd-mega-leaf-only{
    width:var(--nsd-mega-width, 330px)!important;
    max-width:360px!important;
  }
  .nsd-mega-menu.nsd-mega-leaf-only .nsd-mega-head{
    padding-bottom:7px!important;
    margin-bottom:7px!important;
  }
  .nsd-mega-menu.nsd-mega-leaf-only .nsd-mega-head strong{font-size:15px!important}
  .nsd-mega-menu.nsd-mega-leaf-only .nsd-mega-head span{font-size:10px!important}
  .nsd-mega-menu.nsd-mega-leaf-only .nsd-mega-grid{gap:5px!important}
  .nsd-mega-menu.nsd-mega-leaf-only .nsd-mega-title{
    min-height:32px!important;
    padding:6px 9px!important;
    font-size:12px!important;
  }
}

/* =========================================================
 * NSD MART V28.9 — Text-only active navigation + working All Categories
 * ========================================================= */
@media (min-width:768px){
  /* Active page: only text colour and a slim underline, no large box. */
  .nsd-menu .current-menu-item > a,
  .nsd-menu .current_page_item > a,
  .nsd-menu .current-menu-ancestor > a,
  .nsd-menu a.is-current-nav{
    background:transparent!important;
    color:#ffad0a!important;
    border-radius:0!important;
    box-shadow:none!important;
    padding-left:0!important;
    padding-right:0!important;
    font-weight:900!important;
    position:relative!important;
  }
  .nsd-menu .current-menu-item > a::after,
  .nsd-menu .current_page_item > a::after,
  .nsd-menu .current-menu-ancestor > a::after,
  .nsd-menu a.is-current-nav::after{
    content:""!important;
    display:block!important;
    position:absolute!important;
    left:0!important;
    right:0!important;
    bottom:5px!important;
    height:2px!important;
    border-radius:2px!important;
    background:#ffad0a!important;
  }

  .nsd-allcats-wrap{position:relative;align-self:stretch;display:flex;min-width:220px}
  .nsd-allcats{
    width:100%;border:0;cursor:pointer;text-align:left;
    display:flex;align-items:center;justify-content:flex-start;gap:5px;
    font:inherit;
  }
  .nsd-allcats-caret{margin-left:auto;font-size:13px;transition:transform .18s ease}
  .nsd-allcats-wrap.is-open .nsd-allcats-caret{transform:rotate(180deg)}
  .nsd-allcats-panel{
    display:none;position:absolute;top:100%;left:0;z-index:100001;
    width:330px;max-height:520px;overflow:auto;background:#fff;
    border:1px solid #e6eaf2;border-top:0;border-radius:0 0 12px 12px;
    box-shadow:0 16px 34px rgba(7,26,70,.18);padding:10px;
  }
  .nsd-allcats-wrap.is-open .nsd-allcats-panel{display:block}
  .nsd-allcats-panel-title{font-size:15px;font-weight:900;color:#071a46;padding:5px 8px 10px;border-bottom:1px solid #edf0f5;margin-bottom:5px}
  .nsd-allcats-panel-list{display:grid;gap:3px}
  .nsd-allcats-panel-list a{
    display:flex;align-items:center;justify-content:space-between;
    min-height:36px;padding:7px 9px;border-radius:7px;color:#071a46;
    font-size:13px;font-weight:750;text-decoration:none;
  }
  .nsd-allcats-panel-list a::after{content:"→";color:#ff9f00;font-weight:900}
  .nsd-allcats-panel-list a:hover,.nsd-allcats-panel-list a:focus{background:#fff7e5;color:#071a46}
}


/* =========================================================
   V29.1 Header controls
   ========================================================= */
.nsd-nav .nsd-container.nsd-no-allcats .nsd-menu{padding-left:0}
.nsd-nav .nsd-container.nsd-no-allcats .nsd-menu{justify-content:flex-start}
.nsd-header-row:not(:has(.nsd-logo)){grid-template-columns:minmax(360px,1fr) max-content}
.nsd-header-row:not(:has(.nsd-search)):not(:has(.dgwt-wcas-search-wrapp)){grid-template-columns:220px max-content;justify-content:space-between}
.nsd-header-row:not(:has(.nsd-logo)):not(:has(.nsd-search)):not(:has(.dgwt-wcas-search-wrapp)){grid-template-columns:1fr;justify-items:end}
@media(max-width:767px){.nsd-nav .nsd-container.nsd-no-allcats .nsd-menu{padding-left:18px}}

/* V29.4 catalogue image box: complete product visible, minimal outside gap. */
.woocommerce ul.products li.product a img.nsd-auto-trimmed{
  width:100%!important;
  height:270px!important;
  padding:4px 0 0!important;
  object-fit:contain!important;
  object-position:center top!important;
}
.woocommerce ul.products li.product:hover a img.nsd-auto-trimmed{transform:scale(1.055)!important}
@media(max-width:767px){.woocommerce ul.products li.product a img.nsd-auto-trimmed{height:235px!important;padding-top:3px!important}}


/* =========================================================
 * NSD MART V29.5 — Uniform catalogue cards + stable single image
 * ========================================================= */
.woocommerce ul.products li.product{
  display:flex!important;
  flex-direction:column!important;
  height:100%!important;
  min-width:0!important;
}
.woocommerce ul.products li.product > a.woocommerce-LoopProduct-link{
  display:flex!important;
  flex-direction:column!important;
  width:100%!important;
  min-width:0!important;
}
/* Every product gets exactly the same image stage, regardless of source dimensions. */
.woocommerce ul.products li.product a img,
.woocommerce ul.products li.product a img.nsd-auto-trimmed{
  display:block!important;
  width:100%!important;
  height:292px!important;
  min-height:292px!important;
  max-height:292px!important;
  margin:0 0 10px!important;
  padding:2px 0 0!important;
  object-fit:contain!important;
  object-position:center top!important;
  transform-origin:center center!important;
  transition:transform .22s ease!important;
}
/* Gentle hover only; the fixed stage never changes size. */
.woocommerce ul.products li.product:hover a img,
.woocommerce ul.products li.product:hover a img.nsd-auto-trimmed{
  transform:scale(1.045)!important;
}
/* Reserve the title position for the selected number of lines. */
.woocommerce ul.products li.product .nsd-v94-product-title{
  flex:0 0 auto!important;
  margin-top:0!important;
}
.woocommerce ul.products li.product .nsd-v94-product-title[data-lines="1"]{
  min-height:calc(var(--nsd-title-size) * 1.38)!important;
  max-height:calc(var(--nsd-title-size) * 1.38)!important;
}
.woocommerce ul.products li.product .nsd-v94-product-title[data-lines="2"]{
  min-height:calc(var(--nsd-title-size) * 2.76)!important;
  max-height:calc(var(--nsd-title-size) * 2.76)!important;
}
.woocommerce ul.products li.product .nsd-v94-product-title[data-lines="3"]{
  min-height:calc(var(--nsd-title-size) * 4.14)!important;
  max-height:calc(var(--nsd-title-size) * 4.14)!important;
}
/* Keep the bottom action area aligned across a row. */
.woocommerce ul.products li.product > .button:first-of-type,
.woocommerce ul.products li.product > a.button:first-of-type{
  margin-top:auto!important;
}

/* The unstable WooCommerce magnifier is disabled; lightbox/slider remain available. */
.single-product .woocommerce-product-gallery .zoomImg{display:none!important}
.single-product .woocommerce-product-gallery__image img{
  transform:none!important;
  transition:none!important;
}

@media(max-width:767px){
  .woocommerce ul.products li.product a img,
  .woocommerce ul.products li.product a img.nsd-auto-trimmed{
    height:242px!important;
    min-height:242px!important;
    max-height:242px!important;
    padding-top:2px!important;
  }
}

/* =========================================================
 * NSD MART V30 — Premium customer pages
 * My Account, Track Order, Cart, Checkout and order screens
 * ========================================================= */
.woocommerce-account .site-main,
.woocommerce-account main,
.woocommerce-order-tracking .site-main,
.woocommerce-order-tracking main{
  background:linear-gradient(180deg,#f6f9ff 0%,#ffffff 100%);
}
.woocommerce-account .woocommerce,
.woocommerce-order-tracking .woocommerce{
  max-width:1280px;
  margin:0 auto;
  padding:48px 20px 64px;
}

/* My Account shell */
.woocommerce-account .woocommerce::after{content:"";display:block;clear:both}
.woocommerce-account .woocommerce-MyAccount-navigation{
  width:270px!important;
  float:left!important;
  background:#fff;
  border:1px solid #e4eaf4;
  border-radius:20px;
  padding:12px;
  box-shadow:0 14px 40px rgba(7,35,83,.09);
  overflow:hidden;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul{margin:0!important;padding:0!important;list-style:none!important}
.woocommerce-account .woocommerce-MyAccount-navigation li{margin:3px 0!important;padding:0!important;list-style:none!important}
.woocommerce-account .woocommerce-MyAccount-navigation li a{
  display:flex!important;align-items:center!important;gap:12px!important;
  min-height:48px;padding:12px 14px!important;border-radius:12px!important;
  color:#102650!important;font-weight:750!important;text-decoration:none!important;
  transition:.2s ease;
}
.woocommerce-account .woocommerce-MyAccount-navigation li a::before{
  width:28px;height:28px;display:grid;place-items:center;flex:0 0 28px;
  border-radius:9px;background:#f2f6ff;font-size:15px;
}
.woocommerce-account .woocommerce-MyAccount-navigation-link--dashboard a::before{content:"⌂"}
.woocommerce-account .woocommerce-MyAccount-navigation-link--orders a::before{content:"▣"}
.woocommerce-account .woocommerce-MyAccount-navigation-link--downloads a::before{content:"↓"}
.woocommerce-account .woocommerce-MyAccount-navigation-link--edit-address a::before{content:"⌖"}
.woocommerce-account .woocommerce-MyAccount-navigation-link--edit-account a::before{content:"♙"}
.woocommerce-account .woocommerce-MyAccount-navigation-link--wishlist a::before{content:"♡"}
.woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout a::before{content:"↗"}
.woocommerce-account .woocommerce-MyAccount-navigation li:hover a,
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a{
  color:#071f4f!important;background:linear-gradient(90deg,#fff1c6,#fff8e8)!important;
  box-shadow:inset 4px 0 0 #ffad00;
}
.woocommerce-account .woocommerce-MyAccount-content{
  width:calc(100% - 300px)!important;float:right!important;
  background:#fff;border:1px solid #e4eaf4;border-radius:22px;
  padding:30px!important;min-height:420px;
  box-shadow:0 14px 40px rgba(7,35,83,.08);
}
.woocommerce-account .woocommerce-MyAccount-content > p{
  background:#f7f9fd;border:1px solid #e7edf6;border-radius:14px;
  padding:16px 18px;margin:0 0 14px!important;color:#43516c;line-height:1.65;
}
.woocommerce-account .woocommerce-MyAccount-content a{color:#072b6f;font-weight:700}

.nsd-account-hero{
  display:flex;align-items:center;justify-content:space-between;gap:22px;
  padding:25px 26px;margin:0 0 24px;border-radius:18px;
  color:#fff;background:linear-gradient(135deg,#061d4c 0%,#0b357d 70%,#104599 100%);
  box-shadow:0 14px 32px rgba(5,31,82,.22);overflow:hidden;position:relative;
}
.nsd-account-hero::after{content:"";position:absolute;width:180px;height:180px;right:-55px;top:-75px;border-radius:50%;background:rgba(255,179,0,.18)}
.nsd-account-hero h2{margin:0 0 6px!important;color:#fff!important;font-size:27px!important}
.nsd-account-hero p{margin:0!important;color:#dce8ff!important}
.nsd-account-avatar{width:62px;height:62px;border-radius:18px;background:#ffb000;color:#061d4c;display:grid;place-items:center;font-size:28px;font-weight:900;flex:0 0 62px;box-shadow:0 8px 20px rgba(0,0,0,.18)}
.nsd-account-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:0 0 24px}
.nsd-account-card{
  display:block!important;min-height:145px;padding:20px!important;border:1px solid #e3eaf5;border-radius:17px;
  background:linear-gradient(180deg,#fff,#f8faff);text-decoration:none!important;color:#102650!important;
  box-shadow:0 8px 22px rgba(9,36,80,.06);transition:.2s ease;
}
.nsd-account-card:hover{transform:translateY(-4px);border-color:#ffbf32;box-shadow:0 13px 28px rgba(9,36,80,.12)}
.nsd-account-card .nsd-card-icon{width:44px;height:44px;display:grid;place-items:center;border-radius:13px;background:#fff0c9;font-size:22px;margin-bottom:14px}
.nsd-account-card strong{display:block;font-size:17px;margin-bottom:5px}
.nsd-account-card span{display:block;color:#66738c;font-size:13px;line-height:1.45;font-weight:500}

/* Premium Track Order */
.nsd-track-shell{max-width:1040px;margin:0 auto}
.nsd-track-hero{text-align:center;margin:0 0 24px}
.nsd-track-icon{width:74px;height:74px;margin:0 auto 15px;display:grid;place-items:center;border-radius:22px;background:linear-gradient(135deg,#ffbd22,#ff9c00);box-shadow:0 12px 28px rgba(255,165,0,.28);font-size:34px}
.nsd-track-hero h1{margin:0 0 8px!important;color:#071f4f!important;font-size:38px!important}
.nsd-track-hero p{max-width:680px;margin:0 auto!important;color:#61708b!important;font-size:16px;line-height:1.65}
.nsd-track-card{background:#fff;border:1px solid #e1e8f3;border-radius:24px;padding:30px;box-shadow:0 18px 50px rgba(7,35,83,.11)}
.nsd-track-card .nsd-track-fields{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.nsd-track-card .form-row{width:100%!important;float:none!important;margin:0!important}
.nsd-track-card label{display:block;margin:0 0 8px;color:#102650;font-weight:800;font-size:14px}
.nsd-track-card input.input-text{width:100%!important;height:54px!important;padding:0 16px!important;border:1px solid #ced8e8!important;border-radius:13px!important;background:#f9fbff!important;color:#102650!important;font-size:15px!important;box-shadow:none!important;transition:.2s}
.nsd-track-card input.input-text:focus{border-color:#ffae00!important;background:#fff!important;box-shadow:0 0 0 4px rgba(255,174,0,.14)!important;outline:none!important}
.nsd-track-card .nsd-track-submit{margin:20px 0 0!important}
.nsd-track-card button.button,
.nsd-track-card input.button{
  width:100%!important;height:56px!important;border:0!important;border-radius:14px!important;
  color:#071f4f!important;background:linear-gradient(90deg,#ffc126,#ffa300)!important;
  font-size:17px!important;font-weight:900!important;letter-spacing:.2px!important;
  box-shadow:0 12px 25px rgba(255,166,0,.28)!important;cursor:pointer;transition:.2s ease;
}
.nsd-track-card button.button:hover,.nsd-track-card input.button:hover{transform:translateY(-2px);filter:brightness(.98);box-shadow:0 15px 30px rgba(255,166,0,.36)!important}
.nsd-track-help{display:flex;justify-content:center;gap:26px;flex-wrap:wrap;margin:22px 0 0;padding-top:20px;border-top:1px dashed #d9e2ef;color:#62718b;font-size:13px}
.nsd-track-help span::before{content:"✓";margin-right:7px;color:#079447;font-weight:900}

/* General premium WooCommerce forms/tables used by account, cart and checkout */
.woocommerce table.shop_table{border:1px solid #e1e8f3!important;border-radius:16px!important;overflow:hidden;background:#fff;box-shadow:0 8px 24px rgba(7,35,83,.06)}
.woocommerce table.shop_table th{background:#f3f7fd;color:#102650;font-weight:850}
.woocommerce .woocommerce-Button.button,
.woocommerce-account .button:not(.nsd-no-style){border-radius:11px!important;background:#09275d!important;color:#fff!important;font-weight:800!important;border:0!important;padding:12px 18px!important}
.woocommerce .woocommerce-Button.button:hover,.woocommerce-account .button:hover{background:#ffad00!important;color:#071f4f!important}

@media(max-width:900px){
 .woocommerce-account .woocommerce-MyAccount-navigation,.woocommerce-account .woocommerce-MyAccount-content{width:100%!important;float:none!important}
 .woocommerce-account .woocommerce-MyAccount-navigation{margin-bottom:18px}
 .woocommerce-account .woocommerce-MyAccount-navigation ul{display:flex;overflow-x:auto;gap:6px;padding-bottom:3px!important}
 .woocommerce-account .woocommerce-MyAccount-navigation li{flex:0 0 auto}
 .woocommerce-account .woocommerce-MyAccount-navigation li a{white-space:nowrap}
 .nsd-account-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:640px){
 .woocommerce-account .woocommerce,.woocommerce-order-tracking .woocommerce{padding:28px 12px 45px}
 .woocommerce-account .woocommerce-MyAccount-content{padding:18px!important;border-radius:17px}
 .nsd-account-hero{padding:20px;align-items:flex-start}
 .nsd-account-hero h2{font-size:22px!important}
 .nsd-account-avatar{width:50px;height:50px;flex-basis:50px;border-radius:14px}
 .nsd-account-grid{grid-template-columns:1fr}
 .nsd-track-hero h1{font-size:30px!important}
 .nsd-track-card{padding:20px 16px;border-radius:18px}
 .nsd-track-card .nsd-track-fields{grid-template-columns:1fr}
}

/* =========================================================
 * NSD MART V31 — Premium Cart & Checkout
 * Supports WooCommerce classic and Checkout/Cart blocks
 * ========================================================= */
body.woocommerce-cart .site-main,
body.woocommerce-checkout .site-main,
body.woocommerce-cart main,
body.woocommerce-checkout main{
  background:linear-gradient(180deg,#f4f8ff 0%,#ffffff 72%);
}
body.woocommerce-cart .woocommerce,
body.woocommerce-checkout .woocommerce,
body.woocommerce-cart .wp-block-woocommerce-cart,
body.woocommerce-checkout .wp-block-woocommerce-checkout{
  max-width:1440px;margin:0 auto;padding:44px 20px 68px;
}
body.woocommerce-cart h1,
body.woocommerce-checkout h1,
body.woocommerce-cart .entry-title,
body.woocommerce-checkout .entry-title{
  color:#071f4f!important;font-size:36px!important;line-height:1.15!important;
  font-weight:900!important;margin:0 0 30px!important;letter-spacing:-.5px;
}

/* Block Cart layout */
body.woocommerce-cart .wc-block-cart{
  gap:28px!important;align-items:start!important;
}
body.woocommerce-cart .wc-block-cart-items{
  background:#fff;border:1px solid #e1e8f3;border-radius:22px;
  padding:10px 22px;box-shadow:0 16px 40px rgba(7,31,79,.08);
  overflow:hidden;
}
body.woocommerce-cart .wc-block-cart-items__header{
  color:#071f4f;font-weight:900;text-transform:uppercase;letter-spacing:.3px;
  border-bottom:1px solid #e6ebf3!important;
}
body.woocommerce-cart .wc-block-cart-items__row{
  padding:22px 0!important;border-bottom:1px solid #edf1f7!important;
}
body.woocommerce-cart .wc-block-cart-item__image img{
  width:110px!important;height:110px!important;object-fit:contain!important;
  background:#f7f9fd;border:1px solid #e7ecf4;border-radius:14px;padding:6px;
}
body.woocommerce-cart .wc-block-components-product-name{
  color:#071f4f!important;font-size:16px!important;font-weight:850!important;line-height:1.35!important;
}
body.woocommerce-cart .wc-block-components-product-price,
body.woocommerce-cart .wc-block-components-product-badge{
  font-weight:800!important;
}
body.woocommerce-cart .wc-block-components-quantity-selector{
  border:1px solid #d6dfec!important;border-radius:10px!important;overflow:hidden;background:#fff;
}
body.woocommerce-cart .wc-block-components-quantity-selector input{
  min-width:42px!important;font-weight:800!important;color:#071f4f!important;
}
body.woocommerce-cart .wc-block-cart-item__remove-link{
  color:#cf2637!important;font-weight:750!important;text-decoration:none!important;
}
body.woocommerce-cart .wc-block-cart__sidebar{
  background:#fff;border:1px solid #e1e8f3;border-radius:22px;
  padding:24px!important;box-shadow:0 16px 40px rgba(7,31,79,.10);
  position:sticky;top:100px;
}
body.woocommerce-cart .wc-block-cart__totals-title{
  color:#071f4f!important;font-size:22px!important;font-weight:900!important;
  text-transform:none!important;letter-spacing:0!important;padding:0 0 16px!important;
}
body.woocommerce-cart .wc-block-components-totals-wrapper{
  border-top:1px solid #e8edf5!important;padding:16px 0!important;
}
body.woocommerce-cart .wc-block-components-totals-item__label,
body.woocommerce-cart .wc-block-components-totals-item__value{font-weight:750!important;color:#233554!important}
body.woocommerce-cart .wc-block-components-totals-footer-item{
  background:#f4f8ff;border-radius:14px;padding:17px 15px!important;margin-top:8px;
}
body.woocommerce-cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
body.woocommerce-cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__value{
  color:#071f4f!important;font-size:22px!important;font-weight:950!important;
}
body.woocommerce-cart .wc-block-cart__submit-button,
body.woocommerce-cart .wc-block-components-button{
  min-height:54px!important;border:0!important;border-radius:12px!important;
  background:linear-gradient(135deg,#ffb000,#ff9300)!important;color:#071f4f!important;
  font-size:16px!important;font-weight:900!important;box-shadow:0 10px 24px rgba(255,159,0,.28)!important;
  transition:.2s ease!important;
}
body.woocommerce-cart .wc-block-cart__submit-button:hover,
body.woocommerce-cart .wc-block-components-button:hover{transform:translateY(-2px);filter:brightness(1.03)}

/* Classic cart fallback */
body.woocommerce-cart table.shop_table{
  background:#fff;border:1px solid #e1e8f3!important;border-radius:20px!important;
  overflow:hidden;box-shadow:0 16px 40px rgba(7,31,79,.08);
}
body.woocommerce-cart .cart-collaterals .cart_totals{
  background:#fff;border:1px solid #e1e8f3;border-radius:20px;padding:24px;
  box-shadow:0 16px 40px rgba(7,31,79,.10);
}
body.woocommerce-cart .checkout-button{
  background:linear-gradient(135deg,#ffb000,#ff9300)!important;color:#071f4f!important;
  border-radius:12px!important;font-weight:900!important;padding:16px 22px!important;
}

/* Checkout shell */
body.woocommerce-checkout .wc-block-checkout{
  gap:30px!important;align-items:start!important;
}
body.woocommerce-checkout .wc-block-checkout__main{
  background:#fff;border:1px solid #e1e8f3;border-radius:22px;
  padding:30px!important;box-shadow:0 16px 40px rgba(7,31,79,.08);
}
body.woocommerce-checkout .wc-block-checkout__sidebar{
  background:#fff;border:1px solid #e1e8f3;border-radius:22px;
  padding:24px!important;box-shadow:0 16px 40px rgba(7,31,79,.10);
  position:sticky;top:100px;
}
body.woocommerce-checkout .wc-block-components-checkout-step{
  margin:0 0 22px!important;padding:0 0 22px!important;border-bottom:1px solid #e9eef5;
}
body.woocommerce-checkout .wc-block-components-checkout-step__heading{
  margin-bottom:16px!important;
}
body.woocommerce-checkout .wc-block-components-checkout-step__title,
body.woocommerce-checkout .wc-block-components-title{
  color:#071f4f!important;font-size:21px!important;font-weight:900!important;
}
body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-combobox .wc-block-components-combobox-control input,
body.woocommerce-checkout .wc-block-components-address-form input,
body.woocommerce-checkout textarea,
body.woocommerce-checkout select{
  min-height:52px!important;border:1px solid #cfd9e8!important;border-radius:11px!important;
  background:#fbfcff!important;color:#13284e!important;box-shadow:none!important;
}
body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-combobox .wc-block-components-combobox-control input:focus,
body.woocommerce-checkout textarea:focus,
body.woocommerce-checkout select:focus{
  border-color:#ffae00!important;box-shadow:0 0 0 3px rgba(255,174,0,.16)!important;background:#fff!important;
}
body.woocommerce-checkout .wc-block-components-radio-control-accordion-option{
  border:1px solid #dce4ef!important;border-radius:13px!important;margin:0 0 10px!important;
  background:#fbfcff!important;overflow:hidden;
}
body.woocommerce-checkout .wc-block-components-radio-control-accordion-option--checked-option-highlighted{
  border-color:#ffad00!important;background:#fff9e9!important;box-shadow:0 0 0 2px rgba(255,173,0,.12)!important;
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button,
body.woocommerce-checkout button.wc-block-components-checkout-place-order-button,
body.woocommerce-checkout #place_order{
  width:100%!important;min-height:58px!important;border:0!important;border-radius:13px!important;
  background:linear-gradient(135deg,#ffb000,#ff9300)!important;color:#071f4f!important;
  font-size:17px!important;font-weight:950!important;box-shadow:0 12px 28px rgba(255,159,0,.30)!important;
  transition:.2s ease!important;
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover,
body.woocommerce-checkout #place_order:hover{transform:translateY(-2px);filter:brightness(1.03)}
body.woocommerce-checkout .wc-block-components-order-summary{
  border:0!important;
}
body.woocommerce-checkout .wc-block-components-order-summary-item{
  padding:15px 0!important;border-bottom:1px solid #edf1f7!important;
}
body.woocommerce-checkout .wc-block-components-order-summary-item__image img{
  border-radius:12px!important;background:#f7f9fd!important;object-fit:contain!important;
}
body.woocommerce-checkout .wc-block-components-totals-wrapper{
  border-top:1px solid #e8edf5!important;padding:16px 0!important;
}
body.woocommerce-checkout .wc-block-components-totals-footer-item{
  background:#f4f8ff;border-radius:14px;padding:17px 15px!important;margin-top:8px;
}
body.woocommerce-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
body.woocommerce-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__value{
  color:#071f4f!important;font-size:22px!important;font-weight:950!important;
}

/* Classic checkout fallback */
body.woocommerce-checkout form.checkout .col2-set,
body.woocommerce-checkout #order_review{
  background:#fff;border:1px solid #e1e8f3;border-radius:20px;padding:25px;
  box-shadow:0 16px 40px rgba(7,31,79,.08);
}
body.woocommerce-checkout #payment{
  background:#f7f9fd!important;border:1px solid #e1e8f3!important;border-radius:15px!important;
}

/* Helpful premium trust strip */
body.woocommerce-cart .entry-content::before,
body.woocommerce-checkout .entry-content::before{
  content:"✓ Secure Checkout   •   ✓ Easy Returns   •   ✓ Trusted NSD MART Service";
  display:block;max-width:1440px;margin:0 auto 22px;padding:13px 18px;
  border:1px solid #dce6f4;border-radius:12px;background:#fff;color:#1d4a78;
  font-size:14px;font-weight:800;box-shadow:0 8px 22px rgba(7,31,79,.05);
}

@media(max-width:991px){
  body.woocommerce-cart .wc-block-cart__sidebar,
  body.woocommerce-checkout .wc-block-checkout__sidebar{position:static!important}
  body.woocommerce-checkout .wc-block-checkout__main{padding:22px!important}
}
@media(max-width:767px){
  body.woocommerce-cart .woocommerce,
  body.woocommerce-checkout .woocommerce,
  body.woocommerce-cart .wp-block-woocommerce-cart,
  body.woocommerce-checkout .wp-block-woocommerce-checkout{padding:28px 12px 48px}
  body.woocommerce-cart h1,
  body.woocommerce-checkout h1,
  body.woocommerce-cart .entry-title,
  body.woocommerce-checkout .entry-title{font-size:29px!important;margin-bottom:22px!important}
  body.woocommerce-cart .wc-block-cart-items{padding:4px 12px}
  body.woocommerce-cart .wc-block-cart-item__image img{width:78px!important;height:78px!important}
  body.woocommerce-checkout .wc-block-checkout__main,
  body.woocommerce-checkout .wc-block-checkout__sidebar,
  body.woocommerce-cart .wc-block-cart__sidebar{padding:18px!important;border-radius:16px}
  body.woocommerce-cart .entry-content::before,
  body.woocommerce-checkout .entry-content::before{font-size:12px;line-height:1.6;padding:11px 13px}
}

/* =========================================================
 * NSD MART V32 — Checkout desktop two-column layout repair
 * Prevent WooCommerce Blocks columns wrapping because padding
 * is added to percentage-width columns.
 * ========================================================= */
body.woocommerce-checkout .wp-block-woocommerce-checkout,
body.woocommerce-checkout .wc-block-checkout,
body.woocommerce-checkout .wc-block-checkout__main,
body.woocommerce-checkout .wc-block-checkout__sidebar{
  box-sizing:border-box!important;
}

@media (min-width: 992px){
  body.woocommerce-checkout .wp-block-woocommerce-checkout{
    width:100%!important;
    max-width:1440px!important;
  }
  body.woocommerce-checkout .wc-block-checkout{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(360px,430px)!important;
    column-gap:30px!important;
    row-gap:0!important;
    align-items:start!important;
    width:100%!important;
    max-width:none!important;
    flex-wrap:nowrap!important;
  }
  body.woocommerce-checkout .wc-block-checkout__main{
    grid-column:1!important;
    grid-row:1!important;
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    margin:0!important;
    float:none!important;
  }
  body.woocommerce-checkout .wc-block-checkout__sidebar{
    grid-column:2!important;
    grid-row:1!important;
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    margin:0!important;
    float:none!important;
    align-self:start!important;
    position:sticky!important;
    top:105px!important;
  }
  body.woocommerce-checkout .wc-block-checkout__main > :first-child,
  body.woocommerce-checkout .wc-block-checkout__sidebar > :first-child{
    margin-top:0!important;
  }
}

@media (max-width: 991px){
  body.woocommerce-checkout .wc-block-checkout{
    display:block!important;
    width:100%!important;
  }
  body.woocommerce-checkout .wc-block-checkout__main,
  body.woocommerce-checkout .wc-block-checkout__sidebar{
    width:100%!important;
    max-width:none!important;
    margin:0 0 22px!important;
    position:static!important;
  }
}


/* =========================================================
 * NSD MART V98.12 — Compact customer login + Affiliate home
 * ========================================================= */
body.woocommerce-account:not(.logged-in) .site-main,
body.woocommerce-account:not(.logged-in) main{
  min-height:0!important;
  padding-bottom:28px!important;
}
body.woocommerce-account:not(.logged-in) .site-main article,
body.woocommerce-account:not(.logged-in) main article{
  margin-bottom:0!important;
}
body.woocommerce-account:not(.logged-in) .entry-header,
body.woocommerce-account:not(.logged-in) .entry-title{
  max-width:820px!important;
  margin-left:auto!important;
  margin-right:auto!important;
}
body.woocommerce-account:not(.logged-in) .woocommerce{
  width:100%!important;
  max-width:820px!important;
  padding:22px 18px 34px!important;
  margin:0 auto!important;
}
body.woocommerce-account:not(.logged-in) .woocommerce h2{
  margin:0 0 16px!important;
  font-size:25px!important;
}
body.woocommerce-account:not(.logged-in) .woocommerce-form-login,
body.woocommerce-account:not(.logged-in) form.login{
  width:100%!important;
  max-width:720px!important;
  margin:0 auto!important;
  padding:24px!important;
  border:1px solid #dfe7f2!important;
  border-radius:18px!important;
  background:#fff!important;
  box-shadow:0 14px 36px rgba(7,35,83,.09)!important;
}
body.woocommerce-account:not(.logged-in) form.login .form-row{
  margin-bottom:14px!important;
}
body.woocommerce-account:not(.logged-in) form.login input.input-text{
  min-height:46px!important;
  border-radius:10px!important;
  padding:8px 13px!important;
}
body.woocommerce-account:not(.logged-in) form.login .woocommerce-form-login__submit{
  min-width:100px!important;
}
@media(max-width:640px){
  body.woocommerce-account:not(.logged-in) .woocommerce{padding:15px 12px 26px!important}
  body.woocommerce-account:not(.logged-in) .woocommerce-form-login,
  body.woocommerce-account:not(.logged-in) form.login{padding:18px 14px!important;border-radius:14px!important}
}

.nsd-affiliate-home{
  display:grid;
  grid-template-columns:minmax(0,1.45fr) minmax(280px,.75fr);
  gap:28px;
  align-items:center;
  margin:28px 0 34px;
  padding:36px 40px;
  border:1px solid #f2d48c;
  border-radius:24px;
  background:linear-gradient(120deg,#fff9e9 0%,#fff 56%,#edf4ff 100%);
  box-shadow:0 16px 42px rgba(7,35,83,.10);
  overflow:hidden;
  position:relative;
}
.nsd-affiliate-home:before{
  content:"";position:absolute;width:230px;height:230px;border-radius:50%;right:-75px;top:-100px;background:rgba(255,174,0,.16)
}
.nsd-affiliate-copy,.nsd-affiliate-visual{position:relative;z-index:1}
.nsd-affiliate-kicker{display:inline-block;margin-bottom:9px;color:#986300;font-size:12px;font-weight:900;letter-spacing:1.2px}
.nsd-affiliate-home h2{margin:0 0 12px!important;color:#071f4f!important;font-size:34px!important;line-height:1.16!important}
.nsd-affiliate-home p{max-width:720px;margin:0 0 17px!important;color:#52617a!important;font-size:15px;line-height:1.7}
.nsd-affiliate-points{display:flex;flex-wrap:wrap;gap:9px 18px;margin:0 0 22px;color:#15305f;font-size:13px;font-weight:800}
.nsd-affiliate-points span{white-space:nowrap}
.nsd-affiliate-actions{display:flex;gap:12px;flex-wrap:wrap}
.nsd-affiliate-primary,.nsd-affiliate-secondary{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:0 20px;border-radius:11px;font-weight:900;text-decoration:none!important}
.nsd-affiliate-primary{background:#ffad00;color:#071f4f!important;box-shadow:0 9px 20px rgba(255,173,0,.25)}
.nsd-affiliate-secondary{background:#09275d;color:#fff!important}
.nsd-affiliate-visual{min-height:215px;padding:25px;border-radius:20px;background:linear-gradient(145deg,#08265d,#0d438f);color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;box-shadow:0 14px 30px rgba(7,35,83,.22)}
.nsd-affiliate-icon{width:66px;height:66px;border-radius:19px;display:grid;place-items:center;margin-bottom:12px;background:#ffb000;color:#071f4f;font-size:34px;font-weight:950}
.nsd-affiliate-visual strong{font-size:22px;margin-bottom:6px}.nsd-affiliate-visual>span{font-size:13px;color:#dce8ff}
.nsd-affiliate-mini{margin-top:18px;padding:10px 12px;border-radius:12px;background:rgba(255,255,255,.1);font-size:12px}.nsd-affiliate-mini b{color:#ffc33d}.nsd-affiliate-mini i{font-style:normal;margin:0 5px;color:#bcd1f7}
@media(max-width:850px){.nsd-affiliate-home{grid-template-columns:1fr;padding:28px 24px}.nsd-affiliate-home h2{font-size:29px!important}.nsd-affiliate-visual{min-height:180px}}
@media(max-width:520px){.nsd-affiliate-home{padding:23px 17px;border-radius:18px}.nsd-affiliate-home h2{font-size:25px!important}.nsd-affiliate-points{display:grid;grid-template-columns:1fr 1fr}.nsd-affiliate-primary,.nsd-affiliate-secondary{width:100%}}

/* =========================================================
   V98.12 — Homepage product sliders + compact affiliate/login
   ========================================================= */
body.home .nsd-product-slider{overflow:hidden}
body.home .nsd-product-slider .nsd-section-head{margin-bottom:14px}
.nsd-slider-nav{display:flex;align-items:center;gap:8px}
.nsd-slider-nav button{width:38px;height:38px;border:1px solid #d7dfeb;border-radius:10px;background:#fff;color:#071f4f;font-size:28px;line-height:1;display:grid;place-items:center;cursor:pointer;box-shadow:0 5px 14px rgba(7,31,79,.08);transition:.18s ease}
.nsd-slider-nav button:hover:not(:disabled){background:#071f4f;color:#fff;transform:translateY(-1px)}
.nsd-slider-nav button:disabled{opacity:.32;cursor:default;box-shadow:none}
.nsd-slider-static .nsd-slider-nav{display:none}
body.home .nsd-product-slider .nsd-slider-viewport{width:100%;overflow:hidden}
body.home .nsd-product-slider ul.products,
body.home .nsd-product-slider .woocommerce ul.products{
  display:flex!important;
  grid-template-columns:none!important;
  flex-wrap:nowrap!important;
  gap:16px!important;
  width:100%!important;
  margin:0!important;
  padding:1px 1px 12px!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  scroll-behavior:smooth;
  scroll-snap-type:x mandatory;
  scrollbar-width:none;
  -webkit-overflow-scrolling:touch;
}
body.home .nsd-product-slider ul.products::-webkit-scrollbar{display:none}
body.home .nsd-product-slider ul.products::before,
body.home .nsd-product-slider ul.products::after{display:none!important;content:none!important}
body.home .nsd-product-slider ul.products li.product,
body.home .nsd-product-slider ul.products[class*=columns-] li.product{
  float:none!important;
  clear:none!important;
  flex:0 0 calc((100% - 64px)/5)!important;
  width:calc((100% - 64px)/5)!important;
  max-width:none!important;
  min-width:0!important;
  margin:0!important;
  scroll-snap-align:start;
}
@media(max-width:1099px){
  body.home .nsd-product-slider ul.products li.product,
  body.home .nsd-product-slider ul.products[class*=columns-] li.product{flex-basis:calc((100% - 28px)/3)!important;width:calc((100% - 28px)/3)!important}
}
@media(max-width:699px){
  .nsd-slider-nav button{width:34px;height:34px;font-size:25px}
  body.home .nsd-product-slider ul.products,
  body.home .nsd-product-slider .woocommerce ul.products{gap:12px!important}
  body.home .nsd-product-slider ul.products li.product,
  body.home .nsd-product-slider ul.products[class*=columns-] li.product{flex:0 0 min(78vw,285px)!important;width:min(78vw,285px)!important}
}

/* Compact affiliate strip: premium but does not push products downward. */
.nsd-affiliate-home{
  grid-template-columns:minmax(250px,1.15fr) minmax(0,2fr) auto!important;
  gap:18px!important;
  min-height:104px;
  margin:18px 0 24px!important;
  padding:16px 20px!important;
  border-radius:16px!important;
  box-shadow:0 9px 24px rgba(7,35,83,.08)!important;
}
.nsd-affiliate-home:before{width:120px!important;height:120px!important;right:-38px!important;top:-48px!important}
.nsd-affiliate-kicker{margin-bottom:3px!important;font-size:10px!important}
.nsd-affiliate-home h2{margin:0 0 5px!important;font-size:22px!important;line-height:1.15!important}
.nsd-affiliate-home p{margin:0!important;font-size:12px!important;line-height:1.45!important;max-width:430px!important}
.nsd-affiliate-points{margin:0!important;display:grid!important;grid-template-columns:repeat(2,minmax(120px,1fr));gap:8px 14px!important;font-size:12px!important;align-self:center}
.nsd-affiliate-actions{display:flex!important;flex-direction:column;gap:7px!important;min-width:180px}
.nsd-affiliate-primary,.nsd-affiliate-secondary{min-height:36px!important;padding:0 14px!important;border-radius:9px!important;font-size:12px!important}
.nsd-affiliate-visual{display:none!important}
.nsd-affiliate-copy{display:contents}
@media(max-width:850px){
 .nsd-affiliate-home{grid-template-columns:1fr auto!important;padding:15px 16px!important}
 .nsd-affiliate-points{grid-column:1/-1;grid-template-columns:repeat(4,auto)!important;overflow-x:auto}
 .nsd-affiliate-actions{grid-column:2;grid-row:1;min-width:150px}
}
@media(max-width:620px){
 .nsd-affiliate-home{grid-template-columns:1fr!important;gap:12px!important}
 .nsd-affiliate-points{grid-column:auto!important;grid-template-columns:1fr 1fr!important}
 .nsd-affiliate-actions{grid-column:auto!important;grid-row:auto!important;flex-direction:row;min-width:0}
 .nsd-affiliate-primary,.nsd-affiliate-secondary{width:auto!important;flex:1}
}

/* Smaller customer login card. */
body.woocommerce-account:not(.logged-in) .woocommerce{max-width:620px!important;padding-top:10px!important;padding-bottom:24px!important}
body.woocommerce-account:not(.logged-in) .woocommerce h2{font-size:22px!important;margin:0 0 10px!important}
body.woocommerce-account:not(.logged-in) .woocommerce-form-login,
body.woocommerce-account:not(.logged-in) form.login{max-width:560px!important;padding:22px 24px!important;border-radius:16px!important}
body.woocommerce-account:not(.logged-in) form.login input.input-text{min-height:42px!important}

/* V98.13 — One-line compact affiliate strip */
@media (min-width: 851px){
  .nsd-affiliate-home{
    display:block!important;
    min-height:0!important;
    margin:14px 0 20px!important;
    padding:12px 18px!important;
  }
  .nsd-affiliate-copy{
    display:grid!important;
    grid-template-columns:minmax(245px,.9fr) minmax(470px,1.8fr) auto;
    align-items:center;
    gap:18px;
  }
  .nsd-affiliate-intro,.nsd-affiliate-details{min-width:0}
  .nsd-affiliate-kicker{display:block!important;margin:0 0 2px!important;font-size:9px!important;line-height:1.15!important}
  .nsd-affiliate-home h2{margin:0!important;font-size:19px!important;line-height:1.15!important;white-space:nowrap}
  .nsd-affiliate-home p{margin:0 0 5px!important;max-width:none!important;font-size:11px!important;line-height:1.35!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .nsd-affiliate-points{display:flex!important;grid-template-columns:none!important;align-items:center;gap:6px 14px!important;margin:0!important;font-size:10.5px!important;white-space:nowrap}
  .nsd-affiliate-actions{display:flex!important;flex-direction:row!important;align-items:center;gap:7px!important;min-width:0!important}
  .nsd-affiliate-primary,.nsd-affiliate-secondary{
    min-height:30px!important;
    width:auto!important;
    padding:0 12px!important;
    border-radius:8px!important;
    font-size:10.5px!important;
    white-space:nowrap;
  }
}
@media (max-width: 850px){
  .nsd-affiliate-copy{display:grid!important;gap:10px}
  .nsd-affiliate-intro,.nsd-affiliate-details{min-width:0}
}

/* =========================================================
 * NSD MART V98.14 — Refined My Account forms
 * Account Details, Addresses and related customer forms
 * ========================================================= */
.woocommerce-account .woocommerce-MyAccount-content form.woocommerce-EditAccountForm,
.woocommerce-account .woocommerce-MyAccount-content form.edit-account,
.woocommerce-account .woocommerce-MyAccount-content form.woocommerce-address-fields{
  max-width:900px;
  margin:0 auto;
}
.woocommerce-account .woocommerce-MyAccount-content form .form-row{
  margin:0 0 15px!important;
  padding:0!important;
}
.woocommerce-account .woocommerce-MyAccount-content form .form-row-first,
.woocommerce-account .woocommerce-MyAccount-content form .form-row-last{
  width:calc(50% - 9px)!important;
}
.woocommerce-account .woocommerce-MyAccount-content form .form-row-first{float:left!important}
.woocommerce-account .woocommerce-MyAccount-content form .form-row-last{float:right!important}
.woocommerce-account .woocommerce-MyAccount-content form label{
  display:block;
  margin:0 0 6px!important;
  color:#102650;
  font-size:14px;
  line-height:1.3;
  font-weight:750;
}
.woocommerce-account .woocommerce-MyAccount-content form input.input-text,
.woocommerce-account .woocommerce-MyAccount-content form input[type="text"],
.woocommerce-account .woocommerce-MyAccount-content form input[type="email"],
.woocommerce-account .woocommerce-MyAccount-content form input[type="password"],
.woocommerce-account .woocommerce-MyAccount-content form input[type="tel"],
.woocommerce-account .woocommerce-MyAccount-content form select,
.woocommerce-account .woocommerce-MyAccount-content form textarea{
  width:100%!important;
  min-height:42px!important;
  height:42px!important;
  margin:0!important;
  padding:8px 12px!important;
  border:1px solid #ccd7e8!important;
  border-radius:9px!important;
  background:#fff!important;
  color:#102650!important;
  font-size:14px!important;
  line-height:1.35!important;
  box-shadow:none!important;
  outline:none!important;
  transition:border-color .18s ease,box-shadow .18s ease,background .18s ease;
}
.woocommerce-account .woocommerce-MyAccount-content form textarea{
  height:auto!important;
  min-height:86px!important;
  resize:vertical;
}
.woocommerce-account .woocommerce-MyAccount-content form input:focus,
.woocommerce-account .woocommerce-MyAccount-content form select:focus,
.woocommerce-account .woocommerce-MyAccount-content form textarea:focus{
  border-color:#ffad00!important;
  background:#fffdf7!important;
  box-shadow:0 0 0 3px rgba(255,173,0,.13)!important;
}
.woocommerce-account .woocommerce-MyAccount-content form em{
  display:block;
  margin-top:5px;
  color:#69758a;
  font-size:12px;
  line-height:1.4;
}
.woocommerce-account .woocommerce-MyAccount-content form fieldset{
  clear:both;
  margin:18px 0 16px!important;
  padding:18px!important;
  border:1px solid #dfe7f2!important;
  border-radius:14px!important;
  background:linear-gradient(180deg,#fbfdff,#f6f9fe)!important;
}
.woocommerce-account .woocommerce-MyAccount-content form fieldset legend{
  width:auto!important;
  margin:0 0 0 2px!important;
  padding:0 8px!important;
  color:#102650!important;
  background:#fff!important;
  font-size:15px!important;
  line-height:1.2!important;
  font-weight:850!important;
}
.woocommerce-account .woocommerce-MyAccount-content form .password-input{
  width:100%!important;
  display:block!important;
}
.woocommerce-account .woocommerce-MyAccount-content form .show-password-input{
  top:50%!important;
  right:13px!important;
  transform:translateY(-50%)!important;
}
.woocommerce-account .woocommerce-MyAccount-content form button[type="submit"],
.woocommerce-account .woocommerce-MyAccount-content form .woocommerce-Button.button{
  min-height:42px!important;
  padding:0 20px!important;
  border:0!important;
  border-radius:10px!important;
  background:#082b67!important;
  color:#fff!important;
  font-size:14px!important;
  font-weight:850!important;
  box-shadow:0 7px 16px rgba(8,43,103,.16)!important;
}
.woocommerce-account .woocommerce-MyAccount-content form button[type="submit"]:hover,
.woocommerce-account .woocommerce-MyAccount-content form .woocommerce-Button.button:hover{
  background:#ffad00!important;
  color:#071f4f!important;
  transform:translateY(-1px);
}
.woocommerce-account .woocommerce-MyAccount-content > h2,
.woocommerce-account .woocommerce-MyAccount-content > h3{
  margin-top:0!important;
  color:#071f4f!important;
}
@media(max-width:700px){
  .woocommerce-account .woocommerce-MyAccount-content form .form-row-first,
  .woocommerce-account .woocommerce-MyAccount-content form .form-row-last{
    width:100%!important;
    float:none!important;
  }
  .woocommerce-account .woocommerce-MyAccount-content form fieldset{padding:15px!important}
}
