/* Storefront surfaces extend the original template tokens and components. */
.storefront-page{padding-top:150px;padding-bottom:64px;min-height:65vh;overflow-wrap:anywhere}
.storefront-page>h1{font-size:2rem;font-weight:700;margin-bottom:28px;color:var(--text-dark,#333)}
.storefront-page>h1:after{content:"";display:block;width:48px;height:2px;margin-top:14px;background:var(--brand-gold,#a08c5b)}
.storefront-page h2{font-size:1.15rem;margin-bottom:18px}
.storefront-panel{background:#fcfcfc;border:1px solid #eee;border-radius:8px;padding:24px;margin-bottom:20px;box-shadow:none}
.storefront-panel-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;padding-bottom:18px;border-bottom:1px solid #eee}
.storefront-panel-heading h2{margin:0}.storefront-count-label{color:#777;font-size:.85rem}
.storefront-checkout-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(260px,1fr);gap:24px;align-items:start}
.storefront-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.storefront-wide{grid-column:1/-1}
.storefront-fields label{display:block;margin-bottom:9px;font-weight:600;font-size:.9rem;color:#444}
.storefront-fields input,.storefront-fields textarea,.storefront-fields select{width:100%;min-width:0;padding:12px 15px;border:1px solid #ddd;border-radius:8px;background:#fff;font:inherit;color:#333;transition:border-color .2s,box-shadow .2s}
.storefront-fields input:focus,.storefront-fields textarea:focus,.storefront-fields select:focus{outline:none;border-color:var(--brand-gold,#a08c5b);box-shadow:0 0 0 3px #a08c5b19}
.storefront-fields input[type=tel],.storefront-fields input[inputmode=numeric]{direction:ltr;text-align:right}
.storefront-fields textarea{min-height:96px;resize:vertical}
.storefront-terms{display:flex;gap:10px;align-items:start;margin:24px 0;line-height:1.9;font-size:.9rem}
.storefront-terms input{accent-color:var(--brand-gold,#a08c5b);width:17px;height:17px;margin-top:6px;flex-shrink:0}
.storefront-terms a,.storefront-back-link{color:var(--brand-gold,#a08c5b)}
.storefront-errors,.field-validation-error{color:#a52b2b;line-height:1.9;font-size:.9rem}
.storefront-errors:not(:empty){padding:12px 16px;border:1px solid #ecd4cd;border-radius:8px;background:#fdf6f3;margin:12px 0}
.storefront-errors ul{padding-right:20px}.storefront-errors.validation-summary-valid{display:none}
.storefront-fields .input-validation-error{border-color:#b75e50}
.storefront-warning{padding:12px 16px;background:#faf7ef;border:1px solid #e8ddc5;border-radius:8px;margin:16px 0;line-height:1.9;font-size:.9rem;color:#776339}
.storefront-muted{color:#777;font-size:.85rem;line-height:1.9}
.storefront-actions{display:flex;flex-wrap:wrap;align-items:center;gap:16px;margin:22px 0}
.storefront-actions a:not(.button){color:var(--brand-gold,#a08c5b)}
.storefront-steps{display:flex;flex-wrap:wrap;align-items:center;gap:12px 24px;margin:0 0 28px;padding:16px 20px;border:1px solid #eee;border-radius:8px;background:#fcfcfc;color:#888;font-size:.9rem;counter-reset:step}
.storefront-steps>*{display:inline-flex;align-items:center;gap:8px;counter-increment:step}
.storefront-steps>*:before{content:counter(step,persian);display:inline-grid;place-items:center;width:26px;height:26px;border:1px solid #ddd;border-radius:50%;font-size:.8rem}
.storefront-steps strong{color:var(--brand-gold,#a08c5b)}.storefront-steps strong:before{border-color:var(--brand-gold,#a08c5b);background:var(--brand-gold,#a08c5b);color:white}
.storefront-total,.storefront-summary-row{display:flex;justify-content:space-between;align-items:baseline;gap:16px}
.storefront-total{padding:20px 0;margin-top:6px;border-top:1px dashed #ddd;font-size:1rem;font-weight:700}
.storefront-total>strong{color:var(--brand-gold,#a08c5b);text-align:left}
.storefront-summary-row{padding:12px 0;color:#666;font-size:.9rem}
.storefront-block-button{display:flex;width:100%;align-items:center;justify-content:center;gap:10px;margin:10px 0 16px}
.storefront-block-button i{font-size:1.3rem}
.storefront-button-secondary{background:#e0e0e0!important;color:#333!important}
.storefront-button-secondary:hover{background:#d6d6d6!important}
.storefront-empty{text-align:center;padding:48px 20px}
.storefront-empty>.bx{font-size:48px;color:var(--brand-gold,#a08c5b);margin-bottom:18px}
.storefront-empty h2{margin:0 0 12px}.storefront-empty p{margin:12px 0 24px;color:#777;line-height:1.9}
.storefront-empty .button{display:inline-flex;align-items:center;justify-content:center;gap:12px}
.storefront-page dl{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;margin:16px 0;font-size:.9rem}
.storefront-page dt{color:#777}.storefront-page dd{margin:0;text-align:left;overflow-wrap:anywhere}
.storefront-quote-line{border-bottom:1px solid #eee;padding:18px 0}.storefront-quote-line:first-of-type{padding-top:0}
.storefront-quote-line h3{font-size:1rem;font-weight:600;margin-bottom:8px}
.storefront-quote-line summary{font-size:.85rem;color:var(--brand-gold,#a08c5b);cursor:pointer;margin-top:14px}
.storefront-quote-line details[open]{margin-top:12px;padding:12px 16px;background:#f7f6f2;border-radius:8px}
.storefront-address{line-height:2;color:#666;font-size:.9rem}.storefront-address>p{margin-bottom:10px}
.storefront-panel h2>.bx{color:var(--brand-gold,#a08c5b);font-size:1.3rem;vertical-align:middle;margin-left:6px}
.storefront-otp{text-align:center;letter-spacing:.5em;direction:ltr;margin:16px 0}.auth-form-panel .auth-btn{margin-top:20px}
.storefront-items-panel .cart-item{padding:20px 0}.storefront-item{min-width:0}
.storefront-item-image{flex:0 0 auto;display:block}.storefront-item .cart-item__image{display:block;object-fit:cover}
.storefront-item .cart-item__details{min-width:0;flex:1}.storefront-item .cart-item__name{display:block;font-size:.95rem;line-height:1.7}
.storefront-item .cart-item__price{display:block;margin:4px 0 0;color:var(--brand-gold,#a08c5b);font-weight:600}
.storefront-item-weight{color:#888;font-size:.8rem}
.storefront-item>form{flex:0 0 auto}.storefront-item .cart-item__remove{width:34px;height:34px;display:grid;place-items:center;border:1px solid #eee;background:#fff;color:#888;border-radius:6px;cursor:pointer;transition:color .2s,border-color .2s}
.storefront-item .cart-item__remove:hover{color:#a52b2b;border-color:#d7b9b2}.storefront-item .cart-item__remove:disabled{opacity:.45}
.storefront-item-warning{color:#8c6a35;font-size:.78rem;line-height:1.7;margin-top:6px;display:flex;align-items:start;gap:4px}
.storefront-item-warning .bx{margin-top:3px;flex-shrink:0}
.storefront-back-link{display:inline-flex;align-items:center;gap:8px;font-size:.9rem;margin-top:18px}
.storefront-mini-dialog{width:min(440px,calc(100vw - 48px))}
#storefront-mini-cart{padding:0;min-height:120px;overflow:auto}
.storefront-mini-items{max-height:45vh;overflow-y:auto;overscroll-behavior:contain}
.storefront-mini-footer{padding:1.5rem;background:#f9f9f9;margin-top:auto}
.storefront-mini-total{display:flex;justify-content:space-between;gap:12px;margin-bottom:1rem;font-weight:700;color:#333;font-size:.95rem}
.storefront-mini-total strong{white-space:nowrap}
.storefront-mini-actions{display:flex;flex-direction:column;gap:10px}.storefront-mini-actions .button{width:100%;margin:0}
.storefront-mini-note{font-size:.75rem;color:#888;text-align:center;margin:12px 0 0;line-height:1.7}
.site-header .cart-btn{position:relative}
.site-header .cart-item-count{top:-2px;right:-4px;min-width:20px;width:auto;height:20px;padding:0 4px;border:2px solid #fff;border-radius:20px;background:var(--brand-gold,#a08c5b);font-size:.65rem;box-shadow:0 2px 6px #00000010;pointer-events:none}
.storefront-buy-button{display:flex;align-items:center;justify-content:center;gap:10px;min-height:50px;transition:background .2s,color .2s,box-shadow .2s}
.storefront-buy-button>i{font-size:1.4rem}.storefront-buy-button .storefront-buy-hint{font-size:.75rem;font-weight:400;opacity:.85;border-right:1px solid currentColor;padding-right:10px}
.storefront-buy-button [hidden]{display:none}
.storefront-buy-button.is-in-cart{background:#f5f1e5;color:#806d3e;box-shadow:inset 0 0 0 1px #c2b17b}
.storefront-buy-button.is-in-cart:hover{background:#eee7d4}
.storefront-buy-button.is-loading{opacity:.8;cursor:wait}.storefront-buy-button.is-loading>i{animation:storefront-spin .8s linear infinite}
[data-favorite][aria-pressed=true] i{color:#b63232}
.storefront-page .button:disabled{opacity:.5;cursor:not-allowed}
.storefront-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.storefront-focusable:focus{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto;white-space:normal}
[data-live-calculator] .calc-modal{width:min(900px,calc(100vw - 32px))}
[data-live-calculator] .modal-title,.storefront-mini-dialog .modal-title{margin-top:8px}
[data-live-calculator],#cartModal:has(.storefront-mini-dialog){align-items:safe center}
[data-live-calculator] .calc-sample-card{font:inherit;text-align:right;color:inherit}
.storefront-sample-title{display:block;font-size:.9rem;font-weight:700;color:#333;margin-bottom:4px}
[data-live-calculator] .calc-sample-info{min-width:0}
[data-live-calculator] .calc-layout,[data-live-calculator] .calc-form,[data-live-calculator] .calc-results{min-width:0}
[data-live-calculator] .result-item{gap:12px;flex-wrap:wrap}
[data-live-calculator] .result-value{font-family:inherit;max-width:100%;overflow-wrap:anywhere;font-size:.9rem}
[data-live-calculator] .result-item.total .result-value{font-size:1.15rem}
[data-live-calculator] .calc-results[aria-busy=true]{opacity:.55}
.storefront-calculator-notes{margin-top:22px;font-size:.75rem;line-height:1.9;color:#888}
.storefront-calculator-notes p+p{margin-top:4px}.storefront-calculator-notes .is-error{color:#a06a32}
.storefront-calculation-error{display:flex;gap:8px;border-top:1px solid #eadbc0;padding-top:14px;margin-top:20px;color:#93642f;font-size:.8rem;line-height:1.9}
.storefront-calculation-error i{font-size:1.2rem;flex-shrink:0;margin-top:4px}
.storefront-rounding{font-size:.8rem!important}
.storefront-account-card{display:flex;align-items:center;gap:18px}
.storefront-avatar{display:grid;place-items:center;flex:0 0 auto;width:64px;height:64px;border-radius:50%;background:#f2eee3;color:var(--brand-gold,#a08c5b);font-size:2rem}
.storefront-account-card h2{margin:0 0 6px}.storefront-account-card p{color:#888}
.storefront-account-menu{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.storefront-account-link{display:flex;align-items:center;gap:16px;margin:0;color:#444;transition:border-color .2s}
.storefront-account-link:hover{border-color:var(--brand-gold,#a08c5b)}
.storefront-account-link>.bx{font-size:1.8rem;color:var(--brand-gold,#a08c5b)}
.storefront-account-link small{display:block;margin-top:6px;color:#888;font-size:.8rem}
.storefront-favorites-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.storefront-favorite-card .product-card__image{aspect-ratio:1;object-fit:cover;width:100%}
.storefront-favorite-card .product-card__body{padding:18px}
.storefront-favorite-card .product-card__name{font-size:1rem;line-height:1.8}
.storefront-favorite-card form{margin-top:14px}
.storefront-text-button{display:inline-flex;align-items:center;gap:6px;padding:0;border:0;background:none;color:#888;font:inherit;font-size:.8rem;cursor:pointer}
.storefront-text-button:hover{color:#a52b2b}
.storefront-order-result{text-align:center;margin-bottom:24px;padding:28px}
.storefront-order-result>.bx{display:inline-grid;place-items:center;font-size:2rem;width:68px;height:68px;border-radius:50%;color:var(--brand-gold,#a08c5b);background:#f2eee3;margin-bottom:16px}
.storefront-order-result.is-paid>.bx{color:#357b53;background:#edf5ed}
.storefront-order-result h2{margin-bottom:10px}.storefront-order-result p{font-size:.9rem;line-height:1.9;color:#777;margin:8px 0}
.storefront-order-result .button{margin-top:14px}.storefront-order-result .storefront-warning{color:#776339}
.storefront-order-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:20px}
.storefront-order-row h2{margin-bottom:8px}.storefront-order-row p{font-size:.85rem;color:#888}
.storefront-order-row .storefront-order-amount{color:var(--brand-gold,#a08c5b);font-weight:700;font-size:1.05rem}
.storefront-status{display:inline-flex;align-items:center;gap:5px;padding:5px 10px;border-radius:20px;background:#f4efe2;color:#806d3e;font-size:.75rem}
.storefront-status.is-paid{background:#edf5ed;color:#357b53}
.storefront-checkout-summary-item{display:flex;align-items:center;gap:12px;padding:14px 0;border-bottom:1px solid #eee}
.storefront-checkout-summary-item img{width:52px;height:52px;object-fit:cover;border-radius:6px;border:1px solid #eee}
.storefront-checkout-summary-item>div{min-width:0}.storefront-checkout-summary-item h3{font-size:.85rem;line-height:1.7;margin:0 0 4px}
.storefront-checkout-summary-item p{font-size:.8rem;color:#888}.storefront-checkout-summary-item strong{font-size:.85rem;color:var(--brand-gold,#a08c5b)}
@keyframes storefront-spin{to{transform:rotate(360deg)}}
@media(min-width:992px){.storefront-summary{position:sticky;top:120px}}
@media(max-width:767px){.storefront-page{padding-top:110px}.storefront-page>h1{font-size:1.55rem;margin-bottom:22px}.storefront-checkout-grid,.storefront-fields{grid-template-columns:minmax(0,1fr)}.storefront-panel{padding:20px}.storefront-total{font-size:.95rem}.storefront-actions{gap:14px}.storefront-account-menu{grid-template-columns:1fr}.storefront-favorites-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.storefront-favorite-card .product-card__body{padding:12px}.storefront-steps{gap:12px 16px;padding:14px;font-size:.8rem}.storefront-steps>*:before{width:22px;height:22px}.storefront-mini-dialog{width:calc(100vw - 48px)}.storefront-buy-button{flex-wrap:wrap;gap:6px}.storefront-buy-button .storefront-buy-hint{font-size:.7rem;padding-right:6px}}
@media(max-width:600px){[data-live-calculator],#cartModal:has(.storefront-mini-dialog){padding:3vh .75rem}[data-live-calculator] .modal-content,.storefront-mini-dialog{max-width:calc(100% - 1.5rem)!important;max-height:94vh!important;border-radius:14px}[data-live-calculator] .modal-header,.storefront-mini-dialog .modal-header{padding:.85rem 1.1rem}[data-live-calculator] .modal-title,.storefront-mini-dialog .modal-title{font-size:1.1rem}[data-live-calculator] .modal-body{overscroll-behavior:contain;-webkit-overflow-scrolling:touch}[data-live-calculator] .calc-results{padding:1.2rem}[data-live-calculator] .result-item{display:block}[data-live-calculator] .result-value{display:block;text-align:left;margin-top:6px}[data-live-calculator] .result-item.total .result-label{font-size:1rem}}
@media(max-width:374px){.storefront-mini-total{flex-direction:column;gap:6px}.storefront-item .cart-item__image{width:54px;height:54px}.storefront-mini-items .cart-item{padding:16px}.storefront-mini-footer{padding:16px}.storefront-favorites-grid{grid-template-columns:1fr}.storefront-buy-hint{display:none}.storefront-panel{padding:16px}.storefront-steps{gap:12px;font-size:.75rem}}
@media(prefers-reduced-motion:reduce){.storefront-buy-button,.site-header .cart-item-count{transition:none}.storefront-buy-button.is-loading>i{animation:none}}
