    :root {
      --bg1: #ffffff;
      --bg2: #f8f9fa;
      --card: #ffffff;
      --text: #202124;
      --muted: #5f6368;
      --border: #dadce0;
      /* Google-like shadows */
      --shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
      --shadow2: 0 1px 2px 0 rgba(60, 64, 67, 0.3);
      --hover-shadow: 0 1px 3px 0 rgba(60, 64, 67, 0.3), 0 4px 8px 3px rgba(60, 64, 67, 0.15);
      --accent: #1a73e8;
      /* Google Blue */
      --ring: 0 0 0 .25rem rgba(26, 115, 232, .20);
    }

    body {
      color: var(--text);
      background: var(--bg2);
      font-family: 'Google Sans', Roboto, Arial, sans-serif;
      /* Hypothetical font stack */
      min-height: 100vh;
    }

    .brand-chip {
      display: inline-flex;
      align-items: center;
      gap: .6rem;
      padding: .45rem .75rem;
      border-radius: 12px;
      /* Less pill-like, more refined */
      background: #fff;
      border: 1px solid var(--border);
      color: var(--text);
      font-weight: 500;
    }

    .brand-logo {
      color: var(--accent);
      font-weight: bold;
      font-size: 1.1em;
    }

    .hero {
      background: #fff;
      border-radius: 8px;
      box-shadow: none;
      border-bottom: 1px solid var(--border);
      padding: 20px 0;
      margin-bottom: 2rem;
    }

    .gradient-title {
      color: var(--text);
      /* No more gradient text */
    }

    .card {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 8px;
      /* More squarish like Google cards */
      box-shadow: var(--shadow2);
    }

    .nav-pills .nav-link {
      border-radius: 100px;
      border: 1px solid var(--border);
      color: var(--text);
      background: #fff;
      margin-right: 0.5rem;
      font-size: 0.9rem;
    }

    .nav-pills .nav-link.active {
      background: #e8f0fe;
      /* Light blue tint */
      color: var(--accent);
      border-color: transparent;
      /* No border for active */
      border-color: transparent;
      color: #fff;
      box-shadow: none;
      font-weight: 600;
    }

    .nav-pills .nav-link:disabled {
      opacity: .45;
    }

    .btn-primary {
      background: var(--accent);
      border: 1px solid var(--accent);
      box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    }

    .btn-primary:hover {
      background: #1765cc;
      transform: none;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }

    .btn-outline-primary {
      border-color: var(--border);
      color: var(--accent);
    }

    .btn-outline-primary:hover {
      background: #e8f0fe;
      border-color: var(--border);
      color: var(--accent);
    }

    .btn-outline-dark {
      border-color: var(--border);
      color: var(--text);
    }

    .btn-outline-dark:hover {
      background: #f1f3f4;
    }

    .form-control,
    .form-select {
      border-radius: 12px;
      border: 1px solid rgba(15, 23, 42, .14);
      background: rgba(255, 255, 255, .9);
    }

    .form-control:focus,
    .form-select:focus {
      border-color: rgba(32, 199, 255, .8);
      box-shadow: var(--ring);
    }

    .dropzone {
      border: 1.5px dashed rgba(15, 23, 42, .25);
      border-radius: 16px;
      padding: 14px;
      background: rgba(255, 255, 255, .75);
      transition: .15s ease;
      cursor: pointer;
    }

    .dropzone:hover {
      background: rgba(255, 255, 255, .95);
      transform: translateY(-1px);
      box-shadow: var(--shadow2);
    }

    .dropzone.dragover {
      border-color: rgba(32, 199, 255, .9);
      box-shadow: var(--ring);
    }

    .preview {
      width: 100%;
      aspect-ratio: 1/1;
      border-radius: 14px;
      background: linear-gradient(180deg, rgba(15, 23, 42, .03), rgba(15, 23, 42, .02));
      border: 1px solid rgba(15, 23, 42, .10);
      overflow: hidden;
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
    }

    .preview img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: none;
    }

    .preview .hint {
      color: var(--muted);
      text-align: center;
      padding: 0 14px;
    }

    .soft-badge {
      background: rgba(109, 94, 252, .10);
      color: #3b33cc;
      border: 1px solid rgba(109, 94, 252, .20);
    }

    .callout {
      border-radius: 8px;
      border: 1px solid #d2e3fc;
      background: #e8f0fe;
      padding: 14px;
      color: #174ea6;
    }

    /* NEW STYLES */
    .scrolling-wrapper {
      display: flex;
      gap: 1rem;
      overflow-x: auto;
      padding: 0.5rem 0.2rem;
      scrollbar-width: thin;
    }

    .scrolling-wrapper::-webkit-scrollbar {
      height: 6px;
    }

    .scrolling-wrapper::-webkit-scrollbar-track {
      background: transparent;
    }

    .scrolling-wrapper::-webkit-scrollbar-thumb {
      background-color: #dadce0;
      border-radius: 20px;
    }

    .product-card {
      min-width: 140px;
      width: 140px;
      border: 1px solid var(--border);
      border-radius: 8px;
      background: #fff;
      overflow: hidden;
      cursor: pointer;
      transition: box-shadow .2s;
      flex-shrink: 0;
    }

    .product-card:hover {
      border-color: transparent;
      box-shadow: var(--hover-shadow);
    }

    .product-card img {
      width: 100%;
      height: 140px;
      object-fit: cover;
      border-bottom: 1px solid #f1f3f4;
    }

    .product-card .info {
      padding: 8px;
    }

    .product-card .title {
      font-size: 0.85rem;
      font-weight: 500;
      color: var(--text);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .product-card .price {
      font-size: 0.85rem;
      color: var(--muted);
    }

    .collection-pill {
      display: inline-block;
      padding: 6px 16px;
      border-radius: 100px;
      border: 1px solid var(--border);
      background: #fff;
      color: var(--text);
      font-size: 0.9rem;
      cursor: pointer;
      white-space: nowrap;
      transition: background .15s;
    }

    .collection-pill:hover {
      background: #f8f9fa;
    }

    .collection-pill.active {
      background: #e8f0fe;
      color: var(--accent);
      border-color: #d2e3fc;
    }

    .result-shell {
      border-radius: 18px;
      border: 1px solid rgba(15, 23, 42, .10);
      background: rgba(255, 255, 255, .85);
      box-shadow: var(--shadow2);
      overflow: hidden;
    }

    .result-top {
      padding: 12px 14px;
      border-bottom: 1px solid rgba(15, 23, 42, .10);
      display: flex;
      justify-content: space-between;
      align-items: center;
      background: rgba(255, 255, 255, .75);
    }

    .result-body {
      padding: 14px;
    }

    .monospace {
      font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    }

    .small-note {
      color: var(--muted);
      font-size: .9rem;
    }

    /* Tiny animation */
    .lift {
      transition: transform .15s ease;
    }

    .lift:hover {
      transform: translateY(-1px);
    }
	
	 /* Make user image fully visible (no cropping) */
    .user-preview {
      width: 100%;
      height: 280px;           /* adjust if you want taller */
      border-radius: 14px;
      overflow: hidden;
      background: rgba(15,23,42,.03);
      border: 1px solid rgba(15, 23, 42, .10);
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .user-preview img {
      width: 100%;
      height: 100%;
      object-fit: contain;     /* key: show full person */
      object-position: center top;
      display: none;
    }

    /* Result image should fit nicely */
    .result-img {
      width: 100%;
      max-height: 520px;       /* adjust if needed */
      object-fit: contain;     /* key: no cropping */
      border-radius: 12px;
      border: 1px solid rgba(15, 23, 42, .10);
      background: rgba(15,23,42,.03);
    }

    /* Small image preview for dropdowns */
    .mini-thumb {
      width: 56px;
      height: 56px;
      border-radius: 12px;
      border: 1px solid rgba(15,23,42,.10);
      background: rgba(15,23,42,.03);
      object-fit: cover;
      flex: 0 0 auto;
    }

    /* Sizes text in card */
    .sizes-line {
      color: var(--muted, #5f6368);
      font-size: .85rem;
      margin-top: 6px;
    }
	
	/* --- Garment grid cards (selection) --- */
.grid-wrap {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

@media (min-width: 992px) {
  .grid-wrap { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.g-card {
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.08);
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

.g-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0,0,0,.10);
  border-color: rgba(26,115,232,.25);
}

.g-card.selected {
  border-color: rgba(26,115,232,.55);
  box-shadow: 0 10px 28px rgba(26,115,232,.18);
}

.g-card .thumb {
  width: 100%;
  aspect-ratio: 4/3;
  background: rgba(15,23,42,.04);
  display: flex;
  align-items: center;
  justify-content: center;
}

.g-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.g-card .body {
  padding: 12px 12px 14px;
}

.g-card .title {
  font-weight: 700;
  font-size: .98rem;
  margin: 0 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.g-card .meta {
  font-size: .86rem;
  color: rgba(0,0,0,.55);
  margin-bottom: 8px;
  text-transform: lowercase;
}

.g-card .sizes {
  font-size: .86rem;
  color: rgba(0,0,0,.65);
}

.g-card .actions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.g-card .badge-mini {
  font-size: .75rem;
  background: rgba(26,115,232,.10);
  border: 1px solid rgba(26,115,232,.18);
  color: rgba(26,115,232,1);
  padding: 2px 8px;
  border-radius: 999px;
}

/* Garment preview: show FULL garment (no crop) */
  .gimg-wrap{
    height: 220px;                 /* consistent card image area */
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
    background: linear-gradient(180deg, #f7f9fc 0%, #eef3ff 100%);
    display:flex;
    align-items:center;
    justify-content:center;
    padding: 14px;
    overflow:hidden;
  }
  .gimg{
    width:100%;
    height:100%;
    object-fit: contain;           /* 👈 THIS is the key */
    object-position: center;
    border-radius: 14px;
  }
  .gimg-fallback{
    color:#6b7280;
    font-size: 14px;
  }
  
  .gimg-wrap{ height: 240px; }
@media (max-width: 576px){
  .gimg-wrap{ height: 200px; }
}
