/* TimashPlus shared store shell, v6. Load after styles.css and storefront-dynamic.css. */
:root{--tp-ink:#222c37;--tp-muted:#72808e;--tp-line:#e9edf2;--tp-primary:#ed6c2c;--tp-glow:#fff2e8;--tp-cream:#fff9f4}
html{max-width:100%;overflow-x:clip}
body{max-width:100%;overflow-x:clip}
*,*:before,*:after{box-sizing:border-box}
[hidden]{display:none!important}
#form1{min-width:0}
/* Desktop user identity: prevent a long name from pushing the basket off-screen. */
.site-header .header-inner{display:flex;flex-wrap:nowrap;align-items:center;gap:clamp(9px,1.5vw,24px);min-width:0;max-width:100%}
.site-header .brand{min-width:0;flex:0 0 auto}
.site-header .desktop-nav{display:flex;align-items:center;justify-content:center;gap:clamp(7px,1.3vw,22px);flex:1 1 auto;min-width:0}
.site-header .desktop-nav .nav-link{flex:0 0 auto;white-space:nowrap}
.site-header .header-actions{display:flex;flex:0 1 auto;align-items:center;justify-content:flex-end;gap:8px;min-width:0;max-width:100%;flex-wrap:nowrap}
.site-header .location-chip{flex:0 0 auto}
.site-header .header-actions .cart-trigger,.site-header .header-actions .mobile-menu-trigger{flex:0 0 auto}
.site-header .header-actions .cart-trigger{position:relative}
.site-header .header-actions .cart-count{white-space:nowrap}
.tp-account-link.account-chip{display:inline-flex;align-items:center;gap:7px;max-width:clamp(135px,16vw,236px);min-width:0;min-height:41px;overflow:hidden;border-radius:14px;padding:5px 9px;text-decoration:none;white-space:normal;flex:0 1 auto;color:#265c46;background:#eaf9f0;border:1px solid #cfeadc;transition:background .18s,border-color .18s}
.tp-account-link:hover{background:#dbf4e8;border-color:#a3dac1;color:#1f583e}
.tp-account-avatar{flex:0 0 29px;height:29px;width:29px;display:flex;align-items:center;justify-content:center;color:#168260;background:#c8eadc;border-radius:10px;font-size:14px}
.tp-account-text{display:flex;flex-direction:column;min-width:0;gap:0;flex:1 1 auto;text-align:right;line-height:1.3}
.tp-account-text small{font-size:10px;font-weight:600;color:#668779}
.tp-account-text strong{font-weight:800;font-size:12px;max-width:100%;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block}
.tp-account-link .tp-admin-role{flex:0 0 auto;font-size:10px;padding:3px 6px}
.site-header .logout-link{flex:0 0 auto;white-space:nowrap;padding:10px 12px}
/* A compact mobile header is intentionally single-row. */
@media(max-width:1180px){.site-header .location-chip{display:none}}
@media(max-width:1020px){.site-header .desktop-nav{display:none}.site-header .mobile-menu-trigger{display:inline-flex!important}.site-header .header-inner{justify-content:space-between}.site-header .header-actions{margin-inline-start:auto}}
@media(max-width:680px){.site-header .header-inner{display:flex;flex-wrap:nowrap;gap:7px;padding-top:10px;padding-bottom:10px}.site-header .brand{flex:0 1 auto;max-width:36%;min-width:0}.site-header .brand-copy{min-width:0}.site-header .brand-subtitle{display:none}.site-header .header-actions{flex:0 1 auto;min-width:0;gap:5px}.site-header .logout-link{display:none}.tp-account-link.account-chip{max-width:124px;min-height:36px;padding:4px 6px;gap:5px}.tp-account-avatar{width:22px;height:22px;flex-basis:22px;font-size:10px;border-radius:7px}.tp-account-text strong{font-size:10.5px}.tp-account-text small{font-size:9px}.tp-account-link .tp-admin-role{display:none}.site-header .circle-action{width:34px;height:34px;min-width:34px;min-height:34px}.site-header .account-link{padding:9px 10px;font-size:11px;white-space:nowrap}.site-header .brand-mark img{width:42px;height:auto}}
@media(max-width:395px){.site-header .brand{max-width:30%}.site-header .brand-title{font-size:clamp(15px,5vw,23px)}.site-header .brand-mark img{width:35px}.tp-account-link.account-chip{max-width:97px;padding:4px;gap:3px}.tp-account-avatar{display:none}.site-header .header-actions{gap:4px}.site-header .circle-action{width:30px;height:30px;min-width:30px;min-height:30px}.site-header .account-link{font-size:10px;padding:7px 8px}}
/* Drawer: layout doesn't rely on the original CSS implementation. */
.drawer-overlay{position:fixed!important;inset:0!important;z-index:20030!important;background:rgba(20,29,42,.58)!important;backdrop-filter:blur(3px);width:100vw!important;height:100dvh!important;opacity:1}
.cart-drawer{position:fixed!important;inset-block:0!important;inset-inline-start:0!important;inset-inline-end:auto!important;z-index:20031!important;width:min(100vw,450px)!important;max-width:100vw!important;height:100dvh!important;max-height:100dvh!important;display:flex!important;flex-direction:column!important;background:#fff!important;box-shadow:0 12px 65px rgba(16,28,41,.27)!important;overflow:hidden!important;border:0!important;border-radius:22px 0 0 22px!important;color:var(--tp-ink);direction:rtl}
.cart-drawer[hidden]{display:none!important}
.cart-drawer-head{display:flex!important;align-items:center!important;justify-content:space-between!important;flex:0 0 auto!important;gap:14px;padding:23px 23px 20px!important;margin:0!important;background:linear-gradient(130deg,#fff9f4,#fff 68%)!important;border-bottom:1px solid #f0e5db!important;min-height:98px}
.tp-drawer-title{display:flex;align-items:center;gap:12px;min-width:0}
.tp-drawer-icon{width:44px;height:44px;display:grid;place-items:center;flex:0 0 44px;color:#e46d2e;background:#ffe8d8;border-radius:15px;font-weight:900;font-size:21px}
.cart-drawer-head h2{font:900 20px/1.5 Vazirmatn,Tahoma,sans-serif!important;margin:0!important;color:#24313d!important}
.cart-drawer-head span:not(.tp-drawer-icon){display:block;font-size:12px;color:var(--tp-muted);margin-top:3px}
.cart-drawer .cart-close{height:38px;width:38px;display:grid;place-items:center;border-radius:12px;background:#fff;border:1px solid var(--tp-line);color:#4c5b66;flex:0 0 auto;cursor:pointer}
.cart-drawer .cart-close:hover{background:#fff0e8;color:#d55219}
.cart-drawer-body{display:flex!important;flex-direction:column!important;flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important;overscroll-behavior:contain!important;padding:16px 20px 24px!important;gap:0}
.dynamic-cart-items{display:grid;gap:10px;width:100%}
.dynamic-cart-item{background:#fff;align-items:center;gap:12px;border:1px solid #edf0f3;border-radius:17px;padding:11px;margin:0;box-shadow:0 3px 16px rgba(30,41,51,.035);min-width:0}
.dynamic-cart-item img{height:84px;width:84px;flex:0 0 84px;border-radius:13px;object-fit:cover;aspect-ratio:1/1;border:1px solid #f1ece8;background:#fff9f5}
.dynamic-cart-item-description{min-width:0;gap:5px;font-size:12px;line-height:1.7}
.dynamic-cart-item-description strong{line-height:1.6;font-size:13px;color:#27313a;overflow-wrap:anywhere}
.dynamic-cart-item-description span{color:#6e7c87}
.dynamic-cart-item-description span:nth-of-type(2){font-weight:900;color:#e16b31}
.cart-remove{align-self:flex-start;color:#b44c54!important;font-size:11px;border:1px solid #f0d8d9;border-radius:8px;padding:3px 10px;text-decoration:none!important}
.cart-remove:hover{background:#fff0f0}
.tp-cart-checkout-box{position:sticky;bottom:-24px;margin:20px -20px -24px;padding:16px 20px 22px;background:#fff;box-shadow:0 -7px 25px rgba(30,40,50,.07);border-top:1px solid #e9edf2;z-index:2}
.tp-cart-checkout-box .cart-grand-total{display:flex;justify-content:space-between;align-items:center;font-size:14px;gap:12px;margin:0 0 15px}
.tp-cart-checkout-box .cart-grand-total strong{font-size:17px;color:#e2662e;white-space:nowrap}
.tp-checkout-button{display:flex;align-items:center;justify-content:center;gap:14px;width:100%;padding:14px 15px;border:0;border-radius:13px;text-align:center;font:800 14px/1.5 Vazirmatn,Tahoma,sans-serif;text-decoration:none!important;background:linear-gradient(120deg,#f47d34,#e95920);color:#fff!important;box-shadow:0 8px 19px rgba(232,98,42,.24);transition:transform .16s,filter .16s}
.tp-checkout-button:hover{filter:brightness(.97);transform:translateY(-1px)}
.tp-checkout-button:focus-visible{outline:3px solid #ffc49a;outline-offset:3px}
.tp-cart-checkout-box .cart-checkout-notice{margin:10px 0 0;padding:8px 10px;text-align:center;font-size:10.5px;line-height:1.9;background:#fff9f1;border:1px solid #f5ebde;color:#896949}
.cart-drawer-body > h3,.cart-drawer-body .cart-empty-art + h3{font-size:16px}
.cart-drawer-body > p{font-size:13px;color:#7c8894}
body.tp-cart-is-open{overflow:hidden}
@media(max-width:480px){.cart-drawer{border-radius:0!important;width:100vw!important}.cart-drawer-head{padding:17px 17px 16px!important;min-height:84px}.cart-drawer-body{padding:14px 14px 20px!important}.tp-cart-checkout-box{margin:15px -14px -20px;padding:14px 14px 18px;bottom:-20px}.dynamic-cart-item img{width:70px;height:70px;flex-basis:70px}.tp-drawer-title .tp-drawer-icon{width:38px;height:38px;flex-basis:38px}.cart-drawer-head h2{font-size:18px!important}}
/* Shared internal pages follow the public storefront brand, but without a hero. */
.tp-inner-body{background:#fafbfc;color:#24303b;font-family:Vazirmatn,Tahoma,sans-serif}
.tp-inner-body .site-header{background:#fff}
.tp-inner-main{min-height:calc(100dvh - 390px);padding:36px 0 65px}
.tp-inner-main > .container{min-width:0;max-width:1180px;margin-inline:auto;padding-inline:clamp(15px,3vw,26px)}
.tp-inner-body .site-footer{margin-top:0}
.tp-inner-body .site-footer .footer-content{display:grid;grid-template-columns:minmax(0,1.7fr) repeat(3,minmax(0,1fr));gap:30px}
.tp-inner-body .site-footer .footer-col a{display:block;margin-bottom:12px;text-decoration:none}
.tp-inner-body .site-footer .footer-bottom{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}
.tp-internal-mobile-menu{position:fixed;inset-inline-start:0;inset-block-start:0;z-index:22000;min-height:100dvh;max-height:100dvh;overflow:auto;width:min(100vw,310px);background:#fff;box-shadow:0 14px 50px #18233738;padding:15px;display:flex;flex-direction:column;gap:4px}
.tp-internal-mobile-menu a,.tp-internal-mobile-menu .mobile-auth-button{display:block;padding:13px 15px;text-align:right;border-radius:11px;color:#344151;text-decoration:none;font-size:13px;font-weight:700}
.tp-internal-mobile-menu a:hover{background:#fff4eb;color:#c95420}
.tp-internal-mobile-menu .mobile-menu-top{display:flex;justify-content:space-between;align-items:center;padding:7px 10px 15px;font-weight:900}
.tp-internal-mobile-menu .tp-mobile-logout{color:#b73642!important}
.tp-inner-body .page-overlay{position:fixed;inset:0;background:#1c293c99;z-index:21999}
.tp-inner-body .site-footer .footer-brand{display:inline-flex;align-items:center;gap:9px}
.tp-inner-body .site-footer .footer-brand-col p{font-size:12px;line-height:2;color:#b6bec8}
.tp-inner-body .tp-inner-shortcut{display:inline-flex;align-items:center;gap:8px;color:#e36f30;border:1px solid #ffdbc5;border-radius:11px;background:#fff7ef;padding:10px 13px;font-size:12px;font-weight:700;text-decoration:none}
@media(max-width:920px){.tp-inner-body .site-footer .footer-content{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:540px){.tp-inner-main{padding:22px 0 40px}.tp-inner-body .site-footer .footer-content{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.tp-inner-body .site-footer .footer-col h3{font-size:14px}.tp-inner-body .site-footer .footer-contact-col{grid-column:span 2}}
/* Cart.aspx */
.tp-cart-page{width:100%;min-width:0}
.tp-cart-page-top{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:14px;margin-bottom:22px}
.tp-cart-kicker{color:#e96b2f;font-weight:800;font-size:12px}
.tp-cart-page h1{font-size:clamp(24px,3.3vw,34px);margin:5px 0;color:#22313e;font-weight:900}
.tp-cart-page-top p{color:#758290;font-size:13px;margin:0}
.tp-cart-layout{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(260px,.8fr);align-items:start;gap:20px;min-width:0}
.tp-cart-panel{border-radius:20px;background:#fff;border:1px solid #e9edf1;box-shadow:0 9px 28px rgba(28,40,53,.035);min-width:0;padding:20px}
.tp-cart-panel-title{font-size:17px;font-weight:900;margin:0 0 17px}
.tp-cart-row{display:flex;align-items:center;gap:16px;padding:16px 0;border-bottom:1px solid #eff1f4;min-width:0}
.tp-cart-row:last-child{border-bottom:0}
.tp-cart-row>img{width:106px;height:106px;flex:0 0 106px;aspect-ratio:1/1;object-fit:cover;border-radius:15px;border:1px solid #f0edf0;background:#fcf8f3}
.tp-cart-row-content{display:flex;flex-direction:column;gap:7px;min-width:0;flex:1}
.tp-cart-row-content strong{font-size:14px;line-height:1.6;overflow-wrap:anywhere}
.tp-cart-row-content small{color:#77828d}
.tp-cart-row-content .tp-cart-row-total{font-weight:900;color:#e56e34}
.tp-cart-remove{color:#ad4852!important;border:1px solid #f3dbdc;background:#fff6f6;border-radius:9px;text-decoration:none;padding:7px 12px;white-space:nowrap;font-size:12px;font-weight:700;align-self:center}
.tp-cart-summary{position:sticky;top:105px}
.tp-cart-summary-line{display:flex;justify-content:space-between;gap:14px;margin:16px 0;font-size:13px}
.tp-cart-summary-line strong{color:#e4692e;font-size:18px}
.tp-cart-hint{background:#fff8ec;border:1px solid #f5e7cd;color:#896642;border-radius:13px;padding:12px;font-size:12px;line-height:2}
.tp-cart-empty{text-align:center;padding:54px 24px;color:#718090}
.tp-cart-empty .tp-cart-empty-emoji{font-size:44px;display:block;margin-bottom:12px}
.tp-cart-empty h2{color:#263543;font-size:18px}
.tp-cart-message{padding:12px 16px;margin:0 0 20px;border-radius:11px;background:#fff5e9;color:#8f5728;font-size:13px}
@media(max-width:790px){.tp-cart-layout{grid-template-columns:minmax(0,1fr)}.tp-cart-summary{position:static}}
@media(max-width:480px){.tp-cart-panel{padding:14px}.tp-cart-row{align-items:flex-start;gap:10px;flex-wrap:wrap}.tp-cart-row>img{width:78px;height:78px;flex-basis:78px}.tp-cart-row-content strong{font-size:12px}.tp-cart-remove{margin-inline-start:auto}.tp-cart-page-top{align-items:flex-start}}
/* Defend drawer component against missing/overridden legacy declarations. */
.cart-drawer .dynamic-cart-item{display:flex!important;align-items:center!important;flex-wrap:nowrap!important}
.cart-drawer .dynamic-cart-item-description{display:flex!important;flex:1 1 auto!important;flex-direction:column!important;align-items:flex-start!important;white-space:normal!important}
.cart-drawer .dynamic-cart-item-description strong,.cart-drawer .dynamic-cart-item-description span{max-width:100%;white-space:normal!important;overflow-wrap:anywhere}
