/* ==========================================================
   Refund Shopper Sale - style.css
   Bootstrap 5 does the layout (grid, buttons, forms).
   This file adds our one brand color, the font and a few extras.
   Change the brand color here, in the :root block.
   ========================================================== */

/* ---------- Colors and font ----------
   One brand color (lagoon teal) plus neutral greys: white, greys and near-black. */
:root {
  --brand: #0E7490;        /* THE brand color: buttons, links, highlights */
  --brand-dark: #0B5D74;   /* hover color for buttons */
  --brand-tint: #E6F4F7;   /* very light version of the brand color */
  --text: #10252B;         /* main text */
  --muted: #52676D;        /* secondary text */
  --line: #D7E6EA;         /* borders */
  --soft: #F3F9FA;         /* light grey sections */
  --deep: #0B2A33;         /* top bar and footer */
  --font: 'Geologica', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Tell Bootstrap to use our font and colors */
  --bs-body-font-family: var(--font);
  --bs-body-color: var(--text);
  --bs-body-bg: #FFFFFF;
  --bs-link-color: var(--brand);
  --bs-link-color-rgb: 14, 116, 144;
  --bs-link-hover-color: var(--brand-dark);
  --bs-link-hover-color-rgb: 11, 93, 116;
  --bs-border-color: var(--line);
  --bs-border-radius: 10px;
  --display: 'Geologica', system-ui, sans-serif;
}

/* ---------- Basics ---------- */
body { background: #FFFFFF; color: var(--text); font-family: var(--font); }
img { max-width: 100%; height: auto; }   /* photos keep their shape */
[hidden] { display: none !important; }   /* hidden things stay hidden, whatever other rules say */
h1, h2, h3, .h4 { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; }
h4, h5, h6, .h5, .h6 { font-weight: 700; }
h1 { font-size: clamp(30px, 4vw, 44px); }
h2 { font-size: clamp(22px, 2.4vw, 30px); }
.eyebrow { display: inline-block; font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--brand); margin-bottom: 6px; }
.eyebrow.light { color: #FFFFFF; opacity: 0.85; }
.text-brand { color: var(--brand); }
.small-note { font-size: 14px; color: var(--muted); }
.lead { color: var(--muted); }
.narrow { max-width: 820px; }
.see-all { font-weight: 700; text-decoration: none; }
.sub-title { font-size: 22px; margin: 8px 0 16px; }
figcaption { font-size: 12px; color: var(--muted); margin-top: 8px; }
figcaption a { color: inherit; }

/* ---------- Buttons: our brand version of Bootstrap's btn-primary ---------- */
.btn-brand {
  --bs-btn-color: #FFFFFF;
  --bs-btn-bg: var(--brand);
  --bs-btn-border-color: var(--brand);
  --bs-btn-hover-color: #FFFFFF;
  --bs-btn-hover-bg: var(--brand-dark);
  --bs-btn-hover-border-color: var(--brand-dark);
  --bs-btn-active-color: #FFFFFF;
  --bs-btn-active-bg: var(--brand-dark);
  --bs-btn-active-border-color: var(--brand-dark);
  font-weight: 700;
}
.btn { font-weight: 600; border-radius: 8px; }
.form-control:focus, .form-select:focus, .form-check-input:focus { border-color: var(--brand); box-shadow: 0 0 0 0.2rem rgba(14, 116, 144, 0.2); }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }

/* ---------- Top bar, header and menus ---------- */
.topbar { background: var(--deep); color: #BFDCE3; font-size: 13.5px; }
.topbar b { color: #FFFFFF; letter-spacing: 0.03em; }
.topbar a { color: #FFFFFF; font-weight: 700; text-decoration: none; }
.site-header { border-bottom: 1px solid var(--line); background: #FFFFFF; }
.logo { height: 38px; width: auto; }
.navbar .nav-link { color: var(--text); font-weight: 600; }
.navbar .nav-link:hover { color: var(--brand); }
.cart-count { background: #FFFFFF; color: var(--brand); margin-left: 4px; }
.dept-nav { border-top: 1px solid var(--line); background: #FFFFFF; }
.dept-nav .nav { overflow-x: auto; white-space: nowrap; scrollbar-width: thin; justify-content: space-between; }
.dept-nav .nav-link { color: var(--text); font-weight: 600; font-size: 14px; padding: 12px 10px; border-bottom: 3px solid transparent; }
.dept-nav .nav-link:hover { color: var(--brand); }
.dept-nav .nav-link.active { color: var(--brand); border-bottom-color: var(--brand); }
@media (max-width: 1199px) { .dept-nav .nav { justify-content: flex-start; } }
@media (max-width: 991px) { .logo { height: 28px; } }
@media (max-width: 575px) { .logo { height: 22px; } }

/* ---------- Homepage banner: text and photo in one row ---------- */
.hero { background: var(--brand); }
.hero-panel { display: flex; align-items: center; background: var(--brand); color: #FFFFFF; }
.hero-inner { padding: 56px 48px 56px calc((100vw - 720px) / 2 + 12px); }
@media (min-width: 992px) { .hero-inner { padding-left: calc((100vw - 960px) / 2 + 12px); } }
@media (min-width: 1200px) { .hero-inner { padding-left: calc((100vw - 1140px) / 2 + 12px); } }
@media (min-width: 1400px) { .hero-inner { padding-left: calc((100vw - 1320px) / 2 + 12px); } }
.hero h1 { font-size: clamp(34px, 4.2vw, 56px); line-height: 1.05; font-weight: 800; letter-spacing: -0.03em; color: #FFFFFF; }
.hero .lead { color: #FFFFFF; opacity: 0.9; }
.hero .btn-light { color: var(--brand); }
.hero .btn-outline-light:hover { color: var(--brand); }
.hero-code { margin: 22px 0 0; font-size: 15px; opacity: 0.9; }
.hero-code b { background: #FFFFFF; color: var(--brand); padding: 2px 8px; border-radius: 4px; letter-spacing: 0.04em; }
.hero-media { position: relative; min-height: 340px; }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.photo-credit { font-size: 12px; color: var(--muted); margin: 8px 0 0; }
.photo-credit a { color: inherit; }
.hero-media .photo-credit { position: absolute; right: 10px; bottom: 8px; margin: 0; background: rgba(255, 255, 255, 0.88); color: var(--text); padding: 2px 8px; border-radius: 4px; }
@media (max-width: 767px) { .hero-inner { padding: 40px 20px; } .hero-media { min-height: 0; aspect-ratio: 16 / 10; } }

/* ---------- Promise strip ---------- */
.promise-band { background: var(--deep); color: #FFFFFF; }
.promise { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: baseline; }
.promise-no { grid-row: span 2; font-family: var(--display); font-weight: 800; font-size: 22px; color: #7FC8DA; }
.promise b { font-size: 15.5px; }
.promise small { color: #B9D3DA; font-size: 13px; }

/* ---------- Department bento grid ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 190px; gap: 14px; }
.bento-tile { position: relative; display: block; background: var(--soft); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; text-decoration: none; color: var(--text); }
.bento-tile img { mix-blend-mode: multiply; position: absolute; right: 8px; bottom: 8px; width: 58%; height: 72%; object-fit: contain; transition: transform 0.2s; }
.bento-text { position: absolute; left: 16px; top: 14px; right: 16px; }
.bento-text b { display: block; font-family: var(--display); font-size: 18px; line-height: 1.2; }
.bento-text small { color: var(--muted); font-size: 13px; }
.bento-big { grid-column: span 2; grid-row: span 2; background: var(--brand-tint); }
.bento-big img { width: 66%; height: 74%; }
.bento-big .bento-text b { font-size: 28px; }
.bento-tile:hover { border-color: var(--brand); }
.bento-all { grid-column: span 2; background: var(--brand); border-color: var(--brand); color: #FFFFFF; }
.bento-all small { color: #FFFFFF; opacity: 0.85; }
.bento-all em { position: absolute; left: 16px; bottom: 14px; font-style: normal; font-weight: 700; }
.bento-all:hover { background: var(--brand-dark); color: #FFFFFF; }
.bento-tile:hover img { transform: scale(1.04); }
@media (max-width: 991px) { .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; } }
@media (max-width: 575px) { .bento { gap: 10px; grid-auto-rows: 150px; } .bento-big { grid-row: span 1; } .bento-big .bento-text b { font-size: 20px; } .bento-text b { font-size: 15.5px; } .bento-tile img { width: 50%; height: 60%; } }

/* ---------- Product list view ---------- */
.list-item { display: grid; grid-template-columns: 96px 1fr auto; gap: 16px; align-items: center; background: #FFFFFF; border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px 12px 12px; height: 100%; }
.list-img img { width: 96px; height: 96px; object-fit: contain; }
.list-body { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.list-name { color: var(--text); text-decoration: none; font-weight: 600; font-size: 14.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.list-name:hover { color: var(--brand); }
.list-note { font-size: 12.5px; color: var(--muted); }
.list-buy { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.list-buy .price { font-size: 21px; }
.list-buy .btn { white-space: nowrap; }
@media (max-width: 575px) { .list-item { grid-template-columns: 72px 1fr; } .list-img img { width: 72px; height: 72px; } .list-buy { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 10px; } }

/* ---------- How a refund works ---------- */
.refund-band { background: var(--brand-tint); }
.rsteps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: none; }
.rstep { position: relative; background: #FFFFFF; border-radius: 10px; padding: 22px 20px; border: 1px solid var(--line); }
.rstep-no { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #FFFFFF; font-weight: 800; margin-bottom: 12px; }
.rstep b { display: block; font-family: var(--display); font-size: 18px; margin-bottom: 4px; }
.rstep p { margin: 0; color: var(--muted); font-size: 14.5px; }
.rstep:not(:last-child)::after { content: ""; position: absolute; top: 39px; right: -17px; width: 18px; height: 2px; background: var(--brand); }
@media (max-width: 991px) { .rsteps { grid-template-columns: repeat(2, 1fr); } .rstep::after { display: none; } }
@media (max-width: 575px) { .rsteps { grid-template-columns: 1fr; } }

/* ---------- Membership split ---------- */
.member-split { display: grid; grid-template-columns: 5fr 7fr; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.member-left { background: var(--deep); color: #FFFFFF; padding: 36px; }
.member-left p { opacity: 0.85; }
.member-perks { list-style: none; padding: 0; margin: 18px 0 0; }
.member-perks li { padding: 8px 0 8px 28px; border-top: 1px solid rgba(255, 255, 255, 0.14); position: relative; }
.member-perks li::before { content: "✓"; position: absolute; left: 4px; color: #7FC8DA; font-weight: 800; }
.member-right { background: #FFFFFF; padding: 36px; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.member-option { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; }
.member-option b { display: block; font-family: var(--display); font-size: 18px; }
.member-option span small { color: var(--muted); font-size: 13.5px; }
.member-option strong { font-size: 24px; color: var(--brand); white-space: nowrap; }
.member-option strong small { font-size: 13px; color: var(--muted); font-weight: 600; }
@media (max-width: 991px) { .member-split { grid-template-columns: 1fr; } }
@media (max-width: 575px) { .member-left, .member-right { padding: 24px 18px; } .member-option { grid-template-columns: 1fr auto; } .member-option .btn { grid-column: 1 / -1; } }

/* ---------- Homepage blog: photo with overlay title ---------- */
.ov-post { position: relative; display: block; border-radius: 10px; overflow: hidden; text-decoration: none; }
.ov-post img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: transform 0.25s; }
.ov-body { position: absolute; inset: auto 0 0 0; padding: 60px 18px 18px; background: linear-gradient(180deg, rgba(11, 42, 51, 0) 0%, rgba(11, 42, 51, 0.88) 60%); color: #FFFFFF; }
.ov-meta { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.85; }
.ov-body b { display: block; font-family: var(--display); font-size: 20px; line-height: 1.22; margin-top: 4px; }
.ov-post:hover img { transform: scale(1.03); }

/* ---------- Help card ---------- */
.help-card { border: 2px solid var(--brand); border-radius: 12px; padding: 24px; position: sticky; top: 20px; }
.help-card b { font-family: var(--display); font-size: 20px; }
.help-card p { color: var(--muted); font-size: 14.5px; margin: 6px 0 14px; }
.help-line { display: block; font-size: 24px; font-weight: 800; color: var(--brand); text-decoration: none; }
.help-mail { display: block; font-weight: 600; margin-top: 10px; word-break: break-all; }
.help-sub { display: block; font-size: 13px; color: var(--muted); }
.about-benefit { border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; height: 100%; }
.about-benefit b { display: block; }
.about-benefit span { color: var(--muted); font-size: 14px; }
.btn-outline-brand { --bs-btn-color: var(--brand); --bs-btn-border-color: var(--brand); --bs-btn-hover-color: #FFFFFF; --bs-btn-hover-bg: var(--brand); --bs-btn-hover-border-color: var(--brand); --bs-btn-active-bg: var(--brand-dark); --bs-btn-active-color: #FFFFFF; }

/* ---------- Product cards ---------- */
.product-card { border-radius: 10px; overflow: hidden; }
.product-card:hover { box-shadow: 0 12px 26px rgba(11, 42, 51, 0.10); }
.card-photo { display: block; background: #FFFFFF; padding: 14px; border-bottom: 1px solid var(--line); }
.card-photo img { aspect-ratio: 1; object-fit: contain; }
.product-card .card-body { gap: 6px; }
.card-dept { font-size: 12px; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: 0.04em; }
.card-title { color: var(--text); text-decoration: none; font-weight: 600; font-size: 14.5px; line-height: 1.4; min-height: 2.8em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-title:hover { color: var(--brand); }
.card-note { font-size: 13px; color: var(--muted); }
.price { font-size: 24px; font-weight: 800; }
.price sup { font-size: 0.5em; top: -0.8em; }
.plan-art { aspect-ratio: 1; display: grid; place-content: center; text-align: center; gap: 4px; background: var(--brand); color: #FFFFFF; border-radius: 8px; padding: 12px; }
.plan-art b { font-size: 18px; }
@media (max-width: 575px) { .price { font-size: 20px; } .card-photo { padding: 8px; } }

/* ---------- Soft band and FAQ ---------- */
.soft-band { background: var(--soft); }
.accordion { --bs-accordion-active-bg: var(--brand-tint); --bs-accordion-active-color: var(--brand); --bs-accordion-btn-focus-box-shadow: 0 0 0 0.2rem rgba(14, 116, 144, 0.2); }
.accordion-button { font-weight: 700; }
.faq-item { border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; margin-bottom: 8px; }
.faq-item summary { font-weight: 700; cursor: pointer; }
.faq-item p { margin: 10px 0 0; color: var(--muted); }

/* ---------- Blog ---------- */
.post-card { text-decoration: none; color: var(--text); border-radius: 8px; overflow: hidden; }
.post-card:hover { border-color: var(--brand); }
.post-card img { aspect-ratio: 3 / 2; object-fit: cover; }
.post-meta { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--brand); }
.article h2 { font-size: 22px; margin-top: 26px; }

/* ---------- Newsletter ---------- */
.newsletter { background: var(--brand-tint); color: var(--text); border-top: 1px solid var(--line); }
.newsletter .eyebrow.light { color: var(--brand); opacity: 1; }
.newsletter p { color: var(--muted); }
.newsletter .btn-dark { background: var(--brand); border-color: var(--brand); }
.newsletter .btn-dark:hover { background: var(--brand-dark); border-color: var(--brand-dark); }

/* ---------- Footer ---------- */
.site-footer { background: var(--deep); color: #B2CCD3; font-size: 14.5px; }
.site-footer h4 { color: #FFFFFF; font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: #B2CCD3; text-decoration: none; }
.site-footer a:hover { color: #FFFFFF; text-decoration: underline; }
.footer-logo { height: 32px; width: auto; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 13px; }

/* ---------- Department page listings ---------- */
.listing { border-radius: 8px; scroll-margin-top: 16px; }
.listing:target { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }
.listing-img { background: #FFFFFF; border-radius: 8px; }
.listing-img img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.listing-title { font-size: 19px; font-weight: 700; line-height: 1.35; letter-spacing: 0; margin: 4px 0 8px; }
.features { padding-left: 18px; font-size: 14.5px; }
.features li { margin-bottom: 5px; }
.listing summary { cursor: pointer; font-weight: 700; color: var(--brand); }
.buy-box { border: 1px solid var(--line); border-radius: 8px; padding: 16px; }
.stock { font-weight: 700; margin: 4px 0 12px; }
@media (max-width: 767px) { .listing-img { max-width: 180px; margin: 0 auto; } .listing-title { font-size: 16px; } }

/* ---------- Order progress steps ---------- */
.steps { list-style: none; display: flex; align-items: center; gap: 10px; padding: 4px 0 14px; margin: 0; flex-wrap: wrap; }
.steps li { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--muted); font-size: 14.5px; }
.steps li + li::before { content: ""; width: 36px; height: 2px; background: var(--line); }
.steps span { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); font-size: 13px; }
.steps li.on { color: var(--text); }
.steps li.on span { background: var(--brand); border-color: var(--brand); color: #FFFFFF; }
.steps li.done span { border-color: var(--brand); color: var(--brand); }
.steps li.done + li::before, .steps li.on::before { background: var(--brand); }
@media (max-width: 480px) { .steps { gap: 6px; flex-wrap: nowrap; } .steps li { font-size: 13px; gap: 6px; } .steps li + li::before { width: 14px; } }

/* ---------- Cart, checkout and summary ---------- */
.summary { overflow-anchor: none; border: 1px solid var(--line); border-radius: 8px; padding: 18px; position: sticky; top: 16px; background: #FFFFFF; }
.sum-row { padding: 6px 0; gap: 12px; }
.sum-row.good { font-weight: 600; }
.sum-row.total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; font-weight: 800; font-size: 18px; }
.promo-msg { color: var(--brand); font-size: 13.5px; margin: 6px 0 0; }
.promo-on { font-weight: 600; font-size: 14px; margin-top: 10px; }
.mini-lines { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 10px; }
.mini-lines .mini-line { font-size: 13.5px; color: var(--muted); padding: 3px 0; }
.cart-line { display: grid !important; grid-template-columns: 80px minmax(0, 1fr) auto; gap: 14px; align-items: center; border-radius: 8px; }
.cart-line img { width: 80px; height: 80px; object-fit: contain; background: #FFFFFF; border-radius: 8px; }
.cart-name { font-weight: 700; color: var(--text); text-decoration: none; display: block; }
.qty-row { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.qty-row button:not(.link-button) { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: #FFFFFF; color: var(--text); cursor: pointer; font-size: 16px; line-height: 1; }
.link-button { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--brand); text-decoration: underline; cursor: pointer; }
.radio { border: 1px solid var(--line); border-radius: 8px; padding: 12px; margin-bottom: 8px; cursor: pointer; }
.invalid { border-color: var(--brand) !important; }
.form-error { color: var(--brand); font-weight: 700; }
@media (max-width: 991px) { .summary { position: static; } }

/* ---------- Panels (forms and contact box) ---------- */
.panel { border: 1px solid var(--line); border-radius: 8px; padding: 22px; background: #FFFFFF; }
.panel-dark { background: var(--deep); color: #D3E4E8; border: 0; }
.panel-dark a, .panel-dark b { color: #FFFFFF; }

/* ---------- Cart panel (Bootstrap offcanvas, opened by cart.js) ---------- */
.offcanvas { --bs-offcanvas-width: 400px; }
.mini-notice { margin: 0 0 6px; padding: 10px 12px; border-radius: 8px; background: var(--brand-tint); color: var(--brand); font-weight: 700; font-size: 14px; }
.mini-lines-list .mini-line { display: grid !important; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.mini-lines-list .mini-line img { width: 56px; height: 56px; object-fit: contain; background: #FFFFFF; border-radius: 8px; border: 1px solid var(--line); }
.mini-lines-list .mini-line a { color: var(--text); font-weight: 600; font-size: 14px; text-decoration: none; display: block; }
.mini-empty { color: var(--muted); }

/* ---------- Pop-up message ---------- */
.message { position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 140%); background: var(--deep); color: #FFFFFF; padding: 12px 18px; border-radius: 8px; font-size: 14.5px; transition: transform 0.25s; z-index: 1100; max-width: calc(100% - 32px); visibility: hidden; }
.message.show { transform: translate(-50%, 0); visibility: visible; }


