/* Customer language follows the same approved theme, spacing and local Noto font. */
.language-switch{white-space:nowrap;min-width:64px}
html[lang="en"] body{line-height:1.7}
html[lang="en"] .brand-text>small{letter-spacing:normal;direction:ltr}
html[dir="ltr"] .dialog-header,html[dir="ltr"] .field,html[dir="ltr"] .product-content{text-align:start}
html[dir="ltr"] .order-items{padding-inline-start:20px;padding-inline-end:0}
#product-title,#product-description,.cart-line-title>span:first-child,.order-card h3{unicode-bidi:plaintext}
@media(max-width:550px){html[lang="en"] .header-actions .button{font-size:13px;padding-inline:8px}.language-switch{flex:0 1 auto!important}}

.legal-page{max-width:760px;margin:24px auto;line-height:2}.site-footer{flex-wrap:wrap;gap:16px;padding-bottom:100px}.site-footer nav{gap:20px}.site-footer a{color:inherit;text-underline-offset:5px}

/* Customer destinations reuse the existing account, orders and support flows. */
.customer-navigation{display:flex;justify-content:center;gap:8px;padding:8px 20px;background:var(--surface);border-bottom:1px solid var(--line)}
.customer-nav-button{display:flex;align-items:center;justify-content:center;gap:9px;min-height:48px;padding:8px 22px;border:0;border-radius:12px;background:transparent;color:var(--muted);font-weight:700;font-size:14px}
.customer-nav-button[aria-current="page"]{background:var(--accent-soft);color:var(--accent-dark)}
.customer-nav-button:hover{background:var(--surface-alt);color:var(--ink)}
.customer-navigation svg,.profile-avatar svg,.account-action svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.account-dialog{width:min(520px,calc(100% - 24px))}
.account-dialog .dialog-scroll{background:var(--bg)}
.profile-summary{display:flex;align-items:center;gap:14px;min-width:0;padding-bottom:18px}
.profile-summary>div{min-width:0}
.profile-avatar{display:grid;place-items:center;width:56px;height:56px;flex:0 0 56px;border-radius:18px;background:var(--accent-soft);color:var(--accent-dark)}
.profile-avatar svg{width:30px;height:30px}
#account-profile .profile-summary p{margin:0;overflow-wrap:anywhere}
#profile-label{font-size:20px;font-weight:700}
#profile-phone{font-size:15px;text-align:start;unicode-bidi:isolate;color:var(--muted);width:fit-content}
.account-actions{display:grid;gap:10px}
.account-action{display:flex;align-items:center;gap:14px;text-align:start;width:100%;min-height:54px;border:1px solid var(--line);background:var(--surface);border-radius:13px;padding:13px 15px;color:var(--ink);font-size:15px;line-height:1.7;overflow-wrap:anywhere}
.account-action>span{min-width:0;flex:1}
.account-action strong,.account-action small{display:block}
.account-action small{font-size:12px;line-height:1.8;color:var(--muted);font-weight:400}
.account-action svg{color:var(--accent-dark)}
.account-action::after{content:"";width:7px;height:7px;border-inline-end:1.5px solid currentColor;border-block-start:1.5px solid currentColor;transform:rotate(45deg);margin-inline-start:auto;flex:0 0 7px;opacity:.5}
html[dir="rtl"] .account-action::after{transform:rotate(-45deg)}
.account-action:hover{border-color:var(--accent);background:var(--accent-soft)}
.account-section{margin-top:20px;padding-top:20px;border-top:1px solid var(--line)}
.account-section h3{font-size:16px;margin-bottom:10px}
.account-explore,.account-policies{display:grid;gap:10px}
.account-explore h3,.account-policies h3{margin-bottom:0}
#account-profile .account-actions .button,#account-profile .row .button{margin-top:0}
.account-addresses{padding-top:12px}
.saved-address-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 0;border-bottom:1px solid var(--line);font-size:14px;overflow-wrap:anywhere}
.saved-address-row>span{min-width:0}
.saved-address-row .button{flex-shrink:0}
#logout-button{width:100%;color:var(--danger);background:var(--surface)}
@media(max-width:800px){
  .header-inner{flex-wrap:nowrap}
  .header-actions{width:auto;margin-inline-start:auto}
  .customer-navigation{position:fixed;inset-inline:0;bottom:0;z-index:25;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3px;padding:6px 8px calc(6px + env(safe-area-inset-bottom));border-top:1px solid var(--line);border-bottom:0;box-shadow:0 -4px 18px rgb(51 37 20 / 5%)}
  .customer-nav-button{flex-direction:column;gap:2px;min-width:0;min-height:60px;padding:6px 2px;font-size:11px;line-height:1.5}
  .customer-nav-button svg{width:22px;height:22px}
  .mobile-basket{bottom:calc(84px + env(safe-area-inset-bottom))}
  .site-footer{padding-bottom:calc(170px + env(safe-area-inset-bottom))}
  .toast{bottom:calc(154px + env(safe-area-inset-bottom))}
  #basket{scroll-margin-bottom:calc(82px + env(safe-area-inset-bottom))}
}
@media print{.customer-navigation{display:none!important}}

/* Account actions stay in document flow; safe areas apply to every mobile dialog. */
.profile-summary{background:#20201e;color:#fff;border-radius:18px;padding:20px;margin-bottom:18px}
#account-profile .profile-summary .profile-welcome{color:#ffab6c;font-size:12px;margin-bottom:4px}
.profile-summary #identity-label,.profile-summary #profile-phone{color:#dfddd9}
.profile-avatar{color:#ff8a36;background:#37302a}
.order-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-bottom:16px}
.order-filters .button{min-width:0;padding:10px 4px;font-size:12px}
.order-filters [aria-pressed="true"]{background:var(--accent-soft);color:var(--accent-dark);box-shadow:inset 0 -2px var(--accent)}
#address-add{margin-top:12px}.saved-address-row{align-items:flex-start}.saved-address-row .row{flex-wrap:wrap;justify-content:flex-end}
#logout-button{position:static;margin:0}.account-policies a{text-decoration:none}
@media(max-width:800px){.dialog{max-height:calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom))}.dialog-scroll{padding-bottom:calc(20px + env(safe-area-inset-bottom))}.profile-summary{padding:16px}.saved-address-row{flex-direction:column;align-items:stretch}}

.site-footer button svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;vertical-align:middle;margin-inline-end:6px}.account-locations{display:grid;gap:8px;padding-top:12px}.account-locations a{color:inherit;text-underline-offset:4px}

.dialog-destinations{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:8px 12px calc(8px + env(safe-area-inset-bottom));background:var(--surface);border-top:1px solid var(--line);flex-shrink:0}.dialog-destinations .button{min-width:0;padding:10px 4px;font-size:12px}.dialog-destinations [aria-current="page"]{color:var(--accent-dark);background:var(--accent-soft)}

/* Compact legal presentation; keep mobile navigation clearance on body, not footer. */
.site-footer.compact-legal-footer{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;padding:4px 12px;margin:0;font-size:12px;line-height:1.4;color:#655e56;border-top:1px solid var(--line)}
.compact-legal-footer .legal-strip{display:flex;align-items:center;justify-content:center;gap:4px;flex-wrap:wrap}
.legal-strip>a,.legal-strip>button{display:inline-flex;align-items:center;justify-content:center;gap:4px;min-height:40px;padding:0 5px;font:inherit;font-size:12px;color:inherit;background:transparent;border:0;border-radius:5px}
.site-footer .legal-strip svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.6;margin:0;flex-shrink:0}
.social-icons,.site-footer .social-icons{display:flex;align-items:center;justify-content:center;gap:0;direction:ltr}
.social-icons>a{width:38px;height:38px;display:inline-flex;align-items:center;justify-content:center;border-radius:8px}
.social-icons img{width:18px;height:18px;opacity:1}
.social-icons a:hover,.legal-strip>a:hover,.legal-strip>button:hover{background:var(--surface-alt)}
.public-contact-dialog{width:min(420px,calc(100% - 24px))}
.contact-brand{margin-bottom:12px}.public-contact-dialog .social-icons{justify-content:flex-start;margin-block:8px}.public-contact-dialog .button{margin-top:14px}
.legal-page{line-height:1.9}.legal-page section{margin-block:24px}.legal-page h2{font-size:18px;margin-bottom:8px}.policy-brand{margin-block:20px;color:var(--muted)}
.legal-page .controller-details{font-size:13px;border-top:1px solid var(--line);padding-top:16px}.controller-details h2{font-size:16px}.controller-details dl{margin:0}.controller-details dt{font-weight:700}.controller-details dd{margin:0 0 8px;overflow-wrap:anywhere}
@media(max-width:800px){body:has(.compact-legal-footer){padding-bottom:calc(170px + env(safe-area-inset-bottom))}.site-footer.compact-legal-footer{padding:4px 8px}.legal-strip>a,.legal-strip>button{font-size:11px}}

/* Compact controller facts: labels remain readable without a large card. */
.legal-page .controller-details{padding:13px;border:1px solid var(--line);border-radius:8px;font-size:12px;line-height:1.5;margin-block:16px}
.legal-page .controller-details h2{font-size:16px;margin:0 0 7px}
.controller-details dl{display:grid;grid-template-columns:1fr 1fr;gap:6px 14px}
.controller-details .controller-field:nth-child(-n+2){grid-column:1/-1}
.controller-details dt{font-size:11px;font-weight:700}.controller-details dd{font-size:12px;margin:0}
@media(max-width:360px){.controller-details dl{grid-template-columns:1fr}.controller-details .controller-field{grid-column:1}}
.customer-progress{padding:1rem;margin-block:1rem;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface)}
.customer-progress h4{margin:0 0 1rem;line-height:1.6}
.customer-progress-steps{list-style:none;display:flex;flex-wrap:wrap;gap:.65rem;margin:0;padding:0}
.customer-progress-steps li{flex:1 1 130px;min-width:0;padding:.7rem;border-radius:10px;background:var(--surface-alt);border:1px solid var(--line);font-size:.85rem;line-height:1.7;overflow-wrap:anywhere}
.customer-progress-steps li.current{border-color:var(--accent);font-weight:700;box-shadow:inset 0 -3px var(--accent)}
.customer-progress-steps li.complete{color:var(--success)}
@media(max-width:480px){.customer-progress{padding:.8rem}.customer-progress-steps li{flex-basis:calc(50% - .65rem)}}
/* Enbishan menu: consistent card geometry with or without artwork/options. */
html[data-storefront-brand="enbishan"] .product-grid{align-items:stretch;grid-auto-rows:1fr}
html[data-storefront-brand="enbishan"] .product-card{height:100%}
html[data-storefront-brand="enbishan"] .product-image-button{aspect-ratio:1.2;flex-shrink:0;display:grid;place-items:center}
html[data-storefront-brand="enbishan"] .product-image-button img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
html[data-storefront-brand="enbishan"] .product-content{display:flex;flex-direction:column;gap:6px;padding:10px;align-items:stretch}
html[data-storefront-brand="enbishan"] .product-content h3{height:3.2em;min-height:3.2em;font-size:14px;line-height:1.6;overflow:hidden}
html[data-storefront-brand="enbishan"] .product-content h3 button{font-size:inherit;line-height:inherit;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
/* Options and full-size artwork remain available inside product details. */
html[data-storefront-brand="enbishan"] .product-content>.pill:not(.warning),
html[data-storefront-brand="enbishan"] .product-content>.image-zoom-button{display:none}
html[data-storefront-brand="enbishan"] .product-content>.pill.warning{align-self:flex-start;margin:0;font-size:12px;line-height:1.6}
html[data-storefront-brand="enbishan"] .product-card-bottom{display:grid;grid-template-columns:minmax(0,1fr) 44px;grid-template-rows:18px 26px;gap:0 6px;padding:0;margin-top:auto}
html[data-storefront-brand="enbishan"] .product-card-bottom>del{grid-column:1;grid-row:1;font-size:11px;line-height:18px;white-space:nowrap}
html[data-storefront-brand="enbishan"] .product-card-bottom>.money{grid-column:1;grid-row:2;justify-self:start;font-size:14px;line-height:26px}
html[data-storefront-brand="enbishan"] .product-card-bottom:not(:has(>del))>.money{grid-row:1/3;align-self:center}
html[data-storefront-brand="enbishan"] .product-add-button{grid-column:2;grid-row:1/3;width:44px;height:44px;align-self:center}

/* Customer draft quantity controls; preserve the explicit details/options button. */
.product-card-controls{display:flex;align-items:center;gap:4px;flex-wrap:nowrap}.product-card-quantity{min-width:1.2em;text-align:center;font-variant-numeric:tabular-nums}.product-minus-button{min-width:44px;min-height:44px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--ink);font:inherit;font-size:24px}.product-card-bottom{flex-wrap:wrap}.product-image-button{touch-action:manipulation}

/* Quantity controls occupy a full row under Enbishan variant prices. */
html[data-storefront-brand="enbishan"] .product-card-bottom{grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto auto}
html[data-storefront-brand="enbishan"] .product-card-bottom>.product-card-controls{grid-column:1;grid-row:3;justify-content:space-between;margin-top:5px}
html[data-storefront-brand="enbishan"] .product-card-controls>.product-add-button{grid-column:auto;grid-row:auto}
