:root {
  --navy: #29315d;
  --pink: #ff4c78;
  --pink-soft: #fff0f4;
  --gray: #f6f6f9;
  --line: #e9e9f0;
  --muted: #84869e;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #fff;
  color: var(--navy);
  font:
    15px/1.55 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button,
a,
input,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  background: none;
  border: 0;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 4px;
}
svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
[hidden] {
  display: none !important;
}
.campaign-bar {
  height: 35px;
  background: var(--pink);
  color: white;
  text-align: center;
  font-size: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.1px;
}
.campaign-bar span {
  margin-left: 30px;
  font-size: 11px;
}
.site-header {
  border-bottom: 1px solid var(--line);
}
.header-main {
  max-width: 1500px;
  padding: 23px 40px 17px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 60px;
}
.brand {
  font:
    italic 700 53px/0.9 Georgia,
    serif;
  letter-spacing: -4px;
  position: relative;
  color: #111;
}
.brand > span {
  position: absolute;
  right: -12px;
  top: 3px;
  font: 10px Arial;
  letter-spacing: 0;
}
.search-box {
  display: flex;
  gap: 14px;
  align-items: center;
  background: var(--gray);
  padding: 12px 18px;
  border-radius: 7px;
  max-width: 580px;
  flex: 1;
  margin-left: auto;
}
.search-box svg {
  width: 19px;
  height: 19px;
}
.search-box input {
  background: none;
  border: 0;
  outline: 0;
  min-width: 0;
  width: 100%;
  font-size: 13px;
}
.search-box input::placeholder {
  color: #9596aa;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 23px;
}
.profile-tag {
  font-size: 11px;
  letter-spacing: 0.5px;
  font-weight: 600;
  color: var(--navy);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  background: none;
}
.icon-button {
  font-size: 33px;
  padding: 0;
  line-height: 1;
}
.cart-button {
  display: flex;
  align-items: center;
  gap: 7px;
}
.cart-button > span {
  font-size: 12px;
}
.site-header nav {
  display: flex;
  justify-content: center;
  gap: 44px;
  max-width: 1400px;
  margin: auto;
  overflow: auto;
  padding: 16px 30px 18px;
  white-space: nowrap;
  font-size: 13px;
}
.nav-active {
  font-weight: 600;
}
.pink-text {
  color: var(--pink);
}
main {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 40px;
}
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  color: #9698aa;
  padding: 22px 0;
}
.breadcrumbs strong {
  font-weight: 400;
  color: var(--navy);
}
.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(360px, 1fr);
  gap: 55px;
  align-items: start;
}
.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.outfit-recommendations {
  grid-column: 1 / -1;
  min-width: 0;
  margin-top: 28px;
  border-top: 1px solid var(--line, #ececf2);
  padding-top: 25px;
}
.outfit-heading { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 18px; }
.outfit-heading h2 { font-size: 21px; margin: 5px 0 0; letter-spacing: -.5px; }
.outfit-heading > span { font-size: 10px; color: var(--muted); padding-bottom: 3px; }
.outfit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.outfit-card { min-width: 0; border: 1px solid #e9e9ef; background: #fff; display: flex; flex-direction: column; }
.outfit-pieces { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: center; gap: 4px; padding: 12px 8px; min-height: 230px; background: #faf9f8; }
.outfit-pieces a { display: block; min-width: 0; }
.outfit-pieces img { width: 100%; height: 112px; display: block; object-fit: contain; }
.outfit-pieces a:last-child:nth-child(odd) { grid-column: 1 / -1; }
.outfit-card h3 { font-size: 12px; line-height: 1.5; margin: 13px 11px 3px; }
.outfit-card > p { font-size: 10px; color: var(--muted); margin: 0 11px 13px; }
.outfit-card > button { border: 0; background: #222333; color: white; font: inherit; font-size: 11px; padding: 13px 5px; margin-top: auto; width: 100%; cursor: pointer; }
.outfit-card > button:hover { background: var(--pink, #ff4876); }
.outfit-card a:focus-visible, .outfit-card button:focus-visible { outline: 2px solid var(--pink, #ff4876); outline-offset: 3px; }
.outfit-note { margin: 14px 0 0; font-size: 11px; line-height: 1.7; color: var(--muted); }
.ai-badge { display: inline-block; font-size: 9px; font-weight: 600; letter-spacing: .3px; line-height: 1; color: var(--pink, #ff4876); border: 1px solid currentColor; padding: 3px 6px; white-space: nowrap; }
.outfit-card > .ai-badge { align-self: flex-start; margin: 12px 11px 0; }
.outfit-card > .ai-badge + h3 { margin-top: 8px; }
.complement-recommendations .outfit-heading { justify-content: flex-start; align-items: center; }
.complement-recommendations .outfit-heading h2 { margin: 0; }
.modal-product.outfit-summary { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.outfit-summary-pieces { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.outfit-summary-pieces button { background: white; border: 1px solid #ececf2; padding: 6px; text-align: left; cursor: pointer; color: inherit; }
.outfit-summary-pieces button img { width: 100%; height: 80px; object-fit: contain; }
.outfit-summary-pieces button span { font-size: 9px; line-height: 1.4; margin-top: 6px; }
@media (max-width: 600px) {
  .outfit-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; }
  .outfit-card { flex: 0 0 72%; scroll-snap-align: start; }
  .outfit-heading h2 { font-size: 20px; }
}
.gallery-picture {
  background: #f6f5f4;
  position: relative;
  overflow: hidden;
}
.gallery-picture > img {
  width: 100%;
  display: block;
  aspect-ratio: 2/3;
  object-fit: cover;
}
.new-badge {
  position: absolute;
  left: 15px;
  top: 17px;
  background: white;
  padding: 5px 10px;
  font-size: 10px;
  z-index: 1;
}
.photo-caption {
  position: absolute;
  bottom: 18px;
  left: 18px;
  color: #fff;
  font-size: 11px;
  text-shadow: 0 1px 6px #0009;
}
.debug-render-options {
  min-width: 0;
  margin: 24px 0 8px;
  border: 1px solid #d9d4fa;
  border-radius: 8px;
  padding: 16px;
  background: #f8f7fd;
}
.debug-render-options legend { font-size: 12px; font-weight: 600; padding: 0 6px; }
.debug-render-options a { font-size: 11px; color: #5142bd; }
.debug-render-options details { margin-top: 16px; }
.debug-render-options summary { cursor: pointer; font-size: 12px; }
.debug-reference-title { font-size: 11px; margin: 16px 0 8px; }
.debug-reference-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.debug-reference-grid label { position: relative; width: 62px; gap: 3px; font-size: 10px; cursor: pointer; }
.debug-reference-grid img { width: 62px; height: 85px; object-fit: cover; background: white; }
.debug-reference-grid input { width: 15px; height: 15px; margin: 0; accent-color: #5745dd; }
.image-stage.turntable { cursor: grab; touch-action: pan-y; }
.image-stage.turntable:active { cursor: grabbing; }
.image-stage.turntable:focus-visible { outline: 2px solid var(--pink); outline-offset: -4px; }
.turntable-controls { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; padding: 0 8px; pointer-events: none; }
.turntable-step { pointer-events: auto; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #ffffffdb; color: var(--navy); font-size: 28px; line-height: 1; box-shadow: 0 1px 6px #29315d33; }
.turntable-step:focus-visible { outline-offset: 2px; }
.turntable-status { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); background: #ffffffdb; padding: 5px 10px; font-size: 11px; letter-spacing: 1px; border-radius: 3px; }
.debug-reference-grid label.packshot img { outline: 2px solid #5745dd; outline-offset: -2px; }
.debug-reference-grid label.packshot::after { content: "packshot"; position: absolute; top: 2px; left: 2px; padding: 1px 4px; font-size: 9px; color: white; background: #5745dd; border-radius: 3px; }
.debug-render-options .invalid { color: #bd254e; }
.gallery-thumbnails {
  grid-column: 1 / -1;
  min-width: 0;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 10px;
}
.gallery-thumbnails button {
  flex: 0 0 62px;
  padding: 2px;
  border: 1px solid var(--line, #e8e8ed);
  border-radius: 4px;
  background: white;
  cursor: pointer;
}
.gallery-thumbnails button[aria-pressed="true"] {
  border-color: currentColor;
}
.gallery-thumbnails img {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}
.gallery-note {
  grid-column: 1/-1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  font-size: 10px;
  color: var(--muted);
  padding: 12px 4px;
}
.gallery-note svg {
  width: 15px;
  height: 15px;
}
.product-details {
  padding-top: 4px;
}
.collection-tag {
  font-size: 9px;
  letter-spacing: 1.8px;
  color: var(--muted);
}
h1 {
  font-size: 23px;
  letter-spacing: -0.6px;
  line-height: 1.4;
  font-weight: 600;
  margin: 12px 0 14px;
}
.sku {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 26px;
  letter-spacing: 0.4px;
}
.size-section {
  border-top: 10px solid var(--gray);
  border-bottom: 10px solid var(--gray);
  padding: 26px 0 18px;
}
.label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
h2 {
  font-size: 16px;
  font-weight: 500;
  margin: 0;
}
.label-row > span {
  font-size: 10px;
  color: var(--muted);
}
.size-buttons {
  display: flex;
  gap: 10px;
}
.size-buttons > button {
  border: 1px solid var(--line);
  border-radius: 6px;
  flex: 1;
  height: 45px;
  min-width: 0;
  font-size: 12px;
  font-weight: 600;
}
.size-buttons > button.selected {
  border-color: var(--navy);
  background: #f8f8fb;
}
.fit-actions {
  display: flex;
  gap: 11px;
  margin-top: 18px;
}
.fit-button,
.tryon-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  min-height: 46px;
}
.fit-button {
  background: var(--gray);
}
.fit-button svg {
  width: 20px;
  height: 20px;
}
.tryon-button {
  background: var(--pink-soft);
  color: #e93e69;
  border: 1px solid #ffc3d3;
  flex: 1;
  transition: background 0.2s;
}
.tryon-button:hover {
  background: #ffe0e9;
}
.tryon-button svg {
  width: 19px;
  height: 19px;
}
.ai-badge {
  font-size: 8px;
  font-weight: 700;
  border: 1px solid #ffb5c9;
  border-radius: 3px;
  padding: 1px 3px;
}
.photo-free {
  font-size: 10px;
  color: var(--muted);
  margin: 12px 0 0;
}
.purchase-section {
  padding: 26px 0 20px;
}
.price {
  font-size: 21px;
  font-weight: 500;
  margin: 0 0 15px;
}
.offer {
  color: var(--pink);
  border: 1px solid #ffbdce;
  padding: 3px 7px;
  border-radius: 5px;
  font-size: 12px;
}
.quantity-picker {
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  height: 45px;
  margin-top: 20px;
}
.quantity-picker button {
  font-size: 24px;
  font-weight: 300;
  color: var(--pink);
  width: 32px;
}
.quantity-picker output {
  font-size: 13px;
}
.purchase-actions {
  display: flex;
  gap: 11px;
  margin-top: 12px;
  height: 47px;
}
.favorite-button {
  border: 1px solid var(--line);
  border-radius: 6px;
  width: 53px;
  font-size: 31px;
  line-height: 1;
  color: var(--pink);
}
.quick-buy {
  border: 1px solid var(--pink);
  border-radius: 6px;
  color: var(--pink);
  padding: 0 22px;
  white-space: nowrap;
}
.add-cart {
  background: var(--pink);
  color: white;
  flex: 1;
  border-radius: 6px;
  font-size: 15px;
}
.add-cart:hover,
.generate-button:hover:enabled {
  background: #ef3f6a;
}
.benefits {
  display: grid;
  gap: 7px;
}
.benefits p {
  margin: 0;
  background: var(--gray);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 11px;
}
.benefits p > span {
  margin-right: 10px;
}
.more-products {
  border-top: 10px solid var(--gray);
  margin-top: 28px;
  padding-top: 26px;
}
.more-products h2 {
  margin-bottom: 17px;
}
.product-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 11px;
}
.product-option {
  padding: 0;
  text-align: left;
  min-width: 0;
}
.product-option img {
  width: 100%;
  aspect-ratio: 2/2.5;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid transparent;
  padding: 2px;
}
.product-option.active img {
  border-color: var(--navy);
}
.product-option span {
  display: block;
  font-size: 10px;
  margin-top: 5px;
}
.product-option small {
  display: block;
  color: var(--muted);
  font-size: 8px;
}
.product-description {
  border-top: 1px solid var(--line);
  margin-top: 28px;
  padding-top: 20px;
}
.product-description summary {
  display: flex;
  justify-content: space-between;
  cursor: pointer;
  font-size: 13px;
}
.product-description summary span {
  font-size: 17px;
}
.product-description p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
}
.snapshot-note {
  font-size: 9px !important;
}
.snapshot-note a {
  text-decoration: underline;
  text-underline-offset: 2px;
}
footer {
  max-width: 1420px;
  margin: 60px auto 0;
  padding: 35px 0;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 35px;
  align-items: center;
}
footer .brand {
  font-size: 35px;
}
footer p {
  font-size: 10px;
  color: var(--muted);
}
footer > a:last-child {
  margin-left: auto;
  font-size: 10px;
  color: var(--muted);
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 500;
  background: var(--navy);
  color: white;
  padding: 13px 23px;
  border-radius: 8px;
  font-size: 12px;
  box-shadow: 0 5px 30px #242a4933;
  max-width: 90vw;
  text-align: center;
}
/* Try-on lives in a native, keyboard-accessible modal. */
body.modal-open {
  overflow: hidden;
}
dialog {
  color: var(--navy);
  border: 0;
  border-radius: 17px;
  padding: 0;
  box-shadow: 0 25px 100px #17203e40;
  background: white;
}
dialog::backdrop {
  background: #161a36aa;
  backdrop-filter: blur(5px);
}
#tryOnDialog {
  width: min(1040px, calc(100vw - 44px));
  max-width: none;
  max-height: calc(100dvh - 44px);
  overflow: auto;
  overscroll-behavior: contain;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 23px 30px;
  border-bottom: 1px solid var(--line);
  gap: 15px;
}
.modal-eyebrow {
  font-size: 8px;
  letter-spacing: 1.8px;
  color: var(--muted);
}
.modal-header h2 {
  font-size: 24px;
  letter-spacing: -0.7px;
  margin-top: 4px;
  font-weight: 500;
}
.close-button {
  font: 300 31px/1 Arial;
  color: var(--muted);
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: var(--gray);
  flex-shrink: 0;
}
.tryon-layout {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
}
/* Once a twin exists, the measurement sidebar has nothing left to ask for; the whole dialog becomes
   the visual + dressing action, with its small controls folded into a bar above the image. */
.tryon-layout--full {
  grid-template-columns: 1fr;
}
.tryon-layout--full .twin-controls {
  display: none;
}
.tryon-action-bar {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}
.tryon-action-bar .modal-product {
  width: 100%;
  margin: 0;
  border: 0;
  padding: 0;
}
/* Product row plus the prepared-angles button, which sits at its right edge. */
.tryon-product-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}
.tryon-product-row .modal-product {
  flex: 1;
  min-width: 0;
}
.tryon-product-row #openThreeSixty {
  flex: 0 0 auto;
}
/* Stays a small note, but reads as a refusal: same red as .error, without its block background. */
#threeSixtyDenied {
  color: #a73750;
  width: 100%;
  text-align: right;
  margin-top: 0;
}
#threeSixtyDenied a {
  color: inherit;
  text-decoration: underline;
}
@media (max-width: 480px) {
  .tryon-product-row {
    flex-wrap: wrap;
  }
  .tryon-product-row #openThreeSixty {
    width: 100%;
  }
}
.tryon-action-bar .modal-product-trigger {
  padding: 0;
}
.tryon-action-bar #tryForm {
  width: 100%;
}
.tryon-action-bar .generate-button {
  width: auto;
  min-height: auto;
  padding: 11px 22px;
  font-size: 11px;
  margin-left: auto;
}
.tryon-action-bar .generate-button > span {
  font-size: 15px;
}
@media (max-width: 480px) {
  .tryon-action-bar #tryForm {
    align-self: stretch;
    width: 100%;
  }
  .tryon-action-bar .generate-button {
    width: 100%;
  }
}
.tryon-action-bar #error {
  flex-basis: 100%;
}
.twin-controls {
  padding: 28px 30px;
}
.section-kicker {
  font-size: 8px;
  letter-spacing: 1.4px;
  color: var(--pink);
}
.twin-controls h3 {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.6px;
  margin: 12px 0;
}
.modal-intro {
  font-size: 11px;
  line-height: 1.85;
  color: var(--muted);
  margin: 0;
}
.modal-product {
  margin: 15px 0 19px;
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
}
/* Resets the <button> back to the plain row the product header used to be — the only button-specific
   addition is the pointer cursor and a focus ring, since this is now the one way back to the product
   photo once "Ürün"/"Modelim" are no longer shopper-visible tabs. */
.modal-product-trigger {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 0;
  border: 0;
  background: none;
  font: inherit;
  text-align: left;
  color: inherit;
  cursor: pointer;
}
.modal-product-trigger:focus-visible {
  outline: 2px solid var(--pink, #ff4876);
  outline-offset: 3px;
}
.modal-product img, .modal-product-trigger img {
  width: 45px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
}
.modal-product strong {
  font-size: 11px;
  font-weight: 500;
  display: block;
  line-height: 1.6;
}
.modal-product span {
  font-size: 9px;
  color: var(--muted);
  display: block;
  margin-top: 4px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
label {
  font-size: 11px;
}
input[type="number"],
input[type="password"],
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 11px 10px;
  height: 43px;
  background: white;
  font-size: 12px;
  margin-top: 8px;
}
.mode-label {
  display: block;
  margin-top: 17px;
}
.mode-label select {
  font-size: 11px;
}
.profile-choice {
  margin: 18px 0;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border, #ddd);
}
.no-profile-state {
  margin: 18px 0;
  padding: 18px;
  background: var(--gray);
  border-radius: 10px;
  text-align: center;
}
.no-profile-state p {
  margin: 0 0 14px;
  font-size: 14px;
}
.profile-controls {
  max-width: 480px;
}
.photo-capture-button {
  width: 100%;
  background: var(--pink);
  color: white;
  border-radius: 10px;
  min-height: 64px;
  font-size: 17px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.photo-capture-icon {
  font-size: 26px;
}
.profile-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 16px;
  margin-top: 10px;
  cursor: pointer;
  transition: border-color 0.15s ease;
}
.profile-option:first-child {
  margin-top: 0;
}
.profile-option:hover {
  border-color: var(--navy);
}
.profile-option-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--gray);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
}
.profile-option-icon svg {
  width: 20px;
  height: 20px;
}
.profile-option-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.profile-option-text strong {
  font-size: 14px;
  font-weight: 600;
}
.profile-option-text small {
  font-size: 11.5px;
  color: var(--muted);
}
.profile-option--primary {
  border-color: var(--pink);
}
.profile-option--primary .profile-option-icon {
  background: var(--pink-soft);
  color: var(--pink);
}
.photo-source-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.photo-source-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 24px 12px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: white;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background 0.15s ease;
}
.photo-source-card:hover,
.photo-source-card.is-dragover {
  border-color: var(--pink);
  background: var(--pink-soft);
}
.photo-source-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gray);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
}
.photo-source-icon svg {
  width: 28px;
  height: 28px;
}
.photo-source-card strong {
  font-size: 14px;
  font-weight: 600;
}
.manual-entry-button {
  width: 100%;
  background: none;
  border: 1px solid var(--border, #ccc);
  color: inherit;
  border-radius: 8px;
  min-height: 44px;
  font-size: 13px;
  font-weight: 600;
  margin-top: 10px;
}
.camera-view {
  margin: 16px 0;
}
.camera-guidance {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 8px;
}
.camera-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  background: #111;
  border-radius: 8px;
  overflow: hidden;
}
.camera-stage video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.camera-silhouette {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.camera-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.camera-actions button {
  flex: 1;
  min-height: 40px;
  border-radius: 6px;
  font-size: 12px;
}
#capturePhoto,
#usePhoto {
  background: var(--pink);
  color: white;
}
#capturePhoto:disabled {
  background: var(--border, #ccc);
  color: var(--muted);
  cursor: not-allowed;
}
.photo-review img {
  width: 100%;
  border-radius: 8px;
  display: block;
}
.skin-tone-header {
  display: flex;
  align-items: center;
  gap: 8px;
}
.skin-tone-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.skin-tone-expand {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
  padding: 4px;
  transition: transform 0.15s;
}
.skin-tone-expand[aria-expanded="true"] {
  transform: rotate(180deg);
}
.skin-tone-row button {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid transparent;
  box-shadow: 0 0 0 1px var(--border, #ddd);
  cursor: pointer;
  padding: 0;
}
.skin-tone-row button[aria-pressed="true"] {
  border-color: var(--pink);
}
.skin-tone-row button:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}
.measurements {
  margin-top: 19px;
}
.measurements summary {
  cursor: pointer;
  font-size: 10px;
  color: var(--muted);
}
.field-row.four {
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 13px;
}
.field-row.four label {
  font-size: 9px;
}
.privacy {
  display: flex;
  align-items: start;
  gap: 9px;
  font-size: 9px;
  color: var(--muted);
  line-height: 1.8;
  margin: 22px 0 18px;
}
.privacy svg {
  width: 15px;
  height: 15px;
  margin-top: 3px;
}
.generate-button {
  width: 100%;
  background: var(--pink);
  color: white;
  border-radius: 6px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  min-height: 47px;
  font-size: 12px;
}
.generate-button > span {
  font-size: 21px;
}
.cost-note {
  font-size: 8px;
  color: var(--muted);
  line-height: 1.8;
  margin-top: 9px;
}
.api-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  color: color-mix(in srgb, var(--navy) 75%, #fff);
  margin: 10px 0 0;
}
.api-status .ready {
  color: #47715a;
}
.fit-disclaimer {
  font-size: 8px;
  line-height: 1.85;
  color: color-mix(in srgb, var(--navy) 75%, #fff);
  margin: 4px 0 0;
}
.error {
  font-size: 10px;
  line-height: 1.8;
  color: #a73750;
  background: #fff1f3;
  border-radius: 5px;
  padding: 11px 13px;
  margin-top: 15px;
}
.tryon-visual {
  background: #f8f7f6;
  padding: 18px 23px 24px;
  min-width: 0;
  border-bottom-right-radius: 17px;
}
.view-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 13px;
  background: #eeedeb;
  border-radius: 6px;
  padding: 4px;
}
.view-tabs button {
  flex: 1;
  border-radius: 4px;
  font-size: 10px;
  padding: 9px 4px;
}
.view-tabs button[aria-selected="true"] {
  background: white;
  box-shadow: 0 1px 5px #252d4a0d;
}
.view-tabs button small { font-size: 8px; opacity: .65; margin-left: 3px; }
.three-d-stage { border: 1px solid #e3e1dd; border-radius: 8px; overflow: hidden; background: #eeecea; }
.three-d-stage iframe { display: block; width: 100%; height: 560px; border: 0; }
.three-d-note { margin: 0; padding: 12px 16px; font-size: 10px; line-height: 1.65; background: #faf9f7; color: #72748c; }
.three-d-note strong { color: #2a315d; }
@media (max-width: 600px) { .three-d-stage iframe { height: 520px; } }
.image-stage {
  position: relative;
  height: 490px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #eeecea;
  border-radius: 8px;
}
.image-stage > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.image-badge {
  position: absolute;
  left: 13px;
  top: 14px;
  background: #ffffffdb;
  padding: 5px 8px;
  font-size: 7px;
  letter-spacing: 1px;
  z-index: 1;
  border-radius: 3px;
}
.busy {
  position: absolute;
  inset: 0;
  background: #f5f3f1ed;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  padding: 25px;
  z-index: 2;
}
.busy strong {
  font-size: 13px;
  font-weight: 500;
  margin-top: 23px;
}
.busy p {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.8;
}
.spinner {
  width: 33px;
  height: 33px;
  border: 2px solid #f0c5d0;
  border-top-color: var(--pink);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.result-info {
  font-size: 10px;
  line-height: 1.8;
  margin-top: 16px;
}
.result-info strong {
  font-weight: 500;
}
.result-info span {
  color: var(--muted);
}
.result-info a {
  display: inline-block;
  color: var(--pink);
  margin-top: 7px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
/* Size view: numbers must be at least as visible as the image, which can exaggerate small sizes. */
.size-view {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--pink);
  background: var(--pink-soft);
  font-size: 11px;
  line-height: 1.6;
}
.size-delta {
  margin: 0;
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
}
.size-note,
.size-warning {
  margin: 6px 0 0;
  color: var(--muted);
}
.size-choice-group {
  margin-top: 10px;
}
.size-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.size-choices button {
  min-width: 44px;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  font: inherit;
  cursor: pointer;
}
.size-choices button[data-recommended="true"] {
  border-color: var(--navy);
  font-weight: 600;
}
.size-choices button[aria-pressed="true"] {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}
.field-hint {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}
#sizeDialog {
  width: min(650px, calc(100vw - 35px));
  max-height: 90dvh;
}
/* A drawer pinned to the right edge of the viewport, not a centred modal: full height, its own
   scroll, rounded only on the side that faces the page. Collapses to the full screen width on a
   phone the same way the rest of the dialogs already do at that width. */
#tryOnHistoryDialog {
  position: fixed;
  inset: 0 0 0 auto;
  margin: 0;
  width: min(420px, 100vw);
  height: 100dvh;
  max-height: none;
  max-width: none;
  border-radius: 12px 0 0 12px;
  overflow: auto;
}
.history-grid {
  display: flex;
  flex-direction: column;
  padding: 0 28px 28px;
}
/* Top to bottom, same as "Üzerimde Gör" itself: a compact product header (small thumbnail + name/SKU,
   horizontal, not a tall portrait crop) first, then the twin actually dressed in it as the one big
   image underneath — not two same-sized photos stacked on top of each other. */
.history-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: inherit;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.history-card:first-child {
  border-top: 0;
}
.history-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.history-card-header img {
  display: block;
  width: 45px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
  background: #f4f3f1;
}
.history-card-header strong {
  font-size: 11px;
  font-weight: 500;
  display: block;
  line-height: 1.6;
}
.history-card-header span {
  font-size: 9px;
  color: var(--muted);
  display: block;
  margin-top: 4px;
}
.history-card > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2/3;
  object-fit: cover;
  border-radius: 5px;
  background: #f4f3f1;
  transition: filter 0.2s;
}
.history-card:hover > img {
  filter: brightness(0.98);
}
@media (max-width: 600px) {
  #tryOnHistoryDialog {
    border-radius: 0;
  }
}
#profileDialog {
  width: min(560px, calc(100vw - 44px));
  max-width: none;
  max-height: calc(100dvh - 44px);
  overflow: auto;
}
/* The photo-capture cards and the twin preview side by side need real room — at the plain 560px cap
   they came out squeezed into two narrow slivers. Widens only while both halves are actually on
   screen (.profile-layout--split); the single-column cases (first-time setup, or just the twin with
   its "Düzenle" button) stay at the narrower, centred width above. */
#profileDialog:has(.profile-layout--split) {
  width: min(920px, calc(100vw - 44px));
}
.profile-layout {
  grid-template-columns: 1fr;
  max-width: 480px;
  margin: 0 auto;
}
/* A twin exists: it sits beside the settings rather than replacing them, so the form stays usable
   right after "Twin'imi Oluştur ve Kaydet" and during "Twin'ini Düzenle". */
.profile-layout--split {
  grid-template-columns: 0.92fr 1.08fr;
  max-width: none;
}
.profile-layout--split .profile-controls {
  max-width: none;
}
.profile-twin-done {
  padding: 28px 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.profile-twin-done .image-stage {
  height: 420px;
}
.profile-edit-button {
  background: white;
  color: var(--navy);
  border: 1px solid var(--line);
}
.profile-edit-form {
  margin-top: 4px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.profile-form-actions {
  display: flex;
  gap: 10px;
}
.profile-form-actions .generate-button {
  flex: 1;
}
.profile-edit-cancel {
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 18px;
  font-size: 13px;
  font-weight: 600;
}
.size-intro {
  font-size: 12px;
  color: var(--muted);
  padding: 0 28px;
  margin: 22px 0;
  line-height: 1.9;
}
#accessDialog {
  width: min(440px, calc(100vw - 35px));
}
.access-form {
  padding: 0 28px 26px;
}
.access-form .generate-button {
  margin-top: 16px;
}
.preset-options {
  padding: 0 28px;
  display: grid;
  gap: 12px;
}
.preset-options button {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: flex;
  align-items: center;
  gap: 20px;
  text-align: left;
}
.preset-options strong {
  font-size: 22px;
  font-weight: 400;
  min-width: 28px;
}
.preset-options span {
  font-size: 11px;
  color: var(--muted);
}
.preset-options em {
  margin-left: auto;
  font-size: 11px;
  color: var(--pink);
  font-style: normal;
}
/* Explicit ?debug=true opt-in. API keys and native reasoning never enter this panel. */
.debug-panel {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: min(530px, calc(100vw - 36px));
  z-index: 300;
  background: #131724;
  color: #c5cbe0;
  border: 1px solid #4c4d93;
  border-radius: 13px;
  box-shadow: 0 12px 60px #0006;
  font:
    11px/1.6 ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  overflow: hidden;
}
.debug-header {
  background: #222644;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-bottom: 1px solid #3b4167;
}
.debug-header > strong {
  letter-spacing: 2px;
  font-size: 12px;
  color: #9090ff;
  margin-right: auto;
}
.debug-header > span {
  background: #5546ee;
  color: white;
  border-radius: 20px;
  min-width: 23px;
  text-align: center;
  padding: 1px 5px;
}
.debug-header button {
  border: 1px solid #535771;
  border-radius: 5px;
  color: #b9bfd7;
  font-size: 10px;
  padding: 2px 9px;
}
.debug-header button:hover {
  background: #34395b;
}
.debug-providers {
  font-size: 9px;
  padding: 11px 15px 9px;
  line-height: 1.9;
  color: #8f9ab9;
  overflow-wrap: anywhere;
}
.debug-providers strong {
  color: #c8d1f0;
  font-weight: 500;
}
.debug-totals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 9px 15px;
  background: #191e2e;
}
.debug-totals small {
  font-size: 8px;
  color: #838fac;
  letter-spacing: 0.7px;
  display: block;
}
.debug-totals strong {
  font-size: 15px;
  color: #e4e7ff;
  font-weight: 500;
  display: block;
  margin-top: 5px;
}
.debug-note {
  font-size: 8px;
  color: #7f8aa5;
  padding: 0 15px;
  margin: 9px 0;
}
.debug-entries {
  max-height: min(38dvh, 360px);
  overflow: auto;
  padding: 0 9px 8px;
  overscroll-behavior: contain;
}
.debug-empty {
  padding: 15px 8px;
  font-size: 10px;
  color: #838fac;
}
.trace-entry {
  border: 1px solid #2a3046;
  border-radius: 5px;
  margin: 6px 0;
  background: #191e2d;
}
.trace-entry > summary {
  display: flex;
  gap: 8px;
  align-items: center;
  cursor: pointer;
  list-style: none;
  padding: 9px 8px;
  font-size: 10px;
  overflow-wrap: anywhere;
}
.trace-entry > summary::-webkit-details-marker {
  display: none;
}
.trace-entry > summary:before {
  content: "›";
  color: #808aab;
}
.trace-entry[open] > summary:before {
  content: "⌄";
}
.trace-name {
  font-weight: 500;
  color: #d0d6ef;
  flex: 1;
  min-width: 0;
}
.trace-kind {
  font-size: 7px;
  letter-spacing: 0.5px;
  border: 1px solid #414666;
  border-radius: 3px;
  padding: 0 4px;
  color: #9298ff;
}
.trace-state {
  color: #7a90a9;
  font-size: 8px;
  white-space: nowrap;
}
.trace-state.completed {
  color: #77b8a1;
}
.trace-state.failed {
  color: #f390a7;
}
.trace-state.running {
  color: #cfb77e;
}
.trace-meta {
  padding: 0 12px 8px;
  color: #8c96b2;
  font-size: 8px;
  overflow-wrap: anywhere;
}
.trace-entry h4 {
  padding: 0 12px;
  margin: 10px 0 5px;
  font-size: 8px;
  letter-spacing: 1px;
  color: #898eff;
}
.trace-entry pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font:
    9px/1.7 ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  max-height: 220px;
  overflow: auto;
  padding: 11px;
  margin: 0 7px 9px;
  border-radius: 4px;
  background: #10141f;
  color: #b8c2dd;
  tab-size: 2;
}
@media (min-width: 1600px) {
  .gallery-picture > img {
    max-height: 850px;
  }
  .image-stage {
    height: 540px;
  }
}
@media (max-width: 1100px) {
  .header-main {
    gap: 30px;
    padding: 23px 25px 17px;
  }
  .site-header nav {
    gap: 28px;
  }
  main {
    padding: 0 25px;
  }
  .product-layout {
    gap: 28px;
    grid-template-columns: minmax(0, 1.2fr) minmax(340px, 1fr);
  }
  .gallery {
    grid-template-columns: 1fr;
  }
  .second-picture {
    display: none;
  }
  .product-details h1 {
    font-size: 22px;
  }
  .fit-button,
  .tryon-button {
    padding: 11px 12px;
  }
  footer {
    margin: 45px 25px 0;
  }
  .tryon-layout {
    grid-template-columns: 0.95fr 1.05fr;
  }
  .twin-controls {
    padding: 25px;
  }
  .image-stage {
    height: 480px;
  }
}
@media (max-width: 740px) {
  .campaign-bar {
    font-size: 10px;
    height: 32px;
  }
  .campaign-bar span {
    display: none;
  }
  .header-main {
    padding: 20px 19px 15px;
    gap: 20px;
    flex-wrap: wrap;
  }
  .brand {
    font-size: 44px;
  }
  .header-actions {
    margin-left: auto;
    gap: 20px;
  }
  .search-box {
    order: 3;
    max-width: none;
    flex-basis: 100%;
    padding: 10px 13px;
  }
  .site-header nav {
    justify-content: start;
    gap: 23px;
    padding: 12px 19px;
    font-size: 11px;
  }
  .breadcrumbs {
    font-size: 8px;
    gap: 7px;
    white-space: nowrap;
    overflow: hidden;
    padding: 17px 0;
  }
  main {
    padding: 0 18px;
  }
  .product-layout {
    display: block;
  }
  .gallery {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin: 0 -18px;
  }
  .second-picture {
    display: block;
  }
  .gallery-picture > img {
    aspect-ratio: 2/3;
  }
  .new-badge {
    left: 10px;
    top: 10px;
    font-size: 8px;
    padding: 4px 7px;
  }
  .photo-caption {
    display: none;
  }
  .gallery-note {
    font-size: 9px;
    padding: 8px;
  }
  .product-details {
    padding-top: 19px;
  }
  .collection-tag {
    font-size: 8px;
  }
  h1,
  .product-details h1 {
    font-size: 21px;
    margin-top: 9px;
  }
  .sku {
    font-size: 11px;
    margin-bottom: 23px;
  }
  .size-section {
    padding: 22px 0 16px;
  }
  .size-buttons {
    gap: 8px;
  }
  .size-buttons > button {
    height: 45px;
  }
  .fit-actions {
    gap: 9px;
  }
  .fit-button,
  .tryon-button {
    font-size: 12px;
    padding: 12px 15px;
    flex: 1;
  }
  .photo-free {
    font-size: 9px;
  }
  .purchase-section {
    padding: 23px 0 18px;
  }
  .benefits p {
    font-size: 11px;
  }
  .more-products h2 {
    font-size: 15px;
  }
  .product-options {
    gap: 10px;
  }
  .product-option small {
    font-size: 8px;
  }
  .product-option span {
    font-size: 9px;
  }
  footer {
    margin: 35px 18px 0;
    padding: 25px 0;
    gap: 20px;
    flex-wrap: wrap;
  }
  footer .brand {
    font-size: 32px;
  }
  footer p {
    font-size: 9px;
  }
  footer > a:last-child {
    margin-left: 0;
    font-size: 9px;
  }
  #tryOnDialog {
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
    border-radius: 12px;
  }
  .modal-header {
    padding: 17px 20px;
    position: sticky;
    top: 0;
    background: white;
    z-index: 3;
  }
  .modal-header h2 {
    font-size: 21px;
  }
  .tryon-layout {
    display: flex;
    flex-direction: column;
  }
  .twin-controls {
    padding: 22px 23px;
  }
  .twin-controls h3 {
    font-size: 21px;
  }
  .tryon-visual {
    padding: 18px 20px 23px;
    border-radius: 0 0 12px 12px;
  }
  .image-stage {
    height: 440px;
  }
  .fit-disclaimer {
    font-size: 9px;
  }
  .cost-note {
    font-size: 9px;
  }
  .api-status {
    font-size: 10px;
  }
  .debug-panel {
    right: 10px;
    bottom: 10px;
    width: calc(100vw - 20px);
  }
  .debug-entries {
    max-height: 30dvh;
  }
  .debug-providers {
    font-size: 8px;
  }
  .debug-totals strong {
    font-size: 13px;
  }
  .preset-options {
    padding: 0 20px;
  }
  .preset-options button {
    gap: 13px;
    padding: 14px;
  }
  .preset-options span {
    font-size: 9px;
  }
  .preset-options em {
    font-size: 9px;
  }
  .size-intro {
    padding: 0 20px;
    font-size: 11px;
  }
  .access-form {
    padding: 0 20px 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation-duration: 0s !important;
    transition: none !important;
  }
}

/* Database-backed static catalog navigation. */
.site-header #categoryNav {
  gap: 32px;
  justify-content: flex-start;
  max-width: 1500px;
  min-height: 56.6px;
  padding-left: 40px;
  padding-right: 40px;
}
.nav-department {
  display: flex;
  align-items: center;
  gap: 21px;
  white-space: nowrap;
}
.nav-department + .nav-department {
  border-left: 1px solid var(--line);
  padding-left: 32px;
}
.department-link {
  font-weight: 650;
  font-size: 13px;
}
.category-nav-link {
  font-size: 12px;
  color: #747990;
  padding: 2px 0;
}
.category-nav-link[aria-current="page"] {
  color: var(--pink);
  box-shadow: 0 2px var(--pink);
}
.breadcrumbs {
  min-height: 59.5px;
  white-space: nowrap;
  overflow: auto;
}
.breadcrumbs a:hover {
  color: var(--pink);
}
.breadcrumbs strong {
  text-overflow: ellipsis;
  overflow: hidden;
  font-size: 10px;
}
.catalog-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0 27px;
  gap: 20px;
}
.catalog-heading h1 {
  font-size: 35px;
  font-weight: 450;
  letter-spacing: -1.2px;
  line-height: 1.25;
  margin: 12px 0;
}
.catalog-heading p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.catalog-total {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.category-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 5px 0 35px;
}
.category-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  overflow: hidden;
  background: #f7f5f3;
  border-radius: 7px;
  min-width: 0;
  transition: box-shadow 0.2s;
}
.category-card:nth-child(2) {
  background: #fcf0f1;
}
.category-card:nth-child(3) {
  background: #f0f2f3;
}
.category-card:hover {
  box-shadow: 0 8px 26px #29315d12;
}
.category-card > img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: 50% 25%;
  mix-blend-mode: multiply;
}
.category-card > div {
  padding: 20px 15px;
  min-width: 0;
}
.category-card small {
  font-size: 8px;
  letter-spacing: 1.6px;
  color: var(--muted);
}
.category-card h2 {
  font-size: 22px;
  font-weight: 450;
  line-height: 1.3;
  letter-spacing: -0.5px;
  margin: 10px 0 18px;
}
.category-card span {
  font-size: 10px;
  color: var(--muted);
}
.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  gap: 20px;
  margin-top: 12px;
}
.catalog-toolbar > p {
  font-size: 12px;
  margin: 0;
}
.catalog-toolbar > label {
  display: flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
  font-size: 10px;
  color: var(--muted);
}
.catalog-toolbar select {
  margin: 0;
  min-width: 190px;
  height: 38px;
  padding: 8px 10px;
  font-size: 11px;
}
.category-filters {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  padding: 21px 0 24px;
}
.filter-chip {
  font-size: 10px;
  background: #f7f7fa;
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 8px 13px;
  color: #767b95;
}
.filter-chip:hover,
.filter-chip[aria-current="page"] {
  border-color: #ffc2d2;
  color: #ec426c;
  background: #fff1f5;
}
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px 19px;
}
.catalog-card {
  position: relative;
  min-width: 0;
  display: block;
}
.catalog-card > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2/3;
  object-fit: cover;
  border-radius: 5px;
  background: #f4f3f1;
  transition: filter 0.2s;
}
.catalog-card:hover > img {
  filter: brightness(0.98);
}
.catalog-card .card-name {
  display: block;
  font-size: 12px;
  line-height: 1.7;
  margin-top: 12px;
  min-height: 40px;
}
.card-price {
  font-size: 13px;
  font-weight: 500;
  display: block;
  margin-top: 8px;
}
.catalog-card > small {
  display: inline-block;
  font-size: 8px;
  color: var(--pink);
  border: 1px solid #ffd2de;
  border-radius: 4px;
  padding: 2px 5px;
  margin-top: 8px;
}
.catalog-empty {
  padding: 50px 20px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}
.catalog-pagination {
  display: flex;
  gap: 7px;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  padding: 37px 0 20px;
}
.pagination-gap {
  color: var(--muted);
  font-size: 11px;
  padding: 0 1px;
}
.catalog-pagination a {
  width: 33px;
  height: 33px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 11px;
}
.catalog-pagination a[aria-current="page"] {
  color: white;
  background: var(--navy);
  border-color: var(--navy);
}
.catalog-snapshot {
  font-size: 9px;
  color: var(--muted);
  line-height: 1.9;
  text-align: center;
  margin: 20px 0 35px;
}
.size-buttons {
  flex-wrap: wrap;
}
.size-buttons > button {
  min-width: 45px;
  flex: 0 1 calc((100% - 50px) / 6);
  padding: 0 7px;
}
.product-options {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  row-gap: 17px;
}
.product-option .card-name {
  font-size: 9px;
  line-height: 1.6;
}
.product-option .card-price {
  font-size: 9px;
}
.product-option > img {
  height: auto;
}
@media (max-width: 1100px) {
  .site-header #categoryNav {
    padding-left: 25px;
    padding-right: 25px;
  }
  .category-cards {
    gap: 13px;
  }
  .category-card > img {
    height: 240px;
  }
  .category-card h2 {
    font-size: 18px;
  }
  .category-card > div {
    padding: 14px 12px;
  }
  .category-card span {
    font-size: 9px;
  }
  .catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 740px) {
  .site-header #categoryNav {
    padding: 12px 18px;
    gap: 20px;
    min-height: 43.5px;
  }
  .nav-department {
    gap: 15px;
  }
  .nav-department + .nav-department {
    padding-left: 20px;
  }
  .department-link {
    font-size: 12px;
  }
  .category-nav-link {
    font-size: 10px;
  }
  .breadcrumbs {
    min-height: 48px;
    gap: 8px;
  }
  .breadcrumbs strong {
    font-size: 8px;
    min-width: 120px;
  }
  .catalog-heading {
    display: block;
    padding: 17px 0 21px;
  }
  .catalog-heading h1 {
    font-size: 29px;
  }
  .catalog-heading p {
    font-size: 11px;
    line-height: 1.9;
  }
  .catalog-total {
    display: block;
    margin-top: 13px;
    font-size: 10px;
  }
  .category-cards {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    margin-bottom: 25px;
    padding-bottom: 8px;
  }
  .category-card {
    min-width: 280px;
    scroll-snap-align: start;
  }
  .category-card > img {
    height: 210px;
  }
  .category-card h2 {
    font-size: 19px;
  }
  .catalog-toolbar > label {
    gap: 8px;
    font-size: 9px;
  }
  .catalog-toolbar select {
    min-width: 0;
    width: 160px;
    font-size: 10px;
  }
  .catalog-toolbar > p {
    font-size: 11px;
  }
  .category-filters {
    gap: 7px;
    padding: 16px 0 21px;
  }
  .filter-chip {
    font-size: 9px;
    padding: 7px 10px;
  }
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px 10px;
  }
  .catalog-card .card-name {
    font-size: 10px;
    line-height: 1.7;
    min-height: 36px;
    margin-top: 9px;
  }
  .card-price {
    font-size: 12px;
  }
  .catalog-card > small {
    font-size: 7px;
  }
  .catalog-pagination {
    gap: 6px;
    padding-top: 28px;
  }
  .catalog-pagination a {
    width: 30px;
    height: 30px;
    font-size: 10px;
    flex-shrink: 0;
  }
  .pagination-gap {
    font-size: 10px;
  }
  .catalog-snapshot {
    font-size: 8px;
  }
  .size-buttons > button {
    min-width: 40px;
    flex-basis: calc((100% - 40px) / 6);
  }
}
.product-chat {
  border-top: 1px solid var(--line);
  margin-top: 28px;
  padding-top: 20px;
}
.product-chat h2 {
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 14px;
}
.chat-log { position: relative; display: flex; flex-direction: column; gap: 12px; max-height: 620px; overflow-y: auto; margin-bottom: 14px; }
.chat-log:empty { display: none; }
.chat-message { font-size: 12px; line-height: 1.7; }
.chat-message p { margin: 0 0 8px; }
.chat-message p:last-child { margin-bottom: 0; }
.chat-message--user { align-self: flex-end; max-width: 85%; background: var(--navy); color: #fff; padding: 9px 13px; border-radius: 14px 14px 4px 14px; }
.chat-message--assistant { color: #222333; }
.chat-message--pending { color: var(--muted); }
.chat-message--error { color: #b3261e; }
.chat-outfit { margin-bottom: 12px; }
.chat-outfit h3 { font-size: 12px; margin: 6px 0 8px; }
.chat-products { grid-template-columns: repeat(auto-fill, 108px); gap: 10px; margin-bottom: 8px; }
.chat-products > .product-option { display: grid; grid-template-areas: "media" "name"; align-content: start; row-gap: 5px; }
.chat-products > .product-option > img { grid-area: media; aspect-ratio: 4 / 5; padding: 0; border-color: var(--line); border-radius: 8px; background: #fff; }
.chat-products > .product-option:hover > img { border-color: var(--muted); }
.chat-products > .product-option .card-name { grid-area: name; margin: 0; font-size: 10px; line-height: 1.35; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.chat-products > .product-option .card-price { grid-area: media; align-self: end; justify-self: start; margin: 0 0 6px 6px; padding: 2px 6px; border-radius: 4px; background: #fff; color: var(--navy); font-size: 11px; font-weight: 700; line-height: 1.4; box-shadow: 0 1px 4px #17203e26; }
.chat-suggestions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chat-suggestions:empty { display: none; }
.chat-chip { border: 1px solid var(--line); background: var(--gray); color: inherit; font: inherit; font-size: 11px; padding: 8px 12px; border-radius: 999px; cursor: pointer; }
.chat-chip:hover { border-color: var(--navy); }
.chat-chip:focus-visible, .chat-form button:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
.chat-form { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 6px; padding: 6px 6px 6px 14px; }
.chat-form:focus-within { border-color: var(--navy); }
.chat-form input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 12px; background: transparent; }
.chat-form button { flex: none; width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--navy); color: #fff; font-size: 16px; cursor: pointer; }
.chat-form button:disabled, .chat-form input:disabled { opacity: .5; cursor: default; }
.tryon-chat { margin-top: 12px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.tryon-chat details[open] { padding-bottom: 12px; }
.tryon-chat summary { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 0; cursor: pointer; list-style: none; }
.tryon-chat summary::-webkit-details-marker { display: none; }
.tryon-chat summary::after { content: ""; flex: none; width: 7px; height: 7px; margin: -4px 4px 0 auto; border: solid var(--navy); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
@media (prefers-reduced-motion: no-preference) { .tryon-chat summary::after { transition: transform .2s ease; } }
.tryon-chat details[open] > summary { margin-bottom: 10px; border-bottom: 1px solid var(--line); }
.tryon-chat details[open] > summary::after { margin-top: 4px; transform: rotate(-135deg); }
.tryon-chat summary h3 { margin: 0; font-size: 12px; line-height: 1.35; font-weight: 600; }
.tryon-chat .chat-log { max-height: none; overflow: visible; gap: 8px; margin-bottom: 10px; }
.tryon-chat .chat-message { line-height: 1.55; overflow-wrap: anywhere; }
.tryon-chat .chat-message p:not(:last-child) { margin-bottom: 6px; }
.tryon-chat .chat-message > :last-child { margin-bottom: 0; }
.tryon-chat .chat-message--user { padding: 6px 11px; line-height: 1.45; scroll-margin-top: 12px; }
.tryon-chat .chat-outfit { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 8px; width: fit-content; max-width: 100%; margin: 8px 0; padding: 10px; border-radius: 10px; background: var(--gray); }
.tryon-chat .chat-outfit h3 { margin: 0; font-size: 12px; line-height: 1.35; }
.tryon-chat .chat-outfit > .chat-products, .tryon-chat .chat-outfit > .chat-outfit-actions { grid-column: 1 / -1; }
.tryon-chat .chat-outfit > .chat-products { margin: 8px 0 0; }
.tryon-chat .chat-products { display: flex; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: thin; }
.tryon-chat .chat-products > .product-option { flex: 0 0 108px; scroll-snap-align: start; }
.tryon-chat .chat-products > .product-option:focus-visible { outline-offset: -2px; }
.tryon-chat .chat-suggestions { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; gap: 6px; margin-bottom: 8px; }
.tryon-chat .chat-chip { flex: none; white-space: nowrap; padding: 6px 12px; }
.tryon-chat .chat-chip:focus-visible { outline-offset: -3px; }
.tryon-chat .chat-form { padding: 3px 3px 3px 12px; }
.tryon-chat .chat-form button { width: 30px; height: 30px; font-size: 14px; }
.chat-outfit-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chat-outfit-actions button { border: 0; border-radius: 6px; background: var(--navy); color: #fff; font: inherit; font-size: 11px; padding: 10px 14px; cursor: pointer; }
.chat-outfit-actions button:hover { background: var(--pink, #ff4876); }
.chat-outfit-actions button:focus-visible { outline: 2px solid var(--pink, #ff4876); outline-offset: 2px; }
.chat-outfit-actions .chat-outfit-cart { background: #fff; color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.chat-outfit-actions .chat-outfit-cart:hover { background: var(--pink-soft); }
.tryon-chat .chat-outfit-actions { gap: 6px; }
.tryon-chat .chat-outfit-actions button { padding: 7px 12px; }
@media (max-width: 740px), (pointer: coarse) {
  .tryon-chat .chat-chip { min-height: 44px; }
  .tryon-chat .chat-outfit-actions button { flex: 1 1 0; min-height: 44px; }
  .tryon-chat .chat-form { padding: 0 0 0 12px; }
  .tryon-chat .chat-form button { width: 44px; height: 44px; border: 5px solid transparent; background-clip: padding-box; font-size: 15px; }
  .tryon-chat .chat-form input { font-size: 16px; }
}
@media (max-width: 740px) { #tryOnDialog { scroll-padding-top: var(--tryon-header-height, 0px); } }
.page-loading { position: relative; }
.page-loading[hidden] { display: none; }
.page-loading-label { position: absolute; z-index: 1; top: 17px; left: 15px; padding: 5px 10px; background: #fff; font-size: 10px; color: var(--navy); }
.page-loading-media { aspect-ratio: 2 / 3; background: var(--gray); animation: page-loading-pulse 1.4s ease-in-out infinite; }
.page-loading-lines { display: flex; flex-direction: column; gap: 14px; animation: page-loading-pulse 1.4s ease-in-out infinite; }
.page-loading-lines span { display: block; height: 12px; background: var(--line); border-radius: 3px; }
.page-loading-lines span:nth-child(1) { width: 75%; height: 22px; }
.page-loading-lines span:nth-child(2) { width: 35%; }
.page-loading-lines span:nth-child(3) { width: 90%; }
.page-loading-listing { display: none; grid-column: 1 / -1; }
.page-loading-title { display: block; width: min(320px, 70%); height: 44px; margin: 35px 0 31px; background: var(--line); border-radius: 3px; animation: page-loading-pulse 1.4s ease-in-out infinite; }
.page-loading.listing > .gallery, .page-loading.listing > .product-details { display: none; }
.page-loading.listing > .page-loading-listing { display: block; }
.page-loading.listing > .page-loading-label { top: 26px; left: 0; padding: 0; }
.page-loading .gallery-thumbnails span { flex: 0 0 62px; height: 90px; background: var(--gray); border-radius: 4px; }
.page-loading .gallery-note span { width: 240px; height: 15px; background: var(--line); border-radius: 3px; }
.page-loading:not(.with-cards) .category-cards { display: none; }
.page-loading .category-cards span { height: 280px; background: var(--gray); border-radius: 7px; }
.page-loading .catalog-toolbar { min-height: 64px; }
.page-loading .filter-chip { box-sizing: content-box; width: 10.5em; height: 1lh; }
.page-loading :where(.gallery-thumbnails span, .gallery-note span, .category-cards span, .filter-chip) { animation: page-loading-pulse 1.4s ease-in-out infinite; }
@media (max-width: 1100px) { .page-loading .category-cards span { height: 240px; } }
@media (max-width: 740px) { .page-loading-title { margin-bottom: 53.9px; } .page-loading .category-cards span { flex: 0 0 280px; height: 210px; } }
@keyframes page-loading-pulse { 50% { opacity: .5; } }
@media (prefers-reduced-motion: reduce) { .page-loading * { animation: none; } }
