@font-face{font-family:Vazirmatn;src:url('../fonts/Vazirmatn/static/Vazirmatn-Regular.woff2') format('woff2');font-weight:400;font-style:normal;font-display:optional}
@font-face{font-family:Vazirmatn;src:url('../fonts/Vazirmatn/static/Vazirmatn-Bold.woff2') format('woff2');font-weight:700;font-style:normal;font-display:optional}
*,*::before,*::after{box-sizing:border-box}
html{scrollbar-gutter:stable;scroll-behavior:auto}
body{margin:0;min-width:0;font-family:Vazirmatn,sans-serif;font-size:16px}
body[data-auth-open],body[data-product-open]{overflow:hidden}
img,video,canvas{max-width:100%}
button,input,select,textarea{font-family:inherit}
input:not([type=hidden]):not([type=checkbox]):not([type=radio]),textarea,select{font-size:16px!important;color:#fff}
button,a,input,select,textarea{touch-action:manipulation}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid #e2c363;outline-offset:3px}
#trend-line-svg{width:100%;overflow:hidden;pointer-events:none}
#site-footer,#site-footer *{min-width:0;overflow-wrap:anywhere}
#site-footer{width:100%}
#portfolio-notice{width:calc(100% - 32px);max-width:1240px}
#shop,#cart,#checkout,#account,#receipt,#terms,#calculator,#product-detail{max-width:1280px;width:calc(100% - 32px);padding:24px 16px;margin-inline:auto;min-width:0}
main p,main dd{overflow-wrap:anywhere}
#special-offers [data-role="home-offer-track"],#new-arrivals [data-role=slider]{scroll-snap-type:x proximity;overscroll-behavior-x:contain}
#special-offers article,#new-arrivals article{scroll-snap-align:start}
#special-offers article p,#special-offers article small,#new-arrivals article p,#new-arrivals article small{font-size:13px!important;line-height:1.8}
#auth-overlay{width:100%;height:100%;height:100dvh;padding:16px;overflow-y:auto;overscroll-behavior:contain;align-items:center}
#auth-overlay>[data-role=auth-box]{height:auto;min-height:0;max-height:100%;max-width:440px;transform:none!important;perspective:none}
#auth-overlay [data-role=flip-container]{height:auto;transform:none!important;transition:none}
#auth-overlay [data-role=login-face],#auth-overlay [data-role=signup-face]{position:relative;height:auto;min-height:0;padding:52px 24px 24px;border-radius:24px;transform:none;backface-visibility:visible;overflow:auto;max-height:calc(100dvh - 32px)}
#auth-overlay [data-role=signup-face]{display:none}
#auth-overlay [data-flipped=true] [data-role=login-face]{display:none}
#auth-overlay [data-flipped=true] [data-role=signup-face]{display:flex}
#auth-overlay button[data-role=close-auth]{top:8px;right:10px;width:44px;height:44px;font-size:22px;z-index:5}
#auth-overlay header{margin-bottom:18px}
#auth-overlay [data-layout=switch-prompt]{margin-top:18px;flex-wrap:wrap}
#prz-product-modal{max-height:calc(100dvh - 24px)}
[data-ui~=prz-modal-picture]{min-height:330px;position:relative}
[data-ui~=prz-gallery-thumbs]{min-height:75px}
#product-detail figure>img{height:420px}
#contact-details{line-height:2}
#contact-details a{color:#e2c363}
@media(max-width:650px){
#shop,#cart,#checkout,#account,#receipt,#terms,#calculator,#product-detail{width:calc(100% - 24px);padding:16px 8px}
#site-header{max-width:100%;min-width:0}
#site-header>:is(div,section[data-container]){min-width:0}
#auth-overlay{padding:12px}
#auth-overlay [data-role=login-face],#auth-overlay [data-role=signup-face]{padding:50px 20px 24px;max-height:calc(100dvh - 24px)}
[data-ui~=prz-modal-picture]{min-height:220px}
#product-detail figure>img{height:280px}
#purchase-filter input,#purchase-filter select{min-height:44px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

#catalog-shell article p,#catalog-shell article small{font-size:13px!important;line-height:1.8}
#purchase-filter{display:flex;flex-wrap:wrap;gap:14px}
#purchase-filter>label:not([data-role=available]){flex:1 1 140px;min-width:0}
#purchase-filter>label[data-role=available]{display:flex;align-items:center;gap:8px}
#purchase-filter>label[data-role=available] input{width:20px;height:20px}
#purchase-filter>button{min-height:44px;flex:1 1 100%;font-size:16px}
#purchase-filter>a{min-height:44px;display:flex;align-items:center}
/* Closed account dropdown must not contribute an off-screen box to page width. */
#site-header #auth-wrapper #user-dropdown{display:none!important}
#site-header #auth-wrapper[data-logged-in=true]:is(:hover,:focus-within) #user-dropdown{display:flex!important;visibility:visible;opacity:1;pointer-events:auto;transform:none;left:0;right:auto}
@media(max-width:650px){html{scrollbar-gutter:auto}#site-header #auth-wrapper[data-logged-in=true] #user-dropdown{max-width:min(220px,80vw)}}

[hidden]{display:none!important}
#hero-section>svg{overflow:hidden;max-width:100%;pointer-events:none}

#auth-overlay>section[data-container][data-role=auth-box]{height:auto!important;min-height:0;display:block!important;max-height:100%}

/* Match the original navigation: desktop submenus must extend outside the nav. */
@media(min-width:1033px){#main-nav{overflow:visible}}
/* The original mobile drawer keeps its dimensions and accordion appearance. */
@media(max-width:1032px){#main-nav{overflow-y:auto;overscroll-behavior:contain}}

/* Gold side arrows, with space reserved so product text stays unobstructed. */
[data-carousel-shell]{position:relative;min-width:0;padding-inline:52px}
#new-arrivals [data-layout="row"]>[data-carousel-shell]{flex:1;min-width:0}
[data-carousel-shell]>[data-role="slider"],
[data-carousel-shell]>[data-role="home-offer-track"],
[data-carousel-shell]>#offer-track{width:100%;min-width:0}
[data-carousel-shell]>[data-role="carousel-controls"],
#catalog-shell [data-carousel-shell]>#offer-controls{position:absolute;inset:0;display:block;width:auto;margin:0;pointer-events:none}
[data-carousel-shell]>[data-role="carousel-controls"]>button,
#catalog-shell [data-carousel-shell]>#offer-controls>button:not([data-action="autoplay"]){position:absolute;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:44px;height:44px;min-width:44px;padding:0;border-radius:50%;border:1px solid rgba(212,175,55,.5);background:radial-gradient(circle at 35% 25%,#39301d,#121212 80%);color:#d4af37;box-shadow:0 4px 16px rgba(0,0,0,.45);pointer-events:auto;cursor:pointer;transition:border-color .2s,background-color .2s,opacity .2s}
[data-carousel-shell]>[data-role="carousel-controls"]>button[data-action="previous"],
#catalog-shell [data-carousel-shell]>#offer-controls>button[data-action="previous"]{right:0;left:auto}
[data-carousel-shell]>[data-role="carousel-controls"]>button[data-action="next"],
#catalog-shell [data-carousel-shell]>#offer-controls>button[data-action="next"]{left:0;right:auto}
[data-carousel-shell]>[data-role="carousel-controls"]>button svg,
#catalog-shell [data-carousel-shell]>#offer-controls>button svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
[data-carousel-shell]>[data-role="carousel-controls"]>button:disabled,
#catalog-shell [data-carousel-shell]>#offer-controls>button:disabled{opacity:.38;cursor:default}
@media(hover:hover){
[data-carousel-shell]>[data-role="carousel-controls"]>button:not(:disabled):hover,
#catalog-shell [data-carousel-shell]>#offer-controls>button:not(:disabled):hover{border-color:#e8cf80;background:#332b1b;color:#f0d88a}
}
@media(max-width:650px){[data-carousel-shell]{padding-inline:46px}}

/* Native navigation and footer contacts: SVG only, no card backgrounds. */
#store-location,#custom-order,#home-calculator{scroll-margin-top:160px}
#site-header a[data-role="contact-btn"],#site-header a[data-role="quick-calc"]{display:inline-flex;align-items:center;justify-content:center;width:24px;min-width:24px;padding:0;border:0;background:transparent;color:#000;text-decoration:none;opacity:1;visibility:visible;transform:none}
/* Header icon changes only; the calculator UI and logic are unchanged. */
#site-header a[data-role="contact-btn"]>svg{width:24px;height:24px;fill:#eaecef;stroke:currentColor;transition:fill .3s,transform .3s}
#site-header a[data-role="contact-btn"]:is(:hover,:focus-visible)>svg{fill:#f9c518;transform:translateY(-2px)}
#site-header a[data-role="quick-calc"]>svg{width:24px;height:24px;fill:#fff;stroke:none}
#site-footer .gallery-footer-icons{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
#site-footer .gallery-footer-icon{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;padding:8px;border:0;border-radius:0;background:transparent;box-shadow:none;color:#d4af37;text-decoration:none;transition:color .2s,transform .2s,filter .2s}
#site-footer .gallery-footer-icon>svg{width:25px;height:25px;fill:none;stroke:currentColor}
#site-footer .gallery-footer-icon:is(:hover,:focus-visible){color:#ffe49a;transform:translateY(-4px);filter:drop-shadow(0 0 6px rgba(212,175,55,.55))}
#site-footer .gallery-footer-icon.is-unavailable{opacity:1;cursor:default}
#site-footer .gallery-footer-icon.is-unavailable:hover{opacity:1}
#site-footer a.gallery-footer-contact{display:inline-flex;align-items:center;gap:14px;min-height:44px;padding-block:8px;color:#e2c363;text-decoration:none;border-bottom:1px solid rgba(212,175,55,.4);transition:color .2s,border-color .2s}
#site-footer a.gallery-footer-contact:is(:hover,:focus-visible){color:#ffe49a;border-color:currentColor}
#custom-order-form .custom-order-notice{margin:0 0 18px;font-size:13px;line-height:2;color:#bbb}
#custom-order-form .custom-order-notice a{color:#e2c363}
@media(max-width:1032px){#site-header a[data-role="contact-btn"]{display:none}}
@media(prefers-reduced-motion:reduce){#site-footer .gallery-footer-icon,#site-footer a.gallery-footer-contact,#site-header a[data-role="contact-btn"]>svg{transition:none!important;transform:none!important}}

/* Mobile brand only. Desktop retains its original rules. */
@media(max-width:650px){
 #site-header>[data-home-brand]{display:flex!important;flex-direction:row!important;direction:ltr!important;align-items:center;gap:3px!important;min-width:0;margin-left:0!important}
 #site-header>[data-home-brand]>img{display:block!important;order:0;flex:none;width:34px!important;height:38px!important;object-fit:contain}
 #site-header>[data-home-brand]>section[data-container]{order:1;direction:rtl;min-width:0}
 #site-header>[data-home-brand]>section>h1{font-size:14px!important;letter-spacing:0!important;white-space:nowrap}
 #site-header>[data-home-brand]>section>span{font-size:10px!important;letter-spacing:0!important;white-space:nowrap}
}


