/* Store navigation and storefront */
.store-header {
  background: var(--paper, #f8f8f4);
  border-bottom: 1px solid var(--edge);
}

.store-header nav {
  min-height: 72px;
  gap: 12px;
}

.store-header .brand {
  gap: 11px;
  letter-spacing: -.02em;
}

.store-header .brand-mark {
  display: block;
  background: transparent;
  border-radius: 0;
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.store-header .brand-name {
  line-height: 1.2;
  white-space: nowrap;
}

.brand-name strong, .brand-name small {
  display: block;
}

.brand-name small {
  margin-top: 4px;
  color: #4b5872;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: 0;
}

.store-header .nav-links {
  gap: clamp(14px, 2.6vw, 36px);
}

.store-header .nav-links a {
  color: var(--ink, #19243b);
  font-size: .9rem;
  font-weight: 650;
  white-space: nowrap;
}

.store-header #bag-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  background: #e8edff;
  border-radius: 999px;
  min-height: 38px;
  padding: 6px 12px;
}

.store-header #bag-link:hover {
  background: #dce6ff;
}

#bag-count {
  display: inline-grid;
  min-width: 19px;
  min-height: 19px;
  place-items: center;
  padding: 0 4px;
  border-radius: 20px;
  color: #fff;
  background: var(--green);
  font-size: .72rem;
  font-variant-numeric: tabular-nums;
}

.store-footer {
  display: block;
  max-width: none;
  padding: 0;
  border-top: 1px solid var(--edge);
  color: #4b5872;
  background: #edf0f8;
}

.store-footer-inner {
  max-width: var(--shell-width, 1240px);
  margin: 0 auto;
  padding: 30px clamp(16px, 5vw, 44px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

.store-footer strong {
  color: var(--ink, #19243b);
}

.store-footer small {
  display: block;
  margin-top: 4px;
}

.store-footer .footer-links {
  gap: 12px 26px;
}

.store-footer .footer-links > a {
  text-decoration: none;
}

.store-footer .footer-links > a:hover {
  text-decoration: underline;
}

.storefront-flowlab {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  margin-top: 28px;
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid var(--edge);
  border-radius: 20px;
  background: #eef2ff;
}

.storefront-flowlab > div { flex: 1 1 26rem; min-width: 0; }
.storefront-flowlab h2 { margin: 5px 0; font-size: clamp(1.25rem, 3vw, 1.75rem); }
.storefront-flowlab p { margin: 0; color: var(--muted); max-width: 60ch; }
.storefront-flowlab .whatsapp-action { min-height: 44px; }

.storefront-page {
  --storefront-green: var(--green);
  --storefront-mist: #e8edff;
  --storefront-cream: #edf1ff;
  --storefront-ink: #19243b;
  padding-bottom: 20px;
}

.storefront-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  margin: 8px 0 clamp(46px, 6vw, 84px);
  border: 1px solid #dce4f9;
  border-radius: 28px;
  overflow: hidden;
  background: var(--storefront-cream);
}

.storefront-hero-copy {
  align-self: center;
  padding: clamp(28px, 3.4vw, 54px);
  color: var(--storefront-ink);
}

.storefront-kicker {
  margin: 0 0 17px;
  color: #3d4f79;
  font-size: .76rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .13em;
}

.storefront-hero h1 {
  margin: 0;
  color: var(--storefront-green);
  font-family: inherit;
  font-size: clamp(2.6rem, 4.45vw, 4.2rem);
  font-weight: 680;
  line-height: .99;
  letter-spacing: -.048em;
  overflow-wrap: normal;
}

.storefront-actions {
  margin-top: clamp(24px, 3.2vw, 43px);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 13px 20px;
}

.storefront-actions p {
  margin: 0;
  color: var(--storefront-green);
  font-weight: 650;
}

.storefront-actions a {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: .94rem;
  text-decoration: none;
}

.storefront-primary {
  background: var(--storefront-green);
  color: #fff;
  border-radius: 999px;
  padding: 10px 18px;
}

.storefront-primary:hover {
  background: var(--green-hover);
}

.storefront-track {
  color: var(--storefront-green);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.storefront-track:hover {
  text-decoration: underline;
}

.storefront-workbook-offer {
  display: grid;
  grid-template-columns: clamp(38px, 5vw, 50px) minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(8px, 1.5vw, 14px);
  margin-top: clamp(18px, 2.6vw, 28px);
  padding: clamp(12px, 2vw, 18px);
  border: 1px solid #d7c8f7;
  border-radius: 16px;
  background: #f7f1ff;
  color: #422783;
  text-decoration: none;
}

.storefront-workbook-offer:hover {
  border-color: #ae99df;
  background: #f0e5ff;
}

.storefront-workbook-offer img {
  display: block;
  width: 100%;
  height: auto;
}

.storefront-workbook-offer strong {
  display: block;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.2;
}

.storefront-workbook-offer small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.4;
}

.storefront-workbook-offer small b { color: #422783; }

.workbook-offer-arrow {
  font-size: 1.2rem;
  font-weight: 750;
}

.storefront-campaign {
  position: relative;
  min-height: clamp(22rem, 35vw, 32rem);
  background: #dae6ef;
}

.storefront-campaign img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

.storefront-collection .shop-heading {
  align-items: end;
  margin: 0 0 19px;
}

.storefront-collection .shop-heading h2 {
  color: var(--storefront-ink);
  font-family: inherit;
  font-size: clamp(2rem, 4.2vw, 3.3rem);
  font-weight: 660;
  letter-spacing: -.044em;
}

.storefront-collection .shop-heading p {
  margin: 8px 0 0;
  color: #54675b;
  font-size: .98rem;
}

.storefront-collection .catalogue-tools {
  grid-template-columns: minmax(0, 1fr) minmax(150px, 215px);
  max-width: 640px;
  gap: 13px;
  margin-bottom: 24px;
}

.storefront-collection .catalogue-tools label, .product-controls label {
  display: grid;
  gap: 5px;
  font-weight: 650;
  color: #455c50;
}

.storefront-collection .catalogue-tools input,
.storefront-collection .catalogue-tools select,
.storefront-collection .product-controls select {
  min-height: 43px;
  border-color: #c9d6cb;
  border-radius: 10px;
  background-color: #fff;
}

.storefront-collection .product-grid {
  gap: clamp(12px, 2vw, 25px);
  margin: 0 0 clamp(45px, 6.5vw, 90px);
}

.storefront-collection .product-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: 22px;
  background: #fff;
  border: 1px solid #dce3f1;
  box-shadow: 0 12px 28px #24453508;
}

.storefront-collection .product-card[hidden] {
  display: none;
}

.product-visual {
  display: grid;
  position: relative;
  overflow: hidden;
  place-items: center;
  aspect-ratio: 1.16;
  margin: 9px;
  border-radius: 15px;
  background: #eff1f6;
}

.product-visual img,
.product-visual .product-photo {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
}

.product-visual .uploaded-photo {
  object-fit: contain;
  background: #fff;
}

.product-visual .product-gallery-trigger {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: #fff;
  cursor: zoom-in;
}

.product-gallery-trigger:focus-visible { outline-offset: -4px; }
.product-gallery-trigger > span {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 5px 10px;
  border: 1px solid var(--edge);
  border-radius: 999px;
  background: #fff;
  color: var(--storefront-green);
  font-size: .84rem;
  font-weight: 720;
}

.product-gallery {
  width: min(760px, calc(100% - 24px));
  max-height: 92dvh;
  padding: clamp(12px, 3vw, 24px);
  border: 1px solid var(--edge);
  border-radius: 20px;
  color: var(--ink);
  background: var(--surface);
}

.product-gallery::backdrop { background: #19243ba8; }
.product-gallery-header,
.product-gallery-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}
.product-gallery-header { justify-content: space-between; margin-bottom: 10px; }
.product-gallery-header h2 { margin: 0; font-size: clamp(1rem, 3vw, 1.35rem); }
.product-gallery-header form,
.product-gallery button { margin: 0; }
.product-gallery button { min-height: 44px; padding: 8px 12px; }

.product-gallery-stage {
  height: min(49dvh, 480px);
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
}
.product-gallery-stage img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
}
.product-gallery-stage.is-zoomed { overflow: auto; }
.product-gallery-stage.is-zoomed img { width: 200%; height: 200%; }
.product-gallery-controls { justify-content: center; margin-top: 10px; }
.product-gallery-controls [role="status"] { color: var(--muted); font-variant-numeric: tabular-nums; }
.product-gallery-caption {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: .85rem;
  text-align: center;
}
.product-gallery-thumbnails:not([hidden]) {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.product-gallery-thumbnails button {
  padding: 2px;
  border: 2px solid var(--edge);
  border-radius: 8px;
  background: #fff;
}
.product-gallery-thumbnails button[aria-pressed="true"] { border-color: var(--storefront-green); }
.product-gallery-thumbnails img { display: block; object-fit: contain; }

.product-form .product-pair-offer {
  margin: 0 0 10px;
  color: var(--storefront-green);
  font-size: .85rem;
  font-weight: 700;
}

.product-visual .product-photo.school-strap,
.product-visual .product-photo.school-lace,
.product-visual .product-photo.school-white {
  width: 100%;
  height: auto;
  max-height: 100%;
  aspect-ratio: 1;
}

.product-placeholder {
  margin: 0;
  color: #586b5e;
  padding: 16px;
  text-align: center;
  font-size: .88rem;
}

.storefront-collection .product-form {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 10px clamp(13px, 1.7vw, 23px) 21px;
}

.storefront-collection .product-form h3 {
  font-size: clamp(1rem, 1.7vw, 1.25rem);
  line-height: 1.27;
  letter-spacing: -.025em;
  margin-bottom: 8px;
}

.product-facts {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0 8px;
  margin-bottom: auto;
}

.product-facts .product-price {
  margin-left: auto;
  color: #173f32;
  font-size: 1.06rem;
  font-variant-numeric: tabular-nums;
}

.product-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px;
  margin-top: 14px;
}

.product-controls label {
  margin: 0;
}

.storefront-collection .product-controls button {
  width: auto;
  min-height: 43px;
  margin: 0;
  border-radius: 999px;
  padding: 9px 14px;
  color: #2344a5;
  background: #e9eeff;
  font-size: .88rem;
  white-space: nowrap;
}

.storefront-collection .product-controls button:hover {
  background: #dbe5ff;
}

.storefront-collection .add-feedback {
  margin: 8px 0 0;
  font-size: .82rem;
}

.bag-item .sample-photo {
  height: auto;
  object-fit: cover;
}

@media (max-width: 900px) {
  .product-controls {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .storefront-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    border-radius: 23px;
    margin-top: 3px;
  }

  .storefront-hero-copy {
    padding: 27px clamp(22px, 5vw, 34px) 24px;
  }

  .storefront-campaign {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .storefront-hero h1 {
    font-size: clamp(2.55rem, 8.5vw, 4.2rem);
    max-width: 15ch;
  }

  .storefront-kicker {
    margin-bottom: 12px;
  }

  .storefront-actions {
    margin-top: 20px;
  }

  .storefront-collection .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 460px) {
  .store-header nav {
    min-height: 62px;
    gap: 8px;
  }

  .store-header .brand {
    gap: 7px;
  }

  .store-header .brand-mark {
    width: 36px;
    height: 36px;
  }

  .store-header .brand-name {
    font-size: .82rem;
  }

  .brand-name small {
    font-size: .67rem;
    margin-top: 3px;
  }

  .store-header .nav-links {
    gap: 10px;
  }

  .store-header .nav-links a {
    font-size: .8rem;
  }

  .store-header #bag-link {
    gap: 4px;
    min-height: 36px;
    padding: 5px 8px;
  }

  .store-header .shop-nav {
    display: none;
  }

  .storefront-collection .catalogue-tools {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 8px;
  }

  .storefront-collection .catalogue-tools input,
  .storefront-collection .catalogue-tools select,
  .storefront-collection .product-controls select {
    padding-inline: 8px;
  }

  .storefront-collection .product-card {
    border-radius: 15px;
  }

  .storefront-collection .product-form {
    padding: 6px 11px 12px;
  }

  .storefront-collection .product-form h3 {
    min-height: 0;
  }

  .product-visual {
    margin: 6px;
    border-radius: 10px;
  }

  .product-controls {
    margin-top: 11px;
  }

  .store-footer-inner {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 350px) {
  .store-header nav { padding-inline: 12px; }
  .store-header .nav-links { gap: 7px; }
  .store-header #bag-link { padding-inline: 7px; }
  .store-header .brand-name { font-size: .75rem; }
  .store-header .nav-links a, .store-header .admin-store-link { font-size: .78rem; }
  .store-header .admin-store-link { padding-inline: 8px; }

  .store-header .brand-mark {
    width: 30px;
    height: 30px;
  }

  .storefront-collection .catalogue-tools {
    grid-template-columns: 1fr;
  }
}

.storefront-hero h1 { color: var(--ink); }
.storefront-kicker { color: var(--green); }
.storefront-collection .product-card {
  box-shadow: 0 2px 6px #16264b09;
  transition: border-color 200ms ease, box-shadow 220ms ease, transform 220ms cubic-bezier(.22,.72,.22,1);
}
.product-visual img { transition: transform 340ms cubic-bezier(.22,.72,.22,1); }
.product-card:focus-within { border-color: #a6b9f0; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .storefront-collection .product-card:hover {
    transform: translateY(-4px);
    border-color: #c1cff1;
    box-shadow: 0 14px 30px #16264b15;
  }
  .product-card:hover .product-visual img { transform: scale(1.035); }
}
.storefront-collection .product-controls button[data-added] {
  color: #fff;
  background: var(--green);
}
.storefront-collection .add-feedback.sr-only {
  margin: -1px;
}
.storefront-collection .add-feedback.danger { color: #922b22; }

/* Shoe motion is scoped to the photo, separate from the card and controls. */
@media (prefers-reduced-motion: no-preference) {
  .storefront-page img[data-photo-order] { opacity: 0; }
  .storefront-campaign { overflow: hidden; }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .product-visual:hover img:not([data-photo-order]) {
    transform-origin: 50% 57%;
    animation: shoe-swing 500ms cubic-bezier(.35,0,.3,1) both;
  }
}

@keyframes shoe-swing {
  0%, 100% { rotate: 0deg; }
  27% { rotate: -4deg; }
  54% { rotate: 2.6deg; }
  76% { rotate: -1.2deg; }
}

.product-facts .product-price { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; justify-content: end; }
.product-price del { color: var(--muted); font-size: .82rem; font-weight: 500; }
.storefront-collection .collection-offer { color: var(--green); font-weight: 700; }
