/* Member area > Shop and Cart */

.portal-nav__badge--cart { background: var(--gold-400); color: var(--navy-900); }

.shop-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; margin-bottom: 22px; }
.shop-bar .pills { margin: 0; }
.shop-back { font-weight: 700; color: #1558b0; text-decoration: none; }
.shop-back:hover { text-decoration: underline; }
.shop-cartbtn { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: #fff;
  font: 800 .9rem/1 var(--font-display); letter-spacing: .04em; text-transform: uppercase; text-decoration: none; }
.shop-cartbtn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.shop-cartbtn b { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--gold-400); color: var(--navy-900); font-size: .8rem; }
.shop-msg { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }

/* Product grid */
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 22px; margin: 0; padding: 0; list-style: none; }
.shop-card { display: grid; height: 100%; grid-template-rows: auto 1fr; border-radius: 20px; overflow: hidden; background: #fff; color: var(--ink); text-decoration: none;
  border: 1px solid var(--line-light); box-shadow: 0 18px 34px -28px rgba(6, 20, 46, .7); transition: transform .25s ease, box-shadow .25s ease; }
.shop-card:hover { transform: translateY(-4px); box-shadow: 0 26px 40px -26px rgba(6, 20, 46, .7); }
.shop-card__img { position: relative; display: block; aspect-ratio: 1; background: #eef3fa; overflow: hidden; }
.shop-card__img > img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.shop-card:hover .shop-card__img > img { transform: scale(1.05); }
.shop-card.is-out .shop-card__img > img { filter: grayscale(.8); opacity: .65; }
.shop-card__text { display: grid; align-content: start; gap: 4px; padding: 14px 16px 18px; }
.shop-card__text small, .shop-cat { color: var(--ink-soft); font: 700 max(12px, .74rem)/1.3 var(--font-display); letter-spacing: .1em; text-transform: uppercase; }
.shop-card__text strong { font: 800 1.05rem/1.25 var(--font-display); }
.shop-noimg { display: grid; place-items: center; width: 100%; height: 100%; background: linear-gradient(160deg, #143c82, #06142e); }
.shop-noimg img { width: 34%; height: auto; opacity: .85; }
.shop-price { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; }
.shop-price s { color: var(--ink-soft); font-size: .95rem; }
.shop-price b, .shop-price strong { font: 900 1.25rem/1 var(--font-display); color: var(--ink); }
.shop-badge { position: absolute; top: 12px; left: 12px; padding: 5px 11px; border-radius: 999px; font: 800 max(12px, .72rem)/1.2 var(--font-display); letter-spacing: .06em; text-transform: uppercase; }
.shop-badge--in { background: #e2f6ea; color: #0e6b3b; }
.shop-badge--low { background: #fff3d6; color: #8a5a00; }
.shop-badge--out { background: #fde3e5; color: #b42a35; }
.shop-badge--preorder { background: var(--ink); color: var(--gold-400); }

/* One product */
.shop-item { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.shop-item__media { position: relative; aspect-ratio: 1; border-radius: 24px; overflow: hidden; background: #eef3fa; box-shadow: 0 30px 60px -40px rgba(6, 20, 46, .8); }
.shop-item__media > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.shop-item__info h2 { font: 900 clamp(1.6rem, 3vw, 2.2rem)/1.1 var(--font-display); margin: 4px 0 10px; }
.shop-item .shop-price strong { font-size: 2rem; }
.shop-item .shop-price s { font-size: 1.15rem; }
.shop-pre { margin-top: 14px; padding: 10px 14px; border-radius: 12px; background: #eef3ff; color: #12357a; font-size: .95rem; }
.shop-desc { margin-top: 16px; color: var(--ink-soft); line-height: 1.65; }
.shop-buy { display: grid; gap: 18px; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line-light); }
.shop-opts { margin: 0; padding: 0; border: 0; }
.shop-opts legend { margin-bottom: 10px; font-weight: 700; }
.shop-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.shop-opts legend { flex-basis: 100%; }
.shop-opt { position: relative; cursor: pointer; }
.shop-opt input { position: absolute; opacity: 0; pointer-events: none; }
.shop-opt span { display: grid; justify-items: center; min-width: 58px; padding: 10px 14px; border: 1.5px solid #cfdaea; border-radius: 12px; background: #fff; font-weight: 800; transition: all .15s ease; }
.shop-opt small { font-size: 12px; font-weight: 600; color: #8a5a00; }
.shop-opt input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; }
.shop-opt input:checked + span small { color: var(--gold-300); }
.shop-opt input:focus-visible + span { outline: 3px solid var(--gold-400); outline-offset: 2px; }
.shop-opt.is-out { cursor: not-allowed; }
.shop-opt.is-out span { color: #9aa6ba; text-decoration: line-through; background: #f4f6fa; }
.shop-opt.is-out small { color: #b42a35; text-decoration: none; }
.shop-hint { margin-top: -8px; font-size: .9rem; }
.shop-hint a { color: #1558b0; font-weight: 600; }
.shop-qty { display: flex; align-items: center; gap: 14px; }
.shop-qty label { font-weight: 700; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid #cfdaea; border-radius: 12px; overflow: hidden; background: #fff; }
.qty button { width: 40px; height: 42px; border: 0; background: none; font-size: 1.2rem; font-weight: 700; cursor: pointer; color: var(--ink); }
.qty button:hover { background: #eef3fa; }
.qty input { width: 52px; height: 42px; padding: 0; border: 0; border-inline: 1px solid #e3e9f3; text-align: center; font-weight: 800; font-size: 16px; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.shop-add { justify-self: start; min-width: 220px; }
.shop-soldout { margin-top: 22px; padding: 12px 16px; border-radius: 12px; background: #fde3e5; color: #b42a35; font-weight: 600; }
.shop-how { margin-top: 18px; color: var(--ink-soft); font-size: .9rem; }

/* My orders (a dark card on the light shop page) */
.shop-orders { margin-top: 40px; background: linear-gradient(160deg, #0c2a5e, var(--navy-900)); border: 0; color: #fff; box-shadow: 0 24px 50px -34px rgba(6, 20, 46, .9); }
.shop-orders h3 { color: #fff; }
.shop-orders header span, .shop-orders .md-muted { color: rgba(255, 255, 255, .65); }
.shop-olist { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.shop-order { display: grid; gap: 10px; padding: 16px 18px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .04); }
.shop-order__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.shop-order__head span { color: rgba(255, 255, 255, .65); font-size: .9rem; }
.shop-order__items { font-size: .92rem; color: rgba(255, 255, 255, .82); }
.shop-state { margin-left: auto; padding: 4px 10px; border-radius: 999px; font: 700 max(12px, .76rem)/1.3 var(--font-display); font-style: normal; letter-spacing: .04em;
  background: rgba(255, 255, 255, .1); color: #fff; }
.shop-state--pending { background: rgba(246, 185, 59, .18); color: var(--gold-300); }
.shop-state--paid { background: rgba(80, 150, 255, .2); color: #a9ccff; }
.shop-state--ready { background: rgba(111, 224, 162, .2); color: #7ee2a8; }
.shop-state--cancelled { background: rgba(255, 138, 151, .15); color: #ffb3bb; }
.shop-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 2px 0 0; padding: 0; list-style: none; }
.shop-steps li { position: relative; padding-top: 12px; font-size: 12px; font-weight: 700; color: rgba(255, 255, 255, .45); }
.shop-steps li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; border-radius: 99px; background: rgba(255, 255, 255, .12); }
.shop-steps li.is-done { color: rgba(255, 255, 255, .8); }
.shop-steps li.is-done::before { background: #2fb36f; }
.shop-steps li.is-now { color: var(--gold-300); }
.shop-steps li.is-now::before { background: var(--gold-400); }
.shop-order .btn { justify-self: start; }
.shop-order__ready { color: #7ee2a8; font-size: .92rem; }
.shop-order--cancelled { opacity: .7; }

/* Cart */
.cart { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(20px, 3vw, 40px); align-items: start; }
.cart__lines ul { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.cart-line { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto auto 32px; align-items: center; gap: 14px; padding: 12px; border-radius: 18px; background: #fff;
  border: 1px solid var(--line-light); }
.cart-line.has-problem { border-color: #e2a3a3; background: #fff7f7; }
.cart-line__img { display: block; width: 84px; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: linear-gradient(160deg, #143c82, #06142e); }
.cart-line__img img { width: 100%; height: 100%; object-fit: cover; }
.cart-line__img img.is-logo { object-fit: contain; padding: 18px; }
.cart-line__info { display: grid; gap: 2px; min-width: 0; }
.cart-line__info strong { font: 800 1rem/1.25 var(--font-display); }
.cart-line__info small { color: var(--ink-soft); }
.cart-line__info em { font-style: normal; font-weight: 700; color: #b42a35; font-size: .9rem; }
.cart-line__total { font: 900 1.1rem/1 var(--font-display); white-space: nowrap; }
.cart-line__x { width: 32px; height: 32px; border: 0; border-radius: 50%; background: #eef3fa; color: var(--ink); font-size: 1.2rem; cursor: pointer; }
.cart-line__x:hover { background: #fde3e5; color: #b42a35; }
.cart__refresh { margin-top: 12px; }
.cart__refresh[hidden] { display: none; }
.cart__sum { position: sticky; top: calc(var(--nav-h) + 70px); padding: 24px; border-radius: 22px; background: linear-gradient(160deg, #0c2a5e, var(--navy-900)); color: #fff; box-shadow: var(--shadow); }
.cart__sum h2 { font-size: 1.25rem; margin-bottom: 14px; }
.cart__sum dl { display: grid; gap: 10px; margin: 0 0 18px; }
.cart__sum dl div { display: flex; justify-content: space-between; gap: 12px; }
.cart__sum dt { color: rgba(255, 255, 255, .78); }
.cart__total { padding-top: 12px; border-top: 1px solid var(--line-dark); }
.cart__total dd { font: 900 1.8rem/1 var(--font-display); color: var(--gold-400); }
.cart__sum label { display: block; margin-bottom: 6px; font-weight: 600; font-size: .92rem; }
.cart__sum .optional { color: rgba(255, 255, 255, .55); font-weight: 400; }
.cart__sum textarea { width: 100%; margin-bottom: 14px; padding: 10px 12px; border-radius: 12px; border: 1.5px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .08); color: #fff; font: inherit; font-size: 16px; resize: vertical; }
.cart__sum textarea::placeholder { color: rgba(255, 255, 255, .45); }
.cart__warn { margin-bottom: 10px; color: #ffb3bb; font-weight: 600; font-size: .9rem; }
.cart__how { margin: 18px 0 0; padding-left: 18px; color: rgba(255, 255, 255, .68); font-size: .86rem; line-height: 1.55; display: grid; gap: 4px; }

@media (max-width: 960px) {
  .shop-item { grid-template-columns: minmax(0, 1fr); }
  .cart { grid-template-columns: minmax(0, 1fr); }
  .cart__sum { position: static; }
}
@media (max-width: 560px) {
  .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .shop-card__text { padding: 10px 12px 14px; }
  .shop-card__text strong { font-size: .95rem; }
  .shop-badge { top: 8px; left: 8px; }
  .cart-line { grid-template-columns: 64px minmax(0, 1fr) 32px; grid-template-areas: "img info x" "img qty total"; gap: 8px 12px; }
  .cart-line__img { grid-area: img; width: 64px; }
  .cart-line__info { grid-area: info; }
  .cart-line .qty { grid-area: qty; justify-self: start; }
  .cart-line__total { grid-area: total; justify-self: end; }
  .cart-line__x { grid-area: x; }
  .shop-add { width: 100%; }
  .shop-steps li { font-size: 12px; }
  .shop-state { margin-left: 0; }
}

/* -- Public website shop: home section, size chart, order page ----------------- */
.shop-home__cta { margin-top: 26px; text-align: center; }
.shop-sizes { margin-top: 34px; padding: 18px 22px; border-radius: 20px; background: #fff; border: 1px solid var(--line-light); }
.shop-sizes > summary { cursor: pointer; font: 800 1.1rem/1.2 var(--font-display); list-style-position: inside; }
.shop-sizes[open] > summary { margin-bottom: 14px; }
.shop-sizes .size-chart { max-width: 640px; }
.shop-track { margin-top: 26px; text-align: center; color: var(--ink-soft); }
.shop-track a { color: #1558b0; font-weight: 700; }
.cart__form { display: grid; gap: 6px; }
.cart__form label { margin: 6px 0 0; }
.cart__form input { width: 100%; padding: 10px 12px; border-radius: 12px; border: 1.5px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .08); color: #fff; font: inherit; font-size: 16px; }
.cart__form input:focus, .cart__form textarea:focus { outline: none; border-color: var(--gold-400); }
.cart__form .btn { margin-top: 10px; }

.order { display: grid; gap: 18px; }
.order__card { padding: 22px 24px; border-radius: 22px; background: #fff; border: 1px solid var(--line-light); box-shadow: 0 18px 40px -32px rgba(11, 31, 68, .5); }
.order__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.order__head span { display: block; color: var(--ink-soft); font-size: .85rem; font-weight: 600; }
.order__head strong { font: 900 1.6rem/1.1 var(--font-display); }
.order__head small { font-size: .8rem; color: var(--ink-soft); }
.order-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 0 0 14px; padding: 0; list-style: none; }
.order-steps li { position: relative; padding-top: 12px; font-size: 12px; font-weight: 700; color: #8a97ad; }
.order-steps li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px; border-radius: 99px; background: #e3e9f3; }
.order-steps li.is-done { color: var(--ink); }
.order-steps li.is-done::before { background: #2fb36f; }
.order-steps li.is-now { color: #8a5a00; }
.order-steps li.is-now::before { background: var(--gold-400); }
.order__note { margin: 0 0 12px; padding: 10px 14px; border-radius: 12px; background: #e2f6ea; color: #0e6b3b; font-weight: 600; font-size: .92rem; }
.order__cancelled { margin: 0 0 12px; padding: 12px 14px; border-radius: 12px; background: #fde3e5; color: #8f1d27; }
.order__cancelled a { color: inherit; font-weight: 700; }
.order__items { display: grid; gap: 8px; margin: 0; padding: 14px 0 0; list-style: none; border-top: 1px solid var(--line-light); }
.order__items li { display: flex; justify-content: space-between; gap: 12px; }
.order__items em { font-style: normal; font-size: 12px; font-weight: 700; padding: 1px 7px; border-radius: 6px; background: #eef3ff; color: #12357a; }
.order__who { margin: 14px 0 0; color: var(--ink-soft); font-size: .9rem; }
.order__pay h2 { font-size: 1.25rem; margin-bottom: 10px; }
.order__how { margin: 0 0 12px; padding-left: 18px; }
.order__warn { padding: 10px 14px; border-radius: 12px; background: #fff3d6; color: #6b4500; font-weight: 600; }
.order__ref { margin: 16px 0; }
.order__help { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-radius: 18px; background: #eef3fa; }
.order__help p { margin: 0; flex: 1 1 280px; }
.order-find { display: grid; gap: 4px; max-width: 460px; margin: 0 auto; padding: 26px; border-radius: 22px; background: #fff; border: 1px solid var(--line-light); }
.order-find .btn { justify-self: start; margin-top: 8px; }
@media (max-width: 560px) { .order__card { padding: 18px; } .order__head strong { font-size: 1.35rem; } }.order__ref { background: var(--navy-900) !important; color: #fff; border-radius: 14px; }
.order__ref span { color: rgba(255, 255, 255, .75) !important; }
.order__ref strong { color: var(--gold-400) !important; }
.order__ref .copy-btn { color: #fff; border-color: rgba(255, 255, 255, .4); }