/* Garment Placement / web catalog — Miroflow ecom aesthetic */
body.webcat {
  --ink: #071B2C;
  --navy-800: #083858;
  --blue-500: #4396E6;
  --blue-600: #2477C9;
  --blue-100: #E4F2FD;
  --blue-50: #F3F9FE;
  --surface: #F8FBFE;
  --muted: #647789;
  --border: rgba(34, 85, 125, 0.14);
  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --shadow: 0 16px 40px -24px rgba(8, 56, 88, 0.22);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--surface);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(circle at 8% 0%, rgba(67, 150, 230, 0.1), transparent 40%),
    radial-gradient(circle at 92% 4%, rgba(8, 56, 88, 0.06), transparent 35%);
}

body.webcat main {
  background: transparent;
  box-shadow: none;
}

/* Header — floating pill */
body.webcat .top {
  position: sticky;
  top: 10px;
  z-index: 40;
  background: transparent;
  border: 0;
  backdrop-filter: none;
  padding: 0 12px;
  margin-bottom: 4px;
}

body.webcat .top .in {
  max-width: 920px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow);
  padding: 6px 8px 6px 16px;
}

body.webcat .brand {
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 14px;
  gap: 10px;
}

body.webcat .brand .mark {
  width: 22px;
  height: 22px;
  border-radius: 0;
  background: transparent;
  position: relative;
  flex: none;
}

body.webcat .brand .mark::before,
body.webcat .brand .mark::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  transform: rotate(45deg);
}

body.webcat .brand .mark::before {
  left: 1px;
  top: 5px;
  background: var(--blue-500);
}

body.webcat .brand .mark::after {
  right: 1px;
  top: 1px;
  background: var(--navy-800);
}

body.webcat .nav a {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 12px;
}

body.webcat .nav a.on {
  background: var(--blue-100);
  color: var(--ink);
  font-weight: 600;
}

body.webcat .nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px 4px;
  justify-content: flex-end;
}

body.webcat .nav .wc-auth-user {
  padding: 8px 4px 8px 10px;
  max-width: 100px;
}

body.webcat .nav .wc-auth-out,
body.webcat .nav .wc-auth-admin {
  padding: 8px 10px;
  border-radius: 999px;
}

body.webcat .nav .wc-auth-out:hover,
body.webcat .nav .wc-auth-admin:hover {
  background: var(--blue-50);
}

body.webcat .wc-order-row {
  align-items: flex-start;
}

body.webcat .wc-order-row .order-thumb {
  background: var(--blue-50);
}

/* Home hero */
.wc-home-hero {
  padding: 8px 0 28px;
  margin-bottom: 8px;
  border: 0;
}

.wc-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin: 0 0 10px;
}

.wc-home-hero h1 {
  font-size: clamp(32px, 7vw, 44px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.02;
  margin: 0 0 12px;
}

.wc-lead {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 28rem;
}

.wc-home-cta-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 22px;
}

@media (min-width: 520px) {
  .wc-home-cta-row {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

.wc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}

.wc-btn-primary {
  background: var(--blue-500);
  color: #fff;
  border: 1px solid var(--blue-500);
}

.wc-btn-primary:hover {
  background: var(--blue-600);
  border-color: var(--blue-600);
}

.wc-btn-outline {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--border);
}

.wc-btn-outline:hover {
  border-color: var(--blue-500);
  color: var(--blue-600);
}

.wc-btn-ghost {
  background: transparent;
  color: var(--blue-600);
  border: 1px solid var(--border);
}

/* Section headers */
.wc-sec-h {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 28px 0 14px;
}

.wc-sec-row {
  margin-top: 32px;
}

.wc-sec-row a {
  color: var(--blue-600);
  font-weight: 500;
}

/* Category cards — photo-led, horizontal scroll */
.wc-cat-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 2px 16px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.wc-cat-scroll::-webkit-scrollbar {
  display: none;
}

.wc-cat-card {
  flex: 0 0 min(168px, 46vw);
  scroll-snap-align: start;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.wc-cat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: rgba(67, 150, 230, 0.35);
}

.wc-cat-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  background: linear-gradient(145deg, var(--blue-50), #fff);
  overflow: hidden;
}

.wc-cat-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  transition: transform 0.25s ease;
}

.wc-cat-card:hover .wc-cat-visual img {
  transform: scale(1.04);
}

.wc-cat-visual .wc-cat-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.wc-cat-copy {
  padding: 12px 14px 14px;
}

.wc-cat-copy b {
  display: block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 2px;
}

.wc-cat-copy span {
  font-size: 12px;
  color: var(--muted);
}

@media (min-width: 821px) {
  .wc-cat-scroll {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    overflow: visible;
    gap: 14px;
  }

  .wc-cat-card {
    flex: none;
  }
}

/* Product grid */
.wc-grid {
  gap: 18px 14px;
}

.wc-card {
  transition: transform 0.15s;
}

.wc-card:hover {
  transform: translateY(-2px);
}

.wc-card .img {
  border-radius: var(--radius-sm);
  border-color: var(--border);
  background: linear-gradient(180deg, var(--blue-50), #fff);
  aspect-ratio: 4 / 5;
}

.wc-card img {
  object-fit: contain;
  padding: 10px;
}

.wc-card .name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.wc-card .price {
  color: var(--ink);
  font-size: 14px;
}

/* Catalog page hero */
body.webcat .wc-hero {
  border: 0;
  padding: 4px 0 16px;
  margin-bottom: 12px;
}

body.webcat .wc-hero h1 {
  font-weight: 500;
  letter-spacing: -0.04em;
}

body.webcat .wc-hero p {
  color: var(--muted);
}

.wc-cats button.on {
  background: var(--navy-800);
  color: #fff;
  border-color: var(--navy-800);
}

@media (max-width: 820px) {
  .wc-cats button {
    border: 1px solid var(--border);
    border-radius: 999px;
  }

  .wc-cats button.on {
    background: var(--navy-800);
    color: #fff;
    border-color: var(--navy-800);
  }
}

body.webcat .btn.primary {
  background: var(--blue-500);
  border-color: var(--blue-500);
}

body.webcat .btn.primary:hover {
  background: var(--blue-600);
}

/* Bottom nav — clean, no emoji */
.wc-bottom-nav {
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  box-shadow: 0 -8px 24px -16px rgba(8, 56, 88, 0.15);
}

.wc-bottom-nav a {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.wc-bottom-nav a.on {
  color: var(--blue-600);
  background: var(--blue-50);
}

.wc-bottom-nav .wc-nav-ic {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
  background: var(--blue-50);
  color: var(--blue-600);
}

.wc-bottom-nav a.on .wc-nav-ic {
  background: var(--blue-500);
  color: #fff;
}

.wc-home-orders {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 24px;
  min-height: 44px;
}

@media (max-width: 640px) {
  body.webcat .top .in {
    padding: 6px 8px 6px 14px;
    padding-top: calc(6px + env(safe-area-inset-top, 0px));
    max-width: calc(100% - 16px);
  }

  body.webcat .nav {
    display: none !important;
  }

  body.webcat main {
    padding: 12px 12px calc(76px + env(safe-area-inset-bottom, 0px));
    box-shadow: none;
  }

  .wc-bottom-nav {
    display: flex;
  }
}

@media (min-width: 821px) {
  body.webcat main {
    max-width: 920px;
    margin: 0 auto;
    padding: 20px 20px 72px;
    box-shadow: none;
  }
}

/* Product detail */
body.webcat .wc-crumb {
  color: var(--muted);
}

body.webcat .wc-crumb a {
  color: var(--blue-600);
}

body.webcat .wc-gallery {
  background: linear-gradient(165deg, var(--blue-50), #fff);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

body.webcat .wc-thumbs button.on {
  border-color: var(--blue-500);
}

body.webcat .wc-buy h1 {
  font-weight: 500;
  letter-spacing: -0.04em;
}

body.webcat .wc-buy .sku {
  color: var(--blue-600);
}

body.webcat .wc-buy .sub {
  color: var(--muted);
}

body.webcat .wc-buy .price {
  font-weight: 600;
  letter-spacing: -0.03em;
}

body.webcat .wc-colors button.on {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 2px #fff inset, 0 0 0 3px var(--blue-100);
}

body.webcat .wc-sizes button {
  border-color: var(--border);
  border-radius: 10px;
  font-weight: 500;
}

body.webcat .wc-sizes button.on {
  border-color: var(--navy-800);
  background: var(--navy-800);
}

body.webcat .wc-cta .btn.ghost {
  border: 1px solid var(--border);
  color: var(--blue-600);
  border-radius: 10px;
}

body.webcat .wc-specs {
  border-color: var(--border);
  color: var(--muted);
}

body.webcat .wc-specs b {
  color: var(--muted);
}

/* Checkout */
body.webcat.co main {
  padding-bottom: calc(120px + env(safe-area-inset-bottom, 0px));
}

body.webcat .co-title {
  font-weight: 500;
  letter-spacing: -0.04em;
  color: var(--ink);
}

body.webcat .co-steps {
  border-color: var(--border);
}

body.webcat .co-steps button {
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.06em;
}

body.webcat .co-steps button.on {
  color: var(--blue-600);
  border-bottom-color: var(--blue-500);
}

body.webcat .co-steps button.done {
  color: var(--ink);
}

body.webcat .co-panel,
body.webcat .co-sum,
body.webcat .co-addr-card,
body.webcat .co-ship-opt,
body.webcat .co-proof-sm {
  border-color: var(--border);
  border-radius: var(--radius-sm);
}

body.webcat .co-panel h2,
body.webcat .co-sum h3 {
  font-weight: 600;
  letter-spacing: -0.02em;
}

body.webcat .co-panel .linkish {
  color: var(--blue-600);
}

body.webcat .co-ship-opt.on {
  border-color: var(--blue-500);
  background: var(--blue-50);
}

body.webcat .co-ship-opt input {
  accent-color: var(--blue-500);
}

body.webcat .co-prod img {
  background: var(--blue-50);
  border-radius: var(--radius-sm);
}

body.webcat .co-prod .tag {
  background: var(--blue-100);
  color: var(--blue-600);
}

body.webcat .co-lines .row.total {
  border-color: var(--border);
}

body.webcat .co-paybar {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 -12px 32px -16px rgba(8, 56, 88, 0.18);
}

body.webcat .co-paybar .btn.primary {
  border-radius: 10px;
  font-weight: 600;
}

body.webcat .co-paybar .legal a {
  color: var(--blue-600);
}

body.webcat .field input,
body.webcat .field select,
body.webcat .field textarea {
  border-color: var(--border);
  border-radius: 10px;
}

body.webcat .field input:focus,
body.webcat .field select:focus,
body.webcat .field textarea:focus {
  border-color: var(--blue-500);
  outline: none;
  box-shadow: 0 0 0 3px var(--blue-100);
}

body.webcat .co-pay-note {
  line-height: 1.55;
  overflow-wrap: anywhere;
}

/* Mobile checkout + home polish */
@media (max-width: 640px) {
  body.webcat {
    overflow-x: hidden;
  }

  body.webcat .co-wrap {
    padding-left: 12px;
    padding-right: 12px;
  }

  body.webcat .co-title {
    font-size: clamp(24px, 7vw, 32px);
  }

  body.webcat .co-steps {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  body.webcat .co-steps::-webkit-scrollbar {
    display: none;
  }

  body.webcat .co-steps button {
    min-width: 0;
    flex: 1 1 33%;
    font-size: 10px;
    padding: 10px 6px 12px;
  }

  body.webcat .co-ship-opt {
    flex-wrap: wrap;
  }

  body.webcat .co-ship-opt em {
    margin-left: 0;
    width: 100%;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
  }

  body.webcat .co-paybar {
    left: 0;
    right: 0;
    max-width: 100vw;
    padding-left: 12px;
    padding-right: 12px;
  }

  body.webcat .co-paybar .btn.primary {
    min-height: 48px;
    font-size: 15px;
    touch-action: manipulation;
  }

  body.webcat.co .co-paybar {
    bottom: calc(52px + env(safe-area-inset-bottom, 0px));
  }

  body.webcat.co main {
    padding-bottom: calc(168px + env(safe-area-inset-bottom, 0px)) !important;
  }

  body.webcat.intake .top .in {
    padding-top: calc(8px + env(safe-area-inset-top, 0px));
  }

  body.webcat.intake .brand {
    flex: 1;
    min-width: 0;
    max-width: none;
    font-size: 14px;
    text-transform: none;
    letter-spacing: -0.02em;
  }

  body.webcat.intake .brand .mark {
    width: 22px;
    height: 22px;
    border-radius: 6px;
  }

  body.webcat.intake main {
    padding-left: 14px;
    padding-right: 14px;
    padding-top: 12px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }

  body.webcat.intake .btn.primary {
    touch-action: manipulation;
    min-height: 48px;
  }

  body.webcat .wc-home-hero h1 {
    font-size: clamp(28px, 8vw, 40px);
  }

  body.webcat .wc-btn {
    width: 100%;
  }

  body.webcat .wc-home-cta-row .wc-btn {
    flex: 1 1 auto;
  }

  body.webcat .wc-cta {
    position: sticky;
    bottom: calc(52px + env(safe-area-inset-bottom, 0px));
    z-index: 5;
  }
}

@media (max-width: 820px) {
  body.webcat .wc-layout {
    gap: 16px;
  }

  body.webcat .wc-sidebar {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}
