/* Buyer cabinet / cart / similar */
html body.shop-front .account-shell{max-width:1180px;margin:0 auto;padding:28px 18px 72px}
html body.shop-front .account-hero{margin-bottom:22px}
html body.shop-front .account-hero .eyebrow{color:var(--sf-accent,#C9A227);font-weight:800;letter-spacing:.08em;text-transform:uppercase;font-size:12px}
html body.shop-front .account-hero h1{margin:8px 0 10px;font-size:clamp(1.6rem,3vw,2.4rem);color:var(--sf-ink,#0F2D52)}
html body.shop-front .account-hero p{margin:0;color:var(--sf-ink-soft,#667085);max-width:56ch;line-height:1.55}
html body.shop-front .account-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}
html body.shop-front .account-card{background:var(--sf-card,#fff);border:1px solid var(--sf-line,#E4DCD2);border-radius:18px;padding:22px;display:grid;gap:10px}
html body.shop-front .account-card h2{margin:0 0 6px;font-size:1.15rem;color:var(--sf-ink,#0F2D52)}
html body.shop-front .account-card label{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:700;color:var(--sf-ink,#344054)}
html body.shop-front .account-card input,
html body.shop-front .account-card textarea{border:1px solid var(--sf-line,#d0d5dd);border-radius:12px;padding:12px 14px;font:inherit;background:#fff;color:inherit}
html body.shop-front .account-consent{display:flex!important;flex-direction:row!important;align-items:flex-start;gap:10px;font-weight:500!important;line-height:1.45}
html body.shop-front .account-consent input{width:auto;margin-top:3px}
html body.shop-front .account-alert{padding:12px 14px;border-radius:12px;margin-bottom:14px}
html body.shop-front .account-alert.ok{background:#dff7e7;color:#176b36}
html body.shop-front .account-alert.err{background:#fde8e8;color:#b42318}
html body.shop-front .account-list{list-style:none;margin:0;padding:0}
html body.shop-front .account-list li{padding:12px 0;border-bottom:1px solid var(--sf-line,#eef1f5)}
html body.shop-front .account-line{font-size:.92rem;color:var(--sf-ink-soft,#667085);margin-top:4px}
html body.shop-front .account-welcome{margin:0 0 10px;color:var(--sf-ink-soft,#667085)}
html body.shop-front .account-toolbar{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:16px}
html body.shop-front .account-fav-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
html body.shop-front .account-fav-grid article{border:1px solid var(--sf-line,#e8edf4);border-radius:14px;overflow:hidden;background:#fff}
html body.shop-front .account-fav-grid img,
html body.shop-front .account-fav-ph{width:100%;height:120px;object-fit:contain;background:#efe8df;display:grid;place-items:center}
html body.shop-front .account-fav-grid .body{padding:10px;display:grid;gap:6px}
html body.shop-front .muted{color:var(--sf-ink-soft,#667085)}
html body.shop-front .similar-steps{margin:0;padding-left:1.2rem;color:var(--sf-ink-soft,#475467);line-height:1.55;display:grid;gap:8px}
html body.shop-front .cart-table{display:grid;gap:14px}
html body.shop-front .cart-row{display:grid;grid-template-columns:72px 1fr auto auto auto;gap:12px;align-items:center}
html body.shop-front .cart-thumb{width:72px;height:72px;border-radius:12px;overflow:hidden;background:#efe8df;display:block}
html body.shop-front .cart-thumb img{width:100%;height:100%;object-fit:contain}
html body.shop-front .cart-qty input{width:72px}
html body.shop-front .cart-total{margin:14px 0;font-size:1.1rem}
html body.shop-front .is-hidden{display:none!important}
html body.shop-front .sf-buy__enquire,
html body.shop-front .sf-buy__cart{width:fit-content;max-width:100%}
html body.shop-front .nav-cart-count{display:inline-grid;place-items:center;min-width:1.25rem;height:1.25rem;padding:0 5px;margin-left:4px;border-radius:999px;background:var(--sf-accent,#C9A227);color:#111;font-size:11px;font-weight:800}
html body.shop-front.theme-dark .account-card{background:#111C26!important;border-color:#243447!important}
html body.shop-front.theme-dark .account-card input,
html body.shop-front.theme-dark .account-card textarea{background:#0b1520;border-color:#243447;color:#E8EEF5}
@media (max-width:900px){
  html body.shop-front .account-grid,
  html body.shop-front .account-fav-grid{grid-template-columns:1fr}
  html body.shop-front .cart-row{grid-template-columns:64px 1fr;grid-template-areas:"thumb meta" "qty line" "rm rm"}
  html body.shop-front .cart-thumb{grid-area:thumb}
  html body.shop-front .cart-meta{grid-area:meta}
  html body.shop-front .cart-qty{grid-area:qty}
  html body.shop-front .cart-line{grid-area:line}
}

html body.shop-front .sf-buy__cart-form{display:grid;gap:8px;width:fit-content;max-width:100%}
/* similar/fav contrast owned by shop-storefront theme SSOT */
@media (max-width:700px){
  html body.shop-front .sf-buy__cart-form,
  html body.shop-front .sf-buy__cart,
  html body.shop-front .sf-buy__similar{width:100%}
}

html body.shop-front .cart-row.is-blocked{opacity:.72;outline:1px dashed #c45c5c;border-radius:12px;padding:8px}
html body.shop-front .cart-warn{color:#b42318;font-weight:700;font-size:.9rem;margin-top:4px}
html body.shop-front .sf-buy__fav.is-on{border-color:var(--sf-accent,#C9A227);background:rgba(201,162,39,.12)}
html body.shop-front .nav-cart-count[hidden]{display:none!important}

/* Cart icon in header actions (right) */
html body.shop-front .auto-actions{
  display:flex;align-items:center;gap:10px;
}
html body.shop-front a.sf-cart-icon{
  position:relative;display:inline-flex;align-items:center;justify-content:center;
  width:42px;height:42px;border-radius:12px;color:inherit;text-decoration:none;
  border:1px solid transparent;flex:0 0 auto;
}
html body.shop-front a.sf-cart-icon:hover,
html body.shop-front a.sf-cart-icon.is-active{
  border-color:var(--sf-line,#E4DCD2);background:rgba(15,45,82,.04);
}
html body.shop-front a.sf-cart-icon .nav-cart-count{
  position:absolute;top:4px;right:4px;min-width:1.15rem;height:1.15rem;
  padding:0 4px;margin:0;border-radius:999px;background:var(--sf-accent,#C9A227);
  color:#111;font-size:10px;font-weight:800;line-height:1.15rem;display:grid;place-items:center;
}
html body.shop-front a.sf-cart-icon .nav-cart-count[hidden]{display:none!important}
html body.shop-front.theme-dark a.sf-cart-icon:hover,
html body.shop-front.theme-dark a.sf-cart-icon.is-active{background:rgba(255,255,255,.06);border-color:#3A4A61}
@media (max-width:900px){
  html body.shop-front a.sf-cart-icon{width:40px;height:40px}
}

html body.shop-front .sf-buy__cart-msg{margin:6px 0 0;font-size:.92rem;font-weight:700}
html body.shop-front .sf-buy__cart-msg.is-ok{color:#176b36}
html body.shop-front .sf-buy__cart-msg.is-err{color:#b42318}

/* DARK STATUS CONTRAST */
html body.shop-front.theme-dark .cart-warn{color:#FFB4A8!important}
html body.shop-front.theme-dark .sf-buy__cart-msg.is-ok{color:#9BE7B8!important}
html body.shop-front.theme-dark .sf-buy__cart-msg.is-err{color:#FFB4A8!important}
html body.shop-front.theme-dark .account-alert.ok{background:#163226!important;color:#9BE7B8!important}
html body.shop-front.theme-dark .account-alert.err{background:#3A2422!important;color:#FFB4A8!important}


/* Compact auth + password recovery */
html body.shop-front .account-shell{padding:20px 16px 56px}
html body.shop-front .account-hero{margin-bottom:12px}
html body.shop-front .account-hero h1{margin:6px 0 8px}
html body.shop-front .account-grid{gap:14px;align-items:start}
html body.shop-front .account-card{padding:16px 16px 18px;gap:8px;align-content:start}
html body.shop-front .account-card h2{margin:0 0 4px;font-size:1.08rem}
html body.shop-front .account-card input,
html body.shop-front .account-card textarea{padding:10px 12px;border-radius:10px;min-height:44px}
html body.shop-front .account-hint{margin:0 0 4px;font-size:.9rem;line-height:1.45}
html body.shop-front .account-form{display:grid;gap:10px}
html body.shop-front .account-form__row{display:flex;justify-content:flex-end}
html body.shop-front .account-forgot-link,
html body.shop-front .account-switch a{font-size:.9rem;font-weight:700;color:var(--sf-ink,#0F2D52);text-decoration:underline;text-underline-offset:2px}
html body.shop-front.theme-dark .account-forgot-link,
html body.shop-front.theme-dark .account-switch a{color:#E8EEF5}
html body.shop-front .account-switch{margin:8px 0 0}
html body.shop-front .account-card--narrow{max-width:420px;margin:0 auto}
html body.shop-front .account-auth-tabs{
  display:grid;grid-template-columns:1fr 1fr;gap:8px;max-width:420px;margin:0 0 14px;
}
html body.shop-front .account-auth-tab{
  display:inline-flex;align-items:center;justify-content:center;min-height:42px;
  border-radius:999px;border:1px solid var(--sf-line,#E4DCD2);background:transparent;
  color:var(--sf-ink,#0F2D52);font-weight:800;text-decoration:none;font-size:.92rem;
}
html body.shop-front .account-auth-tab.is-active{
  background:#0F0F0F;color:#fff;border-color:#0F0F0F;
}
html body.shop-front.theme-dark .account-auth-tab{
  border-color:#243447;color:#E8EEF5;
}
html body.shop-front.theme-dark .account-auth-tab.is-active{
  background:var(--ed-accent,#C8F135);color:var(--ed-accent-contrast,#141414);border-color:var(--ed-accent,#C8F135);
}
html body.shop-front .account-card .btn.primary,
html body.shop-front .account-toolbar .btn.primary{
  box-shadow:none !important;border-radius:999px !important;min-height:46px;
}
html body.shop-front .account-fav-link{display:block}
html body.shop-front .account-fav-link img,
html body.shop-front .account-fav-link .account-fav-ph{width:100%;height:120px;object-fit:contain;background:#efe8df}
/* Auth: form + brand/product aside */
html body.shop-front .account-auth-layout{
  display:grid;grid-template-columns:minmax(280px,420px) minmax(0,1fr);gap:22px;align-items:start;
}
html body.shop-front .account-auth-main{min-width:0}
html body.shop-front .account-auth-layout > .account-hero{grid-column:1 / -1;margin-bottom:4px}
html body.shop-front .account-auth-tabs{max-width:none;margin:0 0 14px}
html body.shop-front .account-grid--auth{
  grid-template-columns:1fr;max-width:none;
}
html body.shop-front .account-grid--auth.is-login-focus #account-register,
html body.shop-front .account-grid--auth.is-register-focus #account-login{display:none}
html body.shop-front .account-card--narrow{max-width:none;margin:0}
html body.shop-front .account-field-hint{
  display:block;margin-top:4px;font-size:.82rem;font-weight:600;color:var(--sf-ink-soft,#667085);
}
html body.shop-front.theme-dark .account-field-hint{color:#A8B0BC}
html body.shop-front .account-auth-aside{width:100%}
html body.shop-front .account-auth-aside__media{
  position:relative;display:block;border-radius:22px;overflow:hidden;
  text-decoration:none;color:#fff;background:#1a1a1a;
  aspect-ratio:4 / 5;max-height:min(640px, 78vh);
}
html body.shop-front .account-auth-aside__media img,
html body.shop-front .account-auth-aside__ph{
  width:100%;height:100%;object-fit:cover;display:block;
}
html body.shop-front .account-auth-aside__ph{
  display:grid;place-items:center;font-weight:800;letter-spacing:.12em;background:linear-gradient(145deg,#2a2a2a,#111);
  color:rgba(255,255,255,.55);
}
html body.shop-front .account-auth-aside__copy{
  position:absolute;inset:auto 0 0 0;padding:22px 22px 24px;
  background:linear-gradient(180deg,transparent 0%,rgba(10,10,10,.72) 38%,rgba(10,10,10,.92) 100%);
  display:grid;gap:6px;
}
html body.shop-front .account-auth-aside__copy span{
  font-size:.75rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#C8F135;
}
html body.shop-front .account-auth-aside__copy strong{
  font-size:clamp(1.15rem,2vw,1.45rem);line-height:1.2;font-weight:800;
}
html body.shop-front .account-auth-aside__copy p{
  margin:0;font-size:.92rem;line-height:1.45;color:rgba(255,255,255,.82);max-width:36ch;
}
html body.shop-front .account-auth-aside__copy em{
  font-style:normal;font-weight:800;font-size:.92rem;color:#fff;margin-top:4px;
}
html body.shop-front .account-auth-aside__media:hover em{text-decoration:underline;text-underline-offset:3px}
html body.shop-front.theme-dark .account-auth-aside__media{background:#0b0d10}
@media (max-width:900px){
  html body.shop-front .account-auth-layout{grid-template-columns:1fr}
  html body.shop-front .account-auth-aside__media{aspect-ratio:16 / 10;max-height:360px}
}
