/* Winning Tides — look carried over from the original site: white page, black menu buttons,
   lowercase "winning tides" logo, Arial, dark-blue links, red for emphasis. */
:root {
  --ink: #111;
  --black: #1a1a1a;
  --link: #000099;
  --red: #d40000;
  --muted: #5f6368;
  --line: #dadce0;
  --soft: #f5f5f5;
  --ok: #1e7a3c;
  --warn: #9a5b00;
  --bad: #a3271f;
  --radius: 8px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.5 Arial, Helvetica, sans-serif; color: var(--ink); background: #fff; }
a { color: var(--link); }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.red { color: var(--red); font-weight: bold; }

/* ---------- Top: Facebook button, logo, basket ---------- */
.site-top { border-bottom: 1px solid var(--line); }
.top-row { display: grid; grid-template-columns: 190px 1fr auto; align-items: center; gap: 16px; padding: 14px 16px; }
.fb img { display: block; width: 182px; }
.logo { justify-self: center; }
.logo img { display: block; width: 520px; max-width: 100%; }
.basket-link { justify-self: end; background: var(--black); color: #fff; text-decoration: none; font-weight: bold;
               padding: 9px 16px; border-radius: 99px; white-space: nowrap; }
.basket-link:hover { background: #444; }
.basket-count { background: #fff; color: var(--black); border-radius: 99px; padding: 0 7px; margin-left: 6px; font-size: .85em; }

/* ---------- Left menu (the original button pictures) + content ---------- */
.site-body { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 32px; padding-top: 20px; padding-bottom: 40px; }
.side-menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.side-menu a { display: block; line-height: 0; }
.side-menu img { width: 100%; display: block; }
.side-menu .over { display: none; }
.side-menu a:hover .up, .side-menu a:focus-visible .up, .side-menu a[aria-current] .up { display: none; }
.side-menu a:hover .over, .side-menu a:focus-visible .over, .side-menu a[aria-current] .over { display: block; }
.side-menu .menu-text { margin-top: 14px; display: grid; gap: 6px; font-size: .95rem; }
.side-menu .menu-text a { line-height: 1.4; font-weight: bold; }
.menu-toggle { display: none; }

main { min-width: 0; }
h1 { font-size: 1.7rem; margin: .1em 0 .5em; }
h2 { font-size: 1.35rem; margin: 1.2em 0 .4em; }
h3 { font-size: 1.1rem; margin: 1em 0 .3em; }
.intro, .muted, .crumbs { color: var(--muted); }
.crumbs { font-size: .9rem; margin: 0 0 8px; }
.crumbs a { color: var(--muted); }

/* ---------- Page text (admin-editable) ---------- */
.page-text { max-width: 760px; }
.page-text p { margin: 0 0 1em; }
.page-text hr { border: 0; border-top: 1px solid var(--line); margin: 1.4em 0; clear: both; }
.page-text blockquote { margin: 0 0 1em; padding: 8px 16px; border-left: 4px solid var(--black); background: var(--soft); font-style: italic; }
.page-text ul { padding-left: 1.3em; }
.pic { margin: 0 0 1em; }
.pic img { display: block; }
.pic-centre img { margin: 0 auto; }
.pic-left { float: left; margin: 0 20px 12px 0; max-width: 45%; }
.pic-right { float: right; margin: 0 0 12px 20px; max-width: 45%; }
.pic-small img { max-width: 200px; }
.page-text::after, .clear { content: ""; display: block; clear: both; }
.download { margin: 0 0 1em; }
.btn-download { display: inline-block; background: var(--black); color: #fff; text-decoration: none; font-weight: bold;
                padding: 8px 14px; border-radius: 6px; }
.btn-download:hover { background: #444; }
.markup-missing { background: #fdf0d9; color: var(--warn); padding: 6px 10px; border-radius: 6px; }

/* ---------- Product boxes ---------- */
.buy-box { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; align-items: center;
           border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; margin: 0 0 16px; max-width: 760px; clear: both; }
.buy-box-img { display: flex; align-items: center; justify-content: center; background: var(--soft); border-radius: 6px; aspect-ratio: 4 / 3; overflow: hidden; }
.buy-box-img img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.buy-box h3 { margin: 0 0 4px; font-size: 1.1rem; }
.buy-box h3 a { color: inherit; text-decoration: none; }
.buy-box .row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.buy-box form { margin: 0; }

.grid { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 18px;
        grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; background: #fff; display: flex; flex-direction: column; }
.card a { text-decoration: none; color: inherit; }
.card-img { aspect-ratio: 4 / 3; background: var(--soft); border-radius: 6px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.card h2 { font-size: 1rem; margin: 10px 0 4px; }
.card-meta { margin: auto 0 0; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.card-unavailable .card-img img { opacity: .55; }
.price { font-weight: bold; }
.price.big { font-size: 1.6rem; margin: 0; }

.badge { display: inline-block; font-size: .78rem; font-weight: bold; padding: 2px 8px; border-radius: 99px; }
.badge-in_stock { background: #e3f3e8; color: var(--ok); }
.badge-coming_soon { background: #fdf0d9; color: var(--warn); }
.badge-out_of_stock { background: #f9e1df; color: var(--bad); }

.product { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin: 8px 0 24px; }
.product-img { background: var(--soft); border-radius: var(--radius); padding: 20px; display: flex; align-items: center; justify-content: center; min-height: 240px; }
.btn { font: inherit; font-weight: bold; background: var(--black); color: #fff; border: 0; border-radius: 6px; padding: 11px 20px; cursor: pointer; text-decoration: none; display: inline-block; }
.btn:hover { background: #444; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.small { font-size: .88rem; }
.notice { background: #fdf0d9; border-radius: 8px; padding: 10px 14px; }
.error { background: #f9e1df; color: var(--bad); border-radius: 8px; padding: 10px 14px; }
.btn-link { background: none; border: 0; color: var(--link); text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }
select, input[type=email] { font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.add-form { display: flex; gap: 10px; align-items: center; }

/* ---------- Basket & checkout ---------- */
.basket { width: 100%; border-collapse: collapse; margin: 16px 0 8px; }
.basket th, .basket td { padding: 10px 6px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.basket .num { text-align: right; white-space: nowrap; }
.basket tfoot td { font-weight: bold; border-bottom: 0; }
.basket form { margin: 0; }
.checkout { max-width: 520px; margin-top: 28px; }
#express-checkout { margin: 12px 0; min-height: 48px; }
#card-checkout { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; margin-top: 16px; }
#card-checkout summary { cursor: pointer; font-weight: bold; }
#card-form { display: grid; gap: 14px; margin-top: 14px; }
#card-form label[for=email] { font-size: .9rem; margin-bottom: -10px; }
#ship-options { border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; margin: 0; display: grid; gap: 6px; }
#ship-options legend { font-size: .9rem; padding: 0 4px; }
.radio { display: flex; gap: 8px; align-items: center; cursor: pointer; }
.total-line { margin: 0; font-size: 1.1rem; }
.hint { font-size: .9rem; color: #555; margin: .75rem 0 .4rem; }

.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.site-footer .wrap { padding: 20px 16px; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer a { color: var(--muted); }

/* ---------- Phones and small tablets ---------- */
@media (max-width: 860px) {
  .top-row { grid-template-columns: 1fr auto; gap: 10px; padding: 10px 16px; }
  .fb { display: none; }
  .logo { justify-self: start; }
  .logo img { width: 230px; }
  .basket-link { padding: 7px 12px; font-size: .95rem; }
  .site-body { grid-template-columns: 1fr; gap: 12px; padding-top: 12px; }
  .menu-toggle { display: flex; width: 100%; justify-content: space-between; align-items: center; font: inherit; font-weight: bold;
                 background: var(--black); color: #fff; border: 0; border-radius: 6px; padding: 11px 14px; cursor: pointer; }
  .js .side-menu .menu-body { display: none; margin-top: 8px; }
  .js .side-menu.open .menu-body { display: block; }
  .side-menu ul { grid-template-columns: 1fr 1fr; gap: 6px; }
  .side-menu .menu-text { grid-template-columns: 1fr 1fr; }
  .product { grid-template-columns: 1fr; gap: 16px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .pic-left, .pic-right { float: none; margin: 0 0 1em; max-width: 100%; }
  .buy-box { grid-template-columns: 96px minmax(0, 1fr); gap: 12px; }
}
@media (max-width: 400px) {
  .side-menu ul { grid-template-columns: 1fr; }
}

/* Owner request 2026-11-17: main content area 40% smaller on computers (menu/header unchanged).
   Not on the basket page: Stripe's payment fields don't like being zoomed. */
@media (min-width: 861px) {
  main.compact { zoom: .6; }
}
.page-text.banner .pic { margin-bottom: 14px; }
