/* ==========================================================================
   Second-hand uniform shop front (uniform.html), on top of site.css.
   The catalogue, stock, checkout and orders stay in Wix Stores; this is only the shop window
   and the basket (js/uniform-shop.71ac700a49.js). Motion is slow and quiet, and stops entirely under
   prefers-reduced-motion.
   ========================================================================== */

/* --- Hero with the rotating showcase -------------------------------------- */
.shop-hero { position: relative; color: var(--white); background: var(--grad-teal); overflow: hidden; isolation: isolate; padding: clamp(3.2rem, 7vw, 5rem) 0 clamp(3rem, 6vw, 4.4rem); }
.shop-hero::before { content: ""; position: absolute; inset: -30% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px; border-radius: 50%; background: radial-gradient(closest-side, rgba(159,202,198,.28), rgba(159,202,198,0)); z-index: -1; animation: shop-drift 26s ease-in-out infinite alternate; }
.shop-hero::after { content: ""; position: absolute; inset: auto auto -40% -20%; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px; border-radius: 50%; background: radial-gradient(closest-side, rgba(136,29,70,.30), rgba(136,29,70,0)); z-index: -1; animation: shop-drift 32s ease-in-out infinite alternate-reverse; }
.shop-hero .container { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; }
.shop-hero h1 { color: var(--white); font-size: clamp(2.2rem, 5vw, 3.6rem); }
.shop-hero .lead { color: #E4EFED; max-width: 36rem; }
.shop-hero .kicker { color: var(--celadon); }
.shop-hero .hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.shop-hero-facts { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin: 1.6rem 0 0; padding: 0; list-style: none; color: #D6E8E5; font-size: .93rem; }
.shop-hero-facts li { display: flex; align-items: center; gap: .45rem; }
.shop-hero-facts svg { width: 1.05rem; height: 1.05rem; color: var(--celadon); flex: none; }

.shop-showcase { position: relative; justify-self: center; width: min(420px, 100%); aspect-ratio: 4 / 5; }
.shop-showcase-frame { position: absolute; inset: 0; border-radius: 210px 210px 28px 28px; background: linear-gradient(180deg, #FFFFFF 0%, var(--celadon-soft) 100%); box-shadow: 0 30px 70px rgba(6,28,26,.35), inset 0 0 0 1px rgba(255,255,255,.6); overflow: hidden; }
.shop-showcase-slide { position: absolute; inset: 8% 10% 0; opacity: 0; transition: opacity 1.8s ease; }
.shop-showcase-slide.is-on { opacity: 1; }
.shop-showcase-slide img { width: 100%; height: 84%; object-fit: contain; mix-blend-mode: multiply; }
.shop-showcase-slide.is-on img { animation: shop-kenburns 9s ease-out forwards; }
.shop-showcase-caption { position: absolute; left: 50%; bottom: 4.2%; transform: translateX(-50%); white-space: nowrap; font-family: var(--font-display); font-weight: 700; font-size: .95rem; color: var(--teal-deep); opacity: 0; transition: opacity 1.2s ease .4s; }
.shop-showcase-slide.is-on .shop-showcase-caption { opacity: 1; }
.shop-showcase-tag { position: absolute; top: 9%; right: -4%; display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%; background: var(--grad-burgundy); color: var(--white); text-align: center; font-family: var(--font-display); line-height: 1.05; box-shadow: 0 12px 28px rgba(107,21,55,.4); transform: rotate(8deg); animation: shop-bob 7s ease-in-out infinite; }
.shop-showcase-tag small { display: block; font-size: .72rem; font-weight: 600; opacity: .9; letter-spacing: .04em; text-transform: uppercase; }
.shop-showcase-tag b { font-size: 1.55rem; font-weight: 800; }
.shop-showcase.is-empty .shop-showcase-frame { background: linear-gradient(110deg, #FFFFFF 30%, var(--celadon-soft) 50%, #FFFFFF 70%) 0 0 / 300% 100%; animation: shop-shimmer 2.4s linear infinite; }

/* --- The shop ---------------------------------------------------------------- */
.shop { background: linear-gradient(180deg, var(--mist) 0%, #FFFFFF 420px); }
.shop-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 1.6rem; }
.shop-head h2 { margin: 0; }
.shop-head p { margin: .4rem 0 0; color: var(--slate); max-width: 40rem; }
.shop-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.8rem; padding: 0; list-style: none; }
.shop-filter { font: 600 .92rem/1 var(--font-body); color: var(--teal-deep); background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: .62rem 1.05rem; cursor: pointer; transition: background .25s, color .25s, border-color .25s, box-shadow .25s; }
.shop-filter:hover { border-color: var(--teal); }
.shop-filter[aria-pressed="true"] { background: var(--teal-deep); border-color: var(--teal-deep); color: var(--white); box-shadow: 0 6px 16px rgba(18,58,55,.22); }
.shop-filter span { opacity: .7; font-weight: 500; margin-left: .25rem; }

.shop-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); }
.shop-card { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-1); overflow: hidden; transition: transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .45s ease; opacity: 0; transform: translateY(24px); }
.shop-card.in { opacity: 1; transform: none; transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1), box-shadow .45s ease; }
.shop-card.in:hover { transform: translateY(-5px); box-shadow: var(--shadow-2); }
.shop-card-media { position: relative; aspect-ratio: 4 / 4.4; background: radial-gradient(120% 90% at 50% 15%, #FFFFFF 0%, var(--mist) 62%, var(--celadon-soft) 100%); overflow: hidden; }
.shop-card-media img { position: absolute; inset: 8% 10%; width: 80%; height: 84%; object-fit: contain; mix-blend-mode: multiply; transform-origin: 50% 60%; animation: shop-breathe 16s ease-in-out infinite alternate; transition: opacity 1.4s ease; }
.shop-card-media img + img { opacity: 0; }
.shop-card-media.alt-on img:first-child { opacity: 0; }
.shop-card-media.alt-on img + img { opacity: 1; }
.shop-card:hover .shop-card-media img { animation-duration: 7s; }
.shop-badge { position: absolute; top: .85rem; left: .85rem; z-index: 1; font: 700 .74rem/1 var(--font-display); letter-spacing: .06em; text-transform: uppercase; padding: .45rem .7rem; border-radius: 999px; background: var(--white); color: var(--teal-deep); box-shadow: var(--shadow-1); }
.shop-badge--low { background: #FCEFF4; color: var(--burgundy); }
.shop-badge--out { background: var(--ink); color: var(--white); }
.shop-card-body { display: flex; flex-direction: column; gap: .75rem; padding: 1.15rem 1.25rem 1.3rem; flex: 1; }
.shop-card-title { display: flex; align-items: baseline; justify-content: space-between; gap: .8rem; }
.shop-card-title h3 { font-size: 1.12rem; margin: 0; }
.shop-price { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; color: var(--burgundy); white-space: nowrap; }
.shop-option { border: 0; margin: 0; padding: 0; min-width: 0; }
.shop-option legend { padding: 0; margin-bottom: .4rem; font: 600 .78rem/1.2 var(--font-body); letter-spacing: .05em; text-transform: uppercase; color: var(--slate); }
.shop-chips { display: flex; flex-wrap: wrap; gap: .38rem; }
.shop-chip { min-width: 2.6rem; padding: .48rem .62rem; font: 600 .88rem/1 var(--font-body); color: var(--ink); background: var(--white); border: 1px solid #CFDEDB; border-radius: 10px; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.shop-chip:hover:not(:disabled) { border-color: var(--teal); transform: translateY(-1px); }
.shop-chip[aria-pressed="true"] { background: var(--teal-deep); border-color: var(--teal-deep); color: var(--white); }
.shop-chip:disabled { color: #A8B6B4; background: repeating-linear-gradient(135deg, #F6F9F8 0 6px, #EEF3F2 6px 12px); border-style: dashed; cursor: not-allowed; text-decoration: line-through; }
.shop-card-note { margin: 0; font-size: .86rem; color: var(--slate); min-height: 1.3em; }
.shop-card-note.is-warn { color: var(--burgundy); }
.shop-add { margin-top: auto; width: 100%; justify-content: center; }
.shop-add.is-added { background: var(--grad-teal); box-shadow: 0 6px 18px rgba(31,126,118,.3); }
.shop-card.is-out .shop-card-media img { filter: grayscale(.9) opacity(.55); animation: none; }

.shop-state { grid-column: 1 / -1; text-align: center; padding: 3rem 1rem; color: var(--slate); }
.shop-state h3 { color: var(--teal-deep); }
.shop-state pre { display: inline-block; max-width: 100%; white-space: pre-wrap; text-align: left; font-size: .8rem; background: var(--mist); border: 1px solid var(--line); border-radius: 10px; padding: .7rem .9rem; color: var(--ink); user-select: all; }
.shop-skeleton { border-radius: 22px; aspect-ratio: 4 / 6.2; background: linear-gradient(110deg, #F3F8F7 30%, #E7F1EF 50%, #F3F8F7 70%) 0 0 / 300% 100%; animation: shop-shimmer 2.2s linear infinite; }
.shop-thanks { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.8rem; padding: 1.2rem 1.4rem; border-radius: 18px; background: var(--celadon-soft); border: 1px solid #CBE2DE; }
.shop-thanks[hidden], .shop-panel-foot[hidden], .shop-panel-error[hidden] { display: none; }
.shop-thanks svg { width: 2rem; height: 2rem; color: var(--teal-dark); flex: none; }
.shop-thanks h3 { margin: 0 0 .2rem; }
.shop-thanks p { margin: 0; color: var(--slate); }

/* --- Basket: floating button + slide-in panel -------------------------------- */
.shop-basket-btn { position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem); z-index: 60; display: inline-flex; align-items: center; gap: .6rem; padding: .95rem 1.3rem .95rem 1.1rem; border: 0; border-radius: 999px; background: var(--grad-burgundy); color: var(--white); font: 700 1rem/1 var(--font-display); box-shadow: 0 14px 34px rgba(107,21,55,.42); cursor: pointer; transform: translateY(140%); transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.shop-basket-btn.is-shown { transform: none; }
/* The site's donate bar (site.ab0fb2e79b.js, .give-bar) is fixed along the bottom too: the basket sits above it while it shows. */
body:has(.give-bar) .shop-basket-btn { bottom: calc(clamp(1rem, 3vw, 2rem) + 3.6rem); }
.shop-basket-btn svg { width: 1.3rem; height: 1.3rem; }
.shop-basket-count { display: grid; place-items: center; min-width: 1.6rem; height: 1.6rem; padding: 0 .4rem; border-radius: 999px; background: var(--white); color: var(--burgundy); font-size: .85rem; }
.shop-basket-btn.bump { animation: shop-bump .5s ease; }

.shop-panel-backdrop { position: fixed; inset: 0; z-index: 200; background: rgba(12,30,28,.42); backdrop-filter: blur(2px); opacity: 0; pointer-events: none; transition: opacity .35s ease; }
.shop-panel { position: fixed; top: 0; right: 0; bottom: 0; z-index: 201; width: min(420px, 100%); display: flex; flex-direction: column; background: var(--white); box-shadow: -20px 0 50px rgba(12,30,28,.2); transform: translateX(105%); transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.shop-open .shop-panel { transform: none; }
.shop-open .shop-panel-backdrop { opacity: 1; pointer-events: auto; }
.shop-panel-head { display: flex; align-items: center; justify-content: space-between; padding: 1.2rem 1.4rem; border-bottom: 1px solid var(--line); }
.shop-panel-head h2 { font-size: 1.4rem; margin: 0; }
.shop-panel-close { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border: 1px solid var(--line); border-radius: 50%; background: var(--white); color: var(--ink); cursor: pointer; }
.shop-panel-close svg { width: 1.1rem; height: 1.1rem; }
.shop-panel-lines { flex: 1; overflow-y: auto; margin: 0; padding: .4rem 1.4rem; list-style: none; }
.shop-line { display: grid; grid-template-columns: 64px 1fr auto; gap: .9rem; align-items: center; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.shop-line img { width: 64px; height: 72px; object-fit: contain; border-radius: 10px; background: var(--mist); }
.shop-line h3 { font-size: .98rem; margin: 0 0 .15rem; }
.shop-line p { margin: 0; font-size: .85rem; color: var(--slate); }
.shop-line-price { font-family: var(--font-display); font-weight: 700; text-align: right; }
.shop-qty { display: inline-flex; align-items: center; gap: .1rem; margin-top: .4rem; border: 1px solid var(--line); border-radius: 999px; }
.shop-qty button { width: 1.9rem; height: 1.9rem; border: 0; border-radius: 50%; background: none; color: var(--teal-deep); font: 700 1rem/1 var(--font-body); cursor: pointer; }
.shop-qty button:disabled { color: #B9C6C4; cursor: not-allowed; }
.shop-qty span { min-width: 1.4rem; text-align: center; font-weight: 600; font-size: .9rem; }
.shop-remove { display: block; margin-top: .45rem; margin-left: auto; padding: 0; border: 0; background: none; color: var(--slate); font-size: .8rem; text-decoration: underline; cursor: pointer; }
.shop-panel-empty { padding: 3rem 1.4rem; text-align: center; color: var(--slate); }
.shop-panel-foot { padding: 1.2rem 1.4rem 1.4rem; border-top: 1px solid var(--line); background: var(--mist); }
.shop-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .3rem; font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: var(--teal-deep); }
.shop-total b { font-size: 1.5rem; color: var(--burgundy); }
.shop-panel-foot p { margin: 0 0 1rem; font-size: .85rem; color: var(--slate); }
.shop-checkout { width: 100%; justify-content: center; }
.shop-panel-error { margin: .8rem 0 0; font-size: .86rem; color: var(--burgundy-dark); }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.shop-price small { font-size: .72em; font-weight: 600; color: var(--slate); }

/* --- Motion --------------------------------------------------------------------- */
@keyframes shop-breathe { from { transform: scale(1) translateY(0); } to { transform: scale(1.075) translateY(-2.5%); } }
@keyframes shop-kenburns { from { transform: scale(1.12) translateY(3%); } to { transform: scale(1) translateY(0); } }
@keyframes shop-drift { from { transform: translate(0, 0); } to { transform: translate(-6%, 8%); } }
@keyframes shop-bob { 0%, 100% { transform: rotate(8deg) translateY(0); } 50% { transform: rotate(5deg) translateY(-8px); } }
@keyframes shop-shimmer { to { background-position: -150% 0; } }
@keyframes shop-bump { 0% { transform: scale(1); } 40% { transform: scale(1.12); } 100% { transform: scale(1); } }

@media (max-width: 860px) {
  .shop-hero .container { grid-template-columns: 1fr; }
  .shop-showcase { width: min(300px, 78vw); order: -1; }
  .shop-showcase-tag { width: 78px; height: 78px; right: -2%; }
  .shop-showcase-tag b { font-size: 1.3rem; }
}
@media (max-width: 560px) {
  .shop-grid { grid-template-columns: 1fr; }
  .shop-basket-btn { left: 1rem; right: 1rem; justify-content: center; }
  body:has(.give-bar) .shop-basket-btn { bottom: 5.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  .shop-hero::before, .shop-hero::after, .shop-showcase-tag, .shop-card-media img, .shop-showcase-slide.is-on img, .shop-skeleton, .shop-showcase.is-empty .shop-showcase-frame { animation: none !important; }
  .shop-card, .shop-card.in { opacity: 1; transform: none; transition: none; }
  .shop-showcase-slide, .shop-panel, .shop-basket-btn, .shop-card-media img { transition: none; }
}
