:root {
  --background: #f4f6f8;
  --foreground: #2c4a5e;

  --ink: #2c4a5e;
  --ink-light: #3f6278;
  --ink-soft: #5c7a8c;
  --clay: #e8392c;
  --clay-light: #ff5b46;
  --clay-dark: #b8281d;
  --sand: #eef1f3;
  --sand-dark: #dde3e6;
  --moss: #3f7268;
  --moss-light: #5c9186;
  --moss-dark: #2a4f47;
  --slate: #8a8a8a;
  --slate-light: #a8a8a8;
  --slate-dark: #676767;

  --grad-ink: linear-gradient(135deg, #3f6278, #1c313e);
  --grad-clay: linear-gradient(135deg, #ff5b46, #b8281d);
  --grad-moss: linear-gradient(135deg, #5c9186, #2a4f47);
  --grad-slate: linear-gradient(135deg, #a8a8a8, #676767);
  --grad-sand: linear-gradient(135deg, #eef1f3, #dde3e6);

  --font-display: "Fraunces", Georgia, "Iowan Old Style", "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --shadow-sm: 0 1px 2px rgba(35,64,79, 0.06);
  --shadow-md: 0 8px 24px -8px rgba(35,64,79, 0.16);
  --shadow-lg: 0 24px 48px -16px rgba(35,64,79, 0.22);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 80rem;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
}

html { scroll-behavior: smooth; }

body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main { flex: 1; }

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

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Entrance animation ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.7s var(--ease) both; }
.fade-up-delay-1 { animation: fadeUp 0.7s var(--ease) 0.1s both; }
.fade-up-delay-2 { animation: fadeUp 0.7s var(--ease) 0.2s both; }
.fade-up-delay-3 { animation: fadeUp 0.7s var(--ease) 0.3s both; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(244,246,248, 0.82);
  backdrop-filter: blur(10px) saturate(1.4);
  -webkit-backdrop-filter: blur(10px) saturate(1.4);
  border-bottom: 1px solid rgba(35,64,79, 0.08);
}
.site-header .container {
  height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.icon-tile { display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; position: relative; }
.icon-tile svg { width: 52%; height: 52%; flex-shrink: 0; position: relative; z-index: 1; }

.brand-mark {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.65rem;
  background: var(--grad-ink);
  color: var(--sand);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}
.brand-logo { height: 2.15rem; width: auto; display: block; }
.footer-logo { height: 3.5rem; width: auto; display: block; }
.footer-brand-link { display: inline-block; }
.main-nav {
  display: none;
  gap: 2.25rem;
  align-items: center;
}
.main-nav a {
  position: relative;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: color .2s var(--ease);
  padding-bottom: 0.3rem;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--clay);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
.main-nav a:hover, .main-nav a.active { color: var(--ink); }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 0.75rem; }
.icon-btn {
  position: relative;
  width: 2.6rem;
  height: 2.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid rgba(35,64,79,0.12);
  color: var(--ink);
  background: #fff;
  cursor: pointer;
  transition: border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.icon-btn:hover { border-color: var(--clay); color: var(--clay); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.cart-badge {
  position: absolute;
  top: -0.35rem;
  right: -0.35rem;
  min-width: 1.3rem;
  height: 1.3rem;
  border-radius: 9999px;
  background: var(--grad-clay);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.3rem;
  box-shadow: 0 2px 6px rgba(232,57,44,0.4);
}
.cart-badge.hidden { display: none; }

.nav-toggle { display: inline-flex; }
.hide-mobile { }
@media (max-width: 639px) { .hide-mobile { display: none !important; } }
.mobile-nav {
  display: none;
  border-top: 1px solid rgba(35,64,79,0.08);
  background: var(--sand);
}
.mobile-nav.open { display: block; }
.mobile-nav .container { flex-direction: column; align-items: flex-start; height: auto; padding: 1.25rem 1.5rem; gap: 1.1rem; }
.mobile-nav a { font-size: 0.9rem; font-weight: 600; color: var(--ink-soft); }

@media (min-width: 768px) {
  .main-nav { display: flex; }
  .nav-toggle { display: none; }
  .mobile-nav { display: none !important; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.8rem 1.7rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn-primary { background: var(--grad-clay); color: #fff; box-shadow: 0 10px 22px -10px rgba(232,57,44,0.65); }
.btn-primary:hover { transform: translateY(-1.5px); box-shadow: 0 14px 28px -10px rgba(232,57,44,0.75); }
.btn-outline { border-color: rgba(35,64,79,0.18); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--ink); transform: translateY(-1.5px); box-shadow: var(--shadow-sm); }
.btn-dark { background: var(--grad-ink); color: #fff; box-shadow: 0 10px 22px -10px rgba(35,64,79,0.55); }
.btn-dark:hover { transform: translateY(-1.5px); box-shadow: 0 14px 28px -10px rgba(35,64,79,0.65); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none !important; }
.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.8rem; }

/* ---------- Hero / page header ---------- */
.page-hero {
  position: relative;
  border-bottom: 1px solid rgba(35,64,79,0.08);
  background:
    radial-gradient(circle at 14% 20%, rgba(232,57,44,0.14), transparent 45%),
    radial-gradient(circle at 85% 0%, rgba(63,114,104,0.14), transparent 40%),
    var(--sand-dark);
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(35,64,79,0.09) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 85%);
  opacity: 0.5;
}
.page-hero .container { padding: 4rem 1.5rem; position: relative; }
.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--clay-dark);
  margin: 0 0 0.9rem;
}
.page-hero h1 { font-size: 2.35rem; margin: 0; max-width: 40rem; letter-spacing: -0.02em; line-height: 1.1; }
.page-hero p { margin-top: 1.1rem; color: var(--ink-soft); max-width: 38rem; font-size: 1.08rem; line-height: 1.65; }

/* Scrollable hero copy block — used where the intro text runs long, so it
   scrolls within a fixed-height box instead of stretching the hero
   section's height on every page that uses it. */
.hero-copy-scroll {
  max-height: 13.5rem;
  overflow-y: auto;
  max-width: 38rem;
  margin-top: 1.1rem;
  padding-right: 1rem;
}
.hero-copy-scroll p { margin: 0 0 1rem; max-width: none; }
.hero-copy-scroll p:last-child { margin-bottom: 0; }
.hero-copy-scroll::-webkit-scrollbar { width: 8px; }
.hero-copy-scroll::-webkit-scrollbar-track { background: transparent; }
.hero-copy-scroll::-webkit-scrollbar-thumb { background: rgba(35,64,79,0.22); border-radius: 999px; }
.hero-copy-scroll::-webkit-scrollbar-thumb:hover { background: rgba(35,64,79,0.35); }
.hero-tagline { margin-top: 1.25rem; font-weight: 700; font-size: 1.15rem; color: var(--ink); }

/* Two-column hero layout: copy on the left, floating photo stack on the
   right. Single column (visual hidden) below tablet width, since three
   drifting photo cards don't have room to breathe on a phone. */
.hero-layout { display: block; }
.hero-visual { display: none; }
@media (min-width: 900px) {
  .hero-layout { display: grid; grid-template-columns: minmax(0, 38rem) 1fr; gap: 2rem; align-items: center; }
  .hero-visual {
    display: block;
    position: relative;
    height: 22rem;
    justify-self: center;
    width: 100%;
    max-width: 26rem;
  }
}
.hero-visual-card {
  position: absolute;
  width: 11.5rem;
  border-radius: 0.9rem;
  padding: 0.5rem;
  background: #fff;
  box-shadow: 0 1.25rem 2.5rem rgba(35,64,79,0.18);
  animation: hero-float 7s ease-in-out infinite;
}
.hero-visual-card img { width: 100%; height: 9.5rem; object-fit: cover; border-radius: 0.55rem; display: block; }
.hero-visual-card.card-1 { top: 0; left: 1rem; --tilt: -6deg; animation-delay: 0s; z-index: 3; }
.hero-visual-card.card-2 { top: 3.75rem; right: 0.5rem; --tilt: 5deg; animation-delay: 1.4s; z-index: 2; }
.hero-visual-card.card-3 { bottom: 0; left: 3.5rem; --tilt: -3deg; animation-delay: 2.8s; z-index: 1; }

@keyframes hero-float {
  0%, 100% { transform: translateY(0) rotate(var(--tilt, 0deg)); }
  50% { transform: translateY(-0.85rem) rotate(var(--tilt, 0deg)); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-visual-card { animation: none; }
}

@media (min-width: 768px) {
  .page-hero h1 { font-size: 3.1rem; }
}

/* ---------- Home hero ---------- */
.home-hero {
  position: relative;
  border-bottom: 1px solid rgba(35,64,79,0.08);
  background:
    radial-gradient(ellipse 60% 50% at 100% 0%, rgba(63,114,104,0.16), transparent 60%),
    radial-gradient(ellipse 55% 45% at 0% 100%, rgba(232,57,44,0.14), transparent 60%),
    var(--sand);
  overflow: hidden;
}
.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(35,64,79,0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse 70% 60% at 20% 20%, black, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 20% 20%, black, transparent 70%);
}
.home-hero .container { padding: 4.5rem 1.5rem 5rem; display: grid; gap: 3.5rem; position: relative; }
.home-hero h1 { font-size: 2.6rem; line-height: 1.04; letter-spacing: -0.02em; margin: 1.1rem 0 0; }
.home-hero h1 em {
  font-style: italic;
  font-weight: 500;
  background: linear-gradient(100deg, var(--clay), var(--clay-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.home-hero .lede { margin-top: 1.6rem; color: var(--ink-soft); font-size: 1.12rem; max-width: 34rem; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.25rem; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3.25rem; max-width: 28rem; }
.hero-stats dt { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; color: var(--ink); }
.hero-stats dd { margin: 0.3rem 0 0; font-size: 0.75rem; color: var(--ink-soft); line-height: 1.4; }
.hero-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.hero-tile {
  border-radius: 1.1rem;
  border: 1px solid rgba(35,64,79,0.08);
  background: #fff;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  box-shadow: var(--shadow-md);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.hero-tile:nth-child(1) { transform: rotate(-1.4deg); }
.hero-tile:nth-child(2) { transform: rotate(1deg); }
.hero-tile:nth-child(3) { transform: rotate(1.2deg); }
.hero-tile:nth-child(4) { transform: rotate(-0.9deg); }
.hero-tile:hover { transform: rotate(0) translateY(-3px); box-shadow: var(--shadow-lg); }
.hero-tile .icon-tile {
  width: 2.75rem; height: 2.75rem; border-radius: 0.65rem;
  background: var(--grad-ink); color: var(--sand);
}
.hero-tile p { margin: 0; font-size: 0.9rem; font-weight: 600; font-family: var(--font-display); }

@media (min-width: 768px) {
  .home-hero .container { grid-template-columns: 1fr 1fr; align-items: center; }
  .home-hero h1 { font-size: 3.75rem; }
}

/* ---------- Sections ---------- */
.section { padding: 4rem 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.25rem;
}
.section-head h2 { font-size: 1.9rem; margin: 0; }
.section-head .link { font-size: 0.875rem; font-weight: 600; color: var(--ink-soft); transition: color .2s var(--ease); }
.section-head .link:hover { color: var(--clay); }

.section-dark {
  background: var(--grad-ink);
  color: var(--sand);
  position: relative;
  overflow: hidden;
}
.section-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(238,241,243,0.06) 1px, transparent 1px);
  background-size: 26px 26px;
}
.section-dark .container { position: relative; }
.section-dark h2 { color: #fff; font-size: 2rem; }
.section-dark .eyebrow { color: var(--clay-light); }

.steps { display: grid; gap: 2.75rem; margin-top: 3.25rem; }
.step-num {
  width: 2.35rem; height: 2.35rem; border-radius: 9999px;
  background: var(--grad-clay); color: #fff; font-weight: 700; font-size: 0.875rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 18px -6px rgba(232,57,44,0.55);
}
.step h3 { margin: 1.1rem 0 0.5rem; color: #fff; font-size: 1.15rem; }
.step p { margin: 0; color: rgba(238,241,243,0.68); font-size: 0.92rem; line-height: 1.65; }

@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}

.cta-banner {
  position: relative;
  border-radius: 1.5rem;
  background: linear-gradient(135deg, rgba(232,57,44,0.12), rgba(232,57,44,0.05));
  border: 1px solid rgba(232,57,44,0.22);
  padding: 2.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  align-items: flex-start;
  justify-content: space-between;
  overflow: hidden;
}
.cta-banner h2 { margin: 0; max-width: 28rem; font-size: 1.75rem; }
.cta-banner p { margin: 0.85rem 0 0; color: var(--ink-soft); max-width: 28rem; }

@media (min-width: 768px) {
  .cta-banner { flex-direction: row; align-items: center; padding: 3.25rem; }
}

/* ---------- Grids & Cards ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: repeat(2, 1fr); }

@media (min-width: 640px) {
  .grid-2, .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  display: flex;
  flex-direction: column;
  border-radius: 1.15rem;
  border: 1px solid rgba(35,64,79,0.08);
  background: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(35,64,79,0.12); }

.service-card { padding: 1.75rem; }
.service-card .icon-tile { width: 3.1rem; height: 3.1rem; border-radius: 0.75rem; box-shadow: var(--shadow-sm); }
.service-card h3 { margin: 1.15rem 0 0.5rem; font-size: 1.2rem; }
.service-card p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; line-height: 1.55; }
.service-card .learn-more { margin-top: 1.15rem; display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.875rem; font-weight: 700; transition: gap .2s var(--ease); }
.service-card:hover .learn-more { gap: 0.5rem; }
.learn-more svg { width: 1rem; height: 1rem; flex-shrink: 0; }
.remove-btn svg { width: 1.2rem; height: 1.2rem; flex-shrink: 0; }

.product-card-media {
  height: 10.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.product-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(35,64,79,0.06) 1px, transparent 1px);
  background-size: 16px 16px;
}
.product-card-media svg { width: 3.5rem; height: 3.5rem; position: relative; z-index: 1; transition: transform .35s var(--ease); }
.card:hover .product-card-media svg { transform: scale(1.08) rotate(-2deg); }
.product-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
  transition: transform .35s var(--ease);
}
.card:hover .product-card-media img { transform: scale(1.05); }
.product-card-body { padding: 1.35rem; display: flex; flex-direction: column; flex: 1; }
.product-card-body h3 { margin: 0; font-size: 1.02rem; font-weight: 600; font-family: var(--font-sans); letter-spacing: -0.005em; }
.product-card-body p { margin: 0.4rem 0 0; font-size: 0.85rem; color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card-footer { margin-top: 1.1rem; display: flex; align-items: flex-end; justify-content: space-between; }
.product-price { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: var(--ink); }
.product-min { font-size: 0.7rem; color: rgba(35,64,79,0.5); margin: 0; }
.pill {
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 9999px;
  padding: 0.32rem 0.75rem;
  display: inline-block;
}

/* ---------- Color themes (mirrors the brand palette per category) ------- */
.theme-ink .icon-tile { background: var(--grad-ink); color: var(--sand); }
.theme-ink .learn-more, .theme-ink .pill, .theme-ink .product-price-accent { color: var(--ink); }
.theme-ink .product-card-media { background: linear-gradient(160deg, #e2e7ea, #ccd5da); }
.theme-ink .pill { background: rgba(35,64,79,0.08); }

.theme-clay .icon-tile { background: var(--grad-clay); color: #fff; }
.theme-clay .learn-more, .theme-clay .pill, .theme-clay .product-price-accent { color: var(--clay-dark); }
.theme-clay .product-card-media { background: linear-gradient(160deg, #fde3e0, #f8c4bd); }
.theme-clay .pill { background: rgba(232,57,44,0.12); }

.theme-moss .icon-tile { background: var(--grad-moss); color: #fff; }
.theme-moss .learn-more, .theme-moss .pill, .theme-moss .product-price-accent { color: var(--moss-dark); }
.theme-moss .product-card-media { background: linear-gradient(160deg, #dceeea, #bcdcd3); }
.theme-moss .pill { background: rgba(63,114,104,0.12); }

.theme-slate .icon-tile { background: var(--grad-slate); color: #fff; }
.theme-slate .learn-more, .theme-slate .pill, .theme-slate .product-price-accent { color: var(--slate-dark); }
.theme-slate .product-card-media { background: linear-gradient(160deg, #e6e6e6, #d0d0d0); }
.theme-slate .pill { background: rgba(138,138,138,0.12); }

.theme-sand .icon-tile { background: var(--grad-sand); color: var(--ink); }
.theme-sand .learn-more, .theme-sand .pill { color: var(--ink); }
.theme-sand .product-card-media { background: var(--sand-dark); }
.theme-sand .pill { background: var(--sand-dark); }

/* ---------- Category filter chips ---------- */
.chip-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2.75rem; }
.chip {
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 9999px;
  padding: 0.55rem 1.15rem;
  border: 1px solid rgba(35,64,79,0.16);
  color: var(--ink-soft);
  background: #fff;
  cursor: pointer;
  transition: border-color .2s var(--ease), background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.chip:hover { border-color: var(--ink); transform: translateY(-1px); }
.chip.active { background: var(--grad-ink); color: #fff; border-color: var(--ink); box-shadow: var(--shadow-sm); }

/* ---------- Forms ---------- */
.field { margin-bottom: 1.35rem; }
.field label { display: block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.01em; margin-bottom: 0.5rem; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%;
  border-radius: 0.7rem;
  border: 1px solid rgba(35,64,79,0.16);
  padding: 0.75rem 1rem;
  font-size: 0.92rem;
  font-family: inherit;
  background: #fff;
  color: var(--ink);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--clay);
  box-shadow: 0 0 0 4px rgba(232,57,44,0.13);
}
.field-row { display: grid; gap: 1.35rem; }
@media (min-width: 640px) { .field-row-2 { grid-template-columns: 1fr 1fr; } }
.field-hint { font-size: 0.75rem; color: rgba(35,64,79,0.45); margin-top: 0.4rem; }
.form-error { color: var(--clay-dark); font-size: 0.875rem; }
.form-success {
  border-radius: 1.15rem;
  border: 1px solid rgba(63,114,104,0.25);
  background: linear-gradient(160deg, rgba(63,114,104,0.1), rgba(63,114,104,0.04));
  padding: 2.25rem;
  text-align: center;
}
.form-success p:first-child { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; color: var(--moss-dark); margin: 0; }
.form-success p { margin: 0.6rem 0 0; color: var(--ink-soft); }

/* ---------- Product detail ---------- */
.product-detail { display: grid; gap: 3.25rem; padding: 2.75rem 0 4.5rem; }
.product-media {
  border-radius: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 20rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.product-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(35,64,79,0.06) 1px, transparent 1px);
  background-size: 20px 20px;
}
.product-media svg { width: 7rem; height: 7rem; position: relative; z-index: 1; }
.product-media img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; }
.product-detail h1 { font-size: 1.9rem; margin: 1rem 0 0.6rem; }
.product-detail .price { font-family: var(--font-display); font-size: 1.65rem; font-weight: 600; margin: 0 0 0.85rem; color: var(--ink); }
.product-detail .price .unit { font-family: var(--font-sans); font-size: 0.85rem; font-weight: 500; color: rgba(35,64,79,0.5); }
.feature-list { list-style: none; padding: 0; margin: 1.1rem 0; display: flex; flex-direction: column; gap: 0.55rem; }
.feature-list li { display: flex; gap: 0.6rem; font-size: 0.92rem; color: var(--ink-soft); align-items: flex-start; }
.feature-list svg { width: 1.2rem; height: 1.2rem; flex-shrink: 0; color: var(--moss); }
.pill-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }

@media (min-width: 768px) {
  .product-detail { grid-template-columns: 1fr 1fr; }
}

/* ---------- Cart / checkout ---------- */
.cart-lines { border-top: 1px solid rgba(35,64,79,0.1); border-bottom: 1px solid rgba(35,64,79,0.1); }
.cart-line { display: flex; align-items: center; gap: 1rem; padding: 1.25rem 0; border-bottom: 1px solid rgba(35,64,79,0.06); }
.cart-line:last-child { border-bottom: none; }
.cart-line .name { flex: 1; font-weight: 600; }
.cart-line input[type="number"] { width: 4.5rem; text-align: center; padding: 0.5rem; border-radius: 0.5rem; border: 1px solid rgba(35,64,79,0.18); }
.cart-line .line-total { width: 6rem; text-align: right; font-weight: 600; font-family: var(--font-display); }
.cart-line .remove-btn { background: none; border: none; cursor: pointer; color: rgba(35,64,79,0.4); transition: color .2s var(--ease); }
.cart-line .remove-btn:hover { color: var(--clay); }
.summary-box { border-radius: 1.15rem; border: 1px solid rgba(35,64,79,0.08); background: #fff; padding: 1.75rem; height: fit-content; box-shadow: var(--shadow-sm); }
.summary-row { display: flex; justify-content: space-between; font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 0.55rem; }
.summary-total { display: flex; justify-content: space-between; font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; padding-top: 0.95rem; margin-top: 0.95rem; border-top: 1px solid rgba(35,64,79,0.1); }
.empty-state { text-align: center; padding: 4.5rem 0; }
.empty-state .icon-circle {
  width: 4.25rem; height: 4.25rem; border-radius: 9999px; background: var(--sand-dark);
  display: flex; align-items: center; justify-content: center; margin: 0 auto; color: rgba(35,64,79,0.4);
}
.checkout-grid { display: grid; gap: 3.25rem; }
@media (min-width: 768px) { .checkout-grid { grid-template-columns: 2fr 1fr; } }
.notice-box { border-radius: 0.85rem; border: 1px dashed rgba(35,64,79,0.22); padding: 1.1rem 1.25rem; margin-bottom: 1.35rem; background: rgba(35,64,79,0.02); }
.notice-box p:first-child { font-weight: 600; margin: 0; font-size: 0.9rem; }
.notice-box p { margin: 0.3rem 0 0; font-size: 0.78rem; color: rgba(35,64,79,0.55); line-height: 1.5; }

/* ---------- Admin table ---------- */
.table-wrap { overflow-x: auto; border-radius: 1.15rem; border: 1px solid rgba(35,64,79,0.08); background: #fff; box-shadow: var(--shadow-sm); }
table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
th { text-align: left; padding: 1.1rem; color: rgba(35,64,79,0.5); font-weight: 600; font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.06em; border-bottom: 1px solid rgba(35,64,79,0.1); background: rgba(35,64,79,0.015); }
td { padding: 1.1rem; border-bottom: 1px solid rgba(35,64,79,0.05); vertical-align: top; }
tbody tr { transition: background .15s var(--ease); }
tbody tr:hover { background: rgba(232,57,44,0.03); }
tr:last-child td { border-bottom: none; }
.admin-tabs { display: flex; gap: 0.6rem; margin-bottom: 2.25rem; flex-wrap: wrap; }
.muted { color: rgba(35,64,79,0.55); font-size: 0.8rem; }

.admin-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.35rem; }
.admin-toolbar h3 { margin: 0; font-size: 1.05rem; }

.admin-form {
  border-radius: 1.15rem;
  border: 1px solid rgba(35,64,79,0.08);
  background: #fff;
  padding: 1.75rem;
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-sm);
}
.admin-form h3 { margin: 0 0 1.25rem; font-size: 1.05rem; }
.admin-form-actions { display: flex; align-items: center; gap: 0.9rem; margin-top: 0.25rem; }

.icon-color-row { display: flex; align-items: flex-end; gap: 1rem; }
.icon-color-row .field { flex: 1; margin-bottom: 0; }
.icon-preview-swatch {
  width: 2.85rem; height: 2.85rem; border-radius: 0.6rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-bottom: 1.35rem;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.icon-preview-swatch svg { width: 55%; height: 55%; }
.icon-preview-swatch { overflow: hidden; }
.icon-preview-swatch img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }

.row-thumb {
  width: 2.25rem; height: 2.25rem; border-radius: 0.55rem;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  overflow: hidden;
}
.row-thumb svg { width: 55%; height: 55%; }
.row-thumb img { width: 100%; height: 100%; object-fit: cover; }

.photo-upload-row { display: flex; align-items: flex-start; gap: 1rem; }
.photo-upload-row .icon-preview-swatch { width: 4.5rem; height: 4.5rem; margin-bottom: 0; }
.photo-upload-row input[type="file"] { font-size: 0.82rem; }
.photo-upload-row .field-hint { margin: 0.4rem 0; }

.table-actions { display: flex; gap: 0.9rem; white-space: nowrap; align-items: center; }
.btn-text { background: none; border: none; padding: 0; cursor: pointer; font-size: 0.8rem; font-weight: 600; font-family: inherit; color: var(--ink-soft); transition: color .2s var(--ease); }
.btn-text:hover { color: var(--ink); }
.btn-text-danger { color: var(--clay-dark); }
.btn-text-danger:hover { color: var(--clay); }
.btn-outline.btn-text-danger { border-color: rgba(232,57,44,0.3); }
.btn-outline.btn-text-danger:hover { border-color: var(--clay); background: rgba(232,57,44,0.05); }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 5.5rem;
  background: var(--grad-ink);
  color: rgba(238,241,243,0.8);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--clay), var(--moss-light), var(--slate-light));
}
.footer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.25rem; padding: 3.5rem 0; position: relative; }
.footer-grid h4 { font-family: var(--font-display); font-weight: 600; color: #fff; font-size: 0.95rem; margin: 0 0 0.9rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.6rem; font-size: 0.875rem; }
.footer-grid ul a { transition: color .2s var(--ease); }
.footer-grid ul a:hover { color: var(--clay-light); }
.footer-brand p { font-size: 0.875rem; line-height: 1.65; margin-top: 0.85rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.25rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: space-between;
  font-size: 0.72rem;
  color: rgba(238,241,243,0.55);
  position: relative;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Contact page ---------- */
.contact-grid { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 768px) { .contact-grid { grid-template-columns: 1.55fr 1fr; gap: 2.5rem; } }
.contact-card {
  border-radius: 1.15rem;
  border: 1px solid rgba(35,64,79,0.08);
  background: #fff;
  box-shadow: var(--shadow-sm);
  padding: 2rem;
}
.contact-card h2 { font-size: 1.3rem; margin: 0 0 0.4rem; }
.contact-card .contact-card-sub { font-size: 0.88rem; color: var(--ink-soft); margin: 0 0 1.75rem; }
.contact-info-list { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-info-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-info-item .icon-tile {
  width: 2.75rem; height: 2.75rem; border-radius: 0.75rem; flex-shrink: 0;
  background: var(--grad-ink); color: var(--sand); box-shadow: var(--shadow-sm);
}
.contact-info-item .label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(35,64,79,0.5); margin: 0; }
.contact-info-item .value { font-size: 0.95rem; margin: 0.3rem 0 0; font-weight: 600; color: var(--ink); }
.contact-info-item .value-sub { font-size: 0.82rem; margin: 0.15rem 0 0; color: var(--ink-soft); line-height: 1.5; }
.contact-hours { margin-top: 1.85rem; padding-top: 1.85rem; border-top: 1px solid rgba(35,64,79,0.08); }
.contact-hours h3 { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(35,64,79,0.5); margin: 0 0 0.9rem; }
.hours-row { display: flex; justify-content: space-between; font-size: 0.88rem; padding: 0.4rem 0; color: var(--ink-soft); }
.hours-row span:last-child { color: var(--ink); font-weight: 600; }
.contact-cta-card {
  margin-top: 1.5rem;
  border-radius: 1.15rem;
  padding: 1.75rem;
  background: linear-gradient(135deg, rgba(232,57,44,0.1), rgba(232,57,44,0.04));
  border: 1px solid rgba(232,57,44,0.2);
}
.contact-cta-card p:first-child { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; margin: 0; color: var(--ink); }
.contact-cta-card p { margin: 0.55rem 0 0; font-size: 0.85rem; color: var(--ink-soft); line-height: 1.55; }
.contact-cta-card .btn { margin-top: 1.15rem; width: 100%; }

/* ---------- Quote page ---------- */
.quote-steps { display: flex; flex-direction: column; gap: 1.5rem; }
.quote-step { display: flex; gap: 1rem; align-items: flex-start; }
.step-num-sm {
  width: 2rem; height: 2rem; border-radius: 9999px;
  background: var(--grad-clay); color: #fff; font-weight: 700; font-size: 0.8rem;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  box-shadow: 0 6px 14px -6px rgba(232,57,44,0.5);
}
.quote-step h4 { margin: 0; font-size: 0.92rem; font-family: var(--font-sans); font-weight: 700; color: var(--ink); }
.quote-step p { margin: 0.3rem 0 0; font-size: 0.82rem; color: var(--ink-soft); line-height: 1.5; }
.quote-trust-card {
  margin-top: 1.5rem;
  border-radius: 1.15rem;
  padding: 1.75rem;
  background: linear-gradient(135deg, rgba(63,114,104,0.1), rgba(63,114,104,0.04));
  border: 1px solid rgba(63,114,104,0.22);
}
.quote-trust-card h3 { margin: 0 0 1.1rem; font-size: 0.95rem; font-family: var(--font-display); font-weight: 600; color: var(--ink); }
.quote-trust-card .feature-list { margin: 0; gap: 0.75rem; }

/* ---------- Services page ---------- */
.service-card { position: relative; }
.service-card-num {
  position: absolute;
  top: 1.15rem;
  right: 1.5rem;
  font-family: var(--font-display);
  font-size: 2.35rem;
  font-weight: 600;
  color: rgba(35,64,79,0.07);
  line-height: 1;
  pointer-events: none;
  transition: color .3s var(--ease);
}
.card:hover .service-card-num { color: rgba(35,64,79,0.13); }

.value-props { display: grid; gap: 2.75rem; margin-top: 3rem; }
@media (min-width: 768px) { .value-props { grid-template-columns: repeat(3, 1fr); } }
.value-prop .icon-tile {
  width: 3.5rem; height: 3.5rem; border-radius: 1rem;
  margin-bottom: 1.35rem; box-shadow: var(--shadow-md);
}
.value-prop h3 { font-size: 1.15rem; margin: 0 0 0.6rem; }
.value-prop p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; line-height: 1.65; }

.services-jump { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 2rem 0 0; }
.services-jump a {
  font-size: 0.8rem; font-weight: 600; color: var(--ink-soft);
  border: 1px solid rgba(35,64,79,0.14); border-radius: 9999px;
  padding: 0.5rem 1.05rem; background: rgba(255,255,255,0.6);
  transition: border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.services-jump a:hover { border-color: var(--clay); color: var(--clay); transform: translateY(-1px); }

/* ---------- Admin shell ---------- */
.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(244,246,248, 0.9);
  backdrop-filter: blur(10px) saturate(1.4);
  -webkit-backdrop-filter: blur(10px) saturate(1.4);
  border-bottom: 1px solid rgba(35,64,79,0.08);
}
.admin-topbar .container { height: 4.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.admin-topbar-badge {
  font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--clay-dark); background: rgba(232,57,44,0.1); border-radius: 9999px;
  padding: 0.3rem 0.65rem; margin-left: 0.65rem;
}
.admin-topbar-actions { display: flex; align-items: center; gap: 1.5rem; }

.admin-footer { border-top: 1px solid rgba(35,64,79,0.08); }
.admin-footer .container { padding: 1.5rem 0; }
.admin-footer p { margin: 0; font-size: 0.8rem; }

.admin-page-header { margin-bottom: 1.75rem; }
.admin-page-header .crumb {
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em;
  color: var(--clay-dark); margin: 0 0 0.3rem;
}
.admin-page-header h1 { font-size: 1.55rem; margin: 0; }

.admin-shell { display: flex; flex-direction: column; gap: 1.75rem; align-items: flex-start; padding: 2.25rem 0 4rem; }
@media (min-width: 960px) { .admin-shell { flex-direction: row; gap: 2.5rem; } }

.admin-sidebar { width: 100%; display: flex; flex-direction: row; flex-wrap: wrap; gap: 0.5rem; }
@media (min-width: 960px) {
  .admin-sidebar { width: 15rem; flex-shrink: 0; flex-direction: column; flex-wrap: nowrap; position: sticky; top: 6.25rem; gap: 0.3rem; }
}

.admin-nav-item {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.7rem 0.95rem; border-radius: 0.85rem;
  font-size: 0.85rem; font-weight: 600; color: var(--ink-soft);
  cursor: pointer; border: 1px solid transparent; background: none; font-family: inherit;
  transition: background .2s var(--ease), color .2s var(--ease);
  flex: 1 1 auto; white-space: nowrap;
}
@media (min-width: 960px) { .admin-nav-item { flex: none; width: 100%; } }
.admin-nav-item svg { width: 1.15rem; height: 1.15rem; flex-shrink: 0; }
.admin-nav-item:hover { background: rgba(35,64,79,0.05); color: var(--ink); }
.admin-nav-item.active { background: var(--grad-ink); color: #fff; box-shadow: var(--shadow-sm); }
.admin-nav-item .badge {
  margin-left: auto; font-size: 0.68rem; font-weight: 700;
  background: rgba(35,64,79,0.08); color: var(--ink-soft);
  border-radius: 9999px; padding: 0.15rem 0.5rem; min-width: 1.3rem; text-align: center;
}
.admin-nav-item.active .badge { background: rgba(255,255,255,0.24); color: #fff; }

.admin-main { flex: 1; min-width: 0; width: 100%; }

.admin-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; margin-bottom: 2.5rem; }
@media (min-width: 640px) { .admin-stats { grid-template-columns: repeat(5, 1fr); } }
.admin-stat-card {
  background: #fff; border-radius: 1.1rem; border: 1px solid rgba(35,64,79,0.08);
  padding: 1.25rem; box-shadow: var(--shadow-sm);
  display: flex; align-items: center; gap: 0.9rem;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.admin-stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.admin-stat-card .icon-tile { width: 2.65rem; height: 2.65rem; border-radius: 0.75rem; flex-shrink: 0; }
.admin-stat-card .num { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--ink); line-height: 1; }
.admin-stat-card .label { font-size: 0.74rem; color: var(--ink-soft); margin-top: 0.3rem; }

.admin-login-shell {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  min-height: calc(100vh - 4.5rem);
  padding: 3.5rem 1.5rem;
  overflow: hidden;
}
.admin-login-shell::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(46rem 26rem at 12% -8%, rgba(63,114,104,0.10), transparent 60%),
    radial-gradient(38rem 24rem at 108% 12%, rgba(232,57,44,0.08), transparent 55%),
    radial-gradient(30rem 20rem at 50% 115%, rgba(44,74,94,0.06), transparent 60%);
}
.admin-login-card {
  position: relative; z-index: 1;
  width: 100%; max-width: 24rem; background: #fff; border-radius: 1.25rem;
  border: 1px solid rgba(35,64,79,0.08); box-shadow: var(--shadow-lg);
  padding: 2.5rem;
}
.admin-login-card-wide { max-width: 30rem; }
.admin-login-card .icon-tile {
  width: 3.25rem; height: 3.25rem; border-radius: 0.9rem; margin: 0 auto 1.25rem;
  background: var(--grad-ink); color: var(--sand); box-shadow: var(--shadow-sm);
}
.admin-login-card h2 { margin: 0 0 0.4rem; font-size: 1.3rem; text-align: center; }
.admin-login-card p.sub { margin: 0 0 1.75rem; font-size: 0.88rem; color: var(--ink-soft); text-align: center; line-height: 1.55; }

/* ---------- Status badges ---------- */
.status-badge {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.72rem; font-weight: 700; text-transform: capitalize;
  border-radius: 9999px; padding: 0.32rem 0.8rem; white-space: nowrap;
}
.status-badge::before { content: ""; width: 0.4rem; height: 0.4rem; border-radius: 9999px; background: currentColor; }
.status-received, .status-new { background: rgba(63,114,104,0.12); color: var(--moss-dark); }
.status-confirmed { background: rgba(44,74,94,0.1); color: var(--ink); }
.status-cancelled { background: rgba(232,57,44,0.1); color: var(--clay-dark); }

/* Admin order-status dropdown — reuses the status colour tokens above but
   as a real <select> so admins can change an order's status inline. */
select.status-select {
  appearance: none; -webkit-appearance: none;
  border: none; border-radius: 9999px; cursor: pointer;
  font-size: 0.72rem; font-weight: 700; text-transform: capitalize;
  padding: 0.32rem 1.75rem 0.32rem 0.9rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232c4a5e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.55rem center; background-size: 0.7rem;
}
select.status-select.status-received, select.status-select.status-new { background-color: rgba(63,114,104,0.12); color: var(--moss-dark); }
select.status-select.status-confirmed { background-color: rgba(44,74,94,0.1); color: var(--ink); }
select.status-select.status-cancelled { background-color: rgba(232,57,44,0.1); color: var(--clay-dark); }

/* ---------- Account page ---------- */
.account-shell { display: flex; flex-direction: column; gap: 2.75rem; padding: 2.75rem 0 5rem; }

.account-profile-card {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
  background: #fff; border-radius: 1.15rem; border: 1px solid rgba(35,64,79,0.08);
  box-shadow: var(--shadow-sm); padding: 1.75rem 2rem;
}
.account-profile-identity { display: flex; align-items: center; gap: 1.1rem; }
.account-avatar {
  width: 3.25rem; height: 3.25rem; border-radius: 9999px; background: var(--grad-ink); color: #fff;
  display: flex; align-items: center; justify-content: center; font-family: var(--font-display);
  font-size: 1.2rem; font-weight: 600; flex-shrink: 0;
}
.account-profile-identity h2 { margin: 0; font-size: 1.15rem; }
.account-profile-identity p { margin: 0.2rem 0 0; font-size: 0.85rem; color: var(--ink-soft); }

.account-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.account-section-head h2 { font-size: 1.35rem; margin: 0; }

.order-card, .quote-card {
  background: #fff; border-radius: 1.15rem; border: 1px solid rgba(35,64,79,0.08);
  box-shadow: var(--shadow-sm); padding: 1.6rem 1.85rem; margin-bottom: 1.1rem;
  transition: box-shadow .25s var(--ease);
}
.order-card:hover, .quote-card:hover { box-shadow: var(--shadow-md); }
.order-card-head, .quote-card-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding-bottom: 1rem; margin-bottom: 1.1rem; border-bottom: 1px solid rgba(35,64,79,0.07);
}
.order-card-head .meta, .quote-card-head .meta { font-size: 0.78rem; color: rgba(35,64,79,0.5); margin: 0.2rem 0 0; }
.order-card-head .ref, .quote-card-head .ref { font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: 1.05rem; margin: 0; }
.order-card-head-right, .quote-card-head-right { display: flex; align-items: center; gap: 0.75rem; }

.order-lines { display: flex; flex-direction: column; gap: 0.55rem; margin-bottom: 1.15rem; }
.order-line-row { display: flex; justify-content: space-between; font-size: 0.88rem; color: var(--ink-soft); }
.order-line-row span:last-child { color: var(--ink); font-weight: 600; }
.order-total-row { display: flex; justify-content: space-between; font-size: 0.95rem; font-weight: 700; color: var(--ink); padding-top: 0.65rem; margin-top: 0.2rem; margin-bottom: 1.15rem; border-top: 1px dashed rgba(35,64,79,0.14); }

.order-card-footer { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.order-card-address { font-size: 0.82rem; color: var(--ink-soft); max-width: 24rem; line-height: 1.55; }
.order-card-address strong { color: var(--ink); display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; margin-bottom: 0.3rem; }
.order-card-actions, .quote-card-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }

.quote-detail-row { display: flex; flex-wrap: wrap; gap: 0.4rem 1.75rem; margin-bottom: 1.1rem; }
.quote-detail-row div { font-size: 0.85rem; }
.quote-detail-row strong { display: block; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; color: rgba(35,64,79,0.45); font-weight: 700; margin-bottom: 0.25rem; }
.quote-detail-full { font-size: 0.88rem; color: var(--ink-soft); line-height: 1.6; margin-bottom: 1.1rem; }

.order-edit-form { background: rgba(35,64,79,0.02); border: 1px solid rgba(35,64,79,0.08); border-radius: 1rem; padding: 1.5rem; margin-top: 0.25rem; }
.order-edit-line { display: flex; align-items: center; gap: 1rem; padding: 0.6rem 0; border-bottom: 1px solid rgba(35,64,79,0.06); }
.order-edit-line:last-of-type { border-bottom: none; }
.order-edit-line .name { flex: 1; font-size: 0.9rem; font-weight: 600; color: var(--ink); }
.order-edit-line .price { font-size: 0.8rem; color: rgba(35,64,79,0.5); width: 6rem; }
.order-edit-line input[type="number"] { width: 4.5rem; text-align: center; padding: 0.5rem; border-radius: 0.5rem; border: 1px solid rgba(35,64,79,0.18); }
.order-edit-total { display: flex; justify-content: space-between; font-weight: 700; padding-top: 0.85rem; margin-top: 0.5rem; border-top: 1px solid rgba(35,64,79,0.1); }

.empty-account-state {
  text-align: center; padding: 3rem 1.5rem; border-radius: 1.15rem;
  border: 1px dashed rgba(35,64,79,0.18); background: rgba(35,64,79,0.02);
}
.empty-account-state p { margin: 0 0 1.25rem; color: var(--ink-soft); font-size: 0.92rem; }

/* ---------- Misc ---------- */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.hidden { display: none !important; }
.loading-text { color: rgba(35,64,79,0.5); font-size: 0.9rem; }
.back-link { font-size: 0.875rem; font-weight: 600; color: rgba(35,64,79,0.6); transition: color .2s var(--ease); }
.back-link:hover { color: var(--clay); }

/* ---------- WhatsApp floating button ---------- */
.whatsapp-fab {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(0,0,0,0.28);
  z-index: 999;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.whatsapp-fab:hover { transform: scale(1.08); box-shadow: 0 14px 30px rgba(0,0,0,0.32); }
.whatsapp-fab svg { width: 1.85rem; height: 1.85rem; }
@media (max-width: 640px) {
  .whatsapp-fab { right: 1rem; bottom: 1rem; width: 3.1rem; height: 3.1rem; }
  .whatsapp-fab svg { width: 1.6rem; height: 1.6rem; }
}

/* ---------- Admin: staff/role/permissions UI ---------- */
.admin-user-chip { display: flex; align-items: center; gap: 0.7rem; }
.admin-user-avatar {
  width: 2.35rem; height: 2.35rem; border-radius: 9999px; background: var(--grad-ink); color: #fff;
  display: flex; align-items: center; justify-content: center; font-family: var(--font-display);
  font-weight: 600; font-size: 0.85rem; flex-shrink: 0;
}
.admin-user-meta { display: flex; flex-direction: column; line-height: 1.3; }
.admin-user-meta .name { font-size: 0.85rem; font-weight: 700; color: var(--ink); }
.admin-user-meta .role { font-size: 0.7rem; color: var(--ink-soft); }
.role-badge {
  display: inline-flex; align-items: center; font-size: 0.65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em; border-radius: 9999px;
  padding: 0.22rem 0.6rem; background: rgba(35,64,79,0.08); color: var(--ink-soft);
}
.role-badge.role-owner { background: rgba(35,64,79,0.12); color: var(--ink); }
.role-badge.role-product_manager { background: rgba(232,57,44,0.12); color: var(--clay-dark); }
.role-badge.role-order_manager { background: rgba(63,114,104,0.12); color: var(--moss-dark); }
.role-badge.role-customer_support { background: rgba(138,138,138,0.15); color: var(--slate-dark); }
.role-badge.role-accountant { background: var(--sand-dark); color: var(--ink); }
.role-badge.role-warehouse_staff { background: rgba(44,74,94,0.1); color: var(--ink); }

.admin-sidebar-section { margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid rgba(35,64,79,0.08); }
@media (max-width: 959px) { .admin-sidebar-section { width: 100%; border-top: none; margin-top: 0; padding-top: 0; } }
.admin-sidebar-label {
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em;
  color: rgba(35,64,79,0.4); padding: 0 0.95rem 0.5rem;
}
@media (max-width: 959px) { .admin-sidebar-label { display: none; } }
.admin-nav-item.soon .badge { background: rgba(35,64,79,0.06); color: rgba(35,64,79,0.4); }

.coming-soon-card {
  text-align: center; padding: 4rem 1.5rem; border-radius: 1.15rem;
  border: 1px dashed rgba(35,64,79,0.18); background: rgba(35,64,79,0.02);
}
.coming-soon-card .icon-tile {
  width: 3.25rem; height: 3.25rem; border-radius: 0.9rem; margin: 0 auto 1.25rem;
  background: var(--grad-ink); color: var(--sand);
}
.coming-soon-card h3 { margin: 0 0 0.5rem; font-size: 1.1rem; }
.coming-soon-card p { margin: 0 auto; max-width: 26rem; color: rgba(35,64,79,0.6); font-size: 0.88rem; line-height: 1.6; }

.perm-matrix-wrap { overflow-x: auto; border-radius: 1.15rem; border: 1px solid rgba(35,64,79,0.08); background: #fff; box-shadow: var(--shadow-sm); }
.perm-matrix { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.perm-matrix th, .perm-matrix td { padding: 0.75rem 0.9rem; text-align: center; border-bottom: 1px solid rgba(35,64,79,0.06); white-space: nowrap; }
.perm-matrix th { color: rgba(35,64,79,0.5); font-weight: 600; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; background: rgba(35,64,79,0.015); }
.perm-matrix td:first-child, .perm-matrix th:first-child { text-align: left; font-weight: 600; color: var(--ink); position: sticky; left: 0; background: #fff; }
.perm-matrix tr:last-child td { border-bottom: none; }
.perm-matrix input[type="checkbox"] { width: 1.05rem; height: 1.05rem; cursor: pointer; accent-color: var(--clay); }
.perm-matrix-role-row td:first-child { background: rgba(35,64,79,0.02); padding-top: 1rem; }
.perm-role-heading { font-family: var(--font-display); font-size: 0.95rem; font-weight: 600; color: var(--ink); margin: 2rem 0 0.75rem; }
.perm-role-heading:first-child { margin-top: 0; }

.bar-chart { display: flex; align-items: flex-end; gap: 0.35rem; height: 9rem; padding: 0.5rem 0 0; border-bottom: 1.5px solid rgba(35,64,79,0.12); }
.bar-chart .bar-col {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  height: 100%; min-width: 0.4rem; background: rgba(35,64,79,0.035); border-radius: 0.3rem 0.3rem 0 0;
  transition: background .2s var(--ease);
}
.bar-chart .bar-col:hover { background: rgba(35,64,79,0.07); }
.bar-chart .bar { width: 100%; background: var(--grad-clay); border-radius: 0.25rem 0.25rem 0 0; min-height: 3px; transition: filter .2s var(--ease); }
.bar-chart .bar-col:hover .bar { filter: brightness(1.1); }
.bar-chart-empty { color: rgba(35,64,79,0.5); font-size: 0.85rem; text-align: center; padding: 2rem 0; }

.report-summary-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; margin-bottom: 1.75rem; }
@media (min-width: 640px) { .report-summary-grid { grid-template-columns: repeat(4, 1fr); } }

.admin-section-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.35rem; flex-wrap: wrap; }
.admin-section-head h2 { margin: 0; font-size: 1.2rem; }
.admin-section-head p { margin: 0.25rem 0 0; font-size: 0.85rem; color: rgba(35,64,79,0.6); }

.inline-stock-input { width: 5rem; padding: 0.45rem 0.6rem; border-radius: 0.5rem; border: 1px solid rgba(35,64,79,0.18); text-align: center; font-size: 0.85rem; }
.low-stock { color: var(--clay-dark); font-weight: 700; }

.admin-tabbar { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; border-bottom: 1px solid rgba(35,64,79,0.1); }
.admin-tabbar button {
  background: none; border: none; font-family: inherit; cursor: pointer;
  padding: 0.75rem 0.25rem; margin-right: 1.5rem; font-size: 0.85rem; font-weight: 600;
  color: rgba(35,64,79,0.5); border-bottom: 2px solid transparent; transition: color .2s var(--ease), border-color .2s var(--ease);
}
.admin-tabbar button:hover { color: var(--ink); }
.admin-tabbar button.active { color: var(--clay-dark); border-bottom-color: var(--clay); }
