/*
Theme Name: Duong Market Pro V6.3.10
Theme URI: https://example.com/
Author: OpenAI
Description: Professional WooCommerce account marketplace theme with pro admin options, hybrid Buyacc + TrueAccs storefront, maintenance mode, AJAX catalog, advanced shop settings, custom CSS/JS and responsive controls.
Version: 6.3.10
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: duong-market-v2
*/

:root{
  --dm-bg:#ffffff;
  --dm-soft:#f6f8fb;
  --dm-card:#ffffff;
  --dm-text:#101828;
  --dm-muted:#667085;
  --dm-line:#e7ebf0;
  --dm-dark:#0b1220;
  --dm-primary:#5b5ce2;
  --dm-primary-2:#7c3aed;
  --dm-green:#16a34a;
  --dm-shadow:0 14px 40px rgba(16,24,40,.08);
  --dm-r:18px;
  --dm-container:1180px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:var(--dm-bg);
  color:var(--dm-text);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  -webkit-font-smoothing:antialiased;
  line-height:1.5
}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto}
button,input,select,textarea{font:inherit}
.dm-container{width:min(calc(100% - 32px),var(--dm-container));margin:auto}

/* HEADER */
.site-header{
  position:sticky;top:0;z-index:90;
  background:rgba(255,255,255,.96);
  border-bottom:1px solid var(--dm-line);
  backdrop-filter:blur(16px)
}
.dm-topbar{height:72px;display:flex;align-items:center;gap:22px}
.dm-logo{display:flex;align-items:center;gap:10px;font-weight:900;font-size:22px;letter-spacing:-.5px;white-space:nowrap}
.dm-logo img{max-height:38px;width:auto}
.dm-desktop-nav{display:flex;align-items:center;gap:6px;margin-left:14px;flex:1}
.dm-desktop-nav>a,.dm-desktop-nav .menu>li>a{
  display:flex;align-items:center;height:40px;padding:0 12px;border-radius:10px;
  font-size:14px;font-weight:700;color:#344054
}
.dm-desktop-nav>a:hover,.dm-desktop-nav .menu>li>a:hover{background:#f2f4f7;color:#111827}
.dm-desktop-nav ul{display:flex;align-items:center;gap:4px;list-style:none;padding:0;margin:0}
.dm-actions{display:flex;align-items:center;gap:8px;margin-left:auto}
.dm-action-btn{
  height:42px;min-width:42px;border:1px solid var(--dm-line);background:#fff;border-radius:12px;
  display:flex;align-items:center;justify-content:center;gap:8px;padding:0 12px;font-weight:800;cursor:pointer
}
.dm-action-btn:hover{background:#f8fafc}
.dm-cart-count{
  background:var(--dm-dark);color:#fff;border-radius:20px;min-width:20px;height:20px;
  padding:0 5px;display:inline-flex;align-items:center;justify-content:center;font-size:11px
}
.dm-mobile-toggle{display:none}

/* HERO */
.dm-hero{
  background:
    radial-gradient(circle at 20% 10%,rgba(91,92,226,.09),transparent 30%),
    radial-gradient(circle at 80% 0%,rgba(124,58,237,.08),transparent 28%),
    #fff;
  padding:72px 0 56px;
  border-bottom:1px solid #f0f2f5
}
.dm-hero-inner{text-align:center;max-width:860px;margin:auto}
.dm-trust-badge{
  display:inline-flex;align-items:center;gap:8px;background:#f4f3ff;color:#4f46e5;
  border:1px solid #e5e3ff;border-radius:999px;padding:8px 13px;font-size:13px;font-weight:800
}
.dm-trust-dot{width:8px;height:8px;background:#22c55e;border-radius:50%;box-shadow:0 0 0 4px rgba(34,197,94,.12)}
.dm-hero h1{
  margin:20px auto 14px;font-size:clamp(42px,6vw,68px);line-height:1.02;
  letter-spacing:-2.7px;max-width:820px
}
.dm-gradient-text{
  background:linear-gradient(90deg,#111827 0%,#4f46e5 48%,#7c3aed 100%);
  -webkit-background-clip:text;background-clip:text;color:transparent
}
.dm-hero p{font-size:18px;color:var(--dm-muted);max-width:680px;margin:0 auto 28px}
.dm-hero-search{
  max-width:660px;margin:0 auto;background:#fff;border:1px solid #dfe3e8;border-radius:16px;
  box-shadow:0 10px 30px rgba(16,24,40,.08);padding:7px;display:flex;align-items:center
}
.dm-hero-search span{padding:0 8px 0 10px;color:#98a2b3}
.dm-hero-search input{flex:1;border:0;outline:0;height:48px;font-size:15px;min-width:0}
.dm-hero-search button{
  border:0;background:var(--dm-dark);color:#fff;height:44px;border-radius:11px;padding:0 19px;font-weight:800;cursor:pointer
}
.dm-hero-benefits{
  margin-top:22px;display:flex;align-items:center;justify-content:center;gap:26px;flex-wrap:wrap;
  color:#475467;font-size:13px;font-weight:700
}
.dm-hero-benefits span{display:flex;align-items:center;gap:7px}
.dm-check{width:18px;height:18px;border-radius:50%;background:#ecfdf3;color:#16a34a;display:grid;place-items:center;font-size:11px}

/* FEATURED ICONS */
.dm-logo-strip{padding:26px 0;border-bottom:1px solid #f1f3f5}
.dm-logo-row{display:grid;grid-template-columns:repeat(6,1fr);gap:12px}
.dm-logo-card{
  min-height:82px;border:1px solid var(--dm-line);border-radius:15px;background:#fff;padding:12px;
  display:flex;align-items:center;justify-content:center;gap:10px;transition:.18s ease
}
.dm-logo-card:hover{transform:translateY(-2px);border-color:#d3d7dd;box-shadow:0 8px 20px rgba(16,24,40,.06)}
.dm-logo-card img{width:42px;height:42px;border-radius:11px;object-fit:cover;background:#f7f8fa}
.dm-logo-card strong{font-size:13px;line-height:1.3}

/* SECTIONS */
.dm-section{padding:58px 0}
.dm-section.soft{background:var(--dm-soft)}
.dm-section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:24px}
.dm-section-head h2{margin:0;font-size:30px;letter-spacing:-.8px}
.dm-section-head p{margin:6px 0 0;color:var(--dm-muted)}
.dm-text-link{font-weight:800;font-size:14px;color:#4f46e5}

/* APP/CATEGORY GRID */
.dm-app-layout{display:grid;grid-template-columns:220px minmax(0,1fr);gap:26px}
.dm-filter{
  background:#fff;border:1px solid var(--dm-line);border-radius:16px;padding:10px;height:max-content;position:sticky;top:94px
}
.dm-filter-title{font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:#98a2b3;font-weight:900;padding:10px 11px}
.dm-filter a{
  display:flex;align-items:center;justify-content:space-between;padding:11px 12px;border-radius:10px;
  font-size:14px;font-weight:700;color:#475467
}
.dm-filter a:hover,.dm-filter a.is-active{background:#f2f4ff;color:#4f46e5}
.dm-filter em{font-style:normal;color:#98a2b3;font-size:12px}

.dm-app-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.dm-app-card{
  background:#fff;border:1px solid var(--dm-line);border-radius:18px;padding:18px;
  min-height:210px;display:flex;flex-direction:column;transition:.2s ease
}
.dm-app-card:hover{transform:translateY(-3px);box-shadow:var(--dm-shadow);border-color:#d8dce3}
.dm-app-top{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.dm-app-icon{
  width:56px;height:56px;border-radius:15px;overflow:hidden;background:#f3f4f6;border:1px solid #eef0f2;display:grid;place-items:center;
  font-weight:900;color:#667085
}
.dm-app-icon img{width:100%;height:100%;object-fit:cover}
.dm-badge{
  padding:5px 8px;border-radius:8px;background:#f2f4ff;color:#4f46e5;font-size:11px;font-weight:900
}
.dm-app-card h3{font-size:17px;line-height:1.3;margin:16px 0 7px;letter-spacing:-.2px}
.dm-app-card p{font-size:13px;color:var(--dm-muted);margin:0 0 16px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.dm-app-bottom{margin-top:auto;display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:13px;border-top:1px solid #f0f2f5}
.dm-app-price{font-weight:900;color:#101828}
.dm-app-price small{display:block;color:#98a2b3;font-weight:600;font-size:11px}
.dm-arrow-btn{
  width:38px;height:38px;border-radius:11px;border:1px solid var(--dm-line);display:grid;place-items:center;background:#fff;font-weight:900
}
.dm-app-card:hover .dm-arrow-btn{background:var(--dm-dark);color:#fff;border-color:var(--dm-dark)}

/* WOOCOMMERCE SHOP */
.woocommerce .woocommerce-breadcrumb{font-size:13px;color:#98a2b3;margin:0 0 20px}
.woocommerce .woocommerce-result-count{color:#667085;font-size:13px}
.woocommerce .woocommerce-ordering select{height:42px;border:1px solid var(--dm-line);border-radius:10px;padding:0 10px;background:#fff}
.woocommerce ul.products{
  display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px!important;margin:24px 0!important
}
.woocommerce ul.products::before,.woocommerce ul.products::after{display:none!important}
.woocommerce ul.products li.product{
  float:none!important;width:auto!important;margin:0!important;background:#fff;border:1px solid var(--dm-line);
  border-radius:17px;padding:12px!important;transition:.18s ease;overflow:hidden
}
.woocommerce ul.products li.product:hover{transform:translateY(-3px);box-shadow:var(--dm-shadow)}
.woocommerce ul.products li.product a img{
  border-radius:13px!important;aspect-ratio:1/1;object-fit:cover;background:#f6f7f9;margin-bottom:13px!important
}
.woocommerce ul.products li.product .woocommerce-loop-product__title{
  font-size:14px!important;line-height:1.35!important;color:#101828;padding:0!important;margin:0 0 8px!important;min-height:38px
}
.woocommerce ul.products li.product .price{
  color:#4f46e5!important;font-size:15px!important;font-weight:900!important;margin-bottom:10px!important
}
.woocommerce ul.products li.product .button{
  width:100%;text-align:center;border-radius:11px!important;background:var(--dm-dark)!important;color:#fff!important;
  min-height:40px;padding:11px 10px!important;margin-top:6px!important
}
.woocommerce span.onsale{
  min-width:auto!important;min-height:auto!important;line-height:1!important;border-radius:8px!important;
  padding:7px 9px!important;top:18px!important;left:18px!important;background:#ef4444!important
}

/* PRODUCT PAGE */
.site-main{padding:34px 0 60px;min-height:60vh}
.woocommerce div.product{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:42px;background:#fff}
.woocommerce div.product div.images,.woocommerce div.product div.summary{float:none!important;width:auto!important;margin:0!important}
.woocommerce div.product div.images img{border-radius:18px;background:#f8fafc}
.woocommerce div.product .product_title{font-size:36px;line-height:1.12;letter-spacing:-1px;margin:0 0 12px}
.woocommerce div.product p.price{font-size:26px!important;color:#4f46e5!important;font-weight:900}
.woocommerce div.product form.cart{display:flex;gap:10px;align-items:center}
.woocommerce div.product form.cart .button{min-height:48px;border-radius:12px;background:var(--dm-dark);padding:0 24px}
.woocommerce .quantity .qty{height:48px;border:1px solid var(--dm-line);border-radius:10px}
.woocommerce-tabs{grid-column:1/-1;margin-top:20px}
.woocommerce div.product .woocommerce-tabs ul.tabs{padding:0!important}
.woocommerce div.product .woocommerce-tabs ul.tabs li{border-radius:10px 10px 0 0!important}

/* CART/CHECKOUT */
.woocommerce table.shop_table{border:1px solid var(--dm-line)!important;border-radius:16px!important;overflow:hidden;background:#fff}
.woocommerce-cart .cart-collaterals .cart_totals{width:42%}
.woocommerce-checkout #customer_details,.woocommerce-checkout #order_review_heading,.woocommerce-checkout #order_review{background:#fff}
.woocommerce form .form-row input.input-text,.woocommerce form .form-row textarea,.woocommerce form .form-row select{
  min-height:46px;border:1px solid var(--dm-line);border-radius:11px;padding:10px 12px;background:#fff
}
.woocommerce-checkout #payment{background:#f8fafc!important;border:1px solid var(--dm-line);border-radius:16px!important}
.woocommerce button.button.alt,.woocommerce a.button.alt,.woocommerce input.button.alt{background:var(--dm-dark)!important;border-radius:11px!important}

/* CART DRAWER */
.dm-overlay{
  position:fixed;inset:0;background:rgba(15,23,42,.45);z-index:998;opacity:0;visibility:hidden;transition:.22s ease
}
.dm-overlay.open{opacity:1;visibility:visible}
.dm-drawer{
  position:fixed;top:0;right:0;bottom:0;width:min(410px,92vw);background:#fff;z-index:999;
  transform:translateX(105%);transition:.25s ease;box-shadow:-20px 0 60px rgba(15,23,42,.18);
  display:flex;flex-direction:column
}
.dm-drawer.open{transform:translateX(0)}
.dm-drawer-head{height:72px;display:flex;align-items:center;justify-content:space-between;padding:0 20px;border-bottom:1px solid var(--dm-line)}
.dm-drawer-head strong{font-size:17px}
.dm-close{width:38px;height:38px;border:0;border-radius:10px;background:#f2f4f7;cursor:pointer}
.dm-drawer-body{padding:18px;overflow:auto;flex:1}
.dm-drawer .woocommerce-mini-cart-item{padding:10px 28px 10px 0!important}
.dm-drawer .woocommerce-mini-cart-item img{width:58px!important;border-radius:10px!important}
.dm-drawer .woocommerce-mini-cart__total{border-top:1px solid var(--dm-line)!important;padding-top:16px!important}
.dm-drawer .woocommerce-mini-cart__buttons a{width:100%;text-align:center;margin:5px 0!important;border-radius:11px!important;padding:12px!important}
.dm-drawer .woocommerce-mini-cart__buttons .checkout{background:var(--dm-dark)!important;color:#fff!important}

/* INFO / FOOTER */
.dm-info-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.dm-info{
  border:1px solid var(--dm-line);border-radius:16px;padding:20px;background:#fff;display:flex;gap:13px
}
.dm-info-icon{flex:0 0 42px;height:42px;border-radius:12px;background:#f2f4ff;color:#4f46e5;display:grid;place-items:center;font-weight:900}
.dm-info strong{display:block;margin-bottom:4px}
.dm-info p{margin:0;color:var(--dm-muted);font-size:13px}
.site-footer{background:#0b1220;color:#cbd5e1;padding:48px 0 24px}
.dm-footer-grid{display:grid;grid-template-columns:1.5fr repeat(3,1fr);gap:34px}
.site-footer h3,.site-footer h4{color:#fff;margin:0 0 14px}
.site-footer p,.site-footer a,.site-footer li{color:#94a3b8;font-size:13px}
.site-footer ul{list-style:none;padding:0;margin:0}
.site-footer li+li{margin-top:9px}
.dm-footer-bottom{margin-top:34px;padding-top:20px;border-top:1px solid #1e293b;font-size:12px;color:#64748b}
.dm-mobile-nav{display:none}

@media(max-width:1024px){
  .dm-desktop-nav{display:none}
  .dm-mobile-toggle{display:flex}
  .dm-logo-row{grid-template-columns:repeat(3,1fr)}
  .dm-app-layout{grid-template-columns:1fr}
  .dm-filter{position:static;display:flex;overflow:auto;gap:4px}
  .dm-filter-title{display:none}
  .dm-filter a{white-space:nowrap}
  .dm-app-grid{grid-template-columns:repeat(2,1fr)}
  .woocommerce ul.products{grid-template-columns:repeat(3,1fr)!important}
  .dm-footer-grid{grid-template-columns:1.5fr 1fr 1fr}
}
@media(max-width:768px){
  body{padding-bottom:64px}
  .dm-container{width:min(calc(100% - 22px),var(--dm-container))}
  .dm-topbar{height:64px}
  .dm-logo{font-size:19px}
  .dm-action-btn .label{display:none}
  .dm-hero{padding:48px 0 38px}
  .dm-hero h1{font-size:44px;letter-spacing:-1.8px}
  .dm-hero p{font-size:16px}
  .dm-hero-search button{padding:0 13px}
  .dm-logo-row{grid-template-columns:repeat(2,1fr)}
  .dm-section{padding:42px 0}
  .dm-section-head h2{font-size:26px}
  .dm-app-grid{grid-template-columns:1fr}
  .woocommerce ul.products{grid-template-columns:repeat(2,1fr)!important;gap:12px!important}
  .woocommerce div.product{grid-template-columns:1fr;gap:24px}
  .woocommerce div.product .product_title{font-size:28px}
  .woocommerce-cart .cart-collaterals .cart_totals{width:100%}
  .dm-info-grid{grid-template-columns:1fr}
  .dm-footer-grid{grid-template-columns:1fr 1fr}
  .dm-mobile-nav{
    display:grid;grid-template-columns:repeat(4,1fr);position:fixed;left:0;right:0;bottom:0;height:64px;
    z-index:89;background:#fff;border-top:1px solid var(--dm-line)
  }
  .dm-mobile-nav a,.dm-mobile-nav button{
    border:0;background:transparent;display:flex;flex-direction:column;align-items:center;justify-content:center;
    gap:3px;font-size:10px;color:#475467
  }
}
@media(max-width:520px){
  .dm-hero h1{font-size:38px}
  .dm-hero-search{padding:5px}
  .dm-hero-search button{font-size:0;width:44px;padding:0}
  .dm-hero-search button:after{content:"→";font-size:18px}
  .dm-logo-row{grid-template-columns:1fr 1fr}
  .dm-logo-card{min-height:72px}
  .dm-logo-card strong{font-size:12px}
  .dm-footer-grid{grid-template-columns:1fr}
}


/* ===== V3 HYBRID ACCOUNT MARKETPLACE ===== */
.dm-v3-toolbar{
  display:flex;align-items:center;justify-content:space-between;gap:14px;
  margin:0 0 14px;padding:12px 14px;background:#fff;border:1px solid var(--dm-line);
  border-radius:14px
}
.dm-v3-toolbar-left{display:flex;align-items:center;gap:10px;min-width:0}
.dm-v3-toolbar-title{font-size:14px;font-weight:900}
.dm-v3-result-count{font-size:12px;color:#98a2b3}
.dm-v3-search{display:flex;align-items:center;gap:8px;min-width:260px}
.dm-v3-search input{
  width:100%;height:38px;border:1px solid var(--dm-line);border-radius:10px;
  padding:0 11px;background:#f9fafb;outline:none
}
.dm-v3-search input:focus{background:#fff;border-color:#c8c9ff;box-shadow:0 0 0 3px rgba(91,92,226,.08)}

.dm-v3-list{
  background:#fff;border:1px solid var(--dm-line);border-radius:16px;overflow:hidden
}
.dm-v3-head,.dm-v3-row{
  display:grid;
  grid-template-columns:minmax(300px,1.8fr) minmax(170px,1fr) 110px 105px 120px;
  align-items:center;gap:16px
}
.dm-v3-head{
  min-height:48px;padding:0 16px;background:#f8fafc;border-bottom:1px solid var(--dm-line);
  color:#667085;font-size:11px;text-transform:uppercase;letter-spacing:.06em;font-weight:900
}
.dm-v3-row{
  padding:14px 16px;border-bottom:1px solid #eef1f4;transition:.15s ease
}
.dm-v3-row:last-child{border-bottom:0}
.dm-v3-row:hover{background:#fbfcff}
.dm-v3-product{display:flex;align-items:center;gap:12px;min-width:0}
.dm-v3-thumb{
  width:48px;height:48px;border-radius:12px;flex:0 0 48px;background:#f3f4f6;
  border:1px solid #eceff3;overflow:hidden;display:grid;place-items:center;color:#98a2b3;font-weight:900;font-size:10px
}
.dm-v3-thumb img{width:100%;height:100%;object-fit:cover}
.dm-v3-namewrap{min-width:0}
.dm-v3-name{font-size:14px;font-weight:900;line-height:1.3;margin-bottom:5px}
.dm-v3-meta{display:flex;flex-wrap:wrap;gap:5px}
.dm-v3-tag{
  display:inline-flex;align-items:center;min-height:22px;padding:0 7px;border-radius:7px;
  background:#f2f4ff;color:#4f46e5;font-size:10px;font-weight:900
}
.dm-v3-tag.gray{background:#f2f4f7;color:#667085}
.dm-v3-tag.green{background:#ecfdf3;color:#15803d}
.dm-v3-info{
  color:#667085;font-size:12px;line-height:1.45;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden
}
.dm-v3-price{font-size:15px;font-weight:950;color:#101828}
.dm-v3-price del{color:#98a2b3;font-weight:700;font-size:11px}
.dm-v3-price ins{text-decoration:none}
.dm-v3-stock{
  display:flex;align-items:center;gap:7px;font-size:12px;font-weight:800;color:#475467
}
.dm-v3-stock-dot{width:8px;height:8px;border-radius:50%;background:#22c55e;box-shadow:0 0 0 4px rgba(34,197,94,.10)}
.dm-v3-stock.out .dm-v3-stock-dot{background:#ef4444;box-shadow:0 0 0 4px rgba(239,68,68,.08)}
.dm-v3-buy{
  width:100%;min-height:38px;border:0;border-radius:10px;background:var(--dm-dark);
  color:#fff;font-weight:900;cursor:pointer;padding:0 12px
}
.dm-v3-buy:hover{background:#202939}
.dm-v3-buy.disabled{background:#e5e7eb;color:#98a2b3;cursor:not-allowed}
.dm-v3-buy.loading{opacity:.6;pointer-events:none}
.dm-v3-empty{padding:46px 20px;text-align:center;color:#667085}
.dm-v3-loader{padding:32px;text-align:center;color:#667085}
.dm-filter a.is-loading{opacity:.6;pointer-events:none}
.dm-filter a.is-active:after{content:"✓";font-size:11px;font-weight:900}

@media(max-width:1024px){
  .dm-v3-head,.dm-v3-row{
    grid-template-columns:minmax(260px,1.7fr) minmax(140px,1fr) 100px 95px 110px;
    gap:12px
  }
}
@media(max-width:820px){
  .dm-v3-toolbar{align-items:stretch;flex-direction:column}
  .dm-v3-search{min-width:0;width:100%}
  .dm-v3-head{display:none}
  .dm-v3-list{background:transparent;border:0;overflow:visible}
  .dm-v3-row{
    grid-template-columns:1fr auto;
    grid-template-areas:
      "product price"
      "info info"
      "stock buy";
    gap:10px 14px;
    background:#fff;border:1px solid var(--dm-line);border-radius:14px;
    margin-bottom:10px;padding:14px
  }
  .dm-v3-product{grid-area:product}
  .dm-v3-info{grid-area:info}
  .dm-v3-price{grid-area:price;text-align:right}
  .dm-v3-stock{grid-area:stock}
  .dm-v3-actions{grid-area:buy}
  .dm-v3-buy{min-width:110px}
}
@media(max-width:520px){
  .dm-v3-row{
    grid-template-columns:1fr;
    grid-template-areas:"product" "info" "price" "stock" "buy"
  }
  .dm-v3-price{text-align:left}
  .dm-v3-buy{width:100%}
}


/* ===== V4 PRO UI ===== */
.dm-announcement{
  background:#0b1220;color:#fff;font-size:12px;font-weight:700;
  min-height:34px;display:flex;align-items:center
}
.dm-announcement .dm-container{display:flex;align-items:center;justify-content:center;text-align:center}
.dm-announcement a{color:#c7d2fe;text-decoration:underline}

.dm-pro-badge{
  display:inline-flex;align-items:center;gap:6px;
  padding:5px 8px;border-radius:999px;background:#ecfdf3;color:#15803d;
  font-size:10px;font-weight:900
}

.dm-maintenance-wrap{
  min-height:100vh;display:flex;align-items:center;justify-content:center;
  background:
    radial-gradient(circle at 20% 10%,rgba(91,92,226,.14),transparent 32%),
    radial-gradient(circle at 82% 0%,rgba(124,58,237,.12),transparent 28%),
    #f8fafc;
  padding:28px
}
.dm-maintenance-card{
  width:min(720px,100%);background:#fff;border:1px solid #e7ebf0;border-radius:24px;
  box-shadow:0 30px 90px rgba(15,23,42,.12);padding:48px;text-align:center
}
.dm-maintenance-logo{margin-bottom:24px}
.dm-maintenance-logo img{max-height:70px;width:auto}
.dm-maintenance-card h1{
  margin:0 0 14px;font-size:clamp(34px,6vw,58px);line-height:1.02;letter-spacing:-2px
}
.dm-maintenance-card p{
  margin:0 auto 26px;max-width:560px;color:#667085;font-size:17px;line-height:1.7
}
.dm-maintenance-note{
  display:inline-flex;align-items:center;gap:8px;padding:9px 13px;border-radius:999px;
  background:#f2f4ff;color:#4f46e5;font-size:12px;font-weight:800
}
.dm-maintenance-dot{
  width:9px;height:9px;border-radius:50%;background:#22c55e;
  box-shadow:0 0 0 5px rgba(34,197,94,.1)
}
.dm-maintenance-admin{
  margin-top:24px;font-size:12px;color:#98a2b3
}

.dm-admin-card{
  background:#fff;border:1px solid #dcdcde;border-radius:12px;padding:20px;margin-top:18px;
  box-shadow:0 1px 2px rgba(0,0,0,.03)
}
.dm-admin-grid{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px
}
.dm-admin-field label{display:block;font-weight:700;margin-bottom:7px}
.dm-admin-field input[type=text],
.dm-admin-field input[type=url],
.dm-admin-field textarea,
.dm-admin-field select{
  width:100%;max-width:none
}
.dm-admin-field textarea{min-height:120px}
.dm-admin-status{
  display:inline-flex;align-items:center;gap:8px;padding:8px 11px;border-radius:999px;
  font-weight:700;font-size:12px
}
.dm-admin-status.on{background:#fef2f2;color:#b91c1c}
.dm-admin-status.off{background:#ecfdf3;color:#15803d}
.dm-switch{
  position:relative;display:inline-block;width:52px;height:29px;vertical-align:middle
}
.dm-switch input{opacity:0;width:0;height:0}
.dm-slider{
  position:absolute;cursor:pointer;inset:0;background:#cbd5e1;transition:.2s;border-radius:999px
}
.dm-slider:before{
  content:"";position:absolute;width:23px;height:23px;left:3px;top:3px;background:#fff;
  border-radius:50%;transition:.2s;box-shadow:0 1px 4px rgba(0,0,0,.18)
}
.dm-switch input:checked + .dm-slider{background:#ef4444}
.dm-switch input:checked + .dm-slider:before{transform:translateX(23px)}

@media(max-width:782px){
  .dm-admin-grid{grid-template-columns:1fr}
  .dm-maintenance-card{padding:34px 22px}
}


/* ===== V5 PRO FRAMEWORK ===== */
:root{
  --dm-primary:#4f46e5;
  --dm-secondary:#7c3aed;
  --dm-dark:#111827;
  --dm-surface:#ffffff;
  --dm-soft:#f8fafc;
  --dm-line:#e5e7eb;
  --dm-muted:#667085;
  --dm-radius:16px;
  --dm-container:1240px;
  --dm-header-h:74px;
}
.dm-container{width:min(var(--dm-container),calc(100% - 32px));margin-inline:auto}

body.dm-v5-rounded-small{--dm-radius:10px}
body.dm-v5-rounded-large{--dm-radius:22px}
body.dm-v5-compact .dm-section{padding-top:42px;padding-bottom:42px}
body.dm-v5-wide{--dm-container:1380px}
body.dm-v5-narrow{--dm-container:1120px}

.dm-site-header.is-sticky{
  position:sticky;top:0;z-index:999;background:rgba(255,255,255,.94);
  backdrop-filter:blur(14px);border-bottom:1px solid rgba(229,231,235,.9)
}
.admin-bar .dm-site-header.is-sticky{top:32px}
@media(max-width:782px){.admin-bar .dm-site-header.is-sticky{top:46px}}

.dm-topbar{
  min-height:32px;background:#0f172a;color:#cbd5e1;font-size:12px;
  display:flex;align-items:center
}
.dm-topbar .dm-container{display:flex;justify-content:space-between;gap:18px}
.dm-topbar a{color:#fff}

.dm-v5-search-overlay{
  position:fixed;inset:0;background:rgba(15,23,42,.56);z-index:10000;
  display:none;align-items:flex-start;justify-content:center;padding-top:12vh
}
.dm-v5-search-overlay.is-open{display:flex}
.dm-v5-search-panel{
  width:min(760px,calc(100% - 28px));background:#fff;border-radius:20px;
  box-shadow:0 30px 100px rgba(0,0,0,.25);padding:18px
}
.dm-v5-search-panel form{display:flex;gap:10px}
.dm-v5-search-panel input{
  flex:1;height:50px;border:1px solid var(--dm-line);border-radius:12px;padding:0 14px;font-size:16px
}

.dm-v5-account-grid{
  display:grid;grid-template-columns:240px minmax(0,1fr);gap:26px
}
.dm-v5-account-nav{
  background:#fff;border:1px solid var(--dm-line);border-radius:var(--dm-radius);padding:10px;
  height:max-content;position:sticky;top:100px
}
.dm-v5-account-nav a{
  display:flex;padding:11px 12px;border-radius:10px;color:#344054;font-weight:700
}
.dm-v5-account-nav a:hover,.dm-v5-account-nav a.is-active{background:#f2f4ff;color:var(--dm-primary)}

.dm-v5-panel{
  background:#fff;border:1px solid var(--dm-line);border-radius:var(--dm-radius);padding:22px
}
.dm-v5-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.dm-v5-kpi{
  background:#fff;border:1px solid var(--dm-line);border-radius:14px;padding:16px
}
.dm-v5-kpi strong{display:block;font-size:24px;margin-top:5px}

.dm-v5-shop-toolbar{
  display:flex;align-items:center;justify-content:space-between;gap:14px;
  background:#fff;border:1px solid var(--dm-line);border-radius:14px;padding:12px 14px;margin-bottom:18px
}
.dm-v5-shop-toolbar .woocommerce-ordering{margin:0}
.dm-v5-shop-toolbar .woocommerce-result-count{margin:0}

.dm-v5-trustbar{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:18px 0
}
.dm-v5-trustitem{
  border:1px solid var(--dm-line);background:#fff;border-radius:12px;padding:12px;text-align:center;
  font-size:12px;font-weight:800;color:#475467
}

.dm-v5-product-extra{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:20px 0
}
.dm-v5-product-extra > div{
  border:1px solid var(--dm-line);border-radius:12px;padding:13px;background:#f8fafc
}
.dm-v5-product-extra strong{display:block;margin-bottom:3px}

.dm-v5-admin-tabs{
  display:flex;gap:6px;flex-wrap:wrap;margin:18px 0 8px
}
.dm-v5-admin-tabs a{
  padding:9px 12px;border:1px solid #dcdcde;border-radius:8px;background:#fff;text-decoration:none;font-weight:600
}
.dm-v5-admin-tabs a.active{background:#2271b1;color:#fff;border-color:#2271b1}

.dm-admin-card h2{margin-top:0}
.dm-admin-grid-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.dm-admin-field .description{color:#646970}
.dm-color-input{width:90px!important}
.dm-admin-code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;min-height:180px!important}

.dm-v5-footer-columns{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:30px}
.dm-v5-footer-title{font-weight:900;margin-bottom:10px}
.dm-v5-footer-links a{display:block;margin:7px 0;color:#667085}
.dm-v5-footer-bottom{
  border-top:1px solid var(--dm-line);margin-top:24px;padding-top:18px;
  display:flex;justify-content:space-between;gap:18px;color:#98a2b3;font-size:12px
}

.dm-v5-mobile-bottom{
  display:none;position:fixed;left:10px;right:10px;bottom:10px;z-index:9998;
  background:#111827;border-radius:16px;padding:7px;box-shadow:0 12px 30px rgba(0,0,0,.2)
}
.dm-v5-mobile-bottom a{
  color:#fff;display:flex;align-items:center;justify-content:center;gap:6px;
  min-height:42px;border-radius:10px;font-size:12px;font-weight:800
}

@media(max-width:980px){
  .dm-v5-account-grid{grid-template-columns:1fr}
  .dm-v5-account-nav{position:static}
  .dm-v5-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
  .dm-v5-footer-columns{grid-template-columns:1fr 1fr}
}
@media(max-width:760px){
  .dm-v5-trustbar,.dm-v5-product-extra{grid-template-columns:1fr}
  .dm-v5-footer-columns{grid-template-columns:1fr}
  .dm-v5-mobile-bottom{display:grid;grid-template-columns:repeat(3,1fr)}
  body{padding-bottom:74px}
  .dm-topbar .dm-container{justify-content:center}
  .dm-topbar .dm-topbar-right{display:none}
  .dm-admin-grid-3{grid-template-columns:1fr}
}


/* ===== V5.1 CLEAN STOREFRONT FIX ===== */

/* Header/menu: keep the navigation compact instead of rendering the whole tree */
.dm-site-header{
  background:#fff;
  border-bottom:1px solid var(--dm-line);
}
.dm-header-inner{
  min-height:72px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}
.dm-brand{flex:0 0 auto}
.dm-brand .custom-logo{max-height:42px;width:auto}

.dm-nav{margin-left:auto}
.dm-menu,
.dm-menu ul{
  list-style:none;
  margin:0;
  padding:0;
}
.dm-menu{
  display:flex;
  align-items:center;
  gap:4px;
}
.dm-menu > li{
  position:relative;
}
.dm-menu > li > a{
  display:flex;
  align-items:center;
  min-height:42px;
  padding:0 12px;
  border-radius:10px;
  color:#344054;
  font-size:13px;
  font-weight:800;
  text-decoration:none;
  white-space:nowrap;
}
.dm-menu > li > a:hover{
  background:#f5f7fb;
  color:var(--dm-primary);
}
.dm-menu .sub-menu{
  display:none;
  position:absolute;
  top:100%;
  left:0;
  min-width:220px;
  padding:8px;
  background:#fff;
  border:1px solid var(--dm-line);
  border-radius:12px;
  box-shadow:0 16px 45px rgba(15,23,42,.12);
  z-index:1000;
}
.dm-menu li:hover > .sub-menu{display:block}
.dm-menu .sub-menu li{position:relative}
.dm-menu .sub-menu a{
  display:block;
  padding:9px 10px;
  border-radius:8px;
  color:#475467;
  font-size:12px;
  font-weight:700;
  text-decoration:none;
}
.dm-menu .sub-menu a:hover{
  background:#f5f7fb;
  color:var(--dm-primary);
}
.dm-menu .sub-menu .sub-menu{
  top:0;
  left:100%;
}

.dm-header-actions{
  display:flex;
  align-items:center;
  gap:8px;
}
.dm-icon-btn{
  min-height:38px;
  border:1px solid var(--dm-line);
  background:#fff;
  border-radius:10px;
  padding:0 11px;
  color:#111827;
  font-size:12px;
  font-weight:800;
  cursor:pointer;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.dm-mobile-toggle{display:none}

/* Product catalog should visually dominate */
.dm-section.soft{
  padding-top:34px;
}
.dm-app-layout{
  align-items:start;
}
.dm-v3-list{
  box-shadow:0 8px 30px rgba(15,23,42,.04);
}
.dm-v3-row{
  min-height:68px;
}

/* Make every catalog image behave like a small app icon */
.dm-v3-thumb{
  width:38px !important;
  height:38px !important;
  flex:0 0 38px !important;
  border-radius:9px !important;
}
.dm-v3-thumb img{
  width:100% !important;
  height:100% !important;
  object-fit:contain !important;
  padding:3px;
}

/* Popular product strip becomes secondary, below main catalog */
.dm-logo-strip{
  border-top:1px solid var(--dm-line);
  border-bottom:1px solid var(--dm-line);
  background:#fff;
  padding:24px 0;
}
.dm-logo-row{
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:10px;
}
.dm-logo-card{
  min-height:70px;
  padding:10px;
  display:flex;
  align-items:center;
  gap:10px;
  border:1px solid var(--dm-line);
  border-radius:12px;
  background:#fff;
}
.dm-logo-card img{
  width:34px !important;
  height:34px !important;
  flex:0 0 34px;
  object-fit:contain !important;
}
.dm-logo-card strong{
  font-size:11px;
  line-height:1.3;
}

/* WooCommerce product grids: compact thumbnail presentation */
.woocommerce ul.products li.product img{
  width:64px !important;
  height:64px !important;
  object-fit:contain !important;
  margin:0 auto 10px !important;
}
.woocommerce ul.products li.product{
  text-align:center;
}

/* Mini cart: true off-canvas drawer, small icons only */
.dm-cart-overlay{
  position:fixed;
  inset:0;
  background:rgba(15,23,42,.40);
  opacity:0;
  visibility:hidden;
  transition:.2s ease;
  z-index:9998;
}
.dm-cart-drawer{
  position:fixed;
  top:0;
  right:0;
  width:min(390px,92vw);
  height:100vh;
  background:#fff;
  z-index:9999;
  transform:translateX(105%);
  transition:transform .25s ease;
  display:flex;
  flex-direction:column;
  box-shadow:-20px 0 60px rgba(15,23,42,.16);
}
body.dm-cart-open .dm-cart-overlay{
  opacity:1;
  visibility:visible;
}
body.dm-cart-open .dm-cart-drawer{
  transform:translateX(0);
}
.dm-cart-head{
  min-height:64px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 18px;
  border-bottom:1px solid var(--dm-line);
}
.dm-cart-head button{
  width:34px;
  height:34px;
  border:1px solid var(--dm-line);
  background:#fff;
  border-radius:9px;
  cursor:pointer;
  font-size:20px;
}
.dm-cart-body{
  padding:14px;
  overflow:auto;
}
.dm-cart-body .woocommerce-mini-cart{
  list-style:none;
  margin:0;
  padding:0;
}
.dm-cart-body .woocommerce-mini-cart-item{
  position:relative;
  min-height:62px;
  padding:10px 28px 10px 58px !important;
  border-bottom:1px solid #eef1f4;
}
.dm-cart-body .woocommerce-mini-cart-item img{
  position:absolute;
  left:0;
  top:10px;
  width:46px !important;
  height:46px !important;
  object-fit:contain !important;
  margin:0 !important;
  border:1px solid var(--dm-line);
  border-radius:9px;
  padding:3px;
  background:#fff;
}
.dm-cart-body .woocommerce-mini-cart-item a:not(.remove){
  font-size:12px;
  font-weight:800;
  color:#111827;
  line-height:1.35;
}
.dm-cart-body .woocommerce-mini-cart-item .quantity{
  display:block;
  margin-top:4px;
  color:#667085;
  font-size:11px;
}
.dm-cart-body .remove{
  position:absolute;
  right:0;
  top:12px;
  width:20px;
  height:20px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#f2f4f7;
  color:#667085 !important;
  text-decoration:none;
  font-size:13px;
}
.dm-cart-body .woocommerce-mini-cart__total{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:14px 0;
  margin:0;
  border-top:0;
  font-size:13px;
}
.dm-cart-body .woocommerce-mini-cart__buttons{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
}
.dm-cart-body .woocommerce-mini-cart__buttons a{
  margin:0 !important;
  min-height:40px;
  border-radius:10px;
  display:flex !important;
  align-items:center;
  justify-content:center;
}

/* Secondary blocks lower on the page */
.dm-v5-secondary-section{
  padding-top:28px;
}
.dm-info-grid{
  margin-top:0;
}

@media(max-width:1100px){
  .dm-nav{display:none}
  .dm-mobile-toggle{display:inline-flex}
}
@media(max-width:760px){
  .dm-logo-row{grid-template-columns:repeat(2,minmax(0,1fr))}
  .dm-header-inner{min-height:62px}
  .dm-v3-thumb{
    width:34px !important;
    height:34px !important;
    flex-basis:34px !important;
  }
}


/* ===== V5.2 LICENSE STOCK ===== */
.dm-v3-stock{
  white-space:nowrap;
}
.dm-v3-stock-count{
  font-weight:950;
  color:#111827;
}
.dm-v3-stock-source{
  display:block;
  margin-top:2px;
  color:#98a2b3;
  font-size:9px;
  font-weight:700;
}
.dm-v3-stock.low{
  color:#b45309;
}
.dm-v3-stock.low .dm-v3-stock-dot{
  background:#f59e0b;
  box-shadow:0 0 0 4px rgba(245,158,11,.10);
}
.dm-v3-stock.zero{
  color:#b91c1c;
}
.dm-v3-stock.zero .dm-v3-stock-dot{
  background:#ef4444;
  box-shadow:0 0 0 4px rgba(239,68,68,.10);
}
.dm-v5-plugin-status{
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:7px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
}
.dm-v5-plugin-status.ok{background:#ecfdf3;color:#15803d}
.dm-v5-plugin-status.warn{background:#fff7ed;color:#b45309}

/* ===== V5.3 FS LICENSE MANAGER + QUANTITY BUY ===== */
.dm-qty-overlay{position:fixed;inset:0;background:rgba(15,23,42,.48);z-index:10020;display:none;align-items:center;justify-content:center;padding:20px}
.dm-qty-overlay.is-open{display:flex}
.dm-qty-modal{width:min(420px,100%);background:#fff;border-radius:18px;padding:22px;box-shadow:0 30px 90px rgba(0,0,0,.22)}
.dm-qty-head{display:flex;justify-content:space-between;gap:15px;align-items:flex-start;margin-bottom:18px}
.dm-qty-head strong{font-size:17px}.dm-qty-close{border:0;background:#f2f4f7;border-radius:9px;width:32px;height:32px;cursor:pointer}
.dm-qty-stock{font-size:12px;color:#667085;margin-top:4px}
.dm-qty-control{display:grid;grid-template-columns:44px 1fr 44px;gap:8px;margin:14px 0}
.dm-qty-control button,.dm-qty-control input{height:44px;border:1px solid var(--dm-line);border-radius:10px;text-align:center;background:#fff;font-weight:900}
.dm-qty-control button{cursor:pointer;font-size:18px}
.dm-qty-confirm{width:100%;height:44px;border:0;border-radius:11px;background:var(--dm-dark);color:#fff;font-weight:900;cursor:pointer}
.dm-qty-error{display:none;color:#b91c1c;background:#fef2f2;padding:9px 10px;border-radius:9px;font-size:12px;margin-bottom:10px}
.dm-v3-buy[data-stock="0"]{background:#e5e7eb;color:#98a2b3;pointer-events:none}


/* ===== V5.4 CART HEADER + PCS STOCK ===== */
.dm-header-cart{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:40px;
  padding:0 12px;
  border:1px solid var(--dm-line);
  border-radius:11px;
  background:#111827;
  color:#fff;
  font-size:12px;
  font-weight:900;
  cursor:pointer;
}
.dm-header-cart:hover{background:#202939}
.dm-cart-icon{font-size:16px;line-height:1}
.dm-cart-meta{display:flex;align-items:center;gap:5px}
.dm-cart-count{
  min-width:20px;height:20px;padding:0 6px;border-radius:999px;
  background:#fff;color:#111827;display:inline-flex;align-items:center;justify-content:center;
  font-size:10px;font-weight:950
}
.dm-cart-subtotal{
  font-size:11px;color:#d0d5dd;font-weight:800
}
.dm-cart-footer-actions{
  padding:14px;
  border-top:1px solid var(--dm-line);
  background:#fff;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
}
.dm-cart-footer-actions a{
  min-height:42px;border-radius:10px;display:flex;align-items:center;justify-content:center;
  font-size:12px;font-weight:900;text-decoration:none
}
.dm-cart-footer-actions .view-cart{
  border:1px solid var(--dm-line);background:#fff;color:#111827
}
.dm-cart-footer-actions .checkout{
  border:1px solid #111827;background:#111827;color:#fff
}
.dm-v3-stock-source{
  color:#667085;
  font-size:10px;
  font-weight:900;
  text-transform:lowercase;
}
@media(max-width:760px){
  .dm-cart-subtotal{display:none}
  .dm-header-cart{padding:0 9px}
}


/* ===== V6 MODULAR CORE / FAST CART ===== */
.dm-cart-drawer{overflow:hidden}
.dm-v6-cart-wrap{display:flex;flex-direction:column;height:calc(100vh - 64px)}
.dm-v6-cart-items{flex:1;overflow:auto;padding:10px 14px}
.dm-v6-cart-empty{
  min-height:220px;display:grid;place-items:center;text-align:center;color:#667085;padding:30px
}
.dm-v6-cart-item{
  display:grid;grid-template-columns:50px minmax(0,1fr) auto;gap:10px;
  padding:12px 0;border-bottom:1px solid #eef1f4;align-items:start
}
.dm-v6-cart-img{
  width:48px;height:48px;border:1px solid var(--dm-line);border-radius:10px;
  object-fit:contain;padding:3px;background:#fff
}
.dm-v6-cart-name{
  display:block;color:#111827;font-size:12px;font-weight:900;line-height:1.35;
  text-decoration:none;margin-bottom:5px
}
.dm-v6-cart-price{font-size:11px;color:#667085}
.dm-v6-cart-remove{
  width:28px;height:28px;border:0;border-radius:8px;background:#fef2f2;color:#b91c1c;
  cursor:pointer;font-weight:900
}
.dm-v6-cart-qty{
  display:flex;align-items:center;gap:5px;margin-top:8px
}
.dm-v6-cart-qty button{
  width:28px;height:28px;border:1px solid var(--dm-line);background:#fff;border-radius:7px;
  cursor:pointer;font-weight:900
}
.dm-v6-cart-qty input{
  width:56px;height:28px;border:1px solid var(--dm-line);border-radius:7px;text-align:center;
  font-size:11px;font-weight:900
}
.dm-v6-cart-summary{
  flex:0 0 auto;border-top:1px solid var(--dm-line);padding:13px 14px;background:#fff
}
.dm-v6-cart-subtotal{
  display:flex;justify-content:space-between;gap:14px;margin-bottom:11px;
  font-size:13px;font-weight:900
}
.dm-v6-cart-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.dm-v6-cart-actions a{
  min-height:42px;border-radius:10px;display:flex;align-items:center;justify-content:center;
  text-decoration:none;font-size:12px;font-weight:900
}
.dm-v6-cart-actions .cart-page{border:1px solid var(--dm-line);color:#111827;background:#fff}
.dm-v6-cart-actions .checkout-page{border:1px solid #111827;color:#fff;background:#111827}
.dm-v6-cart-loading{opacity:.5;pointer-events:none}
.dm-v6-cart-error{
  margin:8px 14px;padding:9px 10px;background:#fef2f2;color:#b91c1c;
  border-radius:9px;font-size:11px;font-weight:700
}

/* Modules admin */
.dm-v6-modules{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:18px
}
.dm-v6-module{
  background:#fff;border:1px solid #dcdcde;border-radius:12px;padding:18px
}
.dm-v6-module-head{display:flex;justify-content:space-between;gap:12px;align-items:start}
.dm-v6-module h3{margin:0 0 5px}
.dm-v6-module p{margin:0;color:#646970}
.dm-v6-module-version{
  padding:4px 7px;border-radius:999px;background:#f0f6fc;color:#2271b1;font-size:11px;font-weight:800
}
@media(max-width:782px){.dm-v6-modules{grid-template-columns:1fr}}


/* ===== V6.1 PROFESSIONAL ADMIN ===== */
.dmv61-wrap{margin:0 0 0 -20px;background:#f5f7fb;min-height:100vh;color:#101828}
.dmv61-top{
  background:#111827;color:#fff;padding:22px 28px;display:flex;align-items:center;
  justify-content:space-between;gap:20px;position:sticky;top:32px;z-index:20
}
.dmv61-brand{display:flex;align-items:center;gap:13px}
.dmv61-logo{
  width:40px;height:40px;border-radius:11px;background:linear-gradient(135deg,#4f46e5,#7c3aed);
  display:grid;place-items:center;font-weight:900;font-size:18px
}
.dmv61-brand h1{color:#fff;margin:0;font-size:20px;line-height:1.2}
.dmv61-brand small{display:block;color:#98a2b3;margin-top:3px}
.dmv61-version{padding:7px 10px;border:1px solid #344054;border-radius:999px;color:#d0d5dd;font-size:11px;font-weight:800}
.dmv61-shell{display:grid;grid-template-columns:220px minmax(0,1fr);min-height:calc(100vh - 84px)}
.dmv61-sidebar{background:#fff;border-right:1px solid #e4e7ec;padding:18px 12px}
.dmv61-nav a{
  display:flex;align-items:center;gap:10px;padding:10px 12px;margin-bottom:4px;border-radius:9px;
  color:#475467;text-decoration:none;font-weight:700
}
.dmv61-nav a:hover{background:#f8fafc;color:#101828}
.dmv61-nav a.active{background:#eef2ff;color:#4338ca}
.dmv61-content{padding:26px;max-width:1500px}
.dmv61-pagehead{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;margin-bottom:20px}
.dmv61-pagehead h2{font-size:24px;margin:0 0 5px}.dmv61-pagehead p{margin:0;color:#667085}
.dmv61-btn{
  min-height:38px;padding:0 13px;border-radius:9px;border:1px solid #d0d5dd;background:#fff;color:#344054;
  font-weight:800;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:7px
}
.dmv61-btn.primary{background:#4f46e5;border-color:#4f46e5;color:#fff}
.dmv61-btn.danger{color:#b42318}
.dmv61-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:20px}
.dmv61-stat,.dmv61-card{
  background:#fff;border:1px solid #e4e7ec;border-radius:13px;box-shadow:0 1px 2px rgba(16,24,40,.03)
}
.dmv61-stat{padding:17px}.dmv61-stat small{color:#667085;font-weight:700}.dmv61-stat strong{display:block;font-size:24px;margin-top:7px}
.dmv61-card{padding:20px;margin-bottom:16px}
.dmv61-card h3{margin:0 0 14px;font-size:16px}
.dmv61-status{display:flex;align-items:center;gap:7px;font-size:12px;font-weight:800}
.dmv61-dot{width:8px;height:8px;border-radius:50%;background:#12b76a}.dmv61-dot.warn{background:#f79009}.dmv61-dot.off{background:#98a2b3}
.dmv61-system-row{display:grid;grid-template-columns:220px 1fr auto;gap:15px;padding:11px 0;border-bottom:1px solid #f2f4f7;align-items:center}
.dmv61-system-row:last-child{border-bottom:0}
.dmv61-modules{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.dmv61-module{background:#fff;border:1px solid #e4e7ec;border-radius:13px;padding:18px;position:relative}
.dmv61-module.inactive{opacity:.72}
.dmv61-module-top{display:flex;justify-content:space-between;gap:12px}
.dmv61-module h3{margin:0 0 5px;font-size:15px}
.dmv61-module p{margin:0;color:#667085;line-height:1.5}
.dmv61-tags{display:flex;gap:6px;flex-wrap:wrap;margin:12px 0}
.dmv61-tag{padding:4px 7px;border-radius:999px;background:#f2f4f7;color:#475467;font-size:10px;font-weight:800}
.dmv61-tag.core{background:#eef2ff;color:#4338ca}.dmv61-tag.active{background:#ecfdf3;color:#027a48}.dmv61-tag.inactive{background:#f2f4f7;color:#667085}
.dmv61-actions{display:flex;gap:7px;flex-wrap:wrap;padding-top:12px;border-top:1px solid #f2f4f7}
.dmv61-upload{
  border:1px dashed #98a2b3;border-radius:12px;padding:18px;background:#fcfcfd;margin-bottom:18px
}
.dmv61-upload input[type=file]{max-width:420px}
.dmv61-notice{padding:11px 13px;border-radius:9px;margin-bottom:14px;font-weight:700}
.dmv61-notice.success{background:#ecfdf3;color:#027a48}.dmv61-notice.error{background:#fef3f2;color:#b42318}
.dmv61-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.dmv61-form-field label{display:block;font-weight:800;margin-bottom:6px}
.dmv61-form-field input[type=text],.dmv61-form-field input[type=url],.dmv61-form-field input[type=number],.dmv61-form-field select,.dmv61-form-field textarea{
  width:100%;max-width:none;border-radius:8px;border:1px solid #d0d5dd;min-height:38px
}
.dmv61-code{min-height:200px!important;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
@media(max-width:1100px){.dmv61-grid{grid-template-columns:repeat(2,1fr)}.dmv61-modules{grid-template-columns:1fr}}
@media(max-width:782px){
 .dmv61-wrap{margin-left:-10px}.dmv61-top{top:46px;padding:16px}.dmv61-shell{grid-template-columns:1fr}
 .dmv61-sidebar{border-right:0;border-bottom:1px solid #e4e7ec}.dmv61-nav{display:flex;overflow:auto}
 .dmv61-nav a{white-space:nowrap}.dmv61-content{padding:16px}.dmv61-grid{grid-template-columns:1fr 1fr}.dmv61-form-grid{grid-template-columns:1fr}
}


/* ===== V6.2 MODULE PACK ===== */
.dmv62-module-settings-nav{margin-bottom:16px}
.dmv62-module-settings-nav a{text-decoration:none}
.dm-wishlist-btn{border:1px solid var(--dm-line);background:#fff;border-radius:9px;min-height:36px;padding:0 11px;font-weight:800;cursor:pointer}
.dm-wishlist-btn.is-active{background:#fff1f2;color:#be123c;border-color:#fecdd3}
.dm-login-overlay{display:none;position:fixed;inset:0;background:rgba(15,23,42,.55);z-index:10050;align-items:center;justify-content:center;padding:20px}
.dm-login-overlay.is-open{display:flex}
.dm-login-modal{width:min(430px,100%);background:#fff;border-radius:18px;padding:22px;box-shadow:0 30px 100px rgba(0,0,0,.25)}
.dm-login-tabs{display:flex;gap:6px;margin-bottom:15px}
.dm-login-tabs button{flex:1;height:38px;border:1px solid var(--dm-line);background:#fff;border-radius:9px;font-weight:800}
.dm-login-tabs button.is-active{background:#111827;color:#fff;border-color:#111827}
.dm-login-pane{display:none}.dm-login-pane.is-active{display:block}
.dm-login-pane input{width:100%;height:42px;border:1px solid var(--dm-line);border-radius:9px;margin-bottom:9px;padding:0 11px}
.dm-login-submit{width:100%;height:42px;border:0;border-radius:9px;background:#111827;color:#fff;font-weight:900;cursor:pointer}
.dm-login-error{display:none;background:#fef2f2;color:#b91c1c;padding:9px;border-radius:8px;font-size:12px;margin-bottom:10px}
.dm-account-pro-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:18px 0}
.dm-account-pro-card{border:1px solid var(--dm-line);background:#fff;border-radius:13px;padding:15px;text-decoration:none;color:#111827}
.dm-account-pro-card strong{display:block;font-size:21px;margin-top:5px}
.dm-checkout-steps{display:flex;gap:8px;align-items:center;margin:0 0 18px}
.dm-checkout-step{display:flex;align-items:center;gap:7px;color:#667085;font-size:12px;font-weight:800}
.dm-checkout-step i{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:#eef2ff;color:#4338ca;font-style:normal}
.dm-delivery-box{border:1px solid var(--dm-line);border-radius:13px;background:#fff;padding:15px;margin:12px 0}
.dm-delivery-key{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;background:#f8fafc;border:1px solid #eef1f4;border-radius:8px;padding:8px;word-break:break-all}
.dm-review-summary{display:flex;align-items:center;gap:12px;margin:10px 0 16px}
.dm-review-score{font-size:30px;font-weight:950}
.dm-review-stars{color:#f59e0b;font-size:18px}
.dm-faq-list{display:grid;gap:9px}
.dm-faq-item{border:1px solid var(--dm-line);border-radius:11px;background:#fff;overflow:hidden}
.dm-faq-q{width:100%;border:0;background:#fff;padding:13px 14px;text-align:left;font-weight:900;cursor:pointer}
.dm-faq-a{display:none;padding:0 14px 14px;color:#667085;line-height:1.6}
.dm-faq-item.is-open .dm-faq-a{display:block}
.dm-mega-menu-enabled .dm-menu>li.mega-menu{position:static}
.dm-mega-menu-enabled .dm-menu>li.mega-menu>.sub-menu{left:50%;transform:translateX(-50%);width:min(900px,90vw);display:none;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:15px}
.dm-mega-menu-enabled .dm-menu>li.mega-menu:hover>.sub-menu{display:grid}
@media(max-width:900px){
  .dm-account-pro-grid{grid-template-columns:repeat(2,1fr)}
  .dm-mega-menu-enabled .dm-menu>li.mega-menu>.sub-menu{display:none!important}
}

/* V6.2.2 security status */
.dm-sec-good{color:#027a48;font-weight:800}
.dm-sec-warn{color:#b54708;font-weight:800}
.dm-sec-bad{color:#b42318;font-weight:800}


/* ===== V6.2.3 WooCommerce Categories Navigation ===== */
.dm-wc-catnav{position:relative;z-index:1300}
.dm-wc-catnav-btn{
  display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:0 13px;
  border:1px solid var(--dm-line);background:#fff;border-radius:10px;
  font-size:12px;font-weight:900;color:#111827;cursor:pointer;white-space:nowrap
}
.dm-wc-catnav-btn:hover{background:#f8fafc}
.dm-wc-catnav-btn .dm-wc-catnav-arrow{font-size:11px;transition:.18s ease}
.dm-wc-catnav.is-open .dm-wc-catnav-arrow{transform:rotate(180deg)}

.dm-wc-catnav-dropdown{
  display:none;position:absolute;top:calc(100% + 8px);left:0;
  width:min(360px,92vw);max-height:70vh;overflow:auto;
  background:#fff;border:1px solid var(--dm-line);border-radius:14px;
  box-shadow:0 18px 50px rgba(15,23,42,.14);padding:8px
}
.dm-wc-catnav.is-open .dm-wc-catnav-dropdown{display:block}

.dm-wc-catnav-list,.dm-wc-catnav-list ul{list-style:none;margin:0;padding:0}
.dm-wc-catnav-item{position:relative}
.dm-wc-catnav-row{
  display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:6px
}
.dm-wc-catnav-link{
  display:block;padding:10px 11px;border-radius:9px;text-decoration:none;
  color:#344054;font-size:12px;font-weight:800;line-height:1.35
}
.dm-wc-catnav-link:hover{background:#f2f4ff;color:var(--dm-primary)}
.dm-wc-catnav-count{color:#98a2b3;font-size:10px;font-weight:700}
.dm-wc-catnav-expand{
  width:28px;height:28px;border:0;border-radius:7px;background:#f2f4f7;
  color:#667085;cursor:pointer;font-weight:900;transition:.15s ease
}
.dm-wc-catnav-expand:hover{background:#e4e7ec}
.dm-wc-catnav-children{
  display:none;margin-left:12px!important;padding-left:8px!important;border-left:1px solid #eef1f4
}
.dm-wc-catnav-item.is-open>.dm-wc-catnav-children{display:block}
.dm-wc-catnav-item.is-open>.dm-wc-catnav-row .dm-wc-catnav-expand{transform:rotate(45deg)}

@media(max-width:900px){
  .dm-wc-catnav-dropdown{
    width:min(340px,calc(100vw - 28px));
    max-height:65vh
  }
}


/* ===== V6.2.4 PRODUCT TABLE SORTING ===== */
.dm-v3-head-sort{
  appearance:none;border:0;background:transparent;padding:0;display:inline-flex;
  align-items:center;gap:6px;font:inherit;font-weight:900;color:inherit;cursor:pointer;
  text-align:left
}
.dm-v3-head-sort:hover{color:var(--dm-primary)}
.dm-v3-head-sort .dm-sort-arrow{font-size:10px;opacity:.45;min-width:10px}
.dm-v3-head-sort.is-active .dm-sort-arrow{opacity:1;color:var(--dm-primary)}
.dm-v3-sortbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.dm-v3-sortbar label{font-size:11px;font-weight:800;color:#667085}
.dm-v3-sort-select{
  min-height:36px;border:1px solid var(--dm-line);border-radius:9px;background:#fff;
  padding:0 34px 0 10px;font-size:11px;font-weight:800;color:#344054;outline:none
}
.dm-v3-sort-select:focus{border-color:var(--dm-primary)}
.dm-v3-head>div{display:flex;align-items:center}
@media(max-width:760px){
  .dm-v3-toolbar{align-items:flex-start;gap:10px}
  .dm-v3-sortbar{width:100%}
  .dm-v3-sort-select{flex:1;min-width:180px}
}


/* ===== V6.2.5 PRODUCT CATEGORY TABLE ===== */
.dm-category-page{padding:24px 0 48px}
.dm-category-title{margin-bottom:18px}
.dm-category-title h1{margin:0 0 5px;font-size:28px}
.dm-category-title p{margin:0;color:#667085}
.dm-category-page .dm-v3-toolbar{margin-bottom:18px}
.dm-category-page .dm-v3-list{background:#fff;border:1px solid var(--dm-line);border-radius:16px;overflow:hidden}
.dm-category-page .dm-v3-head{border-radius:0}
@media(max-width:760px){
  .dm-category-title h1{font-size:22px}
}

/* V6.2.6 header clarity */
.dm-account-text{display:inline-flex;align-items:center;gap:7px;white-space:nowrap;font-weight:800}
.dm-account-text svg,.dm-account-text .dm-account-icon{width:16px;height:16px}


/* ===== V6.2.7 CATEGORIES DIRECTORY PAGE ===== */
.dm-categories-page{padding:28px 0 52px}
.dm-categories-page-head{margin-bottom:20px}
.dm-categories-page-head h1{margin:0 0 6px;font-size:30px}
.dm-categories-page-head p{margin:0;color:#667085}
.dm-categories-directory{
  background:#fff;border:1px solid var(--dm-line);border-radius:16px;
  overflow:hidden
}
.dm-category-directory-list,.dm-category-directory-list ul{
  list-style:none;margin:0;padding:0
}
.dm-category-directory-item{border-bottom:1px solid #eef1f4}
.dm-category-directory-item:last-child{border-bottom:0}
.dm-category-directory-row{
  display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;
  gap:10px;padding:4px 10px
}
.dm-category-directory-link{
  display:flex;align-items:center;justify-content:space-between;gap:14px;
  min-height:52px;padding:8px 10px;text-decoration:none;color:#101828;
  font-weight:850;border-radius:10px
}
.dm-category-directory-link:hover{background:#f8fafc;color:var(--dm-primary)}
.dm-category-directory-count{
  flex:none;font-size:11px;font-weight:800;color:#98a2b3;
  background:#f2f4f7;padding:4px 8px;border-radius:999px
}
.dm-category-directory-expand{
  width:34px;height:34px;border:1px solid #e4e7ec;border-radius:9px;
  background:#fff;color:#475467;font-size:18px;font-weight:800;cursor:pointer;
  transition:.15s ease
}
.dm-category-directory-expand:hover{background:#f2f4f7}
.dm-category-directory-children{
  display:none;margin-left:26px!important;border-left:1px solid #e4e7ec;
  padding-left:10px!important
}
.dm-category-directory-item.is-open>.dm-category-directory-children{display:block}
.dm-category-directory-item.is-open>.dm-category-directory-row .dm-category-directory-expand{
  transform:rotate(45deg)
}
.dm-category-directory-empty{padding:24px;color:#667085}
@media(max-width:760px){
  .dm-categories-page{padding-top:18px}
  .dm-categories-page-head h1{font-size:24px}
  .dm-category-directory-children{margin-left:14px!important}
}


/* ===== V6.2.8 ADMIN CONTENT BLOCKS ===== */
.dm-content-block{width:100%}
.dm-content-block + .dm-content-block{margin-top:0}
.dm-content-block img{max-width:100%;height:auto}
.dm-content-block-top-alert,
.dm-content-block-trustbar,
.dm-content-block-header-notice,
.dm-content-block-promo,
.dm-content-block-before-catalog,
.dm-content-block-after-catalog,
.dm-content-block-prefooter,
.dm-content-block-cookie{position:relative}
.dm-content-block-cookie{
  position:fixed;left:0;right:0;bottom:0;z-index:9998
}


/* ===== V6.2.9 CONTENT BLOCK VISIBILITY FIX ===== */
.dm-content-block:empty{display:none}
.dm-content-block img{max-width:100%;height:auto}


/* ===== V6.2.10 CONTENT BLOCK DIAGNOSTICS ===== */
.dmv-block-status-table{width:100%;border-collapse:collapse}
.dmv-block-status-table th,.dmv-block-status-table td{
  padding:10px;border-bottom:1px solid #e5e7eb;text-align:left;vertical-align:top
}
.dmv-block-ok{color:#027a48;font-weight:800}
.dmv-block-off{color:#667085;font-weight:800}
.dmv-block-empty{color:#b54708;font-weight:800}


/* =========================================================
   V6.3.0 UI UPGRADE - MAILMMO PROFESSIONAL COLOR SYSTEM
   ========================================================= */
:root{
  --dm-primary:#2563eb;
  --dm-primary-700:#1d4ed8;
  --dm-primary-800:#1e40af;
  --dm-navy:#0f172a;
  --dm-navy-soft:#1e293b;
  --dm-accent:#0ea5e9;
  --dm-success:#16a34a;
  --dm-warning:#f59e0b;
  --dm-danger:#dc2626;
  --dm-bg:#f6f8fc;
  --dm-surface:#ffffff;
  --dm-surface-soft:#f8fafc;
  --dm-line:#e5eaf1;
  --dm-text:#172033;
  --dm-muted:#64748b;
  --dm-radius:14px;
  --dm-radius-sm:10px;
  --dm-shadow:0 12px 32px rgba(15,23,42,.08);
  --dm-shadow-soft:0 4px 16px rgba(15,23,42,.06);
}

/* Global */
body{
  background:var(--dm-bg);
  color:var(--dm-text);
}
a{transition:color .18s ease,background .18s ease,border-color .18s ease,transform .18s ease}
.dm-container{max-width:1240px}
button,input,select,textarea{font-family:inherit}

/* Header */
.dm-header,
.site-header{
  background:rgba(255,255,255,.97);
  border-bottom:1px solid var(--dm-line);
  box-shadow:0 2px 12px rgba(15,23,42,.04);
  backdrop-filter:blur(10px);
}
.dm-header.is-sticky,
.site-header.is-sticky{
  box-shadow:0 8px 26px rgba(15,23,42,.08);
}
.dm-logo img{max-height:44px}
.dm-nav a,
.dm-menu a{
  color:var(--dm-navy);
  font-weight:800;
}
.dm-nav a:hover,
.dm-menu a:hover{color:var(--dm-primary)}
.dm-icon-btn,
.dm-account-text,
.dm-wc-catnav-btn{
  border:1px solid var(--dm-line);
  background:#fff;
  color:var(--dm-navy);
  border-radius:10px;
  min-height:40px;
  box-shadow:none;
}
.dm-icon-btn:hover,
.dm-account-text:hover,
.dm-wc-catnav-btn:hover{
  border-color:#bfdbfe;
  background:#eff6ff;
  color:var(--dm-primary);
}
.dm-cart-count{
  background:var(--dm-danger)!important;
  color:#fff!important;
}

/* Search */
.dm-search input,
.dm-v3-search input{
  border:1px solid var(--dm-line)!important;
  background:#fff!important;
  color:var(--dm-text);
  border-radius:10px!important;
}
.dm-search input:focus,
.dm-v3-search input:focus{
  border-color:#93c5fd!important;
  box-shadow:0 0 0 3px rgba(37,99,235,.08);
}

/* Hero / notices */
.dm-content-block-header-notice,
.dm-content-block-trustbar{
  border-bottom:1px solid rgba(255,255,255,.1);
}
.dm-content-block a{font-weight:700}

/* Sections */
.dm-section,
.dm-v3-catalog,
.dm-categories-directory,
.dm-category-page .dm-v3-list{
  border-color:var(--dm-line);
}
.dm-section.soft{background:transparent!important}

/* Product toolbar */
.dm-v3-toolbar{
  background:#fff;
  border:1px solid var(--dm-line);
  border-radius:var(--dm-radius);
  padding:14px 16px;
  box-shadow:var(--dm-shadow-soft);
}
.dm-v3-toolbar strong{
  color:var(--dm-navy);
  font-size:15px;
}
.dm-v3-toolbar small{color:var(--dm-muted)}
.dm-v3-sort-select{
  border-color:var(--dm-line);
  background:#fff;
  color:var(--dm-text);
}
.dm-v3-sort-select:hover{border-color:#bfdbfe}

/* Product table */
.dm-v3-list{
  border:1px solid var(--dm-line)!important;
  border-radius:var(--dm-radius)!important;
  overflow:hidden;
  background:#fff;
  box-shadow:var(--dm-shadow-soft);
}
.dm-v3-head{
  background:#f8fafc!important;
  border-bottom:1px solid var(--dm-line)!important;
  color:#475569!important;
  min-height:46px;
}
.dm-v3-row{
  background:#fff;
  border-bottom:1px solid #eef2f7!important;
  transition:background .16s ease,box-shadow .16s ease,transform .16s ease;
}
.dm-v3-row:nth-child(even){background:#fcfdff}
.dm-v3-row:hover{
  background:#f8fbff;
  box-shadow:inset 3px 0 0 var(--dm-primary);
}
.dm-v3-name{color:var(--dm-navy)!important}
.dm-v3-name:hover{color:var(--dm-primary)!important}
.dm-v3-info{color:#64748b!important}
.dm-v3-price{
  color:var(--dm-primary-700)!important;
  font-weight:900!important;
}
.dm-v3-stock{
  color:var(--dm-success)!important;
  font-weight:800;
}
.dm-v3-stock.out,
.dm-v3-stock.is-out{
  color:var(--dm-danger)!important;
}
.dm-v3-stock-dot{
  background:currentColor!important;
  box-shadow:0 0 0 4px rgba(22,163,74,.08);
}
.dm-v3-buy{
  background:var(--dm-primary)!important;
  color:#fff!important;
  border:1px solid var(--dm-primary)!important;
  border-radius:9px!important;
  font-weight:900!important;
  min-height:36px;
  box-shadow:0 4px 10px rgba(37,99,235,.15);
}
.dm-v3-buy:hover{
  background:var(--dm-primary-700)!important;
  transform:translateY(-1px);
}
.dm-v3-buy.disabled{
  background:#e5e7eb!important;
  border-color:#e5e7eb!important;
  color:#94a3b8!important;
  box-shadow:none;
}
.dm-v3-tag{
  border-radius:999px!important;
  border:1px solid #dbeafe!important;
  background:#eff6ff!important;
  color:#1d4ed8!important;
}

/* Categories directory */
.dm-categories-page-head h1,
.dm-category-title h1{color:var(--dm-navy)}
.dm-category-directory-row{background:#fff}
.dm-category-directory-row:hover{background:#f8fbff}
.dm-category-directory-link{
  color:var(--dm-navy)!important;
}
.dm-category-directory-link:hover{
  color:var(--dm-primary)!important;
}
.dm-category-directory-count{
  background:#eff6ff!important;
  color:#2563eb!important;
}
.dm-category-directory-expand{
  border-color:#dbeafe!important;
  color:#2563eb!important;
  background:#fff!important;
}
.dm-category-directory-expand:hover{background:#eff6ff!important}

/* Breadcrumb look */
.woocommerce-breadcrumb{
  color:#94a3b8!important;
  font-size:12px;
}
.woocommerce-breadcrumb a{color:#64748b}
.woocommerce-breadcrumb a:hover{color:var(--dm-primary)}

/* Product detail / Woo */
.woocommerce div.product .summary,
.woocommerce div.product .woocommerce-tabs,
.woocommerce-account .woocommerce-MyAccount-content,
.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-cart .cart_totals,
.woocommerce-checkout #order_review{
  background:#fff;
  border:1px solid var(--dm-line);
  border-radius:var(--dm-radius);
  box-shadow:var(--dm-shadow-soft);
}
.woocommerce button.button,
.woocommerce a.button,
.woocommerce input.button{
  border-radius:9px!important;
  font-weight:800!important;
}
.woocommerce button.button.alt,
.woocommerce a.button.alt,
.woocommerce input.button.alt{
  background:var(--dm-primary)!important;
}
.woocommerce button.button.alt:hover,
.woocommerce a.button.alt:hover,
.woocommerce input.button.alt:hover{
  background:var(--dm-primary-700)!important;
}

/* My Account */
.woocommerce-MyAccount-navigation ul{padding:8px!important}
.woocommerce-MyAccount-navigation li a{
  display:block;padding:11px 12px;border-radius:9px;
  color:#475569;font-weight:800;
}
.woocommerce-MyAccount-navigation li.is-active a,
.woocommerce-MyAccount-navigation li a:hover{
  background:#eff6ff;color:var(--dm-primary);
}

/* Footer */
.dm-footer,
.site-footer{
  background:var(--dm-navy)!important;
  color:#cbd5e1!important;
}
.dm-footer a,
.site-footer a{color:#e2e8f0}
.dm-footer a:hover,
.site-footer a:hover{color:#fff}

/* Responsive product table */
@media(max-width:900px){
  .dm-v3-head{display:none!important}
  .dm-v3-row{
    display:grid!important;
    grid-template-columns:1fr auto!important;
    gap:10px 14px!important;
    padding:14px!important;
    border-radius:12px;
    margin:10px;
    border:1px solid var(--dm-line)!important;
  }
  .dm-v3-product{grid-column:1/-1}
  .dm-v3-info{grid-column:1/-1}
  .dm-v3-price{grid-column:1}
  .dm-v3-stock{grid-column:2;text-align:right}
  .dm-v3-actions{grid-column:1/-1}
  .dm-v3-actions .dm-v3-buy{width:100%}
  .dm-v3-list{background:transparent!important;border:0!important;box-shadow:none}
}
@media(max-width:640px){
  .dm-container{padding-left:12px;padding-right:12px}
  .dm-v3-toolbar{padding:12px}
  .dm-v3-sortbar{gap:7px}
  .dm-v3-sort-select{width:100%}
  .dm-v3-search{width:100%}
  .dm-v3-search input{width:100%}
  .dm-account-text span.dm-account-icon{display:none}
  .dm-account-text{padding:0 10px}
}

/* Visual density options via body classes */
body.dm-density-compact .dm-v3-row{min-height:56px}
body.dm-density-comfortable .dm-v3-row{min-height:68px}


/* =========================================================
   V6.3.1 - HEADER / CATEGORIES / PRODUCT TABLE / DEVICE VISIBILITY
   ========================================================= */

/* Generic device visibility */
@media (min-width:1025px){
  .dm-hide-desktop{display:none!important}
}
@media (min-width:641px) and (max-width:1024px){
  .dm-hide-tablet{display:none!important}
}
@media (max-width:640px){
  .dm-hide-mobile{display:none!important}
}

/* Header Builder controls */
.dm-hb-element{display:flex;align-items:center}
.dm-site-header .custom-logo{
  width:var(--dm-header-logo-width,180px)!important;
  max-width:100%;
  height:auto!important;
}
@media(max-width:1024px){
  .dm-site-header .custom-logo{width:var(--dm-header-logo-width-tablet,160px)!important}
}
@media(max-width:640px){
  .dm-site-header .custom-logo{width:var(--dm-header-logo-width-mobile,132px)!important}
}
.dm-site-header.is-sticky{
  position:sticky;
  top:0;
  z-index:999;
}

/* Category directory layouts */
.dm-categories-directory.dm-cat-layout-grid > .dm-category-directory-list{
  display:grid;
  grid-template-columns:repeat(var(--dm-cat-cols-desktop,4),minmax(0,1fr));
  gap:16px;
  padding:0;
  margin:0;
}
.dm-cat-layout-grid .dm-category-directory-item{
  list-style:none;
  min-width:0;
}
.dm-cat-layout-grid .dm-category-directory-row{
  height:100%;
  min-height:126px;
  border:1px solid var(--dm-line);
  border-radius:var(--dm-radius);
  padding:16px;
  align-items:flex-start;
  box-shadow:var(--dm-shadow-soft);
}
.dm-cat-layout-grid .dm-category-directory-link{
  display:grid!important;
  grid-template-columns:auto 1fr;
  gap:12px;
  align-items:start;
  width:100%;
}
.dm-category-directory-thumb{
  width:52px;
  height:52px;
  border-radius:12px;
  border:1px solid var(--dm-line);
  background:#f8fafc;
  object-fit:cover;
  flex:0 0 auto;
}
.dm-category-directory-thumb.dm-no-image{
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--dm-primary);
  font-weight:900;
  font-size:18px;
}
.dm-category-directory-copy{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:5px;
}
.dm-category-directory-name{
  font-weight:900;
  color:var(--dm-navy);
  line-height:1.25;
}
.dm-category-directory-desc{
  color:var(--dm-muted);
  font-size:12px;
  line-height:1.45;
  font-weight:500;
}
.dm-cat-layout-list .dm-category-directory-thumb{width:38px;height:38px;border-radius:9px}
.dm-cat-layout-list .dm-category-directory-copy{flex:1}
.dm-cat-layout-list .dm-category-directory-link{
  display:flex!important;
  gap:10px;
  align-items:center;
}
@media(max-width:1024px){
  .dm-categories-directory.dm-cat-layout-grid > .dm-category-directory-list{
    grid-template-columns:repeat(var(--dm-cat-cols-tablet,2),minmax(0,1fr));
  }
}
@media(max-width:640px){
  .dm-categories-directory.dm-cat-layout-grid > .dm-category-directory-list{
    grid-template-columns:repeat(var(--dm-cat-cols-mobile,1),minmax(0,1fr));
  }
}

/* Product table options */


body.dm-table-hide-info .dm-v3-head > :nth-child(2),
body.dm-table-hide-info .dm-v3-row > .dm-v3-info{
  display:none!important;
}
body.dm-table-hide-info .dm-v3-head,
body.dm-table-hide-info .dm-v3-row{
  grid-template-columns:minmax(260px,2.1fr) minmax(110px,.8fr) minmax(125px,.9fr) minmax(90px,.55fr)!important;
}
.dm-v3-row.dm-low-stock-row{
  background:#fffbeb!important;
  box-shadow:inset 3px 0 0 var(--dm-warning);
}
.dm-v3-row.dm-low-stock-row .dm-v3-stock{
  color:#b45309!important;
}
.dm-v3-low-stock-label{
  display:block;
  margin-top:2px;
  color:#b45309;
  font-size:10px;
  font-weight:800;
}
@media(max-width:900px){
  body.dm-table-hide-info .dm-v3-row{
    grid-template-columns:1fr auto!important;
  }
  body.dm-table-sticky-head .dm-v3-head{position:static}
}

/* Content Block per-device visibility */
@media(min-width:1025px){
  .dm-content-device-no-desktop{display:none!important}
}
@media(min-width:641px) and (max-width:1024px){
  .dm-content-device-no-tablet{display:none!important}
}
@media(max-width:640px){
  .dm-content-device-no-mobile{display:none!important}
}
.dmv-device-options{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin:8px 0 12px;
}
.dmv-device-options label{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:7px 10px;
  background:#f8fafc;
  border:1px solid #e5e7eb;
  border-radius:8px;
}

/* V6.3.2 header brand fix + compact hero */
.dm-site-header .dm-brand{display:flex;align-items:center;flex:0 0 auto;min-width:0;max-width:var(--dm-header-logo-width,180px)}
.dm-site-header .dm-brand>a{display:flex;align-items:center;max-width:100%;overflow:hidden;text-decoration:none}
.dm-site-header .dm-brand .custom-logo-link{width:100%}
.dm-site-header .dm-brand .custom-logo{display:block;max-width:100%!important}
.dm-site-header .dm-brand>a:not(.custom-logo-link){max-width:180px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:18px;line-height:1.1;font-weight:900;color:var(--dm-navy)}
.dm-site-header .site-description{display:none!important}
@media(min-width:1025px){.dm-site-header .dm-header-inner{min-height:66px;gap:16px}.dm-site-header .dm-nav{min-width:0}.dm-site-header .dm-menu{gap:20px}}
.dm-hero{min-height:0!important;padding:48px 0 42px!important}
.dm-hero-inner{max-width:820px;margin:0 auto}
.dm-hero-inner h1{margin-top:18px!important;margin-bottom:10px!important;line-height:1.03!important}
.dm-hero-inner>p{margin-top:0!important;margin-bottom:22px!important}
.dm-hero-search{margin-top:0!important;margin-bottom:16px!important}
.dm-hero-benefits{margin-top:12px!important}
@media(max-width:1024px){.dm-hero{padding:38px 0 34px!important}}
@media(max-width:640px){.dm-hero{padding:28px 0 26px!important}.dm-hero-inner h1{margin-top:14px!important}.dm-hero-inner>p{margin-bottom:18px!important}}

/* V6.3.3: do not reserve brand width if no custom logo */
.dm-hb-logo:empty{display:none!important}


/* =========================================================
   V6.3.4 - CATEGORIES AS NORMAL MENU ITEM
   ========================================================= */
.dm-hb-categories{
  display:flex;
  align-items:center;
}

.dm-hb-categories .dm-wc-catnav-btn,
.dm-hb-categories .dm-category-menu-link{
  display:inline-flex!important;
  align-items:center;
  gap:7px;
  min-height:auto!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  color:var(--dm-navy)!important;
  font-weight:800!important;
  white-space:nowrap;
  text-decoration:none!important;
}

.dm-hb-categories .dm-wc-catnav-btn:hover,
.dm-hb-categories .dm-category-menu-link:hover{
  background:transparent!important;
  color:var(--dm-primary)!important;
  border-color:transparent!important;
}

.dm-hb-categories .dm-category-menu-icon{
  font-size:14px;
  line-height:1;
  opacity:.9;
}

@media(min-width:1025px){
  .dm-site-header .dm-menu{
    display:flex;
    align-items:center;
  }
}


.dm-menu .menu-item-dm-categories > a{
  display:inline-flex;
  align-items:center;
  gap:6px;
  color:var(--dm-navy);
  font-weight:800;
}
.dm-menu .menu-item-dm-categories > a:hover{
  color:var(--dm-primary);
}
.dm-menu .menu-item-dm-categories .dm-category-menu-icon{
  font-size:14px;
  line-height:1;
}


/* =========================================================
   V6.3.5 - PRODUCT TABLE HEADER OVERLAP FIX
   ========================================================= */

/* Keep the table header in its normal document position.
   Sticky is enabled only after JS detects that the table has actually
   reached the viewport/header boundary. This prevents the first product
   row being covered on initial page load. */
.dm-v3-head{
  position:relative;
  top:auto;
  z-index:2;
}

@media(min-width:901px){
  body.dm-table-sticky-head.dm-table-sticky-active .dm-v3-head{
    position:sticky;
    top:var(--dm-safe-sticky-top,0px);
    z-index:40;
    box-shadow:0 5px 16px rgba(15,23,42,.10);
  }
}

/* Product rows always remain below the header in normal flow. */
.dm-v3-list{
  position:relative;
}
.dm-v3-head + #dmv3-product-rows{
  position:relative;
  z-index:1;
}

/* A little extra protection for very long product names / stock text. */
.dm-v3-row > *,
.dm-v3-head > *{
  min-width:0;
}
.dm-v3-product,
.dm-v3-info{
  overflow:hidden;
}
.dm-v3-name{
  overflow-wrap:anywhere;
}
.dm-v3-stock{
  white-space:normal;
}


/* =========================================================
   V6.3.6 - MOBILE HEADER + WORKING SEARCH
   ========================================================= */

/* Desktop search panel */
.dm-search-panel{
  display:none;
  position:absolute;
  top:calc(100% + 10px);
  right:0;
  width:min(420px,calc(100vw - 24px));
  background:#fff;
  border:1px solid var(--dm-line);
  border-radius:12px;
  padding:10px;
  box-shadow:var(--dm-shadow);
  z-index:1200;
}
.dm-search-panel.is-open{display:block}
.dm-search-form{
  display:flex;
  align-items:center;
  gap:8px;
}
.dm-search-form input[type="search"]{
  flex:1;
  min-width:0;
  height:42px;
  border:1px solid var(--dm-line);
  border-radius:9px;
  padding:0 12px;
  outline:none;
}
.dm-search-form input[type="search"]:focus{
  border-color:#93c5fd;
  box-shadow:0 0 0 3px rgba(37,99,235,.08);
}
.dm-search-form button{
  height:42px;
  padding:0 16px;
  border:0;
  border-radius:9px;
  background:var(--dm-primary);
  color:#fff;
  font-weight:800;
  cursor:pointer;
}
.dm-hb-search{position:relative}

/* Mobile header layout */
.dm-mobile-menu-panel{
  display:none;
}
@media(max-width:900px){
  .dm-site-header .dm-header-inner{
    min-height:60px;
    gap:10px;
  }

  /* On mobile, desktop nav is hidden; use drawer instead */
  .dm-hb-menu{
    display:none!important;
  }

  .dm-header-actions{
    margin-left:auto;
    display:flex;
    align-items:center;
    gap:7px;
  }

  .dm-mobile-toggle{
    display:inline-flex!important;
    align-items:center;
    justify-content:center;
    width:42px;
    height:42px;
    border:1px solid var(--dm-line);
    border-radius:10px;
    background:#fff;
    color:var(--dm-navy);
    font-size:20px;
    cursor:pointer;
    order:-1;
  }

  .dm-hb-account .dm-account-text span:last-child,
  .dm-hb-cart .dm-cart-meta > span:first-child,
  .dm-hb-cart .dm-cart-subtotal{
    display:none;
  }

  .dm-hb-account .dm-account-text,
  .dm-hb-search .dm-icon-btn,
  .dm-hb-cart .dm-header-cart{
    min-width:42px;
    width:42px;
    height:42px;
    padding:0!important;
    justify-content:center;
  }

  .dm-hb-cart .dm-cart-meta{
    display:block;
    position:absolute;
  }

  .dm-hb-cart{position:relative}
  .dm-hb-cart .dm-cart-count{
    position:absolute;
    right:-5px;
    top:-5px;
    min-width:19px;
    height:19px;
    padding:0 5px;
    font-size:10px;
    line-height:19px;
    border-radius:999px;
  }

  /* Full-width search under header */
  .dm-search-panel{
    position:fixed;
    top:68px;
    left:12px;
    right:12px;
    width:auto;
    z-index:1500;
  }

  /* Mobile drawer */
  .dm-mobile-menu-panel{
    display:block;
    position:fixed;
    inset:0;
    background:rgba(15,23,42,.42);
    opacity:0;
    visibility:hidden;
    transition:.2s ease;
    z-index:1400;
  }
  .dm-mobile-menu-panel.is-open{
    opacity:1;
    visibility:visible;
  }
  .dm-mobile-menu-drawer{
    width:min(86vw,340px);
    height:100%;
    background:#fff;
    padding:18px;
    transform:translateX(-100%);
    transition:.22s ease;
    box-shadow:20px 0 50px rgba(15,23,42,.18);
    overflow-y:auto;
  }
  .dm-mobile-menu-panel.is-open .dm-mobile-menu-drawer{
    transform:translateX(0);
  }
  .dm-mobile-menu-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding-bottom:14px;
    margin-bottom:10px;
    border-bottom:1px solid var(--dm-line);
  }
  .dm-mobile-menu-head strong{
    color:var(--dm-navy);
    font-size:16px;
  }
  .dm-mobile-menu-close{
    width:38px;
    height:38px;
    border:1px solid var(--dm-line);
    border-radius:9px;
    background:#fff;
    cursor:pointer;
    font-size:20px;
  }
  .dm-mobile-menu-drawer .dm-mobile-primary-menu{
    list-style:none;
    margin:0;
    padding:0;
  }
  .dm-mobile-menu-drawer .dm-mobile-primary-menu li{
    margin:0;
    border-bottom:1px solid #eef2f7;
  }
  .dm-mobile-menu-drawer .dm-mobile-primary-menu a{
    display:block;
    padding:13px 4px;
    color:var(--dm-navy);
    font-weight:800;
    text-decoration:none;
  }
  .dm-mobile-menu-drawer .dm-mobile-primary-menu a:hover{
    color:var(--dm-primary);
  }
}

@media(min-width:901px){
  .dm-mobile-toggle{display:none!important}
}


/* =========================================================
   V6.3.7 - HOME + CATEGORIES + BIGGER SEARCH ICON
   ========================================================= */

/* Categories stays as a normal menu item next to Home */
.dm-menu .menu-item-dm-categories > a{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-weight:800;
}

/* Make search icon much easier to notice */
.dm-hb-search .dm-icon-btn.js-v5-search-open{
  width:48px!important;
  min-width:48px!important;
  height:48px!important;
  border-radius:12px!important;
  font-size:24px!important;
  font-weight:900!important;
  line-height:1!important;
  color:var(--dm-navy)!important;
  background:#fff!important;
  border:1px solid var(--dm-line)!important;
  box-shadow:0 3px 10px rgba(15,23,42,.05);
}

.dm-hb-search .dm-icon-btn.js-v5-search-open:hover{
  color:var(--dm-primary)!important;
  background:#eff6ff!important;
  border-color:#bfdbfe!important;
  transform:translateY(-1px);
}

@media(max-width:900px){
  .dm-hb-search .dm-icon-btn.js-v5-search-open{
    width:44px!important;
    min-width:44px!important;
    height:44px!important;
    font-size:22px!important;
  }
}


/* =========================================================
   V6.3.8 - THEME HEADER LOGO MANAGER
   ========================================================= */
.dm-theme-header-logo-link{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  text-decoration:none!important;
  line-height:0;
  flex:0 0 auto;
}

.dm-theme-header-logo{
  display:block;
  width:var(--dm-header-logo-width,180px);
  max-width:100%;
  height:auto;
  object-fit:contain;
}

@media(max-width:1024px){
  .dm-theme-header-logo{
    width:var(--dm-header-logo-width-tablet,160px);
  }
}
@media(max-width:640px){
  .dm-theme-header-logo{
    width:var(--dm-header-logo-width-mobile,132px);
  }
}

/* Admin logo preview */
.dmv-header-logo-preview{
  display:flex;
  align-items:center;
  justify-content:center;
  width:260px;
  min-height:100px;
  padding:12px;
  border:1px solid #dcdcde;
  border-radius:10px;
  background:#fff;
  margin:10px 0;
}
.dmv-header-logo-preview img{
  max-width:230px;
  max-height:90px;
  width:auto;
  height:auto;
  object-fit:contain;
}
.dmv-header-logo-preview.is-empty:before{
  content:"No logo selected";
  color:#8c8f94;
  font-size:13px;
}
.dmv-header-logo-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
}


/* =========================================================
   V6.3.9 - RELIABLE LOGO + SMALLER RESPONSIVE SIZE
   ========================================================= */
.dm-site-header .dm-hb-logo-fixed{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  flex:0 0 auto;
  min-width:0;
}

.dm-site-header .dm-theme-header-logo-link{
  display:flex!important;
  align-items:center;
  line-height:0;
  max-width:100%;
}

.dm-site-header .dm-theme-header-logo{
  width:var(--dm-header-logo-width,120px)!important;
  max-width:120px;
  max-height:48px;
  height:auto!important;
  object-fit:contain;
}

@media(max-width:1024px){
  .dm-site-header .dm-theme-header-logo{
    width:var(--dm-header-logo-width-tablet,100px)!important;
    max-width:100px;
    max-height:42px;
  }
}

@media(max-width:640px){
  .dm-site-header .dm-theme-header-logo{
    width:var(--dm-header-logo-width-mobile,86px)!important;
    max-width:86px;
    max-height:38px;
  }
}

/* If the administrator chooses a larger custom width, allow the CSS variable
   to control it while keeping sensible header height. */
.dm-site-header .dm-hb-logo-fixed{
  --dm-logo-max-desktop:240px;
}


/* =========================================================
   V6.3.10 - REMOVE DUPLICATE STANDALONE CATEGORIES
   ========================================================= */
.dm-hb-categories{
  display:none!important;
}
