:root {
  --ink: #151515;
  --muted: #6e6964;
  --line: #e9e3dc;
  --soft: #f8f3ee;
  --blush: #ffe4dd;
  --accent: #ef6a46;
  --gold: #b8843c;
  --purple: #7437b9;
  --shadow: 0 18px 45px rgba(25, 20, 18, 0.12);
  --container: 1340px;
}

/* Checkout Concept C alignment pass */
body.checkout-concept-c {
  background: #fbf6ef;
  color: #17120d;
}

body.checkout-concept-c .checkout-header {
  display: flex;
  justify-content: space-between;
  min-height: 74px;
  padding: 0 48px;
  border-bottom: 1px solid rgba(214, 163, 79, 0.34);
  background: #11100f;
}

body.checkout-concept-c .checkout-header .brand {
  justify-self: auto;
  color: #c79645;
  font-size: 34px;
  text-shadow: 0 1px 0 rgba(255, 226, 174, 0.36);
}

body.checkout-concept-c .checkout-secure-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #d8ab5c;
  font-size: 13px;
  font-weight: 850;
}

body.checkout-concept-c .checkout-secure-label svg {
  width: 16px;
  height: 16px;
}

body.checkout-concept-c .checkout-shell {
  width: min(1110px, calc(100% - 48px));
  padding: 30px 0 52px;
}

body.checkout-concept-c .checkout-title {
  display: block;
  margin-bottom: 16px;
}

body.checkout-concept-c .checkout-title h1 {
  margin: 0 0 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 31px;
  font-weight: 700;
  line-height: 1.05;
}

body.checkout-concept-c .checkout-title p {
  margin: 0;
  color: #75685b;
  font-size: 13px;
}

body.checkout-concept-c .checkout-grid {
  grid-template-columns: minmax(0, 1fr) 342px;
  gap: 20px;
  align-items: start;
}

body.checkout-concept-c .panel {
  border: 1px solid #eadcca;
  border-radius: 5px;
  background: rgba(255, 253, 249, 0.92);
  box-shadow: 0 18px 44px rgba(50, 32, 18, 0.08);
}

body.checkout-concept-c .checkout-form-card {
  gap: 0;
  padding: 0;
  overflow: hidden;
}

body.checkout-concept-c .checkout-form-section {
  gap: 10px;
  padding: 15px 18px 17px;
  border-bottom: 1px solid #eadcca;
}

body.checkout-concept-c .checkout-section-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 4px;
}

body.checkout-concept-c .checkout-section-head > i,
body.checkout-concept-c .checkout-section-head > svg {
  width: 16px;
  height: 16px;
  color: #b8843c;
  stroke-width: 2;
}

body.checkout-concept-c .checkout-section-head h2 {
  margin: 0;
  font-size: 15px;
  line-height: 1.2;
}

body.checkout-concept-c .checkout-section-head .hint {
  margin: 4px 0 0;
}

body.checkout-concept-c .form-card label,
body.checkout-concept-c .payment-field {
  gap: 5px;
  color: #35291f;
  font-size: 11px;
  font-weight: 850;
}

body.checkout-concept-c .form-card input,
body.checkout-concept-c .form-card select {
  width: 100%;
  min-height: 33px;
  padding: 7px 10px;
  border: 1px solid #dfd2c4;
  border-radius: 3px;
  background: #fff;
  color: #17120d;
  font-size: 12px;
  font-weight: 650;
}

body.checkout-concept-c .form-card input:focus,
body.checkout-concept-c .form-card select:focus {
  border-color: #b8843c;
  box-shadow: 0 0 0 2px rgba(184, 132, 60, 0.14);
  outline: 0;
}

body.checkout-concept-c .checkout-checkbox {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 7px;
  color: #4f4034;
  font-size: 11px;
  font-weight: 700;
}

body.checkout-concept-c .checkout-checkbox input,
body.checkout-concept-c .shipping-methods input {
  width: 13px;
  height: 13px;
  min-height: 0;
  accent-color: #b8843c;
}

body.checkout-concept-c .checkout-field-grid.three {
  display: grid;
  grid-template-columns: 1fr 0.65fr 0.75fr;
  gap: 9px;
}

body.checkout-concept-c .shipping-methods {
  display: grid;
  overflow: hidden;
  border: 1px solid #e2d4c3;
  border-radius: 4px;
}

body.checkout-concept-c .shipping-methods label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 38px;
  padding: 0 10px;
  border-bottom: 1px solid #e8ddcf;
  background: #fffaf4;
}

body.checkout-concept-c .shipping-methods label:last-child {
  border-bottom: 0;
}

body.checkout-concept-c .shipping-methods strong {
  font-size: 11px;
}

body.checkout-concept-c .payment-card-box {
  overflow: hidden;
  border: 1px solid #c99a52;
  border-radius: 4px;
  background: #fffaf4;
}

body.checkout-concept-c .payment-card-box-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  min-height: 36px;
  padding: 0 11px;
  border-bottom: 1px solid #e4d2ba;
  background: #fff4e4;
  font-size: 12px;
  font-weight: 900;
}

body.checkout-concept-c .payment-card-marks {
  color: #1c4b91;
  font-size: 10px;
  word-spacing: 5px;
}

body.checkout-concept-c .payment-card-fields {
  gap: 9px;
  padding: 10px;
}

body.checkout-concept-c .form-card .payment-input-wrap input {
  min-height: 33px;
  padding: 7px 38px 7px 10px;
  border-radius: 3px;
  font-size: 12px;
}

body.checkout-concept-c .payment-card-icon {
  right: 8px;
  width: 24px;
  height: 17px;
}

body.checkout-concept-c .checkout-pay-btn {
  min-height: 42px;
  margin: 13px 18px 0;
  border: 0;
  border-radius: 3px;
  background: #10100f;
  color: #d8ab5c;
  font-size: 14px;
  font-weight: 900;
}

body.checkout-concept-c .checkout-secure-note {
  justify-content: center;
  margin: 12px 18px 16px;
  color: #74695f;
  font-size: 11px;
}

body.checkout-concept-c .checkout-secure-note svg {
  width: 13px;
  height: 13px;
}

body.checkout-concept-c .checkout-summary-card {
  position: sticky;
  top: 18px;
  padding: 18px;
  border: 1px solid #bd8838;
  border-radius: 3px;
  background: rgba(255, 251, 244, 0.95);
  box-shadow: 0 18px 44px rgba(50, 32, 18, 0.08);
}

body.checkout-concept-c .checkout-summary-head {
  margin-bottom: 14px;
}

body.checkout-concept-c .checkout-summary-head h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.15;
}

body.checkout-concept-c .checkout-summary-items {
  gap: 0;
}

body.checkout-concept-c .checkout-summary-item {
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e5d6c3;
}

body.checkout-concept-c .checkout-summary-thumb {
  width: 92px;
  height: 122px;
  border-radius: 3px;
}

body.checkout-concept-c .checkout-summary-copy strong {
  font-size: 13px;
  line-height: 1.28;
}

body.checkout-concept-c .checkout-summary-copy small,
body.checkout-concept-c .checkout-summary-copy b {
  display: block;
  margin-top: 5px;
  color: #6f6256;
  font-size: 11px;
  font-weight: 700;
}

body.checkout-concept-c .checkout-summary-price {
  align-self: end;
  font-size: 13px;
}

body.checkout-concept-c .checkout-discount {
  grid-template-columns: minmax(0, 1fr) 64px;
  margin: 18px 0 16px;
}

body.checkout-concept-c .checkout-discount input {
  min-height: 36px;
  border-radius: 3px;
  font-size: 12px;
}

body.checkout-concept-c .checkout-discount button {
  min-height: 36px;
  border: 1px solid #b8843c;
  border-radius: 3px;
  background: #fffaf4;
  color: #9b6725;
  font-size: 12px;
}

body.checkout-concept-c .summary-totals {
  gap: 10px;
  padding: 0 0 16px;
  border-bottom: 1px solid #e5d6c3;
}

body.checkout-concept-c .summary-total-row {
  font-size: 12px;
}

body.checkout-concept-c .order-total {
  padding: 17px 0 20px;
  border-bottom: 1px solid #d2ac70;
}

body.checkout-concept-c .order-total strong {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  color: #17120d;
  font-size: 28px;
}

body.checkout-concept-c .order-total small {
  font-size: 12px;
}

body.checkout-concept-c .checkout-concept-seal {
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 22px 12px 8px;
  color: #4e4034;
  text-align: center;
}

body.checkout-concept-c .checkout-concept-seal > svg {
  width: 18px;
  height: 18px;
  color: #17120d;
}

body.checkout-concept-c .checkout-concept-seal strong {
  font-size: 14px;
}

body.checkout-concept-c .checkout-concept-seal span,
body.checkout-concept-c .checkout-concept-seal small {
  color: #77695d;
  font-size: 11px;
}

body.checkout-concept-c .seal-mark {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  margin-top: 18px;
  border: 2px solid #d6a34f;
  border-radius: 50%;
  color: #b8843c;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 48px;
  font-weight: 800;
}

body.checkout-concept-c .checkout-concept-seal b {
  color: #b8843c;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  letter-spacing: 0;
}

@media (max-width: 860px) {
  body.checkout-concept-c .checkout-header {
    min-height: 64px;
    padding: 0 18px;
  }

  body.checkout-concept-c .checkout-header .brand {
    font-size: 28px;
  }

  body.checkout-concept-c .checkout-shell {
    width: min(100% - 28px, 1110px);
    padding-top: 24px;
  }

  body.checkout-concept-c .checkout-title h1 {
    font-size: 28px;
  }

  body.checkout-concept-c .checkout-grid,
  body.checkout-concept-c .checkout-field-grid.three {
    grid-template-columns: 1fr;
  }

  body.checkout-concept-c .checkout-summary-card {
    position: static;
  }

  body.checkout-concept-c .checkout-summary-item {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  body.checkout-concept-c .checkout-summary-thumb {
    width: 76px;
    height: 100px;
  }

  body.checkout-concept-c .checkout-summary-price {
    grid-column: 2;
    justify-self: start;
  }
}

/* Admin v2 */
body.admin-v2 {
  min-height: 100vh;
  background: #f6f2ec;
  color: #1d1a17;
}

body.admin-v2 .admin-shell {
  width: 100%;
  margin: 0;
  padding: 0;
}

body.admin-v2 .auth-grid {
  min-height: 100vh;
  grid-template-columns: minmax(320px, 460px);
  place-content: center;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(23, 21, 20, 0.96), rgba(47, 39, 31, 0.88)),
    #171514;
}

body.admin-v2 .admin-login-card {
  border: 1px solid rgba(215, 161, 92, 0.28);
  background: #fffaf4;
}

.login-brand {
  color: #b8843c;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 900;
}

body.admin-v2 .admin-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  min-height: 100vh;
  gap: 0;
  background: #f6f2ec;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 24px 18px;
  background:
    radial-gradient(circle at top left, rgba(200, 155, 92, 0.13), transparent 34%),
    linear-gradient(180deg, #191716 0%, #11100f 100%);
  color: #f4eee6;
}

.admin-brand-block {
  display: block;
  padding: 0 12px;
  color: #d9aa6c;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0;
}

.admin-sidebar-subtitle {
  margin: 4px 12px 22px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 12px;
  font-weight: 800;
}

.admin-nav {
  display: grid;
  gap: 4px;
}

.admin-nav-main,
.admin-subnav button,
.quick-action-grid button,
.ghost-admin-btn,
.icon-admin-btn {
  font: inherit;
  letter-spacing: 0;
}

.admin-nav-main {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 18px;
  align-items: center;
  width: 100%;
  min-height: 48px;
  gap: 12px;
  padding: 0 13px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  font-weight: 850;
  text-align: left;
}

.admin-nav-main svg {
  width: 20px;
  height: 20px;
  color: rgba(255, 255, 255, 0.8);
  stroke-width: 1.9;
}

.admin-nav-main .nav-chevron {
  justify-self: end;
  width: 17px;
  height: 17px;
  transition: transform 0.18s ease;
}

.admin-nav-main:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.admin-nav-main.active {
  background: linear-gradient(90deg, rgba(200, 155, 92, 0.34), rgba(200, 155, 92, 0.13));
  color: #f1c587;
}

.admin-nav-main.active svg {
  color: #f1c587;
}

.admin-nav-group.expanded .nav-chevron {
  transform: rotate(90deg);
}

.admin-subnav {
  position: relative;
  display: none;
  gap: 2px;
  margin: 3px 0 8px 44px;
  padding: 4px 0 4px 14px;
}

.admin-subnav::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  bottom: 7px;
  width: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.admin-nav-group.expanded .admin-subnav {
  display: grid;
}

.admin-subnav button {
  min-height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: rgba(255, 255, 255, 0.56);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  text-align: left;
}

.admin-subnav button:hover,
.admin-subnav button.active {
  background: rgba(200, 155, 92, 0.12);
  color: #e4b878;
}

body.admin-v2 .admin-content {
  display: block;
  min-width: 0;
  padding: 24px;
}

.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 62px;
  margin-bottom: 24px;
  padding: 0 18px;
  border: 1px solid #e8dfd4;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 40px rgba(48, 38, 28, 0.06);
  backdrop-filter: blur(12px);
}

.admin-search {
  display: flex;
  align-items: center;
  flex: 1;
  max-width: 520px;
  gap: 10px;
  color: #766b61;
}

.admin-search svg {
  width: 18px;
  height: 18px;
}

.admin-search input {
  width: 100%;
  min-height: 40px;
  border: 0;
  background: transparent;
  color: #1d1a17;
  font: inherit;
  outline: 0;
}

.admin-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 850;
}

.admin-toolbar-actions a {
  color: #4f463e;
}

.icon-admin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid #e4d8ca;
  border-radius: 8px;
  background: #fffaf5;
  color: #3d352f;
  cursor: pointer;
}

.icon-admin-btn svg {
  width: 18px;
  height: 18px;
}

body.admin-v2 .admin-tab {
  display: none;
}

body.admin-v2 .admin-tab.active {
  display: block;
}

.admin-page-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.admin-page-title span,
.detail-head span {
  display: block;
  margin-bottom: 5px;
  color: #a8793f;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-page-title h1 {
  margin: 0;
  font-size: 30px;
}

.admin-page-title p {
  margin: 7px 0 0;
  color: #736960;
  font-size: 14px;
}

.admin-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid #e7ded3;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(48, 38, 28, 0.06);
}

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

.admin-section-head h2 {
  margin: 0;
  font-size: 18px;
}

.admin-section-head p {
  margin: 5px 0 0;
  color: #786e65;
  font-size: 13px;
}

.admin-metric-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-bottom: 18px;
}

.admin-metric-grid.compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-stat {
  min-height: 92px;
  padding: 17px;
  border: 1px solid #eadfd3;
  border-radius: 8px;
  background: #fffaf5;
}

.admin-stat span,
.admin-stat strong,
.admin-stat small {
  display: block;
}

.admin-stat span {
  color: #7a7067;
  font-size: 12px;
  font-weight: 850;
}

.admin-stat strong {
  margin-top: 8px;
  color: #141211;
  font-size: 24px;
  line-height: 1.1;
}

.admin-stat small {
  margin-top: 8px;
  color: #877b70;
  font-size: 12px;
}

.admin-stat.ok {
  border-color: #d9e8d7;
  background: #f7fbf4;
}

.admin-stat.warning {
  border-color: #ead4a8;
  background: #fff7e7;
}

.admin-stat.danger {
  border-color: #efd1cb;
  background: #fff4f0;
}

.admin-dashboard-grid,
.admin-two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.85fr);
  gap: 18px;
  margin-bottom: 18px;
}

.admin-work-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.42fr);
  align-items: start;
  gap: 18px;
}

.admin-list-card {
  overflow: hidden;
}

.admin-detail-card {
  position: sticky;
  top: 24px;
}

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

.quick-action-grid button,
.ghost-admin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid #e2d5c7;
  border-radius: 8px;
  background: #fffaf5;
  color: #2c2722;
  cursor: pointer;
  font-weight: 850;
}

.quick-action-grid svg {
  width: 17px;
  height: 17px;
  color: #b8843c;
}

.ghost-admin-btn {
  min-height: 32px;
  padding: 0 11px;
  background: #fff;
  color: #8d6230;
  font-size: 12px;
}

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

.task-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid #eee4d8;
  border-radius: 8px;
  background: #fffaf5;
}

.task-item strong,
.task-item small {
  display: block;
}

.task-item small {
  margin-top: 3px;
  color: #81766d;
  font-size: 12px;
}

.compact-table {
  overflow-x: auto;
}

.compact-table table,
.admin-data-table {
  width: 100%;
  border-collapse: collapse;
}

.compact-table th,
.compact-table td,
.admin-data-table th,
.admin-data-table td {
  padding: 13px 12px;
  border-bottom: 1px solid #eee7df;
  color: #24201c;
  text-align: left;
  vertical-align: middle;
}

.compact-table th,
.admin-data-table th {
  color: #736960;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

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

.admin-data-table {
  min-width: 900px;
  font-size: 13px;
}

.admin-data-table tr {
  cursor: pointer;
}

.admin-data-table tbody tr:hover td,
.admin-data-table tbody tr.selected-row td {
  background: #fffaf3;
}

.admin-data-table strong,
.admin-data-table small {
  display: block;
}

.admin-data-table small {
  margin-top: 4px;
  color: #81776e;
  font-size: 12px;
}

.admin-data-table code,
.invite-link,
.masked-value {
  font-family: Consolas, "Courier New", monospace;
  letter-spacing: 0;
}

.admin-filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
}

.admin-filter-bar.split {
  justify-content: space-between;
}

.admin-bulk-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid #eee3d7;
  border-radius: 8px;
  background: #fffaf5;
}

.bulk-check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #4f463d;
  font-size: 12px;
  font-weight: 850;
}

.bulk-select-cell {
  width: 42px;
  text-align: center !important;
}

.bulk-select-cell input {
  width: 16px;
  height: 16px;
  accent-color: #b8843c;
  cursor: pointer;
}

.admin-bulk-toolbar button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.admin-filter-bar input,
.settings-grid input,
.settings-grid textarea,
.settings-list input,
.settings-list select,
.admin-inline-form input,
.admin-inline-form select,
.admin-inline-form textarea,
.detail-form input,
.detail-form select,
.detail-form textarea,
.sandbox-generator-grid input,
.sandbox-generator-grid select,
.coupon-generator-grid input,
.coupon-generator-grid select,
.sandbox-generator-messages textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid #ded4c9;
  border-radius: 8px;
  background: #fff;
  color: #1d1a17;
  font: inherit;
  outline: 0;
}

.admin-filter-bar input:focus,
.settings-grid input:focus,
.settings-grid textarea:focus,
.admin-inline-form input:focus,
.admin-inline-form select:focus,
.admin-inline-form textarea:focus,
.detail-form input:focus,
.detail-form select:focus,
.detail-form textarea:focus {
  border-color: #c89b5c;
  box-shadow: 0 0 0 3px rgba(200, 155, 92, 0.14);
}

.admin-create-strip,
.admin-notice-strip {
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  padding: 14px;
  border: 1px solid #eee3d7;
  border-radius: 8px;
  background: #fffaf5;
}

.admin-notice-strip {
  grid-template-columns: minmax(0, 1fr) auto;
}

.admin-inline-form .wide-input {
  grid-column: span 4;
}

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

.detail-head h2 {
  margin: 0;
  font-size: 20px;
}

.detail-head p {
  margin: 5px 0 0;
  color: #746b62;
  font-size: 13px;
}

.detail-form,
.detail-readonly,
.settings-list {
  display: grid;
  gap: 12px;
}

.detail-form label,
.settings-list label {
  display: grid;
  gap: 6px;
  color: #51483f;
  font-size: 12px;
  font-weight: 850;
}

.detail-form textarea,
.settings-grid textarea {
  min-height: 86px;
  resize: vertical;
}

.admin-password-view {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.admin-password-view input[readonly] {
  background: #fbf7f1;
  color: #1d1a17;
}

.admin-password-view .secondary-btn {
  min-height: 42px;
  white-space: nowrap;
}

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

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 4px;
}

.detail-readonly > div {
  padding: 12px;
  border: 1px solid #eee5da;
  border-radius: 8px;
  background: #fffaf5;
}

.detail-readonly span {
  display: block;
  margin-bottom: 5px;
  color: #82766b;
  font-size: 12px;
  font-weight: 850;
}

.detail-readonly strong,
.detail-readonly p {
  margin: 0;
  color: #1d1a17;
}

.status-pill,
.role-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.status-pill.active {
  background: #e9f7ed;
  color: #247441;
}

.status-pill.warning {
  background: #fff2d7;
  color: #9a6420;
}

.status-pill.danger {
  background: #ffe7e1;
  color: #aa3f2d;
}

.status-pill.info {
  background: #e8f0ff;
  color: #3f65a8;
}

.status-pill.muted,
.role-pill {
  background: #f2eee8;
  color: #6f6257;
}

.admin-product-preview {
  width: 72px;
  height: 88px;
  border-radius: 8px;
}

.admin-product-preview.large {
  width: 100%;
  height: 190px;
  margin-bottom: 4px;
}

.upload-field {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px dashed #d9cbbc;
  border-radius: 8px;
  background: #fffaf5;
}

.upload-field input {
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
}

.invite-code-editor {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 170px;
}

.invite-link {
  display: inline-block;
  max-width: 260px;
  overflow: hidden;
  color: #5d4a32;
  text-overflow: ellipsis;
  vertical-align: middle;
  white-space: nowrap;
}

.tiny-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 6px;
  background: #f3eadf;
  color: #8d6230;
  cursor: pointer;
}

.tiny-copy svg {
  width: 14px;
  height: 14px;
}

.one-time-invite-card {
  margin-top: 18px;
}

.invite-batch-form {
  grid-template-columns: 140px 140px 150px minmax(220px, 1fr) auto;
  align-items: end;
  padding: 12px;
  border: 1px solid #eee3d7;
  border-radius: 8px;
  background: #fffaf5;
}

.invite-batch-form label {
  display: grid;
  gap: 7px;
  color: #443d37;
  font-size: 12px;
  font-weight: 850;
}

.invite-batch-form .wide-input {
  grid-column: auto;
}

.invite-batch-form button {
  min-height: 42px;
  white-space: nowrap;
}

.one-time-invite-table {
  min-width: 1220px;
}

.one-time-code-list {
  display: grid;
  gap: 8px;
  max-height: 360px;
  overflow: auto;
}

.one-time-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #eadfce;
  border-radius: 8px;
  background: #fffaf4;
}

.one-time-code-row code {
  display: block;
  overflow: hidden;
  color: #211a13;
  font-family: Consolas, "Courier New", monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.one-time-code-row small {
  display: block;
  margin-top: 4px;
  color: #81776e;
  font-size: 12px;
}

.invite-mini-toolbar {
  justify-content: space-between;
}

.invite-usage-editor {
  display: inline-grid;
  grid-template-columns: 92px auto;
  gap: 6px;
  align-items: center;
  min-width: 150px;
}

.invite-usage-editor input {
  width: 92px;
  min-height: 34px;
  padding: 0 9px;
}

.invite-usage-editor small {
  grid-column: 1 / -1;
  margin: 0;
  color: #8a7a69;
  font-size: 11px;
  font-weight: 700;
}

.sandbox-card-generator,
.coupon-generator {
  margin-bottom: 18px;
}

.sandbox-generator-grid,
.coupon-generator-grid,
.sandbox-generator-messages {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.sandbox-generator-grid label,
.coupon-generator-grid label,
.sandbox-generator-messages label {
  display: grid;
  gap: 6px;
  color: #51483f;
  font-size: 12px;
  font-weight: 850;
}

.sandbox-generator-messages {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 12px;
}

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

.admin-wide-card {
  grid-column: 1 / -1;
}

.permission-grid,
.system-card-row {
  display: grid;
  gap: 10px;
}

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

.permission-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid #eee3d8;
  border-radius: 8px;
  background: #fffaf5;
  font-weight: 850;
}

.system-card-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.system-card-row div {
  padding: 16px;
  border: 1px solid #eee3d8;
  border-radius: 8px;
  background: #fffaf5;
}

.system-card-row strong,
.system-card-row span {
  display: block;
}

.system-card-row span {
  margin-top: 5px;
  color: #7d7167;
  font-size: 12px;
}

.empty-state,
.empty-cell {
  padding: 24px;
  color: #83786d;
  text-align: center;
}

@media (max-width: 1320px) {
  .admin-metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-work-grid,
  .admin-dashboard-grid,
  .admin-two-col {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-detail-card {
    position: static;
  }
}

@media (max-width: 860px) {
  body.admin-v2 .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: relative;
    height: auto;
  }

  .admin-toolbar,
  .admin-toolbar-actions,
  .admin-page-title {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-metric-grid,
  .admin-metric-grid.compact,
  .admin-system-grid,
  .system-card-row,
  .sandbox-generator-grid,
  .sandbox-generator-messages,
  .detail-subgrid,
  .page-editor-grid,
  .footer-link-row,
  .settings-grid,
  .toggle-grid {
    grid-template-columns: 1fr;
  }

  body.admin-v2 .admin-content {
    padding: 16px;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  line-height: 1.45;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: min(var(--container), calc(100% - 96px));
  margin: 0 auto;
}

.topbar {
  border-bottom: 1px solid var(--line);
  background: #fbfbfb;
  font-size: 14px;
}

.topbar-inner,
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar-inner {
  height: 36px;
}

.topbar-left {
  display: flex;
  gap: 22px;
}

.topbar-menu {
  position: relative;
}

.topbar-select,
.topbar-phone,
.icon-button,
.mobile-icon {
  display: inline-flex;
  align-items: center;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.topbar-select {
  gap: 6px;
  padding: 0;
}

.topbar-select svg {
  width: 14px;
  height: 14px;
}

.topbar-dropdown {
  position: absolute;
  top: calc(100% + 9px);
  left: 0;
  z-index: 60;
  display: none;
  min-width: 128px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(24, 18, 14, 0.14);
}

.topbar-dropdown.open {
  display: grid;
}

.topbar-dropdown button {
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  text-align: left;
  font-weight: 750;
}

.topbar-dropdown button:last-child {
  border-bottom: 0;
}

.topbar-dropdown button:hover,
.topbar-dropdown button.active {
  background: #fff3eb;
  color: var(--accent);
}

.topbar-phone {
  gap: 8px;
}

.topbar-phone svg {
  width: 15px;
  height: 15px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(224, 224, 224, 0.7);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 88px;
  gap: 28px;
}

.brand {
  flex: 0 0 auto;
  min-width: 228px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 3.2vw, 44px);
  font-weight: 700;
  letter-spacing: 0;
  color: var(--gold);
  text-shadow: 0 1px 0 #fff, 0 2px 5px rgba(139, 95, 37, 0.22);
}

.brand.small {
  min-width: auto;
  font-size: 32px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(22px, 2.6vw, 42px);
  flex: 1 1 auto;
  font-weight: 700;
  white-space: nowrap;
}

.desktop-nav .nav-item {
  display: inline-flex;
  align-items: center;
  min-height: 88px;
}

.desktop-nav a,
.desktop-nav .nav-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 48px;
}

.desktop-nav .nav-trigger {
  color: #171717;
  transition: color 0.18s ease;
}

.desktop-nav .nav-item:hover .nav-trigger,
.desktop-nav .nav-item:focus-within .nav-trigger {
  color: #ff5b1f;
}

.desktop-nav svg,
.nav-trigger svg {
  width: 14px;
  height: 14px;
}

.nav-trigger svg {
  transition: transform 0.18s ease;
}

.desktop-nav .nav-item:hover .nav-trigger svg,
.desktop-nav .nav-item:focus-within .nav-trigger svg {
  transform: rotate(180deg);
}

.nav-badge {
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  padding: 1px 6px 2px;
  border-radius: 4px;
  background: #ff5b1f;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.1;
}

.nav-badge.purple {
  background: var(--purple);
}

.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  z-index: 35;
  width: min(1060px, calc(100vw - 48px));
  padding-top: 10px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.desktop-nav .nav-item:hover .mega-menu,
.desktop-nav .nav-item:focus-within .mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.mega-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
  min-height: 230px;
  padding: 28px 32px;
  border: 1px solid rgba(224, 224, 224, 0.85);
  border-radius: 0 0 8px 8px;
  background: #fff;
  box-shadow: 0 24px 48px rgba(27, 21, 16, 0.12);
}

.mega-menu.wide .mega-inner {
  grid-template-columns: 0.85fr 1.2fr 1.2fr;
  align-items: stretch;
}

.mega-menu.compact {
  width: min(420px, calc(100vw - 48px));
}

.mega-menu.compact .mega-inner {
  grid-template-columns: 1fr;
  min-height: 0;
}

.mega-column {
  display: grid;
  align-content: start;
  gap: 18px;
}

.mega-column h3,
.mega-image-tile span {
  margin: 0;
  color: #141414;
  font-size: 18px;
  line-height: 1.2;
}

.mega-link-list {
  display: grid;
  gap: 14px;
}

.desktop-nav .mega-link-list a {
  display: inline-flex;
  width: fit-content;
  min-height: 0;
  color: #697282;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  transition: color 0.16s ease, transform 0.16s ease;
}

.desktop-nav .mega-link-list a:hover,
.desktop-nav .mega-link-list a:focus-visible {
  color: #ff5b1f;
  transform: translateX(3px);
}

.mega-feature,
.mega-image-tile {
  display: grid;
  align-content: start;
  min-height: 230px;
  padding: 20px;
  overflow: hidden;
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.36)),
    var(--mega-image) center / cover no-repeat;
  color: #161616;
}

.desktop-nav .mega-feature,
.desktop-nav .mega-image-tile {
  min-height: 230px;
}

.mega-feature span {
  font-size: 18px;
  font-weight: 800;
}

.mega-feature small {
  margin-top: 8px;
  color: #5f6670;
  font-size: 13px;
  font-weight: 600;
}

.mega-feature strong {
  align-self: end;
  justify-self: start;
  margin-top: auto;
  padding: 10px 16px;
  background: #fff;
  color: #111;
  font-size: 13px;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(18, 18, 18, 0.12);
}

.mega-image-tile {
  align-content: start;
  min-height: 310px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.08)),
    var(--mega-image) top center / cover no-repeat;
}

.drawer-menu-block {
  display: grid;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.drawer-main-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
}

.drawer-badge {
  padding: 2px 6px;
  border-radius: 4px;
  background: #ff5b1f;
  color: #fff;
  font-size: 10px;
  line-height: 1;
}

.drawer-badge.purple {
  background: var(--purple);
}

.drawer-sub-links {
  display: grid;
  gap: 8px;
  padding-left: 10px;
}

.drawer-sub-links a,
.drawer-account-link {
  color: #687180;
  font-size: 14px;
  font-weight: 650;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  min-width: 190px;
}

.icon-button,
.mobile-icon {
  position: relative;
  width: 28px;
  height: 28px;
  justify-content: center;
  padding: 0;
  border-radius: 50%;
}

.icon-button svg,
.mobile-icon svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.9;
}

.cart-count {
  position: absolute;
  top: -7px;
  right: -9px;
  display: none;
  min-width: 17px;
  height: 17px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}

.cart-count.visible {
  display: inline-flex;
}

.mobile-icon {
  display: none;
}

.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  background: rgba(0, 0, 0, 0);
  transition: background 0.24s ease;
}

.mobile-drawer.open {
  pointer-events: auto;
  background: rgba(0, 0, 0, 0.38);
}

.drawer-panel {
  width: min(84vw, 360px);
  height: 100%;
  padding: 24px;
  background: #fff;
  transform: translateX(-105%);
  transition: transform 0.26s ease;
  box-shadow: var(--shadow);
}

.mobile-drawer.open .drawer-panel {
  transform: translateX(0);
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.drawer-nav {
  display: grid;
  gap: 4px;
}

.drawer-nav a {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 750;
}

.drawer-menu-block a {
  padding: 0;
  border-bottom: 0;
}

.drawer-account-link {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.hero {
  position: relative;
  min-height: 700px;
  overflow: hidden;
  background: #eee;
}

.hero-bg,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-bg {
  background-image: url("../img/hero-fashion.png");
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.34) 0%, rgba(0, 0, 0, 0.14) 42%, rgba(0, 0, 0, 0.02) 78%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.20) 0%, rgba(0, 0, 0, 0) 38%);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 700px;
  padding-top: 185px;
  color: #fff;
}

.eyebrow {
  margin: 0 0 18px;
  font-size: clamp(25px, 2.6vw, 34px);
  font-weight: 300;
  opacity: 0.82;
}

.hero h1 {
  max-width: 660px;
  margin: 0;
  font-size: clamp(46px, 5vw, 74px);
  font-weight: 850;
  line-height: 1.13;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 720px;
  margin: 24px 0 54px;
  font-size: clamp(18px, 1.6vw, 24px);
  font-weight: 600;
}

.hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 158px;
  height: 54px;
  border: 1px solid #111;
  border-radius: 4px;
  background: #fff;
  color: #292929;
  font-weight: 850;
}

.hero-caption {
  position: absolute;
  left: 27%;
  bottom: 66px;
  display: grid;
  gap: 8px;
}

.hero-caption span {
  font-size: 12px;
  letter-spacing: 0.06em;
  opacity: 0.88;
}

.hero-caption strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.12;
}

.hero-caption small {
  font-weight: 700;
  opacity: 0.9;
}

.hero-dots {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 25px;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

.hero-dots button {
  width: 58px;
  height: 4px;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.46);
  cursor: pointer;
}

.hero-dots button.active {
  background: #fff;
}

.ticker {
  overflow: hidden;
  background: var(--blush);
  color: #f0838b;
  font-size: 22px;
  font-weight: 850;
  white-space: nowrap;
}

.ticker-track {
  display: inline-flex;
  gap: 50px;
  min-width: 200%;
  padding: 17px 0;
  animation: ticker 26s linear infinite;
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.section {
  padding: 74px 0;
}

.section-head {
  max-width: 800px;
  margin: 0 auto 38px;
  text-align: center;
}

.section-head.compact {
  margin-bottom: 24px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.2;
}

.section-head p {
  margin: 23px 0 0;
  color: #4c3f38;
  font-size: 18px;
}

.wave-line {
  width: 52px;
  height: 8px;
  margin: 10px auto 0;
  background-image: url("data:image/svg+xml,%3Csvg width='52' height='8' viewBox='0 0 52 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4 C4 1,7 1,10 4 S16 7,19 4 S25 1,28 4 S34 7,37 4 S43 1,46 4 S50 7,51 4' fill='none' stroke='%23111111' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.promo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.promo-card {
  position: relative;
  min-height: 298px;
  overflow: hidden;
  padding: 28px;
  border-radius: 0;
  color: #fff;
  background-image: url("../img/product-collage.png");
  background-size: 210% 210%;
  box-shadow: 0 10px 28px rgba(23, 20, 18, 0.08);
}

.promo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.54), rgba(0, 0, 0, 0.02) 64%);
}

.promo-card span,
.promo-card strong {
  position: relative;
  z-index: 1;
  display: block;
}

.promo-card span {
  margin-top: 174px;
  font-size: 20px;
  font-weight: 850;
}

.promo-card strong {
  margin-top: 6px;
  font-size: 15px;
}

.promo-one {
  background-position: left top;
}

.promo-two {
  background-position: right top;
}

.promo-three {
  background-position: left bottom;
}

.promo-four {
  background-position: right bottom;
}

.product-section {
  padding-top: 36px;
}

.product-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
}

.tab {
  min-width: 132px;
  height: 42px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: #6a6058;
  cursor: pointer;
  font-weight: 750;
}

.tab.active {
  border-color: #111;
  color: #111;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px 24px;
}

.product-card {
  position: relative;
  min-width: 0;
}

.product-media-wrap {
  position: relative;
}

.product-media {
  position: relative;
  display: block;
  height: clamp(260px, 28vw, 400px);
  overflow: hidden;
  background-image: url("../img/product-collage.png");
  background-size: 205% 205%;
  background-color: #f4f0ea;
}

.product-media-link {
  color: inherit;
}

.product-main-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.product-card:nth-child(4n + 1) .product-media {
  background-position: left top;
}

.product-card:nth-child(4n + 2) .product-media {
  background-position: right top;
}

.product-card:nth-child(4n + 3) .product-media {
  background-position: left bottom;
}

.product-card:nth-child(4n) .product-media {
  background-position: right bottom;
}

.product-media.slot-1,
.cart-thumb.slot-1,
.admin-product-preview.slot-1,
.product-detail-media.slot-1,
.related-product-thumb.slot-1,
.wishlist-thumb.slot-1 {
  background-position: left top;
}

.product-media.slot-2,
.cart-thumb.slot-2,
.admin-product-preview.slot-2,
.product-detail-media.slot-2,
.related-product-thumb.slot-2,
.wishlist-thumb.slot-2 {
  background-position: right top;
}

.product-media.slot-3,
.cart-thumb.slot-3,
.admin-product-preview.slot-3,
.product-detail-media.slot-3,
.related-product-thumb.slot-3,
.wishlist-thumb.slot-3 {
  background-position: left bottom;
}

.product-media.slot-4,
.cart-thumb.slot-4,
.admin-product-preview.slot-4,
.product-detail-media.slot-4,
.related-product-thumb.slot-4,
.wishlist-thumb.slot-4 {
  background-position: right bottom;
}

.product-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0);
  transition: background 0.2s ease;
}

.product-actions {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  display: flex;
  gap: 8px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.product-card:hover .product-actions {
  opacity: 1;
  transform: translateY(0);
}

.product-card:hover .product-media::after {
  background: rgba(255, 255, 255, 0.18);
}

.add-cart,
.wishlist {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  border: 0;
  border-radius: 4px;
  background: #111;
  color: #fff;
  cursor: pointer;
  font-weight: 800;
}

.add-cart {
  flex: 1 1 auto;
  gap: 8px;
}

.add-cart svg,
.wishlist svg {
  width: 18px;
  height: 18px;
}

.wishlist {
  width: 46px;
  flex: 0 0 46px;
}

.product-info {
  padding-top: 14px;
}

.product-info h3 {
  display: -webkit-box;
  min-height: 46px;
  margin: 0 0 10px;
  overflow: hidden;
  color: #222;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-info h3 a {
  color: inherit;
}

.product-info h3 a:hover {
  color: var(--gold);
}

.price-login {
  color: #8c8178;
  font-size: 14px;
}

.stock-line {
  display: block;
  margin-top: 4px;
  color: #a39a91;
  font-size: 12px;
}

.product-detail-shell {
  padding: 34px 0 0;
  background: #fffaf4;
}

.product-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-bottom: 22px;
  color: #83776c;
  font-size: 13px;
}

.product-breadcrumb a {
  color: #6f6258;
}

.product-breadcrumb strong {
  max-width: 580px;
  overflow: hidden;
  color: #17120d;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-detail-root {
  min-height: 520px;
}

.product-detail-loading,
.product-detail-empty {
  display: grid;
  min-height: 360px;
  place-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  background: #fff;
}

.product-detail-empty svg {
  width: 72px;
  height: 72px;
  color: #cfc8c0;
}

.product-detail-empty h1 {
  margin: 0;
  font-size: 28px;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
  gap: 44px;
  align-items: start;
  padding: 24px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 18px 44px rgba(33, 24, 15, 0.07);
}

.product-detail-gallery {
  position: sticky;
  top: 104px;
}

.product-detail-media,
.related-product-thumb,
.wishlist-thumb {
  background-image: url("../img/product-collage.png");
  background-size: 205% 205%;
  background-color: #f4f0ea;
}

.product-detail-media {
  position: relative;
  min-height: 640px;
  overflow: hidden;
}

.product-detail-copy {
  display: grid;
  gap: 22px;
  padding: 10px 8px 8px;
}

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

.product-detail-meta span,
.product-detail-meta strong {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 10px;
  border-radius: 4px;
  background: #f8f1e8;
  color: #8b602b;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.product-detail-meta strong.ok {
  background: #e7f7ec;
  color: #168a45;
}

.product-detail-meta strong.muted {
  background: #f0ece7;
  color: #776d64;
}

.product-detail-copy h1 {
  margin: 0;
  color: #15110e;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.05;
}

.product-detail-price {
  color: #b8843c;
  font-size: 34px;
  font-weight: 900;
}

.product-detail-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid #eadfd2;
}

.product-detail-facts div {
  display: grid;
  gap: 6px;
  padding: 16px;
  border-right: 1px solid #eadfd2;
}

.product-detail-facts div:last-child {
  border-right: 0;
}

.product-detail-facts span {
  color: #8a7f74;
  font-size: 12px;
}

.product-detail-facts strong {
  color: #1a1714;
  font-size: 15px;
}

.product-detail-description {
  padding-top: 4px;
}

.product-detail-description h2 {
  margin: 0 0 10px;
  font-size: 18px;
}

.product-detail-description p {
  margin: 0;
  color: #5f544b;
  font-size: 15px;
  line-height: 1.8;
}

.product-purchase-row {
  display: grid;
  grid-template-columns: 170px minmax(180px, 1fr) 130px;
  gap: 12px;
  align-items: end;
}

.product-purchase-row label {
  display: grid;
  gap: 8px;
  color: #4f453d;
  font-size: 13px;
  font-weight: 850;
}

.quantity-stepper {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  height: 48px;
  border: 1px solid #dfd3c5;
  background: #fff;
}

.quantity-stepper button,
.quantity-stepper input {
  min-width: 0;
  border: 0;
  background: transparent;
}

.quantity-stepper button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.quantity-stepper button:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.quantity-stepper svg {
  width: 16px;
  height: 16px;
}

.quantity-stepper input {
  border-inline: 1px solid #efe5da;
  text-align: center;
  font-weight: 850;
}

.product-add-btn,
.product-wishlist-btn,
.product-buy-now {
  height: 48px;
  justify-content: center;
}

.product-wishlist-btn.active {
  border-color: #f6b9a8;
  background: #fff1ed;
  color: #ef6a46;
}

.product-buy-now {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  width: 100%;
  border: 0;
  border-radius: 4px;
  background: #15110e;
  color: #fff;
  cursor: pointer;
  font-weight: 900;
}

.product-buy-now:disabled,
.product-add-btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.product-service-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding-top: 4px;
}

.product-service-strip > div {
  display: grid;
  gap: 7px;
  align-content: start;
  min-height: 132px;
  padding: 16px;
  border: 1px solid #eadfd2;
  background: #fffaf4;
}

.product-service-strip svg {
  width: 22px;
  height: 22px;
  color: var(--gold);
}

.product-service-strip strong {
  font-size: 14px;
}

.product-service-strip span {
  color: #766b62;
  font-size: 12px;
  line-height: 1.5;
}

.product-related-section {
  padding: 58px 0 70px;
}

.related-product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.related-product-card {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.related-product-thumb {
  position: relative;
  display: block;
  min-height: 290px;
  overflow: hidden;
}

.related-product-card > div:not(.related-product-actions) {
  display: grid;
  gap: 6px;
}

.related-product-card a {
  color: #17120d;
  font-weight: 850;
}

.related-product-card span {
  color: #b8843c;
  font-weight: 900;
}

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

.related-product-actions .add-cart {
  flex: 1 1 auto;
}

body.product-page {
  background: #fbf8f3;
}

body.product-page .site-header {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 1px 0 rgba(23, 18, 13, 0.08);
}

body.product-page .product-detail-shell {
  padding: 26px 0 0;
  background: #fbf8f3;
}

body.product-page .product-breadcrumb {
  margin: 0 0 28px;
  padding: 0;
  color: #8c8178;
}

body.product-page .product-breadcrumb strong {
  color: #1d1711;
}

body.product-page .product-detail-root {
  min-height: 0;
}

body.product-page .product-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(430px, 1.02fr);
  gap: 34px;
  align-items: start;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.product-page .product-detail-gallery {
  position: static;
}

body.product-page .product-detail-media {
  min-height: 620px;
  border-radius: 3px;
  background-color: #eee5da;
  box-shadow: 0 16px 42px rgba(41, 27, 16, 0.08);
}

.product-gallery-zoom,
.product-gallery-arrow {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: rgba(255, 255, 255, 0.9);
  color: #14110e;
  cursor: pointer;
}

.product-gallery-zoom {
  top: 22px;
  right: 22px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
}

.product-gallery-arrow {
  top: 50%;
  width: 42px;
  height: 64px;
  transform: translateY(-50%);
  background: transparent;
}

.product-gallery-arrow.left {
  left: 14px;
}

.product-gallery-arrow.right {
  right: 14px;
}

.product-gallery-arrow svg {
  width: 32px;
  height: 32px;
  stroke-width: 1.6;
}

.product-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 26px;
  padding: 0 28px;
}

.product-gallery-thumbs button {
  position: relative;
  min-height: 170px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 4px;
  background-image: url("../img/product-collage.png");
  background-size: 205% 205%;
  background-color: #efe7dc;
  cursor: pointer;
}

.product-gallery-thumbs button.active {
  border-color: #a56f2d;
  box-shadow: inset 0 0 0 1px #a56f2d;
}

body.product-page .product-buy-panel {
  gap: 12px;
  padding: 24px 26px;
  border: 1px solid #e8ded2;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 48px rgba(38, 26, 16, 0.08);
}

body.product-page .product-detail-meta {
  justify-content: flex-start;
  gap: 8px;
}

body.product-page .product-detail-meta span,
body.product-page .product-detail-meta em {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 7px;
  border: 1px solid #d8b98b;
  border-radius: 2px;
  background: #fff8ed;
  color: #b8843c;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

body.product-page .product-detail-meta em {
  border-color: transparent;
  background: transparent;
  color: #a5753a;
}

body.product-page .product-detail-copy h1 {
  max-width: 760px;
  font-family: var(--font-sans, inherit);
  font-size: clamp(25px, 2.1vw, 32px);
  font-weight: 900;
  line-height: 1.18;
}

.product-rating-row,
.product-stock-row,
.product-option-head {
  display: flex;
  gap: 12px;
  align-items: center;
}

.product-stars {
  color: #ee9b12;
  letter-spacing: 1px;
}

.product-rating-row small,
.product-stock-row small,
.product-option-head span,
.product-size-guide {
  color: #756b62;
  font-size: 12px;
}

body.product-page .product-detail-price {
  color: #15110e;
  font-size: 31px;
  font-weight: 950;
}

.product-stock-row strong {
  color: #188d4b;
  font-size: 13px;
}

.product-stock-row strong.muted {
  color: #837970;
}

.product-stock-row span {
  width: 1px;
  height: 18px;
  background: #e7ddd2;
}

body.product-page .product-detail-description.compact p {
  max-width: 720px;
  color: #5c5249;
  font-size: 14px;
  line-height: 1.65;
}

.product-panel-divider {
  height: 1px;
  margin: 5px 0 2px;
  background: #e8ded2;
}

.product-option-block {
  display: grid;
  gap: 10px;
}

.product-option-head strong {
  font-size: 13px;
}

.product-swatches {
  display: flex;
  gap: 12px;
}

.product-swatches button {
  width: 34px;
  height: 34px;
  border: 1px solid #d6cabd;
  border-radius: 3px;
  background: var(--swatch);
  cursor: pointer;
}

.product-swatches button.active {
  border-color: #9d682a;
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px #9d682a;
}

.product-size-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(52px, 1fr));
  gap: 12px;
  max-width: 410px;
}

.product-size-row button {
  min-height: 38px;
  border: 1px solid #ddd1c3;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  font-weight: 800;
}

.product-size-row button.active {
  border-color: #a56f2d;
  color: #7c4f19;
}

.product-size-guide {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-weight: 800;
}

body.product-page .product-purchase-row {
  display: flex;
  gap: 12px;
  align-items: end;
}

body.product-page .product-purchase-row label {
  min-width: 170px;
}

body.product-page .quantity-stepper {
  width: 152px;
  height: 42px;
  border-color: #ddd1c3;
}

.product-low-stock {
  margin-bottom: 11px;
  color: #b8843c;
  font-size: 12px;
  font-weight: 850;
}

body.product-page .product-add-btn,
body.product-page .product-buy-now,
body.product-page .product-wishlist-btn {
  width: 100%;
  min-height: 46px;
  border-radius: 3px;
  font-weight: 950;
}

body.product-page .product-add-btn {
  background: #11100f;
}

body.product-page .product-buy-now,
body.product-page .product-wishlist-btn {
  border: 1px solid #11100f;
  background: #fff;
  color: #11100f;
}

body.product-page .product-service-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid #e8ded2;
}

body.product-page .product-service-strip > div {
  min-height: 48px;
  padding: 0 10px;
  border: 0;
  border-right: 1px solid #eadfd2;
  background: transparent;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 10px;
}

body.product-page .product-service-strip > div:last-child {
  border-right: 0;
}

body.product-page .product-service-strip svg {
  grid-row: span 2;
  width: 18px;
  height: 18px;
  color: #11100f;
}

body.product-page .product-service-strip strong {
  font-size: 12px;
}

body.product-page .product-service-strip span {
  font-size: 11px;
}

.product-after-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(430px, 1.02fr);
  gap: 34px;
  align-items: start;
  margin-top: 46px;
  padding-bottom: 74px;
}

.product-info-tabs {
  border: 1px solid #e8ded2;
  border-radius: 4px;
  background: #fff;
}

.product-tabs-line {
  display: flex;
  gap: 0;
  border-bottom: 1px solid #e8ded2;
  background: #fffaf4;
}

.product-tabs-line button {
  min-width: 136px;
  min-height: 58px;
  margin: -1px 0 -1px -1px;
  border: 1px solid transparent;
  border-bottom-color: #e8ded2;
  background: transparent;
  color: #4a4038;
  cursor: pointer;
  font-weight: 900;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.product-tabs-line button.active {
  position: relative;
  z-index: 1;
  border: 2px solid #11100f;
  border-bottom-color: #fff;
  background: #fff;
  color: #11100f;
}

.product-tab-copy {
  padding: 26px 28px 32px;
  color: #554a42;
  line-height: 1.75;
}

.product-tab-copy p {
  margin: 0 0 18px;
}

.product-tab-copy ul {
  margin: 0;
  padding-left: 18px;
}

.product-related-panel {
  min-width: 0;
}

.product-related-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.product-related-head h2 {
  margin: 0;
  font-size: 20px;
}

.product-related-head div {
  display: flex;
  gap: 8px;
}

.product-related-head button {
  width: 34px;
  height: 34px;
  border: 1px solid #e4d9cc;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

body.product-page .related-product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

body.product-page .related-product-card {
  gap: 10px;
  padding: 0 0 12px;
  border: 1px solid #e8ded2;
  background: #fff;
}

body.product-page .related-product-thumb {
  min-height: 180px;
}

.related-wishlist-float {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
}

body.product-page .related-product-card > div:not(.related-product-actions) {
  padding: 0 12px;
}

body.product-page .related-product-card a {
  font-size: 13px;
  line-height: 1.45;
}

body.product-page .related-product-actions {
  display: none;
}

@media (max-width: 1180px) {
  body.product-page .product-detail-grid,
  body.product-page .product-after-grid {
    grid-template-columns: 1fr;
  }

  body.product-page .product-detail-media {
    min-height: 560px;
  }

  body.product-page .related-product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .product-editor-grid,
  .product-editor-grid.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.product-page .product-detail-media {
    min-height: 500px;
  }

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

  body.product-page .product-service-strip > div:nth-child(2) {
    border-right: 0;
  }
}

@media (max-width: 640px) {
  .product-editor-grid,
  .product-editor-grid.compact {
    grid-template-columns: 1fr;
  }

  body.product-page .product-detail-grid {
    gap: 20px;
  }

  body.product-page .product-detail-media {
    min-height: 420px;
  }

  .product-gallery-thumbs {
    gap: 10px;
    padding: 0;
  }

  .product-gallery-thumbs button {
    min-height: 92px;
  }

  body.product-page .product-buy-panel {
    padding: 18px;
  }

  .product-size-row,
  body.product-page .product-purchase-row,
  body.product-page .product-service-strip,
  body.product-page .related-product-grid {
    grid-template-columns: 1fr;
  }

  body.product-page .product-purchase-row {
    display: grid;
  }

  body.product-page .product-service-strip > div {
    border-right: 0;
    border-bottom: 1px solid #eadfd2;
    padding: 12px 0;
  }

  body.product-page .product-service-strip > div:last-child {
    border-bottom: 0;
  }
}

.wide-banner {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: stretch;
  min-height: 470px;
  background: #f2ede7;
}

.wide-image {
  background-image: url("../img/hero-fashion.png");
  background-position: 58% center;
  background-size: cover;
  min-height: 470px;
}

.wide-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 620px;
  padding: 70px 9vw 70px 68px;
}

.wide-copy span {
  color: var(--accent);
  font-size: 17px;
  font-weight: 850;
}

.wide-copy h2 {
  margin: 12px 0 16px;
  font-size: clamp(32px, 3vw, 48px);
  line-height: 1.15;
}

.wide-copy p {
  margin: 0 0 28px;
  color: #5e5149;
  font-size: 17px;
}

.wide-copy a,
.center-action a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  min-width: 116px;
  height: 42px;
  border: 1px solid #111;
  border-radius: 4px;
  font-weight: 850;
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.brand-grid span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 92px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: #4d4740;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 700;
  text-align: center;
}

.center-action {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

.news-section {
  padding-top: 20px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.news-grid article {
  min-height: 166px;
  padding: 28px;
  border: 1px solid var(--line);
  background: #fff;
}

.news-grid span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.news-grid h3 {
  margin: 12px 0 0;
  font-size: 22px;
  line-height: 1.32;
}

.service-band {
  padding: 34px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fbfaf8;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.service-item {
  display: flex;
  gap: 16px;
  align-items: center;
}

.service-item svg {
  width: 38px;
  height: 38px;
  color: var(--accent);
  stroke-width: 1.5;
}

.service-item strong,
.service-item span {
  display: block;
}

.service-item strong {
  font-size: 16px;
}

.service-item span {
  margin-top: 4px;
  color: #766d65;
  font-size: 13px;
}

.site-footer {
  background: #2e2a27;
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 58px;
  padding: 62px 0;
}

.footer-brand {
  display: inline-block;
  min-width: 0;
  margin-bottom: 16px;
  color: #d7a15c;
}

.footer-about p,
.site-footer p,
.site-footer a {
  color: rgba(255, 255, 255, 0.74);
}

.footer-grid h3 {
  margin: 0 0 18px;
  font-size: 18px;
}

.footer-grid a {
  display: block;
  margin: 10px 0;
}

.social-row {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}

.social-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.social-row svg {
  width: 18px;
  height: 18px;
}

.pay-strip {
  margin-top: 20px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.66);
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-size: 14px;
}

.content-page-shell {
  min-height: 520px;
  padding: 34px 0 72px;
  background: #f7f4f0;
}

.breadcrumb-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: #746b62;
  font-size: 14px;
}

.breadcrumb-row strong {
  color: #161310;
}

.content-page-card {
  max-width: 980px;
  min-height: 360px;
  padding: 42px 48px;
  border: 1px solid #e7ddd3;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(37, 27, 18, 0.06);
}

.content-page-eyebrow {
  display: block;
  margin-bottom: 10px;
  color: #b8843c;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.content-page-card h1 {
  margin: 0 0 22px;
  color: #15110e;
  font-size: 34px;
  line-height: 1.18;
}

.content-page-body {
  color: #3d352e;
  font-size: 16px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}

.float-chat {
  position: fixed;
  right: 22px;
  bottom: 34px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 50%;
  background: #20a9ea;
  color: #fff;
  box-shadow: 0 12px 26px rgba(32, 169, 234, 0.34);
  cursor: pointer;
}

.float-chat svg {
  width: 27px;
  height: 27px;
}

.hidden {
  display: none !important;
}

.toast-box {
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 200;
  display: grid;
  gap: 10px;
}

.toast-item {
  max-width: 360px;
  padding: 13px 16px;
  border: 1px solid #d9ead8;
  border-radius: 6px;
  background: #f3fff2;
  color: #215b25;
  box-shadow: var(--shadow);
  font-weight: 750;
}

.toast-item.error {
  border-color: #ffd3d3;
  background: #fff4f4;
  color: #a92323;
}

.search-panel {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 12vh;
  background: rgba(0, 0, 0, 0.42);
}

.support-panel {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 0 28px 102px;
  background: rgba(0, 0, 0, 0.18);
}

.support-panel.open {
  display: flex;
}

.support-card {
  position: relative;
  width: min(380px, calc(100vw - 32px));
  padding: 24px;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.support-card > .icon-button {
  position: absolute;
  top: 14px;
  right: 14px;
}

.support-card h2 {
  margin: 0 0 10px;
}

.support-card p {
  margin: 0 0 18px;
  color: #6f645b;
}

.search-panel.open {
  display: flex;
}

.search-box {
  width: min(720px, calc(100vw - 28px));
  padding: 28px;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.search-box > .icon-button {
  float: right;
}

.search-box label {
  display: block;
  margin-bottom: 16px;
  font-size: 22px;
  font-weight: 850;
}

.search-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.search-line input,
.search-line button,
.form-card input,
.form-card select,
.form-card textarea,
.two-col-form input,
.two-col-form textarea,
.address-form input,
.settings-grid input,
.settings-grid textarea,
.admin-inline-form input,
.admin-inline-form select,
.admin-inline-form textarea,
td input,
td select,
td textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid #ded7cf;
  border-radius: 5px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

td textarea,
.admin-inline-form textarea {
  min-width: 220px;
  min-height: 68px;
  resize: vertical;
}

.search-line button,
.primary-btn,
.secondary-btn,
.danger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 5px;
  border: 1px solid #111;
  cursor: pointer;
  font-weight: 850;
  text-decoration: none;
}

.primary-btn {
  background: #111;
  color: #fff;
}

.primary-btn.orange {
  border-color: #f0642f;
  background: #f0642f;
  color: #fff;
}

.primary-btn.light {
  background: #fff;
  color: #111;
}

.secondary-btn {
  background: #fff;
  color: #111;
}

.danger-btn {
  border-color: #c73d3d;
  background: #c73d3d;
  color: #fff;
}

.primary-btn.is-disabled,
.secondary-btn.is-disabled,
.danger-btn.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.primary-btn.small,
.secondary-btn.small,
.danger-btn.small {
  min-height: 32px;
  padding: 0 10px;
  font-size: 12px;
}

.link-btn {
  border: 0;
  background: transparent;
  color: #b24e30;
  cursor: pointer;
  font-weight: 800;
}

.app-page,
.admin-page {
  min-height: 100vh;
  background: #f7f3ee;
}

.page-header,
.admin-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 20px 48px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.checkout-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
  padding: 0 22px;
  border-bottom: 1px solid #e1e1e1;
  background: #f8f8f8;
  color: #141414;
  font-size: 18px;
}

.checkout-topbar > div {
  display: flex;
  align-items: center;
  gap: 30px;
}

.checkout-topbar a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #e35b22;
}

.checkout-topbar svg {
  width: 20px;
  height: 20px;
  color: #111;
  stroke-width: 1.8;
}

.page-header .brand,
.admin-top .brand {
  min-width: 0;
  font-size: 34px;
}

.page-header nav,
.admin-top div {
  display: flex;
  align-items: center;
  gap: 18px;
  font-weight: 800;
}

.checkout-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.checkout-header .brand {
  justify-self: center;
}

.checkout-header nav {
  justify-content: flex-end;
}

.checkout-header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.page-shell,
.admin-shell {
  width: min(1320px, calc(100% - 48px));
  margin: 0 auto;
  padding: 42px 0 72px;
}

.page-title {
  margin-bottom: 24px;
}

.page-title span,
.eyebrow-dark {
  display: block;
  margin-bottom: 6px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.page-title h1,
.panel h1,
.panel h2 {
  margin: 0;
}

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

.panel {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(31, 26, 21, 0.06);
}

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

.panel-head.pad-top {
  margin-top: 26px;
}

.hint {
  color: #796f66;
  font-size: 13px;
}

.form-card {
  display: grid;
  gap: 15px;
}

.form-card label,
.two-col-form label {
  display: grid;
  gap: 7px;
  color: #443d37;
  font-size: 14px;
  font-weight: 800;
}

.account-layout,
.admin-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 24px;
}

.account-menu,
.admin-menu {
  position: sticky;
  top: 24px;
  display: grid;
  align-self: start;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.account-menu a,
.account-menu button,
.admin-menu button {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  font-weight: 800;
  text-align: left;
}

.admin-menu button.active {
  background: #111;
  color: #fff;
}

.account-content,
.admin-content {
  display: grid;
  gap: 24px;
  min-width: 0;
}

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

.metric-grid div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fffaf5;
}

.metric-grid span,
.metric-grid strong {
  display: block;
}

.metric-grid span {
  color: #7b7067;
  font-size: 13px;
}

.metric-grid strong {
  margin-top: 8px;
  font-size: 22px;
}

.invite-chip,
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 4px;
  background: var(--blush);
  color: #b84d5b;
  font-size: 13px;
  font-weight: 850;
}

.withdraw-action-panel {
  display: grid;
  grid-template-columns: minmax(230px, 320px) minmax(260px, 1fr) auto;
  gap: 14px;
  align-items: stretch;
  margin: -8px 0 30px;
  padding: 14px;
  border: 1px solid #eadfce;
  border-radius: 8px;
  background: #fffaf4;
}

.withdraw-action-panel > div {
  min-height: 92px;
  padding: 16px 18px;
  border: 1px solid #ead8c2;
  border-radius: 7px;
  background: #fff;
}

.withdraw-action-panel input {
  min-height: 50px;
  border-color: #d8c9b9;
  background: #fff;
  font-size: 18px;
  font-weight: 800;
}

.withdraw-action-panel .primary-btn {
  min-width: 132px;
  min-height: 50px;
  align-self: end;
  padding-inline: 24px;
}

.withdraw-action-panel span,
.withdraw-action-panel strong {
  display: block;
}

.withdraw-action-panel span {
  color: #74675b;
  font-size: 13px;
  font-weight: 850;
}

.withdraw-action-panel strong {
  margin-top: 8px;
  color: #15120f;
  font-size: 30px;
  line-height: 1.05;
}

.withdraw-action-panel small {
  display: block;
  margin-top: 10px;
  color: #8a7d70;
  font-size: 12px;
}

.withdraw-action-panel label {
  display: grid;
  gap: 7px;
  color: #443d37;
  font-size: 14px;
  font-weight: 800;
}

.quick-withdraw-btn {
  gap: 8px;
}

.quick-withdraw-btn strong {
  color: inherit;
  font-size: inherit;
  line-height: 1;
}

.withdraw-modal {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.46);
}

.withdraw-modal-card {
  width: min(680px, 100%);
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.28);
}

.withdraw-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px;
  border-bottom: 1px solid var(--line);
}

.withdraw-modal-head h2 {
  margin: 0;
  color: #303030;
  font-size: 24px;
}

.modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: #6e665f;
  cursor: pointer;
}

.modal-close svg {
  width: 26px;
  height: 26px;
}

#withdraw-modal-form {
  display: grid;
  gap: 16px;
  padding: 24px 26px 26px;
}

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

.withdraw-modal-summary div {
  min-height: 92px;
  padding: 16px;
  border: 1px solid #ead8c2;
  border-radius: 8px;
  background: #fffaf4;
}

.withdraw-modal-summary span,
.withdraw-modal-summary strong {
  display: block;
}

.withdraw-modal-summary span {
  color: #74675b;
  font-size: 13px;
  font-weight: 850;
}

.withdraw-modal-summary strong {
  margin-top: 12px;
  color: #15120f;
  font-size: 30px;
  line-height: 1.05;
}

.withdraw-modal-note {
  margin: -2px 0 2px;
  color: #746b63;
  font-size: 13px;
  line-height: 1.6;
}

#withdraw-modal-form label {
  display: grid;
  gap: 10px;
  color: #6f675f;
  font-size: 16px;
  font-weight: 850;
}

#withdraw-modal-form label b {
  color: #f0642f;
}

#withdraw-modal-form input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid #e3ded7;
  border-radius: 5px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

#withdraw-modal-form input:disabled {
  background: #eee9df;
  color: #56524c;
  font-weight: 800;
}

.withdraw-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin: 4px -26px -26px;
  padding: 20px 26px;
  border-top: 1px solid var(--line);
  background: #fffaf5;
}

.account-page {
  background: #fff;
}

.account-store-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
}

.account-store-header .header-inner {
  display: grid;
  grid-template-columns: minmax(176px, 240px) minmax(0, 1fr) auto;
  gap: clamp(16px, 2vw, 28px);
}

.account-store-header .brand {
  min-width: 0;
}

.account-store-header .desktop-nav {
  min-width: 0;
  gap: clamp(14px, 2vw, 30px);
}

.account-store-header .header-actions {
  min-width: 0;
  gap: 16px;
}

.account-breadcrumb {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #f6f6f6;
}

.account-breadcrumb .container {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: #777;
  font-size: 13px;
}

.account-breadcrumb strong {
  color: #111;
}

.account-shell {
  width: min(1380px, calc(100% - 56px));
  margin: 0 auto;
  padding: 46px 0 72px;
}

.account-shell:has(#guest-panel:not(.hidden)) {
  padding-top: 32px;
}

.ecommerce-auth {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
  gap: 0 58px;
  width: min(764px, 100%);
  margin: 0 auto;
  padding: 0 0 12px;
  background: transparent;
}

.auth-page-heading {
  grid-column: 1 / -1;
  margin-bottom: 50px;
  text-align: center;
}

.auth-page-heading h1 {
  margin: 0;
  color: #1d1a17;
  font-size: clamp(28px, 2.25vw, 34px);
  font-weight: 850;
  line-height: 1.15;
}

.auth-form-card {
  display: grid;
  align-content: start;
  gap: 0;
  min-width: 0;
}

.auth-form-card h2 {
  min-height: 58px;
  margin: 0 0 27px;
  padding: 19px 24px;
  background: #f4f5f6;
  color: #151515;
  font-size: 16px;
  font-weight: 850;
  text-transform: uppercase;
}

.auth-form-card label {
  position: relative;
  display: grid;
  gap: 10px;
  margin-bottom: 25px;
  color: #4c5663;
  font-size: 14px;
  font-weight: 600;
}

.auth-form-card label.required::before {
  content: "*";
  position: absolute;
  left: 0;
  top: 0;
  color: #f0642f;
  font-weight: 900;
}

.auth-form-card label.required {
  padding-left: 12px;
}

.auth-form-card label.required input {
  width: calc(100% + 12px);
  margin-left: -12px;
}

.auth-form-card input {
  width: 100%;
  height: 40px;
  border: 1px solid #d6dce4;
  border-radius: 0;
  background: #fff;
  color: #15110e;
  font-size: 14px;
  font-weight: 600;
}

.auth-form-card input::placeholder {
  color: #a8b0bb;
  font-weight: 500;
}

.auth-form-card input:focus {
  border-color: #15110e;
  box-shadow: none;
}

.auth-forgot-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: -20px 0 26px;
  color: #4c5663;
  font-size: 14px;
  font-weight: 600;
}

.auth-forgot-link::before {
  content: "?";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 13px;
  height: 13px;
  margin-right: 5px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 10px;
  line-height: 1;
}

.auth-form-card .primary-btn {
  width: 100%;
  min-height: 42px;
  border-radius: 4px;
  background: #20252b;
  font-size: 16px;
}

.auth-form-card .primary-btn svg {
  width: 18px;
  height: 18px;
}

.auth-register .primary-btn {
  margin-top: 24px;
}

.auth-column-divider {
  width: 1px;
  min-height: 466px;
  background: #dcdfe4;
}

.member-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 34px;
}

.member-sidebar {
  min-width: 0;
}

.member-profile {
  display: grid;
  justify-items: center;
  padding: 20px 0 30px;
  border-bottom: 1px solid #eeeeee;
  text-align: center;
}

.member-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 74px;
  height: 74px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: #20a9ea;
  color: #fff;
  box-shadow: 0 4px 10px rgba(32, 169, 234, 0.28);
  font-size: 28px;
  font-weight: 850;
}

.member-profile strong {
  color: #272727;
  font-size: 15px;
}

.member-profile span {
  margin-top: 6px;
  color: #888;
  font-size: 13px;
}

.member-nav {
  display: grid;
}

.member-nav button {
  min-height: 40px;
  padding: 0 10px;
  border: 0;
  border-bottom: 1px solid #eeeeee;
  background: #fff;
  color: #555;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  text-align: left;
}

.member-nav button:hover,
.member-nav button.active {
  color: #f0642f;
}

.member-main {
  min-width: 0;
}

.member-view {
  display: none;
  min-height: 520px;
}

.member-view.active {
  display: block;
}

.member-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  padding-left: 10px;
  border-left: 3px solid #f0642f;
}

.member-title h2 {
  margin: 0;
  color: #191919;
  font-size: 17px;
}

.commission-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 28px;
  margin-bottom: 22px;
}

.commission-metrics div,
.member-info-grid div {
  display: grid;
  place-items: center;
  min-height: 126px;
  border: 1px solid #dedede;
  background: #fff;
  text-align: center;
}

.commission-metrics strong {
  color: #f0642f;
  font-size: 28px;
  line-height: 1.1;
}

.commission-metrics div:nth-child(2) strong {
  color: #69bd2b;
}

.commission-metrics div:nth-child(3) strong {
  color: #f1b90b;
}

.commission-metrics div:nth-child(4) strong {
  color: #5c6770;
}

.commission-metrics span,
.member-info-grid span {
  color: #777;
  font-size: 16px;
}

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

.member-info-grid strong {
  max-width: 100%;
  overflow-wrap: anywhere;
  color: #222;
  font-size: 16px;
}

.commission-tabs {
  display: flex;
  align-items: center;
  margin-bottom: 24px;
  border-bottom: 1px solid #e8e8e8;
}

.commission-tabs button {
  min-width: 94px;
  min-height: 58px;
  border: 1px solid transparent;
  border-bottom: 0;
  background: #fff;
  color: #333;
  cursor: pointer;
  font: inherit;
  font-size: 20px;
}

.commission-tabs button.active {
  border-color: #e8e8e8;
  color: #111;
  font-weight: 850;
}

.commission-table-wrap table {
  min-width: 980px;
}

.commission-table-wrap th {
  padding: 18px 14px;
  color: #111;
  font-size: 20px;
  font-weight: 900;
  text-transform: none;
}

.commission-table-wrap td {
  padding: 14px;
  color: #111;
  font-size: 20px;
}

.commission-table-wrap td:first-child,
.commission-table-wrap td:nth-child(3) {
  color: #6f7980;
}

.commission-amount {
  color: #f0642f;
  font-weight: 850;
}

.commission-status {
  font-weight: 850;
}

.commission-status.pending {
  color: #f3d21b;
}

.commission-status.settled {
  color: #69bd2b;
}

.member-empty {
  display: grid;
  justify-items: center;
  align-content: center;
  min-height: 280px;
  color: #aaa;
  text-align: center;
}

.member-empty svg {
  width: 104px;
  height: 104px;
  margin-bottom: 12px;
  color: #cfcfcf;
  stroke-width: 1.2;
}

.member-empty span {
  color: #9b9b9b;
  font-size: 16px;
}

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

.two-col-form .wide {
  grid-column: 1 / -1;
}

.member-form {
  max-width: 860px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.address-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 920px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.address-form label {
  display: grid;
  gap: 7px;
  color: #443d37;
  font-size: 14px;
  font-weight: 800;
}

.address-form .wide {
  grid-column: 1 / -1;
}

.member-form button,
.address-form button {
  width: fit-content;
}

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

table {
  width: 100%;
  border-collapse: collapse;
}

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

th {
  color: #70665e;
  font-size: 12px;
  text-transform: uppercase;
}

td small {
  display: block;
  margin-top: 5px;
  color: #837970;
}

td code {
  display: block;
  max-width: 280px;
  overflow-wrap: anywhere;
  font-size: 12px;
}

.empty-cell,
.empty-state {
  padding: 22px;
  color: #81776e;
  text-align: center;
}

.cart-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 22px;
}

.cart-summary > div {
  display: flex;
  align-items: center;
  gap: 18px;
}

.cart-summary strong,
.order-total strong {
  font-size: 26px;
}

.cart-product {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
  color: #17120d;
  font-weight: 750;
}

.cart-product:hover,
.wishlist-copy strong a:hover {
  color: var(--gold);
}

.cart-thumb {
  position: relative;
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  overflow: hidden;
  border-radius: 6px;
  background-image: url("../img/product-collage.png");
  background-size: 205% 205%;
}

.qty-input {
  max-width: 86px;
}

.inline-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.payment-card-fields {
  display: grid;
  gap: 18px;
}

.payment-field {
  display: grid;
  gap: 9px;
  color: #101828;
  font-size: 14px;
  font-weight: 850;
}

.payment-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}

.payment-input-wrap {
  position: relative;
  display: block;
}

.form-card .payment-input-wrap input {
  min-height: 50px;
  padding: 12px 56px 12px 13px;
  border-color: #cfd8e3;
  border-radius: 6px;
  background: #fff;
  font-size: 15px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.form-card .payment-input-wrap.plain input {
  padding-right: 13px;
}

.form-card .payment-input-wrap input:focus {
  border-color: #f2ce00;
  box-shadow: 0 0 0 1px #f2ce00;
  outline: 0;
}

.form-card .payment-input-wrap input::placeholder {
  color: #a4acb8;
  font-weight: 750;
}

.form-card .payment-input-wrap.has-error input:not(:focus) {
  border-color: #dc2626;
}

.payment-field-error {
  margin-top: -3px;
  color: #b91c1c;
  font-size: 12px;
  font-weight: 800;
}

.payment-card-icon {
  position: absolute;
  top: 50%;
  right: 12px;
  width: 28px;
  height: 20px;
  transform: translateY(-50%);
  border: 1px solid #c7d0dc;
  border-radius: 4px;
  background: linear-gradient(#f8fafc 0 35%, #e9eef4 35% 62%, #f8fafc 62%);
  box-shadow: inset 0 -1px 0 rgba(15, 23, 42, 0.06);
  pointer-events: none;
}

.payment-card-icon::before {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 4px;
  height: 2px;
  border-radius: 999px;
  background: #d3dae4;
}

.payment-card-icon.muted {
  opacity: 0.82;
}

.payment-card-icon.cvc::after {
  content: "";
  position: absolute;
  right: 5px;
  bottom: 4px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ef4444;
}

.card-brand-icon {
  transition: background 0.16s ease, border-color 0.16s ease, opacity 0.16s ease;
}

.card-brand-icon:not([data-brand="unknown"]) {
  width: 42px;
  height: 24px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.card-brand-icon:not([data-brand="unknown"])::before,
.card-brand-icon:not([data-brand="unknown"])::after {
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
}

.card-brand-icon[data-brand="visa"] {
  border: 1px solid #d7dfeb;
  border-radius: 5px;
  background: #fff;
}

.card-brand-icon[data-brand="visa"]::before {
  content: none;
}

.card-brand-icon[data-brand="visa"]::after {
  content: "VISA";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #1a3f8b;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0;
}

.card-brand-icon[data-brand="mastercard"],
.card-brand-icon[data-brand="maestro"] {
  width: 34px;
}

.card-brand-icon[data-brand="mastercard"]::before,
.card-brand-icon[data-brand="mastercard"]::after,
.card-brand-icon[data-brand="maestro"]::before,
.card-brand-icon[data-brand="maestro"]::after {
  content: "";
  position: absolute;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  opacity: 0.96;
}

.card-brand-icon[data-brand="mastercard"]::before {
  left: 6px;
  background: #eb001b;
}

.card-brand-icon[data-brand="mastercard"]::after {
  right: 6px;
  background: #f79e1b;
}

.card-brand-icon[data-brand="maestro"]::before {
  left: 6px;
  background: #009ddd;
}

.card-brand-icon[data-brand="maestro"]::after {
  right: 6px;
  background: #ed1c2e;
}

.card-brand-icon[data-brand="amex"] {
  border-radius: 5px;
  background: #2e77bb;
}

.card-brand-icon[data-brand="amex"]::before {
  content: none;
}

.card-brand-icon[data-brand="amex"]::after {
  content: "AMEX";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0;
}

.card-brand-icon[data-brand="discover"] {
  width: 48px;
  border: 1px solid #d7dfeb;
  border-radius: 5px;
  background: #fff;
  overflow: hidden;
}

.card-brand-icon[data-brand="discover"]::before {
  content: "";
  position: absolute;
  right: 4px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #f58220;
}

.card-brand-icon[data-brand="discover"]::after {
  content: "DISC";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #111;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0;
}

.card-brand-icon[data-brand="jcb"],
.card-brand-icon[data-brand="unionpay"] {
  width: 42px;
  border-radius: 5px;
  overflow: hidden;
}

.card-brand-icon[data-brand="jcb"] {
  background: linear-gradient(90deg, #0b70b7 0 33%, #159447 33% 66%, #d9272e 66% 100%);
}

.card-brand-icon[data-brand="jcb"]::before,
.card-brand-icon[data-brand="unionpay"]::before,
.card-brand-icon[data-brand="diners"]::before {
  content: none;
}

.card-brand-icon[data-brand="jcb"]::after {
  content: "JCB";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0;
}

.card-brand-icon[data-brand="unionpay"] {
  background: linear-gradient(90deg, #d71920 0 34%, #006bb6 34% 68%, #00a650 68% 100%);
}

.card-brand-icon[data-brand="unionpay"]::after {
  content: "UP";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0;
}

.card-brand-icon[data-brand="diners"] {
  width: 42px;
  border: 1px solid #1e5b9a;
  border-radius: 999px;
  background: #fff;
}

.card-brand-icon[data-brand="diners"]::after {
  content: "DC";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #1e5b9a;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0;
}

.order-box {
  align-self: start;
}

.summary-line,
.order-total {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.result-box {
  display: grid;
  gap: 7px;
  margin-top: 18px;
  padding: 16px;
  border-radius: 6px;
}

.result-box.processing {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  border: 1px solid #f0ddb7;
  background: #fff9ec;
  color: #4a3212;
  box-shadow: inset 0 0 0 1px rgba(184, 132, 60, 0.06);
}

.result-box.processing strong,
.result-box.processing small {
  display: block;
}

.result-box.processing small {
  margin-top: 4px;
  color: #7a6750;
  line-height: 1.45;
}

.payment-processing-spinner,
.payment-btn-spinner {
  display: inline-block;
  flex: 0 0 auto;
  border-radius: 50%;
  animation: payment-spin 0.78s linear infinite;
}

.payment-processing-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid #f0d8ac;
  border-top-color: #111;
  box-shadow: 0 0 0 6px rgba(184, 132, 60, 0.08);
}

.payment-btn-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.42);
  border-top-color: #fff;
}

.payment-processing button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: wait;
}

.payment-processing .payment-card-fields {
  opacity: 0.74;
  transition: opacity 0.18s ease;
}

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

/* Premium checkout */
body.checkout-premium {
  background: #f5f1ea;
  color: #15120f;
}

body.checkout-premium .checkout-topbar {
  min-height: 42px;
  border-bottom: 1px solid rgba(244, 214, 159, 0.16);
  background: #15120f;
  color: #f7ead6;
  font-size: 14px;
}

body.checkout-premium .checkout-topbar a,
body.checkout-premium .checkout-topbar svg {
  color: #d6a34f;
}

body.checkout-premium .checkout-header {
  padding: 22px 42px;
  border-bottom: 1px solid #e5dbce;
  background: rgba(255, 252, 247, 0.96);
  backdrop-filter: blur(14px);
}

body.checkout-premium .checkout-header .brand {
  color: #b8843c;
  text-shadow: 0 1px 0 #fff0d6, 0 2px 0 rgba(81, 48, 16, 0.18);
}

body.checkout-premium .checkout-shell {
  width: min(1380px, calc(100% - 56px));
  padding: 34px 0 78px;
}

body.checkout-premium .checkout-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

body.checkout-premium .checkout-title h1 {
  margin: 0;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1;
  letter-spacing: 0;
}

body.checkout-premium .checkout-title > span {
  color: #b8843c;
}

.checkout-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #8c8278;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.checkout-progress span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #8c8278;
  font-size: 12px;
  text-transform: uppercase;
}

.checkout-progress span + span::before {
  content: "";
  width: 26px;
  height: 1px;
  background: #d6cabb;
}

.checkout-progress span.active {
  color: #15120f;
}

body.checkout-premium .checkout-grid {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
  gap: 26px;
  align-items: start;
}

body.checkout-premium .panel {
  border-color: #e5dbce;
  border-radius: 8px;
  background: #fffdf9;
  box-shadow: 0 22px 54px rgba(32, 25, 17, 0.08);
}

.checkout-form-card {
  gap: 0;
  overflow: hidden;
  padding: 0;
}

.checkout-form-section {
  display: grid;
  gap: 18px;
  padding: 28px 30px;
  border-bottom: 1px solid #ece3d8;
}

.checkout-section-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.checkout-section-head > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 1px solid #d9bf8d;
  border-radius: 999px;
  background: #211a12;
  color: #f0c979;
  font-size: 12px;
  font-weight: 900;
}

.checkout-section-head h2 {
  margin: 0 0 5px;
  font-size: 23px;
  line-height: 1.2;
}

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

body.checkout-premium .form-card label {
  color: #2d261e;
}

body.checkout-premium .form-card input {
  min-height: 52px;
  border-color: #d8cec3;
  border-radius: 7px;
  background: #fff;
  color: #17130f;
}

body.checkout-premium .form-card input:focus {
  border-color: #b8843c;
  box-shadow: 0 0 0 3px rgba(184, 132, 60, 0.13);
  outline: 0;
}

.checkout-delivery-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid #e2d7c9;
  border-radius: 8px;
  background: #fbf7f0;
}

.checkout-delivery-option svg {
  width: 22px;
  height: 22px;
  color: #b8843c;
}

.checkout-delivery-option strong,
.checkout-delivery-option small {
  display: block;
}

.checkout-delivery-option small {
  margin-top: 3px;
  color: #776c61;
}

.checkout-delivery-option > span {
  color: #15120f;
  font-weight: 900;
}

.checkout-pay-btn {
  min-height: 54px;
  margin: 24px 30px 0;
  border-radius: 7px;
  background: #111;
  letter-spacing: 0;
}

.checkout-pay-btn:hover {
  background: #2a2118;
}

.checkout-secure-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 13px 30px 28px;
  color: #756a60;
  font-size: 13px;
  line-height: 1.55;
}

.checkout-secure-note svg {
  width: 17px;
  height: 17px;
  color: #b8843c;
}

.checkout-summary-card {
  position: sticky;
  top: 24px;
  padding: 24px;
}

.checkout-summary-head {
  align-items: center;
}

.checkout-summary-head span {
  display: block;
  margin-bottom: 5px;
  color: #b8843c;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.checkout-summary-head svg {
  width: 28px;
  height: 28px;
  color: #b8843c;
}

.checkout-summary-items {
  display: grid;
  gap: 14px;
}

.checkout-summary-item {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid #ece3d8;
}

.checkout-summary-thumb {
  position: relative;
  width: 74px;
  height: 92px;
  overflow: hidden;
  border: 1px solid #e8ded2;
  border-radius: 8px;
  background-color: #f5efe6;
  background-image: url("../img/product-collage.png");
  background-size: 205% 205%;
}

.checkout-summary-thumb.slot-1 {
  background-position: left top;
}

.checkout-summary-thumb.slot-2 {
  background-position: right top;
}

.checkout-summary-thumb.slot-3 {
  background-position: left bottom;
}

.checkout-summary-thumb.slot-4 {
  background-position: right bottom;
}

.checkout-summary-thumb img,
.checkout-summary-thumb picture,
.checkout-summary-thumb .product-fallback {
  width: 100%;
  height: 100%;
}

.checkout-summary-thumb img {
  object-fit: cover;
}

.checkout-summary-thumb > span {
  position: absolute;
  top: 6px;
  right: 6px;
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: #15120f;
  color: #f3c96f;
  font-size: 12px;
  font-weight: 900;
}

.checkout-summary-copy strong,
.checkout-summary-copy small {
  display: block;
}

.checkout-summary-copy strong {
  line-height: 1.35;
}

.checkout-summary-copy small {
  margin-top: 6px;
  color: #7d7167;
  line-height: 1.45;
}

.checkout-summary-price {
  white-space: nowrap;
}

.checkout-discount {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin: 18px 0;
}

.checkout-discount input {
  min-width: 0;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid #d8cec3;
  border-radius: 7px;
}

.checkout-discount button {
  min-height: 46px;
  padding: 0 16px;
  border: 0;
  border-radius: 7px;
  background: #2a2118;
  color: #f8e9d0;
  cursor: pointer;
  font-weight: 900;
}

.summary-totals {
  display: grid;
  gap: 10px;
  padding: 4px 0 16px;
  border-bottom: 1px solid #ece3d8;
}

.summary-total-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #655b52;
  font-size: 14px;
}

.summary-total-row strong {
  color: #15120f;
}

body.checkout-premium .order-total {
  align-items: baseline;
  padding: 17px 0;
  border-bottom: 1px solid #ece3d8;
}

body.checkout-premium .order-total span {
  color: #15120f;
  font-weight: 900;
}

body.checkout-premium .order-total strong {
  font-size: 30px;
}

.checkout-trust-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  color: #6f645b;
  font-size: 13px;
  font-weight: 750;
}

.checkout-trust-list span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.checkout-trust-list svg {
  width: 16px;
  height: 16px;
  color: #b8843c;
}

@media (max-width: 860px) {
  body.checkout-premium .checkout-shell {
    width: min(100% - 28px, 1380px);
    padding-top: 24px;
  }

  body.checkout-premium .checkout-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  body.checkout-premium .checkout-title h1 {
    font-size: 34px;
  }

  .checkout-progress {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
    gap: 5px;
    font-size: 10px;
    white-space: nowrap;
  }

  .checkout-progress span {
    gap: 5px;
    font-size: 10px;
  }

  .checkout-progress span + span::before {
    width: 10px;
  }

  body.checkout-premium .checkout-grid,
  .checkout-field-grid.two {
    grid-template-columns: 1fr;
  }

  .checkout-form-section {
    padding: 22px 18px;
  }

  .checkout-pay-btn {
    margin: 20px 18px 0;
  }

  .checkout-secure-note {
    margin: 12px 18px 22px;
  }

  .checkout-summary-card {
    position: static;
    padding: 20px;
  }

  .checkout-summary-item {
    grid-template-columns: 62px minmax(0, 1fr);
  }

  .checkout-summary-thumb {
    width: 62px;
    height: 78px;
  }

  .checkout-summary-price {
    grid-column: 2;
    justify-self: start;
  }
}

.result-box.success {
  background: #f2fff0;
  color: #265c24;
}

.result-box.error {
  background: #fff2f2;
  color: #9d2626;
}

.checkout-success-page {
  background: #f4f4f4;
}

.checkout-success-page .page-shell {
  width: min(640px, calc(100% - 24px));
  padding: 24px 0 72px;
}

.payment-success-card {
  position: relative;
  padding: 34px 26px 40px;
  border: 1px solid #ececec;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 4px 18px rgba(17, 17, 17, 0.04);
}

.success-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  margin: 0 auto 36px;
  border: 7px solid #58c51f;
  border-radius: 50%;
  color: #58c51f;
}

.success-check svg {
  width: 58px;
  height: 58px;
  stroke-width: 3.2;
}

.payment-success-card > h1 {
  margin: 0 0 54px;
  color: #222;
  font-size: 34px;
  line-height: 1.22;
  text-align: center;
}

.success-block + .success-block {
  margin-top: 46px;
}

.success-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding-left: 14px;
  border-left: 5px solid #ff5b1f;
}

.success-section-title h2 {
  margin: 0;
  color: #151515;
  font-size: 25px;
  line-height: 1.2;
}

.success-section-title a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 4px;
  background: #ff5b1f;
  color: #fff;
  font-weight: 850;
}

.success-details {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 18px 14px;
  background: #f6f7f7;
}

.success-details div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
}

.success-details dt,
.success-details dd {
  margin: 0;
  color: #161616;
  font-size: 19px;
  line-height: 1.32;
}

.success-details dd {
  font-weight: 850;
  text-align: right;
}

.success-details .highlight {
  color: #ff5b1f;
}

.success-address-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-bottom: 1px solid #e1e1e1;
}

.success-address {
  min-width: 0;
}

.success-address + .success-address {
  padding-left: 30px;
}

.success-address h3 {
  margin: 0;
  padding: 0 0 16px;
  border-bottom: 1px solid #e1e1e1;
  color: #141414;
  font-size: 20px;
}

.success-address p {
  margin: 8px 0;
  color: #151515;
  font-size: 18px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.success-float-contact {
  position: absolute;
  right: 20px;
  bottom: 176px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: #20a9ea;
  color: #fff;
  box-shadow: 0 10px 24px rgba(32, 169, 234, 0.36);
}

.success-float-contact svg {
  width: 36px;
  height: 36px;
  stroke-width: 2.2;
}

.mini-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.mini-product {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
}

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

.wishlist-thumb {
  position: relative;
  display: block;
  width: 112px;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
  background: #f7f1ea;
}

.wishlist-thumb img,
.wishlist-thumb .product-main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wishlist-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.wishlist-copy strong {
  overflow: hidden;
  color: #181512;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wishlist-copy strong a {
  color: inherit;
}

.wishlist-copy span {
  color: #b8843c;
  font-weight: 900;
}

.wishlist-copy small {
  color: #81776e;
}

.wishlist-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.wishlist-empty {
  grid-column: 1 / -1;
}

.admin-top {
  background: #171514;
  color: #fff;
}

.admin-top .brand {
  color: #d7a15c;
}

.admin-layout {
  grid-template-columns: 210px minmax(0, 1fr);
}

.admin-tab {
  display: none;
  min-width: 0;
}

.admin-tab.active {
  display: block;
}

.admin-inline-form {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.site-settings-form {
  display: grid;
  gap: 18px;
}

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

.settings-grid label {
  display: grid;
  gap: 7px;
  color: #443d37;
  font-size: 14px;
  font-weight: 800;
}

.settings-grid .wide {
  grid-column: 1 / -1;
}

.settings-grid textarea {
  min-height: 88px;
  resize: vertical;
}

.site-nav-link-settings {
  display: grid;
  gap: 16px;
  padding-top: 4px;
}

.nav-link-group {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fffaf5;
}

.nav-link-group h3 {
  margin: 0;
  font-size: 15px;
}

.page-create-form,
.page-settings-form {
  display: grid;
  gap: 16px;
}

.page-editor-grid,
.footer-link-settings {
  display: grid;
  gap: 12px;
}

.page-editor-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.page-editor-grid label,
.footer-link-row label {
  display: grid;
  gap: 7px;
  color: #443d37;
  font-size: 13px;
  font-weight: 850;
}

.page-editor-grid .wide {
  grid-column: 1 / -1;
}

.page-editor-grid textarea {
  min-height: 220px;
  resize: vertical;
}

.footer-link-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.4fr) minmax(260px, 1fr);
  gap: 12px;
}

.page-editor-grid input,
.page-editor-grid select,
.page-editor-grid textarea,
.footer-link-row input {
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid #ded4c9;
  border-radius: 8px;
  background: #fff;
  color: #1d1a17;
  font: inherit;
  outline: 0;
}

.page-editor-grid input:focus,
.page-editor-grid select:focus,
.page-editor-grid textarea:focus,
.footer-link-row input:focus {
  border-color: #c89b5c;
  box-shadow: 0 0 0 3px rgba(200, 155, 92, 0.14);
}

.page-link-bank {
  margin-top: 16px;
}

.page-link-list {
  display: grid;
  gap: 8px;
}

.page-link-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid #eee3d7;
  border-radius: 8px;
  background: #fffaf5;
}

.page-link-row strong,
.page-link-row small {
  display: block;
}

.page-link-row small {
  margin-top: 4px;
  color: #81776e;
  font-size: 12px;
}

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

.toggle-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fffaf5;
  font-weight: 800;
}

.toggle-grid input {
  width: 16px;
  height: 16px;
}

.admin-inline-form .wide-input {
  grid-column: span 5;
}

.admin-filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
}

.admin-filter-bar input {
  width: min(520px, 100%);
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  font: inherit;
}

.fund-grid {
  display: grid;
  min-width: 260px;
  gap: 8px;
}

.fund-grid label,
.upload-field {
  display: grid;
  gap: 5px;
  color: #756b62;
  font-size: 12px;
  font-weight: 800;
}

.upload-field {
  margin-top: 8px;
  padding: 8px;
  border: 1px dashed var(--line);
  border-radius: 5px;
  background: #fffaf5;
}

.upload-field input {
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 12px;
}

.wide-table table {
  min-width: 1320px;
}

.wide-table {
  max-width: 100%;
}

.admin-product-preview {
  position: relative;
  width: 86px;
  height: 104px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background-image: url("../img/product-collage.png");
  background-size: 205% 205%;
  background-color: #f4f0ea;
}

.card-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.sandbox-card-generator {
  display: grid;
  gap: 18px;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid #e2d7ca;
  border-radius: 8px;
  background: #fffaf5;
}

.sandbox-generator-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.sandbox-generator-head h3 {
  margin: 0 0 6px;
  font-size: 20px;
}

.sandbox-generator-head p {
  margin: 0;
  color: #776d64;
  font-size: 13px;
}

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

.sandbox-generator-grid label,
.sandbox-generator-messages label,
.sandbox-card-face-bottom label,
.sandbox-limit-grid label,
.sandbox-message-editor label {
  display: grid;
  gap: 6px;
  color: #51483f;
  font-size: 12px;
  font-weight: 850;
}

.sandbox-generator-messages {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sandbox-generator-grid input,
.sandbox-generator-grid select,
.coupon-generator-grid input,
.coupon-generator-grid select,
.sandbox-generator-messages textarea,
.sandbox-card-item input,
.sandbox-card-item select,
.sandbox-card-item textarea {
  width: 100%;
  min-height: 40px;
  padding: 9px 11px;
  border: 1px solid #ded7cf;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.sandbox-generator-messages textarea,
.sandbox-card-item textarea {
  min-height: 84px;
  resize: vertical;
}

.card-filter-bar {
  justify-content: space-between;
}

.card-filter-bar span {
  color: #766b61;
  font-size: 13px;
  font-weight: 800;
}

.sandbox-card-list {
  display: grid;
  gap: 16px;
}

.sandbox-card-item {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
  border: 1px solid #e3d9ce;
  border-radius: 8px;
  background: #fff;
}

.sandbox-card-face {
  display: grid;
  align-content: space-between;
  min-height: 198px;
  padding: 18px;
  border-radius: 10px;
  background: linear-gradient(135deg, #171514, #3b3129);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}

.sandbox-card-item.is-inactive .sandbox-card-face {
  background: linear-gradient(135deg, #4d4a46, #777067);
}

.sandbox-card-topline,
.sandbox-card-face-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sandbox-card-topline span {
  color: #e7c28b;
  font-weight: 900;
}

.sandbox-card-face code {
  font-family: Consolas, "Courier New", monospace;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0;
  white-space: normal;
}

.sandbox-card-face-bottom {
  align-items: end;
}

.sandbox-card-face-bottom label {
  min-width: 0;
  color: rgba(255,255,255,0.72);
}

.sandbox-card-face-bottom input {
  min-height: 36px;
  padding: 7px 8px;
  border-color: rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.sandbox-card-editor {
  display: grid;
  gap: 12px;
}

.sandbox-card-meta,
.sandbox-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sandbox-card-meta span {
  color: #766b61;
  font-weight: 900;
}

.sandbox-card-meta select {
  max-width: 120px;
}

.sandbox-limit-bar {
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: #eee6dc;
}

.sandbox-limit-bar div {
  height: 100%;
  border-radius: inherit;
  background: #f0642f;
}

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

.sandbox-message-editor {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fffaf5;
}

.sandbox-message-editor summary {
  cursor: pointer;
  font-weight: 900;
}

.sandbox-message-editor label {
  margin-top: 10px;
}

.sandbox-card-actions {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.clean-card-table-wrap {
  overflow-x: auto;
  border: 1px solid #e7e2dc;
  border-radius: 8px;
  background: #fff;
}

.clean-card-table {
  width: 100%;
  min-width: 1240px;
  border-collapse: collapse;
  font-size: 13px;
}

.clean-card-table th,
.clean-card-table td {
  padding: 14px 13px;
  border-bottom: 1px solid #eee9e4;
  color: #27313c;
  text-align: left;
  vertical-align: middle;
}

.clean-card-table th {
  background: #fbfaf8;
  color: #596475;
  font-size: 12px;
  font-weight: 900;
}

.clean-card-row:hover td {
  background: #fcfbfa;
}

.masked-value {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  font-family: Consolas, "Courier New", monospace;
  font-weight: 800;
  letter-spacing: 0;
}

.tiny-copy,
.icon-only-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: #4d7ee8;
  cursor: pointer;
}

.tiny-copy {
  width: 22px;
  height: 22px;
  margin-left: 4px;
}

.tiny-copy svg {
  width: 13px;
  height: 13px;
  stroke-width: 2.2;
}

.icon-only-btn {
  width: 30px;
  height: 30px;
  color: #243041;
}

.icon-only-btn svg {
  width: 18px;
  height: 18px;
}

.clean-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.clean-status.active {
  background: #edf3ff;
  color: #4777df;
}

.clean-status.inactive {
  background: #f4f1ed;
  color: #786c60;
}

.clean-card-editor-row td {
  padding: 0 13px 16px;
  background: #fbfaf8;
}

.clean-card-editor {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid #e5ded6;
  border-radius: 8px;
  background: #fff;
}

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

.clean-editor-messages {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.clean-card-editor label {
  display: grid;
  gap: 6px;
  color: #51483f;
  font-size: 12px;
  font-weight: 850;
}

.clean-card-editor input,
.clean-card-editor select,
.clean-card-editor textarea {
  width: 100%;
  min-height: 40px;
  padding: 9px 11px;
  border: 1px solid #ded7cf;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.clean-card-editor textarea {
  min-height: 82px;
  resize: vertical;
}

.clean-editor-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.invite-table-wrap table {
  min-width: 1120px;
}

.invite-table th,
.invite-table td {
  vertical-align: middle;
}

.invite-table small {
  display: block;
  margin-top: 3px;
  color: #7b7067;
  font-size: 12px;
}

.role-pill {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: #f3eee7;
  color: #5f5349;
  font-size: 12px;
  font-weight: 900;
}

.invite-code-editor {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 180px;
}

.invite-code-editor input {
  font-family: Consolas, "Courier New", monospace;
  font-weight: 800;
  text-transform: uppercase;
}

.invite-link {
  display: inline-block;
  max-width: 280px;
  overflow: hidden;
  color: #4a5d77;
  text-overflow: ellipsis;
  vertical-align: middle;
  white-space: nowrap;
}

.product-create-form textarea,
.card-create-form textarea {
  min-height: 76px;
}

.product-editor-form {
  display: grid;
  gap: 16px;
  padding: 18px;
  border-bottom: 1px solid #eee5dc;
  background: #fffaf5;
}

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

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

.product-editor-grid label,
.product-editor-section label {
  display: grid;
  gap: 7px;
  color: #4d443d;
  font-size: 12px;
  font-weight: 900;
}

.product-editor-grid .wide,
.product-editor-section label {
  grid-column: 1 / -1;
}

.product-editor-grid input,
.product-editor-grid select,
.product-editor-grid textarea,
.product-editor-section input,
.product-editor-section select,
.product-editor-section textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid #ddcfbf;
  border-radius: 6px;
  background: #fff;
  font: inherit;
  font-weight: 750;
}

.product-editor-grid textarea,
.product-editor-section textarea {
  min-height: 86px;
  resize: vertical;
}

.product-admin-editor {
  gap: 16px;
}

.product-admin-preview-stack {
  display: grid;
  gap: 10px;
}

.product-admin-preview-stack .secondary-btn {
  width: 100%;
  justify-content: center;
}

.product-editor-section {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #eee4d8;
  border-radius: 8px;
  background: #fffaf5;
}

.product-editor-section h3 {
  margin: 0;
  color: #211b15;
  font-size: 14px;
}

@media (max-width: 1180px) {
  .container {
    width: min(100% - 48px, var(--container));
  }

  .desktop-nav {
    gap: 22px;
    font-size: 14px;
  }

  .brand {
    min-width: 190px;
  }

  .product-grid,
  .promo-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .product-detail-gallery {
    position: static;
  }

  .product-detail-media {
    min-height: 560px;
  }

  .related-product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .service-grid,
  .brand-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 920px) {
  .topbar {
    display: none;
  }

  .header-inner {
    min-height: 70px;
    gap: 12px;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-icon {
    display: inline-flex;
  }

  .brand {
    min-width: 0;
    font-size: 34px;
  }

  .header-actions {
    min-width: 0;
    gap: 12px;
  }

  .header-actions .icon-button:nth-child(2),
  .header-actions .icon-button:nth-child(3) {
    display: none;
  }

  .hero,
  .hero-content {
    min-height: 610px;
  }

  .hero-content {
    padding-top: 132px;
  }

  .hero-caption {
    left: 24px;
    right: 24px;
    bottom: 62px;
  }

  .promo-grid,
  .product-grid,
  .news-grid,
  .related-product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-purchase-row,
  .product-service-strip {
    grid-template-columns: 1fr;
  }

  .wide-banner,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .wide-copy {
    max-width: none;
    padding: 48px 24px 58px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .site-header {
    position: sticky;
  }

  .header-inner {
    min-height: 64px;
  }

  .brand {
    font-size: 28px;
  }

  .header-actions {
    gap: 8px;
  }

  .icon-button,
  .mobile-icon {
    width: 26px;
    height: 26px;
  }

  .hero,
  .hero-content {
    min-height: 570px;
  }

  .hero-bg {
    background-position: 62% center;
  }

  .hero-content {
    padding-top: 92px;
  }

  .eyebrow {
    font-size: 22px;
  }

  .hero h1 {
    max-width: 360px;
    font-size: 42px;
  }

  .hero-copy {
    max-width: 360px;
    margin: 18px 0 28px;
    font-size: 16px;
  }

  .hero-button {
    min-width: 142px;
    height: 48px;
  }

  .hero-caption {
    display: none;
  }

  .hero-dots button {
    width: 38px;
  }

  .ticker {
    font-size: 18px;
  }

  .section {
    padding: 54px 0;
  }

  .section-head p {
    font-size: 16px;
  }

  .promo-grid,
  .product-grid,
  .news-grid,
  .service-grid,
  .brand-grid {
    grid-template-columns: 1fr;
  }

  .promo-card {
    min-height: 260px;
  }

  .product-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .tab {
    flex: 0 0 auto;
  }

  .product-media {
    height: 430px;
  }

  .product-actions {
    opacity: 1;
    transform: none;
  }

  .product-detail-shell {
    padding-top: 22px;
  }

  .product-detail-grid {
    gap: 22px;
    padding: 14px;
  }

  .product-detail-media {
    min-height: 420px;
  }

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

  .product-detail-facts div {
    border-right: 0;
    border-bottom: 1px solid #eadfd2;
  }

  .product-detail-facts div:last-child {
    border-bottom: 0;
  }

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

  .related-product-thumb {
    min-height: 390px;
  }

  .brand-grid span {
    min-height: 72px;
  }

  .footer-bottom .container {
    flex-direction: column;
  }

  .content-page-card {
    padding: 28px 22px;
  }

  .content-page-card h1 {
    font-size: 28px;
  }

  .float-chat {
    right: 16px;
    bottom: 22px;
    width: 52px;
    height: 52px;
  }
}

@media (max-width: 860px) {
  .page-header,
  .admin-top {
    padding: 16px;
    align-items: flex-start;
    flex-direction: column;
  }

  .checkout-topbar {
    min-height: 50px;
    padding: 0 18px;
    font-size: 18px;
  }

  .checkout-topbar > div {
    gap: 24px;
  }

  .checkout-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 14px 18px;
  }

  .checkout-header .brand {
    font-size: 30px;
  }

  .checkout-header-actions,
  .checkout-header nav {
    gap: 16px;
  }

  .page-shell,
  .admin-shell {
    width: min(100% - 28px, 1320px);
    padding-top: 28px;
  }

  .auth-grid,
  .checkout-grid,
  .payment-split,
  .clean-editor-grid,
  .clean-editor-messages,
  .sandbox-generator-grid,
  .sandbox-generator-messages,
  .account-layout,
  .member-layout,
  .admin-layout,
  .two-col-form,
  .withdraw-action-panel,
  .commission-metrics,
  .member-info-grid,
  .metric-grid,
  .mini-product-grid {
    grid-template-columns: 1fr;
  }

  .ecommerce-auth {
    gap: 28px;
    width: min(100%, 520px);
  }

  .auth-page-heading {
    margin-bottom: 18px;
  }

  .auth-column-divider {
    display: none;
  }

  .auth-form-card h2 {
    margin-bottom: 22px;
  }

  .account-menu,
  .admin-menu {
    position: static;
  }

  .account-shell {
    width: min(100% - 28px, 1380px);
    padding-top: 28px;
  }

  .member-sidebar {
    border-bottom: 1px solid #eeeeee;
    padding-bottom: 18px;
  }

  .member-profile {
    padding-top: 8px;
  }

  .member-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .member-nav button {
    text-align: center;
  }

  .member-view {
    min-height: 380px;
  }

  .admin-menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-menu button {
    justify-content: center;
  }

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

  .sandbox-generator-head,
  .clean-editor-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .settings-grid,
  .toggle-grid {
    grid-template-columns: 1fr;
  }

  .admin-inline-form .wide-input {
    grid-column: auto;
  }

  .cart-summary,
  .cart-summary > div {
    align-items: stretch;
    flex-direction: column;
  }

  .search-line {
    grid-template-columns: 1fr;
  }

  .checkout-success-page .page-shell {
    width: min(100% - 20px, 640px);
    padding-top: 24px;
  }

  .payment-success-card {
    padding: 28px 16px 38px;
  }

  .success-check {
    width: 90px;
    height: 90px;
    margin-bottom: 34px;
  }

  .payment-success-card > h1 {
    margin-bottom: 50px;
    font-size: 31px;
  }

  .success-section-title h2 {
    font-size: 24px;
  }

  .success-details dt,
  .success-details dd,
  .success-address p {
    font-size: 17px;
  }

  .success-address h3 {
    font-size: 18px;
  }

  .success-address + .success-address {
    padding-left: 18px;
  }

  .success-float-contact {
    right: 18px;
    bottom: 168px;
    width: 74px;
    height: 74px;
  }

  .withdraw-modal {
    align-items: flex-start;
    padding: 96px 16px 24px;
  }

  .withdraw-modal-head {
    padding: 20px 22px;
  }

  .withdraw-modal-head h2 {
    font-size: 22px;
  }

  .withdraw-modal-summary {
    grid-template-columns: 1fr;
  }

  #withdraw-modal-form {
    padding: 22px;
  }

  #withdraw-modal-form input {
    min-height: 50px;
  }

  .withdraw-modal-actions {
    margin: 4px -22px -22px;
    padding: 18px 22px;
  }
}

/* Admin v2 final overrides */
body.admin-v2 .admin-shell {
  width: 100%;
  margin: 0;
  padding: 0;
}

body.admin-v2 .admin-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  min-height: 100vh;
  gap: 0;
  background: #f6f2ec;
}

body.admin-v2 .admin-content {
  display: block;
  min-width: 0;
  padding: 24px;
}

body.admin-v2 .admin-tab {
  display: none;
}

body.admin-v2 .admin-tab.active {
  display: block;
}

body.admin-v2 .admin-inline-form .wide-input {
  grid-column: span 4;
}

body.admin-v2 .admin-filter-bar input {
  width: 100%;
  min-height: 42px;
  border-radius: 8px;
}

body.admin-v2 .admin-product-preview {
  width: 72px;
  height: 88px;
  border-radius: 8px;
}

body.admin-v2 .admin-product-preview.large {
  width: 100%;
  height: 190px;
}

body.admin-v2 .admin-data-table {
  min-width: 900px;
}

body.admin-v2 .admin-card {
  border-radius: 8px;
}

body.admin-v2 .admin-sidebar {
  overflow-x: hidden;
}

body.admin-v2 .is-hidden {
  display: none !important;
}

body.admin-v2 .admin-subroute-panel {
  margin: 0 0 18px;
}

body.admin-v2 .subroute-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 18px;
}

body.admin-v2 .subroute-head span {
  display: block;
  margin-bottom: 6px;
  color: #b8843c;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

body.admin-v2 .subroute-head h2 {
  margin: 0 0 6px;
  font-size: 22px;
  line-height: 1.2;
}

body.admin-v2 .subroute-head p {
  max-width: 720px;
  margin: 0;
  color: #766d61;
  line-height: 1.7;
}

body.admin-v2 .subroute-summary-grid,
body.admin-v2 .subroute-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

body.admin-v2 .subroute-mini-card {
  min-height: 116px;
  padding: 16px;
  border: 1px solid #eadfce;
  border-radius: 8px;
  background: #fffaf4;
}

body.admin-v2 .subroute-mini-card span {
  display: block;
  margin-bottom: 10px;
  color: #8a7b68;
  font-size: 12px;
  font-weight: 800;
}

body.admin-v2 .subroute-mini-card strong {
  display: block;
  margin-bottom: 8px;
  color: #15120f;
  font-size: 20px;
}

body.admin-v2 .subroute-mini-card small {
  display: block;
  color: #766d61;
  line-height: 1.6;
}

body.admin-v2 .featured-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

body.admin-v2 .featured-slot {
  display: grid;
  grid-template-columns: 34px 72px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid #eadfce;
  border-radius: 8px;
  background: #fffaf4;
}

body.admin-v2 .slot-index {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #2d251c;
  color: #f4c56f;
  font-size: 12px;
  font-weight: 900;
}

body.admin-v2 .featured-slot strong,
body.admin-v2 .featured-slot small {
  display: block;
}

body.admin-v2 .featured-slot small {
  margin-top: 5px;
  color: #766d61;
  line-height: 1.5;
}

body.admin-v2 .permission-grid.rich {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.admin-v2 .agent-layout {
  background: #f6f2ec;
}

body.admin-v2 .agent-sidebar-card {
  margin: 22px 18px;
  padding: 16px;
  border: 1px solid rgba(244, 197, 111, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #f7efe3;
}

body.admin-v2 .agent-sidebar-card span,
body.admin-v2 .agent-sidebar-card small {
  display: block;
  color: rgba(247, 239, 227, 0.68);
  font-size: 12px;
  line-height: 1.6;
}

body.admin-v2 .agent-sidebar-card strong {
  display: block;
  margin: 8px 0;
  color: #f4c56f;
  font-size: 24px;
  letter-spacing: 0;
}

body.admin-v2 .agent-hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
  background: linear-gradient(135deg, #15120f 0%, #322719 100%);
  color: #fff7ea;
}

body.admin-v2 .agent-hero span {
  display: block;
  margin-bottom: 8px;
  color: #f4c56f;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

body.admin-v2 .agent-hero h1 {
  margin: 0 0 8px;
  font-size: 30px;
}

body.admin-v2 .agent-hero p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 247, 234, 0.72);
  line-height: 1.7;
}

body.admin-v2 .agent-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) 340px;
  gap: 18px;
  align-items: start;
}

body.admin-v2 .agent-user-card {
  grid-column: 1;
}

body.admin-v2 .agent-order-card {
  grid-column: 1;
}

body.admin-v2 .agent-profile-card {
  grid-column: 2;
  grid-row: 1 / span 3;
  position: sticky;
  top: 24px;
}

body.admin-v2 .agent-invite-box {
  display: grid;
  gap: 12px;
}

body.admin-v2 .agent-code-box,
body.admin-v2 .agent-link-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 14px;
  border: 1px solid #eadfce;
  border-radius: 8px;
  background: #fffaf4;
}

body.admin-v2 .agent-code-box span,
body.admin-v2 .agent-link-box span {
  grid-column: 1 / -1;
  color: #8a7b68;
  font-size: 12px;
  font-weight: 850;
}

body.admin-v2 .agent-code-box strong {
  color: #15120f;
  font-size: 28px;
}

body.admin-v2 .agent-link-box code {
  min-width: 0;
  overflow: hidden;
  color: #3c3328;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.admin-v2 .agent-data-table {
  min-width: 760px;
}

body.admin-v2 .agent-order-table {
  min-width: 860px;
}

body.admin-v2.admin-drawer-open {
  overflow: hidden;
}

body.admin-v2 .admin-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  justify-content: flex-end;
  background: rgba(20, 16, 12, 0.38);
  backdrop-filter: blur(2px);
}

body.admin-v2 .admin-drawer-backdrop.hidden {
  display: none;
}

body.admin-v2 .admin-drawer-panel {
  display: flex;
  flex-direction: column;
  width: min(560px, 100vw);
  height: 100vh;
  border-left: 1px solid #eadfce;
  background: #fffaf4;
  box-shadow: -30px 0 70px rgba(27, 20, 12, 0.24);
}

body.admin-v2 .drawer-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  border-bottom: 1px solid #eadfce;
  background: #15120f;
  color: #fff7ea;
}

body.admin-v2 .drawer-head span {
  display: block;
  margin-bottom: 6px;
  color: #f4c56f;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

body.admin-v2 .drawer-head h2 {
  margin: 0 0 6px;
  font-size: 24px;
}

body.admin-v2 .drawer-head p {
  margin: 0;
  color: rgba(255, 247, 234, 0.72);
  line-height: 1.6;
}

body.admin-v2 .admin-drawer-form {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 18px;
  min-height: 0;
  overflow: auto;
  padding: 22px 24px 100px;
}

body.admin-v2 .drawer-role-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

body.admin-v2 .drawer-role-grid legend {
  grid-column: 1 / -1;
  margin-bottom: 2px;
  color: #6f6253;
  font-size: 12px;
  font-weight: 900;
}

body.admin-v2 .drawer-role-grid label {
  display: block;
  cursor: pointer;
}

body.admin-v2 .drawer-role-grid input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

body.admin-v2 .drawer-role-grid span {
  display: block;
  min-height: 82px;
  padding: 13px;
  border: 1px solid #eadfce;
  border-radius: 8px;
  background: #fff;
}

body.admin-v2 .drawer-role-grid input:checked + span {
  border-color: #c89445;
  background: #2c2419;
  color: #f7efe3;
}

body.admin-v2 .drawer-role-grid strong,
body.admin-v2 .drawer-role-grid small {
  display: block;
}

body.admin-v2 .drawer-role-grid small {
  margin-top: 8px;
  color: #8a7b68;
  line-height: 1.4;
}

body.admin-v2 .drawer-role-grid input:checked + span small {
  color: rgba(247, 239, 227, 0.7);
}

body.admin-v2 .drawer-role-note {
  padding: 12px 14px;
  border: 1px solid #eadfce;
  border-radius: 8px;
  background: #fff;
  color: #6f6253;
  line-height: 1.6;
}

body.admin-v2 .drawer-role-note[data-role="agent"] {
  border-color: rgba(200, 148, 69, 0.45);
  background: #fff4df;
  color: #5f4520;
}

body.admin-v2 .drawer-role-note[data-role="admin"] {
  border-color: rgba(210, 82, 82, 0.28);
  background: #fff1ef;
  color: #7a302b;
}

body.admin-v2 .drawer-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

body.admin-v2 .drawer-field-grid label {
  display: grid;
  gap: 7px;
  color: #4b4035;
  font-size: 13px;
  font-weight: 850;
}

body.admin-v2 .drawer-field-grid .wide {
  grid-column: 1 / -1;
}

body.admin-v2 .drawer-field-grid input,
body.admin-v2 .drawer-field-grid textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid #ddcfbd;
  border-radius: 8px;
  background: #fff;
  color: #15120f;
  font: inherit;
  font-weight: 700;
  padding: 10px 12px;
}

body.admin-v2 .drawer-field-grid textarea {
  min-height: 92px;
  resize: vertical;
}

body.admin-v2 .drawer-input-with-action > span {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

body.admin-v2 .drawer-advanced {
  border: 1px solid #eadfce;
  border-radius: 8px;
  background: #fff;
}

body.admin-v2 .drawer-advanced summary {
  cursor: pointer;
  padding: 14px;
  color: #2c2419;
  font-weight: 900;
}

body.admin-v2 .drawer-advanced .drawer-field-grid {
  padding: 0 14px 14px;
}

body.admin-v2 .drawer-actions {
  position: fixed;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  width: min(560px, 100vw);
  padding: 16px 24px;
  border-top: 1px solid #eadfce;
  background: rgba(255, 250, 244, 0.94);
  box-shadow: 0 -18px 34px rgba(43, 34, 22, 0.08);
}

@media (max-width: 860px) {
  body.admin-v2 .admin-layout {
    grid-template-columns: 1fr;
  }

  body.admin-v2 .admin-content {
    padding: 16px;
  }

  body.admin-v2 .subroute-summary-grid,
  body.admin-v2 .subroute-card-grid,
  body.admin-v2 .featured-board {
    grid-template-columns: 1fr;
  }

  body.admin-v2 .featured-slot {
    grid-template-columns: 30px 64px minmax(0, 1fr);
  }

  body.admin-v2 .featured-slot button {
    grid-column: 3;
    justify-self: start;
  }

  body.admin-v2 .agent-hero,
  body.admin-v2 .agent-main-grid,
  body.admin-v2 .agent-code-box,
  body.admin-v2 .agent-link-box {
    grid-template-columns: 1fr;
  }

  body.admin-v2 .agent-hero {
    display: grid;
  }

  body.admin-v2 .agent-profile-card,
  body.admin-v2 .agent-user-card {
    grid-column: auto;
    grid-row: auto;
    position: static;
  }

  body.admin-v2 .drawer-role-grid,
  body.admin-v2 .drawer-field-grid {
    grid-template-columns: 1fr;
  }

  body.admin-v2 .drawer-actions {
    justify-content: stretch;
  }

  body.admin-v2 .drawer-actions button {
    flex: 1;
  }
}

/* Checkout Concept C final overrides */
body.checkout-concept-c .checkout-header {
  display: flex;
  justify-content: space-between;
  min-height: 74px;
  padding: 0 48px;
  border-bottom: 1px solid rgba(214, 163, 79, 0.34);
  background: #11100f;
}

body.checkout-concept-c .checkout-header .brand {
  justify-self: auto;
  color: #c79645;
  font-size: 34px;
}

body.checkout-concept-c .checkout-secure-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #d8ab5c;
  font-size: 13px;
  font-weight: 850;
}

body.checkout-concept-c .checkout-shell {
  width: min(1110px, calc(100% - 48px));
  padding: 30px 0 52px;
}

body.checkout-concept-c .checkout-title {
  display: block;
  margin-bottom: 16px;
}

body.checkout-concept-c .checkout-title h1 {
  margin: 0 0 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 31px;
  line-height: 1.05;
}

body.checkout-concept-c .checkout-title p {
  margin: 0;
  color: #75685b;
  font-size: 13px;
}

body.checkout-concept-c .checkout-grid {
  grid-template-columns: minmax(0, 1fr) 342px;
  gap: 20px;
  align-items: start;
}

body.checkout-concept-c .checkout-form-section {
  gap: 10px;
  padding: 15px 18px 17px;
  border-bottom: 1px solid #eadcca;
}

body.checkout-concept-c .checkout-section-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 4px;
}

body.checkout-concept-c .checkout-section-head h2 {
  margin: 0;
  font-size: 15px;
}

body.checkout-concept-c .checkout-section-head svg {
  width: 16px;
  height: 16px;
  color: #b8843c;
}

body.checkout-concept-c .form-card input,
body.checkout-concept-c .form-card select,
body.checkout-concept-c .form-card .payment-input-wrap input {
  min-height: 33px;
  padding: 7px 10px;
  border: 1px solid #dfd2c4;
  border-radius: 3px;
  font-size: 12px;
}

body.checkout-concept-c .checkout-summary-card {
  position: sticky;
  top: 18px;
  padding: 18px;
  border: 1px solid #bd8838;
  border-radius: 3px;
  background: rgba(255, 251, 244, 0.95);
}

body.checkout-concept-c .checkout-summary-head h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
}

body.checkout-concept-c .checkout-summary-item {
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 12px;
}

body.checkout-concept-c .checkout-summary-thumb {
  width: 92px;
  height: 122px;
  border-radius: 3px;
}

body.checkout-concept-c .checkout-pay-btn {
  min-height: 42px;
  margin: 13px 18px 0;
  border-radius: 3px;
  color: #d8ab5c;
}

body.checkout-concept-c .checkout-concept-seal {
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 22px 12px 8px;
  text-align: center;
}

body.checkout-concept-c .seal-mark {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  margin-top: 18px;
  border: 2px solid #d6a34f;
  border-radius: 50%;
  color: #b8843c;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 48px;
  font-weight: 800;
}

body.checkout-concept-c .checkout-concept-seal b {
  color: #b8843c;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
}

body.checkout-concept-c .form-card input[type="radio"],
body.checkout-concept-c .form-card input[type="checkbox"] {
  appearance: none;
  flex: 0 0 14px;
  width: 14px;
  min-width: 14px;
  height: 14px;
  min-height: 14px;
  margin: 0;
  padding: 0;
  border: 1px solid #cda764;
  background: #fffdf9;
  box-shadow: inset 0 0 0 2px #fffdf9;
  cursor: pointer;
}

body.checkout-concept-c .form-card input[type="radio"] {
  border-radius: 50%;
}

body.checkout-concept-c .form-card input[type="checkbox"] {
  border-radius: 2px;
}

body.checkout-concept-c .form-card input[type="radio"]:checked {
  border-color: #b8843c;
  background: radial-gradient(circle at center, #b8843c 0 42%, transparent 46%);
}

body.checkout-concept-c .form-card input[type="checkbox"]:checked {
  border-color: #b8843c;
  background: #b8843c url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.4 6.1 4.8 8.5 9.6 3.4' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px 11px no-repeat;
  box-shadow: none;
}

body.checkout-concept-c .form-card input[type="radio"]:focus,
body.checkout-concept-c .form-card input[type="checkbox"]:focus {
  border-color: #b8843c;
  box-shadow: inset 0 0 0 2px #fffdf9, 0 0 0 2px rgba(184, 132, 60, 0.18);
  outline: 0;
}

body.checkout-concept-c .form-card input[type="checkbox"]:checked:focus {
  box-shadow: 0 0 0 2px rgba(184, 132, 60, 0.18);
}

@media (max-width: 860px) {
  body.checkout-concept-c .checkout-header {
    min-height: 64px;
    padding: 0 18px;
  }

  body.checkout-concept-c .checkout-shell {
    width: min(100% - 28px, 1110px);
  }

  body.checkout-concept-c .checkout-grid,
  body.checkout-concept-c .checkout-field-grid.three {
    grid-template-columns: 1fr;
  }

  body.checkout-concept-c .checkout-summary-card {
    position: static;
  }
}
