/* Storefront commerce pages: cart, checkout, account, wishlist, compare */

.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;
}
.muted{color:var(--muted)}

/* ── Page shell ── */
.sf-page{
  padding-top:calc(var(--nurfia-header-h, 108px) + 20px);
  padding-bottom:56px;
  min-height:50vh;
}
.sf-page-title{
  margin:0 0 20px;
  font-size:clamp(22px,2.4vw,28px);
  font-weight:700;
  line-height:1.2;
  color:var(--ink);
}
.sf-breadcrumb{
  margin:0 0 12px;
  font-size:13px;
  color:var(--muted);
}
.sf-breadcrumb a{color:inherit;text-decoration:none}
.sf-breadcrumb a:hover{text-decoration:underline;color:var(--ink)}
.sf-breadcrumb ul{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:6px 8px;
  margin:0;
  padding:0;
  list-style:none;
}
.sf-breadcrumb li+li::before{
  content:"/";
  margin-right:8px;
  color:rgba(0,0,0,.28);
}
.sf-empty{
  padding:40px 20px;
  text-align:center;
  border:1px dashed var(--border);
  border-radius:var(--radius);
  background:#fafafa;
}
.sf-empty p{margin:0 0 16px;font-size:15px;color:var(--muted)}
.sf-flash{
  margin:0 0 16px;
  padding:12px 14px;
  border-radius:var(--radius);
  font-size:14px;
  line-height:1.45;
}
.sf-flash--bad{
  border:1px solid rgba(239,68,68,.35);
  background:rgba(239,68,68,.08);
  color:#b91c1c;
}

/* ── Shared tables ── */
.sf-table-wrap{
  width:100%;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
}
.sf-table,
.sf-data-table,
.sf-wish-table,
.sf-cart-table{
  display:table;
  width:100%;
  border-collapse:collapse;
  font-size:14px;
}
.sf-cart-table thead{display:table-header-group}
.sf-cart-table tbody{display:table-row-group}
.sf-cart-table tr{display:table-row}
.sf-cart-table th,
.sf-cart-table td{display:table-cell}
.sf-table th,
.sf-table td,
.sf-data-table th,
.sf-data-table td,
.sf-wish-table th,
.sf-wish-table td,
.sf-cart-table th,
.sf-cart-table td{
  padding:14px 12px;
  border-bottom:1px solid var(--border);
  vertical-align:top;
  text-align:left;
}
.sf-table thead th,
.sf-data-table thead th,
.sf-wish-table thead th,
.sf-cart-table thead th{
  font-size:12px;
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:.04em;
  color:rgba(0,0,0,.55);
  background:#fafafa;
}
.sf-table tbody tr:last-child td,
.sf-data-table tbody tr:last-child td,
.sf-wish-table tbody tr:last-child td,
.sf-cart-table tbody tr:last-child td{border-bottom:none}

/* ── Cart ── */
.sf-cart-page-inner{padding-top:8px}
.sf-cart-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) min(340px,32vw);
  gap:28px 32px;
  align-items:start;
}
.sf-cart-ship-banner{margin-bottom:18px}
.sf-cart-ship-banner-inner{
  padding:14px 16px;
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:#fafafa;
}
.sf-cart-ship-banner-inner--ok{
  border-color:rgba(22,163,74,.28);
  background:rgba(22,163,74,.06);
}
.sf-cart-ship-banner-head{
  display:flex;
  align-items:flex-start;
  gap:10px;
}
.sf-cart-ship-banner-head p{margin:0;font-size:14px;line-height:1.45}
.sf-cart-ship-ico{flex:0 0 auto;color:var(--ink);opacity:.75}
.sf-cart-ship-progress{
  margin-top:10px;
  height:4px;
  border-radius:999px;
  background:rgba(0,0,0,.08);
  overflow:hidden;
}
.sf-cart-ship-progress>span{
  display:block;
  height:100%;
  background:var(--ink);
  border-radius:inherit;
}
.sf-cart-thumb-link{
  width:72px;
  height:72px;
  flex-shrink:0;
  overflow:hidden;
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:#f8fafc;
  padding:4px;
}
.sf-cart-td-thumb{width:88px}
.sf-cart-td-num{white-space:nowrap;font-variant-numeric:tabular-nums}
.sf-cart-td-product a,
.sf-td-product a{
  font-weight:600;
  color:var(--ink);
  text-decoration:none;
  line-height:1.35;
}
.sf-cart-td-product a:hover,
.sf-td-product a:hover{text-decoration:underline}
.sf-qty-pill{
  display:inline-flex;
  align-items:center;
  border:1px solid var(--border);
  border-radius:var(--radius);
  overflow:hidden;
  background:#fff;
}
.sf-qty-pill-btn{
  width:36px;
  height:36px;
  padding:0;
  border:none;
  background:transparent;
  color:var(--ink);
  font-size:18px;
  line-height:1;
  cursor:pointer;
}
.sf-qty-pill-btn:hover{background:#f5f5f5}
.sf-qty-pill-input{
  width:44px;
  height:36px;
  padding:0 4px;
  border:none;
  border-left:1px solid var(--border);
  border-right:1px solid var(--border);
  text-align:center;
  font-size:14px;
  font-weight:600;
  background:#fff;
}
.sf-cart-remove{
  display:grid;
  place-items:center;
  width:36px;
  height:36px;
  padding:0;
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:#fff;
  color:var(--muted);
  cursor:pointer;
}
.sf-cart-remove:hover{
  border-color:rgba(239,68,68,.4);
  color:#dc2626;
  background:rgba(239,68,68,.06);
}
.sf-cart-mob-actions{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px 14px;
}
.sf-cart-mob-price{display:none}
.sf-cart-actions{
  display:flex;
  flex-direction:column;
  gap:12px;
  margin-top:20px;
  padding-top:20px;
  border-top:1px solid var(--border);
}
.sf-cart-coupon{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
}
.sf-cart-coupon-input{
  flex:1 1 180px;
  min-width:0;
  height:42px;
  padding:0 12px;
  border:1px solid var(--border);
  border-radius:var(--radius);
  font-size:14px;
}
.sf-cart-coupon-actions{display:flex;flex-wrap:wrap;gap:8px}
.sf-cart-coupon-msg{margin:0;font-size:13px}
.sf-cart-clear-btn{align-self:flex-start}
.sf-cart-aside{position:sticky;top:calc(var(--nurfia-header-h, 108px) + 16px)}
.sf-checkout-review-card{
  padding:20px 18px;
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:#fff;
}
.sf-checkout-review-title{
  margin:0 0 16px;
  font-size:16px;
  font-weight:700;
}
.sf-checkout-sum-panel{display:grid;gap:10px}
.sf-checkout-sum-row{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
  font-size:14px;
}
.sf-checkout-sum-row--grand{
  margin-top:6px;
  padding-top:14px;
  border-top:1px solid var(--border);
  font-size:15px;
}
.sf-checkout-sum-label{color:var(--muted)}
.sf-checkout-sum-val{font-weight:600;font-variant-numeric:tabular-nums}
.sf-checkout-sum-grand{font-size:18px;font-weight:700}
.sf-checkout-sum-val--discount{color:#16a34a}
.sf-checkout-place-order{margin-top:18px}
.sf-checkout-submit-btn,
.sf-checkout-place-order .btn{width:100%}

/* ── Wishlist ── */
.sf-wish-td-img a{
  width:72px;
  height:72px;
  overflow:hidden;
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:#f8fafc;
  padding:4px;
}
.sf-wish-td-name a{
  font-weight:600;
  color:var(--ink);
  text-decoration:none;
}
.sf-wish-td-name a:hover{text-decoration:underline}
.sf-wish-price-cell del{color:var(--muted);font-size:13px}
.sf-wish-price-cell ins{text-decoration:none;font-weight:700;color:var(--ink)}
.sf-wish-stock--in{color:#16a34a;font-weight:600;font-size:13px}
.sf-wish-stock--out{color:#dc2626;font-weight:600;font-size:13px}
.sf-wish-addcart{
  min-height:36px;
  padding:8px 14px;
  border:1px solid var(--ink);
  border-radius:var(--radius);
  background:var(--ink);
  color:#fff;
  font-size:12px;
  font-weight:600;
  letter-spacing:.04em;
  text-transform:uppercase;
  cursor:pointer;
}
.sf-wish-addcart:hover{opacity:.88}
.sf-wish-remove{
  width:36px;
  height:36px;
  padding:0;
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:#fff;
  font-size:22px;
  line-height:1;
  color:var(--muted);
  cursor:pointer;
}
.sf-wish-remove:hover{color:#dc2626;border-color:rgba(239,68,68,.35)}

/* ── Compare ── */
.sf-compare-wrap{margin-top:8px}
.sf-compare-scroll{
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:#fff;
}
.sf-compare-table{
  display:table;
  width:100%;
  border-collapse:collapse;
  font-size:14px;
  table-layout:fixed;
}
.sf-compare-table tbody{display:table-row-group}
.sf-compare-table tr{display:table-row}
.sf-compare-table td,
.sf-compare-table th{
  display:table-cell;
  padding:12px 14px;
  border:1px solid var(--border);
  vertical-align:top;
}
.sf-compare-table--vertical .sf-cmp-label{
  width:132px;
  min-width:132px;
  font-size:12px;
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:.04em;
  color:rgba(0,0,0,.55);
  background:#fafafa;
}
.sf-cmp-td-img a{
  display:block;
  width:min(140px,100%);
  margin:0 auto;
  overflow:hidden;
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:#f8fafc;
  padding:6px;
  box-sizing:border-box;
}
.sf-cmp-td-img img{
  display:block;
  width:100%;
  height:auto;
  max-height:160px;
  object-fit:contain;
}
.sf-cmp-td-name a{
  font-weight:600;
  color:var(--ink);
  text-decoration:none;
  line-height:1.35;
}
.sf-cmp-td-name a:hover{text-decoration:underline}
.sf-cmp-remove{
  display:inline-flex;
  align-items:center;
  gap:4px;
  min-height:34px;
  padding:6px 12px;
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:#fff;
  font-size:12px;
  font-weight:600;
  color:var(--muted);
  cursor:pointer;
}
.sf-cmp-remove:hover{
  border-color:rgba(239,68,68,.35);
  color:#dc2626;
}
.sf-cmp-rating-cell{
  display:flex;
  flex-direction:column;
  gap:4px;
  align-items:flex-start;
}
.sf-cmp-stars{
  --star-size:14px;
  display:inline-block;
  width:calc(var(--star-size) * 5);
  height:var(--star-size);
  background:linear-gradient(90deg,#f59e0b var(--pct,0%),#e2e8f0 var(--pct,0%));
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 24'%3E%3Cpath fill='%23000' d='M12 2l2.4 7.4H22l-6 4.6 2.3 7L12 17.8 5.7 21l2.3-7-6-4.6h7.6L12 2Z'/%3E%3Cpath fill='%23000' transform='translate(24)' d='M12 2l2.4 7.4H22l-6 4.6 2.3 7L12 17.8 5.7 21l2.3-7-6-4.6h7.6L12 2Z'/%3E%3Cpath fill='%23000' transform='translate(48)' d='M12 2l2.4 7.4H22l-6 4.6 2.3 7L12 17.8 5.7 21l2.3-7-6-4.6h7.6L12 2Z'/%3E%3Cpath fill='%23000' transform='translate(72)' d='M12 2l2.4 7.4H22l-6 4.6 2.3 7L12 17.8 5.7 21l2.3-7-6-4.6h7.6L12 2Z'/%3E%3Cpath fill='%23000' transform='translate(96)' d='M12 2l2.4 7.4H22l-6 4.6 2.3 7L12 17.8 5.7 21l2.3-7-6-4.6h7.6L12 2Z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 24'%3E%3Cpath fill='%23000' d='M12 2l2.4 7.4H22l-6 4.6 2.3 7L12 17.8 5.7 21l2.3-7-6-4.6h7.6L12 2Z'/%3E%3Cpath fill='%23000' transform='translate(24)' d='M12 2l2.4 7.4H22l-6 4.6 2.3 7L12 17.8 5.7 21l2.3-7-6-4.6h7.6L12 2Z'/%3E%3Cpath fill='%23000' transform='translate(48)' d='M12 2l2.4 7.4H22l-6 4.6 2.3 7L12 17.8 5.7 21l2.3-7-6-4.6h7.6L12 2Z'/%3E%3Cpath fill='%23000' transform='translate(72)' d='M12 2l2.4 7.4H22l-6 4.6 2.3 7L12 17.8 5.7 21l2.3-7-6-4.6h7.6L12 2Z'/%3E%3Cpath fill='%23000' transform='translate(96)' d='M12 2l2.4 7.4H22l-6 4.6 2.3 7L12 17.8 5.7 21l2.3-7-6-4.6h7.6L12 2Z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.sf-cmp-rating-num{font-size:12px;color:var(--muted)}
.sf-cmp-muted{color:var(--muted)}
.sf-compare-mobile{display:none}

/* ── Account ── */
.sf-account-page{padding-top:8px}
.sf-account-layout{
  display:grid;
  grid-template-columns:min(260px,28vw) minmax(0,1fr);
  gap:28px 32px;
  align-items:start;
}
.sf-account-nav{
  position:sticky;
  top:calc(var(--nurfia-header-h, 108px) + 16px);
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:#fff;
  overflow:hidden;
}
.sf-account-user{
  display:flex;
  align-items:center;
  gap:12px;
  padding:16px 14px;
  border-bottom:1px solid var(--border);
  background:#fafafa;
}
.sf-account-user__avatar{
  flex:0 0 auto;
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:rgba(0,0,0,.06);
  color:var(--ink);
}
.sf-account-user__detail{min-width:0;flex:1}
.sf-account-user__name{
  margin:0 0 4px;
  font-size:14px;
  font-weight:700;
  line-height:1.3;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.sf-account-user__custno{
  display:flex;
  flex-wrap:wrap;
  gap:4px 8px;
  font-size:12px;
  color:var(--muted);
}
.sf-account-user__toggle{display:none}
.sf-account-nav__list{
  margin:0;
  padding:6px 0;
  list-style:none;
}
.sf-account-nav__row{
  display:flex;
  align-items:center;
  gap:10px;
  width:100%;
  min-height:44px;
  padding:10px 16px;
  border:none;
  background:transparent;
  color:var(--ink);
  font-size:var(--text-nav, 13px);
  font-weight:var(--fw-nav-menu, 600);
  line-height:var(--lh-nav-menu, 1.35);
  text-decoration:none;
  text-align:left;
  cursor:pointer;
  box-sizing:border-box;
}
a.sf-account-nav__row:hover,
button.sf-account-nav__row:hover{background:rgba(0,0,0,.04)}
.sf-account-nav__list li.is-active .sf-account-nav__row{
  background:rgba(0,0,0,.06);
  font-weight:700;
}
.sf-account-nav__ico{
  flex:0 0 auto;
  display:grid;
  place-items:center;
  width:20px;
  color:rgba(0,0,0,.55);
}
.sf-account-nav__logout-li{border-top:1px solid var(--border);margin-top:4px;padding-top:4px}
.sf-account-main{min-width:0}
.sf-account-main__title{
  margin:0 0 18px;
  font-size:clamp(20px,2.2vw,26px);
  font-weight:700;
  line-height:1.2;
}
.sf-account-main__intro{margin:-8px 0 18px;font-size:14px}
.sf-account-guest-main{
  max-width:480px;
  margin:0 auto;
  padding-top:8px;
}
.sf-account-guest-footnote{
  margin:18px 0 0;
  font-size:13px;
  line-height:1.5;
}
.sf-tabs-account{margin-top:8px}
.sf-tab-btns{
  display:flex;
  gap:0;
  margin-bottom:20px;
  border-bottom:1px solid var(--border);
}
.sf-tab-btn{
  margin:0;
  padding:12px 20px;
  border:none;
  border-bottom:2px solid transparent;
  margin-bottom:-1px;
  background:transparent;
  color:var(--muted);
  font-size:14px;
  font-weight:600;
  cursor:pointer;
}
.sf-tab-btn.is-active{
  color:var(--ink);
  border-bottom-color:var(--ink);
}
.sf-tab-panel[hidden]{display:none}
.sf-stack-form{
  display:flex;
  flex-direction:column;
  gap:14px;
}
.sf-stack-form label,
.sf-account-form label{
  display:flex;
  flex-direction:column;
  gap:6px;
  font-size:13px;
  font-weight:600;
  color:rgba(0,0,0,.78);
}
.sf-stack-form input,
.sf-stack-form select,
.sf-stack-form textarea,
.sf-account-form input,
.sf-account-form select,
.sf-account-form textarea{
  width:100%;
  box-sizing:border-box;
  min-height:44px;
  padding:10px 12px;
  border:1px solid var(--border);
  border-radius:var(--radius);
  font-size:15px;
  font-weight:500;
  font-family:inherit;
  background:#fff;
  color:var(--ink);
}
.sf-stack-form textarea,
.sf-account-form textarea{min-height:100px;resize:vertical}
.sf-stack-form input:focus,
.sf-stack-form select:focus,
.sf-stack-form textarea:focus,
.sf-account-form input:focus,
.sf-account-form select:focus,
.sf-account-form textarea:focus{
  outline:2px solid rgba(0,0,0,.12);
  outline-offset:1px;
  border-color:rgba(0,0,0,.35);
}
.sf-account-login-actions{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:12px 16px;
  margin-top:4px;
}
.sf-account-forgot-link{
  font-size:13px;
  font-weight:600;
  color:var(--ink);
  text-decoration:underline;
  text-underline-offset:2px;
}
.sf-account-form__actions{margin-top:8px}
.sf-account-copy{font-size:14px;line-height:1.55;color:var(--muted)}
.sf-account-dash-grid{
  display:grid;
  grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);
  gap:20px;
}
.sf-account-dash-card{
  padding:18px;
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:#fff;
}
.sf-account-dash-card__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:14px;
}
.sf-account-dash-card__title{
  margin:0;
  font-size:15px;
  font-weight:700;
}
.sf-account-dash-card__link{font-size:13px;font-weight:600;text-decoration:underline}
.sf-account-dash-shortcuts{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  margin:0;
  padding:0;
  list-style:none;
}
.sf-account-dash-shortcut{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  min-height:44px;
  padding:10px 12px;
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:#fafafa;
  font-size:13px;
  font-weight:600;
  color:var(--ink);
  text-decoration:none;
}
.sf-account-dash-shortcut:hover{background:#f0f0f0}
.sf-account-order-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) min(300px,32vw);
  gap:24px;
  align-items:start;
}
.sf-account-order-card{
  padding:18px;
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:#fff;
}
.sf-account-order-card__title{margin:0 0 14px;font-size:15px;font-weight:700}
.sf-account-order-lines{margin:0;padding:0;list-style:none}
.sf-account-order-line{
  display:flex;
  gap:12px;
  padding:12px 0;
  border-bottom:1px solid var(--border);
}
.sf-account-order-line:last-child{border-bottom:none;padding-bottom:0}
.sf-account-order-line__thumb{
  width:64px;
  height:64px;
  flex-shrink:0;
  overflow:hidden;
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:#f8fafc;
  padding:4px;
}
.sf-account-order-line__main{min-width:0;flex:1}
.sf-account-order-line__title{
  font-weight:600;
  color:var(--ink);
  text-decoration:none;
}
.sf-account-order-line__title:hover{text-decoration:underline}
.sf-account-review-cards{margin:0;padding:0;list-style:none;display:grid;gap:14px}
.sf-account-review-card{
  display:flex;
  gap:14px;
  padding:16px;
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:#fff;
}
.sf-account-review-card__imglink{
  width:72px;
  height:72px;
  flex-shrink:0;
  overflow:hidden;
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:#f8fafc;
  padding:4px;
}

/* ── Checkout (shared with cart aside) ── */
.sf-checkout-page-inner{padding-top:8px}
.sf-checkout-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) min(340px,32vw);
  gap:28px 32px;
  align-items:start;
}
.sf-checkout-main{
  min-width:0;
}
.sf-checkout-aside{
  position:sticky;
  top:calc(var(--nurfia-header-h, 108px) + 16px);
  min-width:0;
  width:100%;
  align-self:start;
}
.sf-checkout-main-order{
  display:none;
  margin-top:8px;
  padding:18px;
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:#fff;
}
.sf-checkout-main-order__total{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
  margin-bottom:14px;
  font-size:15px;
}
.sf-checkout-main-order__total strong{
  font-size:18px;
  font-variant-numeric:tabular-nums;
}
.sf-checkout-sticky-bar{
  display:none;
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  z-index:120;
  padding:12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  border-top:1px solid var(--border);
  background:rgba(255,255,255,.97);
  box-shadow:0 -8px 24px rgba(15,23,42,.08);
  backdrop-filter:blur(8px);
}
.sf-checkout-sticky-bar__inner{
  max-width:var(--max, 1440px);
  margin:0 auto;
  display:flex;
  align-items:center;
  gap:12px;
}
.sf-checkout-sticky-bar__total{
  flex:1 1 auto;
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:2px;
  font-size:12px;
  color:var(--muted);
}
.sf-checkout-sticky-bar__total strong{
  font-size:17px;
  color:var(--ink);
  font-variant-numeric:tabular-nums;
}
.sf-checkout-sticky-bar .btn{
  flex:0 0 auto;
  min-width:min(100%, 220px);
}
.sf-checkout-sticky-bar.is-collapsed{
  display:none !important;
}
.sf-checkout-sticky-bar--btn .sf-checkout-sticky-bar__inner{
  display:block;
}
.sf-checkout-sticky-bar--btn .sf-checkout-submit-btn{
  width:100%;
  min-height:48px;
  padding:12px 16px;
  font-size:12px;
  letter-spacing:.06em;
  box-shadow:0 4px 14px rgba(15,23,42,.18);
}
.sf-checkout-h3{
  margin:0 0 14px;
  font-size:15px;
  font-weight:700;
}
.sf-fieldset{
  margin:0 0 22px;
  padding:0;
  border:none;
}
.sf-checkout-fieldset{
  display:flex;
  flex-direction:column;
  gap:14px;
  min-width:0;
}
.sf-checkout-fieldset > legend.sf-checkout-h3{
  margin:0;
  padding:0;
}
.sf-checkout-field-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px 16px;
}
.sf-field{display:flex;flex-direction:column;gap:6px}
.sf-field--textarea{grid-column:1/-1}
.sf-field label{font-size:13px;font-weight:600;color:rgba(0,0,0,.78)}
.sf-field input,
.sf-field select,
.sf-field textarea{
  width:100%;
  box-sizing:border-box;
  min-height:44px;
  padding:10px 12px;
  border:1px solid var(--border);
  border-radius:var(--radius);
  font-size:15px;
  font-family:inherit;
  background:#fff;
}
.sf-field textarea{min-height:88px;resize:vertical}
.sf-req{color:#dc2626}
.sf-opt{font-weight:500;color:var(--muted);font-size:12px}
.sf-field input:focus,
.sf-field select:focus,
.sf-field textarea:focus{
  outline:2px solid rgba(0,0,0,.1);
  outline-offset:1px;
  border-color:rgba(0,0,0,.35);
}
/* Floating-label markup: keep labels above inputs */
.sf-field--float label{order:-1}
.sf-field--float input::placeholder,
.sf-field--float textarea::placeholder{color:transparent}

/* Deutschland Adressblock */
.sf-de-addr-block{
  display:flex;
  flex-direction:column;
  gap:14px;
  margin:0;
}
.sf-de-addr-row{
  display:grid;
  gap:14px 16px;
}
.sf-de-addr-row--street{grid-template-columns:minmax(0,1fr) 108px}
.sf-de-addr-row--city{grid-template-columns:132px minmax(0,1fr)}
.sf-de-addr-row--region{grid-template-columns:repeat(2,minmax(0,1fr))}
.sf-de-addr-full{grid-column:1/-1;width:100%}
.sf-field--select label{
  order:unset;
  margin-bottom:2px;
}
.sf-field--select select{
  appearance:auto;
  cursor:pointer;
}
.sf-checkout-field-grid--contact .sf-field--salutation{grid-column:1 / -1}
.sf-field--salutation{max-width:100%}

/* Province combobox */
.sf-combobox-wrap{
  display:flex;
  flex-direction:column;
  gap:6px;
}
.sf-combobox-field-label{
  font-size:13px;
  font-weight:600;
  color:rgba(0,0,0,.78);
}
.sf-combobox{position:relative}
.sf-combobox__trigger{
  display:flex;
  align-items:center;
  gap:8px;
  width:100%;
  box-sizing:border-box;
  min-height:44px;
  padding:10px 12px;
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:#fff;
  font-size:15px;
  font-family:inherit;
  text-align:left;
  cursor:pointer;
}
.sf-combobox__trigger.is-placeholder .sf-combobox__trigger-text{color:var(--muted)}
.sf-combobox__trigger-leading,
.sf-combobox__chev{
  display:flex;
  flex:0 0 auto;
  color:var(--muted);
}
.sf-combobox__trigger-text{
  flex:1;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.sf-combobox__trigger:focus-visible{
  outline:2px solid rgba(0,0,0,.1);
  outline-offset:1px;
  border-color:rgba(0,0,0,.35);
}
.sf-combobox__dropdown{
  position:absolute;
  z-index:60;
  top:calc(100% + 4px);
  left:0;
  right:0;
  max-height:min(280px,50vh);
  overflow:hidden;
  display:none;
  flex-direction:column;
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:#fff;
  box-shadow:0 12px 32px rgba(0,0,0,.12);
}
.sf-combobox.is-open .sf-combobox__dropdown{
  display:flex;
}
.sf-combobox__search-wrap{padding:8px;border-bottom:1px solid var(--border)}
.sf-combobox__search{
  width:100%;
  box-sizing:border-box;
  min-height:36px;
  padding:8px 10px;
  border:1px solid var(--border);
  border-radius:var(--radius);
  font-size:14px;
  font-family:inherit;
}
.sf-combobox__list{
  margin:0;
  padding:6px 0;
  list-style:none;
  overflow-y:auto;
}
.sf-combobox__option{
  display:block;
  width:100%;
  padding:9px 14px;
  border:none;
  background:transparent;
  font-size:14px;
  font-family:inherit;
  text-align:left;
  cursor:pointer;
}
.sf-combobox__option:hover,
.sf-combobox__option[aria-selected="true"]{background:#f5f5f5}

/* Checkout coupon bar */
.sf-checkout-coupon-wrap{margin-bottom:20px}
.sf-checkout-coupon-bar{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 14px;
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:#fafafa;
}
.sf-checkout-coupon-ico{
  flex:0 0 auto;
  display:grid;
  place-items:center;
  width:32px;
  height:32px;
  border-radius:50%;
  background:rgba(0,0,0,.07);
  font-size:14px;
  font-weight:700;
  line-height:1;
  color:var(--ink);
}
.sf-checkout-coupon-bar p{
  margin:0;
  font-size:14px;
  line-height:1.45;
}
.sf-checkout-coupon-link{
  padding:0;
  border:none;
  background:none;
  font:inherit;
  font-weight:600;
  color:var(--ink);
  text-decoration:underline;
  text-underline-offset:2px;
  cursor:pointer;
}
.sf-checkout-coupon-link:hover{opacity:.85}
.sf-checkout-coupon-accordion{
  display:grid;
  grid-template-rows:0fr;
  transition:grid-template-rows .22s ease;
}
.sf-checkout-coupon-accordion.is-open{grid-template-rows:1fr}
.sf-checkout-coupon-accordion-sizer{overflow:hidden}
.sf-checkout-coupon-panel{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  padding:12px 0 2px;
}
.sf-checkout-coupon-input{
  flex:1 1 200px;
  min-width:0;
  height:42px;
  padding:0 12px;
  border:1px solid var(--border);
  border-radius:var(--radius);
  font-size:14px;
  font-family:inherit;
  background:#fff;
}
.sf-cart-coupon-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:stretch;
}
.sf-cart-coupon-btn{
  min-height:42px;
  height:42px;
  padding:0 16px;
  white-space:nowrap;
}
.sf-cart-coupon-btn:not(.variant-muted):not(.variant-primary){
  border-color:var(--ink);
  background:var(--ink);
  color:#fff;
}
.sf-cart-coupon-btn:not(.variant-muted):not(.variant-primary):hover{opacity:.9}
.sf-cart-coupon-msg{margin:8px 0 0;font-size:13px}

/* Checkout shipping banner (reuses cart ship banner inner markup) */
.sf-checkout-ship-banner{margin-bottom:18px}

/* Billing toggle */
.sf-checkout-billing-bar{margin:4px 0 20px}
.sf-checkout-billing-toggle{
  display:flex;
  align-items:flex-start;
  gap:12px;
  padding:14px 16px;
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:#fafafa;
  cursor:pointer;
}
.sf-checkout-billing-toggle input{
  flex:0 0 auto;
  width:18px;
  height:18px;
  margin:2px 0 0;
}
.sf-checkout-billing-toggle__text{
  display:flex;
  flex-direction:column;
  gap:4px;
  min-width:0;
}
.sf-checkout-billing-toggle__title{
  font-size:14px;
  font-weight:600;
  color:var(--ink);
}
.sf-checkout-billing-toggle__hint{
  font-size:13px;
  line-height:1.45;
  color:var(--muted);
}
.sf-checkout-billing-panel[hidden]{display:none}
.sf-checkout-billing-type-hint{
  margin:0 0 10px;
  font-size:13px;
  font-weight:600;
  color:rgba(0,0,0,.78);
}
.sf-checkout-billing-type{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-bottom:16px;
}
.sf-checkout-billing-type-opt{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 14px;
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:#fff;
  font-size:14px;
  font-weight:600;
  cursor:pointer;
}
.sf-checkout-billing-type-opt:has(input:checked){
  border-color:var(--ink);
  background:#fafafa;
}
.sf-checkout-billing-block[hidden]{display:none}
.sf-checkout-field-grid--corp{grid-template-columns:repeat(3,minmax(0,1fr))}

/* Carrier selection */
.sf-checkout-carrier-hint{
  margin:0 0 10px;
  font-size:13px;
  font-weight:600;
  color:rgba(0,0,0,.78);
}
.sf-checkout-carrier-list{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:stretch;
}
.sf-checkout-carrier-opt{
  position:relative;
  display:block;
  flex:1 1 min(148px,calc(50% - 5px));
  min-width:min(148px,calc(50% - 5px));
  max-width:100%;
  margin:0;
  cursor:pointer;
  font:inherit;
}
.sf-checkout-carrier-opt input{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  margin:0;
  opacity:0;
  cursor:pointer;
  z-index:2;
}
.sf-checkout-carrier-opt__box{
  position:relative;
  z-index:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:6px;
  min-height:88px;
  padding:12px 14px;
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:#fff;
  text-align:center;
  transition:border-color .15s ease,background .15s ease;
  pointer-events:none;
}
.sf-checkout-carrier-opt:hover .sf-checkout-carrier-opt__box{
  border-color:rgba(0,0,0,.22);
  background:#fafafa;
}
.sf-checkout-carrier-opt input:focus-visible + .sf-checkout-carrier-opt__box{
  outline:2px solid rgba(0,0,0,.1);
  outline-offset:1px;
  border-color:rgba(0,0,0,.35);
}
.sf-checkout-carrier-opt input:checked + .sf-checkout-carrier-opt__box{
  border-color:var(--ink);
  background:#fafafa;
}
.sf-checkout-carrier-logo{
  display:block;
  max-width:72px;
  max-height:40px;
  width:auto;
  height:auto;
  object-fit:contain;
}
.sf-checkout-carrier-name{
  font-size:13px;
  font-weight:600;
  line-height:1.35;
  color:var(--ink);
  word-break:break-word;
}
.sf-checkout-muted{
  margin:0;
  font-size:14px;
  line-height:1.5;
  color:var(--muted);
}
.sf-checkout-back{margin-top:8px}
.sf-checkout-ship-note{
  margin:2px 0 0;
  font-size:12px;
  line-height:1.45;
  color:var(--muted);
}

/* Checkout aside: payment & consents */
.sf-checkout-payment-block{
  margin-top:20px;
  padding-top:18px;
  border-top:1px solid var(--border);
}
.sf-checkout-payment-title{
  margin:0 0 12px;
  font-size:15px;
  font-weight:700;
}
.sf-checkout-pay-methods{
  margin:0;
  padding:0;
  list-style:none;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.sf-checkout-pay-label{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:14px;
  font-weight:600;
  cursor:pointer;
}
.sf-checkout-pay-detail{
  margin-top:10px;
  padding:12px 14px;
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:#fafafa;
}
.sf-checkout-pay-detail[hidden]{display:none}
.sf-checkout-payment-desc{
  margin:0;
  font-size:13px;
  line-height:1.5;
  color:var(--muted);
}
.sf-checkout-bank p{margin:0 0 6px;font-size:13px;line-height:1.45}
.sf-checkout-bank p:last-child{margin-bottom:0}
.sf-checkout-bank code{
  font-size:12px;
  word-break:break-all;
}
.sf-checkout-legal{
  display:flex;
  flex-direction:column;
  gap:12px;
  margin-bottom:14px;
}
.sf-checkout-legal-note{
  margin:0;
  font-size:11px;
  line-height:1.45;
  color:var(--muted);
}
.sf-checkout-legal-docs{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:0;
  padding:0;
  list-style:none;
}
.sf-checkout-legal-doc-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:32px;
  padding:6px 12px;
  border:1px solid var(--border);
  border-radius:999px;
  background:#fff;
  color:var(--ink);
  font-size:11px;
  font-weight:600;
  line-height:1.2;
  text-decoration:none;
  white-space:nowrap;
  transition:border-color .15s ease, background .15s ease, color .15s ease;
}
.sf-checkout-legal-doc-btn:hover{
  border-color:rgba(0,0,0,.28);
  background:#f8fafc;
  color:var(--ink);
}
.sf-checkout-legal-doc-btn:focus-visible{
  outline:2px solid var(--ink);
  outline-offset:2px;
}
.sf-checkout-place-order--aside{
  margin-top:20px;
  padding-top:16px;
  border-top:1px solid var(--border);
}

/* Checkout: yasal belge modalı — uzun metinler kaydırılabilir */
.sf-checkout-legal-backdrop{
  z-index:360;
}
.sf-checkout-legal-modal{
  z-index:361;
  overflow-y:auto;
  align-items:flex-start;
  padding:max(16px, env(safe-area-inset-top, 0px)) 20px max(16px, env(safe-area-inset-bottom, 0px));
}
.sf-checkout-legal-modal__inner{
  display:flex;
  flex-direction:column;
  width:min(720px, 94vw);
  max-height:min(88dvh, 900px);
  margin:auto 0;
  padding:0;
  overflow:hidden;
}
.sf-checkout-legal-modal__head{
  flex:0 0 auto;
  padding:20px 52px 14px 22px;
  border-bottom:1px solid var(--border);
}
.sf-checkout-legal-modal__title{
  font-size:clamp(18px, 2.4vw, 22px);
  line-height:1.3;
}
.sf-checkout-legal-modal__body{
  flex:1 1 auto;
  min-height:0;
  overflow-x:hidden;
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior:contain;
  padding:18px 22px;
}
.sf-checkout-legal-modal__foot{
  flex:0 0 auto;
  display:flex;
  justify-content:flex-end;
  gap:10px;
  padding:14px 22px 18px;
  border-top:1px solid var(--border);
  background:#fff;
}
.sf-checkout-legal-modal .modal-close{
  top:10px;
  right:10px;
}
.sf-checkout-legal-panel{
  max-width:none;
}

/* ── Responsive ── */
@media (max-width:1100px){
  .sf-page{
    padding-top:calc(var(--nurfia-control, 42px) + 28px);
    padding-bottom:40px;
  }
  .sf-cart-layout,
  .sf-checkout-layout,
  .sf-account-layout,
  .sf-account-order-grid,
  .sf-account-dash-grid{
    grid-template-columns:1fr;
  }
  .sf-checkout-aside{
    position:static;
  }
  .sf-checkout-sticky-bar:not(.is-collapsed){
    display:block;
  }
  .sf-page:has(.sf-checkout-form){
    padding-bottom:calc(76px + env(safe-area-inset-bottom, 0px));
  }
  .sf-cart-aside,
  .sf-account-nav{position:static}
  .sf-account-user__toggle{display:block}
  .sf-account-nav__list:not(.is-open){display:none}
  .sf-account-nav__list.is-open{display:block}
}
@media (max-width:980px){
  .sf-checkout-sticky-bar:not(.is-collapsed){
    bottom:calc(var(--mobile-bottom-nav-h, 72px) + env(safe-area-inset-bottom, 0px));
    z-index:200;
  }
  .sf-page:has(.sf-checkout-form){
    padding-bottom:calc(76px + var(--mobile-bottom-nav-h, 72px) + env(safe-area-inset-bottom, 0px));
  }
}
@media (max-width:720px){
  .sf-cart-table,
  .sf-cart-table tbody{display:block}
  .sf-cart-table thead{display:none}
  .sf-cart-table tbody tr{
    display:grid;
    grid-template-columns:72px minmax(0,1fr) auto;
    grid-template-areas:
      "thumb product remove"
      "price price price"
      "qty qty qty";
    gap:10px 12px;
    padding:16px 0;
    border-bottom:1px solid var(--border);
  }
  .sf-cart-table tbody tr:last-child{border-bottom:none}
  .sf-cart-table td{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:0;
    border:none;
  }
  .sf-cart-table td::before{
    content:attr(data-title);
    flex:0 0 6.5rem;
    font-size:12px;
    font-weight:600;
    text-transform:uppercase;
    letter-spacing:.04em;
    color:rgba(0,0,0,.5);
  }
  .sf-cart-td-thumb::before,
  .sf-cart-td-remove::before,
  .sf-td-product::before{display:none}
  .sf-cart-td-thumb{
    grid-area:thumb;
    display:block;
    width:auto;
    padding:0;
    align-self:start;
  }
  .sf-cart-table .sf-td-product{
    grid-area:product;
    display:block;
    align-self:center;
    min-width:0;
  }
  .sf-cart-table .sf-td-product a{
    display:block;
    word-break:break-word;
  }
  .sf-cart-td-remove{
    grid-area:remove;
    justify-content:flex-end;
    align-self:start;
    padding:0;
  }
  .sf-cart-td-num[data-title="Preis"]{grid-area:price}
  .sf-cart-td-qty{grid-area:qty}
  .sf-cart-line-subtotal{display:none}
  .sf-cart-mob-price{
    display:block;
    white-space:nowrap;
    font-variant-numeric:tabular-nums;
  }
  .sf-cart-td-qty .sf-cart-mob-actions{
    flex:1 1 auto;
    justify-content:flex-end;
    min-width:0;
  }
  .sf-cart-coupon{
    flex-direction:column;
    align-items:stretch;
  }
  .sf-cart-coupon-input{
    flex:none;
    width:100%;
  }
  .sf-cart-coupon-actions{
    flex-direction:column;
    width:100%;
  }
  .sf-cart-coupon-btn,
  .sf-cart-clear-btn{
    width:100%;
    align-self:stretch;
  }
  .sf-checkout-field-grid,
  .sf-checkout-field-grid--corp{grid-template-columns:1fr}
  .sf-de-addr-row--street,
  .sf-de-addr-row--city,
  .sf-de-addr-row--region{grid-template-columns:1fr}
  .sf-wish-table,
  .sf-wish-table tbody{display:block}
  .sf-wish-table thead{display:none}
  .sf-wish-table tbody tr{
    display:grid;
    grid-template-columns:72px minmax(0,1fr) auto;
    grid-template-areas:
      "thumb product remove"
      "price price price"
      "stock stock stock"
      "cart cart cart";
    gap:10px 12px;
    padding:16px 0;
    border-bottom:1px solid var(--border);
  }
  .sf-wish-table tbody tr:last-child{border-bottom:none}
  .sf-wish-table td{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:0;
    border:none;
  }
  .sf-wish-table td[data-sf-wish-cell="img"]{
    grid-area:thumb;
    display:block;
    align-self:start;
  }
  .sf-wish-table td[data-sf-wish-cell="name"]{
    grid-area:product;
    display:block;
    align-self:center;
    min-width:0;
    font-weight:600;
  }
  .sf-wish-table td[data-sf-wish-cell="name"] a{
    display:block;
    word-break:break-word;
  }
  .sf-wish-table td[data-sf-wish-cell="remove"]{
    grid-area:remove;
    justify-content:flex-end;
    align-self:start;
  }
  .sf-wish-table td[data-sf-wish-cell="price"]{grid-area:price}
  .sf-wish-table td[data-sf-wish-cell="price"]::before{
    content:"Fiyat";
    flex:0 0 6.5rem;
    font-size:12px;
    font-weight:600;
    text-transform:uppercase;
    letter-spacing:.04em;
    color:rgba(0,0,0,.5);
  }
  .sf-wish-table td[data-sf-wish-cell="stock"]{grid-area:stock}
  .sf-wish-table td[data-sf-wish-cell="stock"]::before{
    content:"Stok";
    flex:0 0 6.5rem;
    font-size:12px;
    font-weight:600;
    text-transform:uppercase;
    letter-spacing:.04em;
    color:rgba(0,0,0,.5);
  }
  .sf-wish-table td[data-sf-wish-cell="cart"]{
    grid-area:cart;
    display:block;
  }
  .sf-wish-table td[data-sf-wish-cell="cart"] .sf-wish-addcart{
    display:flex;
    align-items:center;
    justify-content:center;
    width:100%;
    min-height:42px;
  }
  .sf-compare-scroll{display:none}
  .sf-compare-wrap{
    border:1px solid var(--border);
    border-radius:var(--radius);
    background:#fff;
    padding:0 14px;
  }
  .sf-compare-mobile{display:block}
  .sf-cmp-card{
    padding:16px 0;
    border-bottom:1px solid var(--border);
  }
  .sf-cmp-card:last-child{border-bottom:none}
  .sf-cmp-card__head{
    display:grid;
    grid-template-columns:72px minmax(0,1fr) auto;
    gap:10px 12px;
    align-items:start;
    margin-bottom:10px;
  }
  .sf-cmp-card__thumb{
    display:block;
    width:72px;
    height:72px;
    overflow:hidden;
    border:1px solid var(--border);
    border-radius:var(--radius);
    background:#f8fafc;
    padding:4px;
    box-sizing:border-box;
  }
  .sf-cmp-card__thumb img{
    width:100%;
    height:100%;
    object-fit:contain;
  }
  .sf-cmp-card__title{
    align-self:center;
    min-width:0;
    font-weight:600;
    line-height:1.35;
  }
  .sf-cmp-card__title a{
    color:var(--ink);
    text-decoration:none;
    word-break:break-word;
  }
  .sf-cmp-card__remove{
    align-self:start;
    justify-self:end;
    min-height:36px;
    padding:0 10px;
  }
  .sf-cmp-card__attrs{
    display:grid;
    gap:8px;
    margin:0 0 12px;
  }
  .sf-cmp-card__row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin:0;
  }
  .sf-cmp-card__row dt{
    flex:0 0 6.5rem;
    margin:0;
    font-size:12px;
    font-weight:600;
    text-transform:uppercase;
    letter-spacing:.04em;
    color:rgba(0,0,0,.5);
  }
  .sf-cmp-card__row dd{
    margin:0;
    text-align:right;
    min-width:0;
  }
  .sf-cmp-card__row dd .sf-cmp-rating-cell{align-items:flex-end}
  .sf-cmp-card__cart{
    display:flex;
    align-items:center;
    justify-content:center;
    width:100%;
    min-height:42px;
  }
}
