:root {
  color-scheme: light;
  --ink: #111827;
  --soft-ink: #344054;
  --muted: #667085;
  --line: #d0d5dd;
  --bg: #f3f6f8;
  --panel: #ffffff;
  --panel-soft: #eef7f5;
  --accent: #0f766e;
  --accent-strong: #115e59;
  --accent-soft: #ccfbf1;
  --danger: #b42318;
  --shadow: 0 18px 48px rgba(16, 24, 40, .12);
  font-family: Arial, "Noto Sans Hebrew", "Segoe UI", sans-serif;
}


* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, .button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: 800;
  cursor: pointer;
}
button:hover, .button-link:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.ghost-button {
  background: #fff;
  color: var(--accent-strong);
  border-color: var(--line);
}
.ghost-button:hover {
  background: var(--panel-soft);
  color: var(--accent-strong);
  border-color: #99f6e4;
}
.primary-action {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.primary-action:hover {
  background: var(--accent-strong);
  color: #fff;
  border-color: var(--accent-strong);
}
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 8px;
  padding: 11px 12px;
  outline: none;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .14);
}
textarea { min-height: 94px; resize: vertical; }
label {
  display: grid;
  gap: 6px;
  color: var(--soft-ink);
  font-weight: 700;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 12px clamp(16px, 4vw, 48px);
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid rgba(208, 213, 221, .9);
  backdrop-filter: blur(10px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 900;
}
.brand img { width: 40px; height: 40px; }
nav {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--soft-ink);
  font-weight: 800;
}
nav a {
  border-radius: 8px;
  padding: 9px 12px;
}
nav a:hover { background: var(--panel-soft); }
.actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.actions strong {
  display: inline-flex;
  min-width: 24px;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

main {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 28px 0 72px;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 24px;
  align-items: stretch;
  min-height: 360px;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, .94), rgba(17, 94, 89, .86)),
    url("/assets/logo.svg") left 34px bottom 28px / 180px auto no-repeat;
  color: #fff;
  overflow: hidden;
}
.hero-copy {
  display: grid;
  align-content: center;
  gap: 16px;
}
.eyebrow {
  margin: 0;
  color: #ccfbf1;
  font-weight: 900;
}
.hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.05;
}
.hero p:not(.eyebrow) {
  max-width: 680px;
  margin: 0;
  color: #e8fffb;
  font-size: 18px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}
.hero .ghost-button {
  background: rgba(255, 255, 255, .12);
  color: #fff;
  border-color: rgba(255, 255, 255, .35);
}
.hero-panel {
  align-self: center;
  display: grid;
  gap: 10px;
}
.hero-panel div {
  display: grid;
  gap: 2px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 8px;
  background: rgba(255, 255, 255, .12);
}
.hero-panel strong { font-size: 28px; }
.hero-panel span { color: #e8fffb; }

.toolbar, .panel-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}
.toolbar {
  margin: 30px 0 16px;
}
h2, h3 { margin: 0; line-height: 1.2; }
.toolbar h2, .panel h2 { font-size: 28px; }
.muted {
  margin: 5px 0 0;
  color: var(--muted);
}
.search {
  display: grid;
  grid-template-columns: minmax(220px, 320px) auto;
  gap: 8px;
}
.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 16px;
}
.product-card, .panel, .form, .order-card, .cart-item, .empty-state {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.product-card {
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  transition: transform .16s ease, box-shadow .16s ease;
}
.product-card.unavailable {
  opacity: .78;
}
.product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.product-image-wrap {
  position: relative;
  aspect-ratio: 16 / 11;
  display: grid;
  place-items: center;
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.product-card img {
  position: absolute;
  inset: 0;
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}
.stock-overlay {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #991b1b;
  color: #fff;
  font-weight: 900;
  font-size: 13px;
}
button:disabled,
select option:disabled {
  cursor: not-allowed;
}
button:disabled {
  opacity: .55;
}
.product-body {
  padding: 16px;
  display: grid;
  gap: 12px;
}
.product-body h3 { font-size: 21px; }
.product-short {
  min-height: 62px;
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}
.price {
  font-size: 24px;
  font-weight: 900;
  color: var(--accent-strong);
}
.stock-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.stock-notify-form {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: #fff7f7;
}

.stock-notify-form.compact {
  padding: 10px;
}

.stock-notify-form label {
  display: grid;
  gap: 6px;
  margin: 0;
  color: var(--soft-ink);
  font-size: 13px;
  font-weight: 900;
}

.stock-notify-form input {
  min-height: 40px;
}

.stock-notify-form button {
  min-height: 38px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #f2f4f7;
  color: var(--soft-ink);
  font-weight: 800;
  font-size: 13px;
}
.badge.good { background: var(--accent-soft); color: var(--accent-strong); }
.option-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.product-detail-button {
  width: 100%;
}

.product-dialog {
  width: min(980px, calc(100% - 28px));
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
}

.product-modal-panel {
  max-height: calc(100vh - 28px);
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.product-detail-layout {
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(0, 1.1fr);
  gap: 18px;
  align-items: start;
}

.product-detail-image {
  position: relative;
  min-height: 360px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  overflow: hidden;
}

.product-detail-image img {
  width: min(78%, 360px);
  height: min(78%, 300px);
  object-fit: contain;
  padding: 16px;
}

.product-detail-content {
  display: grid;
  gap: 14px;
}

.product-detail-content h2 {
  font-size: 34px;
}

.product-detail-short,
.product-detail-content .detail-section p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.product-detail-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.panel {
  margin-top: 26px;
  padding: 18px;
}
.admin-grid {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(280px, .72fr);
  gap: 16px;
  margin-top: 16px;
}

.products-admin-grid {
  grid-template-columns: 1fr;
}

.products-admin-grid .admin-list-panel {
  margin-top: 0;
}

.products-admin-grid #productForm {
  max-width: none;
}

.products-admin-grid #productForm {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.products-admin-grid #productForm .form-title-row,
.products-admin-grid #productForm label:has(textarea),
.products-admin-grid #productForm > button {
  grid-column: 1 / -1;
}

.products-admin-grid #productForm textarea {
  min-height: 88px;
}
.form {
  padding: 16px;
  display: grid;
  gap: 12px;
}
.checks, .two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.checks label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.checks input { width: auto; }
.empty-state {
  margin-top: 14px;
  padding: 18px;
  color: var(--muted);
}
.order-card {
  padding: 14px;
  display: grid;
  gap: 7px;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  width: min(500px, 100%);
  background: #fff;
  border-inline-start: 1px solid var(--line);
  transform: translateX(110%);
  transition: transform .2s ease;
  display: grid;
  grid-template-rows: auto 1fr auto;
  box-shadow: var(--shadow);
  pointer-events: none;
}
.drawer.open {
  transform: translateX(0);
  pointer-events: auto;
}
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}
.drawer-body {
  overflow: auto;
  padding: 16px;
  display: grid;
  gap: 10px;
  align-content: start;
}
.cart-item {
  padding: 13px;
  display: grid;
  gap: 8px;
}
.cart-item button {
  border-color: #fecaca;
  background: #fff;
  color: var(--danger);
}

.cart-product-item {
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px;
  background:
    linear-gradient(90deg, rgba(240, 253, 250, .78), rgba(255, 255, 255, .98) 62%),
    #fff;
}

.cart-product-image {
  width: 86px;
  height: 78px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  padding: 7px;
}

.cart-product-content {
  min-width: 0;
  display: grid;
  gap: 9px;
}

.cart-product-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 10px;
}

.cart-product-head strong {
  color: var(--ink);
  line-height: 1.3;
  font-size: 16px;
}

.cart-remove-button {
  min-width: 54px;
  min-height: 34px;
  padding: 7px 10px;
}

.cart-delivery-pill {
  width: max-content;
  max-width: 100%;
  padding: 5px 9px;
  border-radius: 999px;
  background: #ecfeff;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 900;
}

.cart-product-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cart-line-price {
  display: grid;
  gap: 2px;
  text-align: left;
}

.cart-line-price span,
.cart-stock-note {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.cart-line-price strong {
  color: var(--accent-strong);
  font-size: 18px;
  line-height: 1;
}

.cart-qty-control {
  display: grid;
  grid-template-columns: auto minmax(72px, 1fr);
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.cart-qty-control input {
  min-height: 38px;
  text-align: center;
}

.cart-stock-note {
  display: block;
}
.bank-transfer-details {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #99f6e4;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(236, 254, 255, .92), rgba(255, 255, 255, .98));
}

.bank-transfer-details > div:first-child {
  display: grid;
  gap: 4px;
}

.bank-transfer-details span,
.bank-transfer-details dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.bank-transfer-details strong {
  color: var(--accent-strong);
  font-size: 18px;
}

.bank-transfer-details dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.bank-transfer-details dl div {
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .72);
}

.bank-transfer-details dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-weight: 900;
}
.checkout {
  border-top: 1px solid var(--line);
  padding: 16px;
  display: grid;
  gap: 10px;
  max-height: 56vh;
  overflow: auto;
}
.totals {
  border-top: 1px solid var(--line);
  margin-top: 4px;
  padding-top: 10px;
  display: grid;
  gap: 7px;
}
.total-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.total-line.final {
  font-size: 20px;
  font-weight: 900;
}

dialog {
  border: 0;
  border-radius: 8px;
  padding: 0;
  width: min(460px, calc(100% - 24px));
  box-shadow: var(--shadow);
}
dialog::backdrop { background: rgba(17, 24, 39, .48); }
.modal-panel {
  padding: 16px;
  display: grid;
  gap: 14px;
}
#orderDialog {
  width: min(920px, calc(100% - 24px));
  max-height: min(860px, calc(100vh - 24px));
  overflow: hidden;
}

#orderDialog .modal-panel {
  max-height: min(860px, calc(100vh - 24px));
  overflow: auto;
}
.order-lines {
  display: grid;
  gap: 10px;
}
.key-value {
  direction: ltr;
  text-align: left;
  padding: 10px;
  border-radius: 8px;
  background: #f2f4f7;
  word-break: break-all;
  font-family: Consolas, monospace;
}
.product-key-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 10px;
  align-items: center;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}
.product-key-panel span {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.product-key-panel code {
  min-width: 0;
  color: var(--ink);
  font-family: Consolas, "Courier New", monospace;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.product-key-panel.masked {
  background: #fff7ed;
  border-color: #fed7aa;
}
.product-key-panel small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.masked-key {
  min-width: 0;
  color: var(--ink);
  font-family: Consolas, "Courier New", monospace;
  font-size: 15px;
  letter-spacing: 2px;
}
.mini-button {
  min-height: 32px;
  padding: 6px 10px;
  font-size: 12px;
}
.toast {
  position: fixed;
  inset-inline-end: 18px;
  bottom: 18px;
  z-index: 50;
  max-width: min(420px, calc(100% - 36px));
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
  padding: 12px 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.toast.show { opacity: 1; }
.danger { color: var(--danger); }
.admin-only.hidden, .hidden { display: none !important; }

.ghost-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 15px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.account-page {
  background:
    linear-gradient(180deg, rgba(240, 253, 250, .95), rgba(255, 255, 255, .72) 260px),
    var(--bg);
}

.account-shell {
  width: min(100% - 32px, 1040px);
}

.account-hero {
  padding: 34px 0 14px;
  display: grid;
  gap: 10px;
}

.account-hero h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.02;
}

.account-hero p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.auth-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
  margin-top: 18px;
}

.auth-card {
  min-height: 310px;
}

.account-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.account-orders-list {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.account-page #ordersBox.account-orders-list {
  min-height: 0;
  max-height: none;
  overflow: visible;
}

.account-order-card {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  padding: 16px;
  align-items: stretch;
  background:
    linear-gradient(90deg, rgba(240, 253, 250, .74), rgba(255, 255, 255, .98) 42%),
    #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .055);
}

.account-order-main {
  display: flex;
  gap: 14px;
  align-items: center;
  min-width: 0;
}

.account-order-icon {
  width: 58px;
  min-width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #0f766e;
  color: #fff;
  font-weight: 900;
  font-size: 18px;
  box-shadow: inset 0 -10px 18px rgba(0, 0, 0, .09);
}

.account-order-info {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.account-order-number {
  width: max-content;
  max-width: 100%;
  padding: 4px 9px;
  border: 1px solid #99f6e4;
  border-radius: 8px;
  background: #ecfeff;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
}

.account-order-info > strong {
  display: block;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.25;
}

.account-order-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.account-order-meta span {
  display: inline-flex;
  align-items: center;
}

.account-order-side {
  min-width: 178px;
  padding-inline-start: 18px;
  border-inline-start: 1px solid var(--line);
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 8px;
}

.account-order-side > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.account-order-total {
  color: var(--accent-strong);
  font-size: 26px;
  line-height: 1;
  white-space: nowrap;
}

.account-order-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.account-order-card button {
  justify-self: start;
  min-width: 138px;
  min-height: 42px;
}

.account-orders-empty {
  min-height: 120px;
  display: grid;
  place-items: center;
  color: var(--muted);
}

.admin-page {
  min-height: 100vh;
  background: #eef3f6;
}

.admin-login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
}

.admin-login-card {
  width: min(440px, 100%);
  box-shadow: var(--shadow);
}

.admin-page .form {
  box-shadow: 0 10px 30px rgba(16, 24, 40, .06);
}

.form-title-row {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
}

.form-title-row h2,
.form-title-row p {
  margin: 0;
}

.form.editing {
  border-color: #5eead4;
  box-shadow: 0 16px 40px rgba(15, 118, 110, .14);
}

.form.editing input[name="id"] {
  background: #f2f4f7;
  color: var(--muted);
}

.admin-login-card h1 {
  margin: 4px 0 0;
  font-size: 36px;
  line-height: 1.05;
}

.admin-login-card .eyebrow {
  color: var(--accent-strong);
}

.admin-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 22px;
  padding: 20px;
  background: #0f172a;
  color: #fff;
}

.admin-brand {
  color: #fff;
}

.admin-menu {
  display: grid;
  align-content: start;
  gap: 8px;
}

.admin-menu button {
  width: 100%;
  justify-content: flex-start;
  border-color: transparent;
  background: transparent;
  color: #dbeafe;
}

.admin-menu button:hover,
.admin-menu button.active {
  background: rgba(20, 184, 166, .18);
  border-color: rgba(153, 246, 228, .28);
  color: #fff;
}

.settings-shell {
  display: grid;
  gap: 16px;
}

.settings-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.settings-tabs button {
  min-height: 42px;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}

.settings-tabs button.active,
.settings-tabs button:hover {
  background: #0f766e;
  color: #fff;
  border-color: #0f766e;
}

.settings-panel {
  display: grid;
  gap: 16px;
}

.settings-wide-form {
  max-width: 860px;
}

.users-admin-grid {
  grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
}

.admin-side-footer {
  display: grid;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .14);
}

.admin-main {
  width: 100%;
  padding: 24px;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 20px;
}

.admin-header,
.admin-list-panel,
.key-control-panel,
.metric-card {
  box-shadow: 0 10px 28px rgba(16, 24, 40, .06);
}

.admin-header h1 {
  margin: 0;
  font-size: clamp(32px, 4vw, 48px);
}

.admin-header .eyebrow {
  color: var(--accent-strong);
}

.admin-header-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-view {
  display: grid;
  gap: 16px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.metric-card {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.metric-card span {
  color: var(--muted);
  font-weight: 800;
}

.metric-card strong {
  font-size: 34px;
  line-height: 1;
}

.admin-list-panel {
  margin-top: 0;
}

.admin-table-wrap {
  width: 100%;
  overflow: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.admin-table th,
.admin-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  vertical-align: top;
}

.admin-table th {
  background: #f8fafc;
  color: var(--soft-ink);
  font-size: 13px;
}

.admin-table tbody tr:hover {
  background: #fbfefd;
}

.admin-table td {
  color: #1f2937;
}

.admin-table td strong,
.admin-table td span {
  display: block;
}

.admin-product-grid {
  display: grid;
  gap: 12px;
  max-height: none;
  min-height: 0;
  overflow: visible;
  padding-inline-end: 0;
}

.admin-product-card {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  transition: border-color .16s ease, box-shadow .16s ease;
}

.admin-product-card:hover {
  border-color: #99f6e4;
  box-shadow: 0 10px 26px rgba(16, 24, 40, .08);
}

.admin-product-media {
  position: relative;
  min-height: 104px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  overflow: hidden;
}

.admin-product-media img {
  width: 100%;
  height: 102px;
  object-fit: contain;
  padding: 10px;
}

.admin-product-media .status-pill {
  position: absolute;
  inset-block-start: 8px;
  inset-inline-start: 8px;
}

.admin-product-content {
  min-width: 0;
  display: grid;
  gap: 9px;
}

.admin-product-title {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.admin-product-title h3 {
  margin: 2px 0 0;
  font-size: 22px;
  line-height: 1.05;
}

.admin-product-price {
  color: var(--accent-strong);
  font-size: 22px;
  white-space: nowrap;
}

.admin-product-content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  max-width: 760px;
}

.admin-product-badges,
.admin-product-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-product-actions {
  justify-content: flex-start;
}

.danger-soft {
  background: #fee2e2;
  color: #991b1b;
}

.key-management {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.orders-management {
  display: block;
}

#ordersBox {
  display: grid;
  gap: 8px;
  max-height: calc(100vh - 210px);
  min-height: 280px;
  overflow: auto;
  padding-inline-end: 4px;
}

.admin-order-row {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(120px, .35fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.admin-order-row:hover,
.admin-order-row.active {
  border-color: #99f6e4;
  background: #fbfefd;
  box-shadow: 0 10px 26px rgba(16, 24, 40, .08);
}

.order-row-main {
  min-width: 0;
}

.order-row-main strong,
.order-row-main span {
  display: block;
}

.order-row-main span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-row-meta {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.admin-order-dialog {
  width: min(1120px, calc(100% - 28px));
  max-height: min(860px, calc(100vh - 28px));
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  overflow: hidden;
}

.admin-order-modal {
  max-height: min(860px, calc(100vh - 28px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.modal-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
}

.modal-panel-head .eyebrow {
  color: var(--accent-strong);
  font-size: 14px;
  letter-spacing: 0;
}

.modal-panel-head h2 {
  margin: 4px 0 0;
  font-size: 28px;
  color: var(--ink);
}

.admin-order-modal-body {
  min-height: 0;
  overflow: auto;
  padding: 18px;
  display: grid;
  gap: 16px;
}

.order-action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.order-detail-panel {
  margin-top: 0;
  position: sticky;
  top: 18px;
  display: grid;
  gap: 16px;
}

.order-detail-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.order-detail-head h2 {
  margin-top: 4px;
}

.order-detail-head > div {
  min-width: 0;
  flex: 1;
}

.order-detail-head .eyebrow {
  color: var(--accent-strong);
  font-size: 14px;
  letter-spacing: 0;
}

.customer-summary {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) minmax(220px, 1fr) minmax(130px, .65fr);
  gap: 8px;
  margin-top: 12px;
}

.customer-summary article {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.customer-summary span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.customer-summary strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-total-card strong {
  color: var(--accent-strong);
  font-size: 24px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.detail-grid article,
.detail-lines div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.detail-grid span,
.detail-lines span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.detail-grid strong,
.detail-lines strong {
  display: block;
  margin-top: 4px;
}

.detail-section {
  display: grid;
  gap: 10px;
}

.detail-lines {
  display: grid;
  gap: 8px;
}

.order-item-list {
  display: grid;
  gap: 10px;
}

.order-line-card {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.order-line-card img {
  width: 74px;
  height: 60px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  padding: 8px;
}

.full-key {
  margin-top: 8px;
  max-width: 100%;
  white-space: normal;
}

.order-status-form {
  background: #f8fafc;
  padding: 12px;
  border: 1px solid var(--line);
}

.detail-totals {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #f8fafc;
}

.account-order-detail-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(240, 253, 250, .94), rgba(255, 255, 255, .98));
}

.account-order-detail-head h3 {
  margin: 4px 0;
  font-size: 24px;
  color: var(--ink);
}

.account-order-detail-head .eyebrow {
  color: var(--accent-strong);
}

.account-order-detail-head strong {
  color: var(--accent-strong);
  font-size: 30px;
  line-height: 1;
  white-space: nowrap;
}

.account-detail-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.account-products-section h3,
.detail-section h3 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
}

.account-order-lines {
  gap: 12px;
}

.account-line-card {
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: start;
  background: #fff;
}

.account-line-card img {
  width: 92px;
  height: 76px;
}

.account-line-content {
  display: grid;
  gap: 7px;
}

.account-line-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.account-line-title strong {
  color: var(--ink);
  font-size: 17px;
}

.account-line-title span {
  color: var(--accent-strong);
  font-weight: 900;
  white-space: nowrap;
}

.account-shipping-lines {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.account-shipping-lines .account-tracking-card {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-color: #99f6e4;
  background:
    linear-gradient(90deg, rgba(236, 254, 255, .96), rgba(255, 255, 255, .98));
}

.account-tracking-card small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-weight: 800;
  letter-spacing: 0;
}

.tracking-action {
  min-width: 132px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 8px;
  background: #0f766e;
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 10px 18px rgba(15, 118, 110, .18);
}

.tracking-action:hover {
  background: var(--accent-strong);
  color: #fff;
}

.key-control-panel {
  margin-top: 0;
  position: sticky;
  top: 18px;
}

.compact-form {
  margin-top: 14px;
  padding: 0;
  border: 0;
}

.key-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.key-stats article {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.key-stats span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.key-stats strong {
  display: block;
  margin-top: 4px;
  font-size: 26px;
  line-height: 1;
}

.key-cell {
  direction: ltr;
  text-align: left;
  display: inline-block;
  max-width: 360px;
  padding: 7px 9px;
  border-radius: 8px;
  background: #f2f4f7;
  color: #101828;
  font-family: Consolas, "Courier New", monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.status-pill {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  width: max-content;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 900;
  background: #eef2ff;
  color: #3730a3;
}

.status-pill.available {
  background: #dcfce7;
  color: #166534;
}

.status-pill.sold {
  background: #e0e7ff;
  color: #3730a3;
}

.status-pill.disabled {
  background: #fee2e2;
  color: #991b1b;
}

.status-pill.pending {
  background: #fef3c7;
  color: #92400e;
}

.status-pill.processing {
  background: #dbeafe;
  color: #1d4ed8;
}

.status-pill.paid,
.status-pill.completed {
  background: #dcfce7;
  color: #166534;
}

.status-pill.failed,
.status-pill.cancelled {
  background: #fee2e2;
  color: #991b1b;
}

.table-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.table-actions button {
  min-height: 34px;
  padding: 7px 10px;
}

.danger-button {
  color: var(--danger);
  border-color: #fecaca;
}

.danger-button:hover {
  color: #fff;
  background: var(--danger);
  border-color: var(--danger);
}

@media (max-width: 860px) {
  .topbar { grid-template-columns: 1fr; }
  nav, .actions, .toolbar, .panel-head, .hero-actions, .toolbar-actions { flex-wrap: wrap; }
  .hero, .admin-grid, .auth-grid, .metric-grid, .key-management, .orders-management, .users-admin-grid, .checks, .two { grid-template-columns: 1fr; }
  .search { grid-template-columns: 1fr; width: 100%; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar {
    position: relative;
    height: auto;
  }
  .key-control-panel { position: static; }
  .order-detail-panel { position: static; }
  .admin-order-row { grid-template-columns: 1fr; }
  .order-row-meta { justify-items: start; }
  .admin-product-card { grid-template-columns: 1fr; }
  .admin-product-media { min-height: 150px; }
  .admin-product-media img { height: 148px; }
  .admin-product-title { flex-direction: column; }
  .product-detail-layout { grid-template-columns: 1fr; }
  .product-detail-image { min-height: 240px; }
  .product-detail-content h2 { font-size: 28px; }
  .customer-summary { grid-template-columns: 1fr; }
  .order-detail-head { flex-direction: column; }
  #ordersBox { max-height: 62vh; }
  .admin-order-dialog {
    width: calc(100% - 16px);
    max-height: calc(100vh - 16px);
  }
  .admin-order-modal,
  .admin-order-dialog {
    border-radius: 8px;
  }
  .admin-order-modal-body { padding: 12px; }
  .detail-grid { grid-template-columns: 1fr; }
  .account-order-card-head,
  .account-order-card,
  .account-order-detail-head,
  .account-line-title {
    flex-direction: column;
  }
  .account-order-card {
    grid-template-columns: 1fr;
  }
  .account-order-main {
    align-items: start;
  }
  .account-order-side {
    min-width: 0;
    padding-inline-start: 0;
    padding-top: 12px;
    border-inline-start: 0;
    border-top: 1px solid var(--line);
    justify-items: stretch;
  }
  .account-order-card button {
    width: 100%;
  }
  .account-order-total,
  .account-order-detail-head strong {
    font-size: 24px;
  }
  .account-line-card {
    grid-template-columns: 76px minmax(0, 1fr);
  }
  .account-line-card img {
    width: 76px;
    height: 64px;
  }
  .account-shipping-lines {
    grid-template-columns: 1fr;
  }
  .account-shipping-lines .account-tracking-card {
    flex-direction: column;
    align-items: stretch;
  }
  .tracking-action {
    width: 100%;
  }
  .cart-product-item {
    grid-template-columns: 70px minmax(0, 1fr);
  }
  .cart-product-image {
    width: 70px;
    height: 64px;
  }
  .cart-product-head {
    flex-direction: column;
  }
  .cart-product-meta-row {
    align-items: stretch;
  }
  .cart-line-price {
    text-align: right;
  }
  .cart-remove-button,
  .cart-qty-control input {
    width: 100%;
  }
  .bank-transfer-details dl {
    grid-template-columns: 1fr;
  }
  .admin-main { padding: 16px; }
  .admin-header { align-items: stretch; flex-direction: column; }
}

@media (max-width: 520px) {
  main { width: min(100% - 20px, 1180px); padding-top: 16px; }
  .hero { padding: 22px; min-height: auto; }
  .hero h1 { font-size: 32px; }
  .product-grid { grid-template-columns: 1fr; }
  .option-row { grid-template-columns: 1fr; }
  button, .button-link, .ghost-link { width: 100%; }
}

/* PRODUCT PAGE DESIGN FIX 20260630 */
body.product-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(20, 184, 166, 0.16), transparent 34rem),
    linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  color: #0f172a;
}

.product-page .topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 5vw;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.product-page .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #0f172a;
  font-weight: 900;
  font-size: 1.1rem;
  text-decoration: none;
}

.product-page .brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.product-page .topbar nav,
.product-page .topbar .actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-page .topbar nav a {
  color: #334155;
  text-decoration: none;
  font-weight: 800;
  padding: 10px 12px;
  border-radius: 999px;
}

.product-page .topbar nav a:hover {
  background: #f1f5f9;
  color: #0f766e;
}

.product-page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 38px auto 70px;
}

.product-page-loading,
.product-page-layout,
.product-page .empty-state {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 30px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.10);
}

.product-page-loading,
.product-page .empty-state {
  padding: 34px;
  text-align: center;
  font-weight: 900;
  color: #334155;
}

.product-page-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(340px, 1.1fr);
  gap: 34px;
  padding: 34px;
  overflow: hidden;
}

.product-page-media {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 420px;
  border-radius: 26px;
  background:
    linear-gradient(145deg, #ffffff, #f1f5f9);
  border: 1px solid rgba(148, 163, 184, 0.24);
  overflow: hidden;
}

.product-page-media::before {
  content: "";
  position: absolute;
  inset: auto -20% -30% -20%;
  height: 190px;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.18), transparent 70%);
}

.product-page-media img {
  position: relative;
  width: min(82%, 430px);
  max-height: 350px;
  object-fit: contain;
  border-radius: 22px;
  filter: drop-shadow(0 22px 38px rgba(15, 23, 42, 0.18));
}

.stock-overlay {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
  padding: 9px 14px;
  border-radius: 999px;
  background: #fee2e2;
  color: #991b1b;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(153, 27, 27, 0.14);
}

.product-page-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: 8px 4px;
}

.product-page-details .eyebrow {
  width: fit-content;
  margin: 0;
  padding: 8px 13px;
  border-radius: 999px;
  background: #ccfbf1;
  color: #0f766e;
  font-weight: 900;
  font-size: 0.88rem;
}

.product-page-details h1 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.product-page-description {
  margin: 0;
  color: #475569;
  font-size: 1.08rem;
  line-height: 1.8;
}

.product-page-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 6px;
}

.product-page-stats article {
  padding: 15px 12px;
  border-radius: 20px;
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.product-page-stats span {
  display: block;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.product-page-stats strong {
  color: #0f172a;
  font-size: 1.12rem;
  font-weight: 950;
}

.product-page-options {
  margin-top: 4px;
  padding: 18px;
  border-radius: 24px;
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.product-page-options h2 {
  margin: 0 0 14px;
  font-size: 1.15rem;
  color: #0f172a;
}

.product-option-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 15px;
  margin-bottom: 10px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.28);
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.product-option-card:hover {
  transform: translateY(-2px);
  border-color: rgba(20, 184, 166, 0.55);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.09);
}

.product-option-card input {
  width: 18px;
  height: 18px;
  accent-color: #0f766e;
}

.product-option-card b {
  display: block;
  color: #0f172a;
  font-size: 1rem;
}

.product-option-card small {
  display: block;
  margin-top: 4px;
  color: #64748b;
  line-height: 1.5;
}

.product-option-card strong {
  color: #0f766e;
  font-size: 1.08rem;
  white-space: nowrap;
}

.product-option-card.disabled {
  opacity: .58;
  cursor: not-allowed;
  background: #f1f5f9;
}

.product-option-card.disabled:hover {
  transform: none;
  box-shadow: none;
  border-color: rgba(148, 163, 184, 0.28);
}

.product-page-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.product-page-actions button,
.product-page .button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 16px;
  border: 0;
  background: linear-gradient(135deg, #0f766e, #14b8a6);
  color: white;
  font-weight: 950;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(15, 118, 110, 0.22);
}

.product-page-actions button:disabled {
  opacity: .55;
  cursor: not-allowed;
  box-shadow: none;
}

.product-page .ghost-button {
  background: #ffffff;
  color: #0f766e;
  border: 1px solid rgba(15, 118, 110, 0.22);
  box-shadow: none;
}

.product-page .toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 100;
  max-width: min(360px, calc(100% - 32px));
  padding: 14px 18px;
  border-radius: 18px;
  background: #0f172a;
  color: #fff;
  font-weight: 800;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.22);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: .2s ease;
}

.product-page .toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 880px) {
  .product-page .topbar {
    flex-wrap: wrap;
    padding: 14px 18px;
  }

  .product-page .topbar nav {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .product-page-shell {
    width: min(100% - 20px, 680px);
    margin-top: 18px;
  }

  .product-page-layout {
    grid-template-columns: 1fr;
    padding: 18px;
    border-radius: 24px;
  }

  .product-page-media {
    min-height: 280px;
  }

  .product-page-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-page-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .product-page-actions button,
  .product-page .button-link {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .product-page .topbar .actions {
    width: 100%;
  }

  .product-page .topbar .actions .button-link {
    flex: 1;
  }

  .product-page-stats {
    grid-template-columns: 1fr;
  }

  .product-option-card {
    grid-template-columns: auto 1fr;
  }

  .product-option-card strong {
    grid-column: 2;
  }
}

/* ADMIN ORDERS UX FIX 20260630 */
#ordersBox {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

#ordersBox:empty::before {
  content: "אין הזמנות להצגה כרגע";
  display: block;
  padding: 26px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.28);
  color: #64748b;
  font-weight: 900;
  text-align: center;
}

#ordersBox > * {
  background: rgba(255,255,255,.98);
  border: 1px solid rgba(148, 163, 184, .24);
  border-radius: 24px;
  box-shadow: 0 18px 44px rgba(15, 23, 42, .08);
  padding: 18px;
  overflow: hidden;
}

#ordersBox > *:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 58px rgba(15, 23, 42, .12);
}

#ordersBox table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

#ordersBox td,
#ordersBox th {
  padding: 10px 12px;
  vertical-align: middle;
}

#ordersBox h3,
#ordersBox h4,
#ordersBox strong {
  color: #0f172a;
}

#ordersBox p,
#ordersBox small,
#ordersBox span {
  line-height: 1.55;
}

#ordersBox .status-pill,
#orderDetailBox .status-pill,
.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 950;
  white-space: nowrap;
  background: #e2e8f0;
  color: #334155;
}

#ordersBox .status-pill.pending,
#orderDetailBox .status-pill.pending,
.status-pill.pending {
  background: #fef3c7;
  color: #92400e;
}

#ordersBox .status-pill.paid,
#ordersBox .status-pill.completed,
#orderDetailBox .status-pill.paid,
#orderDetailBox .status-pill.completed,
.status-pill.paid,
.status-pill.completed {
  background: #dcfce7;
  color: #166534;
}

#ordersBox .status-pill.processing,
#orderDetailBox .status-pill.processing,
.status-pill.processing {
  background: #dbeafe;
  color: #1d4ed8;
}

#ordersBox .status-pill.cancelled,
#ordersBox .status-pill.failed,
#ordersBox .status-pill.refunded,
#orderDetailBox .status-pill.cancelled,
#orderDetailBox .status-pill.failed,
#orderDetailBox .status-pill.refunded,
.status-pill.cancelled,
.status-pill.failed,
.status-pill.refunded {
  background: #fee2e2;
  color: #991b1b;
}

#ordersBox button,
#orderDetailBox button,
#ordersReload {
  border-radius: 14px;
  min-height: 38px;
  padding: 0 14px;
  font-weight: 900;
}

#ordersBox .ghost-button,
#orderDetailBox .ghost-button {
  border: 1px solid rgba(15, 118, 110, .24);
  background: #fff;
  color: #0f766e;
}

#ordersBox .danger-button,
#orderDetailBox .danger-button {
  border-color: rgba(220, 38, 38, .26);
  color: #b91c1c;
  background: #fff5f5;
}

#orderDetailBox {
  margin-top: 18px;
}

#orderDetailBox > * {
  background: rgba(255,255,255,.98);
  border: 1px solid rgba(148, 163, 184, .24);
  border-radius: 24px;
  box-shadow: 0 18px 44px rgba(15, 23, 42, .08);
  padding: 18px;
}

#orderDetailBox .order-status-form,
#orderStatusForm,
#orderShippingForm {
  display: grid;
  gap: 14px;
  margin-top: 16px;
  padding: 16px;
  border-radius: 22px;
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, .22);
}

#orderDetailBox input,
#orderDetailBox select,
#orderDetailBox textarea,
#orderStatusForm input,
#orderStatusForm select,
#orderShippingForm input,
#orderShippingForm select {
  width: 100%;
  min-height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, .38);
  background: #fff;
  padding: 10px 12px;
  outline: none;
}

#orderDetailBox input:focus,
#orderDetailBox select:focus,
#orderDetailBox textarea:focus,
#orderStatusForm input:focus,
#orderStatusForm select:focus,
#orderShippingForm input:focus,
#orderShippingForm select:focus {
  border-color: rgba(20, 184, 166, .75);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, .13);
}

@media (max-width: 820px) {
  #ordersBox > *,
  #orderDetailBox > * {
    padding: 14px;
    border-radius: 20px;
  }

  #ordersBox table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  #ordersBox td,
  #ordersBox th {
    padding: 9px 10px;
  }
}

/* ADMIN ORDERS CARD LAYOUT FIX 20260630 */
#ordersBox {
  display: grid;
  gap: 18px;
}

.admin-order-row.order-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 18px;
  align-items: center;
  padding: 20px;
  border-radius: 26px;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, .24);
  box-shadow: 0 18px 44px rgba(15, 23, 42, .08);
}

.admin-order-row.order-card.active {
  border-color: rgba(20, 184, 166, .65);
  box-shadow: 0 22px 58px rgba(15, 118, 110, .14);
}

.order-card-main {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 16px;
  min-width: 0;
}

.order-card-media {
  width: 82px;
  height: 82px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, .22);
  overflow: hidden;
}

.order-card-media img,
.order-row-thumb {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.order-card-content {
  min-width: 0;
}

.order-card-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
}

.order-card-head strong {
  display: block;
  color: #0f172a;
  font-size: 1.12rem;
  font-weight: 950;
}

.order-card-head small {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-weight: 800;
}

.order-id-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: #ccfbf1;
  color: #0f766e;
  font-weight: 950;
  direction: ltr;
}

.order-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(170px, 1fr));
  gap: 10px 14px;
}

.order-card-line {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid rgba(226, 232, 240, .9);
}

.order-card-line.wide {
  grid-column: span 2;
}

.order-card-label {
  color: #64748b;
  font-size: .76rem;
  font-weight: 900;
}

.order-card-label::after {
  content: ":";
}

.order-card-value {
  color: #0f172a;
  font-size: .92rem;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.order-card-status {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  min-width: 120px;
}

.order-card-status .status-pill {
  width: 100%;
}

.order-row-total {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 14px;
  background: #ecfdf5;
  color: #047857;
  font-size: 1.08rem;
  font-weight: 950;
  white-space: nowrap;
}

.order-card-actions {
  display: grid;
  gap: 8px;
  min-width: 120px;
}

.order-card-actions button {
  width: 100%;
  white-space: nowrap;
}

@media (max-width: 1100px) {
  .admin-order-row.order-card {
    grid-template-columns: 1fr;
  }

  .order-card-status,
  .order-card-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .order-card-actions button {
    width: auto;
  }
}

@media (max-width: 760px) {
  .order-card-main {
    grid-template-columns: 1fr;
  }

  .order-card-media {
    width: 100%;
    height: 150px;
  }

  .order-card-grid {
    grid-template-columns: 1fr;
  }

  .order-card-line.wide {
    grid-column: auto;
  }

  .order-card-status,
  .order-card-actions {
    flex-direction: column;
  }

  .order-card-actions button {
    width: 100%;
  }
}

/* ADMIN ORDER DETAIL POPUP FIX 20260630 */
.admin-order-dialog,
#orderDialog,
dialog.admin-order-dialog {
  width: min(1120px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  border: 0;
  border-radius: 30px;
  padding: 0;
  background: transparent;
}

.admin-order-dialog::backdrop,
#orderDialog::backdrop {
  background: rgba(15, 23, 42, .55);
  backdrop-filter: blur(8px);
}

.admin-order-modal,
#orderDetailPanel,
.admin-order-modal .modal-panel {
  background: #f8fafc;
  color: #0f172a;
}

.admin-order-modal {
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, .26);
  box-shadow: 0 30px 90px rgba(15, 23, 42, .28);
}

.modal-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 24px;
  background: linear-gradient(135deg, #0f766e, #14b8a6);
  color: #fff;
}

.modal-panel-head h2,
.modal-panel-head .eyebrow {
  margin: 0;
  color: #fff;
}

.modal-panel-head .ghost-button,
.modal-panel-head button {
  background: rgba(255,255,255,.16);
  color: #fff;
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: none;
}

.admin-order-modal-body,
#orderDetailPanel {
  padding: 22px;
  max-height: calc(100vh - 140px);
  overflow: auto;
}

.order-detail-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 18px;
}

.order-detail-head > div,
.order-detail-product-hero,
.detail-grid article,
.detail-section,
#orderStatusForm,
#orderShippingForm {
  background: #fff;
  border: 1px solid rgba(148, 163, 184, .24);
  border-radius: 24px;
  box-shadow: 0 16px 38px rgba(15, 23, 42, .06);
}

.order-detail-head > div {
  padding: 20px;
}

.order-detail-head .eyebrow {
  display: inline-flex;
  margin: 0 0 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #ccfbf1;
  color: #0f766e;
  font-weight: 950;
}

.order-detail-head h2 {
  margin: 0 0 16px;
  font-size: 1.45rem;
  color: #0f172a;
}

.customer-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.customer-summary article,
.detail-grid article,
.detail-lines > div {
  padding: 14px;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid rgba(226, 232, 240, .9);
}

.customer-summary span,
.detail-grid span,
.detail-lines span,
.order-detail-product-hero span {
  display: block;
  color: #64748b;
  font-size: .78rem;
  font-weight: 900;
  margin-bottom: 5px;
}

.customer-summary span::after,
.detail-grid span::after,
.detail-lines span::after,
.order-detail-product-hero span::after {
  content: ":";
}

.customer-summary strong,
.detail-grid strong,
.detail-lines strong,
.order-detail-product-hero strong {
  display: block;
  color: #0f172a;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.order-detail-product-hero {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 16px;
}

.order-detail-product-hero img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  border-radius: 20px;
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, .22);
  padding: 8px;
}

.order-detail-product-hero small {
  display: block;
  margin-top: 6px;
  color: #64748b;
  font-weight: 850;
}

.order-action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
  padding: 14px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, .24);
}

.order-action-bar button,
#orderStatusForm button,
#orderShippingForm button,
.admin-order-modal button {
  min-height: 40px;
  border-radius: 14px;
  font-weight: 950;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.order-total-card {
  background: linear-gradient(135deg, #ecfdf5, #ffffff) !important;
  border-color: rgba(16, 185, 129, .26) !important;
}

.order-total-card strong {
  color: #047857;
  font-size: 1.25rem;
}

#orderStatusForm,
#orderShippingForm {
  padding: 18px;
  margin: 16px 0;
}

#orderStatusForm::before {
  content: "עדכון סטטוס ותשלום";
  display: block;
  margin-bottom: 12px;
  color: #0f172a;
  font-size: 1.1rem;
  font-weight: 950;
}

#orderShippingForm::before {
  content: "עדכון משלוח ומעקב";
  display: block;
  margin-bottom: 12px;
  color: #0f172a;
  font-size: 1.1rem;
  font-weight: 950;
}

.two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

#orderStatusForm label,
#orderShippingForm label {
  display: grid;
  gap: 7px;
  color: #334155;
  font-weight: 900;
}

#orderStatusForm input,
#orderStatusForm select,
#orderShippingForm input,
#orderShippingForm select {
  width: 100%;
  min-height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, .38);
  background: #fff;
  padding: 10px 12px;
  outline: none;
  font-weight: 800;
}

#orderStatusForm input:focus,
#orderStatusForm select:focus,
#orderShippingForm input:focus,
#orderShippingForm select:focus {
  border-color: rgba(20, 184, 166, .75);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, .13);
}

.detail-section {
  padding: 18px;
  margin-top: 16px;
}

.detail-section h3 {
  margin: 0 0 14px;
  color: #0f172a;
  font-size: 1.18rem;
  font-weight: 950;
}

.detail-lines {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.detail-section ul,
.detail-section ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail-section li {
  padding: 14px;
  margin-bottom: 10px;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid rgba(226, 232, 240, .9);
  font-weight: 850;
}

.detail-section li strong,
.detail-section li b {
  color: #0f172a;
}

.detail-section li code,
.detail-section code {
  display: inline-flex;
  direction: ltr;
  padding: 3px 7px;
  border-radius: 9px;
  background: #e2e8f0;
  color: #0f172a;
  font-weight: 900;
}

@media (max-width: 980px) {
  .order-detail-head,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .customer-summary,
  .detail-lines {
    grid-template-columns: 1fr;
  }

  .two {
    grid-template-columns: 1fr;
  }

  .order-detail-product-hero {
    grid-template-columns: 1fr;
  }

  .order-detail-product-hero img {
    width: 100%;
    height: 150px;
  }
}

@media (max-width: 620px) {
  .admin-order-dialog,
  #orderDialog {
    width: calc(100vw - 12px);
    max-height: calc(100vh - 12px);
  }

  .modal-panel-head,
  .admin-order-modal-body,
  #orderDetailPanel {
    padding: 14px;
  }

  .order-action-bar {
    flex-direction: column;
  }

  .order-action-bar button {
    width: 100%;
  }
}

/* ADMIN TOAST TOP LAYER FIX 20260630 */
#toast,
.toast {
  z-index: 2147483647 !important;
}

#toast.admin-dialog-toast-in-top-layer,
dialog[open] > #toast,
dialog[open] .toast.admin-dialog-toast-in-top-layer {
  position: fixed !important;
  right: 24px !important;
  bottom: 24px !important;
  left: auto !important;
  top: auto !important;
  z-index: 2147483647 !important;
  max-width: min(420px, calc(100vw - 32px)) !important;
  pointer-events: none !important;
}

#toast.admin-dialog-toast-in-top-layer.show,
dialog[open] > #toast.show {
  opacity: 1 !important;
  transform: translateY(0) !important;
  visibility: visible !important;
}

@media (max-width: 620px) {
  #toast.admin-dialog-toast-in-top-layer,
  dialog[open] > #toast {
    right: 12px !important;
    bottom: 12px !important;
    max-width: calc(100vw - 24px) !important;
  }
}

/* CHECKOUT SCREEN DESIGN FIX 20260630 */
body.checkout-screen-fixed {
  background:
    radial-gradient(circle at top right, rgba(20,184,166,.14), transparent 34rem),
    linear-gradient(180deg, #f8fafc, #eef6f5);
  color: #0f172a;
}

.checkout-screen-shell-fixed {
  width: min(1180px, calc(100vw - 28px));
  margin: 0 auto;
  padding: 34px 0 60px;
}

.checkout-screen-fixed h1,
.checkout-screen-fixed h2,
.checkout-screen-fixed h3 {
  color: #0f172a;
}

.checkout-screen-fixed #checkoutItems,
.checkout-screen-fixed #checkoutTotals,
.checkout-screen-fixed #checkoutPageForm,
.checkout-screen-fixed #bankTransferDetails,
.checkout-screen-fixed #paypalPaymentDetails {
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, .25);
  border-radius: 26px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .07);
}

.checkout-screen-fixed #checkoutItems {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.checkout-screen-fixed #checkoutItems > * {
  min-width: 0;
}

.checkout-screen-fixed #checkoutItems > article,
.checkout-screen-fixed #checkoutItems > div {
  border-radius: 22px;
  border: 1px solid rgba(226, 232, 240, .9);
  background: #f8fafc;
  padding: 14px;
}

.checkout-screen-fixed #checkoutItems img {
  width: 86px !important;
  height: 86px !important;
  object-fit: contain;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, .26);
  padding: 7px;
}

.checkout-screen-fixed .cart-delivery-pill,
.checkout-screen-fixed .checkout-delivery-pill,
.checkout-screen-fixed #checkoutItems span {
  overflow-wrap: anywhere;
}

.checkout-screen-fixed .cart-delivery-pill,
.checkout-screen-fixed .checkout-delivery-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 7px 11px;
  border-radius: 999px;
  background: #ccfbf1;
  color: #0f766e;
  font-weight: 950;
  font-size: .86rem;
}

.checkout-screen-fixed #checkoutPageForm {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.checkout-screen-fixed #checkoutPageForm .two,
.checkout-screen-fixed .two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.checkout-screen-fixed #checkoutPageForm label {
  display: grid;
  gap: 7px;
  color: #334155;
  font-weight: 900;
}

.checkout-screen-fixed #checkoutPageForm input,
.checkout-screen-fixed #checkoutPageForm select,
.checkout-screen-fixed #couponInput {
  width: 100%;
  min-height: 46px;
  border-radius: 15px;
  border: 1px solid rgba(148, 163, 184, .38);
  background: #fff;
  color: #0f172a;
  padding: 10px 12px;
  outline: none;
  font-weight: 800;
}

.checkout-screen-fixed #checkoutPageForm input:focus,
.checkout-screen-fixed #checkoutPageForm select:focus,
.checkout-screen-fixed #couponInput:focus {
  border-color: rgba(20, 184, 166, .75);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, .13);
}

.checkout-screen-fixed #checkoutTotals {
  padding: 18px;
}

.checkout-screen-fixed .total-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(226, 232, 240, .8);
}

.checkout-screen-fixed .total-line:last-child {
  border-bottom: 0;
}

.checkout-screen-fixed .total-line.final {
  margin-top: 8px;
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(135deg, #ecfdf5, #ffffff);
  border: 1px solid rgba(16, 185, 129, .24);
  font-size: 1.08rem;
}

.checkout-screen-fixed .total-line.final strong {
  color: #047857;
  font-size: 1.25rem;
}

.checkout-screen-fixed #bankTransferDetails,
.checkout-screen-fixed #paypalPaymentDetails {
  padding: 16px;
}

.checkout-screen-fixed #paypalButtons {
  margin-top: 12px;
  min-height: 52px;
}

.checkout-screen-fixed button,
.checkout-screen-fixed .button-link {
  min-height: 44px;
  border-radius: 15px;
  font-weight: 950;
}

@media (max-width: 860px) {
  .checkout-screen-shell-fixed {
    width: calc(100vw - 18px);
    padding-top: 18px;
  }

  .checkout-screen-fixed #checkoutPageForm .two,
  .checkout-screen-fixed .two {
    grid-template-columns: 1fr;
  }

  .checkout-screen-fixed #checkoutItems img {
    width: 74px !important;
    height: 74px !important;
  }
}

/* ADMIN ORDER POPUP SAFE PROFESSIONAL FIX 20260701 START */

/* dialog shell - בלי JS ובלי לולאות */
#adminOrderDialog.admin-order-dialog {
  width: min(1040px, calc(100vw - 28px)) !important;
  max-width: min(1040px, calc(100vw - 28px)) !important;
  max-height: calc(100dvh - 28px) !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 28px !important;
  overflow: hidden !important;
  background: #fff !important;
  box-shadow: 0 32px 90px rgba(15, 23, 42, .28) !important;
}

#adminOrderDialog.admin-order-dialog::backdrop {
  background: rgba(15, 23, 42, .56) !important;
  backdrop-filter: blur(8px);
}

#adminOrderDialog .admin-order-modal {
  width: 100% !important;
  max-width: 100% !important;
  max-height: calc(100dvh - 28px) !important;
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
  background: #fff !important;
  overflow: hidden !important;
}

#adminOrderDialog .modal-panel-head {
  position: sticky !important;
  top: 0 !important;
  z-index: 5 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
  padding: 18px 22px !important;
  background: linear-gradient(135deg, #0f766e, #115e59) !important;
  color: #fff !important;
  border: 0 !important;
}

#adminOrderDialog .modal-panel-head h2,
#adminOrderDialog .modal-panel-head h3,
#adminOrderDialog .modal-panel-head p,
#adminOrderDialog .modal-panel-head .eyebrow {
  color: #fff !important;
  margin: 0 !important;
}

#adminOrderDialog .modal-panel-head h2 {
  font-size: 1.22rem !important;
  line-height: 1.35 !important;
}

#adminOrderDialog .modal-panel-head button {
  min-width: 42px !important;
  height: 42px !important;
  border-radius: 14px !important;
  background: rgba(255,255,255,.16) !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.22) !important;
}

#adminOrderDialog .admin-order-modal-body {
  max-height: calc(100dvh - 108px) !important;
  overflow: auto !important;
  padding: 18px !important;
  background: #f8fafc !important;
}

/* כל בלוק בתוך הפופאפ */
#adminOrderDialog .order-detail-head,
#adminOrderDialog .customer-summary,
#adminOrderDialog .detail-grid,
#adminOrderDialog .order-action-bar {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)) !important;
  gap: 12px !important;
  min-width: 0 !important;
}

#adminOrderDialog .detail-section,
#adminOrderDialog .order-total-card,
#adminOrderDialog .order-detail-product-hero,
#adminOrderDialog .customer-summary > *,
#adminOrderDialog .detail-grid > *,
#adminOrderDialog .order-detail-head > *,
#adminOrderDialog .order-action-bar > * {
  min-width: 0 !important;
  max-width: 100% !important;
  border: 1px solid rgba(226, 232, 240, .95) !important;
  border-radius: 20px !important;
  background: #ffffff !important;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .045) !important;
}

#adminOrderDialog .detail-section,
#adminOrderDialog .order-total-card,
#adminOrderDialog .customer-summary > *,
#adminOrderDialog .detail-grid > * {
  padding: 14px !important;
}

/* שורת פעולות */
#adminOrderDialog .order-action-bar {
  align-items: center !important;
  margin: 12px 0 !important;
}

#adminOrderDialog .order-action-bar button,
#adminOrderDialog .primary-action,
#adminOrderDialog [data-send-customer-email] {
  width: 100% !important;
  min-height: 42px !important;
  border-radius: 14px !important;
  font-weight: 950 !important;
  white-space: normal !important;
}

/* טפסי סטטוס ומשלוח */
#adminOrderDialog #orderStatusForm,
#adminOrderDialog #orderShippingForm {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
  align-items: end !important;
  padding: 14px !important;
  margin: 12px 0 !important;
  border: 1px solid rgba(226, 232, 240, .95) !important;
  border-radius: 20px !important;
  background: #ffffff !important;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .045) !important;
}

#adminOrderDialog #orderStatusForm::before {
  content: "עדכון סטטוס ותשלום";
  grid-column: 1 / -1;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 950;
  margin-bottom: 2px;
}

#adminOrderDialog #orderShippingForm::before {
  content: "פרטי משלוח ומעקב";
  grid-column: 1 / -1;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 950;
  margin-bottom: 2px;
}

#adminOrderDialog label {
  min-width: 0 !important;
  max-width: 100% !important;
  display: grid !important;
  gap: 7px !important;
  color: #334155 !important;
  font-weight: 900 !important;
  font-size: .86rem !important;
}

#adminOrderDialog input,
#adminOrderDialog select,
#adminOrderDialog textarea {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  height: 42px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(148, 163, 184, .42) !important;
  background: #fff !important;
  color: #0f172a !important;
  padding: 9px 11px !important;
  font-size: .9rem !important;
  font-weight: 800 !important;
  outline: none !important;
}

#adminOrderDialog textarea {
  min-height: 82px !important;
  height: auto !important;
  resize: vertical !important;
}

#adminOrderDialog input:focus,
#adminOrderDialog select:focus,
#adminOrderDialog textarea:focus {
  border-color: rgba(20, 184, 166, .78) !important;
  box-shadow: 0 0 0 4px rgba(20, 184, 166, .13) !important;
}

/* שדות ארוכים לא שוברים את הפופאפ */
#adminOrderDialog input[name="payment_transaction_id"],
#adminOrderDialog input[name="tracking_number"],
#adminOrderDialog input[name="tracking_url"],
#adminOrderDialog input[name="customer_email"],
#adminOrderDialog input[name="customer_phone"] {
  direction: ltr !important;
  text-align: left !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important;
  font-size: .78rem !important;
}

#adminOrderDialog input[name="payment_transaction_id"]:focus,
#adminOrderDialog input[name="tracking_number"]:focus,
#adminOrderDialog input[name="tracking_url"]:focus {
  height: 58px !important;
  white-space: normal !important;
  overflow: auto !important;
}

/* כפתורי שמירה */
#adminOrderDialog #orderStatusForm button,
#adminOrderDialog #orderShippingForm button,
#adminOrderDialog button[type="submit"] {
  width: fit-content !important;
  min-width: 150px !important;
  max-width: 100% !important;
  justify-self: start !important;
  height: 42px !important;
  border-radius: 14px !important;
  padding: 0 16px !important;
  font-weight: 950 !important;
}

/* טבלת מוצרים */
#adminOrderDialog table {
  width: 100% !important;
  table-layout: fixed !important;
  border-collapse: collapse !important;
  background: #fff !important;
  border-radius: 18px !important;
  overflow: hidden !important;
}

#adminOrderDialog th,
#adminOrderDialog td {
  padding: 10px !important;
  border-bottom: 1px solid rgba(226, 232, 240, .9) !important;
  vertical-align: top !important;
  min-width: 0 !important;
  overflow-wrap: anywhere !important;
}

#adminOrderDialog th {
  background: #f1f5f9 !important;
  color: #475569 !important;
  font-size: .78rem !important;
  font-weight: 950 !important;
}

#adminOrderDialog td {
  color: #0f172a !important;
  font-size: .86rem !important;
}

#adminOrderDialog img {
  max-width: 84px !important;
  max-height: 84px !important;
  object-fit: contain !important;
  border-radius: 16px !important;
  background: #fff !important;
  border: 1px solid rgba(226, 232, 240, .95) !important;
  padding: 6px !important;
}

/* טקסטים ארוכים */
#adminOrderDialog p,
#adminOrderDialog span,
#adminOrderDialog strong,
#adminOrderDialog a,
#adminOrderDialog div {
  min-width: 0 !important;
  overflow-wrap: anywhere !important;
}

#adminOrderDialog strong[dir="ltr"],
#adminOrderDialog td[dir="ltr"] {
  direction: ltr !important;
  text-align: left !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important;
  font-size: .82rem !important;
}

/* מובייל */
@media (max-width: 760px) {
  #adminOrderDialog.admin-order-dialog {
    width: calc(100vw - 12px) !important;
    max-width: calc(100vw - 12px) !important;
    max-height: calc(100dvh - 12px) !important;
    border-radius: 22px !important;
  }

  #adminOrderDialog .admin-order-modal-body {
    padding: 12px !important;
  }

  #adminOrderDialog #orderStatusForm,
  #adminOrderDialog #orderShippingForm,
  #adminOrderDialog .order-detail-head,
  #adminOrderDialog .customer-summary,
  #adminOrderDialog .detail-grid,
  #adminOrderDialog .order-action-bar {
    grid-template-columns: 1fr !important;
  }

  #adminOrderDialog #orderStatusForm button,
  #adminOrderDialog #orderShippingForm button,
  #adminOrderDialog button[type="submit"] {
    width: 100% !important;
  }
}

/* ADMIN ORDER POPUP SAFE PROFESSIONAL FIX 20260701 END */

/* ADMIN SEND EMAIL BUTTON VISIBILITY FIX 20260701 START */

#adminOrderDialog [data-send-customer-email],
#adminOrderDialog button[data-send-customer-email],
#adminOrderDialog .ghost-button.primary-action[data-send-customer-email] {
  background: linear-gradient(135deg, #0f766e, #14b8a6) !important;
  color: #ffffff !important;
  border: 1px solid rgba(15, 118, 110, .95) !important;
  box-shadow: 0 14px 30px rgba(15, 118, 110, .28) !important;
  text-shadow: 0 1px 1px rgba(0, 0, 0, .22) !important;
  font-size: .95rem !important;
  font-weight: 1000 !important;
  letter-spacing: .01em !important;
  min-height: 48px !important;
  padding: 0 16px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  opacity: 1 !important;
}

#adminOrderDialog [data-send-customer-email]::before,
#adminOrderDialog button[data-send-customer-email]::before {
  content: "✉";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .18);
  color: #ffffff;
  font-size: 1rem;
  line-height: 1;
}

#adminOrderDialog [data-send-customer-email]:hover,
#adminOrderDialog button[data-send-customer-email]:hover {
  background: linear-gradient(135deg, #115e59, #0f766e) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 18px 38px rgba(15, 118, 110, .34) !important;
}

#adminOrderDialog [data-send-customer-email]:active,
#adminOrderDialog button[data-send-customer-email]:active {
  transform: translateY(0);
  box-shadow: 0 10px 22px rgba(15, 118, 110, .24) !important;
}

#adminOrderDialog [data-send-customer-email]:disabled,
#adminOrderDialog button[data-send-customer-email]:disabled {
  background: #94a3b8 !important;
  color: #ffffff !important;
  border-color: #94a3b8 !important;
  box-shadow: none !important;
  opacity: .78 !important;
}

/* ADMIN SEND EMAIL BUTTON VISIBILITY FIX 20260701 END */

/* CLIENT ACCOUNT ORDER POPUP PROFESSIONAL FIX 20260701 START */

body:not(.admin-page).client-account-ui-pro {
  background-attachment: fixed;
}

body:not(.admin-page) dialog.client-order-popup-pro::backdrop {
  background: rgba(15, 23, 42, .58);
  backdrop-filter: blur(6px);
}

body:not(.admin-page) .client-order-popup-pro {
  direction: rtl !important;
  z-index: 9999 !important;
}

body:not(.admin-page) .client-order-popup-panel-pro,
body:not(.admin-page) .client-order-popup-pro.client-order-popup-panel-pro {
  direction: rtl !important;
  width: min(980px, calc(100vw - 24px)) !important;
  max-width: min(980px, calc(100vw - 24px)) !important;
  max-height: min(88vh, 920px) !important;
  overflow: auto !important;
  background:
    radial-gradient(circle at top right, rgba(20, 184, 166, .10), transparent 35%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
  border: 1px solid rgba(148, 163, 184, .34) !important;
  border-radius: 26px !important;
  box-shadow: 0 30px 90px rgba(15, 23, 42, .26) !important;
  color: #0f172a !important;
  padding: 0 !important;
  scrollbar-width: thin;
  scrollbar-color: rgba(15,118,110,.45) rgba(226,232,240,.75);
}

body:not(.admin-page) .client-order-popup-panel-pro::-webkit-scrollbar {
  width: 10px;
}

body:not(.admin-page) .client-order-popup-panel-pro::-webkit-scrollbar-thumb {
  background: rgba(15,118,110,.45);
  border-radius: 999px;
}

body:not(.admin-page) .client-order-popup-panel-pro :is(h1,h2,h3) {
  color: #0f172a !important;
  letter-spacing: -.02em;
}

body:not(.admin-page) .client-order-popup-panel-pro > :is(h1,h2,h3):first-child,
body:not(.admin-page) .client-order-popup-panel-pro :is(.modal-head,.modal-header,.popup-head,.dialog-head,.order-head,.order-header) {
  margin: 0 !important;
  padding: 22px 24px !important;
  background: linear-gradient(135deg, #0f172a 0%, #115e59 58%, #14b8a6 100%) !important;
  color: #ffffff !important;
  border-radius: 24px 24px 0 0 !important;
}

body:not(.admin-page) .client-order-popup-panel-pro :is(.modal-head,.modal-header,.popup-head,.dialog-head,.order-head,.order-header) * {
  color: #ffffff !important;
}

body:not(.admin-page) .client-order-popup-panel-pro > *:not(h1):not(h2):not(h3),
body:not(.admin-page) .client-order-popup-panel-pro :is(.modal-body,.popup-body,.dialog-body,.order-body,.order-details,.order-detail) {
  padding-inline: 22px;
}

body:not(.admin-page) .client-order-popup-panel-pro :is(.order-summary,.order-meta,.order-info,.summary-grid,.details-grid,.detail-grid,.customer-summary) {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px !important;
  margin: 18px 0 !important;
}

body:not(.admin-page) .client-order-popup-panel-pro p:has(> strong) {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  padding: 12px 14px !important;
  margin: 8px 0 !important;
  box-shadow: 0 10px 26px rgba(15, 23, 42, .04) !important;
}

body:not(.admin-page) .client-order-popup-panel-pro :is(.badge,.chip,.status,.status-badge,.order-status,.payment-status) {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  min-height: 30px !important;
  padding: 6px 12px !important;
  border-radius: 999px !important;
  background: #ecfdf5 !important;
  border: 1px solid #bbf7d0 !important;
  color: #065f46 !important;
  font-weight: 800 !important;
  font-size: 13px !important;
}

body:not(.admin-page) .client-order-items-table-pro,
body:not(.admin-page) .client-order-popup-panel-pro table {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  overflow: hidden !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 18px !important;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .055) !important;
  margin: 14px 0 20px !important;
}

body:not(.admin-page) .client-order-items-table-pro thead,
body:not(.admin-page) .client-order-popup-panel-pro table thead {
  background: #f1f5f9 !important;
}

body:not(.admin-page) .client-order-items-table-pro th,
body:not(.admin-page) .client-order-popup-panel-pro table th {
  padding: 14px 13px !important;
  color: #475569 !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  text-align: right !important;
  border-bottom: 1px solid #e2e8f0 !important;
  white-space: nowrap !important;
}

body:not(.admin-page) .client-order-items-table-pro td,
body:not(.admin-page) .client-order-popup-panel-pro table td {
  padding: 14px 13px !important;
  color: #0f172a !important;
  border-bottom: 1px solid #eef2f7 !important;
  vertical-align: top !important;
  line-height: 1.55 !important;
}

body:not(.admin-page) .client-order-items-table-pro tr:last-child td,
body:not(.admin-page) .client-order-popup-panel-pro table tr:last-child td {
  border-bottom: 0 !important;
}

body:not(.admin-page) .client-order-product-img-pro,
body:not(.admin-page) .client-order-popup-panel-pro table img {
  width: 82px !important;
  height: 82px !important;
  object-fit: contain !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  padding: 7px !important;
  box-shadow: 0 10px 22px rgba(15, 23, 42, .06) !important;
}

body:not(.admin-page) .client-order-popup-panel-pro :is(code,kbd,pre,[dir="ltr"]) {
  direction: ltr !important;
  text-align: left !important;
  unicode-bidi: plaintext !important;
  word-break: break-word !important;
}

body:not(.admin-page) .client-order-popup-panel-pro :is(input,textarea,select) {
  width: 100% !important;
  min-height: 44px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 14px !important;
  padding: 10px 12px !important;
  background: #ffffff !important;
  color: #0f172a !important;
}

body:not(.admin-page) .client-order-popup-panel-pro :is(a,button).client-order-action-pro,
body:not(.admin-page) .client-order-popup-panel-pro a[href*="email-download"],
body:not(.admin-page) .client-order-popup-panel-pro a[href*="tracking"],
body:not(.admin-page) .client-order-popup-panel-pro a[href*="account"] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  min-height: 42px !important;
  padding: 10px 15px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(15, 118, 110, .20) !important;
  background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  text-decoration: none !important;
  font-weight: 900 !important;
  box-shadow: 0 12px 28px rgba(15, 118, 110, .22) !important;
  cursor: pointer !important;
}

body:not(.admin-page) .client-order-popup-panel-pro :is(a,button).client-order-action-pro:hover,
body:not(.admin-page) .client-order-popup-panel-pro a[href*="email-download"]:hover,
body:not(.admin-page) .client-order-popup-panel-pro a[href*="tracking"]:hover,
body:not(.admin-page) .client-order-popup-panel-pro a[href*="account"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(15, 118, 110, .28) !important;
}

body:not(.admin-page) .client-order-popup-panel-pro button[aria-label*="close"],
body:not(.admin-page) .client-order-popup-panel-pro button[aria-label*="סגור"],
body:not(.admin-page) .client-order-popup-panel-pro .close,
body:not(.admin-page) .client-order-popup-panel-pro .modal-close {
  border-radius: 999px !important;
  width: 38px !important;
  height: 38px !important;
  min-height: 38px !important;
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 8px 18px rgba(15,23,42,.10) !important;
}

@media (max-width: 760px) {
  body:not(.admin-page) .client-order-popup-panel-pro,
  body:not(.admin-page) .client-order-popup-pro.client-order-popup-panel-pro {
    width: calc(100vw - 14px) !important;
    max-width: calc(100vw - 14px) !important;
    max-height: 90vh !important;
    border-radius: 20px !important;
  }

  body:not(.admin-page) .client-order-popup-panel-pro > :is(h1,h2,h3):first-child,
  body:not(.admin-page) .client-order-popup-panel-pro :is(.modal-head,.modal-header,.popup-head,.dialog-head,.order-head,.order-header) {
    padding: 18px 16px !important;
    border-radius: 18px 18px 0 0 !important;
  }

  body:not(.admin-page) .client-order-popup-panel-pro > *:not(h1):not(h2):not(h3),
  body:not(.admin-page) .client-order-popup-panel-pro :is(.modal-body,.popup-body,.dialog-body,.order-body,.order-details,.order-detail) {
    padding-inline: 14px !important;
  }

  body:not(.admin-page) .client-order-popup-panel-pro :is(.order-summary,.order-meta,.order-info,.summary-grid,.details-grid,.detail-grid,.customer-summary) {
    grid-template-columns: 1fr !important;
  }

  body:not(.admin-page) .client-order-popup-panel-pro table {
    display: block !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
  }

  body:not(.admin-page) .client-order-popup-panel-pro table th,
  body:not(.admin-page) .client-order-popup-panel-pro table td {
    padding: 12px 10px !important;
    font-size: 13px !important;
  }

  body:not(.admin-page) .client-order-product-img-pro,
  body:not(.admin-page) .client-order-popup-panel-pro table img {
    width: 64px !important;
    height: 64px !important;
  }
}

/* CLIENT ACCOUNT ORDER POPUP PROFESSIONAL FIX 20260701 END */

/* ACCOUNT ORDER DIALOG EXACT PROFESSIONAL FIX 20260701 START */

/* תיקון ממוקד לפופאפ הזמנה באזור אישי לקוח */
body:not(.admin-page) dialog#orderDialog {
  direction: rtl !important;
  width: min(980px, calc(100vw - 28px)) !important;
  max-width: min(980px, calc(100vw - 28px)) !important;
  max-height: calc(100dvh - 28px) !important;
  margin: auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 28px !important;
  overflow: hidden !important;
  background: transparent !important;
  box-shadow: 0 34px 100px rgba(15, 23, 42, .34) !important;
}

body:not(.admin-page) dialog#orderDialog::backdrop {
  background: rgba(15, 23, 42, .58) !important;
  backdrop-filter: blur(7px) !important;
}

body:not(.admin-page) #orderDialog .modal-panel {
  direction: rtl !important;
  width: 100% !important;
  max-width: 100% !important;
  max-height: calc(100dvh - 28px) !important;
  overflow: auto !important;
  padding: 18px !important;
  border-radius: 28px !important;
  background:
    radial-gradient(circle at top right, rgba(20, 184, 166, .12), transparent 36%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
  border: 1px solid rgba(226, 232, 240, .95) !important;
  scrollbar-width: thin !important;
  scrollbar-color: rgba(15, 118, 110, .50) rgba(226, 232, 240, .75) !important;
}

body:not(.admin-page) #orderDialog .modal-panel::-webkit-scrollbar {
  width: 10px !important;
}

body:not(.admin-page) #orderDialog .modal-panel::-webkit-scrollbar-thumb {
  background: rgba(15, 118, 110, .50) !important;
  border-radius: 999px !important;
}

/* כפתור סגירה */
body:not(.admin-page) #orderDialog .modal-panel > button:first-child,
body:not(.admin-page) #orderDialog button[data-close-order],
body:not(.admin-page) #orderDialog button[aria-label*="סגור"],
body:not(.admin-page) #orderDialog .modal-close,
body:not(.admin-page) #orderDialog .close {
  position: sticky !important;
  top: 0 !important;
  z-index: 20 !important;
  float: left !important;
  width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  border-radius: 14px !important;
  border: 1px solid #dbeafe !important;
  background: #ffffff !important;
  color: #0f766e !important;
  font-size: 18px !important;
  font-weight: 1000 !important;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .12) !important;
}

/* כותרת ראשית */
body:not(.admin-page) #orderDialog .account-order-detail-head {
  margin: 0 0 16px !important;
  padding: 22px 24px !important;
  border-radius: 22px !important;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,.22), transparent 34%),
    linear-gradient(135deg, #0f172a 0%, #115e59 58%, #14b8a6 100%) !important;
  border: 1px solid rgba(20, 184, 166, .20) !important;
  box-shadow: 0 18px 44px rgba(15, 23, 42, .14) !important;
  color: #ffffff !important;
}

body:not(.admin-page) #orderDialog .account-order-detail-head * {
  color: #ffffff !important;
}

body:not(.admin-page) #orderDialog .account-order-detail-head .eyebrow {
  margin: 0 0 6px !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  letter-spacing: .04em !important;
  opacity: .85 !important;
}

body:not(.admin-page) #orderDialog .account-order-detail-head h3,
body:not(.admin-page) #orderDialog .account-order-detail-head h2 {
  margin: 0 0 6px !important;
  font-size: clamp(22px, 2.4vw, 30px) !important;
  line-height: 1.2 !important;
  font-weight: 1000 !important;
}

body:not(.admin-page) #orderDialog .account-order-detail-head strong {
  display: inline-flex !important;
  margin-top: 8px !important;
  font-size: 18px !important;
  font-weight: 1000 !important;
}

/* כרטיסי סטטוס */
body:not(.admin-page) #orderDialog .account-detail-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 12px !important;
  margin: 0 0 18px !important;
}

body:not(.admin-page) #orderDialog .account-detail-grid article,
body:not(.admin-page) #orderDialog .account-detail-grid > div {
  min-width: 0 !important;
  padding: 16px 18px !important;
  border-radius: 18px !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .055) !important;
}

body:not(.admin-page) #orderDialog .account-detail-grid span,
body:not(.admin-page) #orderDialog .account-detail-grid small {
  display: block !important;
  margin: 0 0 8px !important;
  color: #64748b !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}

body:not(.admin-page) #orderDialog .account-detail-grid strong,
body:not(.admin-page) #orderDialog .account-detail-grid b {
  display: block !important;
  color: #0f172a !important;
  font-size: 17px !important;
  font-weight: 1000 !important;
}

/* אזורי תוכן */
body:not(.admin-page) #orderDialog .account-products-section,
body:not(.admin-page) #orderDialog .account-shipping-lines,
body:not(.admin-page) #orderDialog section:has(.account-line-card),
body:not(.admin-page) #orderDialog section:has(.account-tracking-card) {
  margin: 16px 0 !important;
  padding: 18px !important;
  border-radius: 22px !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 18px 44px rgba(15, 23, 42, .07) !important;
}

body:not(.admin-page) #orderDialog .account-products-section h3,
body:not(.admin-page) #orderDialog .account-shipping-lines h3,
body:not(.admin-page) #orderDialog h3 {
  margin: 0 0 16px !important;
  color: #0f172a !important;
  font-size: 20px !important;
  font-weight: 1000 !important;
}

/* מוצר */
body:not(.admin-page) #orderDialog .account-order-lines {
  display: grid !important;
  gap: 14px !important;
}

body:not(.admin-page) #orderDialog .account-line-card {
  display: grid !important;
  grid-template-columns: 1fr auto !important;
  gap: 18px !important;
  align-items: start !important;
  padding: 16px !important;
  border-radius: 18px !important;
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: none !important;
}

body:not(.admin-page) #orderDialog .account-line-card img {
  width: 82px !important;
  height: 82px !important;
  object-fit: contain !important;
  border-radius: 14px !important;
  border: 1px solid #dbe3ef !important;
  background: #ffffff !important;
  padding: 7px !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .07) !important;
}

body:not(.admin-page) #orderDialog .account-line-content {
  min-width: 0 !important;
}

body:not(.admin-page) #orderDialog .account-line-title {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 14px !important;
  margin-bottom: 12px !important;
}

body:not(.admin-page) #orderDialog .account-line-title strong {
  color: #0f172a !important;
  font-size: 18px !important;
  font-weight: 1000 !important;
}

body:not(.admin-page) #orderDialog .account-line-title span,
body:not(.admin-page) #orderDialog .account-line-content span {
  color: #64748b !important;
  font-size: 14px !important;
  font-weight: 700 !important;
}

/* מחיר */
body:not(.admin-page) #orderDialog .account-line-card > strong,
body:not(.admin-page) #orderDialog .account-line-card .account-order-total,
body:not(.admin-page) #orderDialog .account-line-card .price {
  color: #0f766e !important;
  font-size: 18px !important;
  font-weight: 1000 !important;
}

/* תיבת מפתח מוצר */
body:not(.admin-page) #orderDialog .account-line-card :is(.account-key-box,.account-key-card,.account-license-box,.license-box,.key-box,.product-key-box,.product-key-card),
body:not(.admin-page) #orderDialog .account-line-card [class*="key"]:not(button):not(a):not(img),
body:not(.admin-page) #orderDialog .account-line-card [class*="license"]:not(button):not(a):not(img) {
  margin-top: 14px !important;
  padding: 14px !important;
  border-radius: 16px !important;
  background: #fff7ed !important;
  border: 1px solid #fed7aa !important;
  color: #0f172a !important;
}

body:not(.admin-page) #orderDialog .account-line-card code,
body:not(.admin-page) #orderDialog .account-line-card [dir="ltr"] {
  direction: ltr !important;
  text-align: left !important;
  unicode-bidi: plaintext !important;
  word-break: break-word !important;
  letter-spacing: .08em !important;
  font-size: 17px !important;
  font-weight: 1000 !important;
}

/* כפתורים */
body:not(.admin-page) #orderDialog button,
body:not(.admin-page) #orderDialog a.button-link,
body:not(.admin-page) #orderDialog a[href*="download"],
body:not(.admin-page) #orderDialog a[href*="email-download"],
body:not(.admin-page) #orderDialog a[href*="tracking"] {
  border-radius: 12px !important;
  min-height: 40px !important;
  padding: 9px 13px !important;
  font-weight: 1000 !important;
}

body:not(.admin-page) #orderDialog .account-line-card button,
body:not(.admin-page) #orderDialog .account-line-card a[href*="download"],
body:not(.admin-page) #orderDialog .account-line-card a[href*="email-download"] {
  background: linear-gradient(135deg, #0f766e, #14b8a6) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border: 1px solid rgba(15, 118, 110, .18) !important;
  box-shadow: 0 10px 22px rgba(15, 118, 110, .20) !important;
}

/* משלוח */
body:not(.admin-page) #orderDialog .account-shipping-lines {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

body:not(.admin-page) #orderDialog .account-shipping-lines > h3 {
  grid-column: 1 / -1 !important;
}

body:not(.admin-page) #orderDialog .account-tracking-card,
body:not(.admin-page) #orderDialog .account-shipping-lines article,
body:not(.admin-page) #orderDialog .account-shipping-lines > div {
  min-width: 0 !important;
  padding: 15px 16px !important;
  border-radius: 18px !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: none !important;
}

body:not(.admin-page) #orderDialog .account-tracking-card small,
body:not(.admin-page) #orderDialog .account-shipping-lines small,
body:not(.admin-page) #orderDialog .account-shipping-lines span {
  display: block !important;
  margin-bottom: 8px !important;
  color: #64748b !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}

body:not(.admin-page) #orderDialog .account-tracking-card strong,
body:not(.admin-page) #orderDialog .account-shipping-lines strong {
  color: #0f172a !important;
  font-size: 17px !important;
  font-weight: 1000 !important;
}

/* מובייל */
@media (max-width: 820px) {
  body:not(.admin-page) dialog#orderDialog {
    width: calc(100vw - 14px) !important;
    max-width: calc(100vw - 14px) !important;
    max-height: calc(100dvh - 14px) !important;
    border-radius: 20px !important;
  }

  body:not(.admin-page) #orderDialog .modal-panel {
    padding: 12px !important;
    border-radius: 20px !important;
  }

  body:not(.admin-page) #orderDialog .account-detail-grid,
  body:not(.admin-page) #orderDialog .account-shipping-lines {
    grid-template-columns: 1fr !important;
  }

  body:not(.admin-page) #orderDialog .account-line-card {
    grid-template-columns: 1fr !important;
  }

  body:not(.admin-page) #orderDialog .account-line-title {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  body:not(.admin-page) #orderDialog .account-order-detail-head {
    padding: 18px !important;
  }
}

/* ACCOUNT ORDER DIALOG EXACT PROFESSIONAL FIX 20260701 END */


/* CHECKOUT_SECURE_BADGE_FIX_20260702_START */
.checkout-secure-badge,
.checkout-page .checkout-secure-badge,
body .checkout-secure-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: fit-content !important;
  max-width: 100% !important;
  margin: 0 0 12px !important;
  padding: 8px 14px !important;
  border-radius: 999px !important;
  border: 1px solid #99f6e4 !important;
  background: #ecfdf5 !important;
  color: #0f766e !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
  text-shadow: none !important;
  box-shadow: 0 8px 20px rgba(15, 118, 110, .12) !important;
}

.checkout-secure-badge::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-left: 7px;
  border-radius: 999px;
  background: #0f766e;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}
/* CHECKOUT_SECURE_BADGE_FIX_20260702_END */


/* CHECKOUT_FORM_PRO_UI_20260702_START */
body.checkout-pro-ui:not(.checkout-success-mode) {
  background:
    radial-gradient(circle at top right, rgba(20, 184, 166, .10), transparent 32rem),
    linear-gradient(180deg, #f8fafc 0%, #ffffff 42%, #f8fafc 100%) !important;
}

body.checkout-pro-ui:not(.checkout-success-mode) main.checkout-pro-main,
body.checkout-pro-ui:not(.checkout-success-mode) main {
  max-width: 1180px !important;
  margin: 0 auto !important;
  padding: 26px 18px 48px !important;
  direction: rtl !important;
}

body.checkout-pro-ui:not(.checkout-success-mode) .checkout-pro-title {
  margin: 8px 0 22px !important;
  color: #0f172a !important;
  font-size: clamp(28px, 4vw, 44px) !important;
  line-height: 1.2 !important;
  font-weight: 950 !important;
  letter-spacing: -.03em !important;
}

body.checkout-pro-ui:not(.checkout-success-mode) .checkout-pro-secure,
body.checkout-pro-ui:not(.checkout-success-mode) .checkout-secure-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  width: fit-content !important;
  margin: 0 0 10px !important;
  padding: 9px 15px !important;
  border-radius: 999px !important;
  border: 1px solid #99f6e4 !important;
  background: #ecfdf5 !important;
  color: #0f766e !important;
  font-size: 13px !important;
  font-weight: 950 !important;
  opacity: 1 !important;
  visibility: visible !important;
  box-shadow: 0 10px 24px rgba(15, 118, 110, .12) !important;
}

body.checkout-pro-ui:not(.checkout-success-mode) .checkout-pro-card {
  background: rgba(255, 255, 255, .94) !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 22px !important;
  box-shadow: 0 18px 46px rgba(15, 23, 42, .08) !important;
  padding: 22px !important;
  overflow: hidden !important;
}

body.checkout-pro-ui:not(.checkout-success-mode) .checkout-pro-card h2,
body.checkout-pro-ui:not(.checkout-success-mode) .checkout-pro-card h3,
body.checkout-pro-ui:not(.checkout-success-mode) .checkout-pro-card legend {
  color: #0f172a !important;
  font-size: 20px !important;
  line-height: 1.35 !important;
  font-weight: 950 !important;
  margin: 0 0 8px !important;
}

body.checkout-pro-ui:not(.checkout-success-mode) .checkout-pro-muted,
body.checkout-pro-ui:not(.checkout-success-mode) .checkout-pro-card p,
body.checkout-pro-ui:not(.checkout-success-mode) .checkout-pro-card small {
  color: #64748b !important;
  font-size: 13px !important;
  line-height: 1.8 !important;
}

body.checkout-pro-ui:not(.checkout-success-mode) .checkout-pro-summary-card {
  border-top: 5px solid #0f766e !important;
}

body.checkout-pro-ui:not(.checkout-success-mode) .checkout-pro-details-card {
  border-top: 5px solid #14b8a6 !important;
}

body.checkout-pro-ui:not(.checkout-success-mode) .checkout-pro-cart-item {
  display: grid !important;
  grid-template-columns: 1fr auto !important;
  gap: 12px !important;
  align-items: center !important;
  margin: 14px 0 !important;
  padding: 15px !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 16px !important;
  background: #f8fafc !important;
  color: #0f172a !important;
  font-weight: 850 !important;
}

body.checkout-pro-ui:not(.checkout-success-mode) .checkout-pro-remove {
  border: 1px solid #fecaca !important;
  background: #fff1f2 !important;
  color: #be123c !important;
  border-radius: 10px !important;
  padding: 7px 11px !important;
  font-weight: 900 !important;
}

body.checkout-pro-ui:not(.checkout-success-mode) .checkout-pro-edit-cart {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 38px !important;
  padding: 0 14px !important;
  border-radius: 12px !important;
  border: 1px solid #0f766e !important;
  background: #ffffff !important;
  color: #0f766e !important;
  font-weight: 950 !important;
  text-decoration: none !important;
}

body.checkout-pro-ui:not(.checkout-success-mode) .checkout-pro-total-line,
body.checkout-pro-ui:not(.checkout-success-mode) .total-line {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  padding: 12px 0 !important;
  border-bottom: 1px solid #e5e7eb !important;
  color: #475569 !important;
  font-size: 14px !important;
}

body.checkout-pro-ui:not(.checkout-success-mode) .checkout-pro-total-line strong,
body.checkout-pro-ui:not(.checkout-success-mode) .total-line strong {
  color: #0f172a !important;
  font-size: 16px !important;
  font-weight: 950 !important;
}

body.checkout-pro-ui:not(.checkout-success-mode) .checkout-pro-total-line--grand,
body.checkout-pro-ui:not(.checkout-success-mode) .total-line:last-child {
  margin-top: 10px !important;
  padding: 15px 16px !important;
  border: 0 !important;
  border-radius: 16px !important;
  background: linear-gradient(135deg, #0f766e, #14b8a6) !important;
  color: #ffffff !important;
}

body.checkout-pro-ui:not(.checkout-success-mode) .checkout-pro-total-line--grand strong,
body.checkout-pro-ui:not(.checkout-success-mode) .total-line:last-child strong,
body.checkout-pro-ui:not(.checkout-success-mode) .total-line:last-child span {
  color: #ffffff !important;
  font-size: 19px !important;
  font-weight: 950 !important;
}

body.checkout-pro-ui:not(.checkout-success-mode) .checkout-pro-label,
body.checkout-pro-ui:not(.checkout-success-mode) label {
  display: grid !important;
  gap: 7px !important;
  color: #334155 !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  margin-bottom: 14px !important;
}

body.checkout-pro-ui:not(.checkout-success-mode) .checkout-pro-field,
body.checkout-pro-ui:not(.checkout-success-mode) input,
body.checkout-pro-ui:not(.checkout-success-mode) select,
body.checkout-pro-ui:not(.checkout-success-mode) textarea {
  width: 100% !important;
  min-height: 46px !important;
  border-radius: 13px !important;
  border: 1px solid #cbd5e1 !important;
  background: #ffffff !important;
  color: #0f172a !important;
  padding: 10px 13px !important;
  font-size: 15px !important;
  font-weight: 750 !important;
  outline: none !important;
  box-shadow: 0 1px 0 rgba(15, 23, 42, .03) !important;
}

body.checkout-pro-ui:not(.checkout-success-mode) input:focus,
body.checkout-pro-ui:not(.checkout-success-mode) select:focus,
body.checkout-pro-ui:not(.checkout-success-mode) textarea:focus {
  border-color: #14b8a6 !important;
  box-shadow: 0 0 0 4px rgba(20, 184, 166, .16) !important;
}

body.checkout-pro-ui:not(.checkout-success-mode) .checkout-pro-payment-box {
  background: linear-gradient(180deg, #ffffff, #f8fafc) !important;
  border: 1px solid #dbeafe !important;
  border-radius: 20px !important;
  box-shadow: 0 16px 40px rgba(37, 99, 235, .08) !important;
  padding: 20px !important;
  margin-top: 16px !important;
}

body.checkout-pro-ui:not(.checkout-success-mode) .checkout-pro-payment-box::before {
  content: "תשלום מאובטח";
  display: inline-flex;
  align-items: center;
  margin-bottom: 10px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  font-size: 12px;
  font-weight: 950;
}

body.checkout-pro-ui:not(.checkout-success-mode) .checkout-pro-pay-button,
body.checkout-pro-ui:not(.checkout-success-mode) button[type="submit"] {
  min-height: 48px !important;
  border: 0 !important;
  border-radius: 14px !important;
  background: linear-gradient(135deg, #0f766e, #14b8a6) !important;
  color: #ffffff !important;
  font-weight: 950 !important;
  padding: 0 22px !important;
  box-shadow: 0 14px 28px rgba(15, 118, 110, .20) !important;
}

body.checkout-pro-ui:not(.checkout-success-mode) .checkout-pro-coupon-box {
  background: #fff7ed !important;
  border: 1px solid #fed7aa !important;
  border-radius: 18px !important;
  padding: 18px !important;
  margin-top: 16px !important;
}

@media (min-width: 900px) {
  body.checkout-pro-ui:not(.checkout-success-mode) main.checkout-pro-main {
    display: grid !important;
    grid-template-columns: minmax(0, 420px) minmax(0, 1fr) !important;
    gap: 22px !important;
    align-items: start !important;
  }

  body.checkout-pro-ui:not(.checkout-success-mode) .checkout-pro-summary-card {
    position: sticky !important;
    top: 18px !important;
  }
}

@media (max-width: 899px) {
  body.checkout-pro-ui:not(.checkout-success-mode) main.checkout-pro-main {
    display: block !important;
  }

  body.checkout-pro-ui:not(.checkout-success-mode) .checkout-pro-card,
  body.checkout-pro-ui:not(.checkout-success-mode) .checkout-pro-payment-box,
  body.checkout-pro-ui:not(.checkout-success-mode) .checkout-pro-coupon-box {
    margin-bottom: 16px !important;
  }
}
/* CHECKOUT_FORM_PRO_UI_20260702_END */


/* CHECKOUT_QTY_FIELD_WIDTH_FIX_20260702_START */
body.checkout-pro-ui:not(.checkout-success-mode) .checkout-pro-summary-card input[type="number"],
body.checkout-pro-ui:not(.checkout-success-mode) .checkout-pro-cart-item input[type="number"],
body.checkout-pro-ui:not(.checkout-success-mode) #checkoutItems input[type="number"],
body.checkout-pro-ui:not(.checkout-success-mode) #cartItems input[type="number"],
body.checkout-pro-ui:not(.checkout-success-mode) .cart-items input[type="number"],
body.checkout-pro-ui:not(.checkout-success-mode) .cart-item input[type="number"],
body.checkout-pro-ui:not(.checkout-success-mode) input[name*="quantity"],
body.checkout-pro-ui:not(.checkout-success-mode) input[name*="qty"],
body.checkout-pro-ui:not(.checkout-success-mode) input[aria-label*="כמות"],
body.checkout-pro-ui:not(.checkout-success-mode) input[title*="כמות"] {
  width: 62px !important;
  inline-size: 62px !important;
  min-width: 62px !important;
  max-width: 62px !important;
  flex: 0 0 62px !important;
  justify-self: end !important;
  align-self: center !important;
  text-align: center !important;
  padding: 8px 6px !important;
  min-height: 38px !important;
  height: 38px !important;
  border-radius: 10px !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

body.checkout-pro-ui:not(.checkout-success-mode) .checkout-pro-cart-item {
  grid-template-columns: minmax(0, 1fr) max-content max-content max-content !important;
  column-gap: 10px !important;
}

body.checkout-pro-ui:not(.checkout-success-mode) .checkout-pro-cart-item > * {
  min-width: 0 !important;
}

body.checkout-pro-ui:not(.checkout-success-mode) .checkout-pro-cart-item label:has(input[type="number"]),
body.checkout-pro-ui:not(.checkout-success-mode) .checkout-pro-summary-card label:has(input[type="number"]) {
  width: auto !important;
  min-width: 0 !important;
  max-width: 72px !important;
  margin: 0 !important;
  display: inline-grid !important;
  justify-items: center !important;
}

body.checkout-pro-ui:not(.checkout-success-mode) .checkout-pro-cart-item input[type="number"]::-webkit-outer-spin-button,
body.checkout-pro-ui:not(.checkout-success-mode) .checkout-pro-cart-item input[type="number"]::-webkit-inner-spin-button,
body.checkout-pro-ui:not(.checkout-success-mode) .checkout-pro-summary-card input[type="number"]::-webkit-outer-spin-button,
body.checkout-pro-ui:not(.checkout-success-mode) .checkout-pro-summary-card input[type="number"]::-webkit-inner-spin-button {
  margin: 0 !important;
}

@media (max-width: 640px) {
  body.checkout-pro-ui:not(.checkout-success-mode) .checkout-pro-summary-card input[type="number"],
  body.checkout-pro-ui:not(.checkout-success-mode) .checkout-pro-cart-item input[type="number"],
  body.checkout-pro-ui:not(.checkout-success-mode) #checkoutItems input[type="number"],
  body.checkout-pro-ui:not(.checkout-success-mode) #cartItems input[type="number"],
  body.checkout-pro-ui:not(.checkout-success-mode) input[name*="quantity"],
  body.checkout-pro-ui:not(.checkout-success-mode) input[name*="qty"] {
    width: 56px !important;
    inline-size: 56px !important;
    min-width: 56px !important;
    max-width: 56px !important;
    flex-basis: 56px !important;
  }
}
/* CHECKOUT_QTY_FIELD_WIDTH_FIX_20260702_END */


/* CHECKOUT_COUPON_FIELD_WIDTH_FIX_20260702_START */
body.checkout-pro-ui:not(.checkout-success-mode) #couponInput,
body.checkout-pro-ui:not(.checkout-success-mode) .checkout-coupon-input,
body.checkout-pro-ui:not(.checkout-success-mode) input[name="coupon_code"] {
  width: 190px !important;
  inline-size: 190px !important;
  min-width: 160px !important;
  max-width: 220px !important;
  flex: 0 0 190px !important;
  justify-self: start !important;
  align-self: center !important;
  text-align: right !important;
  padding: 9px 12px !important;
  min-height: 42px !important;
  height: 42px !important;
  border-radius: 12px !important;
  font-size: 14px !important;
  font-weight: 850 !important;
}

body.checkout-pro-ui:not(.checkout-success-mode) label:has(#couponInput),
body.checkout-pro-ui:not(.checkout-success-mode) label:has(input[name="coupon_code"]) {
  width: fit-content !important;
  min-width: 0 !important;
  max-width: 240px !important;
  display: inline-grid !important;
  gap: 7px !important;
  margin: 0 !important;
}

body.checkout-pro-ui:not(.checkout-success-mode) .checkout-pro-coupon-box {
  width: fit-content !important;
  max-width: 100% !important;
}

body.checkout-pro-ui:not(.checkout-success-mode) .checkout-pro-coupon-box:not(label) {
  display: inline-flex !important;
  align-items: end !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
}

body.checkout-pro-ui:not(.checkout-success-mode) .checkout-pro-coupon-box #couponInput,
body.checkout-pro-ui:not(.checkout-success-mode) .checkout-pro-coupon-box input[name="coupon_code"] {
  width: 190px !important;
  max-width: 220px !important;
}

@media (max-width: 640px) {
  body.checkout-pro-ui:not(.checkout-success-mode) #couponInput,
  body.checkout-pro-ui:not(.checkout-success-mode) .checkout-coupon-input,
  body.checkout-pro-ui:not(.checkout-success-mode) input[name="coupon_code"] {
    width: 100% !important;
    inline-size: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    flex: 1 1 100% !important;
  }

  body.checkout-pro-ui:not(.checkout-success-mode) label:has(#couponInput),
  body.checkout-pro-ui:not(.checkout-success-mode) label:has(input[name="coupon_code"]),
  body.checkout-pro-ui:not(.checkout-success-mode) .checkout-pro-coupon-box {
    width: 100% !important;
    max-width: 100% !important;
  }
}
/* CHECKOUT_COUPON_FIELD_WIDTH_FIX_20260702_END */


/* CHECKOUT_COUPON_NEXT_TO_PAYMENT_20260702_START */
body.checkout-pro-ui:not(.checkout-success-mode) .checkout-payment-coupon-row {
  display: grid !important;
  grid-template-columns: minmax(180px, 260px) 190px !important;
  gap: 14px !important;
  align-items: end !important;
  margin: 0 0 16px !important;
  width: 100% !important;
  max-width: 470px !important;
}

body.checkout-pro-ui:not(.checkout-success-mode) .checkout-payment-coupon-row.checkout-pro-coupon-box {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin-top: 0 !important;
  display: grid !important;
  width: 100% !important;
  max-width: 470px !important;
}

body.checkout-pro-ui:not(.checkout-success-mode) .checkout-payment-method-label,
body.checkout-pro-ui:not(.checkout-success-mode) .checkout-coupon-inline-label {
  margin: 0 !important;
  width: 100% !important;
  max-width: none !important;
  display: grid !important;
  gap: 7px !important;
}

body.checkout-pro-ui:not(.checkout-success-mode) .checkout-payment-method-label select {
  width: 100% !important;
  min-width: 0 !important;
}

body.checkout-pro-ui:not(.checkout-success-mode) .checkout-payment-coupon-row #couponInput,
body.checkout-pro-ui:not(.checkout-success-mode) .checkout-payment-coupon-row .checkout-coupon-input,
body.checkout-pro-ui:not(.checkout-success-mode) .checkout-payment-coupon-row input[name="coupon_code"] {
  width: 190px !important;
  inline-size: 190px !important;
  min-width: 150px !important;
  max-width: 190px !important;
  height: 46px !important;
  min-height: 46px !important;
  align-self: end !important;
}

body.checkout-pro-ui:not(.checkout-success-mode) .checkout-payment-coupon-row .checkout-pro-coupon-box {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
}

@media (max-width: 640px) {
  body.checkout-pro-ui:not(.checkout-success-mode) .checkout-payment-coupon-row,
  body.checkout-pro-ui:not(.checkout-success-mode) .checkout-payment-coupon-row.checkout-pro-coupon-box {
    grid-template-columns: 1fr !important;
    max-width: 100% !important;
  }

  body.checkout-pro-ui:not(.checkout-success-mode) .checkout-payment-coupon-row #couponInput,
  body.checkout-pro-ui:not(.checkout-success-mode) .checkout-payment-coupon-row .checkout-coupon-input,
  body.checkout-pro-ui:not(.checkout-success-mode) .checkout-payment-coupon-row input[name="coupon_code"] {
    width: 100% !important;
    inline-size: 100% !important;
    max-width: 100% !important;
  }
}
/* CHECKOUT_COUPON_NEXT_TO_PAYMENT_20260702_END */


/* ADMIN_SETTINGS_COMMERCE_NATIVE_INNER_STYLE_20260702_START */
.settings-tabs {
  flex-wrap: wrap;
}

.commerce-native-panel {
  width: 100%;
}

.commerce-native-panel:not(.hidden) {
  display: block !important;
}

.commerce-native-panel.hidden {
  display: none !important;
}

.commerce-native-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.commerce-native-head h2 {
  margin: 0 0 6px;
}

.commerce-native-grid {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.commerce-native-card {
  padding: 18px;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #ffffff;
}

.commerce-native-card h3 {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 900;
}

.commerce-native-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.commerce-native-small-field {
  max-width: 260px;
}

.commerce-native-check,
.commerce-native-list-row label {
  display: flex !important;
  align-items: center;
  gap: 8px;
  margin: 0;
  white-space: nowrap;
}

.commerce-native-check input,
.commerce-native-list-row input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  min-height: 18px !important;
  padding: 0 !important;
}

.commerce-native-actions,
.commerce-native-subtitle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.commerce-native-actions button,
.commerce-native-subtitle button,
.commerce-native-mini {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid #99f6e4;
  background: #f8fafc;
  color: #0f766e;
  font-weight: 900;
  cursor: pointer;
}

.commerce-native-actions button[type="submit"] {
  border: 0;
  background: #0f766e;
  color: #ffffff;
}

.commerce-native-mini.danger {
  color: #be123c;
  border-color: #fecdd3;
  background: #fff1f2;
}

.commerce-native-table-wrap {
  overflow-x: auto;
}

.commerce-native-table {
  width: 100%;
  border-collapse: collapse;
}

.commerce-native-table th,
.commerce-native-table td {
  padding: 10px;
  border-bottom: 1px solid #e5e7eb;
  font-size: 13px;
  vertical-align: top;
}

.commerce-native-table th {
  background: #f8fafc;
  color: #64748b;
  font-weight: 900;
}

.commerce-native-table small {
  display: block;
  margin-top: 4px;
  color: #64748b;
}

.commerce-native-pill {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.commerce-native-pill.ok {
  background: #ecfdf5;
  color: #0f766e;
  border: 1px solid #99f6e4;
}

.commerce-native-pill.off {
  background: #f8fafc;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

.commerce-native-list-row {
  display: grid;
  grid-template-columns: minmax(110px,.8fr) minmax(180px,1.4fr) 90px 100px 72px;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #f8fafc;
  margin-bottom: 10px;
}

.commerce-native-provider-row {
  grid-template-columns: minmax(100px,.7fr) minmax(130px,1fr) minmax(120px,.9fr) minmax(140px,1fr) 80px 80px 110px 72px;
}

.commerce-native-error {
  color: #be123c !important;
  font-weight: 900;
}

@media (max-width: 960px) {
  .commerce-native-head,
  .commerce-native-grid {
    display: block;
  }

  .commerce-native-card {
    margin-bottom: 14px;
  }

  .commerce-native-row,
  .commerce-native-list-row,
  .commerce-native-provider-row {
    grid-template-columns: 1fr;
  }
}
/* ADMIN_SETTINGS_COMMERCE_NATIVE_INNER_STYLE_20260702_END */


/* PRODUCT_NATIVE_ADD_CART_BUTTON_FIX_20260702_START */
.tov-native-add-cart-button,
button[data-add-cart],
a[data-add-cart] {
  background: linear-gradient(135deg, #0f766e, #14b8a6) !important;
  color: #ffffff !important;
  border-color: transparent !important;
  box-shadow: 0 14px 28px rgba(15, 118, 110, .18) !important;
}

#cartDrawer {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  z-index: 99999 !important;
  width: min(430px, 94vw) !important;
  height: 100dvh !important;
  max-height: 100dvh !important;
  overflow: hidden !important;
  background: #ffffff !important;
  border-left: 1px solid #e2e8f0 !important;
  box-shadow: -22px 0 60px rgba(15, 23, 42, .22) !important;
  transform: translateX(105%) !important;
  transition: transform .22s ease !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: none !important;
  display: flex !important;
  flex-direction: column !important;
  direction: rtl !important;
  text-align: right !important;
}

#cartDrawer.open {
  transform: translateX(0) !important;
  pointer-events: auto !important;
}

#cartDrawer .drawer-header,
#cartDrawer .cart-header,
#cartDrawer header {
  flex: 0 0 auto !important;
  border-bottom: 1px solid #e5e7eb !important;
  padding: 18px 20px !important;
  background: #ffffff !important;
}

#cartItems {
  flex: 1 1 auto !important;
  overflow: auto !important;
  padding: 16px !important;
}

#cartTotals {
  flex: 0 0 auto !important;
  padding: 14px 18px !important;
  border-top: 1px solid #e5e7eb !important;
  background: #f8fafc !important;
}

#cartDrawer .drawer-actions,
#cartDrawer .cart-actions,
#cartDrawer footer {
  flex: 0 0 auto !important;
  padding: 16px 18px 20px !important;
  border-top: 1px solid #e5e7eb !important;
  background: #ffffff !important;
}

.cart-item.cart-product-item {
  border: 1px solid #e5e7eb !important;
  border-radius: 18px !important;
  background: #ffffff !important;
  padding: 12px !important;
  margin-bottom: 12px !important;
}

.cart-product-image {
  border-radius: 14px !important;
  border: 1px solid #e2e8f0 !important;
  background: #f1f5f9 !important;
}

.cart-delivery-pill {
  display: inline-flex !important;
  width: fit-content !important;
  padding: 5px 10px !important;
  border-radius: 999px !important;
  background: #ecfdf5 !important;
  color: #0f766e !important;
  border: 1px solid #99f6e4 !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}

.cart-remove-button {
  color: #be123c !important;
}

body.native-cart-open,
html.native-cart-open {
  overflow: hidden !important;
}

@media (max-width: 640px) {
  #cartDrawer {
    width: 100vw !important;
  }
}
/* PRODUCT_NATIVE_ADD_CART_BUTTON_FIX_20260702_END */


/* PRODUCT_PAGE_REAL_ADD_TO_CART_FIX_20260702_START */
.product-page-add-cart-button {
  background: linear-gradient(135deg, #0f766e, #14b8a6) !important;
  color: #ffffff !important;
  border-color: transparent !important;
  box-shadow: 0 14px 28px rgba(15, 118, 110, .18) !important;
}

html.product-cart-open,
body.product-cart-open {
  overflow: hidden !important;
}

.product-cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 99998;
  background: rgba(15, 23, 42, .46);
  backdrop-filter: blur(2px);
}

.product-cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 99999;
  width: min(430px, 94vw);
  height: 100dvh;
  background: #ffffff;
  border-left: 1px solid #e2e8f0;
  box-shadow: -22px 0 60px rgba(15, 23, 42, .22);
  transform: translateX(105%);
  transition: transform .22s ease;
  display: flex;
  flex-direction: column;
  direction: rtl;
  text-align: right;
}

.product-cart-drawer[aria-hidden="false"] {
  transform: translateX(0);
}

.product-cart-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  padding: 22px 22px 16px;
  border-bottom: 1px solid #e5e7eb;
}

.product-cart-head p {
  margin: 0 0 6px;
  color: #0f766e;
  font-size: 12px;
  font-weight: 950;
}

.product-cart-head h3 {
  margin: 0;
  color: #0f172a;
  font-size: 22px;
  font-weight: 950;
}

.product-cart-close {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 12px;
  background: #f8fafc;
  color: #0f172a;
  font-size: 25px;
  cursor: pointer;
}

.product-cart-items {
  flex: 1;
  overflow: auto;
  padding: 16px;
}

.product-cart-empty {
  display: grid;
  gap: 6px;
  padding: 28px 16px;
  border: 1px dashed #cbd5e1;
  border-radius: 16px;
  color: #64748b;
  text-align: center;
}

.product-cart-empty strong {
  color: #0f172a;
}

.product-cart-item {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  margin-bottom: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #ffffff;
}

.product-cart-item img,
.product-cart-placeholder {
  width: 74px;
  height: 74px;
  border-radius: 14px;
  object-fit: cover;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}

.product-cart-item strong {
  display: block;
  color: #0f172a;
  font-size: 14px;
  font-weight: 950;
  line-height: 1.5;
}

.product-cart-item small {
  display: block;
  margin: 4px 0 9px;
  color: #64748b;
  font-size: 12px;
  font-weight: 750;
}

.product-cart-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.product-cart-meta b {
  color: #0f172a;
  font-size: 14px;
  font-weight: 950;
  direction: ltr;
}

.product-cart-qty {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 4px;
  background: #f8fafc;
}

.product-cart-qty button {
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 999px;
  background: #ffffff;
  color: #0f766e;
  font-weight: 950;
  cursor: pointer;
}

.product-cart-qty span {
  min-width: 18px;
  text-align: center;
  font-weight: 950;
  color: #0f172a;
}

.product-cart-remove {
  margin-top: 9px;
  border: 0;
  background: transparent;
  color: #be123c;
  font-weight: 850;
  cursor: pointer;
  padding: 0;
}

.product-cart-totals {
  padding: 14px 18px;
  border-top: 1px solid #e5e7eb;
  background: #f8fafc;
}

.product-cart-totals div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  color: #475569;
  font-size: 14px;
}

.product-cart-totals div.final {
  margin-top: 7px;
  padding-top: 12px;
  border-top: 1px solid #cbd5e1;
  color: #0f172a;
  font-size: 18px;
  font-weight: 950;
}

.product-cart-totals strong {
  direction: ltr;
}

.product-cart-totals small {
  display: block;
  margin-top: 8px;
  color: #64748b;
  font-size: 12px;
}

.product-cart-actions {
  display: grid;
  gap: 10px;
  padding: 16px 18px 20px;
  border-top: 1px solid #e5e7eb;
  background: #ffffff;
}

.product-cart-checkout,
.product-cart-continue {
  display: block;
  width: 100%;
  min-height: 46px;
  border-radius: 14px;
  text-align: center;
  text-decoration: none;
  font-weight: 950;
  cursor: pointer;
}

.product-cart-checkout {
  padding: 13px 16px;
  background: #0f766e;
  color: #ffffff;
  border: 0;
}

.product-cart-continue {
  border: 1px solid #99f6e4;
  background: #f0fdfa;
  color: #0f766e;
}

@media (max-width: 640px) {
  .product-cart-drawer {
    width: 100vw;
  }
}
/* PRODUCT_PAGE_REAL_ADD_TO_CART_FIX_20260702_END */


/* PRODUCT_PAGE_SHIPPING_CART_OPTIONS_FIX_20260702_START */


/* PATCH_OK_PRODUCT_PAGE_CSS_DEDUP_NATIVE_V54 */
html body.product-page {
  background: #f5f7fb !important;
  color: #0f172a !important;
  overflow-x: hidden !important;
}

html body.product-page *,
html body.product-page *::before,
html body.product-page *::after {
  box-sizing: border-box !important;
}

html body.product-page .product-page-shell {
  width: min(1180px, calc(100% - 32px)) !important;
  margin-inline: auto !important;
  padding-block: 22px 42px !important;
}

html body.product-page .product-page-layout {
  width: 100% !important;
  display: grid !important;
  grid-template-columns: minmax(270px, 370px) minmax(0, 1fr) !important;
  gap: 28px !important;
  align-items: start !important;
  margin: 22px auto 0 !important;
}

html body.product-page .product-page-media,
html body.product-page .product-page-details {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  border-radius: 24px !important;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08) !important;
  min-width: 0 !important;
}

html body.product-page .product-page-media {
  min-height: 350px !important;
  padding: 22px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 14px !important;
  overflow: hidden !important;
  position: sticky !important;
  top: 18px !important;
}

html body.product-page .product-page-media::before {
  content: none !important;
  display: none !important;
}

html body.product-page .product-page-media img {
  display: block !important;
  width: auto !important;
  max-width: min(260px, 100%) !important;
  max-height: 260px !important;
  height: auto !important;
  object-fit: contain !important;
  margin: 0 auto !important;
  border-radius: 16px !important;
  transform: none !important;
}

html body.product-page .product-page-media-badge,
html body.product-page .product-page-product-mark,
html body.product-page .product-page-details .eyebrow {
  position: static !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: fit-content !important;
  max-width: 100% !important;
  border-radius: 999px !important;
  padding: 7px 13px !important;
  background: #eff6ff !important;
  color: #1d4ed8 !important;
  font-size: 0.86rem !important;
  font-weight: 900 !important;
  line-height: 1.2 !important;
}

html body.product-page .product-page-media-strip {
  width: 100% !important;
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 8px !important;
  margin: 0 !important;
}

html body.product-page .product-page-media-strip span {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 999px !important;
  padding: 7px 10px !important;
  background: #f8fafc !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  color: #475569 !important;
  font-size: 0.82rem !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
}

html body.product-page .product-page-details {
  padding: 26px !important;
}

html body.product-page .product-page-details h1 {
  margin: 12px 0 12px !important;
  color: #0f172a !important;
  font-size: clamp(1.65rem, 2.25vw, 2.25rem) !important;
  line-height: 1.18 !important;
  letter-spacing: -0.025em !important;
}

html body.product-page .product-page-description {
  margin: 0 0 18px !important;
  color: #334155 !important;
  font-size: 1rem !important;
  line-height: 1.75 !important;
}

html body.product-page .product-page-trust-row {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  margin: 18px 0 !important;
}

html body.product-page .product-page-trust-row > * {
  flex: 1 1 180px !important;
  min-width: 0 !important;
  background: #f8fafc !important;
  border: 1px solid rgba(15, 23, 42, 0.07) !important;
  border-radius: 16px !important;
  padding: 12px !important;
  color: #334155 !important;
  font-weight: 800 !important;
}

html body.product-page .product-page-stats,
html body.product-page .product-page-info-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
  margin: 18px 0 !important;
}

html body.product-page .product-page-stats > *,
html body.product-page .product-page-info-grid > article {
  background: #f8fafc !important;
  border: 1px solid rgba(15, 23, 42, 0.07) !important;
  border-radius: 18px !important;
  padding: 16px !important;
  min-width: 0 !important;
}

html body.product-page .product-page-info-grid h2,
html body.product-page .product-page-info-grid h3,
html body.product-page .product-page-options h2,
html body.product-page .product-page-section-head h2,
html body.product-page .product-page-section-head h3 {
  margin: 0 0 10px !important;
  color: #0f172a !important;
  font-size: 1.12rem !important;
  line-height: 1.25 !important;
}

html body.product-page .product-page-info-grid ul,
html body.product-page .product-page-info-grid ol {
  margin: 0 !important;
  padding-inline-start: 20px !important;
  color: #475569 !important;
  line-height: 1.65 !important;
}

html body.product-page .product-page-options {
  display: grid !important;
  gap: 12px !important;
  margin: 16px 0 !important;
}

html body.product-page .product-option-card {
  width: 100% !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 12px !important;
  align-items: center !important;
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.11) !important;
  border-radius: 18px !important;
  padding: 16px !important;
  min-width: 0 !important;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.045) !important;
}

html body.product-page .product-option-card[aria-disabled="true"],
html body.product-page .product-option-card.disabled,
html body.product-page .product-option-card.is-disabled {
  opacity: 0.62 !important;
  cursor: not-allowed !important;
  filter: grayscale(0.35) !important;
}

html body.product-page .product-page-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  align-items: center !important;
  margin-top: 18px !important;
}

html body.product-page .product-page-add-cart-button,
html body.product-page .product-cart-checkout,
html body.product-page .button-link.product-auth-primary {
  min-height: 48px !important;
  border-radius: 16px !important;
  padding-inline: 20px !important;
  font-weight: 900 !important;
}

html body.product-page .product-page-support-panel,
html body.product-page .product-page-stock-notify-form {
  margin-top: 18px !important;
  padding: 20px !important;
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  border-radius: 20px !important;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05) !important;
}

html body.product-page .product-page-stock-notify-row {
  display: flex !important;
  gap: 10px !important;
  align-items: center !important;
}

html body.product-page .product-page-stock-notify-row input {
  flex: 1 !important;
  min-width: 0 !important;
  min-height: 44px !important;
  border-radius: 14px !important;
}

@media (max-width: 920px) {
  html body.product-page .product-page-shell {
    width: min(100% - 22px, 1180px) !important;
    padding-block: 14px 32px !important;
  }

  html body.product-page .product-page-layout {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    margin-top: 14px !important;
  }

  html body.product-page .product-page-media {
    position: relative !important;
    top: auto !important;
    min-height: 240px !important;
    padding: 18px !important;
    border-radius: 22px !important;
  }

  html body.product-page .product-page-media img {
    max-width: min(210px, 100%) !important;
    max-height: 210px !important;
  }

  html body.product-page .product-page-details {
    padding: 20px !important;
    border-radius: 22px !important;
  }

  html body.product-page .product-page-stats,
  html body.product-page .product-page-info-grid {
    grid-template-columns: 1fr !important;
  }

  html body.product-page .product-option-card {
    grid-template-columns: 1fr !important;
  }

  html body.product-page .product-page-stock-notify-row {
    flex-direction: column !important;
    align-items: stretch !important;
  }
}
/* PATCH_OK_PRODUCT_PAGE_CSS_DEDUP_NATIVE_V54_END */






/* PATCH_OK_HOME_SLIDER_CONTAINED_V58 */
html body.home-page-v58 {
  overflow-x: hidden;
}

html body.home-page-v58 .home-hero-contained-v58 {
  display: grid !important;
  grid-template-columns: minmax(320px, 0.95fr) minmax(360px, 1.05fr) !important;
  gap: 28px !important;
  align-items: stretch !important;
}

html body.home-page-v58 .home-slider-host-restored-v57,
html body.home-page-v58 .home-rotating-slider-v57 {
  display: none !important;
}

html body.home-page-v58 .home-slider-host-restored-v58 {
  position: relative !important;
  min-height: 360px !important;
  max-height: 430px !important;
  overflow: hidden !important;
  border-radius: 24px !important;
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08) !important;
}

html body.home-page-v58 .home-slider-host-restored-v58.home-slider-has-images-v58 > :not(.home-rotating-slider-v58) {
  display: none !important;
}

html body.home-page-v58 .home-rotating-slider-v58 {
  position: relative !important;
  width: 100% !important;
  height: 390px !important;
  min-height: 360px !important;
  max-height: 430px !important;
  border-radius: 24px !important;
  overflow: hidden !important;
  background: #f8fafc !important;
}

html body.home-page-v58 .home-rotating-image-v58 {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  opacity: 0 !important;
  transform: scale(1.01) !important;
  transition: opacity 0.55s ease, transform 0.55s ease !important;
}

html body.home-page-v58 .home-rotating-image-v58.is-active {
  opacity: 1 !important;
  transform: scale(1) !important;
}

html body.home-page-v58 .home-hero-text-v58 {
  min-width: 0 !important;
}

html body.home-page-v58 .home-slider-arrow-v58 {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 3 !important;
  width: 38px !important;
  height: 38px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: rgba(15, 23, 42, 0.68) !important;
  color: #ffffff !important;
  font-size: 1.8rem !important;
  line-height: 1 !important;
  cursor: pointer !important;
  display: grid !important;
  place-items: center !important;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.18) !important;
}

html body.home-page-v58 .home-slider-prev-v58 {
  left: 12px !important;
}

html body.home-page-v58 .home-slider-next-v58 {
  right: 12px !important;
}

@media (max-width: 900px) {
  html body.home-page-v58 .home-hero-contained-v58 {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  html body.home-page-v58 .home-slider-host-restored-v58,
  html body.home-page-v58 .home-rotating-slider-v58 {
    min-height: 240px !important;
    height: 260px !important;
    max-height: 280px !important;
    border-radius: 20px !important;
  }

  html body.home-page-v58 .home-slider-arrow-v58 {
    width: 34px !important;
    height: 34px !important;
    font-size: 1.55rem !important;
  }
}
/* PATCH_OK_HOME_SLIDER_CONTAINED_V58_END */


/* PATCH_OK_HOME_HERO_BUTTON_COLORS_V59 */
html body.home-buttons-v59 .home-products-button-v59,
html body.home-buttons-v59 a.home-products-button-v59,
html body.home-buttons-v59 button.home-products-button-v59 {
  background: linear-gradient(135deg, #0f766e 0%, #0d9488 100%) !important;
  color: #ffffff !important;
  border: 1px solid #0f766e !important;
  box-shadow: 0 12px 28px rgba(15, 118, 110, 0.24) !important;
  text-decoration: none !important;
}

html body.home-buttons-v59 .home-products-button-v59:hover,
html body.home-buttons-v59 .home-products-button-v59:focus {
  background: linear-gradient(135deg, #115e59 0%, #0f766e 100%) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

html body.home-buttons-v59 .home-account-button-v59,
html body.home-buttons-v59 a.home-account-button-v59,
html body.home-buttons-v59 button.home-account-button-v59 {
  background: #ffffff !important;
  color: #0f766e !important;
  border: 1px solid rgba(15, 118, 110, 0.35) !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08) !important;
  text-decoration: none !important;
}

html body.home-buttons-v59 .home-account-button-v59:hover,
html body.home-buttons-v59 .home-account-button-v59:focus {
  background: #ecfdf5 !important;
  color: #115e59 !important;
  border-color: #0f766e !important;
  transform: translateY(-1px);
}
/* PATCH_OK_HOME_HERO_BUTTON_COLORS_V59_END */


/* PATCH_OK_HOME_PRODUCT_CATEGORIES_ADMIN_V60 */
html body .home-category-tabs-v60 {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 10px !important;
  margin: 16px auto 20px !important;
}

html body .home-category-tab-v60 {
  min-height: 40px !important;
  border: 1px solid rgba(15, 118, 110, 0.22) !important;
  border-radius: 999px !important;
  padding: 8px 16px !important;
  background: #ffffff !important;
  color: #0f766e !important;
  font-weight: 900 !important;
  cursor: pointer !important;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06) !important;
}

html body .home-category-tab-v60.is-active,
html body .home-category-tab-v60:hover {
  background: #0f766e !important;
  color: #ffffff !important;
  border-color: #0f766e !important;
}

html body .home-products-grid-categorized-v60 {
  display: grid;
}

html body .home-product-hidden-v60 {
  display: none !important;
}

.admin-categories-link-v60 {
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: right;
  cursor: pointer;
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 800;
}

.admin-categories-link-v60:hover {
  background: rgba(15, 118, 110, 0.10);
  color: #0f766e;
}

.admin-categories-manager-v60 {
  direction: rtl;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 22px;
  padding: 22px;
  margin: 18px 0;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
}

.admin-categories-head-v60,
.admin-categories-actions-v60 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.admin-category-form-v60,
.admin-category-row-v60 {
  display: grid;
  grid-template-columns: 1.2fr 1fr 90px 1.4fr auto auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.admin-category-form-v60 input,
.admin-category-row-v60 input {
  min-height: 42px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 12px;
  padding: 8px 10px;
}

.admin-category-form-v60 button,
.admin-categories-save-v60,
.admin-categories-close-v60,
.admin-category-row-v60 button {
  min-height: 42px;
  border: 0;
  border-radius: 12px;
  padding: 8px 14px;
  background: #0f766e;
  color: #ffffff;
  font-weight: 900;
  cursor: pointer;
}

.admin-category-row-v60 .cat-delete {
  background: #fee2e2;
  color: #991b1b;
}

.cat-active-wrap {
  white-space: nowrap;
  font-weight: 800;
}

.admin-categories-status-v60 {
  color: #0f766e;
  font-weight: 900;
}

@media (max-width: 900px) {
  .admin-category-form-v60,
  .admin-category-row-v60 {
    grid-template-columns: 1fr;
  }
}
/* PATCH_OK_HOME_PRODUCT_CATEGORIES_ADMIN_V60_END */














/* PATCH_OK_HOME_CATEGORIES_FILTER_FIXED_V68 */
html body .home-category-tabs-v60,
html body .home-category-tabs-v62,
html body .home-category-tabs-v63,
html body .home-category-tabs-v64,
html body .home-category-tabs-v65,
html body .home-category-tabs-v66,
html body .home-category-tabs-v67,
html body .home-category-shell-v64,
html body .home-category-shell-v65,
html body .home-category-shell-v66,
html body .home-category-shell-v67 {
  display: none !important;
}

html body .home-category-shell-v68 {
  width: min(100%, 1040px) !important;
  margin: 12px auto 18px !important;
  padding: 10px 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
  gap: 10px 14px !important;
  border-radius: 22px !important;
  background: rgba(255, 255, 255, 0.96) !important;
  border: 1px solid rgba(15, 118, 110, 0.14) !important;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07) !important;
  grid-column: 1 / -1 !important;
  clear: both !important;
  position: relative !important;
  z-index: 20 !important;
  direction: rtl !important;
}

html body .home-category-label-v68 {
  color: #0f172a !important;
  font-weight: 950 !important;
  white-space: nowrap !important;
}

html body .home-category-tabs-v68 {
  width: auto !important;
  max-width: 100% !important;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

html body .home-category-tab-v68 {
  width: auto !important;
  min-width: 92px !important;
  height: 40px !important;
  min-height: 40px !important;
  border: 1px solid rgba(15, 118, 110, 0.24) !important;
  border-radius: 999px !important;
  padding: 8px 18px !important;
  background: #ffffff !important;
  color: #0f766e !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  cursor: pointer !important;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  writing-mode: horizontal-tb !important;
}

html body .home-category-tab-v68.is-active,
html body .home-category-tab-v68:hover {
  background: linear-gradient(135deg, #0f766e 0%, #0d9488 100%) !important;
  color: #ffffff !important;
  border-color: #0f766e !important;
}

html body .home-product-hidden-v68 {
  display: none !important;
}

html body input,
html body select,
html body textarea,
html body form,
html body .home-category-shell-v68,
html body .home-category-shell-v68 * {
  visibility: visible !important;
}

@media (max-width: 700px) {
  html body .home-category-shell-v68 {
    border-radius: 18px !important;
    justify-content: stretch !important;
  }

  html body .home-category-tabs-v68 {
    width: 100% !important;
  }

  html body .home-category-tab-v68 {
    flex: 1 1 calc(50% - 8px) !important;
  }
}
/* PATCH_OK_HOME_CATEGORIES_FILTER_FIXED_V68_END */
