/* The store: store.html, store-cart.html, store-order.html, store-terms.html (javascript/store*.js)
   Same look as the rest of the site: black and red, rounded pill buttons, white cards with a thin red accent, calm motion. */
.store-wrap {
  /* the store's navy blue comes from the page colours (Style/style.css, :root[data-tint="store"]), so it fades in when you arrive from another page */
  --st-fill: rgb(var(--acc-r), var(--acc-g), var(--acc-b));
  --st-ink: color-mix(in srgb, rgb(var(--acc-r) var(--acc-g) var(--acc-b)) 82%, #000000);   /* the navy as TEXT on white: a little darker, so it reads well */
  --st-bright: color-mix(in srgb, rgb(var(--acc-r) var(--acc-g) var(--acc-b)) 42%, #ffffff);   /* the navy as text on a DARK panel: lighter, so it reads well */
  --st-soft: color-mix(in srgb, rgb(var(--acc-r) var(--acc-g) var(--acc-b)) 13%, #ffffff);
  position: relative;
  max-width: 1160px;
  margin: 0 auto !important;
  padding: 56px 20px 96px;
  color: #111111;
}
/* a very soft wash of the page colour behind the whole store, like the hero/footer glows elsewhere on the site - it fades with the page tint */
.store-wrap::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -40px;
  right: 0;
  left: 0;
  height: 420px;
  background: radial-gradient(ellipse 70% 100% at 50% 0%, color-mix(in srgb, var(--st-fill) 7%, transparent), transparent 72%);
  pointer-events: none;
}
/* (the shared `.body div div` rule gives nested divs a 10% margin: switched off here, spacing comes from gap) */
.store-wrap div,
.store-wrap dl,
.store-wrap dd,
.store-wrap figure,
.store-wrap ol {
  margin: 0 !important;
}
.store-wrap [hidden] {
  display: none !important;
}
.store-wrap a {
  color: var(--st-ink);
}
.store-title {
  position: relative;
  margin-bottom: 20px;
  padding-bottom: 12px;
  font-size: 28px;
  font-weight: 900;
}
.store-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  inset-inline-start: 0;
  width: 56px;
  height: 3px;
  border-radius: 2px;
  background: var(--st-fill);
}
.store-note {
  padding: 32px 0;
  color: #666666;
  text-align: center;
}
.store-fine {
  margin-top: 6px;
  color: #666666;
  font-size: 13.5px;
  line-height: 1.7;
}
.store-fine--center {
  text-align: center;
}
.store-wrap .store-fine--notice {
  padding: 12px 16px;
  border: 1px solid color-mix(in srgb, var(--st-fill) 22%, #ffffff);
  border-radius: 14px;
  background: var(--st-soft);
  color: #333333;
}
.store-policies a {
  color: #555555;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.store-policies a:hover {
  color: var(--st-ink);
}.store-error {
  padding: 10px 14px;
  border-radius: 12px;
  background: #fdecee;
  color: #8a1c26;
  font-size: 14.5px;
  line-height: 1.6;
}
.store-done {
  padding: 12px 14px;
  border-radius: 12px;
  background: #e9f7ef;
  color: #17603a;
  font-weight: 700;
}
.store-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 56px 10px;
  text-align: center;
}
.store-back {
  display: inline-block;
  font-weight: 700;
  text-decoration: none;
}
.store-wrap .store-closed {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 12px 0 !important;
  padding: 14px 18px;
  border: 1px solid #f0d78a;
  border-radius: 14px;
  background: #fff7dc;
  color: #5b4300;
  line-height: 1.7;
}

/* buttons: the site's black pills */
.store-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 28px;
  border: 2px solid #111111;
  border-radius: 999px;
  background: #111111;
  color: #ffffff !important;
  font: inherit;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.store-btn:hover:not(:disabled),
.store-btn:focus-visible {
  background: #ffffff;
  color: #111111 !important;
}
.store-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}
.store-btn.is-added {
  border-color: #17603a;
  background: #17603a;
  color: #ffffff !important;
}
.store-btn:focus-visible,
.store-chip:focus-visible,
.store-qty__btn:focus-visible,
.store-cartlink:focus-visible {
  outline: 3px solid var(--st-ink);
  outline-offset: 3px;
}
.store-btn--small {
  min-height: 40px;
  padding: 6px 18px;
  font-size: 14.5px;
}
.store-btn--big {
  width: 100%;
  min-height: 56px;
  font-size: 17px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}
.store-btn--light {
  background: #ffffff;
  color: #111111 !important;
}
.store-btn--light:hover:not(:disabled),
.store-btn--light:focus-visible {
  background: #111111;
  color: #ffffff !important;
}
@media (prefers-reduced-motion: no-preference) {
  .store-btn:hover:not(:disabled) {
    transform: translateY(-2px);
  }
}

/* the catalog: search + sort + the cart button share one soft panel, so the tools read as one designed bar instead of loose floating pills */
.store-wrap .store-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 8px 0 22px !important;
  padding: 10px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 24px;
  background: #f9f9fb;
}
.store-wrap .store-bar--top {
  justify-content: space-between;
  margin-top: 0 !important;
  padding: 0;
  border: 0;
  background: none;
}
.store-search {
  min-height: 48px;
  padding: 8px 20px 8px 44px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23888' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='8.5' cy='8.5' r='5.5'/%3E%3Cpath d='M13 13l4.5 4.5'/%3E%3C/svg%3E") no-repeat left 16px center;
  background-size: 18px;
  color: #111111;
  font: inherit;
  transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.store-search {
  flex: 1 1 240px;
  min-width: 0;
}
.store-search:hover {
  background-color: #f3f3f6;
}
.store-search:focus-visible {
  border-color: var(--st-ink);
  outline: none;
  background-color: #ffffff;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--st-fill) 32%, transparent);
}
/* the cart button: navy like the rest of the store, larger than the other controls, with a cart icon; it pulses softly while the cart holds something,
   and bumps once when an item is added (javascript/store.js) */
.store-cartlink {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 8px 26px;
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--st-fill) 0%, color-mix(in srgb, var(--st-fill) 62%, #000000) 100%);
  box-shadow: 0 8px 22px color-mix(in srgb, var(--st-fill) 42%, transparent);
  color: #ffffff !important;
  font-size: 17px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.25s, box-shadow 0.25s;
}
.store-cartlink:hover {
  box-shadow: 0 12px 28px color-mix(in srgb, var(--st-fill) 55%, transparent);
  transform: translateY(-2px) scale(1.03);
}
.store-cartlink__icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.store-cartlink.has-items {
  animation: cartRing 2.8s ease-in-out infinite;
}
.store-cartlink.is-bump {
  animation: cartBump 0.55s ease both;
}
@keyframes cartRing {
  0%,
  100% { box-shadow: 0 8px 22px color-mix(in srgb, var(--st-fill) 42%, transparent), 0 0 0 0 color-mix(in srgb, var(--st-fill) 50%, transparent); }
  60% { box-shadow: 0 8px 22px color-mix(in srgb, var(--st-fill) 42%, transparent), 0 0 0 12px color-mix(in srgb, var(--st-fill) 0%, transparent); }
}
@keyframes cartBump {
  0%,
  100% { transform: scale(1); }
  40% { transform: scale(1.14); }
  70% { transform: scale(0.97); }
}
@media (prefers-reduced-motion: reduce) {
  .store-cartlink.has-items,
  .store-cartlink.is-bump { animation: none; }
}
.store-cartlink__count {
  min-width: 26px;
  padding: 0 8px;
  border-radius: 13px;
  background: #ffffff;
  color: var(--st-ink);
  font-size: 14px;
  font-weight: 900;
  line-height: 26px;
  text-align: center;
}
.store-wrap .store-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 !important;
}
.store-chip {
  min-height: 42px;
  padding: 6px 18px;
  border: 1px solid #dcdce2;
  border-radius: 999px;
  background: #ffffff;
  color: #111111;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.store-chip:hover {
  border-color: var(--st-fill);
  transform: translateY(-1px);
}
.store-chip[aria-pressed="true"] {
  border-color: var(--st-fill);
  background: var(--st-fill);
  color: #ffffff;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--st-fill) 35%, transparent);
}
.store-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  font-size: 15px;
  cursor: pointer;
}
.store-check input {
  width: 20px;
  height: 20px;
  accent-color: var(--st-ink);
}
.store-count {
  margin: 0;
  color: #777777;
  font-size: 14px;
  font-weight: 600;
}
.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
}
/* ------------------------------ the category carousel: the filter of the product list below it ------------------------------ */
.store-wrap .store-cats {
  margin: 4px 0 44px !important;
}
.store-sectiontitle {
  position: relative;
  margin: 0 0 22px;
  padding-bottom: 12px;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.2;
}
.store-sectiontitle::after {
  content: "";
  position: absolute;
  bottom: 0;
  inset-inline-start: 0;
  width: 56px;
  height: 3px;
  border-radius: 2px;
  background: var(--st-fill);
}
.store-subtitle {
  margin: 0;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.2;
}
.store-carousel {
  position: relative;
  padding: 0 58px;
}
/* the scroll box clips what sticks out of it, so it is made taller than the tiles (room for the lift and shadow of a hovered tile) */
.store-carousel__track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 16px 6px 26px;
  margin: -16px -6px -8px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.store-carousel__track::-webkit-scrollbar {
  display: none;
}
.store-wrap .store-cat {
  position: relative;
  display: flex;
  flex: 0 0 232px;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  color: #111111;
  font: inherit;
  text-align: start;
  cursor: pointer;
  scroll-snap-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
/* with only a few categories they sit in the middle instead of leaning to one side (when there are many, the row just scrolls) */
.store-cat:first-child {
  margin-inline-start: auto;
}
.store-cat:last-child {
  margin-inline-end: auto;
}
.store-cat::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: var(--st-fill);
  transform: scaleX(0);
  transition: transform 0.35s ease;
}
.store-cat:hover,
.store-cat:focus-visible {
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 16px 30px rgba(0, 0, 0, 0.1), 0 30px 54px -30px color-mix(in srgb, var(--st-fill) 45%, transparent);
  transform: translateY(-5px);
}
.store-cat:focus-visible {
  outline: 3px solid var(--st-ink);
  outline-offset: 3px;
}
/* the chosen category: a navy frame and the top line, and its tick filled in */
.store-cat.is-on {
  border-color: var(--st-fill);
  box-shadow: 0 0 0 1px var(--st-fill), 0 16px 30px -12px color-mix(in srgb, var(--st-fill) 40%, transparent);
}
.store-cat.is-on::before,
.store-cat:hover::before {
  transform: scaleX(1);
}
/* every tile is the store's navy square with its mark in the middle */
.store-cat__img {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--st-fill) 0%, color-mix(in srgb, var(--st-fill) 55%, #000000) 100%);
}
/* a category: its icon, large and white (one of the built-in ones) */
.store-cat__glyph {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  color: #ffffff;
  transition: transform 0.4s ease;
}
.store-cat__glyph svg {
  width: 100%;
  height: 100%;
  stroke-width: 1.5;
}
/* or the category's own little picture, on a white disc so any picture reads on the navy */
.store-cat__disc {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
  transition: transform 0.4s ease;
}
.store-wrap .store-cat__disc img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}
/* "all products": a small grid of squares */
.store-cat__all {
  width: 46px;
  height: 46px;
  opacity: 0.92;
  background:
    linear-gradient(#ffffff, #ffffff) 0 0 / 20px 20px no-repeat,
    linear-gradient(#ffffff, #ffffff) 26px 0 / 20px 20px no-repeat,
    linear-gradient(#ffffff, #ffffff) 0 26px / 20px 20px no-repeat,
    linear-gradient(#ffffff, #ffffff) 26px 26px / 20px 20px no-repeat;
  transition: transform 0.4s ease;
}
.store-cat:hover .store-cat__glyph,
.store-cat:hover .store-cat__disc,
.store-cat:hover .store-cat__all,
.store-cat.is-on .store-cat__glyph,
.store-cat.is-on .store-cat__disc {
  transform: scale(1.08);
}
@media (prefers-reduced-motion: reduce) {
  .store-cat__glyph,
  .store-cat__disc,
  .store-cat__all {
    transition: none;
    transform: none !important;
  }
}.store-cat__body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px 18px;
}
.store-cat__text {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}
.store-cat__name {
  font-size: 19px;
  font-weight: 800;
  line-height: 1.3;
}
.store-cat__meta {
  color: #777777;
  font-size: 14px;
}
.store-cat__tick {
  display: grid;
  flex: none;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid #dcdce2;
  border-radius: 50%;
  color: #ffffff;
  font-size: 15px;
  font-weight: 900;
  transition: background-color 0.25s, border-color 0.25s;
}
.store-cat.is-on .store-cat__tick {
  border-color: var(--st-fill);
  background: var(--st-fill);
}
.store-cat.is-on .store-cat__tick::before {
  content: "✓";
}
/* the arrows: the same round black buttons as the reviews carousel; the chevron is drawn with borders, so no font can turn it around */
.store-carousel__btn {
  position: absolute;
  z-index: 5;
  top: calc(50% - 6px);
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #050505;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  color: #ffffff;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background-color 0.3s, color 0.3s, transform 0.2s, opacity 0.2s, box-shadow 0.3s;
}
.store-carousel__btn::before {
  content: "";
  width: 10px;
  height: 10px;
  border-top: 2.5px solid currentColor;
  border-right: 2.5px solid currentColor;
}
.store-carousel__btn--prev {
  right: 6px;
}
.store-carousel__btn--prev::before {
  transform: translateX(-2px) rotate(45deg);
}
.store-carousel__btn--next {
  left: 6px;
}
.store-carousel__btn--next::before {
  transform: translateX(2px) rotate(-135deg);
}
.store-carousel__btn:hover:not(:disabled) {
  background: #ffffff;
  color: #111111;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25), inset 0 0 0 2px #111111;
  transform: translateY(-50%) scale(1.1);
}
.store-carousel__btn:focus-visible {
  outline: 3px solid var(--st-ink);
  outline-offset: 3px;
}
.store-carousel__btn:disabled {
  opacity: 0.3;
  cursor: default;
}
/* dots under the carousel (phones): the same look as the reviews dots, in the store's navy */
.store-dots {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
}
.store-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #cfcfd4;
  cursor: pointer;
  transition: background-color 0.2s, width 0.2s;
}
.store-dots button.is-active {
  width: 26px;
  border-radius: 5px;
  background: var(--st-fill);
}

/* the products: when they change (another category, another order) the old ones tip away and the new ones flip in one after the other */
.store-products .store-grid {
  perspective: 1400px;
}
.store-grid.is-leaving .store-card {
  opacity: 0;
  transform: rotateX(-14deg) translateY(8px) scale(0.97);
  transition: opacity 0.19s ease, transform 0.19s ease;
}
.store-grid.is-flipping .store-card {
  transform-origin: 50% 0;
  animation: storeFlip 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: calc(var(--i, 0) * 55ms);
}
@keyframes storeFlip {
  from { opacity: 0; transform: rotateX(-62deg) translateY(16px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .store-grid.is-leaving .store-card,
  .store-grid.is-flipping .store-card {
    animation: none;
    transition: none;
  }
}

/* a phone: ONE category in the middle (the ones next to it peek in), the arrows sit on the peeking parts, dots below. Swiping to a category chooses it. */
@media (max-width: 640px) {
  .store-carousel {
    padding: 0;
  }
  .store-carousel__track {
    gap: 14px;
    padding-inline: 15%;
    margin-inline: 0;
  }
  .store-wrap .store-cat {
    flex: 0 0 100%;   /* of the track's inner width, which is 70% of the track (15% of room on each side) */
    border-radius: 18px;
  }
  .store-cat__name {
    font-size: 18px;
  }
  .store-carousel__btn {
    width: 38px;
    height: 38px;
  }
  .store-carousel__btn--prev {
    right: 8px;
  }
  .store-carousel__btn--next {
    left: 8px;
  }
  .store-dots {
    display: flex;
  }
  .store-sectiontitle {
    font-size: 24px;
  }
  .store-wrap .store-cats {
    margin-bottom: 34px !important;
  }
}
/* the products: title and count, then the in-stock switch and the sort button */
.store-wrap .store-listhead {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: 20px !important;
}
.store-wrap .store-listtitle {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
}
.store-wrap .store-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
}
.store-wrap .store-sortwrap {
  position: relative;
}
.store-sortbtn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 6px 18px;
  border: 1px solid #dcdce2;
  border-radius: 999px;
  background: #ffffff;
  color: #111111;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.store-sortbtn:hover,
.store-sortbtn[aria-expanded="true"] {
  border-color: var(--st-fill);
}
.store-sortbtn:focus-visible,
.store-sortmenu__item:focus-visible {
  outline: 3px solid var(--st-ink);
  outline-offset: 2px;
}
.store-sortbtn__caret {
  width: 8px;
  height: 8px;
  border-right: 2px solid #777777;
  border-bottom: 2px solid #777777;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.2s;
}
.store-sortbtn[aria-expanded="true"] .store-sortbtn__caret {
  transform: rotate(225deg) translate(-2px, -2px);
}
.store-wrap .store-sortmenu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  display: flex;
  min-width: 230px;
  flex-direction: column;
  gap: 2px;
  padding: 6px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.14);
}
.store-sortmenu__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  padding: 6px 14px;
  border: 0;
  border-radius: 12px;
  background: none;
  color: #111111;
  font: inherit;
  font-size: 15px;
  text-align: start;
  cursor: pointer;
}
.store-sortmenu__item:hover {
  background: #f3f3f6;
}
.store-sortmenu__item[aria-checked="true"] {
  background: var(--st-soft);
  color: var(--st-ink);
  font-weight: 800;
}
.store-sortmenu__item[aria-checked="true"]::after {
  content: "✓";
}.store-wrap .store-foot {
  margin-top: 36px !important;
}
.store-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.store-card::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: var(--st-fill);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.35s ease;
}
.store-card:hover {
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 16px 30px rgba(0, 0, 0, 0.1), 0 30px 54px -30px color-mix(in srgb, var(--st-fill) 45%, transparent);
  transform: translateY(-6px);
}
.store-card:hover::before {
  transform: scaleX(1);
}
.store-card.is-out .store-card__img img {
  filter: grayscale(1);
  opacity: 0.6;
}
.store-card__img {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #f3f3f6;
}
.store-card__img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.store-card:hover .store-card__img img {
  transform: scale(1.05);
}
.store-badge {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  padding: 3px 14px;
  border-radius: 999px;
  background: #111111;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
}
.store-badge--sale {
  background: var(--st-fill);
  color: #ffffff;
}
.store-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 5px;
  padding: 18px 20px 20px;
}
.store-card__name {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.005em;
}
.store-card__name a {
  color: #111111;
  text-decoration: none;
}
.store-card__name a:hover {
  color: var(--st-ink);
}
.store-card__desc {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-bottom: 4px !important;
  color: #767680;
  font-size: 13.5px;
  line-height: 1.55;
}
.store-wrap .store-card__foot {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  margin-top: auto !important;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.store-card__foot .store-btn,
.store-info__buy > .store-btn {
  border-color: var(--st-fill);
  background: var(--st-fill);
  box-shadow: 0 8px 18px color-mix(in srgb, var(--st-fill) 32%, transparent);
}
.store-card__foot .store-btn {
  width: 100%;
}
.store-card__foot .store-btn:hover:not(:disabled),
.store-card__foot .store-btn:focus-visible,
.store-info__buy > .store-btn:hover:not(:disabled),
.store-info__buy > .store-btn:focus-visible {
  border-color: var(--st-fill);
  background: #ffffff;
  color: var(--st-ink) !important;
}
.store-card__foot .store-btn.is-added,
.store-info__buy > .store-btn.is-added {
  border-color: #17603a;
  background: #17603a;
}
.store-price {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  font-variant-numeric: tabular-nums;
}
.store-price__now {
  color: var(--st-ink);
  font-size: 23px;
  font-weight: 900;
  letter-spacing: -0.01em;
}
.store-price__old {
  color: #999999;
  font-size: 14.5px;
  font-weight: 600;
}
@media (prefers-reduced-motion: no-preference) {
  .store-card {
    animation: storeRise 0.5s ease both;
  }
  .store-grid > :nth-child(2) { animation-delay: 0.05s; }
  .store-grid > :nth-child(3) { animation-delay: 0.1s; }
  .store-grid > :nth-child(4) { animation-delay: 0.15s; }
  .store-grid > :nth-child(n + 5) { animation-delay: 0.2s; }
}
@keyframes storeRise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* the "closed" sign */
.store-wrap .store-sign {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 520px;
  margin: 40px auto 0 !important;
  padding: 56px 32px 40px;
  border-radius: 24px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--st-fill) 34%, #000) 0%, color-mix(in srgb, var(--st-fill) 10%, #000) 100%);
  color: #ffffff;
  text-align: center;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.store-sign::before,
.store-sign::after {
  content: "";
  position: absolute;
  top: -40px;
  width: 2px;
  height: 40px;
  background: #b9b9c0;
}
.store-sign::before { right: 30%; transform: rotate(-9deg); transform-origin: bottom; }
.store-sign::after { left: 30%; transform: rotate(9deg); transform-origin: bottom; }
.store-sign__hook {
  position: absolute;
  top: 14px;
  right: 50%;
  width: 12px;
  height: 12px;
  margin-right: -6px;
  border-radius: 50%;
  background: #000000;
  box-shadow: inset 0 0 0 2px #3a3a40;
}
.store-sign__badge {
  padding: 8px 40px;
  border: 3px solid var(--st-bright);
  border-radius: 12px;
  color: var(--st-bright);
  font-size: 44px;
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-shadow: 0 0 22px color-mix(in srgb, var(--st-bright) 55%, transparent);
}
.store-wrap .store-sign__title {
  font-size: 24px;
  font-weight: 800;
}
.store-wrap .store-sign__msg {
  max-width: 400px;
  color: #cfcfd6;
  font-size: 16.5px;
  line-height: 1.8;
  white-space: pre-line;
}
.store-wrap .store-sign__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 8px !important;
}
.store-sign .store-btn {
  border-color: #ffffff;
  background: #ffffff;
  color: #111111 !important;
}
.store-sign .store-btn:hover {
  background: transparent;
  color: #ffffff !important;
}
.store-sign .store-btn--light {
  background: transparent;
  color: #ffffff !important;
}
.store-sign .store-btn--light:hover {
  background: #ffffff;
  color: #111111 !important;
}
@media (prefers-reduced-motion: no-preference) {
  .store-sign {
    transform-origin: 50% -40px;
    animation: storeSwing 2.6s ease-out both;
  }
}
@keyframes storeSwing {
  0% { transform: rotate(4deg); }
  25% { transform: rotate(-2.6deg); }
  50% { transform: rotate(1.4deg); }
  75% { transform: rotate(-0.6deg); }
  100% { transform: rotate(0); }
}

/* one product */
.store-product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}
.store-gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.store-wrap .store-gallery__main {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 22px;
  background: #f3f3f6;
  object-fit: cover;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 20px 40px rgba(0, 0, 0, 0.1);
}
.store-gallery__thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.store-gallery__thumb {
  width: 68px;
  height: 68px;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 12px;
  background: #f3f3f6;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
}
.store-gallery__thumb:hover,
.store-gallery__thumb:focus-visible {
  border-color: var(--st-ink);
  outline: none;
  transform: translateY(-2px);
}
.store-gallery__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.store-info {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.store-info__name {
  font-size: 30px;
  font-weight: 900;
  line-height: 1.3;
}
.store-info .store-price__now {
  font-size: 28px;
}
.store-info__short {
  color: #444444;
  font-size: 17px;
  line-height: 1.7;
}
.store-info__buy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.store-text p {
  margin-bottom: 12px;
  line-height: 1.85;
  white-space: pre-line;
}
.store-text--legal {
  max-width: 760px;
}
.store-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid #cfcfd6;
  border-radius: 999px;
  overflow: hidden;
}
.store-qty__btn {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: #111111;
  font: inherit;
  font-size: 20px;
  cursor: pointer;
  transition: background-color 0.2s;
}
.store-qty__btn:hover {
  background: #f3f3f6;
}
.store-qty__input,
.store-qty__num {
  min-width: 44px;
  border: 0;
  background: transparent;
  color: #111111;
  font: inherit;
  font-weight: 700;
  text-align: center;
}
.store-qty__input {
  width: 56px;
  -moz-appearance: textfield;
}

/* the product modal: opens over the catalog instead of a full page navigation (store.html?p=<slug> still deep-links straight into it) */
.store-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  /* !important: the page-wide ".body div { background-color: transparent }" rule (style.css) otherwise wins on
     specificity and makes the whole overlay - backdrop AND the white panel below - invisible/see-through */
  background-color: rgba(10, 10, 16, 0.72) !important;
  backdrop-filter: blur(8px);
}
.store-modal[hidden] {
  display: none;
}
.store-modal__panel {
  position: relative;
  width: 100%;
  max-width: 1000px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 48px 40px 40px;
  border-radius: 26px;
  background: #ffffff !important;
  color: #111111;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}
.store-modal__close {
  position: absolute;
  top: 14px;
  inset-inline-start: 14px;
  z-index: 1;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #f3f3f6;
  color: #444444;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, transform 0.2s;
}
.store-modal__close:hover {
  background: #111111;
  color: #ffffff;
  transform: rotate(90deg);
}
.store-modal__close:focus-visible {
  outline: 3px solid var(--st-ink);
  outline-offset: 2px;
}
body.store-modal-open {
  overflow: hidden;
}
@media (prefers-reduced-motion: no-preference) {
  .store-modal__panel {
    animation: storeModalIn 0.22s ease both;
  }
}
@keyframes storeModalIn {
  from { opacity: 0; transform: scale(0.97) translateY(10px); }
  to { opacity: 1; transform: none; }
}
@media (max-width: 800px) {
  .store-modal {
    padding: 0;
    align-items: flex-end;
  }
  .store-modal__panel {
    max-width: none;
    max-height: 94vh;
    border-radius: 22px 22px 0 0;
    padding: 44px 20px 28px;
  }
}

/* the cart and the order form */
.store-cartgrid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
.store-cartgrid__side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.store-lines {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
/* the coupon field: a live, non-binding preview (store_check_code) - the real check happens again on the server
   when the order is actually created, so the amount here is only ever a preview */
.store-promo__row {
  display: flex;
  gap: 8px;
}
.store-promo__input {
  flex: 1;
  min-width: 0;
  min-height: 46px;
  padding: 8px 18px;
  border: 1px solid #cfcfd6;
  border-radius: 999px;
  background: #ffffff;
  color: #111111;
  font: inherit;
  text-transform: uppercase;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.store-promo__input::placeholder {
  text-transform: none;
}
.store-promo__input:focus-visible {
  border-color: var(--st-ink);
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--st-fill) 30%, transparent);
}
.store-promo__msg {
  margin: 10px 0 0;
  color: #666666;
  font-size: 13.5px;
  line-height: 1.6;
}
.store-promo__msg.is-error {
  color: #8a1c26;
}
.store-promo__applied {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: #17603a;
  font-weight: 600;
}
.store-promo__remove {
  padding: 2px 12px;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 12.5px;
  cursor: pointer;
}
.store-promo__remove:hover {
  background: #17603a;
  color: #ffffff;
}
.store-line {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) auto;
  grid-template-areas: "img info total" "img qty remove";
  align-items: center;
  gap: 6px 14px;
  padding: 14px;
  border: 1px solid rgba(0, 0, 0, 0.09);
  border-radius: 18px;
  transition: box-shadow 0.25s;
}
.store-line:hover {
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.07);
}
.store-line.is-out {
  border-color: var(--st-fill);
}
.store-wrap .store-line__img {
  grid-area: img;
  width: 68px;
  height: 68px;
  border-radius: 12px;
  object-fit: cover;
  background: #f3f3f6;
}
.store-line__info {
  display: flex;
  grid-area: info;
  flex-direction: column;
  gap: 2px;
}
.store-line__name {
  color: #111111 !important;
  font-weight: 800;
  text-decoration: none;
}
.store-line__unit {
  color: #666666;
  font-size: 13.5px;
}
.store-line .store-qty {
  grid-area: qty;
  justify-self: start;
}
.store-line__total {
  grid-area: total;
  font-size: 17px;
}
.store-line__remove {
  grid-area: remove;
  justify-self: end;
  padding: 4px 8px;
  border: 0;
  background: none;
  color: var(--st-ink);
  font: inherit;
  font-size: 14px;
  text-decoration: underline;
  cursor: pointer;
}
.store-summary {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 22px 18px 18px;
  border: 2px solid #111111;
  border-radius: 18px;
  /* !important: ".body div" (style.css) otherwise wins on specificity and this box loses its background entirely */
  background: #ffffff !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.1);
}
/* the navy line and light on top of the checkout box; the light breathes on the top bar's 6s beat */
.store-summary::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgb(28, 62, 150), transparent);
}
.store-summary::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  z-index: -1;
  height: 110px;
  background: radial-gradient(ellipse 90% 100% at 50% 0%, rgba(28, 62, 150, 0.3), transparent 72%);
  pointer-events: none;
  animation: navBreath 6s ease-in-out infinite;
  animation-delay: var(--beat, 0s);
}
@media (prefers-reduced-motion: reduce) {
  .store-summary::after {
    animation: none;
    opacity: 0.8;
  }
}
.store-summary__row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.store-summary__row.is-total {
  padding-top: 10px;
  border-top: 1px solid #d6d6dc;
  font-size: 20px;
  font-weight: 900;
}
.store-summary small {
  color: #666666;
}
.store-summary .store-summary__vat {
  margin-top: 2px;
  font-size: 13px;
}
.store-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px;
  border: 1px solid rgba(0, 0, 0, 0.09);
  border-top: 3px solid var(--st-fill);
  border-radius: 20px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.07);
}
.store-form h3 {
  font-size: 20px;
  font-weight: 900;
}
.store-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.store-field label {
  font-size: 14.5px;
  font-weight: 700;
}
.store-field input,
.store-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 8px 14px;
  border: 1px solid #cfcfd6;
  border-radius: 12px;
  background: #ffffff;
  color: #111111;
  font: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.store-field input:focus-visible,
.store-field textarea:focus-visible {
  border-color: var(--st-ink);
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--st-fill) 30%, transparent);
}
.store-field small {
  color: #666666;
}
.store-addr {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.store-addr .store-field:nth-child(1),
.store-addr .store-field:nth-child(2) {
  grid-column: span 2;
}
.store-choice {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}
.store-choice legend {
  margin-bottom: 6px;
  font-weight: 800;
}
.store-radio {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 2px 10px;
  padding: 12px 14px;
  border: 1px solid #cfcfd6;
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}
.store-radio:hover {
  border-color: #111111;
}
.store-radio:has(input:checked) {
  border-color: var(--st-ink);
  background: var(--st-soft);
}
.store-radio small {
  grid-column: 2;
  color: #666666;
}
.store-radio input {
  width: 20px;
  height: 20px;
  accent-color: var(--st-ink);
}
.store-consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  font-size: 14px;
  line-height: 1.7;
}
.store-consent input {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  accent-color: var(--st-ink);
}

/* the order page */
.store-wrap .store-ordercard {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 680px;
  margin: 0 auto !important;
  padding: 28px;
  border: 1px solid rgba(0, 0, 0, 0.09);
  border-top: 3px solid var(--st-fill);
  border-radius: 22px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.07);
}
.store-ordercard h2 {
  font-size: 22px;
  font-weight: 900;
}
.store-status {
  font-size: 18px;
  font-weight: 800;
}
.store-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  list-style: none;
}
.store-steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #888888;
}
.store-steps li.is-done {
  color: #111111;
  font-weight: 700;
}
.store-steps__dot {
  width: 14px;
  height: 14px;
  border: 2px solid #b9b9c0;
  border-radius: 50%;
}
.store-steps li.is-done .store-steps__dot {
  border-color: #17603a;
  background: #17603a;
}
.store-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.store-items div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.store-items .is-total {
  padding-top: 8px;
  border-top: 1px solid #d6d6dc;
  font-size: 19px;
  font-weight: 900;
}
.store-pay {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 20px;
  border-radius: 18px;
  background: #f6f6f8 !important;
}
.store-pay h3 {
  font-size: 19px;
  font-weight: 900;
}
.store-bitsteps {
  padding-inline-start: 20px;
  line-height: 1.9;
}
.store-wrap .store-bitqr {
  width: 160px;
  height: 160px;
  border-radius: 12px;
  background: #ffffff;
}

@media (max-width: 800px) {
  .store-product,
  .store-cartgrid {
    grid-template-columns: minmax(0, 1fr);
  }
  .store-info {
    position: static;
  }
  .store-info__name {
    font-size: 25px;
  }
}
@media (max-width: 520px) {
  .store-wrap {
    padding: 24px 14px 80px;
  }
  .store-title {
    font-size: 24px;
  }
  .store-form,
  .store-ordercard {
    padding: 20px 16px;
  }
  .store-bar > .store-search {
    flex-basis: 100%;
  }
  .store-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .store-card {
    border-radius: 16px;
  }
  .store-card__body {
    padding: 10px 12px 14px;
  }
  .store-card__name {
    font-size: 15px;
  }
  .store-card__desc {
    display: none;
  }
  .store-price__now {
    font-size: 17px;
  }
  .store-card .store-btn--small {
    width: 100%;
    padding-inline: 10px;
  }
  .store-sign {
    margin-top: 48px !important;
    padding: 48px 20px 32px;
  }
  .store-sign__badge {
    padding: 6px 28px;
    font-size: 36px;
  }
}
