/* ===========================================================
   Account Dashboard — Shared Styles
   Palette: teal (brand) / amber (buy-now accent) / off-white bg
   =========================================================== */

:root {
  --teal: #0F7C6C;
  --teal-dark: #0A5C50;
  --teal-light: #E6F2EF;
  --amber: #F2A900;
  --amber-dark: #D99400;
  --bg: #F7F8F7;
  --surface: #FFFFFF;
  --border: #E6E8E6;
  --text: #1C2420;
  --text-muted: #6B7670;
  --text-faint: #9AA39E;
  --danger: #C24A3D;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-card: 0 1px 2px rgba(28, 36, 32, 0.06), 0 1px 1px rgba(28, 36, 32, 0.04);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font-family: inherit;
}

/* ---------- Shell layout ---------- */

.shell {
  display: flex;
  min-height: 100vh;
  align-items: flex-start;
  gap: 24px;
  padding: 0px;
  max-width: 1500px;
  margin: 0 auto;
}

/* ---------- Sidebar ---------- */

.sidebar {
  width: 248px;
  flex-shrink: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  position: sticky;
  top: 24px;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px 18px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}

.sidebar-brand .mark {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
}

.sidebar-brand .name {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.side-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-weight: 500;
  font-size: 14.5px;
  margin-bottom: 2px;
  transition: background 0.15s ease, color 0.15s ease;
}

.side-nav-item:hover {
  background: var(--teal-light);
  color: var(--teal-dark);
}

.side-nav-item .icon {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

.side-nav-item.active {
  background: #f8a01e;
  color: #fff;
  font-weight: 600;
}

.sidebar form {
  margin: 0;
}

.sidebar form .side-nav-item {
  width: 100%;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

.nav-divider {
  height: 1px;
  background: var(--border);
  margin: 10px 4px;
}

/* ---------- Main content ---------- */

.main {
  flex: 1;
  min-width: 0;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 6px;
  margin: 0px !important;
}

.page-header h1 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0;
}

.page-header .sub {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 4px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.selected-note {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  border-radius: 999px;
  padding: 10px 20px;
  white-space: nowrap;
  transition: filter 0.15s ease, transform 0.05s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn .icon {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.btn-primary {
  background: #f8a01e;
  color: #fff;
}

.btn-primary:hover {
  background: #666666;
}

.btn-amber {
  background: var(--amber);
  color: #21260c;
}

.btn-amber:hover {
  filter: brightness(0.96);
}

.btn-outline {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background: var(--bg);
}

.btn-ghost {
  background: transparent;
  color: var(--teal-dark);
  padding: 10px 14px;
}

.btn-ghost:hover {
  background: var(--teal-light);
}

.btn-sm {
  padding: 7px 14px;
  font-size: 13px;
}

.btn-block {
  width: 100%;
}

/* ---------- Cards ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.card-pad {
  padding: 20px 22px;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}

.card-header h2 {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
}

.card-header .link {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--teal-dark);
}

.card-header .link:hover {
  text-decoration: underline;
}

/* ---------- Status pills ---------- */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.pill-delivered {
  background: #E6F4ED;
  color: #1A8A4D;
}

.pill-transit {
  background: #EAF0FC;
  color: #2D5FE0;
}

.pill-processing {
  background: #FDF1E0;
  color: #B97400;
}

.pill-cancelled {
  background: #FBEAE8;
  color: var(--danger);
}

.pill-instock {
  background: var(--teal-light);
  color: var(--teal-dark);
}

.pill-default {
  background: var(--teal-light);
  color: var(--teal-dark);
  font-weight: 600;
}

/* ---------- Avatar ---------- */

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.avatar-lg {
  width: 72px;
  height: 72px;
  font-size: 24px;
}

/* =========================================================
   DASHBOARD
   ========================================================= */

.dash-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 20px;
  align-items: start;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-card);
}

.stat-card .stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.stat-card .stat-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

.stat-icon.teal {
  background: var(--teal-light);
  color: var(--teal-dark);
}

.stat-icon.amber {
  background: #FDF1DA;
  color: var(--amber-dark);
}

.stat-icon.blue {
  background: #EAF0FC;
  color: #2D5FE0;
}

.stat-card .stat-value {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.stat-card .stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Recent orders list (dashboard) */

.order-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--border);
}

.order-row:last-child {
  border-bottom: none;
}

.order-thumb {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--border);
  object-fit: cover;
  flex-shrink: 0;
}

.order-info {
  flex: 1;
  min-width: 0;
}

.order-info .order-id {
  font-weight: 600;
  font-size: 14px;
}

.order-info .order-meta {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

.order-price {
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}

/* Quick user info card */

.user-mini {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--border);
}

.user-mini .who .uname {
  font-weight: 700;
  font-size: 15px;
}

.user-mini .who .uemail {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 1px;
}

.mini-list {
  padding: 6px 0;
}

.mini-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 22px;
  font-size: 13.5px;
}

.mini-row .icon {
  width: 16px;
  height: 16px;
  stroke: var(--text-faint);
  fill: none;
  stroke-width: 1.8;
  margin-top: 2px;
  flex-shrink: 0;
}

.mini-row .label {
  color: var(--text-faint);
  width: 64px;
  flex-shrink: 0;
}

.mini-row .value {
  font-weight: 500;
  color: var(--text);
}

/* Default address card */

.address-card-mini {
  margin: 14px 22px 20px;
  padding: 14px 16px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
}

.address-card-mini .tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--teal-dark);
  background: var(--teal-light);
  padding: 2px 8px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.address-card-mini .addr-name {
  font-weight: 600;
  font-size: 14px;
}

.address-card-mini .addr-text {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 3px;
  line-height: 1.5;
}

/* =========================================================
   ORDERS
   ========================================================= */

.order-group {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  margin-bottom: 18px;
  overflow: hidden;
}

.order-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 10px;
}

.order-group-id {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.order-group-id .field .k {
  font-size: 11.5px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.order-group-id .field .v {
  font-size: 13.5px;
  font-weight: 600;
  margin-top: 1px;
}

.order-group-actions {
  display: flex;
  gap: 10px;
}

.order-product-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
}

.order-product-row:last-child {
  border-bottom: none;
}

.order-product-img {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--border);
  object-fit: cover;
  flex-shrink: 0;
}

.order-product-info {
  flex: 1;
  min-width: 80px;
}

.order-product-info .pname {
  font-weight: 600;
  font-size: 14.5px;
}

.order-product-info .pmeta {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 3px;
}

.order-product-qty {
  font-size: 13.5px;
  color: var(--text-muted);
  white-space: nowrap;
  width: 90px;
}

.order-product-price {
  font-weight: 700;
  font-size: 14px;
  width: 90px;
  text-align: right;
  white-space: nowrap;
}

.order-group-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  background: var(--bg);
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 10px;
}

.order-group-total {
  font-size: 14px;
  color: var(--text-muted);
}

.order-group-total strong {
  color: var(--text);
  font-size: 16px;
  margin-left: 6px;
}

/* =========================================================
   WISHLIST TABLE
   ========================================================= */

.table-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.wishlist-table {
  width: 100%;
  border-collapse: collapse;
}

.wishlist-table th {
  text-align: left;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  background: var(--bg);
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.wishlist-table td {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.wishlist-table tr:last-child td {
  border-bottom: none;
}

.wishlist-table .checkbox-cell {
  width: 36px;
}

.wishlist-checkbox {
  width: 17px;
  height: 17px;
  accent-color: var(--teal);
  cursor: pointer;
}

.product-cell {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 240px;
}

.product-cell img {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--border);
  object-fit: cover;
  flex-shrink: 0;
}

.product-cell .pname {
  font-weight: 600;
  font-size: 14.5px;
  text-align: left;
}

.product-cell .pcat {
  font-size: 12.5px;
  color: var(--teal-dark);
  font-weight: 500;
  margin-top: 2px;
}

.rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-faint);
}

.rating .stars {
  color: var(--amber);
  letter-spacing: 1px;
  font-size: 12px;
}

.price-cell .now {
  font-weight: 700;
  font-size: 14.5px;
}

.price-cell .was {
  color: var(--text-faint);
  text-decoration: line-through;
  font-size: 13px;
  margin-left: 6px;
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
}

.qty-stepper .step-btn {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 16px;
  border: none;
}

.qty-stepper .step-val {
  width: 30px;
  text-align: center;
  font-weight: 600;
  font-size: 13.5px;
}

.buy-action-cell {
  display: flex;
  gap: 10px;
}

.remove-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  color: var(--text-faint);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.remove-btn:hover {
  background: #FBEAE8;
  color: var(--danger);
}

.remove-btn svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

/* =========================================================
   ADDRESS BOOK
   ========================================================= */

.address-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.address-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

.address-card.is-default {
  border-color: var(--teal);
  box-shadow: 0 0 0 1px var(--teal), var(--shadow-card);
}

.address-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.address-type {
  display: flex;
  align-items: center;
  gap: 8px;
}

.address-type .type-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--teal-light);
  color: var(--teal-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

.address-type .type-icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

.address-type .type-label {
  font-weight: 700;
  font-size: 14px;
}

.default-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--teal-dark);
  background: var(--teal-light);
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

.address-card .full-name {
  font-weight: 600;
  font-size: 14.5px;
}

.address-card .addr-lines {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

.address-card .phone-line {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.address-card .phone-line svg {
  width: 14px;
  height: 14px;
  stroke: var(--text-faint);
  fill: none;
  stroke-width: 1.8;
}

.address-card-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.address-card-actions .btn {
  flex: 1;
}

.add-address-card {
  border: 2px dashed var(--border);
  background: transparent;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 220px;
  cursor: pointer;
  color: var(--text-muted);
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.add-address-card:hover {
  border-color: var(--teal);
  color: var(--teal-dark);
  background: var(--teal-light);
}

.add-address-card .plus-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.add-address-card .plus-circle svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.add-address-card .add-label {
  font-weight: 600;
  font-size: 14px;
}

/* New address form panel */

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  margin-top: 22px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 22px;
}

.form-grid .full-span {
  grid-column: 1 / -1;
}

.field-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.field-group input,
.field-group select,
.field-group textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 13px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: var(--surface);
}

.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus {
  outline: 2px solid var(--teal);
  outline-offset: 1px;
  border-color: var(--teal);
}

.field-group .hint {
  font-size: 12px;
  color: var(--text-faint);
  margin-top: 5px;
}

.checkbox-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 500;
}

.checkbox-line input {
  width: 16px;
  height: 16px;
  accent-color: var(--teal);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 22px;
  /* border-top: 1px solid var(--border);
  background: var(--bg); */
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* =========================================================
   MY ACCOUNT
   ========================================================= */

.account-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
  align-items: start;
}

.profile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 20px;
}

.profile-card .avatar-lg {
  margin-bottom: 14px;
}

.profile-card .pname {
  font-weight: 700;
  font-size: 17px;
}

.profile-card .pemail {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-top: 3px;
}

.member-badge {
  margin-top: 10px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--amber-dark);
  background: #FDF1DA;
  padding: 4px 11px;
  border-radius: 999px;
}

.profile-stats {
  display: flex;
  width: 100%;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.profile-stats .pstat {
  flex: 1;
  text-align: center;
}

.profile-stats .pstat .num {
  font-weight: 700;
  font-size: 18px;
}

.profile-stats .pstat .lbl {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

.account-section {
  margin-bottom: 18px;
}

.detail-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-row .d-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--teal-light);
  color: var(--teal-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.detail-row .d-icon svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

.detail-row .d-body {
  flex: 1;
  min-width: 0;
}

.detail-row .d-label {
  font-size: 12.5px;
  color: var(--text-muted);
}

.detail-row .d-value {
  font-weight: 600;
  font-size: 14.5px;
  margin-top: 1px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.verified-tag {
  font-size: 11px;
  font-weight: 700;
  color: #1A8A4D;
  background: #E6F4ED;
  padding: 2px 8px;
  border-radius: 999px;
}

.unverified-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--amber-dark);
  background: #FDF1DA;
  padding: 2px 8px;
  border-radius: 999px;
}

/* Dialog forms (e.g. Change Password) */

.dialog-field-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-error {
  background: #FBEAE8;
  color: var(--danger);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 13.5px;
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .dash-grid,
  .account-grid {
    grid-template-columns: 1fr;
  }

  .address-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 860px) {
  .shell {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    position: static;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .address-grid {
    grid-template-columns: 1fr;
  }

  .stat-row {
    grid-template-columns: 1fr;
  }

  .wishlist-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}