/* Waterbox Aquariums in the FishSnap Store's aquarium supplies.
   Builds on the FishSnap website's own components (style.css, merch.css, fs2.css): Store cards, toolbar,
   results bar, filter sheet, species-profile layout, buttons and tags — the same shell Aquaforest uses.
   Waterbox's identity here is limited to its own wordmark and one accent colour, its own near-black/blue,
   never Aquaforest's purple, and no shared class names or stylesheet. */
.wb-page {
  --wb-ink: #171717;
  --wb-blue: #0d66c2;
  --wb-blue-deep: #0a4c92;
  --wb-tint: #eef5fc;
  --wb-tint-line: #d9e9f8;
}
body.wb-page main, body.wb-page [data-wb-filter-dialog] { --muted: #565656; }
.wb-page .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- collection head: breadcrumb + modest brand banner ---------- */
.wb-head { padding: 22px 0 6px; }
.wb-head .crumbs { margin-bottom: 16px; }
.wb-page .crumbs a { color: var(--muted); }
.wb-page .crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.wb-page .crumbs strong { color: var(--ink); font-weight: 600; }
.wb-banner {
  position: relative; display: grid; gap: 22px; align-items: center; overflow: hidden;
  padding: 20px 18px 18px 24px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface);
  box-shadow: 0 14px 42px rgba(11, 32, 39, .055);
}
.wb-banner::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: linear-gradient(180deg, var(--wb-ink), var(--wb-blue)); }
.wb-banner-copy { min-width: 0; }
.wb-banner-logo { display: inline-block; width: 176px; height: auto; margin: 0 0 14px; padding: 12px 16px; border-radius: 10px; background: linear-gradient(160deg, var(--wb-ink), var(--wb-blue-deep)); filter: none; }
.wb-banner .eyebrow { margin-bottom: 10px; color: var(--wb-blue); }
.wb-banner h1 { margin: 0 0 12px; color: var(--ink); }
.wb-banner p { max-width: 640px; margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.6; }
.wb-banner-media { display: block; margin: 0; overflow: hidden; border-radius: 18px; height: 220px; background: linear-gradient(155deg, var(--wb-ink), var(--wb-blue-deep)); }
.wb-banner-media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.wb-banner-media.is-contain img { object-fit: contain; padding: 16px; }
@media (min-width: 900px) {
  .wb-banner { grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); padding: 26px 26px 26px 40px; }
  .wb-banner-media { height: 100%; min-height: 260px; max-height: 320px; }
}

/* ---------- toolbar: the Store's own filter box, four fields ---------- */
.wb-collection { padding: 18px 0 40px; scroll-margin-top: calc(var(--header) + 12px); }
.wb-toolbar { margin: 0; }
.wb-page .merch-browse-primary.wb-browse { align-items: end; }
.wb-page .wb-filter-button { display: none; flex: 0 0 auto; }
.wb-short { display: none; }
.wb-filter-button svg { width: 18px; height: 18px; }
.wb-filter-button .filter-selection-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--wb-blue); color: #fff; font-size: 11px; }
.wb-filter-button .filter-selection-count[hidden] { display: none; }
@media (min-width: 680px) {
  .wb-page .merch-browse-primary.wb-browse { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .wb-page .merch-browse-primary.wb-browse { grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 679px) {
  .wb-banner .eyebrow, .wb-price-note { display: none; }
  .wb-page .merch-browse-primary.wb-browse { gap: 10px; }
  .wb-field-desktop { display: none; }
  .wb-page .wb-filter-button { display: inline-flex; }
  .wb-long { display: none; }
  .wb-short { display: inline; }
}

/* results bar */
.wb-page .wb-results-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "status reset"; align-items: start; column-gap: 16px; }
.wb-results-status { grid-area: status; }
.wb-page .wb-results-bar .merch-reset { grid-area: reset; }
.wb-page .wb-results-bar .wb-filter-button { grid-area: filter; }
.wb-results-status { display: grid; gap: 4px; min-width: 0; }
.wb-results-status .merch-result-count { color: var(--ink); font-size: .82rem; font-weight: 600; }
.wb-price-note { color: var(--muted); font-size: .72rem; line-height: 1.45; }
@media (max-width: 679px) {
  .wb-page .wb-results-bar { grid-template-areas: "status filter" "reset reset"; align-items: center; }
  .wb-page .wb-results-bar .merch-reset { justify-self: start; min-height: 32px; padding: 4px 0; }
}

/* ---------- product cards: the Store's card component ---------- */
.wb-grid { gap: 18px; }
.wb-card { display: flex; flex-direction: column; }
.wb-card .merch-card-image { display: block; cursor: pointer; background: #f1f1f1; }
.wb-card .merch-card-image img { width: 100%; height: 100%; object-fit: cover; }
.wb-card .merch-card-image.is-cutout img { object-fit: contain; padding: 9%; }
.wb-card .merch-card-image .card-badge { right: auto; bottom: auto; top: 12px; left: 12px; padding: 6px 9px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--ink); font: 600 .62rem/1 "JetBrains Mono", monospace; letter-spacing: 0; text-transform: none; }
.wb-card .merch-card-image .wb-card-view { position: absolute; right: 13px; bottom: 13px; padding: 8px 10px; border-radius: 999px; background: rgba(23, 23, 23, .9); color: #fff; font: 600 .58rem/1 "JetBrains Mono", monospace; letter-spacing: .05em; text-transform: uppercase; }
.wb-card .merch-card-body { display: flex; flex-direction: column; flex: 1 1 auto; }
.wb-page .wb-kicker { color: var(--wb-blue); }
.wb-card .wb-sale-badge { display: inline-block; margin-left: 8px; padding: 2px 7px; border-radius: 999px; background: var(--wb-ink); color: #fff; font: 700 .6rem/1.6 "JetBrains Mono", monospace; text-transform: uppercase; letter-spacing: .03em; }
.wb-card h3 { margin: 7px 0 9px; font-size: 1.35rem; }
.wb-card h3 a { color: inherit; text-decoration: none; }
.wb-card h3 a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.wb-card .merch-card-body p { display: -webkit-box; min-height: 0; overflow: hidden; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.wb-card .wb-card-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 14px; }
.wb-page .wb-card-foot .wb-price-value { color: var(--ink); font: 700 1.02rem/1.2 Inter, sans-serif; letter-spacing: -.01em; }
.wb-page .wb-card-foot .wb-compare-value { margin-left: 6px; color: #8a8a8a; font: 500 .84rem/1.2 Inter, sans-serif; text-decoration: line-through; }
.wb-page .wb-card-foot .wb-price-label { grid-column: 1 / -1; color: #5b5b5b; font: 500 .62rem/1.35 "JetBrains Mono", monospace; }
.wb-card .wb-card-foot .text-link { color: var(--ink); font-size: .9rem; font-weight: 600; text-decoration: none; }
.wb-empty { grid-column: 1 / -1; display: grid; justify-items: center; gap: 12px; padding: 40px 20px; border: 1px dashed var(--line); border-radius: 22px; text-align: center; }
.wb-empty h3 { margin: 0; font-size: 1.3rem; }
.wb-empty p { max-width: 460px; margin: 0; color: var(--muted); }
.wb-noscript { padding: 20px; color: var(--muted); }
@media (max-width: 679px) {
  .wb-grid.merch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .wb-card .merch-card-image .wb-card-view, .wb-card .merch-card-body > p, .wb-card .merch-card-tags, .wb-card .wb-card-foot .text-link { display: none; }
  .wb-card .merch-card-image .card-badge { top: 8px; left: 8px; padding: 5px 7px; font-size: .56rem; }
  .wb-card .merch-card-body { padding: 12px 12px 14px; }
  .wb-card h3 { margin: 6px 0 8px; font-size: 1rem; line-height: 1.2; }
  .wb-card .wb-card-foot { margin-top: auto; padding-top: 10px; }
  .wb-page .wb-card-foot .wb-price-value { font-size: .92rem; }
  .wb-page .wb-card-foot .wb-price-label { font-size: .56rem; }
}

/* ---------- product page: the species-profile layout of the FishSnap website ---------- */
.wb-product-hero { padding: 20px 0 34px; }
.wb-crumbs { flex-wrap: wrap; row-gap: 4px; }
.wb-back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin: -6px 0 8px; color: var(--ink); font-size: .86rem; font-weight: 600; }
.wb-back svg { width: 18px; height: 18px; }
.wb-back:hover span { text-decoration: underline; text-underline-offset: 4px; }
.wb-page .wb-product-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: start; }
.wb-mobile-title { display: none; }
.wb-gallery { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.wb-page .wb-gallery .main-photo { position: relative; width: 100%; max-width: 540px; height: auto; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 24px; background: #f1f1f1; }
.wb-page .wb-gallery .main-photo img { width: 100%; height: 100%; object-fit: cover; }
.wb-page .wb-gallery .main-photo.is-cutout img { object-fit: contain; padding: 7%; }
.wb-page .wb-gallery .main-photo > img.wb-fit { position: absolute; inset: 0; }
.wb-gallery-caption { position: absolute; left: 14px; bottom: 14px; padding: 6px 9px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--ink); font: 600 .62rem/1 "JetBrains Mono", monospace; }
.wb-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 72px)); gap: 8px; max-width: 540px; margin: 0; padding: 0; list-style: none; }
.wb-thumbs button { position: relative; display: block; width: 100%; aspect-ratio: 1; padding: 4px; overflow: hidden; border: 1.5px solid var(--line); border-radius: 12px; background: #f1f1f1; cursor: pointer; }
.wb-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.wb-thumbs button.is-cutout img { object-fit: contain; }
.wb-thumbs button[aria-pressed="true"] { border-color: var(--wb-blue); box-shadow: 0 0 0 1px var(--wb-blue); }
.wb-thumbs button:focus-visible { outline: 3px solid rgba(13, 102, 194, .35); outline-offset: 2px; }
.wb-product-copy { position: relative; min-width: 0; padding: 0; }
.wb-brand-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 0 14px; }
.wb-brand-line img { display: block; width: 130px; height: auto; padding: 10px 14px; border-radius: 10px; background: linear-gradient(160deg, var(--wb-ink), var(--wb-blue-deep)); box-sizing: content-box; }
.wb-product-copy h1 { margin: 10px 0 0; }
.wb-page .profile-intro { margin: 16px 0 0; color: #3a3a3a; font-size: 1rem; line-height: 1.65; }
.wb-highlights { display: grid; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.wb-highlights li { position: relative; padding-left: 26px; color: #262626; font-size: .92rem; line-height: 1.5; }
.wb-highlights li::before { content: ""; position: absolute; left: 2px; top: .3em; width: 14px; height: 14px; border-radius: 50%; background: var(--wb-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.2 8.3 2.4 2.4 5.2-5.4' fill='none' stroke='%230d66c2' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.wb-essentials { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 18px 0 0; border-top: 1px solid #dedede; }
@media (min-width: 900px) { .wb-essentials { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); } }
.wb-essentials > div { min-width: 0; padding: 12px 10px 12px 0; border-bottom: 1px solid #dedede; }
.wb-essentials dt { color: var(--muted); font-size: .76rem; line-height: 1.4; }
.wb-essentials dd { margin: 5px 0 0; font-size: .96rem; font-weight: 650; line-height: 1.35; overflow-wrap: anywhere; }
.wb-sizes { margin: 20px 0 0; padding: 0; border: 0; }
.wb-sizes legend { margin-bottom: 10px; padding: 0; color: var(--ink); font-size: .8rem; font-weight: 700; }
.wb-size-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 8px; }
.wb-size-options button { min-width: 0; min-height: var(--fs2-S, 36px); padding: 8px 14px; border: 1.5px solid var(--fs2-line, #d0d0d0); border-radius: 14px; background: #fff; color: var(--ink); font: 600 var(--fs2-fsS, 13.5px)/1.3 Inter, sans-serif; cursor: pointer; white-space: normal; overflow: visible; text-overflow: clip; text-align: center; }
.wb-size-options button:hover { border-color: var(--wb-blue); }
.wb-size-options button[aria-checked="true"] { border-color: var(--wb-blue); background: var(--wb-blue); color: #fff; }
.wb-size-options button:disabled { opacity: .45; cursor: not-allowed; }
.wb-size-options button:focus-visible { outline: 3px solid rgba(13, 102, 194, .35); outline-offset: 2px; }
.wb-offer { display: grid; gap: 6px; margin: 18px 0 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.wb-offer-price { color: var(--ink); font: 700 1.6rem/1.1 Inter, sans-serif; letter-spacing: -.02em; }
.wb-offer-compare { margin-left: 8px; color: #8a8a8a; font: 500 1.05rem/1.1 Inter, sans-serif; text-decoration: line-through; }
.wb-offer-label { color: #3a3a3a; font-size: .8rem; line-height: 1.45; }
.wb-offer-sku { color: var(--muted); font: 500 .72rem/1.4 "JetBrains Mono", monospace; }
.wb-offer-unavailable { display: inline-block; margin-top: 6px; padding: 3px 9px; border-radius: 999px; background: #f1f1f1; color: #6b6b6b; font: 600 .68rem/1.6 "JetBrains Mono", monospace; text-transform: uppercase; letter-spacing: .03em; }
.wb-page .wb-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--fs2-gap, 10px); margin-top: 18px; }
.wb-page .wb-actions .btn { width: 100%; gap: 8px; }
.wb-page .wb-actions .btn svg { width: 16px; height: 16px; flex: none; }
.wb-loading { color: var(--muted); }
@media (min-width: 900px) {
  .wb-page .wb-product-grid { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 48px; }
}
@media (max-width: 1100px) and (min-width: 900px) { .wb-page .wb-product-grid { gap: 28px; } }
@media (max-width: 679px) {
  .wb-product-hero { padding: 14px 0 26px; }
  .wb-mobile-title { display: block; margin: 4px 0 14px; }
  .wb-mobile-title .wb-brand-line { margin-bottom: 12px; }
  .wb-mobile-title .wb-brand-line img { width: 120px; }
  .wb-mobile-title h1 { margin: 8px 0 0; }
  .wb-product-copy .wb-brand-line, .wb-product-copy > .card-kicker, .wb-product-copy > h1 { display: none; }
  .wb-page .wb-gallery .main-photo { aspect-ratio: 20 / 19; border-radius: 18px; }
  .wb-thumbs { grid-template-columns: repeat(auto-fill, minmax(48px, 1fr)); gap: 6px; }
  .wb-crumb-wide { display: none; }
  .wb-page .profile-intro { margin-top: 6px; font-size: .95rem; }
  .wb-offer-price { font-size: 1.4rem; }
}
@media (max-width: 419px) { .wb-page .wb-actions { grid-template-columns: minmax(0, 1fr); } }

/* ---------- product details: the profile reading layout ---------- */
.wb-details { padding: 38px 0 44px; border-block: 1px solid var(--line); background: var(--bg); }
.wb-details-layout { display: grid; gap: 28px; align-items: start; }
.wb-detail-nav { display: none; }
.wb-detail-nav h2 { margin: 0 0 12px; color: var(--ink); font-family: Inter, sans-serif; font-size: 1rem !important; letter-spacing: 0 !important; }
.wb-detail-nav ol { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.wb-detail-nav a { display: flex; align-items: center; min-height: 44px; padding: 9px 12px; border-left: 3px solid transparent; border-radius: 0 9px 9px 0; color: #333; font-size: .84rem; line-height: 1.3; text-decoration: none; }
.wb-detail-nav a:hover { background: #f1f1f1; color: var(--ink); }
.wb-detail-nav a[aria-current="true"] { border-left-color: var(--wb-blue); background: var(--wb-tint); color: var(--wb-blue-deep); font-weight: 600; }
.wb-article { min-width: 0; max-width: 860px; --fs-heading-context: var(--fs-heading-panel); }
.wb-article > section { padding: 0 0 34px; scroll-margin-top: calc(var(--header) + 24px); }
.wb-article > section + section { padding-top: 30px; border-top: 1px solid var(--line); }
.wb-article .eyebrow { margin-bottom: 10px; }
.wb-article h2 { margin: 0 0 16px; }
.wb-article p, .wb-article li { color: #333; font-size: 1rem; line-height: 1.75; }
.wb-article p { max-width: 72ch; margin: 0 0 14px; white-space: pre-line; }
.wb-table-wrap { max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.wb-table-wrap:focus-visible { outline: 3px solid rgba(13, 102, 194, .35); outline-offset: 2px; }
.wb-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.wb-table th, .wb-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.wb-table tr:last-child > * { border-bottom: 0; }
.wb-table thead th { color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .02em; background: #f6f6f6; }
.wb-table tbody th { width: 38%; color: #3a3a3a; font-weight: 600; }
.wb-table td.wb-num { font-family: "JetBrains Mono", monospace; font-size: .82rem; white-space: nowrap; }
.wb-table tr.is-selected > * { background: var(--wb-tint); }
.wb-table-note { margin: 10px 0 0 !important; color: var(--muted) !important; font-size: .78rem !important; line-height: 1.5 !important; }
@media (min-width: 900px) {
  .wb-details-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 60px; }
  .wb-detail-nav { display: block; position: sticky; top: calc(var(--header) + 24px); }
}
@media (max-width: 679px) {
  .wb-details { padding: 28px 0 30px; }
  .wb-article p, .wb-article li { font-size: .96rem; line-height: 1.7; }
  .wb-table th, .wb-table td { padding: 10px 12px; }
}

/* ---------- related products ---------- */
.wb-related { padding: 40px 0 56px; }
.wb-related .section-head { margin-bottom: 20px; }
.wb-related .section-head h2 { margin: 0; }
.wb-related-group + .wb-related-group { margin-top: 30px; }
.wb-related-group h3 { margin: 0 0 4px; font-size: 1.12rem; }
.wb-related-group > p { margin: 0 0 12px; color: var(--muted); font-size: .84rem; line-height: 1.5; }
.wb-related-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin: 0; padding: 0; list-style: none; }
.wb-rel { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.wb-rel-media { position: relative; display: block; width: 96px; height: 96px; overflow: hidden; border-radius: 14px; background: #f1f1f1; }
.wb-rel-media img { width: 100%; height: 100%; object-fit: cover; }
.wb-rel-media.is-cutout img { object-fit: contain; padding: 8%; }
.wb-rel-copy { display: grid; gap: 3px; min-width: 0; }
.wb-rel-copy .card-kicker { color: var(--wb-blue); }
.wb-rel-copy strong { font-size: 1.02rem; line-height: 1.3; }
.wb-rel-copy small { color: #5b5b5b; font-size: .76rem; line-height: 1.4; }
.wb-rel:hover strong { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.wb-rel:focus-visible { outline: 3px solid rgba(13, 102, 194, .35); outline-offset: 3px; border-radius: 12px; }
@media (min-width: 680px) { .wb-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; } }
@media (min-width: 1100px) { .wb-related-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* not found */
.wb-not-found { display: grid; justify-items: start; gap: 14px; max-width: 620px; padding: 30px 0 60px; }
.wb-not-found h1 { margin: 0; }
.wb-not-found p { margin: 0; color: var(--muted); }

/* ---------- packshot framing (only the handful of genuinely transparent cutouts) ---------- */
.wb-page [data-wb-frame] > img.wb-fit { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: contain; padding: 16%; }
.wb-page [data-wb-frame].is-fitted > img.wb-fit { inset: auto; padding: 0; object-fit: fill; }

@media (prefers-reduced-motion: reduce) {
  .wb-page * { scroll-behavior: auto !important; }
}
