/* Desktop study: three store cards borrow the visual proportions of Stories. */
#w2r-concept .w-shop-story-card .w-shop-story-desktop { display: none; }

/* The whole introduction uses the graphic background from the How it works hero. */
#w2r-concept .sd-intro {
  position: relative;
  box-sizing: border-box;
  max-width: none;
  padding: 26px 30px;
  overflow: hidden;
  border: 1px solid light-dark(#d4e4ee,#243953);
  border-radius: 22px;
  background: radial-gradient(circle at 80% 35%,light-dark(#ffeccc,#31506b) 0,light-dark(#e7f2fa,#142942) 42%,light-dark(#f9fbfc,#091727) 85%);
  box-shadow: 0 12px 30px light-dark(#183b601a,#0000002e);
}
#w2r-concept .sd-intro::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -170px;
  width: 380px;
  height: 380px;
  border: 1px solid light-dark(#eba8768a,#f4ad8840);
  border-radius: 50%;
  box-shadow: 0 0 0 65px light-dark(#f9bf9129,#f4ad880a),0 0 0 130px light-dark(#f9bf9118,#f4ad8808);
  pointer-events: none;
}
#w2r-concept .sd-intro > * { position: relative; z-index: 1; }
#w2r-concept .sd-intro h1 {
  width: auto;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: light-dark(#142e4c,#fff);
}
#w2r-concept .sd-intro .sd-subtitle { color: light-dark(#142e4c,#dce8f4); }
#w2r-concept .sd-intro .sd-help { color: light-dark(#415b70,#cbd7e5); }
@media (min-width: 1051px) {
  #w2r-concept .sd-directory > .sd-intro,
  #w2r-concept .sd-directory > .sd-tools {
    align-self: stretch;
    margin-top: 0;
    margin-bottom: 28px;
  }
}
@media (max-width: 619px) {
  #w2r-concept .sd-intro { padding: 22px; border-radius: 20px; }
  #w2r-concept .sd-intro::after { right: -130px; bottom: -200px; }
}

/* The new brand artwork stays centered on a consistent white display field.
   Brand-specific fitting compensates for whitespace in source logos. */
#w2r-concept .w-shop-curated-logo .w-shop-image { background: #fff; }
#w2r-concept .w-shop-curated-logo .w-shop-logo { inset: 0; }
#w2r-concept .w-shop-curated-logo .w-shop-logo img {
  width: 88%;
  height: 82%;
  object-fit: contain;
  object-position: center;
}
#w2r-concept .w-shop-curated-logo:is(.brand-feature,.brand-ssense,.brand-next,.brand-yoox) .w-shop-image { background: #080808; }
#w2r-concept .w-shop-curated-logo:is(.brand-feature,.brand-ssense,.brand-next) .w-shop-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#w2r-concept .w-shop-curated-logo.brand-yoox .w-shop-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 56%;
  filter: brightness(14);
  transform: scale(2.6);
}
#w2r-concept .w-shop-curated-logo:is(.brand-naked-wolfe,.brand-nomad,.brand-rhode-skin,.brand-stanley1913) .w-shop-logo img { transform: scale(1.16); }
#w2r-concept .w-shop-curated-logo:is(.brand-uniqlo,.brand-new-era,.brand-jeffree-star-cosmetics) .w-shop-logo img { width: 82%; height: 88%; }
#w2r-concept .w-shop-curated-logo.brand-luisa-spagnoli .w-shop-logo img { width: 96%; }
#w2r-concept .w-shop-curated-logo.brand-first-aid-beauty .w-shop-logo img { width: 86%; height: 72%; }
#w2r-concept .w-shop-curated-logo.brand-studio-nicholson .w-shop-logo img { width: 95%; }
#w2r-concept .w-shop-curated-logo.brand-ernstings-family .w-shop-logo img { width: 96%; }
#w2r-concept .w-shop-curated-logo.brand-wildflower-cases .w-shop-logo img { width: 90%; }
#w2r-concept .w-shop-curated-logo.brand-yoox .w-shop-image { overflow: hidden; }
#w2r-concept .w-shop-existing-logo .w-shop-image { background: #fff; }
#w2r-concept .w-shop-existing-logo .w-shop-logo {
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
#w2r-concept .w-shop-existing-logo .w-shop-logo img {
  width: 82%;
  height: 75%;
  object-fit: contain;
}
#w2r-concept .w-shop-existing-logo.w-shop-icon-logo .w-shop-logo img {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
}
#w2r-concept .w-shop-existing-logo .w-shop-logo-label {
  display: block;
  max-width: 90%;
  color: #142e4c;
  font-size: clamp(16px, 2vw, 24px);
  line-height: 1.1;
  text-align: center;
  overflow-wrap: anywhere;
}
#w2r-concept .w-shop-existing-logo .w-shop-meta,
#w2r-concept .w-shop-existing-logo .w-shop-back-meta {
  flex-wrap: wrap;
  white-space: normal;
}

@media (min-width: 0px) {
  #w2r-concept .w-shop-story-card {
    display: block;
    height: 414px;
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 22px;
    background: transparent;
    perspective: 1100px;
    box-shadow: none;
  }
  #w2r-concept .w-shop-story-card .w-shop-original-mobile { display: none; }
  #w2r-concept .w-shop-story-card .w-shop-story-desktop,
  #w2r-concept .w-shop-story-card .w-shop-flip-inner { display: block; width: 100%; height: 100%; }
  #w2r-concept .w-shop-story-card .w-shop-flip-inner {
    position: relative;
    transform-style: preserve-3d;
    transition: transform .52s ease-in-out;
  }
  #w2r-concept .w-shop-story-card.is-flipped .w-shop-flip-inner { transform: rotateY(180deg); }
  #w2r-concept .w-shop-story-card .w-shop-face {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border: 1px solid light-dark(#dce5f0,#33465d);
    border-radius: 22px;
    background: light-dark(#fff,#101e31);
    color: light-dark(#142e4c,#edf4fb);
    box-shadow: 0 15px 32px light-dark(#183b6012,#00000025);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }
  #w2r-concept .w-shop-story-card .w-shop-back { transform: rotateY(180deg); }
  #w2r-concept .w-shop-story-card .w-shop-open {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
  }
  #w2r-concept .w-shop-story-card .w-shop-image {
    position: relative;
    display: block;
    width: 100%;
    height: 210px;
    flex: 0 0 210px;
    overflow: hidden;
    background: #fff;
  }
  #w2r-concept .w-shop-story-card .w-shop-logo {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  #w2r-concept .w-shop-story-card .w-shop-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  #w2r-concept .w-shop-story-card.brand-zara .w-shop-image { background: #efefef; }
  #w2r-concept .w-shop-story-card.brand-zara .w-shop-logo { inset: 0 13%; }
  #w2r-concept .w-shop-story-card.brand-zara .w-shop-logo img { object-position: center 25%; }
  #w2r-concept .w-shop-story-card.brand-gap .w-shop-image { background: #05295a; }
  #w2r-concept .w-shop-story-card:not(.brand-zara):not(.brand-gap):not(.brand-banana-republic) .w-shop-logo img { object-fit: contain; }
  #w2r-concept .w-shop-story-card.brand-bestsecret .w-shop-image { background: #222; }
  #w2r-concept .w-shop-story-card.brand-foot-locker .w-shop-image { background: #050505; }
  #w2r-concept .w-shop-story-card.brand-nordstrom-rack .w-shop-image { background: #2f7ff2; }
  #w2r-concept .w-shop-story-card .w-shop-front-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    padding: 17px 20px 19px;
    box-sizing: border-box;
  }
  #w2r-concept .w-shop-story-card .w-shop-meta,
  #w2r-concept .w-shop-story-card .w-shop-back-meta {
    display: flex;
    align-items: center;
    gap: 5px;
    width: 100%;
    min-width: 0;
    white-space: nowrap;
  }
  #w2r-concept .w-shop-story-card .w-shop-name {
    color: light-dark(#bd613d,#f4ad88);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
  }
  #w2r-concept .w-shop-story-card.brand-massimo-dutti .w-shop-name { font-size: 13px; }
  #w2r-concept .w-shop-story-card.brand-massimo-dutti .w-shop-back h3 { font-size: 18px; }
  #w2r-concept .w-shop-story-card.brand-massimo-dutti .sd-region { padding: 4px; font-size: 10px; }
  #w2r-concept .w-shop-story-card .w-shop-separator {
    margin: 0 3px;
    color: var(--w-muted);
    font-size: 20px;
    line-height: 1;
  }
  #w2r-concept .w-shop-story-card .sd-regions {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 3px;
    min-width: 0;
    margin: 0;
  }
  #w2r-concept .w-shop-story-card .sd-region {
    padding: 5px 6px;
    border-radius: 7px;
    font-size: 12px;
  }
  #w2r-concept .w-shop-story-card .w-shop-short-description {
    margin-top: 12px;
    color: var(--w-text);
    font-size: 13px;
    line-height: 1.4;
  }
  #w2r-concept .w-shop-story-card .w-shop-selected-count {
    margin-top: 12px;
    color: var(--w-text);
    font-size: 13px;
    font-weight: 700;
  }
  #w2r-concept .w-shop-story-card .w-shop-brand { color: light-dark(#bd613d,#f4ad88); }
  #w2r-concept .w-shop-story-card .w-shop-hint {
    margin-top: 12px;
    color: var(--w-muted);
    font-size: 13px;
  }
  #w2r-concept .w-shop-story-card .w-shop-back {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 23px 22px;
    box-sizing: border-box;
    cursor: pointer;
  }
  #w2r-concept .w-shop-story-card .w-shop-back-kicker {
    color: light-dark(#bd613d,#f4ad88);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
  }
  #w2r-concept .w-shop-story-card .w-shop-back-meta { margin: 25px 0 12px; }
  #w2r-concept .w-shop-story-card .w-shop-back h3 {
    margin: 0;
    color: var(--w-text);
    font-size: 22px;
    line-height: 1.2;
  }
  #w2r-concept .w-shop-story-card .w-shop-back p {
    margin: auto 0;
    color: var(--w-muted);
    font-size: 14px;
    line-height: 1.46;
  }
  #w2r-concept .w-shop-story-card .w-shop-back-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
    margin-top: 0;
  }
  #w2r-concept .w-shop-story-card .w-shop-visit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 48px;
    padding: 11px 16px;
    box-sizing: border-box;
    border-radius: 12px;
    background: #f4ad88;
    color: #16273b;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
  }
  #w2r-concept .w-shop-story-card .w-shop-visit:hover { background: #f8bb9b; text-decoration: none; }
  #w2r-concept .w-shop-story-card .w-shop-official {
    padding-left: 16px;
    color: var(--w-muted);
    font-size: 13px;
    text-decoration: underline;
  }
  #w2r-concept .w-shop-story-card :is(button,a,.w-shop-back):focus-visible {
    outline: 3px solid #f4ad88;
    outline-offset: 3px;
  }
  #w2r-concept .shops-offers-panel {
    grid-column: 1 / -1;
    min-width: 0;
    margin: 10px 0 18px;
    padding: 20px;
    border: 1px solid light-dark(#dce5f0,#33465d);
    border-radius: 22px;
    background: light-dark(#fff,#101e31);
    box-shadow: 0 15px 32px light-dark(#183b6012,#00000025);
  }
  #w2r-concept .shops-offers-panel[hidden] { display: none; }
  #w2r-concept .shops-offers-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
  }
  #w2r-concept .shops-offers-heading h3 { margin: 0; font-size: 22px; color: var(--w-text); }
  #w2r-concept .shops-offers-close {
    padding: 10px 14px;
    border: 1px solid var(--w-line);
    border-radius: 10px;
    background: var(--w-panel);
    color: var(--w-text);
    font: inherit;
    cursor: pointer;
  }
  #w2r-concept .shops-offers-frame { display: block; width: 100%; min-height: 700px; border: 0; background: transparent; }
  #w2r-concept .shops-offers-bottom { display: flex; justify-content: center; padding: 24px 0 4px; }
}

@media (prefers-reduced-motion: reduce) {
  #w2r-concept .w-shop-story-card .w-shop-flip-inner { transition: none; }
}

/* The Mytheresa artwork is yellow edge to edge on every card width. */
#w2r-concept .w-shop-story-card.brand-mytheresa .w-shop-image { background: #e4ce18; }
#w2r-concept .w-shop-story-card.brand-mytheresa:not(.brand-zara):not(.brand-gap):not(.brand-banana-republic) .w-shop-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 1050px) {
  #w2r-concept .w-shop-story-card { height: 420px; width: 100%; min-width: 0; }
  #w2r-concept .w-shop-story-card .w-shop-image { height: 180px; flex-basis: 180px; }
  #w2r-concept .w-shop-story-card .w-shop-front-body { padding: 15px 17px 18px; }
  #w2r-concept .w-shop-story-card .w-shop-meta,
  #w2r-concept .w-shop-story-card .w-shop-back-meta { flex-wrap: wrap; white-space: normal; row-gap: 7px; }
  #w2r-concept .w-shop-story-card .sd-regions { flex-wrap: wrap; }
  #w2r-concept .w-shop-story-card .sd-region { padding: 4px 5px; font-size: 11px; }
  #w2r-concept .w-shop-story-card .w-shop-back { padding: 20px 17px; }
  #w2r-concept .w-shop-story-card .w-shop-back-meta { margin: 18px 0 10px; }
  #w2r-concept .w-shop-story-card .w-shop-back p { font-size: 13px; }
  #w2r-concept .w-shop-story-card .w-shop-back-actions { width: 100%; gap: 12px; }
  #w2r-concept .w-shop-story-card .w-shop-visit { width: 100%; min-height: 48px; }
  #w2r-concept .w-shop-story-card .w-shop-official { min-height: 44px; display: flex; align-items: center; padding: 0 8px; }
  #w2r-concept .shops-offers-panel { width: 100%; box-sizing: border-box; padding: 12px; margin: 8px 0 16px; border-radius: 18px; }
  #w2r-concept .shops-offers-heading { align-items: flex-start; gap: 8px; }
  #w2r-concept .shops-offers-heading h3 { font-size: 18px; line-height: 1.25; }
  #w2r-concept .shops-offers-close { flex: 0 0 auto; padding: 9px; font-size: 12px; }
}
@media (max-width: 619px) {
  #w2r-concept .w-shop-story-card { height: 400px; }
  #w2r-concept .w-shop-story-card .w-shop-image { height: 170px; flex-basis: 170px; }
  #w2r-concept .w-shop-story-card.brand-zara .w-shop-logo img { object-position: center 43%; }
  #w2r-concept .w-shop-story-card .w-shop-name { font-size: 15px; }
  #w2r-concept .w-shop-story-card .w-shop-short-description,
  #w2r-concept .w-shop-story-card .w-shop-selected-count,
  #w2r-concept .w-shop-story-card .w-shop-hint { font-size: 12px; }
}

/* Wordmarks need a visible 24px canvas border. Keep small favicon cards and
   intentional full-bleed brand artwork at their existing size. */
#w2r-concept .w-shop-story-card.w-shop-existing-logo:not(.w-shop-icon-logo) .w-shop-logo,
#w2r-concept .w-shop-story-card.w-shop-curated-logo:is(.brand-dixie,.brand-luisa-spagnoli,.brand-studio-nicholson,.brand-bombshell-sportswear,.brand-re-done,.brand-wildflower-cases,.brand-bailey-hats,.brand-naked-wolfe,.brand-new-era,.brand-uniqlo) .w-shop-logo,
#w2r-concept .w-shop-story-card:is(.brand-farfetch,.brand-cettire,.brand-intrend,.brand-blumarine,.brand-iherb,.brand-bluemercury) .w-shop-logo {
  inset: 24px;
}
#w2r-concept .w-shop-story-card.w-shop-existing-logo:not(.w-shop-icon-logo) .w-shop-logo img,
#w2r-concept .w-shop-story-card.w-shop-curated-logo:is(.brand-dixie,.brand-luisa-spagnoli,.brand-studio-nicholson,.brand-bombshell-sportswear,.brand-re-done,.brand-wildflower-cases,.brand-bailey-hats,.brand-naked-wolfe,.brand-new-era,.brand-uniqlo) .w-shop-logo img,
#w2r-concept .w-shop-story-card:is(.brand-farfetch,.brand-cettire,.brand-intrend,.brand-blumarine,.brand-iherb,.brand-bluemercury) .w-shop-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: none;
}

/* A phone or tablet needs one painted card face at a time. Keeping 152
   perspective layers alive can exhaust Safari's graphics memory. */
@media (max-width: 1050px) {
  #w2r-concept .w-shop-story-card {
    height: 440px;
    perspective: none;
  }
  #w2r-concept .w-shop-story-card .w-shop-flip-inner,
  #w2r-concept .w-shop-story-card.is-flipped .w-shop-flip-inner {
    transform: none;
    transform-style: flat;
    transition: none;
  }
  #w2r-concept .w-shop-story-card .w-shop-face {
    backface-visibility: visible;
    -webkit-backface-visibility: visible;
  }
  #w2r-concept .w-shop-story-card .w-shop-back {
    display: none;
    transform: none;
  }
  #w2r-concept .w-shop-story-card.is-flipped .w-shop-front { display: none; }
  #w2r-concept .w-shop-story-card.is-flipped .w-shop-back { display: flex; }
  #w2r-concept .w-shop-story-card .w-shop-image {
    height: 220px;
    flex-basis: 220px;
  }
  #w2r-concept .w-shop-story-card:is(.brand-gap,.brand-banana-republic) .w-shop-logo img {
    object-fit: contain;
    object-position: center;
  }
  #w2r-concept .w-shop-story-card.w-shop-icon-logo .w-shop-logo img {
    width: 82px;
    height: 82px;
    flex-basis: 82px;
  }
  #w2r-concept .w-shop-story-card.w-shop-icon-logo .w-shop-logo-label {
    font-size: 22px;
  }
}
@media (max-width: 359px) {
  #w2r-concept .w-shop-story-card { height: 460px; }
  #w2r-concept .w-shop-story-card .w-shop-image {
    height: 230px;
    flex-basis: 230px;
  }
}
