/* Aftabgardoon v2.3.0 – editable category pages and unified product cards. */
.aftab-category-page-container,.aftab-category-page-container>.e-con-inner{width:100%!important;max-width:none!important;padding:0!important}
.aftab-category-landing-widget{background:#fff;direction:rtl}
.a-category-landing{padding:42px 0 70px;background:linear-gradient(180deg,#fff 0,#fff9fb 100%)}
.a-category-heading{margin-bottom:26px;text-align:right}
.a-category-heading h1{margin:0;color:#54233a;font-size:clamp(27px,3vw,43px);font-weight:900}
.a-category-heading p{margin:9px 0 0;color:#8a6678;font-size:14px;line-height:2}
.a-category-card-grid{display:grid;grid-template-columns:repeat(var(--a-card-count),minmax(120px,1fr));gap:13px;overflow-x:auto;padding:5px 3px 22px;scrollbar-color:#f3abc0 transparent}
.a-category-card{position:relative;display:block;min-width:132px;color:#54233a!important;text-align:center;transition:.25s}
.a-category-card img,.a-category-card-placeholder{display:block;width:100%;aspect-ratio:1/1;border:1px solid #f4bfd0;border-radius:20px;background:#fff4f7;object-fit:cover;box-shadow:0 10px 25px rgba(173,66,101,.12)}
.a-category-card-placeholder{display:grid;place-items:center;color:#ee5576;font-size:34px}
.a-category-card b{display:block;margin-top:10px;font-size:12px;line-height:1.7}
.a-category-card:hover{transform:translateY(-5px)}
.a-category-card:hover img{border-color:#ee5576;box-shadow:0 15px 32px rgba(213,72,108,.2)}
.a-category-main{display:grid;grid-template-columns:285px minmax(0,1fr);gap:26px;align-items:start;margin-top:20px;direction:rtl}
.a-category-main.no-sidebar{grid-template-columns:1fr}
.a-brand-sidebar{position:sticky;top:175px;border:1px solid #f09ab4;border-radius:22px;background:#fff;padding:13px;box-shadow:0 15px 38px rgba(205,69,109,.1);overflow:hidden}
.a-brand-toggle{width:100%;display:flex;align-items:center;justify-content:space-between;padding:13px 10px 17px;border:0!important;border-bottom:1px solid #f5ceda!important;background:transparent!important;color:#54233a!important;font-family:inherit;font-weight:900;font-size:15px;box-shadow:none!important;text-align:right}
.a-brand-toggle i{font-size:12px;color:#ee5576;transition:.2s}
.a-brand-list{display:grid;gap:7px;padding-top:11px;max-height:690px;overflow:auto;scrollbar-width:thin;scrollbar-color:#f1a1b9 transparent}
.a-brand-list a{display:block;padding:10px 13px;border:1px solid #f5d6df;border-radius:12px;background:#fff;color:#5a3347!important;font-size:12px;line-height:1.5;transition:.2s}
.a-brand-list a.is-pink{background:#fff0f4;border-color:#f8c3d2}
.a-brand-list a:hover{background:#ee5576;color:#fff!important;border-color:#ee5576;transform:translateX(-2px)}
.a-category-products{min-width:0}
.a-category-products-head{display:flex;align-items:center;justify-content:space-between;margin:0 0 17px}
.a-category-products-head h2{margin:0;color:#54233a;font-size:24px;font-weight:900}
.a-category-products .woocommerce-result-count,.a-category-products .woocommerce-ordering{display:none!important}
.a-category-products ul.products,.a-category-products .products{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:18px!important;margin:0!important}
.a-category-products .a-products-manual{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;overflow:visible;padding:0}
.a-category-products .a-products-manual .a-product{width:auto!important;min-width:0!important;flex:auto!important}

/* Equal boxed product cards on every WooCommerce archive, shop and search page. */
body.woocommerce ul.products,body.woocommerce-page ul.products,body.search-results .products{align-items:stretch}
body.woocommerce ul.products li.product,body.woocommerce-page ul.products li.product,body .product-grid-item,body .wd-product{
 box-sizing:border-box!important;height:100%!important;margin-bottom:18px!important;padding:14px!important;border:1px solid #eadde2!important;border-radius:22px!important;background:#fff!important;box-shadow:0 10px 26px rgba(95,43,66,.1)!important;overflow:visible!important;transition:transform .22s,box-shadow .22s!important
}
body.woocommerce ul.products li.product:hover,body .product-grid-item:hover,body .wd-product:hover{transform:translateY(-4px);box-shadow:0 17px 36px rgba(213,72,108,.17)!important}
body.woocommerce ul.products li.product>a,body .product-grid-item>.product-element-top,body .wd-product>.product-wrapper{height:100%}
body.woocommerce ul.products li.product img,body .product-grid-item img,body .wd-product img{width:100%!important;height:245px!important;object-fit:contain!important;border-radius:15px!important;background:#fff!important}
body.woocommerce ul.products li.product .woocommerce-loop-product__title,body .product-grid-item .wd-entities-title,body .wd-product .wd-entities-title{min-height:54px!important;margin:11px 0 7px!important;font-size:13px!important;line-height:1.75!important;color:#523246!important;text-align:center!important}
body.woocommerce ul.products li.product .price,body .product-grid-item .price,body .wd-product .price{display:flex!important;min-height:34px!important;align-items:center;justify-content:center;flex-wrap:wrap;gap:4px;color:#e84570!important;font-weight:900!important;text-align:center!important}
body.woocommerce ul.products li.product .button,body .product-grid-item .add-to-cart-loop,body .wd-product .add-to-cart-loop{border-radius:12px!important;background:#fff0f4!important;color:#e84570!important;text-align:center!important}
body.woocommerce ul.products li.product .onsale,body .product-grid-item .product-labels,body .wd-product .product-labels{top:12px!important;right:12px!important;bottom:auto!important;left:auto!important;z-index:12!important;transform:none!important}

/* Search results: Woodmart uses a different inner structure here. Lock the grid,
   image frame and content columns so every result has exactly the same footprint. */
html body.search-results .site-content .products,
html body.search-results .main-page-wrapper .products,
html body.search-results .wd-products{
 display:grid!important;
 grid-template-columns:repeat(4,minmax(0,1fr))!important;
 align-items:stretch!important;
 gap:20px!important;
 width:100%!important;
 margin:0!important;
}
html body.search-results .products>.product,
html body.search-results .products>.product-grid-item,
html body.search-results .wd-products>.wd-product{
 display:flex!important;
 flex-direction:column!important;
 width:auto!important;
 min-width:0!important;
 max-width:none!important;
 height:100%!important;
 min-height:430px!important;
 margin:0!important;
 padding:14px!important;
 float:none!important;
 border:1px solid #eadde2!important;
 outline:0!important;
 border-radius:22px!important;
 background:#fff!important;
 box-shadow:0 10px 26px rgba(95,43,66,.11)!important;
 overflow:hidden!important;
}
html body.search-results .product-grid-item .product-wrapper,
html body.search-results .wd-product .product-wrapper,
html body.search-results ul.products li.product>a.woocommerce-LoopProduct-link{
 display:flex!important;
 flex:1 1 auto!important;
 flex-direction:column!important;
 width:100%!important;
 height:100%!important;
 min-height:0!important;
}
html body.search-results .product-grid-item .product-element-top,
html body.search-results .wd-product .product-element-top,
html body.search-results ul.products li.product .woocommerce-loop-product__link>img{
 flex:0 0 250px!important;
 width:100%!important;
 height:250px!important;
 min-height:250px!important;
 max-height:250px!important;
 margin:0 0 12px!important;
 border-radius:15px!important;
 background:#fff!important;
 overflow:hidden!important;
}
html body.search-results .product-element-top .product-image-link{
 display:flex!important;
 align-items:center!important;
 justify-content:center!important;
 width:100%!important;
 height:100%!important;
}
html body.search-results .product-element-top img,
html body.search-results .product-image-link img{
 display:block!important;
 width:100%!important;
 height:100%!important;
 min-height:0!important;
 max-height:100%!important;
 margin:0!important;
 object-fit:contain!important;
 object-position:center!important;
}
html body.search-results .product-grid-item .product-element-bottom,
html body.search-results .product-grid-item .product-information,
html body.search-results .wd-product .product-element-bottom,
html body.search-results .wd-product .product-information{
 display:flex!important;
 flex:1 1 auto!important;
 flex-direction:column!important;
 width:100%!important;
 min-height:0!important;
 text-align:center!important;
}
html body.search-results .product-grid-item .wd-entities-title,
html body.search-results .wd-product .wd-entities-title,
html body.search-results ul.products li.product .woocommerce-loop-product__title{
 display:-webkit-box!important;
 min-height:58px!important;
 max-height:58px!important;
 margin:4px 0 9px!important;
 overflow:hidden!important;
 -webkit-box-orient:vertical!important;
 -webkit-line-clamp:2!important;
 line-height:1.75!important;
 text-align:center!important;
}
html body.search-results .product-grid-item .wrap-price,
html body.search-results .wd-product .wrap-price,
html body.search-results ul.products li.product .price{
 margin-top:auto!important;
 min-height:38px!important;
}
html body.search-results .product-grid-item .product-labels,
html body.search-results .wd-product .product-labels,
html body.search-results ul.products li.product .onsale{
 top:10px!important;
 right:10px!important;
 bottom:auto!important;
 left:auto!important;
 z-index:20!important;
}

/* Editable WordPress menu with submenus. */
.aftab-root .a-menu li{position:relative}
.aftab-root .a-menu .sub-menu{position:absolute;z-index:30;top:100%;right:0;display:none;min-width:220px;margin:0;padding:9px;list-style:none;border:1px solid #f7d3dd;border-radius:15px;background:#fff;box-shadow:0 14px 35px rgba(83,35,58,.16)}
.aftab-root .a-menu li:hover>.sub-menu,.aftab-root .a-menu li:focus-within>.sub-menu{display:block}
.aftab-root .a-menu .sub-menu a{display:block;white-space:nowrap;padding:10px 12px}
.aftab-root .a-menu .sub-menu .sub-menu{top:0;right:100%}

@media(max-width:1200px){
 .a-category-card-grid{grid-template-columns:repeat(var(--a-card-count),145px)}
 .a-category-products ul.products,.a-category-products .products,.a-category-products .a-products-manual{grid-template-columns:repeat(3,minmax(0,1fr))!important}
 body.woocommerce ul.products li.product img,body .product-grid-item img,body .wd-product img{height:220px!important}
 html body.search-results .site-content .products,html body.search-results .main-page-wrapper .products,html body.search-results .wd-products{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media(max-width:1000px){
 .aftab-global-header .a-menu-toggle{display:block!important}
 .aftab-global-header .a-nav.a-open{display:block!important;height:auto!important;padding:10px 0!important}
 .aftab-global-header .a-nav.a-open .a-nav-inner,.aftab-global-header .a-nav.a-open .a-menu{display:flex!important;align-items:stretch!important}
 .aftab-global-header .a-nav.a-open .a-menu{width:100%}
 .aftab-root .a-menu .sub-menu{position:static!important;display:block!important;margin:4px 12px 4px 0!important;padding:4px!important;box-shadow:none!important;background:#fff7f9!important}
 .aftab-global-header .a-nav.a-open .a-cat-button{display:block;text-align:center}
 .a-category-main{grid-template-columns:230px minmax(0,1fr);gap:18px}
 .a-brand-sidebar{top:120px}
 .a-category-products ul.products,.a-category-products .products,.a-category-products .a-products-manual{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 html body.search-results .site-content .products,html body.search-results .main-page-wrapper .products,html body.search-results .wd-products{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important}
}
@media(max-width:767px){
 .a-category-landing{padding:25px 0 45px}
 .a-category-heading{margin-bottom:16px}
 .a-category-heading h1{font-size:27px}
 .a-category-heading p{font-size:12px}
 .a-category-card-grid{grid-template-columns:repeat(var(--a-card-count),112px);gap:10px;margin-left:-16px;margin-right:-16px;padding:4px 16px 18px}
 .a-category-card{min-width:112px}
 .a-category-card img,.a-category-card-placeholder{border-radius:16px}
 .a-category-card b{font-size:10px;margin-top:7px}
 .a-category-main{display:flex;flex-direction:column;gap:18px;margin-top:10px}
 .a-brand-sidebar{position:static;width:100%;padding:9px;border-radius:17px}
 .a-brand-list{display:none;max-height:380px}
 .a-brand-sidebar.is-open .a-brand-list{display:grid}
 .a-brand-sidebar.is-open .a-brand-toggle i{transform:rotate(180deg)}
 .a-category-products{width:100%}
 .a-category-products-head h2{font-size:20px}
 .a-category-products ul.products,.a-category-products .products,.a-category-products .a-products-manual{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
 body.woocommerce ul.products li.product,body.woocommerce-page ul.products li.product,body .product-grid-item,body .wd-product{padding:9px!important;border-radius:16px!important;margin-bottom:10px!important}
 body.woocommerce ul.products li.product img,body .product-grid-item img,body .wd-product img{height:155px!important;border-radius:11px!important}
 body.woocommerce ul.products li.product .woocommerce-loop-product__title,body .product-grid-item .wd-entities-title,body .wd-product .wd-entities-title{min-height:58px!important;font-size:11px!important;line-height:1.7!important}
 body.woocommerce ul.products li.product .price,body .product-grid-item .price,body .wd-product .price{font-size:11px!important;min-height:38px!important}
 body.woocommerce ul.products li.product .onsale,body .product-grid-item .product-labels,body .wd-product .product-labels{top:7px!important;right:7px!important}
 html body.search-results .products>.product,html body.search-results .products>.product-grid-item,html body.search-results .wd-products>.wd-product{min-height:325px!important;padding:9px!important;border-radius:16px!important}
 html body.search-results .product-grid-item .product-element-top,html body.search-results .wd-product .product-element-top,html body.search-results ul.products li.product .woocommerce-loop-product__link>img{flex-basis:155px!important;height:155px!important;min-height:155px!important;max-height:155px!important;margin-bottom:8px!important}
 html body.search-results .product-grid-item .wd-entities-title,html body.search-results .wd-product .wd-entities-title,html body.search-results ul.products li.product .woocommerce-loop-product__title{min-height:58px!important;max-height:58px!important;font-size:11px!important}
}
@media(max-width:380px){body.woocommerce ul.products li.product img,body .product-grid-item img,body .wd-product img{height:132px!important}}
