/* ORDERS PAGE */
body.page-orders {
  background: #f8fafc;
}

body.page-orders .orders-page-shell {
  max-width: 1260px;
  margin: 0 auto;
  padding: 32px 24px 48px;
}

body.page-orders .orders-page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

body.page-orders .orders-page-header .page-header p {
  margin: 0.55rem 0 0;
  color: #607089;
  max-width: 38rem;
}

body.page-orders .orders-page-header h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.15;
}

body.page-orders .orders-subtitle {
  color: #6b7280;
  font-size: 0.9rem;
  margin: 0.6rem 0 0;
}

body.page-orders .orders-page-status {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  min-height: 18px;
  text-align: right;
}

body.page-orders .orders-page-empty {
  margin-top: 14px;
  border: 1px dashed #c9d8e8;
  border-radius: 16px;
  background: #f9fcff;
  padding: 24px 16px;
  text-align: center;
}

body.page-orders .orders-page-empty h2 {
  margin: 0;
  font-size: 22px;
}

body.page-orders .orders-page-empty p {
  margin: 8px 0 0;
  color: var(--text-muted);
}

body.page-orders .orders-page-empty .btn-primary {
  margin-top: 12px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.page-orders .orders-page-empty,
body.page-orders .orders-filter-empty,
body.page-favorites .favorites-page-empty,
body.page-product-detail .product-detail-reviews-empty,
body.page-seller-storefront .storefront-empty,
body.page-seller-storefront .storefront-message {
  border: 1px solid #dde7ef;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(252, 253, 253, 0.98), rgba(245, 248, 251, 0.98));
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
}

body.page-favorites .favorites-page-feedback:not(:empty),
body.page-product-detail .product-detail-feedback:not(:empty) {
  display: block;
  padding: 10px 12px;
  border: 1px solid #dde7ef;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(252, 253, 253, 0.98), rgba(245, 248, 251, 0.98));
  box-shadow: 0 1px 6px rgba(15, 23, 42, 0.04);
  line-height: 1.5;
}

body.page-orders .orders-layout {
  --orders-card-columns: minmax(0, 2.55fr) minmax(140px, 1.2fr) minmax(110px, 0.95fr)
    minmax(110px, 0.9fr) minmax(168px, 1.25fr);
  --orders-card-gap: 0.9rem;
  --orders-card-padding-x: 1.05rem;
  width: 100%;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

body.page-orders .orders-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.4rem;
  margin-bottom: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #f8fafc;
}

body.page-orders .orders-toolbar-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

body.page-orders .orders-toolbar-eyebrow {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6d7e92;
}

body.page-orders .orders-toolbar-summary {
  margin: 0;
  font-size: 0.92rem;
  color: #475569;
}

body.page-orders .orders-toolbar-controls {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.65rem;
}

body.page-orders .orders-filter-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

body.page-orders .orders-toolbar-secondary {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.65rem;
  width: 100%;
}

body.page-orders .orders-utility-group {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.65rem;
}

body.page-orders .orders-filter-chip {
  min-height: 36px;
  padding: 0 0.85rem;
  border: 1px solid #dbe6f1;
  border-radius: 999px;
  background: #f8fbfd;
  color: #425466;
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  transition:
    transform 0.12s ease,
    border-color 0.12s ease,
    background-color 0.12s ease,
    box-shadow 0.12s ease,
    color 0.12s ease;
}

body.page-orders .orders-filter-chip:hover {
  transform: translateY(-1px);
  border-color: #c6d7e8;
  background: #ffffff;
}

body.page-orders .orders-filter-chip.is-active,
body.page-orders .orders-filter-chip[aria-pressed="true"] {
  border-color: #9dc9ab;
  background: #edf8f1;
  color: #14532d;
  box-shadow: 0 10px 22px rgba(22, 163, 74, 0.12);
}

body.page-orders .orders-filter-chip:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

body.page-orders .orders-search-field {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.22rem;
  min-width: min(100%, 17.75rem);
}

body.page-orders .orders-field-label {
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.page-orders .orders-select-field {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  min-width: 138px;
}

body.page-orders .orders-search-label {
  white-space: nowrap;
}

body.page-orders .orders-search-input {
  min-width: 0;
  min-height: 39px;
  padding: 0 13px;
  border: 1px solid #d6e1ec;
  border-radius: 999px;
  background: #ffffff;
  color: #0f172a;
  font-size: 0.95rem;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.035);
}

body.page-orders .orders-select-input {
  width: 100%;
  min-height: 39px;
  padding: 0 13px;
  border: 1px solid #d6e1ec;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff, #f8fbfd);
  color: #0f172a;
  font-size: 0.93rem;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.028);
}

body.page-orders .orders-search-input::placeholder {
  color: #94a3b8;
}

body.page-orders .orders-search-input:disabled,
body.page-orders .orders-select-input:disabled {
  background: #f8fafc;
  color: #94a3b8;
}

body.page-orders .orders-header-row {
  display: grid;
  grid-template-columns: var(--orders-card-columns);
  gap: var(--orders-card-gap);
  padding: 0 var(--orders-card-padding-x) 0.8rem;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7b8794;
  border-bottom: none;
  background: transparent;
}

body.page-orders .orders-header-row > span:nth-child(2),
body.page-orders .orders-header-row > span:nth-child(3),
body.page-orders .orders-header-row > span:nth-child(4),
body.page-orders .order-card-header .orders-cell-date,
body.page-orders .order-card-header .orders-cell-status,
body.page-orders .order-card-header .orders-cell-total {
  justify-self: start;
}

body.page-orders .order-card-header .orders-cell-total {
  align-items: flex-start;
}

body.page-orders .orders-page-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

body.page-orders .orders-table-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

body.page-orders .orders-page-list .z-loading-state,
body.page-orders .orders-page-list .z-empty-state,
body.page-orders .orders-page-list .z-error-state {
  margin: 0.9rem;
  border: 1px solid #dde7ef;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(252, 253, 253, 0.98), rgba(245, 248, 251, 0.98));
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
}

body.page-orders .order-row {
  display: block;
  padding: 0;
  border: 1px solid #e1eaf3;
  border-bottom: none;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 10px 20px rgba(15, 23, 42, 0.04);
  font-size: 0.92rem;
  overflow: hidden;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

body.page-orders .order-row[hidden],
body.page-orders .orders-row-loading[hidden],
body.page-orders .orders-row-empty[hidden],
body.page-orders .orders-row-error[hidden] {
  display: none !important;
}

body.page-orders .order-row:hover {
  border-color: #c4d4e4;
  box-shadow:
    0 2px 4px rgba(15, 23, 42, 0.07),
    0 16px 32px rgba(15, 23, 42, 0.09);
}

body.page-orders .order-row:last-child {
  border-bottom: none;
}

body.page-orders .orders-row-loading,
body.page-orders .orders-row-empty,
body.page-orders .orders-row-error {
  padding: 1rem var(--orders-card-padding-x);
}

body.page-orders .order-row-details {
  grid-column: 1 / -1;
  margin-top: 0.25rem;
  padding-top: 0.7rem;
  border-top: 1px dashed #dfe8f2;
}

body.page-orders .order-row-meta {
  margin: 0;
  font-size: 0.82rem;
  color: #4b5563;
}

body.page-orders .order-row-meta + .order-row-meta {
  margin-top: 0.2rem;
  margin-bottom: 0.45rem;
}

body.page-orders .order-cell {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

body.page-orders .order-row-message {
  grid-column: 1 / -1;
  padding: 0;
}

body.page-orders .order-card-header {
  display: grid;
  grid-template-columns: var(--orders-card-columns);
  gap: var(--orders-card-gap);
  align-items: center;
  padding: 0.9rem var(--orders-card-padding-x) 0.82rem;
}

body.page-orders .order-card-header-cell {
  min-width: 0;
  justify-content: flex-start;
}

body.page-orders .order-card-header-order {
  justify-content: flex-start;
}

body.page-orders .order-card-header .order-code {
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  line-height: 1.12;
}

body.page-orders .order-card-body {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem var(--orders-card-padding-x) 1rem;
  border-top: 1px solid #e8edf4;
}

body.page-orders .order-main {
  display: flex;
  align-items: flex-start;
  flex: 1 1 auto;
  min-width: 0;
  gap: 0.95rem;
}

body.page-orders .order-thumb {
  display: none;
}

body.page-orders .order-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body.page-orders .order-thumb-placeholder {
  font-size: 0.85rem;
  font-weight: 700;
  color: #4b5563;
}

body.page-orders .order-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.28rem;
}

body.page-orders .order-meta .order-code {
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  line-height: 1.12;
}

body.page-orders .order-meta .order-reference {
  font-size: 0.76rem;
  color: #70849a;
  line-height: 1.2;
}

body.page-orders .order-items-summary {
  margin-top: 0;
  display: flex;
  flex-direction: column;
  gap: 0.58rem;
  font-size: 0.82rem;
  color: #607089;
  line-height: 1.45;
}

body.page-orders .order-items-primary {
  color: #1d3146;
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.42;
}

body.page-orders .order-items-detail-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
}

body.page-orders .order-items-caption {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7c8ea3;
}

body.page-orders .order-items-seller-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  width: 100%;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
}

body.page-orders .order-items-seller-group + .order-items-seller-group {
  padding-top: 0.7rem;
  border-top: 1px solid #edf2f7;
}

body.page-orders .order-item-seller-line {
  display: block;
  margin: 0;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.4;
  color: #7e95ae;
}

body.page-orders .order-item-shipping {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 0;
  padding-top: 0.38rem;
  border-top: 1px solid #f1f5f9;
}

body.page-orders .order-item-thumb-link {
  display: block;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  line-height: 0;
}

body.page-orders .order-item-thumb {
  width: 70px;
  height: 70px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid #dce7f2;
  background: #eff4f8;
  display: block;
}

body.page-orders .order-item-shipping-content {
  flex: 1;
  min-width: 0;
}

body.page-orders .order-items-seller-group .order-item-shipping:first-of-type {
  padding-top: 0;
  border-top: none;
}

body.page-orders .order-item-shipping-header {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 6px;
}

body.page-orders .order-item-shipping-name {
  color: #1e293b;
  font-size: 0.9rem;
  font-weight: 600;
}

body.page-orders .order-item-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.22rem;
}

body.page-orders .order-item-shipping-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

body.page-orders .order-total-breakdown {
  display: block;
  font-size: 0.72rem;
  color: #8a9db5;
  margin-top: 2px;
  font-weight: 400;
}

body.page-orders .order-item-shipping-badge-pending {
  background: #fef3c7;
  color: #92400e;
}

body.page-orders .order-item-meta-text {
  font-size: 0.79rem;
  line-height: 1.4;
  color: #6b7280;
}

body.page-orders .order-item-shipping-line {
  display: block;
  margin-top: 0.12rem;
  color: #5f7187;
  font-size: 0.79rem;
  line-height: 1.45;
}

body.page-orders .order-item-tracking-link {
  color: #0f766e;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-all;
}

body.page-orders .order-item-tracking-link:hover {
  color: #115e59;
}

body.page-orders .orders-page-order-ref {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin-top: 0.25rem;
  font-size: 10px;
  color: #5d748f;
  background: #f2f6fb;
  border: 1px solid #dce6f0;
  border-radius: 999px;
  padding: 4px 9px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

body.page-orders .order-cell-action {
  display: flex;
  flex: 0 0 auto;
  min-width: 168px;
  justify-content: flex-end;
  align-items: center;
}

body.page-orders .orders-cell-status {
  justify-content: flex-start;
}

body.page-orders .orders-col-status {
  white-space: nowrap;
}

body.page-orders .order-actions-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.55rem;
  width: min(100%, 11.5rem);
  margin-left: auto;
}

body.page-orders .order-actions-group > * {
  width: 100%;
}

body.page-orders .order-primary-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

body.page-orders .order-feedback-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  width: 100%;
  padding-top: 0.2rem;
  border-top: 1px solid #edf2f7;
}

body.page-orders .order-id {
  font-weight: 600;
  color: #1f2937;
}

body.page-orders .order-date,
body.page-orders .order-total {
  color: #4b5563;
  font-size: 0.9rem;
}

body.page-orders .order-date {
  line-height: 1.45;
}

body.page-orders .order-total {
  font-size: 1rem;
  font-weight: 700;
  color: #10233f;
  text-align: left;
}

body.page-orders .order-label-mobile {
  display: none;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 0.1rem;
}

body.page-orders .btn-secondary {
  border: 1px solid #d6dee8;
  background: #fbfdff;
  color: #334155;
  border-radius: 999px;
  padding: 0.45rem 0.74rem;
  font-size: 0.78rem;
  font-weight: 600;
}

body.page-orders .btn-secondary:hover {
  background: #f0f6fb;
}

body.page-orders .feedback-view-note {
  margin: 8px 0 10px;
  font-size: 0.85rem;
  color: #64748b;
}

body.page-orders .order-details-button {
  min-height: 38px;
  width: 100%;
  min-width: 0;
  padding: 0.55rem 0.85rem;
  line-height: 1.2;
  justify-content: center;
  text-align: center;
  white-space: normal;
  box-shadow: none;
  font-size: 0.82rem;
}

body.page-orders [data-order-view-details] {
  border-color: transparent;
  background-color: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25);
}

body.page-orders [data-order-download-invoice] {
  border-color: #d8e4ef;
  background: #ffffff;
  color: #3b5066;
}

body.page-orders .order-feedback-button {
  width: auto;
  min-height: 24px;
  padding: 0.08rem 0;
  border: none;
  background: transparent;
  color: #94a3b8;
  justify-content: flex-start;
  text-align: left;
  text-decoration: underline;
  text-decoration-color: rgba(148, 163, 184, 0.3);
  text-underline-offset: 0.18em;
  font-size: 0.72rem;
  line-height: 1.35;
  cursor: pointer;
}

body.page-orders .order-feedback-button.is-view-mode {
  color: #6b7280;
}

body.page-orders .order-feedback-button:hover {
  background: transparent;
  color: #475569;
}

body.page-orders .order-inline-action {
  min-height: 30px;
  width: auto;
  padding: 0.36rem 0.72rem;
  border-radius: 999px;
  font-size: 0.76rem;
}

body.page-orders .orders-filter-empty {
  border: 1px dashed #cad8e7;
  border-radius: 16px;
  background: #f8fbfe;
  padding: 1rem 1.05rem;
}

body.page-orders .orders-filter-empty-title,
body.page-orders .orders-filter-empty-copy {
  margin: 0;
}

body.page-orders .orders-filter-empty-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1f2937;
}

body.page-orders .orders-filter-empty-copy {
  margin-top: 0.35rem;
  color: #64748b;
  font-size: 0.88rem;
}

body.page-orders .order-status-timeline {
  margin-top: 0.45rem;
  margin-bottom: 0;
}

body.page-orders .order-status-timeline .timeline-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 8px;
  align-items: start;
}

body.page-orders .timeline-step {
  position: relative;
  text-align: center;
  font-size: 11px;
  color: #73859c;
  z-index: 1;
}

body.page-orders .timeline-step .timeline-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  margin: 0 auto 5px;
  border: 2px solid #ccd6e2;
  background: #ffffff;
}

body.page-orders .timeline-step::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 50%;
  right: -50%;
  height: 2px;
  background: #dde5ef;
  z-index: -1;
}

body.page-orders .timeline-step:last-child::after {
  display: none;
}

body.page-orders .timeline-step-active {
  color: #1f8f50;
}

body.page-orders .timeline-step-active .timeline-dot {
  border-color: #1f8f50;
  background: #1f8f50;
}

body.page-orders .timeline-step-connector-active::after {
  background: #1f8f50;
}

body.page-orders .order-status-timeline.cancelled .timeline-step {
  color: #8d9db0;
}

body.page-orders .order-status-timeline.cancelled .timeline-step .timeline-dot {
  border-color: #cfd8e2;
  background: #f5f8fb;
}

body.page-orders .order-status-timeline.cancelled .timeline-step::after {
  background: #dbe3ed;
}

body.page-orders .timeline-extra-label {
  margin-top: 6px;
  font-size: 12px;
  text-align: center;
}

body.page-orders .timeline-extra-cancelled {
  color: #c0392b;
  font-weight: 700;
}

body.page-orders .order-status-badge {
  border-radius: 999px;
  padding: 3px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  max-width: none;
  width: auto;
  align-self: flex-start;
}

body.page-orders .order-status-pending {
  background: #fef3c7;
  color: #92400e;
}

body.page-orders .order-status-paid {
  background: #e0f2fe;
  color: #1d4ed8;
}

body.page-orders .order-status-shipped {
  background: #e0f2fe;
  color: #0369a1;
}

body.page-orders .order-status-completed {
  background: #dcfce7;
  color: #166534;
}

body.page-orders .order-status-cancelled {
  background: #fee2e2;
  color: #b91c1c;
}

body.page-orders .feedback-modal-overlay[hidden] {
  display: none;
}

body.page-orders .feedback-modal-overlay:not([hidden]) {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 1200;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
}

body.page-orders .feedback-modal {
  width: 100%;
  max-width: 560px;
  border: 1px solid #dce7f2;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.2);
  overflow: hidden;
}

body.page-orders .feedback-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #e5e7eb;
}

body.page-orders .feedback-modal-title {
  margin: 0;
  font-size: 1.05rem;
}

body.page-orders .feedback-modal-close {
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 1.25rem;
  line-height: 1;
  padding: 0;
}

body.page-orders .feedback-modal-close:hover {
  color: #0f172a;
}

body.page-orders .feedback-modal-close:focus-visible,
body.page-orders .feedback-rating-star:focus-visible,
body.page-orders .feedback-modal-textarea:focus-visible,
body.page-orders .feedback-modal-footer button:focus-visible,
body.page-orders .order-feedback-button:focus-visible {
  outline: 2px solid #0f766e;
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.14);
}

body.page-orders .feedback-modal-body {
  padding: 14px 16px;
}

body.page-orders .feedback-modal-subtitle {
  margin: 0 0 10px;
  color: #64748b;
  font-size: 0.9rem;
}

body.page-orders .feedback-view-note {
  margin: 8px 0 10px;
  color: #64748b;
  font-size: 0.85rem;
}

body.page-orders .feedback-rating-group {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}

body.page-orders .feedback-rating-star {
  border: none;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  padding: 0;
}

body.page-orders .feedback-rating-star.is-selected,
body.page-orders .feedback-rating-star:hover {
  color: #f59e0b;
}

body.page-orders .feedback-modal-textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid #d6dee8;
  border-radius: 10px;
  padding: 10px;
  color: #1b3652;
  background: #ffffff;
}

body.page-orders .feedback-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 16px 14px;
  border-top: 1px solid #e5e7eb;
}

/* Ã”Ã¶Ã‡Ã”Ã¶Ã‡Ã”Ã¶Ã‡ BUYER MESSAGING MODAL (orders page) Ã”Ã¶Ã‡Ã”Ã¶Ã‡Ã”Ã¶Ã‡Ã”Ã¶Ã‡Ã”Ã¶Ã‡Ã”Ã¶Ã‡Ã”Ã¶Ã‡Ã”Ã¶Ã‡Ã”Ã¶Ã‡Ã”Ã¶Ã‡Ã”Ã¶Ã‡Ã”Ã¶Ã‡Ã”Ã¶Ã‡Ã”Ã¶Ã‡Ã”Ã¶Ã‡Ã”Ã¶Ã‡Ã”Ã¶Ã‡Ã”Ã¶Ã‡Ã”Ã¶Ã‡Ã”Ã¶Ã‡Ã”Ã¶Ã‡Ã”Ã¶Ã‡Ã”Ã¶Ã‡Ã”Ã¶Ã‡Ã”Ã¶Ã‡Ã”Ã¶Ã‡Ã”Ã¶Ã‡Ã”Ã¶Ã‡Ã”Ã¶Ã‡Ã”Ã¶Ã‡Ã”Ã¶Ã‡Ã”Ã¶Ã‡Ã”Ã¶Ã‡Ã”Ã¶Ã‡Ã”Ã¶Ã‡ */

body.page-orders .buyer-msg-overlay[hidden] {
  display: none;
}

body.page-orders .buyer-msg-overlay:not([hidden]) {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 1200;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
}

body.page-orders .buyer-msg-modal {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  border: 1px solid #dce7f2;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.2);
  overflow: hidden;
}

body.page-orders .buyer-msg-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #e5e7eb;
  flex-shrink: 0;
}

body.page-orders .buyer-msg-modal-title {
  margin: 0;
  font-size: 1.05rem;
  color: #0f172a;
}

body.page-orders .buyer-msg-close {
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 1.25rem;
  line-height: 1;
  padding: 0;
  cursor: pointer;
}

body.page-orders .buyer-msg-close:hover {
  color: #0f172a;
}

body.page-orders .buyer-msg-modal-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 12px 16px 0;
  overflow: hidden;
}

body.page-orders .buyer-msg-status {
  font-size: 0.875rem;
  min-height: 1.2em;
  margin-bottom: 6px;
  color: #64748b;
}

body.page-orders .buyer-msg-status--error {
  color: #b91c1c;
}

body.page-orders .buyer-msg-thread {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 10px;
  min-height: 180px;
  max-height: 340px;
}

body.page-orders .buyer-msg-empty {
  margin: auto;
  color: #94a3b8;
  font-size: 0.875rem;
  text-align: center;
}

body.page-orders .buyer-msg-bubble {
  max-width: 80%;
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 0.9rem;
  line-height: 1.45;
  word-break: break-word;
}

body.page-orders .buyer-msg-bubble--user {
  align-self: flex-end;
  background: #e0f2fe;
  border-bottom-right-radius: 4px;
}

body.page-orders .buyer-msg-bubble--seller {
  align-self: flex-start;
  background: #f1f5f9;
  border-bottom-left-radius: 4px;
}

body.page-orders .buyer-msg-bubble--admin {
  align-self: flex-start;
  background: #f1f5f9;
  border-bottom-left-radius: 4px;
}

body.page-orders .buyer-msg-bubble--new {
  outline: 2px solid #0e7490;
  outline-offset: 1px;
}

body.page-orders .buyer-msg-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: #64748b;
  margin-bottom: 4px;
}

body.page-orders .buyer-msg-new-badge {
  background: #0e7490;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: 4px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

body.page-orders .buyer-msg-body {
  margin: 0;
  color: #1b3652;
}

body.page-orders .buyer-msg-modal-footer {
  padding: 10px 16px 14px;
  border-top: 1px solid #e5e7eb;
  flex-shrink: 0;
}

body.page-orders .buyer-msg-input {
  width: 100%;
  resize: none;
  border: 1px solid #d6dee8;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 0.9rem;
  color: #1b3652;
  background: #ffffff;
  box-sizing: border-box;
  margin-bottom: 6px;
}

body.page-orders .buyer-msg-input:focus {
  outline: none;
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

body.page-orders .buyer-msg-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

body.page-orders .buyer-msg-char-count {
  font-size: 0.75rem;
  color: #94a3b8;
}

body.page-orders .buyer-msg-char-count--over {
  color: #b91c1c;
  font-weight: 600;
}

/* Ã”Ã¶Ã‡Ã”Ã¶Ã‡Ã”Ã¶Ã‡ END BUYER MESSAGING MODAL Ã”Ã¶Ã‡Ã”Ã¶Ã‡Ã”Ã¶Ã‡Ã”Ã¶Ã‡Ã”Ã¶Ã‡Ã”Ã¶Ã‡Ã”Ã¶Ã‡Ã”Ã¶Ã‡Ã”Ã¶Ã‡Ã”Ã¶Ã‡Ã”Ã¶Ã‡Ã”Ã¶Ã‡Ã”Ã¶Ã‡Ã”Ã¶Ã‡Ã”Ã¶Ã‡Ã”Ã¶Ã‡Ã”Ã¶Ã‡Ã”Ã¶Ã‡Ã”Ã¶Ã‡Ã”Ã¶Ã‡Ã”Ã¶Ã‡Ã”Ã¶Ã‡Ã”Ã¶Ã‡Ã”Ã¶Ã‡Ã”Ã¶Ã‡Ã”Ã¶Ã‡Ã”Ã¶Ã‡Ã”Ã¶Ã‡Ã”Ã¶Ã‡Ã”Ã¶Ã‡Ã”Ã¶Ã‡Ã”Ã¶Ã‡Ã”Ã¶Ã‡Ã”Ã¶Ã‡Ã”Ã¶Ã‡Ã”Ã¶Ã‡Ã”Ã¶Ã‡Ã”Ã¶Ã‡Ã”Ã¶Ã‡Ã”Ã¶Ã‡Ã”Ã¶Ã‡Ã”Ã¶Ã‡Ã”Ã¶Ã‡Ã”Ã¶Ã‡Ã”Ã¶Ã‡ */

/* ORDER DETAILS PAGE */
body.page-order-details {
  background: #f8fafc;
}

body.page-order-details .order-details-shell {
  max-width: 980px;
  margin: 0 auto;
  padding: 28px 16px 42px;
}

body.page-order-details .order-details-card {
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  padding: 16px;
}

body.page-order-details .order-details-back {
  margin-bottom: 0.85rem;
}

body.page-order-details .order-details-state {
  margin-bottom: 0.65rem;
}

body.page-order-details .order-details-status {
  margin: 0;
  min-height: 18px;
  font-size: 13px;
  color: #5f7691;
}

body.page-order-details .order-details-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e5edf6;
}

body.page-order-details .order-details-header h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.1;
}

body.page-order-details .order-details-meta {
  margin: 6px 0 0;
  color: #5f7893;
  font-size: 13px;
}

body.page-order-details .order-status-timeline {
  margin-top: 0.75rem;
  margin-bottom: 0.2rem;
}

body.page-order-details .order-status-timeline .timeline-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 8px;
  align-items: start;
}

body.page-order-details .order-status-timeline .timeline-step {
  position: relative;
  text-align: center;
  font-size: 11px;
  color: #73859c;
  z-index: 1;
}

body.page-order-details .order-status-timeline .timeline-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  margin: 0 auto 5px;
  border: 2px solid #ccd6e2;
  background: #ffffff;
  display: block;
}

body.page-order-details .order-status-timeline .timeline-step::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 50%;
  right: -50%;
  height: 2px;
  background: #dde5ef;
  z-index: -1;
}

body.page-order-details .order-status-timeline .timeline-step:last-child::after {
  display: none;
}

body.page-order-details .order-status-timeline .timeline-step-active {
  color: #1f8f50;
}

body.page-order-details .order-status-timeline .timeline-step-active .timeline-dot {
  border-color: #1f8f50;
  background: #1f8f50;
}

body.page-order-details .order-status-timeline .timeline-step-connector-active::after {
  background: #1f8f50;
}

body.page-order-details .order-status-timeline.cancelled .timeline-step {
  color: #8d9db0;
}

body.page-order-details .order-status-timeline.cancelled .timeline-dot {
  border-color: #cfd8e2;
  background: #f5f8fb;
}

body.page-order-details .order-status-timeline.cancelled .timeline-step::after {
  background: #dbe3ed;
}

body.page-order-details .order-status-timeline .timeline-extra-label {
  margin-top: 6px;
  font-size: 12px;
  text-align: center;
}

body.page-order-details .order-status-timeline .timeline-extra-cancelled {
  color: #c0392b;
  font-weight: 700;
}

body.page-order-details .order-details-section {
  margin-top: 14px;
  border: 1px solid #e1eaf4;
  border-radius: 12px;
  background: #f9fcff;
  padding: 12px;
}

body.page-order-details .order-details-summary-group {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 14px;
  margin-top: 14px;
  align-items: stretch;
  padding: 14px;
  border: 1px solid #e6edf5;
  border-radius: 16px;
  background: linear-gradient(180deg, #f8fbfe 0%, #f3f8fc 100%);
}

body.page-order-details .order-details-summary-group .order-details-section {
  margin-top: 0;
  height: 100%;
  border-color: #dbe5f0;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.035);
}

body.page-order-details .order-details-section h2 {
  margin: 0;
  font-size: 18px;
}

body.page-order-details .order-details-line {
  margin: 7px 0 0;
  color: #425973;
  font-size: 13px;
}

body.page-order-details .order-details-items {
  margin-top: 8px;
  display: grid;
  gap: 10px;
}

body.page-order-details .order-details-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid #dfe9f4;
  border-radius: 10px;
  background: #ffffff;
  padding: 9px;
}

body.page-order-details .order-item-action-wrap {
  margin-top: 8px;
}

body.page-order-details .order-details-item-image {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #dce7f2;
  background: #f2f7fc;
}

body.page-order-details .order-details-item-name {
  margin: 0;
  font-size: 14px;
  color: #1d3756;
}

body.page-order-details .order-details-item-meta {
  margin: 4px 0 0;
  font-size: 12px;
  color: #607894;
}

body.page-order-details .order-details-item-line-total {
  font-size: 13px;
  color: #203f61;
}

body.page-order-details .order-details-empty-items {
  margin: 0;
  color: #607894;
  font-size: 13px;
}

body.page-order-details .order-details-total {
  margin: 6px 0 0;
  font-size: 25px;
  font-weight: 700;
  color: #1d3c5f;
}

body.page-order-details .order-details-summary-lines {
  display: grid;
  gap: 0.3rem;
  margin-top: 8px;
}

body.page-order-details .order-details-summary-line,
body.page-order-details .order-details-total {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

body.page-order-details .order-details-summary-line {
  color: #425973;
  font-size: 13px;
}

body.page-order-details .order-details-total {
  margin-top: 0.15rem;
  font-size: 20px;
}

body.page-order-details .order-details-trust-note {
  margin: 14px 0 0;
  padding: 10px 12px;
  border: 1px solid #dce8f4;
  border-radius: 10px;
  background: #f5faff;
  color: #486783;
  font-size: 12px;
}

body.page-order-details .order-status-badge {
  border-radius: 999px;
  padding: 4px 11px;
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

body.page-order-details .order-status-pending {
  background: #fef3c7;
  color: #92400e;
}

body.page-order-details .order-status-paid {
  background: #e0f2fe;
  color: #1d4ed8;
}

body.page-order-details .order-status-shipped {
  background: #e0f2fe;
  color: #0369a1;
}

body.page-order-details .order-status-completed {
  background: #dcfce7;
  color: #166534;
}

body.page-order-details .order-status-cancelled {
  background: #fee2e2;
  color: #b91c1c;
}

/* PAYMENT STATUS PAGES */
body.page-payment-status {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #f8fafc;
}

body.page-payment-status .payment-status-shell {
  flex: 1;
  padding: 24px 16px;
  display: grid;
  place-items: center;
}

body.page-payment-status .payment-status-card {
  width: min(620px, 100%);
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow-soft);
  text-align: center;
}

body.page-payment-status .payment-status-card h1 {
  margin: 8px 0 10px;
  font-size: 30px;
  color: #12263f;
}

body.page-payment-status .payment-status-card p {
  margin: 0 0 8px;
  color: #495a72;
}

body.page-payment-status .payment-status-icon {
  margin: 0 auto 8px;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: 1px solid #bfe7d0;
  background: #eaf8f0;
  color: #17603a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 22px;
}

body.page-payment-status .payment-status-icon-cancel {
  border-color: #ffd8b2;
  background: #fff3e6;
  color: #9a3412;
}

body.page-payment-status .payment-status-note {
  margin: 14px 0 8px;
  color: #3e5573;
  font-size: 13px;
}

body.page-payment-status .payment-status-actions {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
}

/* PROFILE PAGE */
body.page-profile {
  background: #f8fafc;
}

body.page-profile .profile-shell {
  max-width: 1080px;
  margin: 0 auto;
  padding: 34px 18px 42px;
}

body.page-profile .profile-intro {
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0) 42%),
    linear-gradient(
      135deg,
      rgba(250, 252, 251, 0.99) 0%,
      rgba(237, 247, 243, 0.98) 52%,
      rgba(235, 243, 249, 0.97) 100%
    );
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
  padding: 24px 24px 22px;
}

body.page-profile .profile-intro-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(248px, 296px);
  gap: 26px;
  align-items: center;
}

body.page-profile .profile-intro-main {
  min-width: 0;
  display: flex;
  align-items: center;
}

body.page-profile .profile-intro-identity {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-width: 0;
}

body.page-profile .profile-intro-avatar {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #ffffff 0%, #dff4ea 100%);
  border: 1px solid rgba(173, 223, 196, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 8px 20px rgba(15, 23, 42, 0.07);
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f766e;
}

body.page-profile .profile-intro-copy {
  min-width: 0;
}

body.page-profile .profile-intro-heading {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

body.page-profile .profile-intro h1 {
  margin: 0;
  font-size: clamp(1.9rem, 3.2vw, 2.45rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #0c1524;
}

body.page-profile .profile-intro p {
  color: #55697f;
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.65;
  max-width: 50ch;
}

body.page-profile .profile-intro-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

body.page-profile .profile-intro-action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: 1px solid rgba(184, 219, 199, 0.9);
  background: rgba(255, 255, 255, 0.76);
  border-radius: 16px;
  min-height: 42px;
  padding: 9px 13px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #116149;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.045);
  transition:
    background-color 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    color 0.16s ease,
    transform 0.16s ease;
}

body.page-profile .profile-intro-action-link:hover {
  background: rgba(255, 255, 255, 0.96);
  border-color: #9ad1b3;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.07);
  transform: translateY(-1px);
}

body.page-profile button.profile-intro-action-link {
  cursor: pointer;
}

body.page-profile .profile-intro-action-link-primary {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(25, 167, 114, 0.16) 0%, rgba(16, 185, 129, 0.26) 100%);
  border-color: rgba(24, 159, 112, 0.28);
  color: #0f684d;
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.1);
}

body.page-profile .profile-intro-action-link-primary:hover {
  background: linear-gradient(135deg, rgba(25, 167, 114, 0.2) 0%, rgba(16, 185, 129, 0.3) 100%);
  border-color: rgba(18, 145, 104, 0.32);
  color: #0d6148;
}

body.page-profile .profile-intro-side {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

body.page-profile .profile-intro-actions {
  margin-left: auto;
  max-width: 296px;
}

body.page-profile .profile-intro-meta {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(219, 231, 238, 0.95);
  border-radius: 18px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  gap: 4px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

body.page-profile .profile-intro-meta-label {
  margin: 0 0 4px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #10b981;
  background: #ecfdf5;
  padding: 3px 8px;
  border-radius: 999px;
  display: inline-block;
}

body.page-profile .profile-intro-meta-value {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 700;
  color: #10233f;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.page-profile .profile-intro-meta-subtle {
  margin: 4px 0 0;
  min-height: 16px;
  font-size: 0.75rem;
  line-height: 1.5;
  color: #5f748a;
  display: flex;
  align-items: center;
  gap: 6px;
}

body.page-profile .profile-intro-meta-subtle .meta-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #8ea3b8;
  font-weight: 600;
}

body.page-profile .profile-intro-meta-subtle .meta-ref {
  font-weight: 600;
  color: #475569;
}

body.page-profile .profile-intro-meta-subtle .meta-status {
  font-weight: 700;
  color: #10b981;
}

body.page-profile .profile-card {
  border: 1px solid #d8e5f2;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  padding: 18px;
}

body.page-profile .profile-card h2 {
  margin: 0;
  font-size: 26px;
}

body.page-profile .profile-subtitle {
  margin: 8px 0 0;
  color: #5f778f;
  font-size: 13px;
  line-height: 1.55;
  max-width: 62ch;
}

body.page-profile .profile-form {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

body.page-profile .profile-form-help {
  grid-column: 1 / -1;
  margin: 0 0 6px;
  color: #58708a;
  font-size: 13px;
  line-height: 1.6;
  max-width: 64ch;
}

body.page-profile .profile-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  line-height: 1.4;
  color: #4f657f;
  font-weight: 600;
}

body.page-profile .profile-form input,
body.page-profile .profile-form textarea,
body.page-profile .profile-form select {
  border: 1px solid #d3dfeb;
  border-radius: 12px;
  padding: 10px 12px;
  min-height: 42px;
  font-size: 13px;
  line-height: 1.4;
  color: #1b3652;
  background: #fcfdff;
  transition:
    border-color 0.16s ease,
    background 0.16s ease,
    box-shadow 0.16s ease;
}

body.page-profile .profile-form textarea {
  min-height: 96px;
  resize: vertical;
}

body.page-profile .profile-visibility-toggle {
  grid-column: 1 / -1;
  margin-top: 8px;
  padding: 22px 24px;
  border: 1px solid #c4d8e8;
  border-left-width: 4px;
  border-left-color: rgba(15, 122, 74, 0.36);
  border-radius: 20px;
  background: linear-gradient(160deg, #f8fcff 0%, #f3faf7 100%);
  box-shadow:
    0 6px 22px rgba(15, 40, 64, 0.08),
    0 1px 4px rgba(15, 40, 64, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

body.page-profile .profile-visibility-toggle .profile-visibility-toggle-control {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  color: #1b3652;
  cursor: pointer;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

body.page-profile .profile-visibility-toggle-copy {
  display: grid;
  gap: 7px;
}

body.page-profile .profile-visibility-toggle-eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: #0f684d;
  background: rgba(15, 122, 74, 0.1);
}

body.page-profile .profile-visibility-toggle-title {
  font-size: 16px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #0e2235;
}

body.page-profile .profile-visibility-toggle-note {
  max-width: 56ch;
  font-size: 13px;
  line-height: 1.6;
  font-weight: 400;
  color: #4d6880;
}

body.page-profile .profile-visibility-toggle-action {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 48px;
  height: 28px;
}

body.page-profile .profile-visibility-toggle input[type="checkbox"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}

body.page-profile .profile-visibility-toggle-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 48px;
  height: 28px;
  padding: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #bfcedb 0%, #afc0cf 100%);
  box-shadow:
    inset 0 1px 3px rgba(16, 38, 61, 0.16),
    0 2px 6px rgba(16, 38, 61, 0.08);
  transition:
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

body.page-profile .profile-visibility-toggle-knob {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffffff 0%, #eef4fa 100%);
  box-shadow:
    0 2px 6px rgba(16, 38, 61, 0.22),
    0 1px 2px rgba(16, 38, 61, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
  transition: transform 0.2s ease;
}

body.page-profile
  .profile-visibility-toggle
  input[type="checkbox"]:checked
  + .profile-visibility-toggle-switch {
  background: linear-gradient(180deg, #17a96e 0%, #0f7a4a 100%);
  box-shadow:
    inset 0 1px 2px rgba(7, 57, 35, 0.2),
    0 3px 10px rgba(15, 122, 74, 0.3);
}

body.page-profile
  .profile-visibility-toggle
  input[type="checkbox"]:checked
  + .profile-visibility-toggle-switch
  .profile-visibility-toggle-knob {
  transform: translateX(20px);
}

body.page-profile
  .profile-visibility-toggle
  input[type="checkbox"]:focus-visible
  + .profile-visibility-toggle-switch {
  outline: none;
  box-shadow:
    0 0 0 4px rgba(37, 99, 235, 0.16),
    inset 0 2px 4px rgba(16, 38, 61, 0.16),
    0 4px 12px rgba(16, 38, 61, 0.08);
}

body.page-profile .profile-visibility-toggle-control:hover .profile-visibility-toggle-switch {
  transform: translateY(-1px);
}

body.page-profile .profile-visibility-toggle-control:hover .profile-visibility-toggle-title {
  color: #0c1e30;
}

@media (max-width: 480px) {
  body.page-profile .profile-visibility-toggle {
    padding: 20px 20px 22px;
  }

  body.page-profile .profile-visibility-toggle .profile-visibility-toggle-control {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

body.page-profile .profile-form input:focus-visible,
body.page-profile .profile-form textarea:focus-visible,
body.page-profile .profile-form select:focus-visible {
  outline: none;
  border-color: #8db7dd;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

body.page-profile .profile-form input[aria-invalid="true"],
body.page-profile .profile-form textarea[aria-invalid="true"],
body.page-profile .profile-form select[aria-invalid="true"] {
  border-color: #b12a3b;
  box-shadow: 0 0 0 3px rgba(177, 42, 59, 0.12);
  background: #fff9fa;
}

body.page-profile .profile-field-error {
  min-height: 18px;
  margin: 2px 0 0;
  color: #b12a3b;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}

body.page-profile .profile-message {
  grid-column: 1 / -1;
  margin: 0;
  min-height: 18px;
  font-size: 12px;
  line-height: 1.55;
  color: #5e748a;
}

body.page-profile .profile-message.info {
  color: #496885;
}

body.page-profile .profile-message.success {
  color: #0f766e;
}

body.page-profile .profile-message.error {
  color: #b12a3b;
}

body.page-profile .profile-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

body.page-profile .profile-actions .btn-primary,
body.page-profile .profile-actions .btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
}

body.page-profile .profile-actions .btn-primary {
  box-shadow: 0 10px 18px rgba(15, 122, 74, 0.24);
}

body.page-profile .profile-actions .btn-outline {
  border-color: #d6e2ee;
  background: #ffffff;
  color: #30465f;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

body.page-profile .profile-actions .btn-outline:hover {
  background: #f8fbfd;
  border-color: #c6d7e7;
}

/* Profile page Ã”Ã‡Ã¶ display name inline in h1 */
body.page-profile .profile-display-name {
  color: #0f7a4a;
}

/* Dashboard 2-column grid: narrow left nav + wide right content */
body.page-profile .profile-dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  margin-bottom: 20px;
  align-items: start;
}

/* Ã”Ã¶Ã‡Ã”Ã¶Ã‡ Account summary (left drawer) Ã”Ã¶Ã‡Ã”Ã¶Ã‡ */
body.page-profile .profile-account-summary {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: min(22rem, calc(100vw - 3rem));
  height: 100vh;
  z-index: 910;
  padding-top: 76px;
  border-radius: 0;
  border: none;
  border-right: 1px solid #e2e8f0;
  overflow-y: auto;
  background: #ffffff;
  transform: translateX(-100%);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-md);
}

.profile-drawer-close {
  display: flex !important;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 90px;
  right: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #64748b;
  width: 36px;
  height: 36px;
  padding: 0;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.profile-drawer-close:hover {
  background: #ffffff;
  color: #10b981;
  border-color: #10b981;
  transform: scale(1.05);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.profile-drawer-close:active {
  transform: scale(0.95);
}

.profile-drawer-close svg {
  width: 18px;
  height: 18px;
}

body.page-profile.profile-drawer-open {
  overflow: hidden;
}

body.page-profile.profile-drawer-open .profile-account-summary {
  transform: translateX(0);
}

body.page-profile .profile-mobile-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 905;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

body.page-profile.profile-drawer-open .profile-mobile-backdrop {
  opacity: 1;
  pointer-events: auto;
}

body.page-profile .profile-mobile-backdrop[hidden] {
  display: none !important;
}

body.page-profile .profile-drawer-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: #f1f5f9;
  color: #64748b;
  cursor: pointer;
  margin-left: auto;
  flex-shrink: 0;
}

body.page-profile .profile-drawer-close:active {
  background: #e2e8f0;
}

body.page-profile .profile-account-user {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 18px 18px;
  background: #ffffff;
  border-bottom: 1px solid #f1f5f9;
}

body.page-profile .profile-account-tier {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #35506f;
}

body.page-profile .profile-account-highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 12px 14px 14px;
  border-bottom: 1px solid #e5ecf3;
  background: #fbfcfe;
}

body.page-profile .profile-account-highlight {
  border: 1px solid #e5ecf3;
  border-radius: 12px;
  background: #ffffff;
  padding: 10px 11px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

body.page-profile .profile-account-highlight span {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7280;
}

body.page-profile .profile-account-highlight strong {
  font-size: 0.9rem;
  color: #0f172a;
}

body.page-profile .profile-account-highlight-wide {
  grid-column: 1 / -1;
}

body.page-profile .profile-account-avatar {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #f0fdf4;
  box-shadow: inset 0 0 0 1px #dcfce7;
  color: #16a34a;
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.page-profile .profile-account-user-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

body.page-profile .profile-account-user-details strong {
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.page-profile .profile-user-email {
  font-size: 0.75rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.page-profile .profile-account-nav {
  padding: 6px 0;
  flex: 1 1 auto;
}

body.page-profile .profile-account-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 18px;
  font-size: 0.86rem;
  font-weight: 500;
  color: #334155;
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  transition:
    background 0.14s ease,
    color 0.14s ease;
  border-bottom: 1px solid #f1f5f9;
}

body.page-profile .profile-account-nav-item[hidden] {
  display: none !important;
}

body.page-profile .profile-account-nav-label {
  min-width: 0;
  flex: 1;
}

body.page-profile .profile-account-nav-badge {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 0.67rem;
  font-weight: 700;
  color: #15803d;
  background: #d1fae5;
  border: 1px solid #a7f3d0;
}

body.page-profile .profile-account-nav-item:last-child {
  border-bottom: none;
}

body.page-profile .profile-account-footer {
  margin-top: auto;
  padding: 8px 0 0;
  border-top: 1px solid #e5ecf3;
  background: #ffffff;
}

body.page-profile .profile-account-logout {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 12px 18px;
  box-sizing: border-box;
  border: none;
  border-radius: 0;
  background: #ffffff;
  color: #475569;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: none;
  transition:
    background-color 0.16s ease,
    color 0.16s ease;
}

body.page-profile .profile-account-logout:hover {
  background: #fffafb;
  color: #9f1239;
}

body.page-profile .profile-account-logout:focus-visible {
  outline: 2px solid #b42318;
  outline-offset: -2px;
}

body.page-profile .profile-account-logout-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: #f8fafc;
  color: currentColor;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.12);
}

@media (min-width: 1025px) {
  body.page-profile.profile-drawer-open {
    overflow: auto;
  }

  body.page-profile #profile-mobile-nav-toggle {
    display: none;
  }

  body.page-profile .profile-shell {
    max-width: 1320px;
  }

  body.page-profile .profile-dashboard-grid {
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
  }

  body.page-profile .profile-account-summary {
    position: sticky;
    top: 92px;
    left: auto;
    bottom: auto;
    width: 100%;
    height: auto;
    max-height: calc(100vh - 108px);
    padding-top: 0;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    transform: none;
    box-shadow: var(--shadow-soft);
    z-index: 2;
  }

  body.page-profile.profile-drawer-open .profile-account-summary {
    transform: none;
  }

  body.page-profile .profile-drawer-close,
  body.page-profile .profile-mobile-backdrop,
  body.page-profile.profile-drawer-open .profile-mobile-backdrop {
    display: none !important;
  }
}

body.page-profile .profile-account-nav-item:hover,
body.page-profile .profile-account-nav-item.is-active {
  background: #f0faf4;
  color: #1a5c3a;
}

body.page-profile .profile-account-nav-item.is-active {
  font-weight: 700;
  box-shadow: inset 3px 0 0 #10b981;
}

body.page-profile .profile-account-nav-icon {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: #f1f5f9;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.page-profile .profile-account-nav-item.is-active .profile-account-nav-icon {
  background: #d1fae5;
}

body.page-profile .profile-account-nav-item.is-active .profile-account-nav-badge {
  background: #d1fae5;
  border-color: #a7f3d0;
}

body.page-profile .profile-account-nav-arrow {
  margin-left: 8px;
  color: #cbd5e1;
  flex-shrink: 0;
  transition:
    color 0.14s ease,
    transform 0.14s ease;
}

body.page-profile .profile-account-nav-item:hover .profile-account-nav-arrow,
body.page-profile .profile-account-nav-item.is-active .profile-account-nav-arrow {
  color: #10b981;
}

/* Ã”Ã¶Ã‡Ã”Ã¶Ã‡ Right content panel Ã”Ã¶Ã‡Ã”Ã¶Ã‡ */
body.page-profile .profile-content-panel {
  background: #ffffff;
  border: 1px solid #dbe5ef;
  border-radius: 20px;
  box-shadow:
    0 3px 16px rgba(15, 23, 42, 0.06),
    0 1px 3px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}

body.page-profile .profile-overview {
  padding: 18px 20px;
  border-bottom: 1px solid #f1f5f9;
  background: #ffffff;
}

body.page-profile .profile-overview-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

body.page-profile .profile-overview-actions {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

body.page-profile .profile-overview-action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #b6dfc8;
  background: #fcfefc;
  border-radius: 999px;
  min-height: 32px;
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #15803d;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition:
    background-color 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    color 0.16s ease;
}

body.page-profile .profile-overview-action-link:hover {
  background: #f8fcf8;
  border-color: #a9d8be;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.06);
}

body.page-profile button.profile-overview-action-link {
  cursor: pointer;
}

body.page-profile .profile-overview-header h2 {
  margin: 0;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  color: #0f172a;
}

body.page-profile .profile-overview-header p {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.55;
  color: #5f748a;
}

body.page-profile .profile-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

body.page-profile .profile-overview-card {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  padding: 14px 15px;
  transition:
    box-shadow 0.22s ease,
    transform 0.22s ease;
  min-width: 0;
}

body.page-profile .profile-overview-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

body.page-profile .profile-overview-label {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

body.page-profile .profile-overview-value {
  margin: 4px 0 2px;
  font-size: 1.25rem;
  line-height: 1.1;
  font-weight: 700;
  color: #0f172a;
}

body.page-profile .profile-overview-note {
  margin: 0;
  min-height: 18px;
  font-size: 0.75rem;
  line-height: 1.55;
  color: #5f748a;
}

body.page-profile .profile-tab-panel {
  display: block;
}

body.page-profile .profile-tab-panel[hidden] {
  display: none;
}

body.page-profile .profile-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 18px;
  background: linear-gradient(135deg, #f0faf4 0%, #eaf4fb 100%);
  border-bottom: 1px solid #d0e9de;
}

body.page-profile .profile-section-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
}

body.page-profile .profile-section-viewall {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #15803d;
  text-decoration: none;
}

body.page-profile .profile-section-viewall:hover {
  text-decoration: underline;
}

/* Settings tab Ã”Ã‡Ã¶ profile form inside panel */
body.page-profile .profile-card-body {
  padding: 20px 24px 24px;
}

body.page-profile .profile-points-panel-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

body.page-profile .profile-points-overview-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.page-profile .profile-points-activity-shell {
  border: 1px solid #d9e5ef;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 250, 252, 0.98));
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

body.page-profile .profile-points-activity-header {
  padding: 16px 18px 14px;
  border-bottom: 1px solid #e2e8f0;
  background: rgba(248, 250, 252, 0.88);
}

body.page-profile .profile-points-activity-header .profile-section-title {
  font-size: 0.94rem;
}

body.page-profile .profile-wallet-card {
  margin-top: 22px;
  padding: 18px;
  border: 1px solid #d9e5ef;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(240, 247, 251, 0.98));
  display: flex;
  flex-direction: column;
  gap: 12px;
}

body.page-profile .profile-wallet-links-card {
  margin-top: 18px;
}

body.page-profile .profile-wallet-header h3 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  color: #0f172a;
}

body.page-profile .profile-wallet-header .profile-form-help {
  margin: 6px 0 0;
}

body.page-profile .profile-wallet-benefits {
  display: grid;
  gap: 8px;
}

body.page-profile .profile-wallet-benefit {
  margin: 0;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(210, 223, 232, 0.92);
  background: rgba(255, 255, 255, 0.8);
  color: #41566b;
  font-size: 0.84rem;
  line-height: 1.55;
}

body.page-profile .profile-wallet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

body.page-profile .profile-wallet-row {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #ffffff;
}

body.page-profile .profile-wallet-row-wide {
  grid-column: 1 / -1;
}

body.page-profile .profile-wallet-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

body.page-profile .profile-wallet-value {
  color: #0f172a;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.45;
}

body.page-profile .profile-wallet-address {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  word-break: break-all;
}

body.page-profile .profile-wallet-hint {
  margin: -2px 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #475569;
}

body.page-profile .profile-wallet-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 0;
}

body.page-profile .profile-wallet-links-list {
  display: grid;
  gap: 12px;
}

body.page-profile .profile-wallet-links-form {
  margin-top: 0;
}

body.page-profile .profile-wallet-links-form[hidden] {
  display: none;
}

body.page-profile .profile-wallet-link-item {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid #dbe5ef;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

body.page-profile .profile-wallet-link-item[aria-busy="true"] {
  opacity: 0.72;
}

body.page-profile .profile-wallet-link-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

body.page-profile .profile-wallet-link-title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
}

body.page-profile .profile-wallet-link-subtitle {
  margin: 4px 0 0;
  font-size: 0.8rem;
  line-height: 1.55;
  color: #5f748a;
  word-break: break-all;
}

body.page-profile .profile-wallet-link-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.page-profile .profile-wallet-link-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #d6e2ee;
  background: #f8fbfd;
  color: #45607b;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.4;
}

body.page-profile .profile-wallet-links-list .btn-outline {
  min-height: 34px;
  padding: 8px 14px;
}

@media (max-width: 620px) {
  body.page-profile .profile-wallet-link-head {
    flex-direction: column;
    align-items: stretch;
  }

  body.page-profile .profile-wallet-links-form {
    grid-template-columns: 1fr;
  }
}

body.page-profile #profile-wallet-connect-button[aria-busy="true"],
body.page-profile #profile-wallet-connect-button:disabled,
body.page-profile #profile-wallet-copy-button:disabled,
body.page-profile #profile-wallet-unlink-button[aria-busy="true"],
body.page-profile #profile-wallet-unlink-button:disabled {
  opacity: 0.72;
  cursor: progress;
}

body.page-profile .profile-danger-zone {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #e0e8f1;
}

body.page-profile .profile-danger-title {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  color: #8f1d2c;
}

body.page-profile #profile-delete-button {
  border-color: rgba(143, 29, 44, 0.2);
  color: #8f1d2c;
}

body.page-profile #profile-delete-button:hover,
body.page-profile #profile-delete-button:focus-visible {
  border-color: rgba(143, 29, 44, 0.32);
  background: #fff6f7;
  color: #7d1726;
}

/* Ã”Ã¶Ã‡Ã”Ã¶Ã‡ Orders tab Ã”Ã¶Ã‡Ã”Ã¶Ã‡ */
body.page-profile .profile-orders-list {
  padding: 4px 0;
}

body.page-profile .profile-orders-status {
  padding: 26px 24px;
  margin: 0;
  font-size: 0.85rem;
  color: #64748b;
  text-align: center;
}

body.page-profile .profile-order-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 18px;
  padding: 18px 24px;
  border-bottom: 1px solid #edf2f7;
  transition:
    background 0.12s ease,
    transform 0.12s ease;
}

body.page-profile .profile-order-row:hover {
  background: #f8fbff;
  transform: translateY(-1px);
}

body.page-profile .profile-order-row:last-child {
  border-bottom: none;
}

body.page-profile .profile-order-thumb {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 16px;
  overflow: hidden;
  background: #edf4f8;
  border: 1px solid #e4ebf1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

body.page-profile .profile-order-thumb-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

body.page-profile .profile-order-thumb-link:hover .profile-order-thumb {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

body.page-profile .profile-order-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body.page-profile .profile-order-img-placeholder {
  font-size: 1.2rem;
  color: #94a3b8;
}

body.page-profile .profile-order-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

body.page-profile .profile-order-name {
  font-size: 0.98rem;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.page-profile .profile-order-ref {
  font-size: 0.79rem;
  line-height: 1.55;
  color: #8b9db2;
}

body.page-profile .profile-order-trust-note {
  font-size: 0.78rem;
  line-height: 1.45;
  color: #557086;
}

body.page-profile .profile-order-trust-lines {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 4px;
}

body.page-profile .profile-order-trust-line {
  font-size: 0.76rem;
  line-height: 1.45;
  color: #6b7f92;
}

body.page-profile .profile-order-total {
  font-weight: 600;
  color: #1b3652;
  font-size: 0.98rem;
  white-space: nowrap;
}

body.page-profile .profile-points-delta {
  font-weight: 700;
  font-size: 0.87rem;
  white-space: nowrap;
}

body.page-profile .profile-points-delta-positive {
  color: #15803d;
}

body.page-profile .profile-points-delta-negative {
  color: #b91c1c;
}

body.page-profile .profile-order-status {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #f1f5f9;
  color: #475569;
  white-space: nowrap;
}

body.page-profile .profile-order-status-shipped {
  background: #dbeafe;
  color: #1e40af;
}
body.page-profile .profile-order-status-delivered {
  background: #dcfce7;
  color: #166534;
}
body.page-profile .profile-order-status-paid {
  background: #f0fdf4;
  color: #15803d;
}
body.page-profile .profile-order-status-pending {
  background: #fefce8;
  color: #854d0e;
}
body.page-profile .profile-order-status-cancelled {
  background: #fee2e2;
  color: #991b1b;
}
body.page-profile .profile-order-status-refunded {
  background: #f3f4f6;
  color: #374151;
}

body.page-profile .profile-order-link {
  font-size: 0.78rem;
  font-weight: 600;
  color: #2563eb;
  text-decoration: none;
  white-space: nowrap;
}

body.page-profile .profile-order-link:hover {
  text-decoration: underline;
}

/* Billing tab */
body.page-profile .profile-billing-list {
  padding: 4px 0 8px;
}

body.page-profile .profile-billing-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto auto;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  border-bottom: 1px solid #edf2f7;
  transition:
    background 0.12s ease,
    transform 0.12s ease;
}

body.page-profile .profile-billing-row:hover {
  background: #f8fbff;
  transform: translateY(-1px);
}

body.page-profile .profile-billing-row:last-of-type {
  border-bottom: none;
}

body.page-profile .profile-billing-meta {
  min-width: 0;
}

body.page-profile .profile-billing-ref {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: #0f172a;
  font-family: var(--font-mono);
}

body.page-profile .profile-billing-copy {
  border: 1px solid #d3dfee;
  background: #ffffff;
  color: #35506f;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 0.67rem;
  font-weight: 600;
  white-space: nowrap;
}

body.page-profile .profile-billing-copy:hover {
  background: #f3f8ff;
}

body.page-profile .profile-billing-sub {
  margin: 2px 0 0;
  font-size: 0.74rem;
  line-height: 1.5;
  color: #5f748a;
}

body.page-profile .profile-billing-method {
  font-size: 0.67rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #475569;
  border: 1px solid #dbe4ef;
  border-radius: 999px;
  padding: 3px 7px;
  white-space: nowrap;
}

body.page-profile .profile-billing-note {
  margin: 0;
  padding: 14px 24px 6px;
  font-size: 0.78rem;
  line-height: 1.55;
  color: #5f748a;
  max-width: 70ch;
}

/* Ã”Ã¶Ã‡Ã”Ã¶Ã‡ Profile favorites tab Ã”Ã¶Ã‡Ã”Ã¶Ã‡ */
body.page-profile .profile-section-status {
  font-size: 0.78rem;
  line-height: 1.5;
  color: #8ea0b3;
}

body.page-profile .profile-favorites-feedback {
  min-height: 0;
  padding: 4px 24px 0;
  font-size: 0.82rem;
  line-height: 1.55;
  color: #5f748a;
}

body.page-profile .profile-favorites-list {
  padding: 4px 0;
}

body.page-profile .profile-fav-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 15px 24px;
  border-bottom: 1px solid #edf2f7;
  transition:
    background 0.12s ease,
    transform 0.12s ease;
}

body.page-profile .profile-fav-row:hover {
  background: #f0faf4;
  transform: translateY(-1px);
}

body.page-profile .profile-fav-row:last-child {
  border-bottom: none;
}

body.page-profile .profile-fav-row .profile-order-name a {
  display: inline-block;
  max-width: 100%;
  color: inherit;
  text-decoration: none;
}

body.page-profile .profile-fav-row .profile-order-name a:hover {
  text-decoration: underline;
}

body.page-profile .profile-fav-remove {
  font-size: 0.75rem;
  font-weight: 500;
  color: #94a3b8;
  background: none;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 4px 9px;
  cursor: pointer;
  white-space: nowrap;
  transition:
    color 0.12s,
    border-color 0.12s;
}

body.page-profile .profile-fav-remove:hover {
  color: #b91c1c;
  border-color: #fca5a5;
}

/* Ã”Ã¶Ã‡Ã”Ã¶Ã‡ Footer scoping for profile page Ã”Ã¶Ã‡Ã”Ã¶Ã‡ */
body.page-profile .footer-site {
  margin-top: 0;
  border-top: 1px solid #dfe7f1;
  background: #f5f8fc;
}

body.page-profile .footer-site .footer-content {
  opacity: 0.72;
}

body.page-profile .header-categories-toggle.profile-mobile-nav-toggle {
  display: none !important;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid #dce8ea;
  background: #ffffff;
  color: #2b394f;
  cursor: pointer;
  padding: 0;
}

body.page-profile .header-nav-row.profile-nav-row {
  flex: 0 0 auto !important;
  margin-right: 24px;
}

body.page-profile .header-categories-toggle.profile-mobile-nav-toggle:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

@media (max-width: 1024px) {
  body.page-profile .header-categories-toggle.profile-mobile-nav-toggle {
    display: inline-flex !important;
  }

  body.page-profile .profile-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.page-profile .profile-intro-top {
    grid-template-columns: minmax(0, 1fr);
  }

  body.page-profile .profile-intro-side {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
  }

  body.page-profile .profile-intro-actions {
    margin-left: 0;
    max-width: none;
  }
}

@media (max-width: 860px) {
  body.page-profile .profile-shell {
    padding-left: 14px;
    padding-right: 14px;
  }

  body.page-profile .profile-dashboard-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  body.page-profile .profile-account-highlights {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.page-profile .profile-account-highlight-wide {
    grid-column: auto;
  }
}

@media (max-width: 620px) {
  body.page-profile .profile-overview-grid {
    grid-template-columns: 1fr;
  }

  body.page-profile .profile-points-overview-grid {
    grid-template-columns: 1fr;
  }

  body.page-profile .profile-intro {
    padding: 20px 18px 18px;
  }

  body.page-profile .profile-intro-identity {
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 13px;
    align-items: start;
  }

  body.page-profile .profile-intro-avatar {
    width: 62px;
    height: 62px;
    font-size: 1.42rem;
  }

  body.page-profile .profile-intro-side {
    grid-template-columns: minmax(0, 1fr);
  }

  body.page-profile .profile-overview-header {
    flex-direction: column;
    align-items: flex-start;
  }

  body.page-profile .profile-intro-actions,
  body.page-profile .profile-overview-actions {
    width: 100%;
  }

  body.page-profile .profile-intro-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  body.page-profile .profile-intro-action-link-primary {
    grid-column: auto;
  }

  body.page-profile .profile-account-highlights {
    grid-template-columns: 1fr;
  }

  body.page-profile .profile-order-row,
  body.page-profile .profile-fav-row {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px 14px;
    align-items: start;
  }

  body.page-profile .profile-order-thumb {
    width: 64px;
    height: 64px;
    border-radius: 14px;
  }

  body.page-profile .profile-billing-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    align-items: start;
  }

  body.page-profile .profile-order-status,
  body.page-profile .profile-order-total,
  body.page-profile .profile-points-delta,
  body.page-profile .profile-order-link,
  body.page-profile .profile-fav-remove,
  body.page-profile .profile-billing-method {
    grid-column: 2;
    justify-self: start;
  }

  body.page-profile .profile-billing-row .profile-order-status,
  body.page-profile .profile-billing-row .profile-order-total,
  body.page-profile .profile-billing-row .profile-order-link,
  body.page-profile .profile-billing-row .profile-billing-method {
    grid-column: auto;
  }

  body.page-profile .profile-billing-note {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* FAVORITES PAGE */
body.page-favorites {
  background: #f8fafc;
}

body.page-favorites .favorites-page-shell {
  max-width: 1040px;
  margin: 0 auto;
  padding: 26px 16px 40px;
}

body.page-favorites .favorites-page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  border: 1px solid #dde7ef;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
  padding: 24px 28px;
  gap: 1rem;
  margin-bottom: 1rem;
}

body.page-favorites .favorites-page-header h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: #10233b;
}

body.page-favorites .favorites-page-header p {
  margin: 0.5rem 0 0;
  color: #607389;
  max-width: 40rem;
  line-height: 1.55;
}

body.page-favorites .favorites-page-status {
  margin: 0;
  color: #60748b;
  font-size: 14px;
  line-height: 1.45;
  min-height: 18px;
  text-align: right;
}

body.page-favorites .favorites-page-status.success {
  color: #2f6c50;
}

body.page-favorites .favorites-page-status.warning {
  color: #8b6326;
}

body.page-favorites .favorites-page-status.error {
  color: #9a3f4d;
}

body.page-favorites .favorites-page-empty {
  margin-top: 14px;
  border: 1px dashed #c9d8e8;
  border-radius: 16px;
  background: #f9fcff;
  padding: 24px 16px;
  text-align: center;
}

body.page-favorites .favorites-page-empty h2 {
  margin: 0;
  font-size: 22px;
}

body.page-favorites .favorites-page-empty p {
  margin: 8px 0 0;
  color: var(--text-muted);
}

body.page-favorites .favorites-page-empty .btn-primary {
  margin-top: 12px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.page-favorites .favorites-page-card {
  margin-top: 14px;
  border: 1px solid #dde7ef;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
  padding: 18px;
}

body.page-favorites .favorites-page-actions {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 0.85rem;
}

body.page-favorites .favorite-clear-button[hidden] {
  display: none;
}

body.page-favorites .favorites-page-feedback {
  min-height: 18px;
  margin: 0 0 0.85rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #60748b;
}

body.page-favorites .favorites-page-feedback.success {
  border-color: #d8e6db;
  background: linear-gradient(180deg, rgba(247, 251, 248, 0.98), rgba(239, 246, 241, 0.98));
  color: #2f6c50;
}

body.page-favorites .favorites-page-feedback.warning {
  border-color: #eadfbe;
  background: linear-gradient(180deg, rgba(255, 251, 241, 0.98), rgba(250, 244, 230, 0.98));
  color: #8b6326;
}

body.page-favorites .favorites-page-feedback.error {
  border-color: #ead6da;
  background: linear-gradient(180deg, rgba(253, 246, 247, 0.98), rgba(249, 239, 241, 0.98));
  color: #9a3f4d;
}

body.page-favorites .favorites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}

body.page-favorites .favorite-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 10px 10px 0;
  border: 1px solid #dde7ef;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
  overflow: hidden;
  cursor: pointer;
  transition:
    box-shadow 0.22s ease,
    transform 0.22s ease,
    border-color 0.22s ease;
}

body.page-favorites .favorite-card:hover {
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
  border-color: #ccd7e3;
}

body.page-favorites .favorite-card-media {
  display: block;
  width: 100%;
  height: 160px;
  overflow: hidden;
  border-radius: 12px;
  background: #eef2f7;
  flex-shrink: 0;
}

body.page-favorites .favorite-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body.page-favorites .favorite-card-copy {
  min-width: 0;
  padding: 10px 4px 4px;
}

body.page-favorites .favorite-card-title {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.4;
  font-weight: 600;
}

body.page-favorites .favorite-card-title a {
  color: #10233f;
  text-decoration: none;
}

body.page-favorites .favorite-card-title a:hover,
body.page-favorites .favorite-card-title a:focus-visible {
  text-decoration: underline;
}

body.page-favorites .favorite-card-price {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: #17603a;
}

body.page-favorites .favorite-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 8px 4px 12px;
  margin-top: auto;
}

body.page-favorites .favorite-open-button {
  text-decoration: none;
}

@media (max-width: 768px) {
  body.page-favorites .favorites-page-header {
    flex-direction: column;
    align-items: flex-start;
  }

  body.page-favorites .favorites-page-status {
    text-align: left;
  }
}

/* SELL LANDING PAGE */
body.page-sell {
  background:
    radial-gradient(1100px 480px at 90% -8%, rgba(22, 131, 86, 0.1), transparent 55%),
    radial-gradient(900px 440px at -14% 8%, rgba(33, 137, 207, 0.08), transparent 52%),
    linear-gradient(180deg, #f5f8fb 0%, #ecf3f8 100%);
}

.sell-landing-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1rem 3rem 1rem;
}

.sell-section {
  margin-bottom: 2.5rem;
}

.sell-section h1,
.sell-section h2 {
  margin-bottom: 0.75rem;
}

.sell-lead {
  font-size: 1.05rem;
  color: #4b5563;
  margin-bottom: 1.5rem;
}

.sell-benefits-grid,
.sell-what-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.sell-benefit-card,
.sell-what-card {
  background: #ffffff;
  border-radius: 0.75rem;
  padding: 1rem;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.sell-steps-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}

.sell-steps-list li + li {
  margin-top: 1rem;
}

.sell-steps-list h3 {
  margin-bottom: 0.25rem;
}

.sell-cta-wrapper {
  margin-top: 1rem;
}

.sell-cta-button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}

.sell-cta-note {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: #6b7280;
}

/* === Home Section Cards === */
/* Shared card layout for homepage text sections */
.home-section-card {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 24px;
  margin-bottom: 24px;
}

/* Optional: unify section headings */
.home-section-card h2 {
  font-size: 1.75rem;
  margin-bottom: 12px;
}

/* Thin divider between Why Zagrin content and testimonials */
.home-divider {
  height: 1px;
  background: rgba(15, 23, 42, 0.06);
  margin: 24px 0 20px;
}

.testimonials-block {
  margin-top: 4px;
}

.testimonials-block h3 {
  font-size: 1.4rem;
  margin: 0 0 8px;
}

.testimonials-block p {
  margin-bottom: 12px;
}

body.page-orders .page-header {
  margin-bottom: 16px;
}

body.page-orders .page-header h1 {
  font-size: 1.6rem;
  margin-bottom: 4px;
}

body.page-orders .page-header p {
  font-size: 0.95rem;
  color: #64748b;
}

body.page-order-details .order-details-page {
  max-width: 900px;
  margin: 24px auto 40px;
  padding: 0 16px;
}

body.page-order-details .order-details-card {
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
  padding: 20px 20px 24px;
  border: 1px solid #dbe6f1;
}

body.page-order-details .order-details-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 0;
  border-bottom: none;
}

body.page-order-details .order-heading-main h1 {
  font-size: 1.4rem;
  margin-bottom: 4px;
}

body.page-order-details .order-meta {
  font-size: 0.9rem;
  color: #64748b;
}

body.page-order-details .order-summary {
  border-radius: 16px;
  background: #f9fafb;
  padding: 12px 14px;
  margin-bottom: 16px;
}

body.page-order-details .order-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

body.page-order-details .order-summary-row:last-child {
  margin-bottom: 0;
}

body.page-order-details .order-total-amount {
  font-weight: 600;
}

body.page-order-details .order-digital-receipt {
  border-radius: 16px;
  border: 1px solid #dbe6f1;
  padding: 14px 16px;
  margin-bottom: 16px;
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(241, 245, 249, 0.98)), #f9fafb;
}

body.page-order-details .order-digital-receipt[hidden] {
  display: none !important;
}

body.page-order-details .order-digital-receipt-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

body.page-order-details .order-digital-receipt h2 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

body.page-order-details .order-digital-receipt-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #334155;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

body.page-order-details .order-digital-receipt-pill-included {
  background: #dcfce7;
  color: #166534;
}

body.page-order-details .order-digital-receipt-pill-muted {
  background: #e2e8f0;
  color: #475569;
}

body.page-order-details .order-digital-receipt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

body.page-order-details .order-digital-receipt-status {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
}

body.page-order-details .order-digital-receipt-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ecfdf5;
  color: #0f766e;
  font-size: 0.85rem;
  font-weight: 700;
  flex: 0 0 auto;
}

body.page-order-details .order-digital-receipt-label {
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 3px;
}

body.page-order-details .order-digital-receipt-value {
  font-size: 0.88rem;
  line-height: 1.5;
  color: #475569;
}

body.page-order-details .order-digital-receipt-note,
body.page-order-details .order-digital-receipt-subnote {
  margin: 12px 0 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #475569;
}

body.page-order-details .order-digital-receipt-subnote {
  color: #55697f;
}

body.page-order-details .order-trust-history-grid {
  grid-template-columns: minmax(220px, 320px);
}

body.page-order-details .order-trust-history-entry {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #dbe6f1;
  background: rgba(255, 255, 255, 0.92);
}

body.page-order-details .order-trust-history-entry + .order-trust-history-entry {
  margin-top: 10px;
}

body.page-order-details .order-trust-history-entry-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #0f172a;
}

body.page-order-details .order-trust-history-entry-top span {
  color: #475569;
  text-align: right;
}

body.page-order-details .order-trust-history-entry p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.55;
  color: #55697f;
}

body.page-order-details .order-items-section h2 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

body.page-order-details .order-items-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

body.page-order-details .order-item-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
}

body.page-order-details .order-item-thumb-wrap {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  background: #f8fafc;
}

body.page-order-details .order-item-thumb {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

body.page-order-details .order-item-main {
  min-width: 0;
  flex: 1 1 auto;
}

body.page-order-details .order-item-title {
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 2px;
}

body.page-order-details .order-item-seller {
  font-size: 0.85rem;
  color: #64748b;
}

body.page-order-details .order-item-seller span {
  font-weight: 500;
}

body.page-order-details .order-item-meta {
  text-align: right;
  font-size: 0.85rem;
}

body.page-order-details .order-item-price,
body.page-order-details .order-item-line-total {
  font-weight: 500;
}

@media (max-width: 768px) {
  body.page-order-details .order-details-summary-group {
    grid-template-columns: 1fr;
  }

  body.page-order-details .order-digital-receipt-header {
    flex-direction: column;
  }

  body.page-order-details .order-item-card {
    flex-direction: column;
    align-items: stretch;
  }

  body.page-order-details .order-item-meta {
    text-align: left;
  }
}

/* ===== PRODUCT DETAIL PAGE (product-detail.html) =====
   Layout: pdp-wrap > breadcrumbs | pdp-main-grid (media + info) | order-section | reviews | related
   JS renderer: frontend/product-detail.js
   Error/loading states use: product-detail-card, product-detail-alert
   ===== */

/* Page background Ã”Ã‡Ã¶ soft green-to-white gradient echoing the brand palette */
body.page-product-detail {
  background: linear-gradient(180deg, #e8f3ed 0%, #f3f8f5 320px, #f8fafc 100%);
}

/* Align top-bar horizontal padding with the 1240px content area */
body.page-product-detail .top-bar {
  padding-left: max(24px, calc((100vw - 1240px) / 2 + 24px));
  padding-right: max(24px, calc((100vw - 1240px) / 2 + 24px));
}

/* Page container */
body.page-product-detail .product-detail-page {
  max-width: 1240px;
  margin: 40px auto 64px;
  padding: 0 24px;
}

/* Error/loading wrapper (used by renderMessage) */
body.page-product-detail .product-detail-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.05),
    0 2px 4px -1px rgba(0, 0, 0, 0.03);
  padding: 32px;
}

/* Alert states (renderMessage) */
body.page-product-detail .product-detail-alert {
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  padding: 20px 24px;
  background: #f9fafb;
  font-size: 0.9rem;
}

body.page-product-detail .product-detail-alert h1 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

body.page-product-detail .product-detail-alert p {
  margin: 0 0 16px;
  color: #4b5563;
}

body.page-product-detail .product-detail-alert.warning {
  border-color: #eadfbe;
  background: linear-gradient(180deg, rgba(255, 251, 241, 0.98), rgba(250, 244, 230, 0.98));
}

body.page-product-detail .product-detail-alert.error {
  border-color: #ead6da;
  background: linear-gradient(180deg, rgba(253, 246, 247, 0.98), rgba(249, 239, 241, 0.98));
}

/* Feedback message (data-product-feedback) */
body.page-product-detail .product-detail-feedback {
  margin: 0;
  min-height: 18px;
  font-size: 0.85rem;
  color: #64748b;
}

body.page-product-detail .product-detail-feedback.success {
  border-color: #d8e6db;
  background: linear-gradient(180deg, rgba(247, 251, 248, 0.98), rgba(239, 246, 241, 0.98));
  color: #2f6c50;
}

body.page-product-detail .product-detail-feedback.warning {
  border-color: #eadfbe;
  background: linear-gradient(180deg, rgba(255, 251, 241, 0.98), rgba(250, 244, 230, 0.98));
  color: #8b6326;
}

body.page-product-detail .product-detail-feedback.error {
  border-color: #ead6da;
  background: linear-gradient(180deg, rgba(253, 246, 247, 0.98), rgba(249, 239, 241, 0.98));
  color: #9a3f4d;
}

body.page-product-detail .product-detail-feedback.info {
  border-color: #d7e1ea;
  background: linear-gradient(180deg, rgba(248, 251, 253, 0.98), rgba(240, 245, 249, 0.98));
  color: #4a6883;
}

/* ---- Breadcrumbs ---- */
body.page-product-detail .pdp-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 44px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #9ca3af;
}

body.page-product-detail .pdp-breadcrumbs > [aria-hidden="true"] {
  color: #d1d5db;
  font-weight: 400;
}

body.page-product-detail .pdp-breadcrumbs a {
  color: #9ca3af;
  text-decoration: none;
}

body.page-product-detail .pdp-breadcrumbs a:hover {
  color: #4ba37d;
}

body.page-product-detail .pdp-breadcrumb-current {
  color: #374151;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 300px;
}

/* ---- Main 2-column layout ---- */
body.page-product-detail .pdp-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 55fr) minmax(0, 45fr);
  gap: 72px;
  align-items: start;
  margin-bottom: 80px;
}

/* LEFT: Gallery column Ã”Ã‡Ã¶ transparent layout container, no shared surface */
body.page-product-detail .pdp-media-col {
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

/* Hero: its own independent premium card */
body.page-product-detail .pdp-hero-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow:
    0 6px 28px rgba(0, 0, 0, 0.1),
    0 1px 4px rgba(0, 0, 0, 0.05);
}

body.page-product-detail .pdp-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  padding: 0;
  transition: opacity 0.18s ease;
}

body.page-product-detail .pdp-badge-overlay {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  border: 1px solid #d4ede0;
  border-radius: 9999px;
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 800;
  color: #4ba37d;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Gallery thumbnail strip */
body.page-product-detail .pdp-thumb-strip {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body.page-product-detail .pdp-thumb-strip::-webkit-scrollbar {
  display: none;
}

/* Each thumbnail: its own independent premium card, same language as hero */
body.page-product-detail .pdp-thumb {
  flex: 1;
  min-width: 0;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.07);
  background: #ffffff;
  padding: 0;
  cursor: pointer;
  transition:
    border-color 0.15s,
    box-shadow 0.15s,
    transform 0.12s;
  box-shadow:
    0 3px 10px rgba(0, 0, 0, 0.09),
    0 1px 3px rgba(0, 0, 0, 0.05);
}

body.page-product-detail .pdp-thumb.is-active {
  border-color: #4ba37d;
  border-width: 2px;
  box-shadow:
    0 0 0 3px rgba(75, 163, 125, 0.22),
    0 3px 10px rgba(0, 0, 0, 0.09);
}

body.page-product-detail .pdp-thumb:hover:not(.is-active) {
  border-color: rgba(0, 0, 0, 0.14);
  transform: translateY(-2px);
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.12),
    0 1px 3px rgba(0, 0, 0, 0.05);
}

body.page-product-detail .pdp-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* RIGHT: Product info column */
body.page-product-detail .pdp-info-col {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 8px;
}

/* Rating row */
body.page-product-detail .pdp-rating-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

body.page-product-detail .pdp-stars {
  color: #e6ccb2;
  letter-spacing: 2px;
  font-size: 0.85rem;
}

body.page-product-detail .pdp-rating-text {
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.25;
  color: #74869b;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

/* Title */
body.page-product-detail .pdp-title {
  font-size: 2.5rem;
  font-weight: 700; /* Phase 7: Elegant instead of ultra-heavy */
  color: #0f172a;
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.025em;
}

/* Price row */
body.page-product-detail .pdp-price-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

body.page-product-detail .pdp-price {
  font-size: 1.6rem;
  font-weight: 700;
  color: #111827;
}

body.page-product-detail .pdp-stock {
  font-size: 12px;
  font-weight: 600;
  color: #166534;
  background: #dcfce7;
  padding: 3px 10px;
  border-radius: 9999px;
}

body.page-product-detail .pdp-stock.pdp-stock-out {
  color: #b91c1c;
  background: #fee2e2;
}

/* Description */
body.page-product-detail .pdp-description {
  font-size: 1rem;
  line-height: 1.72;
  color: #5d7086;
  margin: 0;
}

/* Trust chips */
body.page-product-detail .pdp-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.page-product-detail .pdp-trust-chip {
  background: #f7faf8;
  border: 1px solid #dde9e2;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.02em;
  color: #4b5f74;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
}

/* Actions */
body.page-product-detail .pdp-actions {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

body.page-product-detail .pdp-btn-add {
  flex: 1.2;
  background: var(--color-primary);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 14px;
  font-weight: 600;
  text-transform: none; /* Phase 7: modern casing */
  letter-spacing: 0;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.15s ease,
    box-shadow 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25);
}

body.page-product-detail .pdp-btn-add:hover:not(:disabled) {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.28);
}

body.page-product-detail .pdp-btn-add:disabled {
  background: #94a3b8;
  box-shadow: none;
  cursor: not-allowed;
}

body.page-product-detail .pdp-btn-buy-now {
  flex: 1;
  background: #ffffff; /* Phase 7: Subtle secondary outline */
  color: #0f172a;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 15px 20px;
  font-size: 14px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.page-product-detail .pdp-btn-buy-now:hover:not(:disabled) {
  background: #f8fafc; /* Fix: clean secondary hover background */
  border-color: #94a3b8; /* Fix: slightly darker border on hover */
  transform: translateY(-1px);
}

body.page-product-detail .pdp-btn-buy-now:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}

body.page-product-detail .pdp-btn-fav {
  width: 52px;
  flex-shrink: 0;
  align-self: stretch;
  border: 1.5px solid #d4ede0;
  background: #ffffff;
  border-radius: 14px;
  color: #9ca3af;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    border-color 0.2s,
    color 0.2s,
    background 0.2s;
}

body.page-product-detail .pdp-btn-fav:hover {
  border-color: #e53e3e;
  color: #e53e3e;
}

body.page-product-detail .pdp-btn-fav.is-favorited {
  border-color: #e53e3e;
  background: #fff5f5;
  color: #e53e3e;
}

body.page-product-detail .pdp-fav-icon {
  width: 22px;
  height: 22px;
  fill: currentColor;
  display: block;
  transition: fill 0.15s;
}

/* Back button */
body.page-product-detail .pdp-btn-back {
  background: none;
  border: none;
  color: #9ca3af;
  font-size: 13px;
  cursor: pointer;
  padding: 0;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
  width: fit-content;
}

body.page-product-detail .pdp-btn-back:hover {
  color: #374151;
}

/* Seller card */
body.page-product-detail .pdp-seller-card {
  background: #ffffff;
  border: 1px solid #d4ede0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.06),
    0 1px 3px rgba(0, 0, 0, 0.04);
}

body.page-product-detail .pdp-seller-banner-wrap {
  height: 96px;
  background:
    linear-gradient(135deg, rgba(100, 116, 139, 0.1), rgba(15, 23, 42, 0.05)),
    linear-gradient(180deg, #f8fafc, #e2e8f0); /* Phase 7: Mature neutral gradient */
  background-size: cover;
  background-position: center;
}

body.page-product-detail .pdp-seller-banner-wrap.has-image {
  background: #eef2f7;
}

body.page-product-detail .pdp-seller-banner-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body.page-product-detail .pdp-seller-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
}

body.page-product-detail .pdp-seller-avatar {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 2.5px solid #ffffff;
  background: linear-gradient(135deg, #64748b, #334155); /* Phase 7: Slate avatar */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  color: #ffffff;
  margin-top: -36px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08); /* Clean shadow */
}

body.page-product-detail .pdp-seller-avatar.has-image {
  background: #eef2f7;
  color: transparent;
}

body.page-product-detail .pdp-seller-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

body.page-product-detail .pdp-seller-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

body.page-product-detail .pdp-seller-name {
  font-weight: 700;
  font-size: 1rem;
  color: #111827;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
}

body.page-product-detail .pdp-seller-meta {
  font-size: 0.75rem;
  line-height: 1.3;
  color: #74869b;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 600;
}

body.page-product-detail .pdp-seller-link {
  font-size: 12px;
  font-weight: 600;
  color: #0f172a;
  border: 1px solid #cbd5e1; /* Phase 7: Subtle secondary outline link */
  padding: 7px 16px;
  border-radius: 999px;
  text-decoration: none;
  flex-shrink: 0;
  transition:
    background 0.18s,
    color 0.18s,
    border-color 0.18s;
}

body.page-product-detail .pdp-seller-link:hover {
  background: #4ba37d;
  color: #ffffff;
  border-color: #4ba37d;
}

/* ---- Section nav (tab row above lower grid) ---- */
body.page-product-detail .pdp-section-nav {
  display: flex;
  gap: 0;
  border-bottom: 2px solid #e4ede8;
  margin-bottom: 36px;
}

body.page-product-detail .pdp-section-tab {
  background: none;
  border: none;
  border-bottom: 2.5px solid transparent;
  margin-bottom: -2px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  color: #9ca3af;
  cursor: pointer;
  transition:
    color 0.15s,
    border-color 0.15s;
  white-space: nowrap;
  line-height: 1.4;
}

body.page-product-detail .pdp-section-tab.is-active {
  color: #111827;
  border-bottom-color: #4ba37d;
}

body.page-product-detail .pdp-section-tab:hover:not(.is-active) {
  color: #374151;
}

/* ---- Lower two-column grid (specs | order card) ---- */
body.page-product-detail .pdp-lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 348px;
  gap: 32px;
  align-items: start;
  margin-bottom: 80px;
}

/* ---- Specifications section (left column Ã”Ã‡Ã¶ editorial, no card) ---- */
body.page-product-detail .pdp-specs-section {
  margin-bottom: 0;
  padding: 28px 0 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

/* Mirror the order card's "Order Information" heading for visual symmetry */
body.page-product-detail .pdp-specs-section::before {
  content: "Specifications";
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: -0.01em;
  color: #111827;
  margin: 0 0 24px;
}

body.page-product-detail .pdp-specs-grid {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

body.page-product-detail .pdp-spec-row {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid #e8f0eb;
}

body.page-product-detail .pdp-spec-row:first-child {
  padding-top: 14px;
}

body.page-product-detail .pdp-spec-row:last-child {
  border-bottom: none;
}

body.page-product-detail .pdp-spec-label {
  font-size: 12px;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

body.page-product-detail .pdp-spec-value {
  font-size: 15px;
  font-weight: 500;
  color: #1f2937;
  margin: 0;
}

body.page-product-detail .pdp-spec-value.pdp-spec-unavailable {
  color: #dc2626;
  font-weight: 600;
}

/* ---- Order info card (right column Ã”Ã‡Ã¶ sticky companion) ---- */
body.page-product-detail .pdp-order-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 20px;
  padding: 28px 28px 32px;
  box-shadow:
    0 6px 24px rgba(0, 0, 0, 0.07),
    0 1px 4px rgba(0, 0, 0, 0.04);
  position: sticky;
  top: 84px;
}

body.page-product-detail .pdp-order-card-title {
  font-size: 1.35rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: -0.01em;
  color: #111827;
  margin: 0 0 24px;
}

body.page-product-detail .pdp-order-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 20px;
}

body.page-product-detail .pdp-order-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  padding: 0;
  border-bottom: none;
}

body.page-product-detail .pdp-order-item:first-child {
  padding-top: 0;
}

body.page-product-detail .pdp-order-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

body.page-product-detail .pdp-order-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #eaf6f0;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
  line-height: 1;
}

body.page-product-detail .pdp-order-text {
  padding-top: 0;
}

body.page-product-detail .pdp-order-text strong {
  display: block;
  font-weight: 700;
  font-size: 13px;
  color: #111827;
  margin-bottom: 3px;
  letter-spacing: 0;
  text-transform: none;
}

body.page-product-detail .pdp-order-text p {
  margin: 0;
  font-size: 12px;
  color: #6b7280;
  line-height: 1.55;
}

/* ---- Reviews section ---- */
body.page-product-detail .product-detail-reviews-section {
  margin-bottom: 80px;
}

body.page-product-detail .product-detail-reviews-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 2px solid #e4ede8;
}

body.page-product-detail .product-detail-reviews-header h2 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 760;
  color: #10233b;
  letter-spacing: -0.025em;
}

body.page-product-detail .product-detail-reviews-summary {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #6b7280;
  font-size: 0.9rem;
}

body.page-product-detail .product-detail-reviews-average {
  font-weight: 700;
  color: #111827;
}

body.page-product-detail .product-detail-reviews-verified-count {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.72rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: #0f172a;
  font-size: 0.8rem;
  font-weight: 600;
}

body.page-product-detail .product-detail-reviews-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

body.page-product-detail .product-detail-review-trust-note {
  margin: 0 0 20px;
  max-width: 680px;
  padding: 14px 16px;
  border: 1px solid #dbe7df;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(247, 250, 248, 0.98), rgba(241, 247, 244, 0.98));
  color: #557164;
  font-size: 0.92rem;
  line-height: 1.6;
}

body.page-product-detail .product-detail-review-card {
  padding: 24px;
  border: 1px solid #dde7ef;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
  transition: box-shadow 0.2s;
}

body.page-product-detail .product-detail-review-card:hover {
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

body.page-product-detail .product-detail-review-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  align-items: center;
  margin-bottom: 12px;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #7a8da3;
}

body.page-product-detail .product-detail-review-meta strong {
  color: #111827;
  font-size: 0.9rem;
  flex-basis: 100%;
}

body.page-product-detail .verified-purchase-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  border: 1px solid rgba(74, 116, 92, 0.18);
  background: rgba(239, 246, 242, 0.96);
  color: #365847;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

body.page-product-detail .product-detail-review-text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.7;
  color: #566b82;
  font-style: italic;
}

body.page-product-detail .product-detail-reviews-empty {
  margin: 0;
  padding: 20px 24px;
  border: 1px dashed #d4ede0;
  border-radius: 16px;
  background: #f9fafb;
  color: #9ca3af;
}

/* ---- Related / More From Seller ---- */
body.page-product-detail .product-detail-related-section {
  margin-bottom: 48px;
}

body.page-product-detail .product-detail-related-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #d4ede0;
}

body.page-product-detail .product-detail-related-header h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 760;
  color: #10233b;
  letter-spacing: -0.025em;
}

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

body.page-product-detail .product-detail-related-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

body.page-product-detail .product-detail-related-card:hover .product-detail-related-media img {
  transform: scale(1.05);
}

body.page-product-detail .product-detail-related-media {
  aspect-ratio: 3 / 4;
  width: 100%;
  overflow: hidden;
  border-radius: 12px; /* Phase 7: modern tight radius */
  background: #f7fafc;
  border: 1px solid #dde7ef;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

body.page-product-detail .product-detail-related-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

body.page-product-detail .product-detail-related-copy {
  min-width: 0;
}

body.page-product-detail .product-detail-related-title {
  margin: 0 0 6px;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.3;
  color: #111827;
  transition: color 0.2s;
}

body.page-product-detail .product-detail-related-card:hover .product-detail-related-title {
  color: #334155; /* Phase 7: premium subtle interaction */
}

body.page-product-detail .product-detail-related-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  line-height: 1.45;
  color: #61748a;
}

body.page-product-detail .product-detail-related-price {
  font-weight: 700;
  color: #111827;
}

body.page-product-detail .product-detail-related-stock {
  color: #166534;
  font-size: 0.74rem;
  line-height: 1.25;
}

body.page-product-detail .product-detail-related-stock.is-unavailable {
  color: #b91c1c;
}

/* Aliases kept for test assertions and backward-compat with any existing refs */
body.page-product-detail .product-detail-favorite-button {
  /* visual styles handled by .pdp-btn-fav */
}

body.page-product-detail .product-detail-seller-avatar {
  /* visual styles handled by .pdp-seller-avatar */
}

body.page-product-detail .product-detail-seller-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

body.page-product-detail .product-detail-seller-banner {
  /* visual styles handled by .pdp-seller-banner-wrap */
}

body.page-product-detail .product-detail-seller-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  body.page-product-detail .pdp-main-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    margin-bottom: 48px;
  }

  body.page-product-detail .pdp-info-col {
    padding-top: 0;
  }

  body.page-product-detail .pdp-title {
    font-size: 1.75rem;
  }

  body.page-product-detail .pdp-section-nav {
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  body.page-product-detail .pdp-section-nav::-webkit-scrollbar {
    display: none;
  }

  body.page-product-detail .pdp-lower-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    margin-bottom: 48px;
  }

  body.page-product-detail .pdp-order-card {
    position: static;
  }

  body.page-product-detail .pdp-spec-row {
    grid-template-columns: 140px minmax(0, 1fr);
  }

  body.page-product-detail .product-detail-reviews-list {
    grid-template-columns: minmax(0, 1fr);
  }

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

@media (max-width: 600px) {
  body.page-product-detail .product-detail-page {
    padding: 0 16px;
    margin-top: 20px;
  }

  body.page-product-detail .pdp-title {
    font-size: 1.5rem;
  }

  body.page-product-detail .pdp-actions {
    flex-direction: column;
  }

  body.page-product-detail .pdp-btn-fav {
    width: 100%;
    height: 48px;
  }

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

/* === Payment Status Extended === */
body.page-order-details .order-details-page,
body.page-seller .seller-dashboard-page,
body.page-admin .admin-dashboard-page {
  max-width: 1000px;
  margin: 24px auto 40px;
  padding: 0 16px;
}

/* Order confirmation / payment success */
body.page-payment-status .order-confirmation-page {
  max-width: 800px;
  margin: 24px auto 40px;
  padding: 0 16px;
}

body.page-payment-status .order-confirmation-card {
  background: var(--color-surface, #ffffff);
  border-radius: var(--radius-lg, 24px);
  box-shadow: var(--shadow-soft, 0 18px 45px rgba(15, 23, 42, 0.06));
  padding: 20px 20px 24px;
}

body.page-payment-status .order-confirmation-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}

body.page-payment-status .order-confirmation-icon {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-soft, #dcfce7);
  color: var(--color-primary, #16a34a);
  font-weight: 700;
  font-size: 1.2rem;
  flex: 0 0 auto;
}

body.page-payment-status .order-confirmation-heading h1 {
  font-size: 1.5rem;
  margin: 0 0 4px;
}

body.page-payment-status .order-confirmation-heading p {
  font-size: 0.95rem;
  color: var(--color-text-muted, #6b7280);
  margin: 0;
}

body.page-payment-status .order-confirmation-note {
  margin: 0 0 12px;
  font-size: 0.9rem;
  color: var(--color-text-muted, #6b7280);
}

body.page-payment-status .order-confirmation-note--success {
  color: #2f6c50;
}

body.page-payment-status .order-confirmation-note.page-status--error {
  color: #9a3f4d;
}

body.page-payment-status .order-confirmation-summary {
  border-radius: 16px;
  background: #f9fafb;
  padding: 12px 14px;
  margin-bottom: 16px;
}

body.page-payment-status .order-confirmation-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  margin-bottom: 4px;
  gap: 10px;
}

body.page-payment-status .order-confirmation-summary-row:last-child {
  margin-bottom: 0;
}

body.page-payment-status .order-confirmation-total {
  font-weight: 600;
}

body.page-payment-status .order-confirmation-digital {
  border-radius: 16px;
  border: 1px dashed #d1d5db;
  padding: 10px 12px;
  margin-bottom: 16px;
  background: #f9fafb;
}

body.page-payment-status .order-confirmation-digital h2 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

body.page-payment-status .order-confirmation-digital-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 0.9rem;
}

body.page-payment-status .order-confirmation-digital-icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eef2ff;
  color: #4f46e5;
  font-size: 0.9rem;
  flex: 0 0 auto;
}

body.page-payment-status .order-confirmation-digital-label {
  font-weight: 500;
}

body.page-payment-status .order-confirmation-digital-value {
  font-size: 0.85rem;
  color: var(--color-text-muted, #6b7280);
}

body.page-payment-status .order-confirmation-items h2 {
  font-size: 1.1rem;
  margin: 0 0 6px;
}

body.page-payment-status .order-confirmation-items-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

body.page-payment-status .order-confirmation-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.9rem;
}

body.page-payment-status .order-confirmation-item:last-child {
  border-bottom: none;
}

body.page-payment-status .order-confirmation-item-title {
  font-weight: 500;
}

body.page-payment-status .order-confirmation-item-qty {
  font-size: 0.85rem;
  color: var(--color-text-muted, #6b7280);
}

body.page-payment-status .order-confirmation-item-total {
  font-weight: 500;
}

body.page-payment-status .order-confirmation-items-empty {
  font-size: 0.9rem;
  color: var(--color-text-muted, #6b7280);
  padding: 4px 0;
}

body.page-payment-status .order-confirmation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

@media (max-width: 640px) {
  body.page-payment-status .order-confirmation-card {
    padding: 16px 14px 20px;
  }

  body.page-payment-status .order-confirmation-header {
    flex-direction: row;
    align-items: center;
  }

  body.page-payment-status .order-confirmation-heading h1 {
    font-size: 1.3rem;
  }

  body.page-payment-status .order-confirmation-actions {
    flex-direction: column;
    align-items: stretch;
  }

  body.page-payment-status .order-confirmation-actions .btn-primary,
  body.page-payment-status .order-confirmation-actions .btn-secondary {
    width: 100%;
    justify-content: center;
  }
}

/* ==================== Seller Storefront Page ==================== */

body.page-seller-storefront {
  background: #f8fafc; /* Phase 10: Neutral clean background matching homepage */
}

/* .app-layout on <main> contributes min-height/safe-area insets only.
   storefront-page handles its own max-width and horizontal centering. */
body.page-seller-storefront main.app-layout {
  max-width: none;
}

body.page-seller-storefront .material-symbols-outlined {
  font-family: "Material Symbols Outlined";
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "liga";
}

body.page-seller-storefront .header-inner {
  max-width: 1260px;
  padding-left: 34px;
  padding-right: 34px;
}

body.page-seller-storefront .storefront-page {
  max-width: 1260px;
  margin: 0 auto;
  padding: 24px 34px 58px;
}

body.page-seller-storefront .storefront-banner {
  width: 100%;
  height: clamp(165px, 24vw, 235px);
  overflow: hidden;
  border-radius: 22px 22px 0 0; /* Phase 12: Match new wider hero radius */
  margin-bottom: -6px; /* Overlap slightly into hero for continuity */
  background:
    radial-gradient(circle at 86% -20%, rgba(27, 157, 98, 0.12), transparent 70%),
    linear-gradient(145deg, #f9fbfd, #eff4f8); /* Phase 12: Homepage-aligned mesh gradient */
}

body.page-seller-storefront .storefront-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body.page-seller-storefront .storefront-hero {
  background:
    radial-gradient(680px 220px at 86% -20%, rgba(27, 157, 98, 0.18), transparent 62%),
    linear-gradient(135deg, #f5fbf8 0%, #ecf4fb 100%); /* Phase 12B: Perfectly aligned to homepage hero (0.18 opacity) */
  border: 1px solid #cfe0ee;
  border-radius: 24px;
  padding: 28px 32px 28px;
  box-shadow: 0 10px 28px -5px rgba(15, 23, 42, 0.07);
  margin-bottom: 24px;
  color: #0f172a;
}

body.page-seller-storefront .storefront-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 12px;
}

body.page-seller-storefront .storefront-identity {
  display: flex;
  align-items: center; /* Phase 12B: Centered alignment for premium balanced feel */
  gap: 24px; /* Phase 12B: More breathing room */
  min-width: 240px;
}

body.page-seller-storefront .storefront-avatar {
  width: 76px;
  height: 76px;
  min-width: 76px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%); /* Softer premium gradient */
  color: #1e293b;
  font-size: 1.6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow:
    0 0 0 3px #ffffff,
    0 8px 16px -4px rgba(15, 23, 42, 0.08); /* Refined shadow instead of ring-only */
  flex-shrink: 0;
}

body.page-seller-storefront .storefront-avatar.has-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.page-seller-storefront .storefront-header-copy {
  flex: 1;
  min-width: 0;
  text-align: left;
}

body.page-seller-storefront .storefront-seller-name {
  margin: 0 0 2px; /* Phase 10C: Tighten gap between name and metrics */
  font-size: clamp(1.45rem, 1.9vw, 2rem); /* Phase 10A: Stronger, bigger presence */
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: #0f172a; /* Back to solid neutral */
  font-family: inherit;
  font-weight: 700;
}

body.page-seller-storefront .storefront-meta-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 5px;
}

body.page-seller-storefront .storefront-meta-pill {
  display: none; /* Simplification: hide generic SELLER STOREFRONT label */
  align-items: center;
  min-height: 22px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0 9px;
}

body.page-seller-storefront .storefront-meta-pill.is-verified {
  display: inline-flex; /* Preserve verified badge if it exists */
  border-color: #dce6ef;
  background: #f7fafc;
  color: #5f738a;
}

body.page-seller-storefront .storefront-premium-metrics {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.88rem;
  color: #475569;
  font-weight: 500;
  margin: 4px 0 8px; /* Phase 10C: Tighten vertical rhythm */
}

body.page-seller-storefront .metric-item {
  display: inline-flex;
  align-items: center;
}

body.page-seller-storefront .metric-rating {
  color: #0f172a;
}

body.page-seller-storefront .metric-star {
  color: #f59e0b; /* Premium gold star */
  margin-right: 4px;
  font-size: 1.05em;
}

body.page-seller-storefront .metric-rating-value {
  font-weight: 700;
  margin-right: 4px;
}

body.page-seller-storefront .metric-rating-count {
  color: #64748b;
  font-weight: 400;
}

body.page-seller-storefront .metric-divider {
  color: #cbd5e1;
  font-weight: 700;
  margin: 0 2px;
}

body.page-seller-storefront .storefront-seller-description {
  margin: 6px 0 0;
  font-size: 0.92rem;
  color: #566c83;
  line-height: 1.6;
  max-width: 55ch;
}

body.page-seller-storefront .storefront-seller-meta {
  display: none; /* Simplification: hide "8 products listed on Zagrin" line */
  margin: 6px 0 0;
  font-size: 0.76rem;
  color: #64748b;
  font-weight: 600;
}

body.page-seller-storefront .storefront-public-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  margin-top: 12px;
  max-width: 760px;
}

body.page-seller-storefront .storefront-public-detail {
  border: 1px solid #dde6ef;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.8);
  padding: 10px 12px;
}

body.page-seller-storefront .storefront-public-detail-label {
  display: block;
  margin-bottom: 4px;
  color: #6a8098;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

body.page-seller-storefront .storefront-public-detail-value {
  color: #14304f;
  font-size: 0.92rem;
  line-height: 1.5;
  text-decoration: none;
  word-break: break-word;
}

body.page-seller-storefront .storefront-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  align-self: flex-start;
}

body.page-seller-storefront .storefront-actions .btn-primary,
body.page-seller-storefront .storefront-actions .btn-secondary {
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
  min-height: 40px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  transition: all 0.15s ease;
}

body.page-seller-storefront .storefront-actions .btn-primary {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}

body.page-seller-storefront .storefront-actions .btn-primary:hover:not(:disabled) {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
}

body.page-seller-storefront .storefront-actions .btn-secondary {
  background: #ffffff;
  color: #0f172a;
  border-color: #cbd5e1;
}

body.page-seller-storefront .storefront-actions .btn-secondary:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

body.page-seller-storefront .storefront-follow-action {
  box-shadow: none;
  opacity: 1;
  cursor: not-allowed;
}

body.page-seller-storefront .storefront-message-action {
  text-decoration: none;
}

body.page-seller-storefront .storefront-catalog-shell {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}

body.page-seller-storefront .storefront-catalog-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
}

body.page-seller-storefront .storefront-toolbar-search,
body.page-seller-storefront .storefront-toolbar-sort {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

body.page-seller-storefront .storefront-toolbar-search {
  flex: 1;
}

body.page-seller-storefront .storefront-toolbar-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  line-height: 1.35;
  letter-spacing: 0.07em;
  color: #6d8097;
  font-weight: 700;
}

body.page-seller-storefront .storefront-catalog-toolbar input,
body.page-seller-storefront .storefront-catalog-toolbar select {
  border: 1px solid #d2ddea;
  border-radius: 10px;
  min-height: 40px;
  background: #ffffff;
  color: #12243d;
  padding: 0 11px;
}

body.page-seller-storefront .storefront-catalog-toolbar input:focus,
body.page-seller-storefront .storefront-catalog-toolbar select:focus {
  outline: 2px solid rgba(59, 130, 246, 0.2);
  outline-offset: 1px;
  border-color: #bfd0e2;
}

body.page-seller-storefront .storefront-section-head {
  margin: 0 0 10px;
}

body.page-seller-storefront .storefront-section-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 720;
  letter-spacing: -0.015em;
  color: #10233b;
}

body.page-seller-storefront .storefront-section-subtitle {
  margin: 4px 0 0;
  font-size: 0.82rem;
  line-height: 1.6;
  color: #60748b;
}

body.page-seller-storefront .storefront-products-heading {
  font-size: 1.12rem;
  margin: 0 0 12px;
  color: #0f172a;
}

body.page-seller-storefront .storefront-tab-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  overflow-x: auto;
  padding: 0;
  border: 0;
  border-bottom: 1px solid #cfdbe7;
  border-radius: 0;
  background: transparent;
  scrollbar-width: none;
}

body.page-seller-storefront .storefront-tab-nav::-webkit-scrollbar {
  display: none;
}

body.page-seller-storefront .storefront-tab-button {
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #5d6f86;
  border-radius: 0;
  padding: 12px 2px 11px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition:
    border-color 0.15s ease,
    color 0.15s ease;
}

body.page-seller-storefront .storefront-tab-button:hover {
  border-color: #9aafc5;
  color: #0f172a;
}

body.page-seller-storefront .storefront-tab-button.is-active {
  border-color: #0f172a; /* Phase 10: Slate active tab matching homepage accent */
  color: #0f172a;
}

body.page-seller-storefront .storefront-products {
  padding: 0;
}

body.page-seller-storefront .storefront-products-grid {
  display: grid;
  grid-template-columns: repeat(
    4,
    minmax(0, 1fr)
  ); /* Phase 10A: 6Ã”Ã¥Ã†4 columns for breathing room */
  gap: 16px;
}

body.page-seller-storefront .storefront-product-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #dde7ef;
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: #ffffff;
  padding: 0 0 0;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
  transition:
    transform 0.14s ease,
    border-color 0.14s ease,
    box-shadow 0.14s ease;
}

body.page-seller-storefront .storefront-product-card:hover {
  transform: translateY(-3px);
  border-color: #ccd7e3;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

body.page-seller-storefront .storefront-product-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 12px;
  background: #eef3f8;
}

body.page-seller-storefront .storefront-product-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0));
  opacity: 0;
  transition: opacity 0.16s ease;
}

body.page-seller-storefront .storefront-product-card:hover .storefront-product-media::after {
  opacity: 1;
}

body.page-seller-storefront .storefront-product-type-badge {
  position: absolute;
  z-index: 1;
  left: 8px;
  bottom: 8px;
  border-radius: 999px;
  border: 1px solid #dce6ef;
  background: rgba(255, 255, 255, 0.94);
  color: #476177;
  font-size: 0.64rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 4px 8px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

body.page-seller-storefront .storefront-product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body.page-seller-storefront .storefront-product-copy {
  padding: 12px 12px 14px; /* Phase 10A: Proper horizontal padding inside the card */
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 6px;
}

body.page-seller-storefront .storefront-product-head {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

body.page-seller-storefront .storefront-product-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  line-height: 1.25;
  flex: 1;
  min-width: 0;
  min-height: 2.5em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.page-seller-storefront .storefront-product-meta {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  line-height: 1.4;
  color: #64788f;
  margin-top: 0;
}

body.page-seller-storefront .storefront-product-price {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-weight: 700;
  color: #0f172a; /* Phase 10: Premium slate price, matches storefront cards */
  line-height: 1;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

body.page-seller-storefront .storefront-price-currency {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.page-seller-storefront .storefront-price-value {
  font-size: 1.12rem;
  font-weight: 800;
}

body.page-seller-storefront .storefront-product-stock {
  color: #127357;
  font-weight: 700;
  font-size: 0.76rem;
  line-height: 1.25;
  text-align: right;
}

body.page-seller-storefront .storefront-product-stock.is-unavailable {
  color: #b91c1c;
}

body.page-seller-storefront .storefront-product-rating {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.3em;
  margin: 0;
  min-height: 16px;
  min-width: max-content;
  font-size: 0.76rem;
  line-height: 1.25;
  color: #6a7d93;
  flex-shrink: 0;
}

body.page-seller-storefront .storefront-product-rating.is-empty {
  visibility: hidden;
}

body.page-seller-storefront .storefront-product-review-trust {
  margin: 0;
  color: #526277;
  font-size: 0.83rem;
}

body.page-seller-storefront .storefront-product-link {
  color: inherit;
  text-decoration: none;
}

body.page-seller-storefront .storefront-product-link:hover .storefront-product-title,
body.page-seller-storefront .storefront-product-title .storefront-product-link:hover {
  color: #0f2f52;
}

body.page-seller-storefront .storefront-product-actions {
  grid-column: 1 / -1;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

body.page-seller-storefront .storefront-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.page-seller-storefront .storefront-add-to-cart {
  position: relative;
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  border-radius: 999px;
  border: none;
  background: var(--color-primary);
  color: #ffffff;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.18);
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

body.page-seller-storefront .storefront-add-to-cart-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

body.page-seller-storefront .storefront-add-to-cart-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

body.page-seller-storefront .storefront-add-to-cart:hover:not(:disabled) {
  background: var(--color-primary-dark);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.25);
}

body.page-seller-storefront .storefront-add-to-cart:disabled {
  opacity: 0.62;
  cursor: not-allowed;
}

body.page-seller-storefront .storefront-add-to-cart.is-added {
  background: var(--color-primary-dark);
  color: #ffffff;
}

body.page-seller-storefront .storefront-view-link {
  font-size: 0.82rem;
  font-weight: 700;
  color: #4d6682;
  text-decoration: none;
  white-space: nowrap;
  margin-left: auto;
  line-height: 1;
  align-self: center;
}

body.page-seller-storefront .storefront-view-link:hover {
  color: #1d344e;
  text-decoration: underline;
}

body.page-seller-storefront .storefront-reviews,
body.page-seller-storefront .storefront-trust {
  margin-top: 28px;
}

body.page-seller-storefront .storefront-section-head {
  margin: 0 0 16px; /* Phase 10B: More breathing room above grid */
}

body.page-seller-storefront .storefront-section-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 720;
  color: #10233b;
  letter-spacing: -0.015em;
}

body.page-seller-storefront .storefront-section-subtitle {
  margin: 4px 0 0;
  font-size: 0.82rem;
  line-height: 1.55;
  color: #607389;
}

body.page-seller-storefront .storefront-reviews-grid,
body.page-seller-storefront .storefront-trust-grid {
  display: grid;
  grid-template-columns: repeat(
    2,
    minmax(0, 1fr)
  ); /* Phase 10B: 3Ã”Ã¥Ã†2 desktop column for more breathing room */
  gap: 16px;
}

body.page-seller-storefront .storefront-review-card,
body.page-seller-storefront .storefront-trust-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #dde7ef;
  border-radius: 16px;
  padding: 20px 22px; /* Phase 10B: More generous padding */
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}

body.page-seller-storefront .storefront-review-product,
body.page-seller-storefront .storefront-trust-title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: #0f172a; /* Phase 10B: Full dark for clear product title */
  letter-spacing: -0.01em;
}

body.page-seller-storefront .storefront-review-rating {
  display: flex;
  align-items: center;
  gap: 0.35em;
  margin: 10px 0 12px; /* Phase 10B: More spacing around stars */
  font-size: 0.84rem;
  line-height: 1.45;
  color: #6b7e94;
}

body.page-seller-storefront .storefront-review-rating .card-rating-stars {
  color: #d39a22;
  font-size: 1rem; /* Phase 10B: Slightly larger stars */
  letter-spacing: 0.05em;
}

body.page-seller-storefront .storefront-review-quote,
body.page-seller-storefront .storefront-trust-note {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.72;
  color: #566c83;
}

body.page-seller-storefront .storefront-footer {
  margin-top: 30px;
  padding: 24px 22px;
  border: 1px solid #dde6ee;
  background: linear-gradient(180deg, #f6fafc 0%, #edf3f7 100%);
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
}

body.page-seller-storefront .storefront-footer-title {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4b637b;
}

body.page-seller-storefront .storefront-footer-note {
  margin: 6px 0 0;
  font-size: 0.9rem;
  line-height: 1.7;
  color: #60748b;
}

body.page-seller-storefront .storefront-footer-links {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 8px;
}

body.page-seller-storefront .storefront-footer-links a {
  font-size: 0.9rem;
  color: #36506c;
  text-decoration: none;
  transition: color 0.15s ease;
}

body.page-seller-storefront .storefront-footer-links a:hover {
  color: #17304a;
  text-decoration: none;
}

body.page-seller-storefront .storefront-product-rating .card-rating-stars {
  color: #d39a22;
  letter-spacing: 0.04em;
}

body.page-seller-storefront .storefront-empty {
  color: #475569;
  font-size: 0.9rem;
  margin-top: 12px;
  padding: 14px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

body.page-seller-storefront .storefront-message {
  max-width: 480px;
  margin: 48px auto;
  padding: 24px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  text-align: center;
}

body.page-seller-storefront .storefront-back-link {
  display: inline-block;
  text-decoration: none;
}

body.page-seller-storefront .storefront-about {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #ffffff;
  padding: 28px 28px 24px; /* Phase 10B: Editorial breathing room */
}

body.page-seller-storefront .storefront-products-heading {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 16px;
  color: #0f172a;
  letter-spacing: -0.01em;
}

body.page-seller-storefront .storefront-about .storefront-seller-description {
  margin-top: 8px; /* Phase 10B: More space between heading and body */
  font-size: 0.97rem;
  color: #334155; /* Phase 10B: Stronger than default muted for legibility */
  line-height: 1.7; /* Phase 10B: Editorial line height */
  max-width: 72ch;
}

@media (max-width: 1100px) {
  body.page-seller-storefront .storefront-products-grid {
    grid-template-columns: repeat(
      3,
      minmax(0, 1fr)
    ); /* Phase 11: 3 columns for mid-desktop/large builds */
  }
}

@media (max-width: 1024px) {
  body.page-seller-storefront .header-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  body.page-seller-storefront .storefront-page {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* Note: .storefront-stats is now obsolete/removed but kept these for safety if any manual markup exists */
  body.page-seller-storefront .storefront-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 16px;
  }

  body.page-seller-storefront .storefront-catalog-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  body.page-seller-storefront .storefront-toolbar-sort {
    width: 220px;
    max-width: 100%;
  }

  body.page-seller-storefront .storefront-tab-button {
    font-size: 0.82rem;
  }
}

@media (max-width: 780px) {
  body.page-seller-storefront .storefront-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)); /* Phase 11: 2 columns for tablet */
  }

  body.page-seller-storefront .storefront-reviews-grid,
  body.page-seller-storefront .storefront-trust-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  body.page-seller-storefront .header-inner {
    padding-left: 12px;
    padding-right: 12px;
  }

  body.page-seller-storefront .storefront-page {
    padding: 12px 12px 42px;
  }

  body.page-seller-storefront .storefront-identity {
    width: 100%;
  }

  body.page-seller-storefront .storefront-header {
    flex-direction: column;
    align-items: flex-start;
  }

  body.page-seller-storefront .storefront-actions {
    width: 100%;
    justify-content: flex-start;
  }

  body.page-seller-storefront .storefront-footer {
    grid-template-columns: 1fr;
    padding: 18px 14px;
  }

  body.page-seller-storefront .storefront-actions .btn-secondary,
  body.page-seller-storefront .storefront-actions .btn-primary {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  body.page-seller-storefront .storefront-tab-button {
    font-size: 0.76rem;
  }
}

@media (max-width: 430px) {
  /* 1. Header: hide "Zagrin" wordmark Ã”Ã‡Ã¶ icon + cart + account fit without crowding */
  body.page-seller-storefront .brand-name {
    display: none;
  }

  /* 2. Hero card: tighter side padding on 375Ã”Ã‡Ã´430px */
  body.page-seller-storefront .storefront-hero {
    padding: 18px 16px 20px;
    border-radius: 18px;
  }

  /* 3. Identity row: reduce gap between avatar and copy block */
  body.page-seller-storefront .storefront-identity {
    gap: 14px;
  }

  /* 4. Avatar: slightly smaller to give copy more horizontal room */
  body.page-seller-storefront .storefront-avatar {
    width: 60px;
    height: 60px;
    min-width: 60px;
    font-size: 1.3rem;
  }

  /* 5. Seller name: balance visual weight against the smaller avatar */
  body.page-seller-storefront .storefront-seller-name {
    font-size: 1.2rem;
    letter-spacing: -0.018em;
  }

  /* 6. KPI metrics: 2-column grid instead of inline row with dot separators */
  body.page-seller-storefront .storefront-premium-metrics {
    display: grid;
    grid-template-columns: repeat(2, auto);
    justify-content: start;
    gap: 4px 20px;
    align-items: center;
  }

  /* Hide the â”¬Ã€ dividers Ã”Ã‡Ã¶ positional grid makes them redundant */
  body.page-seller-storefront .metric-divider {
    display: none;
  }

  /* 7. Description: allow full width inside narrow hero */
  body.page-seller-storefront .storefront-seller-description {
    max-width: 100%;
  }

  /* 8. Product grid: single column Ã”Ã‡Ã¶ 2-col cards are too narrow at 375px */
  body.page-seller-storefront .storefront-products-grid {
    grid-template-columns: 1fr;
  }
}
