/* Yaran Market custom storefront layer — intentionally scoped to YMC pages. */
body.ymc-shell-page{
    --ymc-brand:#ed2f23;
    --ymc-brand-dark:#bd2118;
    --ymc-ink:#121417;
    --ymc-copy:#3e4249;
    --ymc-subtle:#747982;
    --ymc-canvas:#f3f5f7;
    --ymc-surface:#fff;
    --ymc-stroke:#e7e9ed;
    --ymc-radius-sm:12px;
    --ymc-radius-md:18px;
    --ymc-radius-lg:26px;
    --ymc-shadow-sm:0 8px 24px rgba(18,20,23,.055);
    --ymc-shadow-md:0 18px 48px rgba(18,20,23,.085);
    margin:0!important;
    color:var(--ymc-copy)!important;
    background:
        radial-gradient(circle at 12% -8%,rgba(237,47,35,.07),transparent 28rem),
        var(--ymc-canvas)!important;
    font-family:"Vazirmatn","Vazir","IRANSansX",Tahoma,Arial,sans-serif!important;
    text-rendering:optimizeLegibility;
    -webkit-font-smoothing:antialiased;
}

/* The public store uses its own header/footer instead of theme chrome. */
body.ymc-custom-header-page #site-header,
body.ymc-custom-header-page #masthead,
body.ymc-custom-header-page .site-header:not(.ymc-app-header),
body.ymc-custom-header-page header.elementor-location-header,
body.ymc-custom-header-page .elementor-location-header,
body.ymc-shell-page #site-footer,
body.ymc-shell-page .site-footer:not(.ymc-site-footer),
body.ymc-shell-page footer.elementor-location-footer{display:none!important}

body.ymc-custom-header-page #page,
body.ymc-custom-header-page #content,
body.ymc-custom-header-page .site-content,
body.ymc-custom-header-page .site-main{
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    padding:0!important;
}
body.ymc-shell-page a{transition:color .18s ease,background-color .18s ease,border-color .18s ease,transform .18s ease,box-shadow .18s ease}
body.ymc-shell-page a:focus-visible,
body.ymc-shell-page button:focus-visible,
body.ymc-shell-page input:focus-visible,
body.ymc-shell-page select:focus-visible,
body.ymc-shell-page textarea:focus-visible{outline:3px solid rgba(237,47,35,.2)!important;outline-offset:2px!important}

body.ymc-shell-page .woocommerce-breadcrumb,
body.ymc-shell-page .woocommerce-products-header__title.page-title,
body.ymc-shell-page .widget-area{display:none!important}

/* Branded application header. */
body.ymc-shell-page .ymc-app-header{
    position:sticky!important;
    top:12px!important;
    z-index:900!important;
    min-height:76px!important;
    padding:12px 14px!important;
    border:1px solid rgba(255,255,255,.86)!important;
    border-radius:24px!important;
    background:rgba(255,255,255,.91)!important;
    box-shadow:0 18px 55px rgba(18,20,23,.10)!important;
    backdrop-filter:blur(22px) saturate(145%)!important;
    -webkit-backdrop-filter:blur(22px) saturate(145%)!important;
}
body.ymc-shell-page.admin-bar .ymc-app-header{top:44px!important}
body.ymc-shell-page .ymc-app-logo{
    width:48px!important;height:48px!important;border-radius:16px!important;
    background:#fff!important;border:1px solid var(--ymc-stroke)!important;
    box-shadow:var(--ymc-shadow-sm)!important;overflow:hidden!important;
}
body.ymc-shell-page .ymc-app-logo img{width:100%!important;height:100%!important;object-fit:contain!important;padding:4px!important}
body.ymc-shell-page .ymc-app-brand strong{font-size:15px!important;font-weight:950!important;color:var(--ymc-ink)!important}
body.ymc-shell-page .ymc-app-address{border:0!important;border-right:1px solid var(--ymc-stroke)!important;padding-right:15px!important}
body.ymc-shell-page .ymc-app-address small{color:#989ca4!important}
body.ymc-shell-page .ymc-app-address strong{color:#26292e!important;font-weight:850!important}
body.ymc-shell-page .ymc-app-search{border-radius:17px!important;background:#f2f4f6!important;border:1px solid transparent!important;transition:border-color .18s ease,box-shadow .18s ease}
body.ymc-shell-page .ymc-app-search:focus-within{border-color:rgba(237,47,35,.35)!important;box-shadow:0 0 0 4px rgba(237,47,35,.07)!important}
body.ymc-shell-page .ymc-app-search>input,
body.ymc-shell-page .ymc-app-search>button{border:0!important;background:transparent!important;box-shadow:none!important}
body.ymc-shell-page .ymc-app-search>input{border-radius:0 17px 17px 0!important}
body.ymc-shell-page .ymc-app-search>button{border-radius:17px 0 0 17px!important;background:var(--ymc-ink)!important;color:#fff!important}
body.ymc-shell-page .ymc-app-actions>a{
    height:46px!important;border-radius:14px!important;border:1px solid var(--ymc-stroke)!important;
    background:#fff!important;color:#292c31!important;font-weight:900!important;
}
body.ymc-shell-page .ymc-app-actions>a:hover{border-color:#d9dce1!important;box-shadow:var(--ymc-shadow-sm)!important;transform:translateY(-1px)!important}
body.ymc-shell-page .ymc-app-actions>.ymc-app-cart{border-color:var(--ymc-ink)!important;background:var(--ymc-ink)!important;color:#fff!important}
body.ymc-shell-page .ymc-app-cart i{background:var(--ymc-brand)!important}

/* Store sections and cards. */
body.ymc-shell-page .ymc-store-front-page,
body.ymc-shell-page .ymc-store-catalog-page,
body.ymc-shell-page .ymc-system-page,
body.ymc-shell-page .ymc-pdp-page,
body.ymc-shell-page .ymc-info-shell,
body.ymc-shell-page .ymc-checkout-clean-page{background:transparent!important}
body.ymc-shell-page .ymc-qc-home,
body.ymc-shell-page .ymc-store-home,
body.ymc-shell-page .ymc-store-catalog,
body.ymc-shell-page .ymc-system-container,
body.ymc-shell-page .ymc-pdp-container,
body.ymc-shell-page .ymc-info-shell-inner,
body.ymc-shell-page .ymc-checkout-clean-wrap{width:min(1320px,100%)!important}
body.ymc-shell-page .ymc-section-head{position:relative;padding-right:15px!important}
body.ymc-shell-page .ymc-section-head:before{content:"";position:absolute;right:0;top:5px;bottom:5px;width:4px;border-radius:99px;background:var(--ymc-brand)}
body.ymc-shell-page .ymc-section-head h2{color:var(--ymc-ink)!important;font-weight:950!important;letter-spacing:-.25px!important}
body.ymc-shell-page .ymc-section-head>a{border:1px solid var(--ymc-stroke)!important;background:#fff!important;color:#464a51!important;border-radius:999px!important}
body.ymc-shell-page .ymc-section-head>a:hover{border-color:var(--ymc-brand)!important;color:var(--ymc-brand)!important}

body.ymc-shell-page .ymc-store-product-card{
    border:1px solid var(--ymc-stroke)!important;border-radius:23px!important;background:var(--ymc-surface)!important;
    box-shadow:0 3px 0 rgba(18,20,23,.015)!important;isolation:isolate!important;
}
body.ymc-shell-page .ymc-store-product-card:before{content:"";position:absolute;inset:0 0 auto;height:3px;background:var(--ymc-brand);opacity:0;transition:opacity .18s ease}
body.ymc-shell-page .ymc-store-product-card:hover{border-color:#d9dce1!important;box-shadow:var(--ymc-shadow-md)!important;transform:translateY(-5px)!important}
body.ymc-shell-page .ymc-store-product-card:hover:before{opacity:1}
body.ymc-shell-page .ymc-store-product-image{border-radius:18px!important;background:linear-gradient(145deg,#fff,#f4f6f7)!important}
body.ymc-shell-page .ymc-store-product-name{color:#202328!important;font-weight:850!important}
body.ymc-shell-page .ymc-store-product-price{color:var(--ymc-ink)!important}
body.ymc-shell-page .ymc-quick-add{border:0!important;background:var(--ymc-brand)!important;color:#fff!important;box-shadow:0 10px 24px rgba(237,47,35,.24)!important}
body.ymc-shell-page .ymc-quick-add:hover{background:var(--ymc-brand-dark)!important;transform:scale(1.05)!important}
body.ymc-shell-page .ymc-select-options{background:var(--ymc-ink)!important}
body.ymc-shell-page .ymc-qc-banner-card{border-radius:24px!important;box-shadow:var(--ymc-shadow-sm)!important;background:#fff!important}
body.ymc-shell-page .ymc-qc-banner-card:hover{box-shadow:var(--ymc-shadow-md)!important;transform:translateY(-3px)!important}
body.ymc-shell-page .ymc-qc-hot-section{border-radius:30px!important;background:linear-gradient(135deg,#eb2e22,#ff5a33)!important;box-shadow:0 20px 50px rgba(237,47,35,.18)!important}
body.ymc-shell-page .ymc-qc-search-strip,
body.ymc-shell-page .ymc-qc-branch-card,
body.ymc-shell-page .ymc-info-page-card{border:1px solid rgba(255,255,255,.82)!important;border-radius:30px!important;box-shadow:var(--ymc-shadow-sm)!important}
body.ymc-shell-page .ymc-qc-category-row>a span{border:1px solid var(--ymc-stroke)!important;box-shadow:var(--ymc-shadow-sm)!important;transition:transform .18s ease,border-color .18s ease}
body.ymc-shell-page .ymc-qc-category-row>a:hover span{transform:translateY(-3px)!important;border-color:rgba(237,47,35,.35)!important}

/* Catalogue feels like a native product explorer. */
body.ymc-shell-page .ymc-filter-panel,
body.ymc-shell-page .ymc-catalog-summary{
    border:1px solid rgba(255,255,255,.85)!important;border-radius:22px!important;
    box-shadow:var(--ymc-shadow-sm)!important;background:rgba(255,255,255,.94)!important;
}
body.ymc-shell-page .ymc-filter-submit{background:var(--ymc-ink)!important;border-radius:13px!important}
body.ymc-shell-page .ymc-filter-submit:hover{background:var(--ymc-brand)!important}
body.ymc-shell-page .ymc-filter-prices input:focus,
body.ymc-shell-page .ymc-filter-sort select:focus{border-color:var(--ymc-brand)!important;background:#fff!important}

/* Product, account, cart and information pages share one visual language. */
body.ymc-shell-page .ymc-pdp-hero,
body.ymc-shell-page .ymc-pdp-description,
body.ymc-shell-page .ymc-pdp-specs,
body.ymc-shell-page .ymc-pdp-related,
body.ymc-shell-page .ymc-account-sidebar-v230,
body.ymc-shell-page .ymc-account-content-v230,
body.ymc-shell-page .ymc-cart-items-card-v240,
body.ymc-shell-page .ymc-cart-summary-v240{
    border:1px solid rgba(255,255,255,.88)!important;border-radius:var(--ymc-radius-lg)!important;
    background:#fff!important;box-shadow:var(--ymc-shadow-sm)!important;
}
body.ymc-shell-page .ymc-pdp-main-image{border:0!important;border-radius:22px!important;background:linear-gradient(145deg,#fff,#f1f3f5)!important}
body.ymc-shell-page .ymc-pdp-info h1,
body.ymc-shell-page .ymc-cart-page-head-v240 h1,
body.ymc-shell-page .ymc-info-page-card>header h1{color:var(--ymc-ink)!important;font-weight:950!important;letter-spacing:-.4px!important}
body.ymc-shell-page .ymc-pdp-buybox{border:1px solid #e9ebee!important;border-radius:20px!important;background:#f5f7f8!important}
body.ymc-shell-page .ymc-pdp-buybox .single_add_to_cart_button,
body.ymc-shell-page .ymc-pdp-mobile-bar button{background:var(--ymc-brand)!important;box-shadow:0 12px 28px rgba(237,47,35,.22)!important}
body.ymc-shell-page .ymc-account-menu li.is-active a{background:#fff0ee!important;color:var(--ymc-brand-dark)!important}
body.ymc-shell-page .ymc-account-menu li.is-active a:before{content:"";width:4px;height:22px;border-radius:99px;background:var(--ymc-brand);margin-left:2px}
body.ymc-shell-page .ymc-account-welcome{background:linear-gradient(130deg,#17191d,#2a2d32)!important;border:0!important;color:#fff!important;box-shadow:var(--ymc-shadow-md)!important}
body.ymc-shell-page .ymc-account-welcome h2,
body.ymc-shell-page .ymc-account-welcome p{color:#fff!important}
body.ymc-shell-page .ymc-account-welcome p{opacity:.7!important}
body.ymc-shell-page .ymc-account-metrics>a{border-color:var(--ymc-stroke)!important;border-radius:19px!important;box-shadow:none!important}
body.ymc-shell-page .ymc-account-metrics>a:hover{border-color:#d5d8dd!important;box-shadow:var(--ymc-shadow-sm)!important;transform:translateY(-2px)!important}
body.ymc-shell-page .ymc-account-shortcuts{grid-template-columns:repeat(4,minmax(0,1fr))!important}
body.ymc-shell-page .ymc-account-shortcuts>a{border:1px solid var(--ymc-stroke)!important;border-radius:20px!important;background:#fff!important;box-shadow:none!important}
body.ymc-shell-page .ymc-account-shortcuts>a:hover{border-color:#d5d8dd!important;box-shadow:var(--ymc-shadow-sm)!important;transform:translateY(-2px)!important}
body.ymc-shell-page .ymc-account-shortcuts>a>b{display:grid!important;place-items:center!important;background:#fff0ee!important;color:var(--ymc-brand)!important;border-radius:15px!important}
body.ymc-shell-page .ymc-account-shortcuts>a>b svg,
body.ymc-shell-page .ymc-stock-alert-icon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
body.ymc-shell-page .ymc-cart-page-head-v240{padding:24px 26px!important;border:0!important;border-radius:28px!important;background:linear-gradient(135deg,#17191d,#2c2f34)!important;box-shadow:var(--ymc-shadow-md)!important}
body.ymc-shell-page .ymc-cart-page-head-v240 span,
body.ymc-shell-page .ymc-cart-page-head-v240 h1,
body.ymc-shell-page .ymc-cart-page-head-v240 p{color:#fff!important}
body.ymc-shell-page .ymc-cart-page-head-v240 p{opacity:.68!important}
body.ymc-shell-page .ymc-cart-page-head-v240>a{background:#fff!important;color:var(--ymc-ink)!important;border:0!important}
body.ymc-shell-page .ymc-cart-empty-v240{border:1px solid rgba(255,255,255,.9)!important;border-radius:30px!important;box-shadow:var(--ymc-shadow-sm)!important}
body.ymc-shell-page .ymc-cart-empty-v240>div{width:72px;height:72px;margin:0 auto 16px;display:grid;place-items:center;border-radius:24px;background:#fff0ee;color:var(--ymc-brand)}
body.ymc-shell-page .ymc-cart-empty-v240>div svg{width:34px;height:34px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}

/* Checkout is a bespoke two-column flow on desktop. */
body.ymc-shell-page .ymc-checkout-clean-page{padding-top:26px!important}
body.ymc-shell-page .ymc-checkout-native{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(370px,440px)!important;gap:22px!important;align-items:start!important}
body.ymc-shell-page .ymc-checkout-clean-card{margin:0!important;border:1px solid rgba(255,255,255,.9)!important;border-radius:28px!important;box-shadow:var(--ymc-shadow-sm)!important}
body.ymc-shell-page .ymc-checkout-clean-card:nth-child(2){position:sticky!important;top:104px!important}
body.ymc-shell-page .ymc-checkout-clean-heading>span{background:var(--ymc-ink)!important;color:#fff!important;border-radius:13px!important}
body.ymc-shell-page .ymc-delivery-area-box{border-color:rgba(237,47,35,.18)!important;border-radius:20px!important;background:linear-gradient(135deg,#fff5f2,#fff)!important}
body.ymc-shell-page .ymc-delivery-area-actions button{background:var(--ymc-brand)!important}
body.ymc-shell-page.woocommerce-checkout input.input-text,
body.ymc-shell-page.woocommerce-checkout textarea,
body.ymc-shell-page.woocommerce-checkout select,
body.ymc-shell-page.woocommerce-checkout .select2-container .select2-selection--single{border-color:#e1e4e8!important;border-radius:14px!important;background:#f6f7f8!important}
body.ymc-shell-page.woocommerce-checkout input.input-text:focus,
body.ymc-shell-page.woocommerce-checkout textarea:focus,
body.ymc-shell-page.woocommerce-checkout select:focus{border-color:var(--ymc-brand)!important;background:#fff!important;box-shadow:0 0 0 4px rgba(237,47,35,.07)!important}
body.ymc-shell-page.woocommerce-checkout #payment{border:0!important;border-radius:20px!important;background:#f3f5f7!important}
body.ymc-shell-page.woocommerce-checkout #payment ul.payment_methods li{border-radius:15px!important}
body.ymc-shell-page.woocommerce-checkout #place_order{min-height:58px!important;border-radius:16px!important;background:var(--ymc-brand)!important;box-shadow:0 14px 30px rgba(237,47,35,.22)!important}

/* Native-looking notices instead of default WooCommerce bars. */
body.ymc-shell-page .woocommerce-message,
body.ymc-shell-page .woocommerce-info,
body.ymc-shell-page .woocommerce-error{
    border:1px solid var(--ymc-stroke)!important;border-radius:16px!important;background:#fff!important;
    color:#33373d!important;box-shadow:var(--ymc-shadow-sm)!important;padding:14px 18px!important;
}
body.ymc-shell-page .woocommerce-message{border-right:4px solid #159263!important}
body.ymc-shell-page .woocommerce-info{border-right:4px solid #3578d4!important}
body.ymc-shell-page .woocommerce-error{border-right:4px solid var(--ymc-brand)!important}
body.ymc-shell-page .woocommerce-message:before,
body.ymc-shell-page .woocommerce-info:before,
body.ymc-shell-page .woocommerce-error:before{display:none!important}

/* Footer reads as part of the product, not a theme widget area. */
body.ymc-shell-page .ymc-site-footer{position:relative!important;margin-top:54px!important;background:linear-gradient(145deg,#111316,#202328)!important;overflow:hidden!important}
body.ymc-shell-page .ymc-site-footer:before{content:"";position:absolute;inset:0 0 auto;height:4px;background:linear-gradient(90deg,var(--ymc-brand),#ff7548)}
body.ymc-shell-page .ymc-footer-col>b{color:#fff!important;font-size:13px!important}
body.ymc-shell-page .ymc-footer-col>a,
body.ymc-shell-page .ymc-footer-col>button{font-size:11px!important;line-height:1.9!important}
body.ymc-shell-page .ymc-footer-col>a:hover,
body.ymc-shell-page .ymc-footer-col>button:hover{color:#fff!important;transform:translateX(-3px)!important}

@media(max-width:1020px){
    body.ymc-shell-page .ymc-checkout-native{grid-template-columns:1fr!important}
    body.ymc-shell-page .ymc-checkout-clean-card:nth-child(2){position:static!important}
}

@media(max-width:900px){
    body.ymc-shell-page .ymc-app-header{top:8px!important;min-height:auto!important;border-radius:20px!important;padding:10px!important}
    body.ymc-shell-page.admin-bar .ymc-app-header{top:54px!important}
    body.ymc-shell-page .ymc-store-product-card:hover,
    body.ymc-shell-page .ymc-qc-banner-card:hover{transform:none!important}
    body.ymc-shell-page .ymc-mobile-nav.ymc-mobile-nav-v320{border:1px solid rgba(255,255,255,.9)!important;box-shadow:0 20px 55px rgba(18,20,23,.20)!important}
    body.ymc-shell-page .ymc-account-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}

@media(max-width:650px){
    body.ymc-shell-page{background:#f5f6f7!important}
    body.ymc-shell-page .ymc-cart-page-head-v240{padding:20px!important;border-radius:22px!important}
    body.ymc-shell-page .ymc-pdp-hero,
    body.ymc-shell-page .ymc-pdp-description,
    body.ymc-shell-page .ymc-pdp-specs,
    body.ymc-shell-page .ymc-pdp-related,
    body.ymc-shell-page .ymc-info-page-card,
    body.ymc-shell-page .ymc-checkout-clean-card{border-radius:21px!important}
    body.ymc-shell-page .ymc-qc-hot-section{border-radius:22px!important}
    body.ymc-shell-page .ymc-store-product-card{border-radius:19px!important}
    body.ymc-shell-page .ymc-app-logo{width:42px!important;height:42px!important;border-radius:14px!important}
    body.ymc-shell-page .ymc-account-shortcuts{grid-template-columns:1fr!important}
}

@media(prefers-reduced-motion:reduce){
    body.ymc-shell-page *,body.ymc-shell-page *:before,body.ymc-shell-page *:after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
}
