/* 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(244, 241, 232, 0.96);
  box-shadow: 0 8px 30px -22px rgba(92, 64, 52, 0.28);
}

.store-announcement {
  display: flex;
  min-height: 2rem;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.35rem 1rem;
  color: #f8f4ef;
  background: #5C4034;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}
.store-announcement > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.store-announcement a {
  flex: 0 0 auto;
  color: #f8f4ef;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.store-category-nav {
  border-top: 1px solid rgba(92, 64, 52, 0.08);
  background: rgba(244, 241, 232, 0.96);
}
.store-category-nav > div { min-height: 2.8rem; }
.store-category-nav > div { width: max-content; min-width: 100%; }
.store-category-nav a {
  flex: 0 0 auto;
  color: #5C4034;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 150ms ease;
}
.store-category-nav a:hover { color: #768a5e; }
.store-menu-checkbox {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}
.store-menu-trigger { cursor: pointer; }
.store-menu-checkbox:focus-visible ~ .glass-nav .store-menu-trigger {
  outline: 2px solid var(--clay);
  outline-offset: 2px;
}
.store-menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
}
.store-menu-checkbox:checked ~ .store-menu { display: block; }
.store-menu-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  background: rgba(36, 27, 26, 0.54);
}
.store-menu-drawer {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  padding: max(1.25rem, env(safe-area-inset-top)) 1.25rem
    max(1.25rem, env(safe-area-inset-bottom));
  color: var(--clay);
  background: var(--sage-soft);
  animation: store-menu-enter 180ms ease-out;
}
.store-menu-links { display: grid; }
.store-menu-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(92, 64, 52, 0.12);
  padding: 1rem 0.2rem;
  color: var(--clay);
  font-size: 1rem;
  font-weight: 500;
}
.store-menu-links a:hover { color: var(--olive); }
@keyframes store-menu-enter {
  from { opacity: 0.7; transform: translateX(-0.75rem); }
  to { opacity: 1; transform: translateX(0); }
}
.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);
}

.store-home-hero {
  position: relative;
  min-height: clamp(18rem, 44vw, 34rem);
  overflow: hidden;
  background: linear-gradient(115deg, #7f685d 0%, #5C4034 48%, #55633F 100%);
  box-shadow: 0 28px 65px -44px rgba(92, 64, 52, 0.55);
}
.store-home-hero-link {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
}
.store-home-hero-image,
.store-home-hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.store-home-hero-image { object-fit: cover; object-position: center 38%; }
.store-home-hero-product-image {
  position: absolute;
  top: 0;
  right: 0;
  width: 62%;
  height: 100%;
  background: linear-gradient(90deg, #eee5dc, #DAD7C6);
  object-fit: contain;
  object-position: right center;
}
.store-home-hero-shade {
  background: linear-gradient(90deg, rgba(36, 27, 26, 0.76), rgba(36, 27, 26, 0.35) 52%, rgba(36, 27, 26, 0.03));
}
.store-home-hero-copy,
.store-home-hero-fallback {
  position: relative;
  z-index: 1;
  max-width: 38rem;
  padding: clamp(1.5rem, 5vw, 4rem);
  color: #fff;
}
.store-home-hero-copy a,
.store-home-hero-fallback a { color: var(--clay); }
.store-home-hero-fallback { display: flex; min-height: inherit; flex-direction: column; align-items: flex-start; justify-content: center; }
.collection-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #5C4034;
  font-size: 0.8rem;
  font-weight: 600;
}
.collection-link:hover { color: #768a5e; }
.category-banner {
  position: relative;
  overflow: hidden;
  min-height: 20rem;
  border-radius: 1.4rem;
  background: linear-gradient(120deg, #7f685d, #55633f);
  box-shadow: 0 20px 46px -34px rgba(92, 64, 52, 0.5);
}
.category-banner-link {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.category-banner-image,
.category-banner-placeholder,
.category-banner-shade {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
}
.category-banner-image { object-fit: contain; object-position: center; transition: transform 500ms ease; }
.category-banner-link:hover .category-banner-image { transform: scale(1.02); }
.category-banner-placeholder {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 10%;
  color: rgba(244, 241, 232, 0.18);
  background:
    radial-gradient(circle at 75% 48%, rgba(244, 241, 232, 0.28) 0 6rem, transparent 6.1rem),
    linear-gradient(120deg, #7f685d, #55633f);
  font-family: Georgia, serif;
  font-size: 12rem;
  line-height: 1;
}
.category-banner-shade {
  background: linear-gradient(90deg, rgba(36, 27, 26, 0.76), rgba(36, 27, 26, 0.28) 60%, rgba(36, 27, 26, 0.02));
}
.category-banner-copy {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 32rem;
  padding: 2rem;
}
.store-product-rail {
  display: grid;
  grid-auto-columns: minmax(0, calc((100% - 1rem) / 2));
  grid-auto-flow: column;
  grid-template-rows: 1fr;
  gap: 1rem;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 0.15rem 0.1rem 1rem;
  scroll-snap-type: x mandatory;
  scrollbar-color: rgba(92, 64, 52, 0.35) transparent;
  scrollbar-width: thin;
}
.store-product-rail > * { min-width: 0; scroll-snap-align: start; }
.store-category-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}
.store-category-tile { min-width: 0; color: var(--clay); text-align: center; }
.store-category-tile-image,
.store-category-tile-placeholder {
  display: block;
  width: 100%;
  aspect-ratio: 0.75;
  overflow: hidden;
  border-radius: 0.9rem;
  background: linear-gradient(135deg, #eee5dc, #DAD7C6);
  object-fit: contain;
  transition: transform 250ms ease, box-shadow 250ms ease;
}
.category-page-image {
  display: block;
  flex: none;
  background: #f4f1e8;
  object-fit: contain;
  object-position: center;
}
.store-category-tile-placeholder {
  display: grid;
  place-items: center;
  color: rgba(92, 64, 52, 0.28);
  font-family: Georgia, serif;
  font-size: 6rem;
}
.store-category-tile:hover .store-category-tile-image,
.store-category-tile:hover .store-category-tile-placeholder {
  transform: translateY(-2px);
  box-shadow: 0 15px 32px -22px rgba(92, 64, 52, 0.55);
}
.store-category-tile-name {
  display: block;
  padding: 0.7rem 0.25rem 0;
  font-size: 0.8rem;
  font-weight: 600;
}

.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 rgba(92, 64, 52, 0.12);
  background: rgba(244, 241, 232, 0.94);
  transition: transform 190ms ease, border-color 190ms ease, box-shadow 190ms ease;
}
.product-card-media { isolation: isolate; }
.product-card-media > a { background: #f4f1e8; }
.product-card-media img,
.cart-item > a img,
.product-detail-image > img {
  display: block;
  object-fit: cover;
  object-position: center;
}
.cart-item-name { overflow-wrap: anywhere; }
.product-card-quick-add-form { position: absolute; right: 0.6rem; bottom: 0.6rem; z-index: 2; margin: 0 !important; }
.product-card-quick-add {
  display: grid;
  height: 2.5rem;
  width: 2.5rem;
  place-items: center;
  border: 1px solid rgba(92, 64, 52, 0.16);
  border-radius: 999px;
  color: var(--clay);
  background: rgba(244, 241, 232, 0.96);
  box-shadow: 0 4px 16px -8px rgba(36, 27, 26, 0.5);
  transition: color 150ms ease, background 150ms ease, transform 150ms ease;
}
.product-card-quick-add:hover:not(:disabled) {
  transform: translateY(-2px);
  color: #fff;
  background: var(--clay);
}
.product-card-quick-add:disabled { cursor: not-allowed; opacity: 0.55; }
.product-card:hover {
  transform: translateY(-3px);
  border-color: rgba(92, 64, 52, 0.22);
  box-shadow: 0 18px 34px -28px rgba(92, 64, 52, 0.4);
}

.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));
}

@media (max-width: 639px) {
  .store-announcement {
    gap: 0.35rem;
    padding: 0.4rem 0.55rem;
    font-size: 0.52rem;
    line-height: 1.3;
  }
  .store-category-nav > div { min-height: 2.55rem; }
  .store-category-nav a { font-size: 0.62rem; }
  .store-home-hero { min-height: 18rem; }
  .store-home-hero-product-image { width: 68%; }
  .store-home-hero-shade { background: linear-gradient(90deg, rgba(36, 27, 26, 0.68), rgba(36, 27, 26, 0.2)); }
  .store-product-rail { grid-auto-columns: minmax(0, 43vw); gap: 0.7rem; }
  .store-category-tiles { gap: 0.6rem; }
  .store-category-tile-name { font-size: 0.72rem; }
}

@media (min-width: 640px) {
  .store-product-rail { grid-auto-columns: minmax(0, calc((100% - 2.2rem) / 3)); gap: 1.1rem; }
  .store-category-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
}

@media (min-width: 1024px) {
  .store-product-rail { grid-auto-columns: minmax(0, calc((100% - 3.75rem) / 4)); gap: 1.25rem; }
  .store-category-tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.2rem; }
}

@media (min-width: 1280px) {
  .store-product-rail { grid-auto-columns: minmax(0, calc((100% - 6.25rem) / 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;
  }
}
