/* Harrison Parts — professional layout (restrained accent) */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Source+Serif+4:opsz,wght@8..60,600;8..60,700&display=swap');

:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --ink: #1a1a1a;
  --ink-soft: #3f3f46;
  --muted: #71717a;
  --line: #e4e4e7;
  --line-soft: #f0eeeb;
  --accent: #f97316;
  --accent-hover: #ea580c;
  --accent-soft: #fff7ed;
  --accent-border: #fed7aa;
  --ok: #166534;
  --ok-bg: #ecfdf5;
  --warn-bg: #fffbeb;
  --warn: #92400e;
  --err: #c2410c;
  --err-bg: #fff7ed;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.08);
  --font: "DM Sans", system-ui, -apple-system, sans-serif;
  --head: "Source Serif 4", Georgia, serif;
  --header-h: 72px;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; transition: color .15s; }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 {
  font-family: var(--head);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0 0 0.5em;
}
p { margin: 0 0 1em; color: var(--ink-soft); }
.container { width: min(var(--max), calc(100% - 2rem)); margin: 0 auto; }

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-h);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
}
.brand:hover { color: var(--ink); }
.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 6px;
}
.brand-text {
  font-family: var(--head);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
}
.brand-text small {
  display: block;
  font-family: var(--font);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}
.nav-main a {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
}
.nav-main a:hover,
.nav-main a.active {
  color: var(--accent);
  background: var(--accent-soft);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: border-color .15s, color .15s, background .15s;
}
.icon-btn:hover {
  border-color: var(--accent-border);
  color: var(--accent);
  background: var(--accent-soft);
}
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.75; }
.cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, box-shadow .15s;
}
.btn-primary {
  background: var(--accent);
  color: #fff !important;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff !important;
}
.btn-secondary {
  background: var(--surface);
  color: var(--ink) !important;
  border-color: var(--line);
}
.btn-secondary:hover {
  border-color: var(--accent-border);
  color: var(--accent) !important;
  background: var(--accent-soft);
}
.btn-ghost {
  background: transparent;
  color: #fff !important;
  border-color: rgba(255,255,255,.45);
}
.btn-ghost:hover { background: rgba(255,255,255,.1); }

/* Hero */
.hero {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 3.5rem 0 3rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.hero h1 {
  font-size: clamp(1.85rem, 3.5vw, 2.6rem);
  margin: 0 0 0.85rem;
  color: var(--ink);
}
.hero-lead {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 34rem;
  margin: 0 0 1.5rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}
.hero-stats {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.hero-stat strong {
  display: block;
  font-family: var(--head);
  font-size: 1.15rem;
  color: var(--ink);
}
.hero-stat span {
  font-size: 0.8rem;
  color: var(--muted);
}
.ymm-panel {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.ymm-panel h3 {
  font-size: 1.1rem;
  margin: 0 0 0.35rem;
}
.ymm-panel .sub {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0 0 1rem;
}
.ymm-panel .form-row {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.ymm-panel .form-row.cols-3 {
  grid-template-columns: 1fr 1fr 1fr;
}

/* Page banner */
.page-banner {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 2.25rem 0;
}
.page-banner h1 { margin: 0 0 0.25rem; font-size: 1.75rem; }
.page-banner p { margin: 0; color: var(--muted); }

/* Sections */
.section { padding: 3.5rem 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-title {
  text-align: center;
  margin-bottom: 2rem;
}
.section-title h2 {
  font-size: 1.65rem;
  margin: 0 0 0.4rem;
}
.section-title p {
  margin: 0 auto;
  max-width: 32rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.section-header h2 { margin: 0; font-size: 1.45rem; }
.section-subtitle { margin: 0.25rem 0 0; color: var(--muted); font-size: 0.9rem; }

/* Why cards */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.why-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.15rem;
  transition: box-shadow .2s, border-color .2s;
}
.why-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--accent-border);
}
.why-card .icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
}
.why-card .icon svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.75; }
.why-card h3 { font-size: 1.05rem; margin: 0 0 0.4rem; }
.why-card p { margin: 0; font-size: 0.875rem; color: var(--muted); }

/* Categories */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.85rem;
}
.cat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem;
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.cat-card:hover {
  border-color: var(--accent-border);
  box-shadow: var(--shadow);
  color: var(--ink);
}
.cat-card span {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}
.cat-card small { color: var(--muted); font-size: 0.8rem; }

/* Products */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.15rem;
}
.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .2s, transform .15s;
}
.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.product-card img,
.product-placeholder {
  width: 100%;
  height: 170px;
  object-fit: cover;
  background: var(--line-soft);
}
.product-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}
.product-card .body { padding: 1rem; }
.product-card h3 {
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
}
.price {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.05rem;
}

/* Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.step-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
  text-align: left;
}
.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

/* Forms */
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.8rem;
  margin-bottom: 0.35rem;
  color: var(--ink-soft);
}
.form-control,
input[type=text],
input[type=email],
input[type=password],
input[type=number],
input[type=tel],
input[type=url],
select,
textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font: inherit;
  background: var(--surface);
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.form-control:focus,
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12);
}
.req { color: var(--accent); }
.opt { color: var(--muted); font-weight: 400; font-size: 0.75rem; }

.form-card,
.admin-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.alert {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
.alert-error, .alert-danger { background: var(--err-bg); color: var(--err); border: 1px solid #fecaca; }
.alert-success { background: var(--ok-bg); color: var(--ok); border: 1px solid #bbf7d0; }
.alert-warning { background: var(--warn-bg); color: var(--warn); border: 1px solid #fde68a; }

.payment-option {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-bottom: 0.65rem;
  background: var(--surface);
}
.payment-option:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.payment-disabled-msg {
  background: var(--err-bg);
  border: 1px solid #fecaca;
  color: var(--err);
  padding: 1rem;
  border-radius: var(--radius-sm);
}

/* Account */
.account-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1.5rem;
}
.account-nav {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.75rem;
  height: fit-content;
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}
.account-nav a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 500;
}
.account-nav a:hover,
.account-nav a.active {
  background: var(--accent-soft);
  color: var(--accent);
}
.account-menu-btn {
  display: none;
  margin-bottom: 0.75rem;
}

/* Footer */
.site-footer {
  background: #161616;
  color: rgba(255,255,255,.75);
  padding: 3.5rem 0 0;
  margin-top: 3rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
}
.site-footer h4 {
  color: #fff;
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}
.site-footer a {
  color: rgba(255,255,255,.7);
  font-size: 0.9rem;
}
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.55rem; }
.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.footer-brand-row img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #fff;
  object-fit: contain;
}
.footer-brand-row strong {
  display: block;
  color: #fff;
  font-family: var(--head);
  font-size: 1.1rem;
}
.footer-brand-row span {
  font-size: 0.8rem;
  color: rgba(255,255,255,.5);
}
.footer-about {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255,255,255,.6);
  margin: 0 0 1rem;
  max-width: 280px;
}
.social-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.8) !important;
}
.social-btn:hover {
  background: rgba(255,255,255,.08);
  color: #fff !important;
}
.footer-contact p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.55rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,.7);
}
.footer-contact svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  flex-shrink: 0;
  opacity: 0.8;
}
.payment-methods-bar {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 1.25rem 0;
  text-align: center;
}
.pm-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.65rem;
}
.pm-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}
.pm-badge {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--bg);
}
.pm-note {
  margin: 0.65rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1rem 0;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,.4);
}

/* Chat */
#chat-widget, .chat-widget {
  position: fixed;
  right: 1.15rem;
  bottom: 1.15rem;
  z-index: 9999;
}
#chat-toggle, .chat-toggle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
#chat-toggle svg, .chat-toggle svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.75; }
#chat-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: #fff;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--accent);
}
#chat-panel, .chat-panel {
  position: absolute;
  right: 0;
  bottom: 64px;
  width: 340px;
  max-width: calc(100vw - 1.5rem);
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  display: none;
  flex-direction: column;
}
#chat-panel.open, .chat-panel.open { display: flex; }
.chat-head {
  background: var(--ink);
  color: #fff;
  padding: 0.85rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 0.9rem;
}
#chat-messages, .chat-messages {
  height: 280px;
  overflow-y: auto;
  padding: 1rem;
  background: var(--bg);
}
.chat-msg, .chat-bubble {
  margin-bottom: 0.5rem;
  max-width: 85%;
  padding: 0.55rem 0.85rem;
  border-radius: 12px;
  font-size: 0.85rem;
}
.chat-msg.user, .chat-bubble.user, .from-user .chat-bubble {
  background: var(--surface);
  border: 1px solid var(--line);
}
.chat-msg.admin, .chat-bubble.admin, .from-admin .chat-bubble {
  background: var(--accent);
  color: #fff;
  margin-left: auto;
}
#chat-form, .chat-form {
  display: flex;
  border-top: 1px solid var(--line);
  background: var(--surface);
}
#chat-input, .chat-input {
  flex: 1;
  border: none;
  padding: 0.85rem;
  outline: none;
  font: inherit;
}
#chat-form button, .chat-form button {
  border: none;
  background: var(--accent);
  color: #fff;
  padding: 0 1rem;
  cursor: pointer;
  font-weight: 600;
}

.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 2.5rem; }
.pw-toggle {
  position: absolute;
  right: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 0.25rem;
}
.pw-toggle svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.75; }

/* Utility */
.adv-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.adv-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.adv-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--bg);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}
.adv-icon svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.75; }
.adv-card h3 { font-size: 1rem; margin: 0 0 0.35rem; }
.adv-card p { margin: 0; font-size: 0.85rem; color: var(--muted); }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .why-grid, .adv-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .account-layout { grid-template-columns: 1fr; }
  .ymm-panel .form-row.cols-3 { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-main {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header-h);
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
    box-shadow: var(--shadow);
  }
  .nav-main.open { display: flex; }
  .nav-toggle { display: inline-flex; }
  .brand-text { font-size: 1rem; }
  .account-menu-btn { display: inline-flex; }
  .account-nav {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: min(280px, 86vw);
    z-index: 1100;
    transform: translateX(-105%);
    transition: transform .25s;
    border-radius: 0;
  }
  .account-nav.open { transform: translateX(0); }
}
@media (max-width: 560px) {
  .why-grid, .adv-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 2.25rem 0; }
}
.chat-widget { position: fixed; right: 1.15rem; bottom: 1.15rem; z-index: 9999; }
.chat-toggle { width: 52px; height: 52px; border-radius: 50%; border: none; cursor: pointer; background: var(--accent); color: #fff; box-shadow: 0 8px 24px rgba(249,115,22,.35); display: flex; align-items: center; justify-content: center; position: relative; }
.chat-unread { position: absolute; top: -2px; right: -2px; background: #fff; color: var(--accent); font-size: 11px; font-weight: 700; min-width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 2px solid var(--accent); }
.chat-panel { position: absolute; right: 0; bottom: 64px; width: 340px; max-width: calc(100vw - 1.5rem); background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 1px solid var(--line); overflow: hidden; flex-direction: column; }
.chat-header { background: var(--ink); color: #fff; padding: 0.85rem 1rem; display: flex; justify-content: space-between; align-items: center; }
.chat-status { display: block; font-size: 0.75rem; font-weight: 400; opacity: .7; }
.chat-close { background: none; border: none; color: #fff; cursor: pointer; }
.chat-messages { height: 280px; overflow-y: auto; padding: 1rem; background: var(--bg); }
.chat-input-area { padding: 0.75rem; border-top: 1px solid var(--line); background: var(--surface); }
.chat-compose { display: flex; gap: 0.35rem; align-items: center; }
.chat-compose input[type=text] { flex: 1; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0.55rem 0.75rem; font: inherit; }
.chat-attach-btn { cursor: pointer; color: var(--muted); display: flex; padding: 0.35rem; }
.chat-send-btn { border: none; background: var(--accent); color: #fff; border-radius: var(--radius-sm); padding: 0.55rem 0.75rem; cursor: pointer; }
.chat-msg.system { background: transparent; color: var(--muted); font-size: 0.8rem; max-width: 100%; }
/* Legacy class cleanup */
.utility-bar, .hero-badge { display: none !important; }
.btn-red { background: var(--accent); color: #fff; }
.section-header .section-title { text-align: left; }

/* —— Unified page redesign —— */
main { min-height: 55vh; }

.page-shell {
  padding: 2rem 0 3.5rem;
}
.page-shell .form-card,
.page-shell .content-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}
.content-card + .content-card { margin-top: 1.25rem; }

.page-banner {
  background: linear-gradient(180deg, #ffffff 0%, #f7f6f4 100%);
  border-bottom: 1px solid var(--line);
  padding: 2.5rem 0 2rem;
}
.page-banner h1 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 0 0 0.4rem;
}
.page-banner p {
  margin: 0;
  max-width: 36rem;
  color: var(--muted);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}
.shop-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.5rem;
  align-items: start;
}
.shop-filters {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}
.shop-filters h3 {
  font-family: var(--font);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin: 0 0 1rem;
}
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.product-gallery {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-gallery img { width: 100%; height: auto; max-height: 420px; object-fit: contain; }
.product-info h1 { font-size: 1.75rem; margin-bottom: 0.5rem; }
.product-info .price { font-size: 1.5rem; margin: 0.75rem 0 1rem; }
.meta-list { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.meta-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}
.meta-list span { color: var(--muted); }

.auth-wrap {
  max-width: 420px;
  margin: 0 auto;
}
.auth-wrap .form-card { padding: 2rem; }
.auth-wrap h1 { font-size: 1.5rem; margin-bottom: 0.35rem; text-align: center; }
.auth-wrap .auth-sub { text-align: center; color: var(--muted); margin-bottom: 1.5rem; font-size: 0.9rem; }
.auth-wrap .auth-footer { text-align: center; margin-top: 1.25rem; font-size: 0.9rem; color: var(--muted); }

.table-modern {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.table-modern th {
  text-align: left;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding: 0.65rem 0.5rem;
  border-bottom: 1px solid var(--line);
}
.table-modern td {
  padding: 0.85rem 0.5rem;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: middle;
}
.status-pill {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--bg);
  color: var(--ink-soft);
  border: 1px solid var(--line);
}
.status-pill.pending { background: var(--warn-bg); color: var(--warn); border-color: #fde68a; }
.status-pill.completed, .status-pill.paid, .status-pill.confirmed { background: var(--ok-bg); color: var(--ok); border-color: #bbf7d0; }
.status-pill.cancelled { background: var(--err-bg); color: var(--err); border-color: #fecaca; }

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.review-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.review-card .stars { color: var(--accent); margin-bottom: 0.5rem; letter-spacing: 0.05em; }
.review-card .author { font-size: 0.8rem; color: var(--muted); margin-top: 0.75rem; }

.checkout-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
  align-items: start;
}
.order-summary {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}
.order-summary h2 {
  font-family: var(--font);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin: 0 0 1rem;
}
.summary-line {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  font-size: 0.9rem;
}
.summary-line.total {
  border-top: 1px solid var(--line);
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  font-weight: 700;
  font-size: 1.05rem;
}

.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
}
.empty-state h3 { color: var(--ink); margin-bottom: 0.5rem; }

@media (max-width: 900px) {
  .two-col, .shop-layout, .product-detail-grid, .checkout-layout { grid-template-columns: 1fr; }
  .shop-filters, .order-summary { position: static; }
}
/* Hide any leftover chat UI */
.chat-widget, #chatWidget, #chat-widget { display: none !important; }


/* Orange theme polish + animations */
:root {
  --accent: #f97316;
  --accent-hover: #ea580c;
  --accent-deep: #c2410c;
  --accent-soft: #fff7ed;
  --accent-border: #fed7aa;
}

.site-header { backdrop-filter: blur(10px); background: rgba(255,255,255,.92); }

@keyframes hp-fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes hp-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes hp-scale-in {
  from { opacity: 0; transform: scale(.96); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes hp-slide-in-right {
  from { opacity: 0; transform: translateX(16px); }
  to { opacity: 1; transform: translateX(0); }
}

.animate-fade-up { animation: hp-fade-up .55s ease both; }
.animate-fade-in { animation: hp-fade-in .5s ease both; }
.delay-1 { animation-delay: .08s; }
.delay-2 { animation-delay: .16s; }
.delay-3 { animation-delay: .24s; }
.delay-4 { animation-delay: .32s; }

.hero { animation: hp-fade-in .4s ease both; }
.hero-grid > * { animation: hp-fade-up .6s ease both; }
.hero-grid > *:last-child { animation-delay: .12s; }
.why-card, .product-card, .cat-card, .step-card, .review-card, .adv-card {
  animation: hp-fade-up .5s ease both;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.why-card:hover, .product-card:hover, .cat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(249,115,22,.12);
  border-color: var(--accent-border);
}
.btn { transition: transform .15s ease, background .15s, box-shadow .15s; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(249,115,22,.28); }
.page-banner { animation: hp-fade-in .35s ease both; }
.form-card, .content-card { animation: hp-scale-in .4s ease both; }

.btn-primary, .chat-toggle, #chat-toggle {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
}
.btn-primary:hover, .chat-toggle:hover {
  background: var(--accent-hover) !important;
}
.price, .nav-main a.active, .nav-main a:hover { color: var(--accent) !important; }
.brand-text small { color: var(--accent); }
.icon-btn:hover { border-color: var(--accent-border); color: var(--accent); background: var(--accent-soft); }
.cart-badge { background: var(--accent); }

/* Floating chat restored */
.chat-widget, #chatWidget {
  display: block !important;
  position: fixed;
  right: 1.15rem;
  bottom: 1.15rem;
  z-index: 9999;
}
.chat-toggle {
  width: 56px; height: 56px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--accent); color: #fff;
  box-shadow: 0 10px 28px rgba(249,115,22,.4);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  transition: transform .2s, box-shadow .2s;
}
.chat-toggle:hover { transform: scale(1.06); }
.chat-unread {
  position: absolute; top: -2px; right: -2px;
  background: #fff; color: var(--accent);
  font-size: 11px; font-weight: 700;
  min-width: 18px; height: 18px; border-radius: 50%;
  display: none; align-items: center; justify-content: center;
  border: 2px solid var(--accent);
}
.chat-panel {
  position: absolute; right: 0; bottom: 68px;
  width: 360px; max-width: calc(100vw - 1.5rem);
  background: #fff; border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0,0,0,.14);
  border: 1px solid #e4e4e7;
  overflow: hidden;
  flex-direction: column;
  animation: hp-scale-in .25s ease both;
}
.chat-header {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #fff; padding: 0.9rem 1rem;
  display: flex; justify-content: space-between; align-items: center;
}
.chat-status { display: block; font-size: 0.75rem; opacity: .85; font-weight: 400; }
.chat-close { background: none; border: none; color: #fff; cursor: pointer; }
.chat-messages { height: 300px; overflow-y: auto; padding: 1rem; background: #fafafa; }
.chat-msg.system { color: #71717a; font-size: 0.8rem; background: transparent; max-width: 100%; }
.chat-input-area { padding: 0.75rem; border-top: 1px solid #e4e4e7; background: #fff; }
.chat-compose { display: flex; gap: 0.35rem; align-items: center; }
.chat-compose input[type=text] {
  flex: 1; border: 1px solid #e4e4e7; border-radius: 8px; padding: 0.55rem 0.75rem; font: inherit;
}
.chat-attach-btn { cursor: pointer; color: #71717a; display: flex; padding: 0.35rem; }
.chat-send-btn {
  border: none; background: var(--accent); color: #fff;
  border-radius: 8px; padding: 0.55rem 0.75rem; cursor: pointer;
}
.chat-row.from-admin .chat-bubble, .chat-bubble.admin, .chat-msg.admin {
  background: var(--accent); color: #fff; margin-left: auto;
}
.chat-row.from-user .chat-bubble, .chat-bubble.user, .chat-msg.user {
  background: #fff; border: 1px solid #e4e4e7;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Nav search */
.nav-search {
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.15rem 0.35rem 0.15rem 0.85rem;
  transition: border-color .15s, box-shadow .15s;
}
.nav-search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(249,115,22,.12);
}
.nav-search input {
  border: none;
  background: transparent;
  outline: none;
  width: 140px;
  font: inherit;
  font-size: 0.85rem;
  padding: 0.4rem 0;
}
.nav-search button {
  border: none;
  background: var(--accent);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.brand img {
  background: var(--accent);
  border-radius: 10px;
  object-fit: contain;
  padding: 4px;
}

/* Checkout steps */
.checkout-steps {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.checkout-steps span {
  flex: 1;
  text-align: center;
  padding: 0.65rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  min-width: 120px;
}
.checkout-steps span.on {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: var(--accent-deep, #c2410c);
}

/* Homepage category/product cards */
.cat-card, .product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.product-card .body { padding: 1rem 1.1rem 1.15rem; }
.product-card h3 { font-size: 0.95rem; line-height: 1.35; }
.cat-grid .cat-card {
  padding: 1.25rem 1.15rem;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Why shop */
.why-modern {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.15rem;
}
.why-modern .why-card {
  text-align: center;
  padding: 1.75rem 1.25rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 4px 20px rgba(0,0,0,.04);
}
.why-modern .icon {
  margin: 0 auto 1rem;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(145deg, #fff7ed, #ffedd5);
  color: var(--accent);
}

/* Payment method icons */
.pm-logos { gap: 0.65rem; }
.pm-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
}
.pm-badge svg { width: 16px; height: 16px; }

/* Account sidebar (Majestic-style) */
.account-shell {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 1.5rem;
  align-items: start;
}
.account-side {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 0.75rem;
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}
.account-side .side-user {
  padding: 0.5rem 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0.5rem;
}
.account-side .side-user strong { display: block; font-size: 0.95rem; }
.account-side .side-user span { font-size: 0.8rem; color: var(--muted); }
.account-side a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.9rem;
}
.account-side a:hover, .account-side a.active {
  background: var(--accent-soft);
  color: var(--accent-hover);
}
.account-main {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.5rem;
  min-height: 320px;
}
.account-menu-btn { display: none; }

.map-embed {
  border: 0;
  border-radius: 14px;
  width: 100%;
  height: 280px;
  border: 1px solid var(--line);
}

@media (max-width: 900px) {
  .why-modern { grid-template-columns: 1fr 1fr; }
  .account-shell { grid-template-columns: 1fr; }
  .account-menu-btn { display: inline-flex; margin-bottom: 0.75rem; }
  .account-side {
    position: fixed; left: 0; top: 0; bottom: 0; width: min(280px, 86vw);
    z-index: 1100; transform: translateX(-105%); transition: transform .25s;
    border-radius: 0; overflow-y: auto;
  }
  .account-side.open { transform: translateX(0); }
  .nav-search input { width: 100px; }
}
@media (max-width: 640px) {
  .why-modern { grid-template-columns: 1fr; }
  .nav-search { display: none; }
  .header-actions .nav-search-mobile { display: flex; }
}
