/* Minh Dung unified archive design v1.6 */
.md-archive-hero{background:linear-gradient(115deg,#ecf5ff,#f7faff 70%,#e6f1ff);padding:45px 0 52px;border-bottom:1px solid #dfeaf6}
.md-archive-crumb{display:flex;align-items:center;flex-wrap:wrap;gap:11px;font-size:12px;color:#71849b;margin:0 0 28px}
.md-archive-crumb a{color:#2468b0;text-decoration:none}
.md-archive-label{color:#256eb7;letter-spacing:.14em;font-size:11px;font-weight:850}
.md-archive-hero h1{font-size:clamp(31px,3.6vw,49px);font-weight:800;line-height:1.18;letter-spacing:-.035em;color:#103158;margin:13px 0}
.md-archive-intro{font-size:15px;color:#5f748d;line-height:1.8;max-width:730px;margin:0}.md-archive-intro p{margin:0}
.md-archive-section{padding:57px 0 78px;background:#f6f9fd}
.md-article-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.md-article-card{background:#fff;border:1px solid #e0eaf5;border-radius:16px;overflow:hidden;box-shadow:0 10px 28px #16385f09;display:flex;flex-direction:column;min-width:0;transition:transform .2s,box-shadow .2s}
.md-article-card:hover{transform:translateY(-3px);box-shadow:0 18px 40px #16385f14}
.md-article-cover{display:block;background:linear-gradient(140deg,#e5f0fe,#aeccec);aspect-ratio:16/10;overflow:hidden}
.md-article-cover img{display:block;width:100%;height:100%;object-fit:cover}
.md-article-placeholder{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#1e5ea9;font-size:55px;font-weight:900;letter-spacing:-.07em}
.md-article-placeholder small{font-size:10px;letter-spacing:.17em;font-weight:800}
.md-article-body{padding:25px 24px 27px;display:flex;flex:1;flex-direction:column}
.md-article-meta{display:flex;gap:9px;flex-wrap:wrap;font-size:12px;color:#70859d;margin-bottom:12px}
.md-article-card h2{font-size:20px;line-height:1.4;letter-spacing:-.018em;margin:0 0 13px}
.md-article-card h2 a{color:#183a60;text-decoration:none}
.md-article-card h2 a:hover{color:#1d66b4}
.md-article-body p{font-size:14px;color:#62768b;line-height:1.8;margin:0 0 22px}
.md-article-more{display:inline-block;color:#1d64aa;text-decoration:none;font-size:13px;font-weight:800;margin-top:auto}
.md-archive-pagination{margin:35px 0 0}
.md-archive-pagination .nav-links{display:flex;gap:8px;flex-wrap:wrap}
.md-archive-pagination .page-numbers{display:inline-grid;place-items:center;min-width:43px;min-height:43px;padding:7px 12px;background:#fff;border:1px solid #d9e6f2;border-radius:9px;color:#1e5f9e;text-decoration:none;font-weight:700}
.md-archive-pagination .current{background:#195aa9;color:#fff}
.md-archive-empty{padding:55px 25px;border:1px dashed #bed0e3;background:#fff;border-radius:15px;text-align:center}
.md-archive-empty h2{color:#17375b}
.md-catalog-shell{width:min(100% - 44px,1180px);margin:0 auto;padding:38px 0 75px;min-width:0}
.md-catalog-shell .woocommerce-breadcrumb{display:none}
.md-catalog-shell .woocommerce-products-header{display:none}
.md-catalog-shell .woocommerce-result-count{font-size:13px;color:#687e95;margin:0 0 24px}
.md-catalog-shell .woocommerce-ordering{margin:0 0 24px}
.md-catalog-shell .woocommerce-ordering select{border:1px solid #d4e2ef;background:#fff;border-radius:9px;min-height:43px;padding:7px 12px;color:#284c72;max-width:100%;font:inherit;font-size:13px}
.md-catalog-shell ul.products{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:21px;list-style:none;padding:0!important;margin:0!important;clear:both}
.md-catalog-shell ul.products::before,.md-catalog-shell ul.products::after{display:none!important}
.md-catalog-shell ul.products li.product{float:none!important;clear:none!important;width:auto!important;min-width:0;margin:0!important;padding:0 0 22px!important;background:#fff;border:1px solid #e1eaf4;border-radius:15px;overflow:hidden;box-shadow:0 8px 24px #152e500b;display:flex;flex-direction:column;position:relative}
.md-catalog-shell ul.products li.product a.woocommerce-LoopProduct-link{display:block;text-decoration:none}
.md-catalog-shell ul.products li.product img{display:block;width:100%;height:220px;object-fit:contain;background:#f9fbfe;margin:0 0 16px!important;padding:18px;border-bottom:1px solid #edf2f9}
.md-catalog-shell ul.products li.product .woocommerce-loop-product__title{font-size:16px!important;line-height:1.45;color:#183e66;padding:0 17px!important;margin:0 0 12px!important;min-height:47px;font-weight:750}
.md-catalog-shell ul.products li.product .star-rating{margin:0 17px 10px!important}
.md-catalog-shell ul.products li.product .price{font-size:17px!important;font-weight:800;color:#d35138!important;margin:0 17px 14px!important;line-height:1.5}
.md-catalog-shell ul.products li.product .price del{color:#899caf;font-size:12px}
.md-catalog-shell ul.products li.product .button{align-self:flex-start;margin:auto 17px 0!important;padding:11px 16px!important;border-radius:8px!important;border:1px solid #d0e1f3!important;background:#eaf3ff!important;color:#1d5fa6!important;font-size:13px!important;font-weight:750!important;text-decoration:none;white-space:normal;line-height:1.45}
.md-catalog-shell ul.products li.product .button:hover{background:#1c61ad!important;color:#fff!important}
.md-catalog-shell ul.products li.product .onsale{top:10px!important;right:10px!important;left:auto!important;background:#1f6ab3!important;padding:5px 9px!important;border-radius:7px!important;min-height:0!important;line-height:1.6!important}
.md-catalog-shell .woocommerce-pagination{margin:40px 0 0}
.md-catalog-shell .woocommerce-pagination ul{border:0!important;display:flex!important;flex-wrap:wrap;gap:8px}
.md-catalog-shell .woocommerce-pagination ul li{border:0!important}
.md-catalog-shell .woocommerce-pagination a,.md-catalog-shell .woocommerce-pagination span{min-width:43px;min-height:43px;display:grid!important;place-items:center;border:1px solid #d8e5f2!important;border-radius:9px!important;background:#fff!important;color:#1a5b9e!important;padding:8px 12px!important}
.md-catalog-shell .woocommerce-pagination span.current{background:#185baa!important;color:#fff!important}
.md-catalog-shell .term-description{color:#667b90;line-height:1.8}
@media(max-width:1080px){.md-catalog-shell ul.products{grid-template-columns:repeat(3,minmax(0,1fr))}.md-article-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:770px){.md-archive-hero{padding:32px 0 38px}.md-archive-crumb{margin-bottom:21px}.md-archive-section{padding:35px 0 60px}.md-catalog-shell{width:calc(100% - 32px);padding:28px 0 55px}.md-catalog-shell ul.products{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.md-catalog-shell ul.products li.product img{height:170px;padding:10px}.md-catalog-shell ul.products li.product .woocommerce-loop-product__title{font-size:14px!important;padding:0 12px!important}.md-catalog-shell ul.products li.product .price{font-size:15px!important;margin:0 12px 12px!important}.md-catalog-shell ul.products li.product .button{margin:auto 12px 0!important}.md-article-grid{gap:15px}.md-article-body{padding:18px}}
@media(max-width:480px){.md-article-grid{grid-template-columns:1fr}.md-catalog-shell ul.products li.product img{height:145px}.md-catalog-shell ul.products li.product .woocommerce-loop-product__title{font-size:13px!important;min-height:60px}.md-catalog-shell ul.products li.product .button{font-size:12px!important;padding:10px!important}.md-catalog-shell .woocommerce-result-count,.md-catalog-shell .woocommerce-ordering{float:none!important;display:block}.md-catalog-shell .woocommerce-ordering select{width:100%}}

/* v1.8.1 - compact product-category hero: leave products above the fold */
.md-shop-hero{padding:18px 0 20px;background:#f3f7fd}
.md-shop-hero .md-archive-crumb{margin:0 0 9px;gap:8px;font-size:12px;line-height:1.5}
.md-shop-hero .md-archive-label{display:none}
.md-shop-hero h1{font-size:clamp(23px,2.4vw,32px);line-height:1.26;margin:0 0 6px;letter-spacing:-.025em}
.md-shop-hero .md-archive-intro{font-size:13px;line-height:1.65;max-width:790px;margin:0;color:#61768f}
.md-catalog-shell{padding-top:22px}
@media(max-width:770px){
 .md-shop-hero{padding:13px 0 15px}
 .md-shop-hero .md-archive-crumb{margin-bottom:7px;font-size:11px}
 .md-shop-hero h1{font-size:clamp(21px,5.5vw,26px);margin-bottom:4px}
 .md-shop-hero .md-archive-intro{font-size:12px;line-height:1.55}
 .md-catalog-shell{padding-top:17px}
}

/* v1.8.2 - compact catalog content, no duplicated WooCommerce archive title */
.md-catalog-shell{padding-top:16px;padding-bottom:52px}
.md-catalog-shell .woocommerce-products-header,
.md-catalog-shell .woocommerce-products-header__title,
.md-catalog-shell h1.page-title{display:none!important}
.md-catalog-shell .md-catalog-toolbar{
 display:flex;align-items:center;justify-content:space-between;gap:12px;
 flex-wrap:wrap;margin:0 0 17px;padding:0;min-height:42px
}
.md-catalog-shell .md-catalog-toolbar .woocommerce-result-count{
 float:none!important;margin:0!important;line-height:1.5;font-size:13px;color:#657a93
}
.md-catalog-shell .md-catalog-toolbar .woocommerce-ordering{
 float:none!important;margin:0!important
}
.md-catalog-shell .md-catalog-toolbar .woocommerce-ordering select{
 min-height:40px;padding:7px 34px 7px 12px
}
.md-catalog-shell ul.products{row-gap:17px;column-gap:18px}
.md-catalog-shell ul.products li.product{box-shadow:0 5px 18px #152e5008}
.md-catalog-shell ul.products li.product img{height:190px;margin-bottom:11px!important}
.md-catalog-shell ul.products li.product .woocommerce-loop-product__title{margin-bottom:8px!important}
@media(max-width:770px){
 .md-catalog-shell{padding-top:12px;padding-bottom:40px}
 .md-catalog-shell .md-catalog-toolbar{gap:8px;margin-bottom:12px}
 .md-catalog-shell ul.products{gap:12px}
 .md-catalog-shell ul.products li.product img{height:154px}
}
@media(max-width:480px){
 .md-catalog-shell .md-catalog-toolbar{display:grid;grid-template-columns:minmax(0,1fr);align-items:stretch}
 .md-catalog-shell .md-catalog-toolbar .woocommerce-ordering select{width:100%}
 .md-catalog-shell ul.products li.product img{height:140px}
}
