/*
Theme Name: Askimart Marketplace
Theme URI: https://askima.shop/
Author: Askimart
Description: Responsive WooCommerce storefront for everyday shopping in Sri Lanka.
Version: 2.0.0
Text Domain: askimart-marketplace
*/
:root{
 --am-red:#ed2939;--am-red-dark:#cb1e2d;--am-ink:#202127;
 --am-muted:#747780;--am-line:#eceef2;--am-soft:#f6f7f9;
 --am-gold:#c89b3c;--am-radius:12px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:20px}
body{margin:0;background:#fff;color:var(--am-ink);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;font-size:14px;line-height:1.5}
img{max-width:100%;height:auto}
a{color:inherit;text-decoration:none}
button,input{font:inherit}
button{cursor:pointer}
.am-container{width:min(1240px,calc(100% - 36px));margin-inline:auto}
.am-topbar{background:#202127;color:#fff;font-size:11px}
.am-topbar-inner{min-height:33px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.am-topbar strong{color:#ffd88d}
.am-header{background:#fff;border-bottom:1px solid var(--am-line);position:relative;z-index:100}
.am-header-main{display:grid;grid-template-columns:205px minmax(200px,1fr) auto;align-items:center;gap:24px;padding-top:13px;padding-bottom:13px}
.am-brand{display:flex;align-items:center;min-width:0;max-width:205px;overflow:hidden}
.am-brand .custom-logo-link{display:inline-flex;align-items:center;max-width:100%;max-height:61px}
.am-brand img.custom-logo{display:block!important;width:auto!important;height:auto!important;max-width:190px!important;max-height:58px!important;object-fit:contain;object-position:left center}
.am-brand-text{font-size:26px;font-weight:900;letter-spacing:-1.2px;line-height:1.05}
.am-brand-text span{color:var(--am-red)}
.am-brand-tagline{display:block;font-size:9px;letter-spacing:.5px;font-weight:600;color:#92949a;margin-top:4px}
.am-search{display:flex;align-items:stretch;width:100%;min-width:0;max-width:none;border:1px solid #e1e3e8;border-radius:9px;overflow:hidden;background:#fff;transition:border-color .2s,box-shadow .2s}
.am-search:focus-within{border-color:var(--am-red);box-shadow:0 0 0 3px rgba(237,41,57,.08)}
.am-search input[type=search]{width:100%;min-width:0;height:45px;padding:0 15px;border:0;outline:0;background:transparent;font-size:13px}
.am-search button{flex:0 0 48px;border:0;background:var(--am-red);color:#fff;font-size:22px;line-height:1;transition:background .2s}
.am-search button:hover{background:var(--am-red-dark)}
.am-header-actions{display:flex;align-items:center;justify-content:flex-end;gap:15px;white-space:nowrap}
.am-header-action{position:relative;display:flex;align-items:center;gap:6px;font-size:11px;font-weight:700;color:#42444b}
.am-header-action .am-action-icon{font-size:20px;line-height:1;color:var(--am-ink)}
.am-header-action:hover{color:var(--am-red)}
.am-cart-count{display:inline-grid;place-items:center;min-width:17px;height:17px;padding:0 4px;background:var(--am-red);color:#fff;border-radius:20px;font-size:10px}
.am-nav-wrap{border-top:1px solid #f0f0f0;background:#fff}
.am-nav{display:flex;align-items:center;gap:20px;min-height:53px}
.am-nav-links{display:flex;align-items:center;gap:24px;min-width:0}
.am-nav-links a{font-size:12px;font-weight:750;white-space:nowrap;transition:color .2s}
.am-nav-links a:hover{color:var(--am-red)}
.am-category-menu{position:relative;flex:0 0 auto;z-index:110}
.am-category-toggle{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:40px;padding:0 16px;border:0;border-radius:7px;background:var(--am-red);color:#fff;font-size:12px;font-weight:800;white-space:nowrap}
.am-category-toggle:hover,.am-category-toggle[aria-expanded=true]{background:var(--am-red-dark)}
.am-category-dropdown[hidden]{display:none!important}
.am-category-dropdown{position:absolute;top:calc(100% + 8px);left:0;width:270px;max-width:calc(100vw - 30px);max-height:min(65vh,500px);overflow:auto;padding:8px;background:#fff;border:1px solid var(--am-line);border-radius:11px;box-shadow:0 14px 40px rgba(20,24,34,.17);z-index:9999}
.am-category-dropdown>a,.am-dropdown-parent{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 12px;border-radius:7px;color:#30313a;font-size:12px;line-height:1.35}
.am-category-dropdown>a:hover,.am-dropdown-parent:hover{background:#fff0f1;color:var(--am-red)}
.am-dropdown-name{display:flex;align-items:center;gap:9px;min-width:0}
.am-dropdown-icon{width:26px;height:26px;display:grid;place-items:center;flex:0 0 26px;background:#f5f5f6;border-radius:7px;font-size:15px}
.am-dropdown-arrow{color:#a0a0a0}
.am-hero{position:relative;isolation:isolate;overflow:hidden;border-radius:15px;height:clamp(320px,35vw,445px);margin:20px auto 18px;background:#f4eadc}
.am-hero-slide{position:absolute;inset:0;opacity:0;visibility:hidden;transition:opacity .8s ease,visibility .8s}
.am-hero-slide.is-active{opacity:1;visibility:visible}
.am-hero-slide img{width:100%;height:100%;object-fit:cover;object-position:center}
.am-hero:after{content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(90deg,rgba(255,247,238,.98) 0%,rgba(255,247,238,.92) 36%,rgba(255,247,238,.3) 68%,rgba(255,247,238,.05) 100%);pointer-events:none}
.am-hero-copy{position:relative;z-index:2;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;width:56%;height:100%;padding:45px clamp(24px,4.5vw,65px);animation:amFadeUp .7s ease both}
.am-eyebrow{color:var(--am-red);text-transform:uppercase;letter-spacing:2px;font-size:11px;font-weight:900}
.am-hero h1{max-width:600px;margin:13px 0 14px;font-size:clamp(34px,4.5vw,58px);line-height:1.04;letter-spacing:-2px;font-weight:900}
.am-hero h1 span{color:var(--am-red)}
.am-hero-copy p{max-width:390px;margin:0;color:#5c5b5b;font-size:14px;line-height:1.75}
.am-button{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:43px;margin-top:20px;padding:0 21px;border:0;border-radius:7px;background:var(--am-red);color:#fff!important;font-size:12px;font-weight:850;transition:transform .2s,background .2s,box-shadow .2s}
.am-button:hover{transform:translateY(-2px);background:var(--am-red-dark);box-shadow:0 7px 18px rgba(237,41,57,.2)}
.am-hero-controls{position:absolute;z-index:4;bottom:17px;left:clamp(24px,4.5vw,65px);display:flex;align-items:center;gap:7px}
.am-hero-dot{width:8px;height:8px;padding:0;border:0;border-radius:50%;background:rgba(32,33,39,.32);transition:width .2s,background .2s}
.am-hero-dot.is-active{width:24px;border-radius:10px;background:var(--am-red)}
.am-benefits{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:20px auto 35px;padding:19px 18px;border:1px solid var(--am-line);border-radius:11px}
.am-benefit{display:flex;align-items:center;gap:11px;min-width:0}
.am-benefit-icon{display:grid;place-items:center;flex:0 0 39px;width:39px;height:39px;border-radius:10px;background:#fff0f1;color:var(--am-red);font-size:20px}
.am-benefit strong{display:block;font-size:12px;line-height:1.35}
.am-benefit small{display:block;margin-top:3px;color:var(--am-muted);font-size:10px;line-height:1.4}
.am-section{margin:37px auto}
.am-section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:17px}
.am-section-title{margin:0;font-size:clamp(21px,2.5vw,27px);font-weight:900;letter-spacing:-.65px;line-height:1.2}
.am-section-subtitle{margin:6px 0 0;color:var(--am-muted);font-size:12px}
.am-view-all{flex:0 0 auto;color:var(--am-red);font-size:12px;font-weight:850}
.am-view-all:hover{text-decoration:underline}
.am-category-track{display:grid;grid-auto-columns:minmax(92px,1fr);grid-auto-flow:column;gap:13px;overflow-x:auto;padding:4px 2px 13px;scroll-snap-type:x mandatory;scrollbar-width:thin;scrollbar-color:#d8d8dc transparent}
.am-category-card{min-width:0;text-align:center;scroll-snap-align:start}
.am-category-image{display:grid;place-items:center;width:min(100%,106px);aspect-ratio:1/1;margin:0 auto 10px;overflow:hidden;border:1px solid #f0f0f0;border-radius:50%;background:#f7f7f8;transition:transform .25s,box-shadow .25s}
.am-category-card:hover .am-category-image{transform:translateY(-4px);box-shadow:0 9px 19px rgba(0,0,0,.08)}
.am-category-image img{display:block;width:100%;height:100%;object-fit:cover}
.am-category-icon{font-size:31px}
.am-category-card strong{display:block;font-size:11px;font-weight:750;line-height:1.4;overflow-wrap:anywhere}
.am-products{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:15px}
.am-product-card{position:relative;display:flex;flex-direction:column;min-width:0;overflow:hidden;border:1px solid #ededf0;border-radius:10px;background:#fff;transition:transform .23s,box-shadow .23s,border-color .23s}
.am-product-card:hover{transform:translateY(-4px);border-color:#e5e5e8;box-shadow:0 11px 26px rgba(25,30,45,.09)}
.am-product-image{position:relative;display:flex;align-items:center;justify-content:center;width:100%;aspect-ratio:1/1;overflow:hidden;background:#f8f8f8}
.am-product-image img{display:block!important;width:100%!important;height:100%!important;max-width:100%;max-height:100%;object-fit:contain!important;object-position:center;transition:transform .35s}
.am-product-card:hover .am-product-image img{transform:scale(1.035)}
.am-product-badge{position:absolute;top:9px;left:9px;padding:5px 7px;border-radius:5px;background:var(--am-red);color:#fff;font-size:9px;font-weight:900;letter-spacing:.3px}
.am-product-body{display:flex;flex:1;flex-direction:column;min-width:0;padding:11px}
.am-product-category{display:block;color:#8b8d93;font-size:10px;margin-bottom:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.am-product-title{display:-webkit-box;min-height:35px;margin:0;overflow:hidden;color:#292a31;font-size:12px;font-weight:750;line-height:1.45;overflow-wrap:anywhere;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.am-product-rating{min-height:17px;margin-top:5px;color:#e7a42b;font-size:11px;letter-spacing:.3px}
.am-product-rating small{color:#888;letter-spacing:0}
.am-product-price{margin-top:7px;color:var(--am-red);font-size:13px;font-weight:900;line-height:1.5}
.am-product-price del{margin-right:5px;color:#9a9ba2;font-size:10px;font-weight:500}
.am-product-price ins{text-decoration:none}
.am-product-action{display:flex;align-items:center;justify-content:center;min-height:34px;margin-top:10px;padding:7px 6px;border:1px solid #e7e7e9;border-radius:6px;color:#33343a;font-size:10px;font-weight:850;text-align:center;transition:all .2s}
.am-product-action:hover{border-color:var(--am-red);background:var(--am-red);color:#fff}
.am-promo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.am-promo{position:relative;display:flex;align-items:center;min-height:205px;overflow:hidden;border-radius:12px;background:#faeee4}
.am-promo:nth-child(2){background:#eaf2e9}
.am-promo-copy{position:relative;z-index:2;width:64%;padding:24px}
.am-promo h3{margin:9px 0;font-size:clamp(21px,2.6vw,31px);font-weight:900;line-height:1.12;letter-spacing:-.7px}
.am-promo p{margin:0;color:#666;font-size:12px;line-height:1.6}
.am-promo img{position:absolute;right:0;bottom:0;width:45%;height:100%;object-fit:cover;mix-blend-mode:multiply}
.am-newsletter{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:25px;border-radius:12px;background:#fff1f1}
.am-newsletter h2{margin:0;font-size:21px;line-height:1.25}
.am-newsletter p{margin:6px 0 0;color:#6e6e73;font-size:12px}
.am-footer{margin-top:42px;padding:37px 0 17px;background:#202127;color:#fff}
.am-footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:28px}
.am-footer h3{margin:0 0 10px;font-size:13px}
.am-footer p,.am-footer a{color:#c9c9cd;font-size:11px;line-height:1.9}
.am-footer a:hover{color:#fff}
.am-footer-bottom{margin-top:24px;padding-top:15px;border-top:1px solid #3a3b41;color:#bbb;font-size:10px}
.am-content{min-height:35vh;padding-top:30px;padding-bottom:40px}
.am-page-title{margin:0 0 22px;font-size:29px;font-weight:900}
.am-empty{grid-column:1/-1;padding:22px;border:1px dashed #dedee2;border-radius:9px;color:#777;font-size:13px}
.woocommerce ul.products,.woocommerce-page ul.products{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:16px!important;margin:0!important;padding:0!important;list-style:none}
.woocommerce ul.products li.product,.woocommerce-page ul.products li.product{float:none!important;width:auto!important;min-width:0;margin:0!important;padding:12px!important;border:1px solid #ededf0;border-radius:10px}
.woocommerce ul.products li.product a img{display:block;width:100%;aspect-ratio:1/1;object-fit:contain;background:#f8f8f8;margin:0 0 10px}
.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:13px;line-height:1.45}
.woocommerce ul.products li.product .price{color:var(--am-red);font-size:13px;font-weight:850}
.woocommerce ul.products li.product .button{background:var(--am-red);color:#fff;border-radius:6px;font-size:11px}
.woocommerce div.product div.images img{height:auto;object-fit:contain}
.woocommerce div.product .product_title{font-size:clamp(24px,4vw,38px);line-height:1.2}
@keyframes amFadeUp{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:translateY(0)}}
@keyframes amSoftPulse{0%,100%{box-shadow:0 0 0 0 rgba(237,41,57,0)}50%{box-shadow:0 0 0 5px rgba(237,41,57,.06)}}
@media(min-width:601px){
 .am-category-dropdown{width:285px}
}
@media(max-width:1050px){
 .am-header-main{grid-template-columns:175px minmax(150px,1fr) auto;gap:14px}
 .am-brand img.custom-logo{max-width:165px!important;max-height:52px!important}
 .am-header-actions{gap:10px}
 .am-nav-links{gap:17px}
 .am-products{grid-template-columns:repeat(4,minmax(0,1fr))}
 .am-benefits{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:700px){
 .am-container{width:calc(100% - 24px)}
 .am-topbar{display:none}
 .am-header-main{grid-template-columns:minmax(0,1fr) auto;gap:10px;padding-top:10px;padding-bottom:11px}
 .am-brand{max-width:175px}
 .am-brand .custom-logo-link{max-height:47px}
 .am-brand img.custom-logo{max-width:165px!important;max-height:45px!important}
 .am-brand-text{font-size:23px}
 .am-brand-tagline{font-size:8px}
 .am-header-actions{gap:9px}
 .am-header-action{display:flex;flex-direction:column;justify-content:center;gap:3px;font-size:9px}
 .am-header-action .am-action-icon{font-size:18px}
 .am-search{grid-column:1/-1;grid-row:2}
 .am-search input[type=search]{height:42px;padding:0 11px;font-size:12px}
 .am-search button{flex-basis:43px}
 .am-nav{min-height:46px;gap:7px}
 .am-nav-links{gap:16px;overflow:visible}
 .am-nav-scroll{display:flex;align-items:center;gap:15px;min-width:0;overflow-x:auto;white-space:nowrap;scrollbar-width:none}
 .am-nav-scroll::-webkit-scrollbar{display:none}
 .am-nav-links a{font-size:11px}
 .am-category-toggle{min-height:36px;padding:0 10px;font-size:10px}
 .am-category-dropdown{top:calc(100% + 7px);width:min(270px,calc(100vw - 26px));max-height:58vh}
 .am-hero{height:345px;margin-top:13px;border-radius:11px}
 .am-hero:after{background:linear-gradient(90deg,rgba(255,247,238,.98),rgba(255,247,238,.9) 54%,rgba(255,247,238,.34))}
 .am-hero-copy{width:88%;padding:25px 20px}
 .am-hero h1{font-size:clamp(30px,8vw,40px);letter-spacing:-1.15px;line-height:1.08}
 .am-hero-copy p{max-width:285px;font-size:12px}
 .am-button{min-height:40px;padding:0 16px;margin-top:16px}
 .am-hero-controls{bottom:14px;left:20px}
 .am-benefits{gap:14px 9px;margin:15px auto 28px;padding:15px 10px}
 .am-benefit{gap:8px}
 .am-benefit-icon{flex-basis:32px;width:32px;height:32px;font-size:17px}
 .am-benefit strong{font-size:10px}
 .am-benefit small{font-size:9px}
 .am-section{margin:27px auto}
 .am-section-head{margin-bottom:13px}
 .am-section-title{font-size:21px}
 .am-section-subtitle{font-size:11px}
 .am-category-track{grid-auto-columns:82px;gap:10px}
 .am-category-image{width:69px}
 .am-category-icon{font-size:25px}
 .am-category-card strong{font-size:10px}
 .am-products{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
 .am-product-body{padding:9px}
 .am-product-category{font-size:9px}
 .am-product-title{font-size:11px;min-height:32px}
 .am-product-rating{font-size:10px}
 .am-product-price{font-size:12px}
 .am-product-action{min-height:32px;font-size:10px}
 .am-promo-grid{grid-template-columns:1fr;gap:12px}
 .am-promo{min-height:168px}
 .am-promo-copy{width:67%;padding:19px}
 .am-promo h3{font-size:23px}
 .am-promo p{font-size:11px}
 .am-newsletter{align-items:flex-start;flex-direction:column;padding:20px}
 .am-footer-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
 .am-footer-grid>div:first-child{grid-column:1/-1}
 .woocommerce ul.products,.woocommerce-page ul.products{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
 .woocommerce ul.products li.product,.woocommerce-page ul.products li.product{padding:8px!important}
}
@media(max-width:360px){
 .am-brand img.custom-logo{max-width:135px!important}
 .am-header-actions{gap:6px}
 .am-hero-copy{width:94%;padding:20px 16px}
 .am-hero h1{font-size:29px}
 .am-benefits{grid-template-columns:1fr 1fr}
 .am-products{gap:8px}
 .am-product-body{padding:8px}
}
@media(prefers-reduced-motion:reduce){
 *,*:before,*:after{scroll-behavior:auto!important;animation:none!important;transition:none!important}
}
