/* Mirrors the Focal theme styling used on dymelyfe.com product pages */
@font-face { font-family: "DL Jersey Name"; src: url("assets/fonts/jersey-name.woff2?v=2") format("woff2"); font-display: block; }
@font-face { font-family: "DL Jersey Number"; src: url("assets/fonts/jersey-number.woff2") format("woff2"); font-display: block; }

:root {
  --text: #282828;
  --text-soft: rgba(40, 40, 40, .7);
  --border: #dfdfdf;
  --media-bg: #f5f5f5;
  --container: 1396px;
  --gutter: 40px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 15px/26px "Instrument Sans", sans-serif; color: var(--text); background: #fff; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; }

/* Header */
.header { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--border); }
.header__top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 74px; }
.header__left { display: flex; align-items: center; gap: 20px; }
.header__menu { display: none; }
.header__search { display: flex; align-items: center; gap: 12px; }
.header__search input { border: 0; outline: 0; font: inherit; color: var(--text); width: 240px; background: transparent; }
.header__search input::placeholder { color: var(--text); }
.header__logo img { display: block; width: 55px; height: 55px; }
.header__right { display: flex; justify-content: flex-end; gap: 22px; }
.cart { position: relative; }
.cart__count { position: absolute; top: -8px; right: -9px; min-width: 17px; height: 17px; border-radius: 9px; background: var(--text); color: #fff; font-size: 9px; line-height: 17px; text-align: center; font-weight: 600; }
.header__nav { display: flex; justify-content: center; gap: 34px; padding: 0 0 12px; }
.header__nav a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Team strip */
.teams { border-bottom: 1px solid var(--border); padding: 18px 0 16px; }
.teams__title { margin: 0 0 16px; font: 600 12px/15px "Instrument Sans", sans-serif; letter-spacing: 1px; }
.teams__row { position: relative; }
.teams__track { display: flex; gap: 22px; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; padding: 2px; margin-right: 80px; }
.teams__track::-webkit-scrollbar { display: none; }
.teams__track a { flex: 0 0 auto; width: 80px; height: 80px; border-radius: 50%; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; background: #fff; }
.teams__track img { width: 62px; height: 62px; object-fit: contain; border-radius: 50%; }
.teams__nav { position: absolute; right: 0; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); }
.teams__arrow { width: 54px; height: 54px; display: flex; align-items: center; justify-content: center; }
.teams__arrow + .teams__arrow { border-top: 1px solid var(--border); }

/* Product */
.product-wrap { padding-top: 32px; padding-bottom: 80px; }
.breadcrumb { font-size: 13px; line-height: 20px; color: var(--text-soft); margin-bottom: 32px; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb span { margin: 0 6px; }
.product { display: grid; grid-template-columns: minmax(0, 692px) 460px; gap: 70px; justify-content: center; align-items: start; }
.product__media { display: grid; grid-template-columns: 64px 1fr; gap: 36px; position: sticky; top: 140px; }
.thumbs { display: flex; flex-direction: column; gap: 12px; }
.thumb { width: 64px; height: 64px; border: 1px solid transparent; background: var(--media-bg); padding: 4px; }
.thumb.is-active { border: 2px solid var(--text); }
.thumb svg { display: block; width: 100%; height: 100%; }
.stage { position: relative; background: var(--media-bg); aspect-ratio: 1; }
.stage__img, .stage__img svg { width: 100%; height: 100%; display: block; }
.stage__zoom { position: absolute; right: 20px; bottom: 20px; width: 30px; height: 30px; background: #fff; border: 1px solid var(--border); border-radius: 50%; }
.stage__toggle { position: absolute; left: 20px; bottom: 20px; display: flex; background: #fff; border: 1px solid var(--border); }
.stage__toggle button { font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; padding: 4px 14px; }
.stage__toggle button.is-active { background: var(--text); color: #fff; }

.product-meta { border-bottom: 1px solid var(--border); padding-bottom: 16px; margin-bottom: 24px; }
.product-meta__title { margin: 0 0 16px; font: 800 22px/25.67px Epilogue, sans-serif; letter-spacing: -.4px; text-transform: uppercase; }
.price { font-size: 22px; line-height: 38px; }

.option { margin-bottom: 20px; }
.option__info { margin-bottom: 8px; }
.option__value { margin-left: 6px; }
.field { width: 100%; height: 48px; padding: 0 16px; border: 1px solid var(--border); border-radius: 0; font: 500 15px "Instrument Sans", sans-serif; letter-spacing: 1px; text-transform: uppercase; color: var(--text); outline: 0; background: #fff; }
.field:focus { border-color: var(--text); }
.field--number { width: 120px; }
.field-help { margin: 6px 0 0; font-size: 13px; line-height: 20px; color: var(--text-soft); }
.field-help.is-warn { color: #c0392b; }

.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { min-width: 57px; height: 48px; padding: 0 14px; border: 1px solid var(--border); background: #fff; }
.swatch--color { width: 64px; height: 60px; padding: 3px; border: 1px solid var(--border); background: var(--media-bg); }
.swatch--color.is-active { border: 2px solid var(--text); }
.swatch--color svg { display: block; width: 100%; height: 100%; }
.swatch.is-active { border: 2px solid var(--text); background: #f3f3f3; }

.btn { display: block; width: 100%; height: 48px; font-size: 13px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; margin-top: 12px; }
.btn--primary { background: #000; color: #fff; margin-top: 28px; }
.btn--primary:hover { background: #222; }
.btn--secondary { border: 1px solid var(--text); background: #fff; }
.btn--secondary:hover { background: var(--text); color: #fff; }

.rte { margin-top: 28px; }
.rte p { margin: 0 0 16px; }
.rte ul { margin: 0 0 20px; padding-left: 20px; list-style: square; }
.rte li { margin-bottom: 6px; }
.link { text-decoration: underline; text-underline-offset: 3px; color: var(--text-soft); }

/* Footer */
.footer { background: #282828; color: #fff; padding: 72px 0 36px; }
.footer__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.footer h3 { font: 600 12px/15px "Instrument Sans", sans-serif; letter-spacing: 1px; margin: 0 0 20px; }
.footer p { margin: 0; color: rgba(255,255,255,.75); }
.footer ul { list-style: none; padding: 0; margin: 0; color: rgba(255,255,255,.75); }
.footer li { margin-bottom: 6px; }
.footer a:hover { color: #fff; }
.footer__email { display: flex; border-bottom: 1px solid rgba(255,255,255,.4); margin-top: 18px; }
.footer__email input { flex: 1; background: none; border: 0; outline: 0; color: #fff; font: inherit; padding: 10px 0; }
.footer__email input::placeholder { color: rgba(255,255,255,.75); }
.footer__bottom { margin-top: 56px; font-size: 13px; color: rgba(255,255,255,.6); }

/* Toast + zoom */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: #000; color: #fff; padding: 14px 22px; font-size: 14px; opacity: 0; pointer-events: none; transition: .25s; z-index: 50; max-width: calc(100vw - 32px); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.zoom { position: fixed; inset: 0; background: #fff; z-index: 60; display: flex; align-items: center; justify-content: center; }
.zoom[hidden] { display: none; }
.zoom__img { width: min(100vw, 100vh); height: min(100vw, 100vh); }
.zoom__img svg { width: 100%; height: 100%; }
.zoom__close { position: absolute; top: 16px; right: 20px; font-size: 36px; line-height: 1; }

@media (max-width: 1100px) {
  .product { grid-template-columns: 1fr; gap: 36px; }
  .product__media { position: static; }
  .header__nav { display: none; }
  .header__menu { display: inline-flex; }
}
@media (max-width: 700px) {
  :root { --gutter: 16px; }
  .header__top { height: 64px; }
  .header__search input { display: none; }
  .product-wrap { padding-top: 20px; }
  .breadcrumb { margin-bottom: 16px; }
  .product__media { grid-template-columns: 1fr; gap: 12px; }
  .thumbs { flex-direction: row; order: 2; }
  .teams__track a { width: 64px; height: 64px; }
  .teams__track img { width: 50px; height: 50px; }
  .teams__nav { display: none; }
  .teams__track { margin-right: 0; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
}

/* Canes World: name/number that can't be ordered */
.field.is-error, .field.is-error:focus { border-color: #c0392b; }
.restriction { margin: 10px 0 0; font-size: 13px; line-height: 20px; color: var(--text-soft); }
.restriction.is-blocked { padding: 12px 14px; border-left: 3px solid #c0392b; background: #fbeeec; color: #7a2318; }
.restriction strong { font-weight: 600; }
.btn:disabled { opacity: .35; cursor: not-allowed; }
.btn--primary:disabled:hover { background: #000; }

/* Embedded in the dymelyfe.com product page (?embed): the store page supplies the header, team row and footer */
.is-embed .header, .is-embed .teams, .is-embed .footer, .is-embed .breadcrumb, .is-embed .stage__zoom { display: none; }
.is-embed .product-wrap { padding-top: 0; padding-bottom: 24px; }
.is-embed body { background: transparent; }
.preorder { margin: 8px 0 0; padding: 10px 14px; background: #124734; color: #fff; font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
