/* The shop's archives (templates/shop/archive.html): /shop/, product categories and tags. Our design. */
.shop__description { margin-bottom: 24px; }
.shop__bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; }
.shop__count { margin: 0; color: var(--c-blue-dark); font-weight: var(--fw-semibold); }
.shop__sort select {
  padding: 8px 12px;
  border: 1px solid var(--c-input-border);
  border-radius: 6px;
  background: var(--c-white);
  color: var(--c-input-text);
  font: inherit;
  font-size: 15px;
}
/* Filters (/shop/): courses by name, type, location and month; NVQs by level */
.shop-filters {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 1.4fr) auto;
  gap: 16px 24px;
  align-items: end;
  margin-bottom: 24px;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--c-page);
}
.shop-filters__group { min-width: 0; margin: 0; padding: 0; border: 0; }
.shop-filters__group legend { margin-bottom: 8px; padding: 0; color: var(--c-heading); font-weight: var(--fw-extrabold); }
.shop-filters__group:not(.shop-filters__group--nvq) { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.shop-filters__group:not(.shop-filters__group--nvq) legend { grid-column: 1 / -1; float: left; width: 100%; }
.shop-filters select {
  width: 100%;
  height: 40px;
  padding: 0 10px;
  border: 1px solid var(--c-input-border);
  border-radius: 6px;
  background: var(--c-white);
  color: var(--c-input-text);
  font: inherit;
  font-size: 14px;
}
.shop-filters__levels { display: flex; flex-wrap: wrap; gap: 6px; }
.shop-filters__level { display: inline-flex; align-items: center; gap: 4px; padding: 8px 10px; border: 1px solid var(--c-input-border); border-radius: 6px; background: var(--c-white); font-size: 14px; cursor: pointer; }
.shop-filters__level:has(input:checked) { border-color: var(--c-orange); color: var(--c-orange); font-weight: var(--fw-bold); }
.shop-filters__actions { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.shop-filters__actions button { height: 40px; padding: 0 18px; border: 0; border-radius: 6px; background: var(--c-orange); color: var(--c-white); font: inherit; font-weight: var(--fw-bold); cursor: pointer; }
.shop-filters__actions button:hover { background: var(--c-blue-dark); }
.shop-filters__actions a { color: var(--c-blue); font-size: 14px; text-align: center; }

/* One course a row */
.shop-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--c-page); }
.shop-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 170px;
  gap: 8px 20px;
  align-items: center;
  padding: 14px 4px;
  border-bottom: 1px solid var(--c-page);
}
.shop-row__title { margin: 0 0 4px; color: var(--c-blue-dark); font-size: 16px; line-height: 22px; font-weight: var(--fw-extrabold); }
.shop-row__title a { color: inherit; text-decoration: none; }
.shop-row__title a:hover { color: var(--c-orange); }
.shop-row__sale { float: right; margin-left: 8px; display: inline-block; padding: 1px 8px; border-radius: 20px; background: #d62828; color: var(--c-white); font-size: 12px; vertical-align: middle; }
.shop-row__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; color: var(--c-text); font-size: 14px; }
.shop-row__venue { padding: 0 8px; border-radius: 4px; background: #4cad50; color: var(--c-white); font-size: 12px; font-weight: var(--fw-bold); line-height: 22px; text-transform: uppercase; }
.shop-row__type, .shop-row__places { color: var(--c-placeholder); }
.shop-row__price { margin: 0; color: var(--c-orange); font-size: 20px; font-weight: var(--fw-bold); white-space: nowrap; text-align: right; }
.shop-row__price del { display: block; color: var(--c-blue); font-size: 13px; }
.shop-row__price ins { text-decoration: none; }
.shop-row__price small { font-size: 13px; }
.shop-row__add, .shop-row__out { display: block; padding: 9px 12px; border-radius: 6px; font-weight: var(--fw-bold); text-align: center; text-decoration: none; }
.shop-row__add { background: var(--c-orange); color: var(--c-white); }
.shop-row__add:hover { background: var(--c-blue-dark); }
.shop-row__out { background: var(--c-page); color: var(--c-placeholder); }
@media (max-width: 1000px) {
  .shop-filters { grid-template-columns: 1fr; }
  .shop-filters__group:not(.shop-filters__group--nvq) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .shop-row { grid-template-columns: minmax(0, 1fr) auto; }
  .shop-row__main { grid-column: 1 / -1; }
  .shop-row__price { text-align: left; }
  .shop-filters__group:not(.shop-filters__group--nvq) { grid-template-columns: 1fr; }
}
.shop__none { margin: 0; padding: 16px 20px; border-left: 4px solid var(--c-orange); background: var(--c-page); }

/* The basket (templates/shop/basket.html) */
.basket__offer { margin: 0 0 20px; padding: 12px 16px; border-radius: var(--radius); background: var(--c-page); text-align: center; }
.basket__offer p { margin: 0 0 8px; }
.basket__offer strong { display: block; color: #d62828; }
.basket__offer img { max-width: 100%; height: auto; }
.basket__messages { margin: 0 0 20px; padding: 0; list-style: none; }
.basket__message { margin-bottom: 8px; padding: 12px 16px; border-left: 4px solid #2a9d4b; background: #eef8f0; }
.basket__message--error { border-color: #d62828; background: #fdeeee; }
.basket__message--info { border-color: var(--c-orange); background: #fff4ea; }
.basket__layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 30px; align-items: start; }
.basket__table { width: 100%; border-collapse: collapse; }
.basket__table th { padding: 10px 8px; border-bottom: 2px solid var(--c-page); color: var(--c-blue-dark); font-size: 14px; text-align: left; }
.basket__table td { padding: 14px 8px; border-bottom: 1px solid var(--c-page); vertical-align: middle; }
.basket__table td a { color: var(--c-blue-dark); font-weight: var(--fw-bold); text-decoration: none; }
.basket__table td a:hover { color: var(--c-orange); }
.basket__note { display: block; color: var(--c-placeholder); font-size: 13px; }
.basket__qty { width: 70px; padding: 6px 8px; border: 1px solid var(--c-input-border); border-radius: 6px; font: inherit; }
.basket__remove { width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--c-page); color: var(--c-blue-dark); font-size: 20px; line-height: 1; cursor: pointer; }
.basket__remove:hover { background: #d62828; color: var(--c-white); }
.basket__update { margin-top: 14px; padding: 8px 16px; border: 1px solid var(--c-blue-dark); border-radius: 6px; background: var(--c-white); color: var(--c-blue-dark); font: inherit; font-weight: var(--fw-semibold); cursor: pointer; }
.basket__totals { margin-top: 30px; padding: 20px; border-radius: var(--radius); background: var(--c-page); }
.basket__totals h2 { margin: 0 0 12px; color: var(--c-heading); font-size: 20px; }
.basket__totals dl { margin: 0 0 16px; }
.basket__totals dl div { display: flex; justify-content: space-between; padding: 6px 0; }
.basket__totals dd { margin: 0; font-weight: var(--fw-semibold); }
.basket__total { border-top: 1px solid var(--c-input-border); font-size: 18px; font-weight: var(--fw-extrabold); }
.basket__checkout, .basket__return {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 6px;
  background: var(--c-orange);
  color: var(--c-white);
  font-weight: var(--fw-bold);
  text-decoration: none;
}
.basket__checkout { display: block; text-align: center; }
.basket__checkout:hover, .basket__return:hover { background: var(--c-blue-dark); }
.basket__box { margin-bottom: 20px; padding: 20px; border-radius: var(--radius); background: var(--c-page); }
.basket__box h2 { margin: 0 0 12px; color: var(--c-heading); font-size: 20px; }
.basket__ticks { margin: 0; padding-left: 20px; }
.basket__ticks li { margin-bottom: 6px; }
.basket__enquiry { display: flex; flex-direction: column; gap: 10px; }
.basket__enquiry label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: var(--fw-semibold); }
.basket__enquiry input, .basket__enquiry select, .basket__enquiry textarea { padding: 8px 10px; border: 1px solid var(--c-input-border); border-radius: 6px; background: var(--c-white); font: inherit; font-weight: var(--fw-regular); }
.basket__enquiry button { padding: 10px; border: 0; border-radius: 6px; background: var(--c-blue-dark); color: var(--c-white); font: inherit; font-weight: var(--fw-bold); cursor: pointer; }
@media (max-width: 900px) {
  .basket__layout { grid-template-columns: 1fr; }
  .basket__table thead { display: none; }
  .basket__table tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid var(--c-page); }
  .basket__table td { padding: 2px 0; border: 0; }
  .basket__table td[data-label="Course"] { grid-column: 1 / -1; }
  .basket__table td[data-label]:not([data-label="Course"])::before { content: attr(data-label) ": "; color: var(--c-placeholder); font-size: 13px; }
}
