/* =========================================================
   Kidsgrove Athletic FC - Club shop
   Uses the colours, fonts and buttons from style.css
   ========================================================= */

/* ---------- Header ---------- */
.shop-back {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
}
.shop-back:hover { color: var(--gold-soft); }

.basket-btn {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  padding: .65rem 1.1rem;
  background: transparent;
  color: var(--ivory);
  border: 1px solid var(--hair);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.basket-btn:hover { background: var(--gold); color: var(--ink); }
.basket-count {
  display: inline-grid;
  place-items: center;
  min-width: 1.6rem;
  height: 1.6rem;
  padding: 0 .35rem;
  background: var(--gold);
  color: var(--ink);
  font-size: .75rem;
  letter-spacing: 0;
}
.basket-btn:hover .basket-count { background: var(--ink); color: var(--gold-soft); }

/* ---------- Intro ---------- */
.shop-hero {
  padding: calc(84px + clamp(3.5rem, 8vw, 6rem)) 0 clamp(3rem, 6vw, 4.5rem);
  background:
    radial-gradient(ellipse 60% 70% at 85% 0%, rgba(30, 68, 184, .35) 0%, rgba(30, 68, 184, 0) 65%),
    var(--ink);
  border-bottom: 1px solid var(--line);
}
.shop-title { margin-bottom: 1.2rem; }
.shop-hero .lead { margin-bottom: 2.5rem; }

.shop-tabs { display: flex; flex-wrap: wrap; gap: .75rem; }
.shop-tabs a {
  padding: .75rem 1.3rem;
  border: 1px solid var(--line);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  transition: border-color .3s var(--ease), color .3s var(--ease);
}
.shop-tabs a:hover { border-color: var(--gold); color: var(--gold-soft); }

/* ---------- Sections ---------- */
.shop-section { padding: clamp(4rem, 8vw, 6rem) 0; scroll-margin-top: 84px; }
.shop-section-alt { background: var(--night); }

.shop-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .5rem 2rem;
  padding-bottom: 1.4rem;
  margin-bottom: 2.4rem;
  border-bottom: 1px solid var(--hair);
}
.shop-section-head .display-sm { margin: 0; }
.shop-section-head p { margin: 0; color: rgba(242, 241, 236, .75); max-width: 30rem; }

.shop-loading, .shop-empty { color: var(--stone); margin: 0; }
.shop-empty { padding: 2.5rem; border: 1px dashed var(--line); text-align: center; grid-column: 1 / -1; }

/* ---------- Ticket cards ---------- */
.ticket-list { display: grid; gap: 1.5rem; }

.ticket-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(280px, 380px);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background:
    linear-gradient(135deg, rgba(30, 68, 184, .22) 0%, rgba(30, 68, 184, 0) 60%),
    var(--night);
  border: 1px solid var(--line);
  border-left: 0;
  position: relative;
  padding-left: calc(clamp(1.5rem, 3vw, 2.25rem) + 6px);
}
.ticket-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: repeating-linear-gradient(180deg,
    var(--royal) 0 22px, var(--sky) 22px 34px, var(--kit-red) 34px 56px, var(--sky) 56px 68px);
}

.ticket-when {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 4.5rem;
  padding-right: clamp(1rem, 2vw, 1.75rem);
  border-right: 1px solid var(--line);
}
.ticket-when strong { font-family: var(--serif); font-weight: 600; font-size: 3rem; line-height: 1; }
.ticket-when span { font-size: .75rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-soft); margin-top: .3rem; }

.ticket-info h3 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.15; margin-bottom: .6rem; }
.ticket-info p { margin: 0 0 .2rem; color: rgba(242, 241, 236, .85); }
.ticket-info .ticket-comp-small { font-size: .9rem; color: var(--stone); }

.ticket-types { display: grid; gap: .2rem; }
.ticket-type {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .8rem 0;
  border-bottom: 1px solid var(--line);
}
.ticket-type-label { display: flex; flex-direction: column; }
.ticket-type-label strong { font-weight: 600; }
.ticket-type-label span { color: var(--gold-soft); font-size: .95rem; }
.ticket-types .btn { margin-top: 1rem; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

.sold-out { font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--stone); }

/* Quantity stepper */
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); }
.stepper button {
  width: 40px;
  height: 40px;
  background: transparent;
  color: var(--ivory);
  border: 0;
  font-size: 1.2rem;
  cursor: pointer;
}
.stepper button:hover:not(:disabled) { background: var(--gold); color: var(--ink); }
.stepper button:disabled { opacity: .3; cursor: not-allowed; }
.stepper-value { min-width: 2.4rem; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- Product cards ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--ink);
  border: 1px solid var(--line);
  transition: border-color .4s var(--ease);
}
.shop-section:not(.shop-section-alt) .product-card { background: var(--night); }
.product-card:hover { border-color: var(--hair); }

.product-media { aspect-ratio: 4 / 5; overflow: hidden; background: var(--grove); }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.product-card:hover .product-media img { transform: scale(1.04); }
.product-media.is-placeholder {
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at 50% 40%, rgba(30, 68, 184, .45) 0%, var(--night) 75%);
}
.product-media.is-placeholder img { width: 45%; height: auto; opacity: .35; object-fit: contain; }

.product-body { display: flex; flex-direction: column; flex: 1; padding: 1.5rem; }
.product-body h3 { font-family: var(--serif); font-weight: 600; font-size: 1.4rem; line-height: 1.2; margin-bottom: .4rem; }
.product-price { font-size: 1.1rem; font-weight: 600; color: var(--gold-soft); margin-bottom: .8rem; }
.product-meta { font-size: .9rem; color: var(--gold-soft); margin-bottom: .6rem; }
.product-desc { font-size: .95rem; color: rgba(242, 241, 236, .75); margin-bottom: 1rem; }
.product-body .btn { margin-top: auto; }
.product-body .form-row { margin-bottom: 1.25rem; }

.form-row select {
  width: 100%;
  padding: .8rem 0;
  background: transparent;
  color: var(--ivory);
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  font: inherit;
  cursor: pointer;
}
.form-row select:focus { outline: none; border-bottom-color: var(--gold); }
.form-row select option { background: var(--night); color: var(--ivory); }

/* Programme formats */
.format-options { display: grid; gap: .6rem; margin-bottom: 1.25rem; }
.format-option {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: .8rem;
  padding: .85rem 1rem;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: border-color .3s var(--ease);
}
.format-option:has(input:checked) { border-color: var(--gold); background: rgba(217, 195, 145, .07); }
.format-option input { accent-color: var(--gold); width: 16px; height: 16px; }
.format-option span:not(.format-price) { display: flex; flex-direction: column; }
.format-option strong { font-weight: 600; font-size: .95rem; }
.format-option small { color: var(--stone); font-size: .82rem; }
.format-price { font-weight: 600; color: var(--gold-soft); }

/* ---------- Basket drawer ---------- */
.basket-backdrop {
  position: fixed;
  inset: 0;
  z-index: 140;
  background: rgba(3, 4, 10, .7);
  backdrop-filter: blur(4px);
}

.basket {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 150;
  display: flex;
  flex-direction: column;
  width: min(440px, 100%);
  background: var(--night);
  border-left: 1px solid var(--hair);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform .5s var(--ease), visibility 0s linear .5s;
}
.basket.is-open { transform: none; visibility: visible; transition: transform .5s var(--ease), visibility 0s; }

.basket-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid var(--line);
}
.basket-head .display-sm { margin: 0; font-size: 1.7rem; }
.basket-head .modal-close { position: static; }

.basket-body { flex: 1; overflow-y: auto; padding: 1rem 1.75rem; }
.basket-items { margin: 0; padding: 0; list-style: none; }
.basket-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.basket-info { display: flex; flex-direction: column; min-width: 0; }
.basket-info strong { font-weight: 600; }
.basket-info small { color: var(--stone); font-size: .85rem; }
.basket-controls { display: inline-flex; align-items: center; border: 1px solid var(--line); }
.basket-controls button { width: 32px; height: 32px; background: none; border: 0; color: var(--ivory); cursor: pointer; font-size: 1rem; }
.basket-controls button:hover:not(:disabled) { background: var(--gold); color: var(--ink); }
.basket-controls button:disabled { opacity: .3; cursor: not-allowed; }
.basket-controls span { min-width: 1.8rem; text-align: center; font-weight: 600; font-size: .9rem; }
.basket-price { font-weight: 600; min-width: 4.5rem; text-align: right; }
.basket-empty { color: var(--stone); padding: 2rem 0; margin: 0; }

.delivery { margin: 1.75rem 0 0; padding: 0; border: 0; }
.delivery .label { margin-bottom: .9rem; }
.delivery-option {
  display: flex;
  gap: .9rem;
  align-items: flex-start;
  padding: .9rem 1rem;
  margin-bottom: .6rem;
  border: 1px solid var(--line);
  cursor: pointer;
}
.delivery-option:has(input:checked) { border-color: var(--gold); background: rgba(217, 195, 145, .07); }
.delivery-option input { accent-color: var(--gold); margin-top: .3rem; }
.delivery-option span { display: flex; flex-direction: column; }
.delivery-option strong { font-weight: 600; }
.delivery-option small { color: var(--stone); font-size: .85rem; }

.basket-foot { padding: 1.5rem 1.75rem 1.75rem; border-top: 1px solid var(--hair); background: var(--ink); }
.basket-line { display: flex; justify-content: space-between; margin-bottom: .6rem; color: rgba(242, 241, 236, .8); }
.basket-total { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; color: var(--ivory); margin-bottom: 1.2rem; }
.basket-secure { margin: .9rem 0 0; text-align: center; font-size: .82rem; color: var(--stone); }

/* ---------- Toast ---------- */
.shop-toast {
  position: fixed;
  left: 50%;
  bottom: 2rem;
  z-index: 300;
  padding: .9rem 1.4rem;
  background: var(--gold);
  color: var(--ink);
  font-weight: 600;
  font-size: .92rem;
  transform: translate(-50%, 150%);
  opacity: 0;
  transition: transform .4s var(--ease), opacity .4s var(--ease);
  pointer-events: none;
}
.shop-toast.is-shown { transform: translate(-50%, 0); opacity: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .ticket-card { grid-template-columns: auto minmax(0, 1fr); }
  .ticket-types { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .shop-back-text { display: none; }
  .ticket-card { grid-template-columns: 1fr; }
  .ticket-when { flex-direction: row; gap: .6rem; align-items: baseline; padding: 0 0 1rem; border-right: 0; border-bottom: 1px solid var(--line); }
  .ticket-when strong { font-size: 2.2rem; }
  .basket-item { grid-template-columns: 1fr auto; }
  .basket-price { grid-column: 2; grid-row: 1; }
  .basket-controls { grid-column: 1; justify-self: start; }
}

/* ---------- Red hover accents ---------- */
.shop-back:hover { color: var(--kit-red); }
.basket-btn:hover { background: var(--kit-red); border-color: var(--kit-red); color: var(--ivory); }
.basket-btn:hover .basket-count { background: var(--ivory); color: var(--kit-red); }
.shop-tabs a:hover { border-color: var(--kit-red); color: var(--ivory); background: var(--kit-red); }
.stepper button:hover:not(:disabled),
.basket-controls button:hover:not(:disabled) { background: var(--kit-red); color: var(--ivory); }
.product-card:hover { border-color: var(--kit-red); }
.format-option:hover, .delivery-option:hover { border-color: var(--kit-red); }
.ticket-card { transition: border-color .4s var(--ease); }
.ticket-card:hover { border-color: rgba(200, 48, 47, .6); }

/* Tickets now live on tickets.html */
.shop-ticket-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem 2rem; padding: 1.8rem 2rem; border: 1px solid var(--hair); }
.shop-ticket-cta p { margin: 0; max-width: 36rem; color: rgba(244, 238, 226, .8); }

/* =========================================================
   Shop page, new design (matches the rest of the site)
   ========================================================= */
body.basket-open { overflow: hidden; }
.shop-hero2 { min-height: 74vh; min-height: 74svh; }
.shop-jump { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 2.2rem; opacity: 0; transition: opacity 1.2s var(--ease) .7s; }
.is-loaded .shop-jump { opacity: 1; }
.shop-jump a {
  padding: .8rem 1.3rem;
  border: 1px solid rgba(244, 238, 226, .3);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color .3s var(--ease), border-color .3s var(--ease);
}
.shop-jump a:hover { background: var(--kit-red); border-color: var(--kit-red); }

.site-header .basket-btn { justify-self: end; padding: .75rem 1.1rem; font-size: .72rem; letter-spacing: .26em; }

/* Tickets panel on ivory */
.shop-tix { scroll-margin-top: 80px; }
.shop-tix-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.shop-tix-lead { max-width: 30rem; margin: 0 0 2rem; font-size: 1.1rem; color: rgba(10, 27, 78, .78); }
.shop-prices { margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(10, 27, 78, .18); }
.shop-prices li { display: flex; justify-content: space-between; align-items: baseline; padding: 1.3rem 0; border-bottom: 1px solid rgba(10, 27, 78, .18); }
.shop-prices span { font-size: .78rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--grove); }
.shop-prices small { display: block; margin-top: .3rem; font-size: .7rem; letter-spacing: .08em; text-transform: none; font-weight: 500; color: rgba(10, 27, 78, .6); }
.shop-prices strong { font-family: var(--serif); font-size: clamp(2rem, 3.4vw, 2.8rem); font-weight: 500; color: #9A7A3E; }

/* Programmes and collection */
.shop-block { scroll-margin-top: 80px; }
.shop-block-dark { background: var(--abyss); }
.shop-block-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 3rem; margin-bottom: clamp(2.2rem, 4vw, 3.2rem); }
.shop-block-head .display { margin-bottom: 0; }
.shop-block-head > p { max-width: 26rem; margin: 0; color: rgba(244, 238, 226, .72); }
.shop-block .product-card { background: rgba(244, 238, 226, .03); border-color: var(--hair); }
.shop-block .product-body h3 { font-weight: 500; }
.shop-block .product-price, .shop-block .product-meta, .shop-block .format-price { color: var(--brass-soft); }
.shop-block .shop-empty { border-color: var(--hair); color: var(--mist); }
.shop-block .btn-gold { background: var(--brass); border-color: var(--brass); }

@media (max-width: 860px) {
  .shop-tix-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .site-header .basket-btn { padding: .6rem .8rem; letter-spacing: .16em; }
}

/* Checkout total */
.checkout-total { display: flex; justify-content: space-between; align-items: baseline; margin: .4rem 0 1.2rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .7rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--mist); }
.checkout-total strong { font-family: var(--serif); font-size: 1.8rem; font-weight: 500; letter-spacing: 0; color: var(--brass-soft); }

/* ---------- Official kit (Fused Sport) ---------- */
.kit-card { color: inherit; text-decoration: none; }
.kit-media { background: #fff; }
.kit-media img { object-fit: contain; padding: 6%; }
.kit-card .btn { pointer-events: none; }
.kit-card:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
.shop-empty a { color: var(--brass-soft); }
.kit-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(.6rem, 2vw, 1.6rem); margin-bottom: clamp(2.4rem, 5vw, 4rem); }
.kit-trio figure { margin: 0; background: #fff; border: 1px solid var(--hair); }
.kit-trio img { display: block; width: 100%; height: auto; }
.kit-trio figcaption { padding: .9rem 1rem; background: var(--grove); color: var(--brass-soft); font-size: .72rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; text-align: center; }
@media (max-width: 560px) { .kit-trio figcaption { padding: .6rem .3rem; font-size: .62rem; letter-spacing: .16em; } }
