/* Colors sampled from the UMII Garments logo */
:root {
  --sage-bg: #DAD7C6;
  --sage-soft: #F4F1E8;
  --clay: #5C4034;
  --clay-soft: #B99D82;
  --olive: #55633F;
  --olive-soft: #8DA06C;
  --ink: var(--olive);
  --muted: #68734f;
  --line: rgba(92, 64, 52, 0.18);
  --shadow: 0 22px 60px -32px rgba(92, 64, 52, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  overflow-x: hidden;
  color: var(--ink);
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

.site-body {
  background-color: var(--sage-bg);
  background:
    radial-gradient(circle at 8% 4%, rgba(92, 64, 52, 0.06), transparent 22rem),
    radial-gradient(circle at 92% 12%, rgba(85, 99, 63, 0.08), transparent 24rem),
    linear-gradient(180deg, #DAD7C6 0%, #d5d2c0 48%, #DAD7C6 100%);
  color: var(--olive);
}

.site-body [class~="bg-white"],
.site-body [class~="bg-white/80"],
.site-body [class~="bg-white/90"],
.site-body [class~="bg-white/95"] {
  background-color: rgba(244, 241, 232, var(--tw-bg-opacity, 1));
}

.site-body :is(h1, h2, h3, h4, h5, h6) {
  color: var(--clay);
}

.site-body .text-slate-900,
.site-body .text-slate-800,
.site-body .text-slate-700,
.site-body .text-slate-600 {
  color: var(--olive);
}

.site-body .text-slate-500,
.site-body .text-slate-400 {
  color: var(--muted);
}

.site-body :is(h1, h2, h3, h4, h5, h6).text-slate-900,
.site-body :is(h1, h2, h3, h4, h5, h6).text-slate-800,
.site-body :is(h1, h2, h3, h4, h5, h6).text-slate-700,
.site-body :is(h1, h2, h3, h4, h5, h6).text-slate-600,
.site-body :is(h1, h2, h3, h4, h5, h6).text-slate-500,
.site-body :is(h1, h2, h3, h4, h5, h6).text-slate-400 {
  color: var(--clay);
}

.store-main { position: relative; }
.glass-nav {
  border-color: rgba(92, 64, 52, 0.1);
  background: rgba(218, 215, 198, 0.9);
  box-shadow: 0 8px 30px -22px rgba(92, 64, 52, 0.28);
}

.brand-mark {
  display: inline-flex;
  height: 2.1rem;
  width: 2.1rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  color: #f4f1e8;
  background: linear-gradient(135deg, #5C4034, #55633F 70%, #8DA06C);
  box-shadow: 0 10px 24px -12px rgba(92, 64, 52, 0.7);
}

.modern-input,
input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
select,
textarea {
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.modern-input:focus,
input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):focus,
select:focus,
textarea:focus {
  border-color: rgba(92, 64, 52, 0.45);
  box-shadow: 0 0 0 4px rgba(92, 64, 52, 0.08);
  outline: none;
}

input[type="checkbox"] { margin-right: 0.35rem; }
.form-check input { display: inline-block; }

.surface-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.store-main .rounded-2xl.border.bg-white {
  border-color: var(--line);
  box-shadow: 0 16px 42px -34px rgba(92, 64, 52, 0.25);
}

.store-main .bg-brand-600 {
  background: linear-gradient(135deg, #5C4034, #55633F 62%, #8DA06C);
}

.store-main table tbody tr {
  transition: background 150ms ease;
}

.store-main table tbody tr:hover {
  background: rgba(218, 215, 198, 0.35);
}

.hero-shell {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(circle at 78% 24%, rgba(255, 255, 255, 0.18), transparent 12rem),
    linear-gradient(125deg, #5C4034 0%, #7B685D 42%, #55633F 100%);
  box-shadow: 0 35px 80px -36px rgba(92, 64, 52, 0.66);
}

.hero-shell::before,
.hero-shell::after {
  position: absolute;
  z-index: -1;
  content: "";
  border-radius: 999px;
  filter: blur(1px);
}
.hero-shell::before {
  top: -5rem;
  right: 4%;
  height: 17rem;
  width: 17rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
}
.hero-shell::after {
  right: 25%;
  bottom: -8rem;
  height: 16rem;
  width: 16rem;
  background: rgba(141, 160, 108, 0.14);
}

.hero-float-card {
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 22px 50px -26px rgba(92, 64, 52, 0.45);
  backdrop-filter: blur(16px);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.8rem;
  color: white;
  background: linear-gradient(135deg, #5C4034, #55633F 62%, #8DA06C);
  box-shadow: 0 14px 28px -16px rgba(92, 64, 52, 0.8);
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}
.btn-primary:hover {
  transform: translateY(-1px);
  filter: saturate(1.05);
  box-shadow: 0 18px 32px -16px rgba(92, 64, 52, 0.9);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(92, 64, 52, 0.18);
  border-radius: 0.8rem;
  color: #5C4034;
  background: rgba(255, 255, 255, 0.88);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}
.btn-secondary:hover {
  transform: translateY(-1px);
  border-color: rgba(92, 64, 52, 0.4);
  background: var(--sage-soft);
}

.category-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(92, 64, 52, 0.12);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 34px -28px rgba(92, 64, 52, 0.38);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.category-card::after {
  position: absolute;
  right: -1.5rem;
  bottom: -1.8rem;
  height: 5rem;
  width: 5rem;
  content: "";
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(218, 215, 198, 0.7), rgba(85, 99, 63, 0.14));
}
.category-card:hover {
  transform: translateY(-3px);
  border-color: rgba(92, 64, 52, 0.25);
  box-shadow: 0 20px 44px -28px rgba(92, 64, 52, 0.45);
}

.product-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 42px -32px rgba(92, 64, 52, 0.28);
  transition: transform 190ms ease, border-color 190ms ease, box-shadow 190ms ease;
}
.product-card:hover {
  transform: translateY(-5px);
  border-color: rgba(92, 64, 52, 0.22);
  box-shadow: 0 26px 58px -32px rgba(92, 64, 52, 0.35);
}
.product-card .product-image { transition: transform 350ms ease; }
.product-card:hover .product-image { transform: scale(1.045); }

.trust-strip {
  border: 1px solid rgba(92, 64, 52, 0.12);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.82), rgba(234, 230, 220, 0.85));
}

.account-link {
  border-radius: 0.7rem;
  padding: 0.55rem 0.7rem;
  transition: color 150ms ease, background 150ms ease;
}
.account-link:hover {
  color: #5C4034;
  background: linear-gradient(90deg, rgba(218, 215, 198, 0.7), rgba(214, 224, 199, 0.6));
}

.site-footer {
  color: #f5f2ea;
  background:
    radial-gradient(circle at 10% 0%, rgba(218, 215, 198, 0.18), transparent 20rem),
    linear-gradient(135deg, #3d2d29, #5C4034 52%, #55633F);
}

.proof-upload-panel {
  border: 1px dashed rgba(92, 64, 52, 0.35);
  background: linear-gradient(135deg, rgba(244, 241, 232, 0.9), rgba(214, 224, 199, 0.8));
}

.staff-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  width: 16rem;
  overflow-y: auto;
  color: #f6f2ea;
  background: linear-gradient(180deg, #5C4034 0%, #4c382f 52%, #55633F 100%);
  transform: translateX(-100%);
  transition: transform 200ms ease;
}
.staff-sidebar.is-open { transform: translateX(0); }
.staff-sidebar-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(44, 43, 34, 0.45);
}
@media (min-width: 1024px) {
  .staff-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    transform: none;
  }
  .staff-sidebar-backdrop { display: none !important; }
}

.staff-main input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.staff-main select,
.staff-main textarea {
  max-width: 100%;
}
.staff-main table { min-width: 36rem; }

.confirm-overlay {
  display: flex;
  min-height: 60vh;
  align-items: center;
  justify-content: center;
}
.confirm-dialog {
  width: min(32rem, 100%);
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #fff;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

@media print {
  @page { size: A4; margin: 12mm; }
  html, body {
    background: #fff !important;
    color: #000 !important;
  }
  .no-print,
  .staff-sidebar,
  .staff-sidebar-backdrop,
  header,
  nav,
  .pagination,
  .table-actions,
  [data-sidebar-toggle],
  [data-toggle] {
    display: none !important;
  }
  .staff-shell,
  .staff-main {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
  }
  .staff-main table {
    min-width: 0;
    width: 100%;
    border-collapse: collapse;
  }
  .staff-main th,
  .staff-main td {
    border: 1px solid #444;
    color: #000;
    background: #fff !important;
    padding: 6px 8px;
  }
  a { color: #000 !important; text-decoration: none !important; }
}

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