/* ============================================================
   Univara × WooCommerce — Component Stylesheet
   ------------------------------------------------------------
   Shared styles for cart, checkout, my-account, and order pages.
   Built on top of colors_and_type.css (design tokens).
   Class names follow standard WooCommerce conventions so this
   file can be dropped into a WP theme template override.
   ============================================================ */

:root {
  --woo-max:        1180px;
  --woo-nav-h:      68px;
  --woo-blue:       #1a5cff;          /* site primary CTA */
  --woo-blue-dark:  #1248d6;
  --woo-blue-soft:  rgba(26, 92, 255, 0.08);
  --woo-success:    #1f7a4d;
  --woo-success-bg: #e6f4ec;
  --woo-warning:    #b07a1f;
  --woo-warning-bg: #fbf3e3;
  --woo-error:      var(--semantic-error);
  --woo-error-bg:   #fbe9e9;
}

/* ----------------------------------------------------------------
   PAGE LAYOUT
   ---------------------------------------------------------------- */
html { scroll-behavior: smooth; background: #fff; }
body { overflow-x: hidden; margin: 0; background: #fff; color: var(--fg);
       font-family: var(--font-sans); }

.woo-page {
  max-width: var(--woo-max);
  margin: 0 auto;
  padding: 48px 28px 96px;
}

.woo-page-header {
  margin-bottom: 32px;
}
.woo-page-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  font-weight: 600;
}
.woo-page-header p {
  color: var(--fg-muted);
  font-size: 17px;
  margin: 0;
  max-width: 64ch;
}

/* Breadcrumb / progress -------------------------------------------- */
.woo-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--fg-subtle);
  margin-bottom: 18px;
}
.woo-breadcrumb a { color: var(--fg-muted); text-decoration: none; }
.woo-breadcrumb a:hover { color: var(--woo-blue); }
.woo-breadcrumb .sep { color: var(--fg-subtle); }

.woo-stepper {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 24px 0 40px;
  flex-wrap: wrap;
}
.woo-step {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 8px;
  border-radius: 999px;
  background: var(--surface-ivory);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--fg-muted);
}
.woo-step .num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--surface-sand);
  color: var(--text-charcoal-warm);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 600;
}
.woo-step.is-current { background: var(--woo-blue-soft); border-color: rgba(26,92,255,0.25); color: var(--woo-blue); }
.woo-step.is-current .num { background: var(--woo-blue); color: #fff; }
.woo-step.is-done { background: var(--woo-success-bg); border-color: rgba(31,122,77,0.25); color: var(--woo-success); }
.woo-step.is-done .num { background: var(--woo-success); color: #fff; }
.woo-step .arrow { color: var(--fg-subtle); }

/* ----------------------------------------------------------------
   GRID — two-column layouts (cart, checkout, my-account)
   ---------------------------------------------------------------- */
.woo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 32px;
  align-items: start;
}
.woo-grid--account {
  grid-template-columns: 260px minmax(0, 1fr);
}
@media (max-width: 960px) {
  .woo-grid,
  .woo-grid--account { grid-template-columns: 1fr; gap: 24px; }
}

/* ----------------------------------------------------------------
   CARDS / PANELS
   ---------------------------------------------------------------- */
.woo-card {
  background: var(--surface-ivory);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
}
.woo-card + .woo-card { margin-top: 20px; }
.woo-card h2,
.woo-card h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  margin: 0 0 18px;
  font-size: 22px;
  letter-spacing: -0.005em;
}
.woo-card .card-sub {
  color: var(--fg-muted);
  font-size: 14px;
  margin: -8px 0 18px;
}

/* ----------------------------------------------------------------
   CART TABLE
   ---------------------------------------------------------------- */
.woocommerce-cart-form {
  background: var(--surface-ivory);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.shop_table {
  width: 100%;
  border-collapse: collapse;
}
.shop_table thead th {
  text-align: left;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--fg-subtle);
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-parchment);
}
.shop_table thead th.product-quantity,
.shop_table thead th.product-subtotal,
.shop_table thead th.product-price { text-align: center; }
.shop_table thead th.product-subtotal { text-align: right; }
.shop_table tbody td {
  padding: 22px 24px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  font-size: 15px;
}
.shop_table tbody tr:last-child td { border-bottom: none; }

.cart_item .product-thumbnail {
  width: 90px;
  padding-right: 0;
}
.product-thumb-img {
  width: 78px;
  height: 78px;
  border-radius: 10px;
  background: var(--surface-sand);
  display: grid;
  place-items: center;
  font-size: 32px;
  border: 1px solid var(--border);
  overflow: hidden;
}
.product-thumb-img img { width: 100%; height: 100%; object-fit: cover; }

.product-name a {
  color: var(--fg);
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  display: block;
  margin-bottom: 4px;
}
.product-name a:hover { color: var(--woo-blue); }
.product-name .variation {
  color: var(--fg-subtle);
  font-size: 13px;
  margin: 2px 0 0;
}
.product-price,
.product-subtotal {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  color: var(--fg);
  text-align: center;
}
.product-subtotal { text-align: right; font-weight: 600; }
.product-price { color: var(--fg-muted); }

/* Quantity selector ------------------------------------------------ */
.quantity {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: #fff;
  overflow: hidden;
  height: 38px;
}
.quantity button {
  background: none;
  border: 0;
  width: 36px;
  height: 38px;
  font-size: 16px;
  cursor: pointer;
  color: var(--fg-muted);
  display: grid;
  place-items: center;
  transition: background 0.15s ease;
}
.quantity button:hover { background: var(--surface-sand); color: var(--fg); }
.quantity input.qty {
  border: 0;
  width: 44px;
  height: 38px;
  text-align: center;
  font-size: 15px;
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  background: transparent;
  color: var(--fg);
  -moz-appearance: textfield;
}
.quantity input.qty:focus { outline: none; }
.quantity input.qty::-webkit-outer-spin-button,
.quantity input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Remove icon ------------------------------------------------------ */
.product-remove { width: 38px; padding-left: 0 !important; }
.remove {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface-sand);
  display: grid;
  place-items: center;
  color: var(--text-olive-gray);
  text-decoration: none;
  font-size: 16px;
  line-height: 1;
  transition: all 0.15s ease;
}
.remove:hover { background: var(--woo-error); color: #fff; }

/* Cart actions row ------------------------------------------------- */
.actions-row {
  padding: 18px 24px;
  background: var(--surface-parchment);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.coupon {
  display: flex;
  gap: 8px;
  align-items: center;
}
.coupon input[type="text"] {
  width: 220px;
}

/* ----------------------------------------------------------------
   CART TOTALS / ORDER REVIEW (sidebar)
   ---------------------------------------------------------------- */
.cart_totals,
.woocommerce-checkout-review-order {
  background: var(--surface-ivory);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px;
  position: sticky;
  top: calc(var(--woo-nav-h) + 16px);
}
.cart_totals h2,
.woocommerce-checkout-review-order h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 22px;
  margin: 0 0 18px;
}
.totals-table {
  width: 100%;
  border-collapse: collapse;
}
.totals-table tr { border-bottom: 1px dashed var(--border); }
.totals-table tr:last-child { border-bottom: none; }
.totals-table th,
.totals-table td {
  padding: 12px 0;
  text-align: left;
  font-size: 15px;
  vertical-align: top;
}
.totals-table th {
  color: var(--fg-muted);
  font-weight: 500;
}
.totals-table td {
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--fg);
}
.totals-table .order-total th,
.totals-table .order-total td {
  font-size: 17px;
  font-weight: 600;
  padding-top: 16px;
}
.totals-table .order-total td .currency {
  font-size: 13px;
  color: var(--fg-subtle);
  font-weight: 500;
  display: block;
  margin-top: 2px;
}
.totals-table .discount td { color: var(--woo-success); }

.shipping-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  font-size: 13px;
}
.shipping-options label { display: flex; align-items: center; gap: 8px; cursor: pointer; }

/* ----------------------------------------------------------------
   FORMS
   ---------------------------------------------------------------- */
.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.form-row.form-row--inline { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row.form-row--inline > * { min-width: 0; }
@media (max-width: 600px) {
  .form-row.form-row--inline { grid-template-columns: 1fr; }
}
.form-row label {
  font-size: 13px;
  font-weight: 500;
  color: var(--fg);
  display: flex;
  align-items: center;
  gap: 4px;
}
.form-row label .required { color: var(--woo-error); }
.form-row label .optional {
  font-weight: 400;
  color: var(--fg-subtle);
  margin-left: 2px;
}
.input,
.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row input[type="password"],
.form-row input[type="number"],
.form-row input[type="search"],
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 11px 14px;
  font-size: 15px;
  font-family: var(--font-sans);
  color: var(--fg);
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
}
.form-row textarea { min-height: 92px; resize: vertical; line-height: 1.5; }
.form-row select { appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2387867f' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--woo-blue);
  box-shadow: 0 0 0 3px rgba(26, 92, 255, 0.18);
}
.form-row.has-error input,
.form-row.has-error select,
.form-row.has-error textarea {
  border-color: var(--woo-error);
  box-shadow: 0 0 0 3px rgba(181, 51, 51, 0.12);
}
.form-row .help {
  font-size: 12px;
  color: var(--fg-subtle);
  margin-top: 2px;
}
.form-row .error-text {
  font-size: 12px;
  color: var(--woo-error);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.form-row .error-text::before { content: "⚠"; font-size: 11px; }

/* Checkbox / radio styling ---------------------------------------- */
.choice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  padding: 8px 0;
  font-size: 14px;
  line-height: 1.5;
}
.choice input[type="checkbox"],
.choice input[type="radio"] {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--woo-blue);
  flex-shrink: 0;
}
.choice .label-text { color: var(--fg); }
.choice .help { color: var(--fg-subtle); font-size: 12.5px; display: block; margin-top: 2px; }

/* ----------------------------------------------------------------
   BUTTONS
   ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1;
  white-space: nowrap;
}
.btn-primary { background: var(--woo-blue); color: #fff; }
.btn-primary:hover { background: var(--woo-blue-dark); color: #fff; }
.btn-secondary {
  background: var(--surface-sand);
  color: var(--text-charcoal-warm);
  border-color: var(--border-strong);
}
.btn-secondary:hover { background: var(--ring-warm); color: var(--fg); }
.btn-ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--surface-ivory); border-color: var(--ring-deep); }
.btn-danger { background: transparent; color: var(--woo-error); border-color: rgba(181,51,51,0.3); }
.btn-danger:hover { background: var(--woo-error-bg); border-color: var(--woo-error); }
.btn-block { width: 100%; padding: 14px 22px; font-size: 15px; }
.btn-lg { padding: 16px 28px; font-size: 16px; }
.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

/* ----------------------------------------------------------------
   PAYMENT METHODS
   ---------------------------------------------------------------- */
.wc_payment_methods {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.wc_payment_method {
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.wc_payment_method.is-selected {
  border-color: var(--woo-blue);
  box-shadow: 0 0 0 3px rgba(26,92,255,0.12);
}
.wc_payment_method > label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
}
.wc_payment_method > label input[type="radio"] {
  width: 18px; height: 18px; accent-color: var(--woo-blue);
}
.wc_payment_method .pm-icons {
  margin-left: auto;
  display: flex;
  gap: 6px;
  align-items: center;
}
.pm-chip {
  display: inline-grid;
  place-items: center;
  height: 24px;
  min-width: 36px;
  padding: 0 6px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: var(--fg-muted);
  text-transform: uppercase;
}
.payment_box {
  display: none;
  padding: 0 16px 16px;
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.5;
  border-top: 1px dashed var(--border-strong);
  margin-top: -1px;
}
.payment_box p:first-child { margin-top: 14px; }
.wc_payment_method.is-selected .payment_box { display: block; }

/* ----------------------------------------------------------------
   NOTICES (success / error / info)
   ---------------------------------------------------------------- */
.woocommerce-notices-wrapper { margin-bottom: 18px; }
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
  border: 1px solid transparent;
  margin-bottom: 12px;
}
.woocommerce-message {
  background: var(--woo-success-bg);
  border-color: rgba(31,122,77,0.25);
  color: var(--woo-success);
}
.woocommerce-info {
  background: var(--woo-blue-soft);
  border-color: rgba(26,92,255,0.2);
  color: var(--woo-blue-dark);
}
.woocommerce-error {
  background: var(--woo-error-bg);
  border-color: rgba(181,51,51,0.25);
  color: var(--woo-error);
}
.notice-icon {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-weight: 700;
  font-size: 13px;
  background: rgba(255,255,255,0.6);
  margin-top: -1px;
}
.notice-body { flex: 1; min-width: 0; }
.notice-body strong { display: block; margin-bottom: 2px; }
.notice-body a { color: inherit; font-weight: 500; }
.notice-close {
  background: none; border: 0; cursor: pointer; color: inherit;
  padding: 0 4px; font-size: 18px; opacity: 0.6;
}
.notice-close:hover { opacity: 1; }

/* ----------------------------------------------------------------
   EMPTY STATE
   ---------------------------------------------------------------- */
.empty-state {
  background: var(--surface-ivory);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 64px 28px;
  text-align: center;
}
.empty-state .icon {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--surface-sand);
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  font-size: 36px;
  color: var(--text-charcoal-warm);
}
.empty-state h2 {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 600;
  margin: 0 0 8px;
}
.empty-state p {
  color: var(--fg-muted);
  font-size: 16px;
  max-width: 48ch;
  margin: 0 auto 24px;
}

/* ----------------------------------------------------------------
   MY ACCOUNT — sidebar nav
   ---------------------------------------------------------------- */
.woocommerce-MyAccount-navigation {
  background: var(--surface-ivory);
  border: 1px solid var(--border);
  border-radius: 14px;
  /* padding: 14px; */
  position: sticky;
  top: calc(var(--woo-nav-h) + 16px);
}
.woocommerce-MyAccount-navigation ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.woocommerce-MyAccount-navigation a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 10px;
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 14.5px;
  transition: all 0.15s ease;
  margin: 0 15px 15px;
}
.woocommerce-MyAccount-navigation a:hover {
  background: var(--surface-parchment);
  color: var(--fg);
}
.woocommerce-MyAccount-navigation .is-active a {
  background: var(--woo-blue-soft);
  color: var(--woo-blue);
  font-weight: 500;
}
.woocommerce-MyAccount-navigation a .icon {
  width: 18px; height: 18px;
  display: inline-grid; place-items: center;
  flex-shrink: 0;
}
form.woocommerce-EditAccountForm.edit-account {
    background: var(--surface-ivory);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px;
}
.account-greeting {
  padding: 16px 14px 18px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}
.account-greeting .name {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 2px;
}
.account-greeting .email {
  font-size: 12.5px;
  color: var(--fg-subtle);
  margin: 0;
  word-break: break-all;
}

/* Dashboard tiles -------------------------------------------------- */
.dashboard-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.tile {
  background: var(--surface-ivory);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.15s ease;
}
.tile:hover { border-color: var(--ring-deep); transform: translateY(-1px); }
.tile .tile-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--woo-blue-soft);
  color: var(--woo-blue);
  display: grid; place-items: center;
  font-size: 18px;
  margin-bottom: 6px;
}
.tile .tile-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--fg);
  margin: 0;
}
.tile .tile-meta { font-size: 13px; color: var(--fg-muted); margin: 0; }
.tile .tile-stat {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 600;
  color: var(--fg);
  line-height: 1;
}

/* ----------------------------------------------------------------
   ORDERS LIST / ORDER DETAIL
   ---------------------------------------------------------------- */
.orders-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface-ivory);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.orders-table thead th {
  text-align: left;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--fg-subtle);
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-parchment);
  font-weight: 500;
}
.orders-table tbody td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 14.5px;
  vertical-align: middle;
}
.orders-table tbody tr:last-child td { border-bottom: none; }
.orders-table .order-number a {
  color: var(--woo-blue);
  text-decoration: none;
  font-weight: 500;
}
.orders-table .order-number a:hover { text-decoration: underline; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2px;
}
.status-pill::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
}
.status-pill.is-processing { background: var(--woo-blue-soft); color: var(--woo-blue); }
.status-pill.is-completed { background: var(--woo-success-bg); color: var(--woo-success); }
.status-pill.is-pending { background: var(--woo-warning-bg); color: var(--woo-warning); }
.status-pill.is-cancelled,
.status-pill.is-failed { background: var(--woo-error-bg); color: var(--woo-error); }
.status-pill.is-refunded { background: var(--surface-sand); color: var(--text-charcoal-warm); }

/* Order summary header (confirmation / detail) -------------------- */
.order-hero {
  background: linear-gradient(180deg, var(--woo-blue-soft) 0%, transparent 100%);
  border: 1px solid rgba(26,92,255,0.18);
  border-radius: 16px;
  padding: 36px 28px;
  text-align: center;
  margin-bottom: 28px;
}
.order-hero .check {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--woo-blue);
  color: #fff;
  display: grid; place-items: center;
  font-size: 28px;
  margin: 0 auto 16px;
  box-shadow: 0 0 0 8px rgba(26,92,255,0.15);
}
.order-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 600;
  margin: 0 0 6px;
}
.order-hero p {
  color: var(--fg-muted);
  font-size: 16px;
  margin: 0;
  max-width: 56ch;
  margin-left: auto;
  margin-right: auto;
}
.order-hero .meta {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px dashed rgba(26,92,255,0.25);
  font-size: 13.5px;
}
.order-hero .meta div { display: flex; flex-direction: column; gap: 2px; min-width: 110px; }
.order-hero .meta .lbl { color: var(--fg-subtle); font-size: 12px; text-transform: uppercase; letter-spacing: 0.4px; }
.order-hero .meta .val { color: var(--fg); font-weight: 500; }

.order-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.address-block {
  background: var(--surface-ivory);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--fg);
}
.address-block h4 {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 10px;
}
.address-block p { margin: 0; color: var(--fg-muted); }
.address-block address { font-style: normal; color: var(--fg-muted); }
.address-block .actions { margin-top: 12px; display: flex; gap: 12px; }
.address-block .actions a { font-size: 13px; color: var(--woo-blue); text-decoration: none; }
.address-block .actions a:hover { text-decoration: underline; }

/* Order item list (used on order detail / confirmation) ----------- */
.order-items {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.order-items .item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 14px;
  align-items: center;
}
.order-items .item .product-thumb-img { width: 64px; height: 64px; font-size: 24px; }
.order-items .item .name {
  font-size: 15px;
  font-weight: 500;
  margin: 0 0 2px;
}
.order-items .item .meta {
  font-size: 13px;
  color: var(--fg-subtle);
}
.order-items .item .price {
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  white-space: nowrap;
}

/* ----------------------------------------------------------------
   AUTH PAGES (login / register / forgot)
   ---------------------------------------------------------------- */
.auth-wrap {
  max-width: 920px;
  margin: 56px auto;
  padding: 0 28px;
}
.auth-card {
  background: var(--surface-ivory);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 40px 36px;
}
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: -10px -10px 28px;
  background: var(--surface-parchment);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px;
}
.auth-tabs a {
  text-align: center;
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--fg-muted);
  font-size: 14px;
  font-weight: 500;
}
.auth-tabs a.is-active {
  background: #fff;
  color: var(--fg);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 0 0 1px var(--border-strong);
}
.auth-card h1 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 28px;
  margin: 0 0 6px;
}
.auth-card .lede {
  color: var(--fg-muted);
  margin: 0 0 24px;
  font-size: 15px;
}
.auth-meta {
  margin-top: 18px;
  font-size: 13.5px;
  color: var(--fg-muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.auth-meta a { color: var(--woo-blue); text-decoration: none; }
.auth-meta a:hover { text-decoration: underline; }

.auth-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
@media (max-width: 760px) {
  .auth-split { grid-template-columns: 1fr; }
}

/* ----------------------------------------------------------------
   MISC / UTILITIES
   ---------------------------------------------------------------- */
.section-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 18px;
  margin: 0 0 14px;
  letter-spacing: -0.005em;
}
.muted { color: var(--fg-muted); }
.hint { font-size: 13px; color: var(--fg-subtle); }
.divider { border: 0; border-top: 1px solid var(--border); margin: 22px 0; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.stack-md { display: flex; flex-direction: column; gap: 16px; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  font-size: 12px;
  border-radius: 999px;
  background: var(--surface-sand);
  color: var(--text-charcoal-warm);
  font-weight: 500;
}
.tag.is-blue { background: var(--woo-blue-soft); color: var(--woo-blue); }

/* Responsive table: collapse cart rows on mobile ----------------- */
@media (max-width: 720px) {
  .shop_table thead { display: none; }
  .shop_table,
  .shop_table tbody,
  .shop_table tr,
  .shop_table td { display: block; width: 100%; box-sizing: border-box; }
  .shop_table tbody tr {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    grid-template-areas:
      "thumb name remove"
      "thumb price price"
      "thumb qty   subtotal";
    gap: 8px 14px;
    padding: 18px 16px;
    border-bottom: 1px solid var(--border);
  }
  .shop_table tbody td { padding: 0; border: 0; }
  .product-thumbnail { grid-area: thumb; }
  .product-name { grid-area: name; }
  .product-remove { grid-area: remove; justify-self: end; }
  .product-price { grid-area: price; text-align: left; font-size: 13px; }
  .product-quantity { grid-area: qty; }
  .product-subtotal { grid-area: subtotal; align-self: end; }
  .product-thumb-img { width: 70px; height: 70px; }
  .actions-row { padding: 16px; }
  .coupon { width: 100%; }
  .coupon input[type="text"] { flex: 1; width: auto; }
}

/* ----------------------------------------------------------------
   NAV (shared with site)
   ---------------------------------------------------------------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.92); backdrop-filter: saturate(160%) blur(8px); -webkit-backdrop-filter: saturate(160%) blur(8px); border-bottom: 1px solid var(--border); }
.nav-inner { max-width: var(--woo-max); margin: 0 auto; height: var(--woo-nav-h); display: flex; align-items: center; justify-content: space-between; padding: 0 28px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); font-family: var(--font-serif); font-weight: 500; font-size: 22px; letter-spacing: -0.01em; }
.brand-mark { width: 28px; height: 28px; border-radius: 50%; background: var(--woo-blue); display: grid; place-items: center; color: #fff; font-family: var(--font-serif); font-size: 15px; box-shadow: 0 0 0 4px color-mix(in oklab, var(--woo-blue) 15%, transparent); }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 14.5px; color: var(--fg-muted); }
.nav-links a { color: var(--fg-muted); text-decoration: none; padding: 6px 0; position: relative; }
.nav-links a:hover { color: var(--fg); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-icon-btn {
  position: relative;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--surface-ivory);
  border: 1px solid var(--border);
  color: var(--fg-muted);
  text-decoration: none;
  transition: all 0.15s ease;
}
.nav-icon-btn:hover { color: var(--fg); border-color: var(--ring-deep); }
.nav-icon-btn .badge {
  position: absolute;
  top: -4px; right: -4px;
  min-width: 18px; height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--woo-blue);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  display: grid; place-items: center;
  border: 2px solid #fff;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 760px) {
  .nav-links { display: none; }
}

/* Footer */
.site-footer { background: var(--surface-parchment); border-top: 1px solid var(--border); padding: 40px 28px 24px; text-align: center; }
.site-footer p { font-size: 14px; color: var(--fg-subtle); margin: 0; }

/* Print: order confirmation */
@media print {
  .nav, .site-footer, .order-actions, .nav-actions { display: none !important; }
  .order-hero { background: none; border: 1px solid #ddd; }
  .woo-card { box-shadow: none; border: 1px solid #ddd; break-inside: avoid; }
}
