:root {
  --sf-bg: #fafaf8;
  --sf-surface: #ffffff;
  --sf-text: #1c1917;
  --sf-muted: #78716c;
  --sf-border: #e7e5e4;
  --sf-primary: #1b3a6b;
  --sf-primary-soft: #e6eef7;
  --sf-danger: #b91c1c;
  --sf-radius: 14px;
  --sf-safe-bottom: env(safe-area-inset-bottom, 0px);
  --sf-font: 'DM Sans', system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--sf-bg);
  color: var(--sf-text);
  font-family: var(--sf-font);
  -webkit-font-smoothing: antialiased;
}

.hidden {
  display: none !important;
}

.sf-app {
  min-height: 100vh;
  max-width: 1180px;
  margin: 0 auto;
  position: relative;
  width: 100%;
}

#sfCatalogView {
  padding-bottom: calc(72px + var(--sf-safe-bottom));
}

.sf-boot,
.sf-state {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 32px 20px;
  text-align: center;
  color: var(--sf-muted);
}

.sf-boot-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid #d6d3d1;
  border-top-color: var(--sf-primary);
  border-radius: 50%;
  animation: sf-spin 0.8s linear infinite;
}

@keyframes sf-spin {
  to {
    transform: rotate(360deg);
  }
}

.sf-state h1 {
  margin: 0;
  color: var(--sf-text);
  font-size: 22px;
}

.sf-header {
  background: var(--sf-surface);
  border-bottom: 1px solid var(--sf-border);
}

.sf-announcement {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  letter-spacing: 0.01em;
  word-break: break-word;
}

.sf-announcement[hidden] {
  display: none;
}

.sf-header-cover {
  height: 160px;
  background-size: cover;
  background-position: center;
  background-color: #d6d3d1;
}

@media (min-width: 768px) {
  .sf-header-cover {
    height: 220px;
  }

  .sf-header-inner,
  .sf-toolbar,
  .sf-cats,
  .sf-content {
    padding-left: 24px;
    padding-right: 24px;
  }
}

.sf-header-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 14px;
}

.sf-brand {
  display: flex;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.sf-logo {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  overflow: hidden;
  flex: 0 0 auto;
  background: var(--sf-primary-soft);
  border: 1px solid var(--sf-border);
}

.sf-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sf-brand-text {
  min-width: 0;
}

.sf-brand-text h1 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
}

.sf-tagline,
.sf-meta {
  margin: 3px 0 0;
  font-size: 12px;
  color: var(--sf-muted);
  line-height: 1.4;
}

.sf-tagline {
  white-space: pre-wrap;
}

.sf-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.sf-wa-btn .material-icons {
  font-size: 18px;
}

.sf-cats {
  position: sticky;
  top: 54px;
  z-index: 20;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 16px;
  background: rgba(250, 250, 248, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--sf-border);
  scrollbar-width: none;
}

.sf-toolbar {
  position: sticky;
  top: 0;
  z-index: 21;
  padding: 10px 16px 0;
  background: rgba(250, 250, 248, 0.96);
  backdrop-filter: blur(8px);
}

.sf-search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--sf-border);
  border-radius: 12px;
  background: var(--sf-surface);
}

.sf-search .material-icons {
  font-size: 20px;
  color: var(--sf-muted);
}

.sf-search input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font: inherit;
  font-size: 14px;
  color: inherit;
}

.sf-search-clear {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--sf-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.sf-search-clear .material-icons {
  font-size: 18px;
}

.sf-pager {
  display: none;
}

.sf-infinite {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 8px 16px 16px;
  color: var(--sf-muted);
  font-size: 13px;
  font-weight: 500;
}

.sf-infinite[hidden] {
  display: none;
}

.sf-footer {
  margin-top: 8px;
  padding: 24px 16px 16px;
  border-top: 1px solid var(--sf-border);
  background: transparent;
}

.sf-footer.hidden {
  display: none;
}

.sf-footer-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
  align-items: center;
}

.sf-footer-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--sf-muted);
  white-space: pre-wrap;
  text-align: center;
}

.sf-infinite-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid #d6d3d1;
  border-top-color: var(--sf-primary);
  border-radius: 50%;
  animation: sf-spin 0.7s linear infinite;
}

.sf-pager-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--sf-border);
  border-radius: 10px;
  background: var(--sf-surface);
  color: inherit;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.sf-pager-btn:disabled {
  opacity: 0.45;
  cursor: default;
}

.sf-pager-meta {
  font-size: 13px;
  color: var(--sf-muted);
  font-weight: 500;
}

.sf-content.is-loading {
  opacity: 0.55;
  pointer-events: none;
}

.sf-results-meta {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--sf-muted);
}

.sf-cats::-webkit-scrollbar {
  display: none;
}

.sf-cat-chip {
  flex: 0 0 auto;
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--sf-border);
  border-radius: 999px;
  background: var(--sf-surface);
  color: var(--sf-muted);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.sf-cat-chip.is-active {
  background: var(--sf-primary);
  border-color: var(--sf-primary);
  color: #fff;
}

.sf-content {
  padding: 12px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.sf-section-title {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
}

.sf-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (min-width: 768px) {
  .sf-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

@media (min-width: 1100px) {
  .sf-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}

.sf-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 76px;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--sf-border);
  border-radius: 12px;
  background: var(--sf-surface);
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  width: 100%;
  align-items: center;
}

.sf-card:hover {
  border-color: #d6d3d1;
}

.sf-card-wrap {
  position: relative;
  display: grid;
}

.sf-card-wrap.has-add .sf-card-body {
  padding-right: 38px;
}

.sf-card-add {
  position: absolute;
  right: 96px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid var(--sf-border);
  border-radius: 8px;
  background: var(--sf-surface);
  color: var(--sf-primary);
  cursor: pointer;
}

.sf-card-add .material-icons {
  font-size: 20px;
}

.sf-card-add:disabled {
  opacity: 0.6;
  cursor: progress;
}

.sf-card-add.is-added {
  border-color: var(--sf-primary);
  background: var(--sf-primary);
  color: #fff;
}

@media (min-width: 768px) {
  .sf-card-add {
    right: 108px;
  }
}

.sf-card-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sf-card-name {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sf-card-desc {
  margin: 0;
  font-size: 11px;
  color: var(--sf-muted);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sf-card-price {
  margin-top: 2px;
  font-size: 13px;
  font-weight: 700;
  color: var(--sf-primary);
}

.sf-card-thumb {
  width: 76px;
  height: 76px;
  border-radius: 10px;
  overflow: hidden;
  background: #f5f5f4;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .sf-card {
    grid-template-columns: minmax(0, 1fr) 84px;
    padding: 12px;
    gap: 12px;
  }

  .sf-card-thumb {
    width: 84px;
    height: 84px;
  }

  .sf-card-name {
    font-size: 13.5px;
  }

  .sf-card-price {
    font-size: 13.5px;
  }
}

.sf-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sf-card-thumb--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a8a29e;
}

.sf-card-thumb--empty .material-icons {
  font-size: 28px;
}

.sf-tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: calc(58px + var(--sf-safe-bottom));
  padding: 0 4px var(--sf-safe-bottom);
  background: rgba(255, 255, 255, 0.94);
  border-top: 1px solid var(--sf-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.sf-tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: none;
  background: transparent;
  color: var(--sf-muted);
  font: inherit;
  cursor: pointer;
  padding: 6px 4px 4px;
  min-width: 0;
}

.sf-tab .material-icons {
  font-size: 22px;
  line-height: 1;
}

.sf-tab-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.sf-tab.is-active {
  color: var(--sf-primary);
}

.sf-tab.is-active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 2px;
  border-radius: 0 0 2px 2px;
  background: var(--sf-primary);
}

.sf-tab-badge {
  position: absolute;
  top: 4px;
  right: calc(50% - 22px);
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--sf-primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

.sf-orders-view,
.sf-order-detail-view,
.sf-cart-view,
.sf-checkout-view {
  min-height: 100dvh;
  padding-bottom: calc(72px + var(--sf-safe-bottom));
  background: var(--sf-bg);
}

.sf-cart-view.has-advance {
  padding-bottom: calc(140px + var(--sf-safe-bottom));
}

.sf-checkout-view {
  padding-bottom: calc(88px + var(--sf-safe-bottom));
}

.sf-main.is-checkout-page .sf-tabbar,
.sf-main.is-identify-page .sf-tabbar {
  display: none;
}

.sf-orders-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 720px;
  margin: 0 auto;
}

.sf-orders-empty {
  margin: 48px 12px;
  text-align: center;
  color: var(--sf-muted);
  font-size: 14px;
  line-height: 1.5;
}

.sf-order-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  background: var(--sf-surface);
  border: 1px solid var(--sf-border);
  border-radius: 12px;
}

.sf-order-card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.sf-order-id {
  font-size: 14px;
  font-weight: 700;
}

.sf-order-status {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}

.sf-order-status.is-open {
  background: #eff6ff;
  color: #1d4ed8;
}

.sf-order-status.is-prep {
  background: #ecfeff;
  color: #0e7490;
}

.sf-order-status.is-ship {
  background: #f5f3ff;
  color: #6d28d9;
}

.sf-order-status.is-done {
  background: #ecfdf5;
  color: #047857;
}

.sf-order-status.is-cancelled {
  background: #fef2f2;
  color: #b91c1c;
}

.sf-order-total {
  font-size: 14px;
  font-weight: 700;
  color: var(--sf-primary);
}

.sf-order-meta {
  font-size: 12px;
  color: var(--sf-muted);
}

.sf-order-items {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sf-order-item {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.35;
  color: var(--sf-text, #1e293b);
}

.sf-order-item-qty {
  flex: 0 0 auto;
  font-weight: 700;
  color: var(--sf-muted);
  min-width: 1.6em;
}

.sf-order-item-name {
  flex: 1 1 auto;
  min-width: 0;
}

.sf-order-card-foot {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.sf-order-card-actions {
  display: flex;
  flex-direction: row;
  gap: 8px;
  margin-top: 10px;
}

.sf-order-detail-btn,
.sf-order-again-btn {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  margin-top: 0;
  border: 1px solid var(--sf-primary);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.sf-order-detail-btn {
  background: #fff;
  color: var(--sf-primary);
}

.sf-order-again-btn {
  background: var(--sf-primary);
  color: #fff;
}

.sf-order-again-btn:active {
  opacity: 0.9;
}

.sf-order-detail-view {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.sf-order-detail-scroll {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 16px 16px calc(24px + var(--sf-safe-bottom));
}

.sf-od-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.sf-od-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.sf-od-section {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--sf-border);
}

.sf-od-section h3 {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--sf-muted);
}

.sf-od-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sf-od-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.sf-od-item-thumb {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 10px;
  overflow: hidden;
  background: #f5f5f4;
  border: 1px solid var(--sf-border);
}

.sf-od-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sf-od-item-thumb--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a8a29e;
}

.sf-od-item-thumb--empty .material-icons {
  font-size: 22px;
}

.sf-od-item-main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sf-od-item-title {
  display: flex;
  gap: 8px;
  min-width: 0;
  font-size: 14px;
  line-height: 1.35;
}

.sf-od-item-qty {
  font-weight: 700;
  color: var(--sf-muted);
  flex: 0 0 auto;
}

.sf-od-item-name {
  min-width: 0;
}

.sf-od-item-price {
  font-size: 13px;
  font-weight: 650;
  color: var(--sf-text);
}

.sf-od-line {
  margin: 0 0 4px;
  font-size: 14px;
  line-height: 1.4;
}

.sf-od-pay-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.sf-od-pay-type {
  margin: 0;
  font-weight: 600;
}

.sf-od-pay-status {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  background: #e2e8f0;
  color: #475569;
}

.sf-od-pay-status.is-pending {
  background: #fef3c7;
  color: #92400e;
}

.sf-od-pay-status.is-paid {
  background: #dcfce7;
  color: #166534;
}

.sf-od-pay-status.is-danger {
  background: #fee2e2;
  color: #991b1b;
}

.sf-od-pay-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 14px 12px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.sf-od-pay-title {
  font-weight: 700;
  color: #0f172a;
  font-size: 14px;
}

.sf-od-pay-hint {
  margin: 0;
  font-size: 13px;
  color: var(--sf-muted);
  text-align: center;
  line-height: 1.4;
}

.sf-card-form {
  margin-top: 12px;
  padding-top: 4px;
}

.sf-recv-installments,
.sf-recv-cards {
  padding-left: 4px;
  border-left: 2px solid #e5e7eb;
  margin-left: 8px;
}

.sf-card-grid {
  margin-top: 0;
}

.sf-card-holder,
.sf-card-number,
.sf-card-email {
  grid-column: 1 / -1;
}

.sf-card-save-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--sf-text);
  cursor: pointer;
}

.sf-card-save-row input {
  width: 16px;
  height: 16px;
}

.sf-card-label {
  display: block;
  margin-top: 10px;
  grid-column: 1 / -1;
}

.sf-card-save-row[hidden],
.sf-card-label[hidden] {
  display: none !important;
}

.sf-od-totals {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sf-od-total-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}

.sf-od-total-row--grand {
  margin-top: 4px;
  font-weight: 700;
  font-size: 16px;
}

.sf-od-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.sf-od-actions .sf-order-again-btn {
  width: 100%;
  flex: none;
}

.sf-od-wa {
  justify-content: center;
  height: 44px;
  border-radius: 10px;
  width: 100%;
}

.sf-toast {
  position: fixed;
  left: 50%;
  top: calc(16px + env(safe-area-inset-top, 0px));
  bottom: auto;
  transform: translateX(-50%);
  max-width: min(92vw, 420px);
  background: #1e293b;
  color: #fff;
  font-size: 13px;
  line-height: 1.45;
  padding: 12px 16px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.25);
  z-index: 300;
  text-align: center;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.sf-toast.hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(-8px);
  pointer-events: none;
}

.sf-cart-top-total {
  margin-left: auto;
  font-size: 14px;
  font-weight: 700;
  color: var(--sf-primary);
  white-space: nowrap;
}

.sf-cart-scroll {
  max-width: 720px;
  margin: 0 auto;
  padding: 8px 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sf-cart-body {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--sf-surface);
  border: 1px solid var(--sf-border);
  border-radius: 12px;
  padding: 4px 16px;
}

.sf-cart-body.is-empty {
  border: none;
  background: transparent;
  padding: 0;
}

.sf-cart-empty {
  color: var(--sf-muted);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  padding: 36px 12px;
  margin: 0;
}

.sf-cart-empty-action {
  margin-top: 14px;
}

.sf-cart-line {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 10px 12px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid var(--sf-border);
}

.sf-cart-line:last-child {
  border-bottom: none;
}

.sf-cart-line-thumb {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  overflow: hidden;
  background: #f5f5f4;
  flex: 0 0 auto;
}

.sf-cart-line-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sf-cart-line-thumb--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a8a29e;
}

.sf-cart-line-thumb--empty .material-icons {
  font-size: 22px;
}

.sf-cart-line-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sf-cart-line-name {
  font-size: 14px;
  font-weight: 650;
  line-height: 1.3;
}

.sf-cart-line-meta {
  font-size: 12px;
  color: var(--sf-muted);
}

.sf-cart-line-price {
  font-size: 14px;
  font-weight: 700;
  text-align: right;
  padding-top: 2px;
  white-space: nowrap;
}

.sf-cart-line-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sf-cart-line-actions button {
  height: 28px;
  min-width: 28px;
  border: 1px solid var(--sf-border);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font: inherit;
}

.sf-cart-line-remove {
  margin-left: 4px;
  color: var(--sf-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.sf-cart-line-remove .material-icons {
  font-size: 18px;
  line-height: 1;
}

.sf-cart-line-remove:hover {
  color: var(--sf-danger);
  border-color: #fecaca;
  background: #fef2f2;
}

.sf-bundle-banner {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sf-bundle-banner.is-expired {
  background: #fef2f2;
  border-color: #fecaca;
}

.sf-bundle-banner-main {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sf-bundle-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: #1d4ed8;
  color: #fff;
}

.sf-bundle-banner-prices {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.sf-bundle-was {
  font-size: 13px;
  color: var(--sf-muted);
  text-decoration: line-through;
}

.sf-bundle-now {
  font-size: 18px;
  font-weight: 700;
  color: var(--sf-text);
}

.sf-bundle-timer {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 2px;
}

.sf-bundle-timer-label {
  font-size: 12px;
  font-weight: 600;
  color: #1d4ed8;
  letter-spacing: 0.01em;
}

.sf-bundle-timer.is-expired .sf-bundle-timer-label,
.sf-bundle-banner.is-expired .sf-bundle-timer-label {
  color: #b91c1c;
}

.sf-bundle-timer-units {
  display: flex;
  align-items: stretch;
  gap: 6px;
}

.sf-bundle-timer-unit {
  min-width: 48px;
  padding: 6px 8px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #bfdbfe;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.sf-bundle-timer-unit strong {
  font-variant-numeric: tabular-nums;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.1;
  color: #1e3a8a;
}

.sf-bundle-timer-unit span {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}

.sf-bundle-banner.is-expired .sf-bundle-timer-unit {
  border-color: #fecaca;
}

.sf-bundle-banner.is-expired .sf-bundle-timer-unit strong {
  color: #991b1b;
}

.sf-bundle-banner.is-expired .sf-bundle-timer {
  color: #b91c1c;
}

.sf-bundle-expired-msg {
  margin: 0;
  font-size: 13px;
  color: #991b1b;
}

.sf-bundle-expired-msg button {
  border: 0;
  background: none;
  color: #1d4ed8;
  font: inherit;
  font-weight: 600;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
}

.sf-advance-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(58px + var(--sf-safe-bottom));
  z-index: 28;
  padding: 10px 16px;
  background: linear-gradient(180deg, transparent, var(--sf-bg) 30%);
  pointer-events: none;
}

.sf-main.is-checkout-page .sf-advance-bar,
.sf-main.is-identify-page .sf-advance-bar {
  bottom: 0;
  padding: 12px 16px calc(12px + var(--sf-safe-bottom));
  background: var(--sf-bg);
  border-top: 1px solid var(--sf-border);
}

.sf-advance-btn {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  min-height: 52px;
  padding: 0 18px;
  border: none;
  border-radius: 12px;
  background: var(--sf-primary);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(28, 25, 23, 0.16);
}

.sf-advance-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.sf-advance-btn strong {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.sf-checkout {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--sf-surface);
  border: 1px solid var(--sf-border);
  border-radius: 12px;
}

.sf-client-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: var(--sf-surface);
  border: 1px solid var(--sf-border);
  border-radius: 12px;
}

.sf-client-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sf-client-label {
  margin: 0 0 4px;
  font-size: 12px;
  color: var(--sf-muted);
}

.sf-client-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--sf-text);
}

.sf-client-phone {
  font-size: 13px;
  color: var(--sf-muted);
}

.sf-client-swap {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: var(--sf-primary, #1a7f64);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 6px 0;
}

.sf-client-swap:hover {
  text-decoration: underline;
}

.sf-delivery-box {
  padding: 14px 16px 16px;
  background: var(--sf-surface);
  border: 1px solid var(--sf-border);
  border-radius: 12px;
}

.sf-payment-box {
  margin-top: 12px;
}

.sf-delivery-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--sf-text);
  margin-bottom: 12px;
}

.sf-delivery-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sf-recv-option,
.sf-recv-card {
  border: 1px solid var(--sf-border);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.sf-recv-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 14px;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.sf-recv-option:hover,
.sf-recv-card:hover {
  border-color: color-mix(in srgb, var(--sf-primary, #1a7f64) 40%, var(--sf-border));
}

.sf-recv-option.is-selected,
.sf-recv-card.is-selected {
  border-color: var(--sf-primary, #1a7f64);
  background: color-mix(in srgb, var(--sf-primary, #1a7f64) 6%, #fff);
}

.sf-recv-card-main {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  padding: 14px 14px 8px;
  border: none;
  background: transparent;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.sf-recv-icon {
  flex: 0 0 auto;
  font-size: 22px !important;
  width: 24px;
  height: 24px;
  color: var(--sf-primary, #1a7f64);
  margin-top: 1px;
}

.sf-recv-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sf-recv-title,
.sf-recv-card-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--sf-text);
}

.sf-recv-free {
  font-size: 13px;
  font-weight: 600;
  color: #059669;
}

.sf-recv-hint,
.sf-recv-line {
  font-size: 13px;
  line-height: 1.35;
  color: #6b7280;
}

.sf-recv-hint {
  white-space: pre-line;
}

.sf-recv-radio {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border: 2px solid #c4c9d4;
  border-radius: 50%;
  position: relative;
  margin-left: auto;
}

.sf-recv-option.is-selected .sf-recv-radio,
.sf-recv-card.is-selected .sf-recv-radio {
  border-color: var(--sf-primary, #1a7f64);
}

.sf-recv-option.is-selected .sf-recv-radio::after,
.sf-recv-card.is-selected .sf-recv-radio::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--sf-primary, #1a7f64);
}

.sf-recv-addresses {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.sf-recv-addresses-title {
  font-size: 13px;
  font-weight: 700;
  color: #6b7280;
  padding: 4px 2px 2px;
}

.sf-ship-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.sf-ship-old {
  color: #94a3b8;
  font-weight: 400;
}

.sf-ship-hint {
  margin: 0;
  padding: 2px;
  font-size: 13px;
  color: #6b7280;
}

.sf-ship-hint.is-error {
  color: #b91c1c;
}

.sf-ship-logo img {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.sf-recv-card-actions {
  display: flex;
  justify-content: flex-end;
  padding: 0 12px 10px;
}

.sf-recv-delete {
  border: none;
  background: none;
  padding: 4px 2px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: #c13840;
  cursor: pointer;
}

.sf-recv-delete:hover {
  text-decoration: underline;
}

.sf-address-form-wrap {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--sf-border);
}

.sf-address-form-wrap[hidden] {
  display: none !important;
}

.sf-address-form-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.sf-address-form-head strong {
  font-size: 14px;
  color: #111827;
}

.sf-address-form-cancel {
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
}

.sf-address-form-cancel:hover {
  color: #111827;
  text-decoration: underline;
}

.sf-address-label {
  grid-column: 1 / -1;
}

.sf-address-save-btn {
  margin-top: 14px;
  width: 100%;
  padding: 12px 16px;
  border: none;
  border-radius: 10px;
  background: var(--sf-primary, #1a7f64);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.sf-address-save-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.sf-address-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.sf-address-zip,
.sf-address-street {
  grid-column: 1 / -1;
}

.sf-address-district {
  grid-column: 1 / -1;
}

.sf-address-city {
  grid-column: 1 / 2;
}

.sf-address-state {
  grid-column: 2 / 3;
}

.sf-address-cep-hint {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--sf-muted);
}

.sf-address-cep-hint.is-error {
  color: #b91c1c;
}

.sf-address-cep-hint[hidden] {
  display: none !important;
}

.sf-address-grid input[readonly] {
  background: #f1f5f9;
  color: #475569;
  cursor: default;
}

@media (max-width: 420px) {
  .sf-address-grid {
    grid-template-columns: 1fr;
  }

  .sf-address-city,
  .sf-address-state {
    grid-column: 1 / -1;
  }
}

.sf-identify-disclaimer {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--sf-muted);
}

.sf-identify-profile {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sf-welcome-panel {
  padding: 28px 20px calc(24px + var(--sf-safe-bottom));
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.sf-welcome-icon {
  font-size: 40px;
  color: var(--sf-primary, #d30c02);
}

.sf-welcome-panel h2 {
  margin: 0;
  font-size: 22px;
}

.sf-welcome-panel p {
  margin: 0 0 4px;
  color: var(--sf-muted);
  font-size: 14px;
}

.sf-welcome-panel .sf-primary-btn,
.sf-welcome-panel .sf-secondary-btn {
  width: 100%;
  max-width: 320px;
}

.sf-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
}

.sf-field input,
.sf-field textarea {
  width: 100%;
  border: 1px solid var(--sf-border);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  font-size: 14px;
  font-weight: 400;
  background: #fff;
}

.sf-field input:focus,
.sf-field textarea:focus {
  outline: none;
  border-color: var(--sf-primary);
  box-shadow: 0 0 0 3px var(--sf-primary-soft);
}

.sf-checkout-error {
  margin: 0;
  color: var(--sf-danger);
  font-size: 13px;
}

.sf-coupon {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sf-coupon-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px 14px 12px;
  background: var(--sf-surface);
  border: 1px solid var(--sf-border);
  border-radius: 12px;
}

.sf-coupon-card.is-applied {
  border-color: color-mix(in srgb, var(--sf-primary, #1a7f64) 35%, var(--sf-border));
  background: color-mix(in srgb, var(--sf-primary, #1a7f64) 6%, var(--sf-surface));
}

.sf-coupon-icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--sf-primary, #1a7f64) 12%, #fff);
  color: var(--sf-primary, #1a7f64);
}

.sf-coupon-icon .material-icons {
  font-size: 22px;
}

.sf-coupon-copy {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.sf-coupon-lead {
  font-size: 12px;
  color: var(--sf-muted);
}

.sf-coupon-emphasis {
  font-size: 15px;
  font-weight: 700;
  color: var(--sf-text);
  line-height: 1.25;
  word-break: break-word;
}

.sf-coupon-action,
.sf-coupon-primary {
  flex: 0 0 auto;
  height: 44px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid var(--sf-primary);
  background: transparent;
  color: var(--sf-primary);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.sf-coupon-action:hover,
.sf-coupon-primary:hover {
  background: color-mix(in srgb, var(--sf-primary, #1a7f64) 8%, transparent);
}

.sf-coupon-form {
  padding: 14px 16px;
  background: var(--sf-surface);
  border: 1px solid var(--sf-border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sf-coupon-form-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.sf-coupon-field {
  flex: 1;
  min-width: 0;
}

.sf-coupon-form.hidden,
.sf-coupon-card.hidden {
  display: none;
}

.sf-coupon-form-error {
  margin: 0;
  color: var(--sf-danger);
  font-size: 13px;
}
.sf-totalizer {
  padding: 14px 16px;
  background: var(--sf-surface);
  border: 1px solid var(--sf-border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sf-totalizer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  color: var(--sf-text);
}

.sf-totalizer-row span:last-child {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.sf-totalizer-row span:last-child.is-free {
  color: #15803d;
  font-weight: 600;
}

.sf-totalizer-row--total {
  margin-top: 2px;
  padding-top: 10px;
  border-top: 1px solid var(--sf-border);
  font-size: 15px;
  font-weight: 700;
}

.sf-sheet {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.sf-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 25, 23, 0.45);
}

.sf-sheet-panel {
  position: relative;
  width: min(820px, 100%);
  max-height: min(92vh, 900px);
  overflow: auto;
  background: var(--sf-surface);
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -12px 40px rgba(28, 25, 23, 0.18);
}

.sf-sheet-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--sf-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.sf-sheet-media {
  height: 200px;
  background: #f5f5f4;
}

.sf-sheet-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sf-sheet-body {
  padding: 16px 16px calc(20px + var(--sf-safe-bottom));
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sf-sheet-body h2 {
  margin: 0;
  font-size: 20px;
  padding-right: 40px;
}

.sf-sheet-desc {
  margin: 0;
  color: var(--sf-muted);
  font-size: 14px;
  line-height: 1.45;
}

.sf-option-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sf-option-label {
  font-size: 13px;
  font-weight: 700;
}

.sf-option-values {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sf-option-chip {
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--sf-border);
  border-radius: 999px;
  background: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--sf-muted);
  cursor: pointer;
}

.sf-option-chip.is-active {
  border-color: var(--sf-primary);
  background: var(--sf-primary-soft);
  color: var(--sf-primary);
}

.sf-option-chip:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.sf-sheet-qty {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  align-self: flex-start;
  padding: 4px;
  border: 1px solid var(--sf-border);
  border-radius: 999px;
}

.sf-sheet-qty button {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 999px;
  background: #f5f5f4;
  font-size: 18px;
  cursor: pointer;
}

.sf-sheet-qty span {
  min-width: 20px;
  text-align: center;
  font-weight: 700;
}

.sf-primary-btn,
.sf-secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 12px;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.sf-primary-btn {
  background: var(--sf-primary);
  color: #fff;
}

.sf-primary-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.sf-secondary-btn {
  background: #f5f5f4;
  color: var(--sf-text);
}

.sf-success-panel {
  padding: 28px 20px calc(24px + var(--sf-safe-bottom));
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.sf-success-icon {
  font-size: 48px;
  color: #16a34a;
}

.sf-success-panel h2 {
  margin: 0;
  font-size: 22px;
}

.sf-success-panel p {
  margin: 0 0 12px;
  color: #475569;
}

.sf-success-pay {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 4px 0 14px;
  padding: 12px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.sf-success-pay.hidden {
  display: none;
}

.sf-success-pay-title {
  font-weight: 700;
  color: #0f172a;
}

.sf-success-pay-hint {
  margin: 0 !important;
  font-size: 13px;
  color: #64748b !important;
  text-align: center;
}

.sf-success-pix-qr {
  width: 180px;
  height: 180px;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
}

.sf-success-copy-pix {
  width: 100%;
}

/* Product page */
.sf-product-view {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--sf-bg);
}

.sf-product-view.hidden {
  display: none;
}

.sf-product-top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 8px 12px;
  background: rgba(250, 250, 248, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--sf-border);
}

.sf-product-back {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 999px;
  background: var(--sf-surface);
  color: var(--sf-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.sf-product-top-title {
  font-size: 14px;
  font-weight: 650;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sf-product-scroll {
  flex: 1;
  overflow: auto;
  padding-bottom: calc(168px + var(--sf-safe-bottom));
}

.sf-product-gallery {
  background: #fff;
}

.sf-product-hero {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: min(70vw, 420px);
  background: #f5f5f4;
  overflow: hidden;
  position: relative;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.sf-product-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  -webkit-user-drag: none;
}

.sf-product-hero[data-sf-lightbox-open] {
  cursor: zoom-in;
}

.sf-product-hero-zoom {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #292524;
  font-size: 18px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  pointer-events: none;
}

html.sf-lightbox-open,
html.sf-lightbox-open body {
  overflow: hidden;
}

.sf-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(12, 10, 9, 0.94);
  touch-action: none;
}

.sf-lightbox[hidden] {
  display: none;
}

.sf-lightbox-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: max(12px, env(safe-area-inset-top)) 12px 12px 20px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}

.sf-lightbox-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 64px 16px;
  overflow: hidden;
}

.sf-lightbox-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  cursor: zoom-in;
  transition: transform 0.2s ease;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

.sf-lightbox-img.is-zoomed {
  transform: scale(2.2);
  cursor: zoom-out;
}

.sf-lightbox-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
}

.sf-lightbox-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

.sf-lightbox-btn[hidden] {
  display: none;
}

.sf-lightbox-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
}

.sf-lightbox-nav .material-icons {
  font-size: 30px;
}

.sf-lightbox-nav--prev {
  left: 16px;
}

.sf-lightbox-nav--next {
  right: 16px;
}

@media (max-width: 640px) {
  .sf-lightbox-stage {
    padding: 64px 0;
  }

  .sf-lightbox-nav {
    width: 38px;
    height: 38px;
  }

  .sf-lightbox-nav--prev {
    left: 8px;
  }

  .sf-lightbox-nav--next {
    right: 8px;
  }
}

.sf-product-gallery-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 6px;
  pointer-events: none;
}

.sf-product-gallery-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.sf-product-gallery-dot.is-active {
  background: #fff;
  transform: scale(1.15);
}

.sf-product-hero--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a8a29e;
}

.sf-product-hero--empty .material-icons {
  font-size: 48px;
}

.sf-product-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 16px 0;
  scrollbar-width: none;
}

.sf-product-thumbs::-webkit-scrollbar {
  display: none;
}

.sf-product-thumb {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  padding: 0;
  background: #f5f5f4;
  cursor: pointer;
}

.sf-product-thumb.is-active {
  border-color: var(--sf-primary);
}

.sf-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sf-product-body {
  padding: 16px 16px calc(24px + 88px + var(--sf-safe-bottom));
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sf-product-name {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
}

.sf-product-price {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--sf-primary);
}

.sf-product-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--sf-muted);
  white-space: pre-wrap;
}

.sf-product-options .sf-option-group {
  margin-top: 4px;
}

.sf-product-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(58px + var(--sf-safe-bottom));
  z-index: 25;
  padding: 12px 16px;
  background: linear-gradient(180deg, transparent, var(--sf-bg) 28%);
}

.sf-product-footer-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 1120px;
  margin: 0 auto;
}

.sf-product-footer .sf-product-qty {
  flex-shrink: 0;
  align-self: stretch;
  gap: 4px;
  background: var(--sf-bg);
  border-radius: 12px;
}

.sf-product-footer .sf-product-qty button {
  width: 38px;
  height: 100%;
  min-height: 38px;
  border-radius: 9px;
}

.sf-product-footer .sf-product-qty span {
  min-width: 24px;
}

.sf-product-footer .sf-primary-btn {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .sf-product-scroll {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 8px;
    align-items: start;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
    padding: 0 24px 24px;
  }

  .sf-product-gallery {
    position: sticky;
    top: 52px;
  }

  .sf-product-hero {
    max-height: 520px;
    border-radius: 12px;
  }

  .sf-product-body {
    padding-top: 20px;
  }
}

.sf-pship {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.sf-pship-form {
  display: flex;
  gap: 8px;
}

.sf-pship-form input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--sf-border);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  font-size: 14px;
  background: #fff;
}

.sf-pship-form input:focus {
  outline: none;
  border-color: var(--sf-primary);
}

.sf-pship-form button {
  border: 1px solid var(--sf-primary);
  border-radius: 10px;
  padding: 0 16px;
  background: #fff;
  color: var(--sf-primary);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.sf-pship-results {
  display: flex;
  flex-direction: column;
}

.sf-pship-results:empty {
  display: none;
}

.sf-pship-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--sf-border);
  font-size: 13px;
}

.sf-pship-row:last-child {
  border-bottom: none;
}

.sf-pship-row > .material-icons {
  font-size: 20px;
  color: var(--sf-muted);
}

.sf-pship-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sf-pship-copy strong {
  font-weight: 600;
}

.sf-pship-copy span {
  color: var(--sf-muted);
  font-size: 12px;
}

.sf-pship-price {
  white-space: nowrap;
  font-weight: 600;
}

.sf-pship-price s {
  color: var(--sf-muted);
  font-weight: 400;
  margin-right: 4px;
}

.sf-pship-price .is-free {
  color: #067647;
}

.sf-pship-hint {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--sf-muted);
}

.sf-pship-hint.is-error {
  color: var(--sf-danger);
}

.sf-product-desc.is-clamped {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  overflow: hidden;
}

.sf-product-desc-more {
  align-self: flex-start;
  margin-top: -4px;
  padding: 0;
  border: none;
  background: none;
  color: var(--sf-primary);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.sf-product-desc-more[hidden] {
  display: none;
}

.sf-pship-copy span {
  white-space: pre-line;
  line-height: 1.4;
}
