/* NemoScout shop. Look and feel follows the original store: navy, red accents, light type. */
:root {
  --navy: #20419a;
  --navy-dark: #18337a;
  --red: #d10b01;
  --text: #797676;
  --heading: #1e1e1e;
  --line: #e6e6e6;
  --soft: #fafafa;
  --footer: #191919;
  --radius: 27.5px;
  --sans: Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Open Sans", "Helvetica Neue", Arial, sans-serif;
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 300 16px/26px var(--sans); color: var(--text); background: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }
strong, b { font-weight: 500; color: #5f5c5c; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 300; color: var(--heading); line-height: 1.25; margin: 0 0 .6em; }
p { margin: 0 0 15px; }
[hidden] { display: none !important; }
button { font: inherit; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; margin-left: auto; margin-right: auto; }
.center { text-align: center; }
.right { text-align: right; }
.muted { color: #9a9898; }
.small { font-size: 13px; line-height: 20px; }
.visually-hidden, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }

/* Buttons */
.button {
  display: inline-block; border: 1px solid var(--navy); border-radius: var(--radius); background: #fff; color: var(--navy);
  font: 700 12px/1 var(--display); letter-spacing: 2px; text-transform: uppercase; padding: 15px 30px; cursor: pointer;
  text-decoration: none; transition: background .15s, color .15s;
}
.button:hover { background: var(--navy); color: #fff; text-decoration: none; }
.button-solid { background: var(--navy); color: #fff; }
.button-solid:hover { background: var(--navy-dark); }
.button-light { border-color: #fff; }
.button-light:hover { background: transparent; color: #fff; }
.button-disabled, .button:disabled { border-color: #bbb; color: #999; background: #f3f3f3; cursor: not-allowed; }
.button-wide { width: 100%; padding: 18px 30px; font-size: 13px; }
.link-button { background: none; border: 0; padding: 0; color: var(--text); text-decoration: underline; cursor: pointer; font-size: 13px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 92px; }
.logo img { width: 160px; }
.site-nav { margin-left: auto; }
.site-nav > ul { display: flex; gap: 34px; list-style: none; margin: 0; padding: 0; }
.site-nav li { position: relative; display: flex; align-items: center; }
.site-nav a { color: var(--navy); font-size: 12px; letter-spacing: 1px; padding: 34px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { text-decoration: none; border-bottom-color: var(--navy); }
.site-nav a.active { border-bottom-color: var(--navy); }
.dropdown-toggle { background: none; border: 0; padding: 4px; color: var(--navy); cursor: pointer; }
.dropdown { display: none; position: absolute; top: 100%; left: -20px; min-width: 240px; background: #fff; list-style: none;
  margin: 0; padding: 10px 0; border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(0,0,0,.06); }
.dropdown a { display: block; padding: 8px 20px; border: 0; }
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown, .has-dropdown.is-open .dropdown { display: block; }
.cart-link { position: relative; color: #333; padding-left: 24px; border-left: 1px solid var(--line); }
.cart-count { position: absolute; top: -8px; right: -12px; background: var(--red); color: #fff; font-size: 11px; line-height: 18px;
  min-width: 18px; text-align: center; border-radius: 9px; padding: 0 4px; font-weight: 500; }
.nav-toggle { display: none; background: none; border: 0; color: var(--navy); margin-left: auto; cursor: pointer; padding: 8px; }

/* Flash messages and notices */
.flashes { padding-top: 20px; }
.flash, .notice { padding: 12px 16px; border-radius: 4px; background: #eef2fb; color: #233a74; }
.flash-error, .form-error, .field-error { color: var(--red); }
.flash-error { background: #fdecea; }
.form-error { background: #fdecea; padding: 12px 16px; border-radius: 4px; }

/* Breadcrumbs and page titles */
.breadcrumbs { font-size: 12px; padding: 28px 0 0; color: #9a9898; }
.breadcrumbs a { color: #9a9898; }
.page-title { text-align: center; font-size: 36px; margin: 50px 0 40px; }
.section-title { text-align: center; font-size: 36px; margin: 0 0 10px; }
.section-subtitle { text-align: center; text-transform: uppercase; letter-spacing: 2px; font-size: 12px; margin-bottom: 50px; }
.rte { margin-bottom: 40px; }
.rte ul { padding-left: 20px; }
.rte li { margin-bottom: 6px; }
.rte h1, .rte h2, .rte h3, .rte h4 { margin-top: 1.4em; }
.rte img { margin: 20px auto; }
.rte table { width: 100%; border-collapse: collapse; }
.rte td, .rte th { vertical-align: top; padding: 4px 8px; }
.policy { font-size: 15px; }

/* Home: slides */
.slides { background: #f6f6f6; }
.slides-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; padding-top: 40px; padding-bottom: 40px; min-height: 420px; }
.slides-images { position: relative; }
.slide-image { display: none; margin: 0 auto; max-height: 420px; width: auto; }
.slide-image.is-active { display: block; }
.slide-dots { display: flex; gap: 12px; list-style: none; padding: 0; margin: 0 0 28px; }
.slide-dots button { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--red); background: #fff; color: var(--red);
  font-size: 12px; cursor: pointer; }
.slide-dots button.is-active { background: var(--red); color: #fff; }
.slide-title { font-size: 30px; }

/* Home: alternating blocks */
.alt-block { display: grid; grid-template-columns: 1fr 1fr; min-height: 560px; }
.alt-text { background: var(--navy); color: #fff; display: flex; align-items: center; }
.alt-text-inner { max-width: 600px; padding: 70px 60px; }
.alt-text h3 { color: #fff; font-size: 36px; }
.alt-text p { color: #fff; }
.alt-text strong { color: #fff; }
.alt-image { background-size: cover; background-position: center; min-height: 360px; }
.alt-image-left .alt-text { order: 2; }
.alt-image-left .alt-image { order: 1; }
.alt-image-right .alt-text { justify-content: flex-end; }

/* Home: product focus */
.focus { padding: 90px 0; }
.focus-grid { display: grid; grid-template-columns: 1fr 260px 1fr; gap: 50px; align-items: center; }
.focus-col { display: grid; gap: 60px; }
.focus-col:first-child { text-align: right; }
.focus-feature h4 { color: var(--red); font-size: 20px; }
.focus-image img { max-height: 560px; width: auto; margin: 0 auto; }

/* Product grid */
.featured { padding: 70px 0; background: var(--soft); }
.featured .button { margin-top: 30px; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 40px 30px; margin-bottom: 60px; }
.product-card { display: flex; flex-direction: column; align-items: center; text-align: center; color: var(--heading); }
.product-card:hover { text-decoration: none; }
.product-card-image { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 1; background: #fff; margin-bottom: 16px; overflow: hidden; }
.product-card-image img { max-height: 100%; object-fit: contain; transition: transform .25s; }
.product-card:hover img { transform: scale(1.04); }
.product-card-title { font-size: 15px; }
.product-card-price { color: var(--red); font-size: 13px; }
.product-card-price s, .product-price s { color: #9a9898; margin-right: 6px; }
.sold-out { color: #9a9898; font-style: normal; text-transform: uppercase; font-size: 11px; letter-spacing: 1px; }
.collection-list { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; list-style: none; padding: 0; margin: 0 0 70px; }
.search-form { display: flex; gap: 10px; justify-content: center; margin-bottom: 40px; }
.search-form input { width: min(420px, 100%); }

/* Video, testimonials, banner, app download */
.video { padding: 80px 0; text-align: center; }
.video-frame { position: relative; aspect-ratio: 16 / 9; margin-bottom: 26px; background: #000; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.testimonials { background: var(--soft); padding: 80px 0; }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.testimonial { margin: 0; background: #fff; padding: 34px 30px; border-top: 3px solid var(--red); }
.testimonial blockquote { margin: 0 0 16px; font-style: italic; }
.testimonial figcaption { color: var(--red); text-transform: uppercase; letter-spacing: 1px; font-size: 12px; }
.banner img { width: 100%; }
.app-download { padding: 80px 0; }
.app-badges { display: block; margin: 20px 0 30px; }

/* Product page */
.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; padding: 30px 0 60px; }
.gallery-main { display: flex; justify-content: center; align-items: center; aspect-ratio: 1; }
.gallery-main img { max-height: 100%; object-fit: contain; }
.gallery-thumbs { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 18px 0 0; justify-content: center; }
.gallery-thumbs button { width: 72px; height: 72px; padding: 4px; background: #fff; border: 1px solid var(--line); cursor: pointer; }
.gallery-thumbs button.is-active { border-color: var(--navy); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.product-title { font-size: 32px; margin-top: 10px; }
.product-price { color: var(--red); font-size: 22px; margin-bottom: 24px; }
.product-price small { color: #9a9898; font-size: 12px; }
.qty-row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 30px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.qty button { background: #fff; border: 0; width: 38px; height: 44px; cursor: pointer; color: var(--navy); font-size: 18px; }
.qty input { width: 46px; height: 44px; border: 0; text-align: center; font: inherit; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.tab-title { font: 700 12px/1 var(--display); letter-spacing: 2px; text-transform: uppercase; color: var(--heading);
  border-bottom: 1px solid var(--line); padding-bottom: 12px; margin: 10px 0 20px; }
.related { padding-bottom: 20px; }

/* Content pages */
.team-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 40px; margin: 30px 0 80px; }
.team-member { margin: 0; width: 240px; text-align: center; }
.team-member img { width: 240px; height: 300px; object-fit: cover; margin-bottom: 14px; filter: grayscale(100%); }
.team-member strong { display: block; color: var(--heading); font-weight: 400; }
.team-member span { font-size: 11px; letter-spacing: 2px; color: var(--red); }
.faq { margin-bottom: 80px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { cursor: pointer; padding: 18px 30px 18px 0; color: var(--heading); font-family: var(--display); font-size: 18px; position: relative; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 4px; top: 14px; color: var(--navy); font-size: 22px; }
.faq-item[open] summary::after { content: "–"; }
.faq-item .rte { margin-bottom: 18px; }
.contact-form { margin-bottom: 80px; }
.error-page { padding-bottom: 80px; }

/* Forms */
fieldset { border: 0; padding: 0; margin: 0 0 30px; min-width: 0; }
legend { font-family: var(--display); color: var(--heading); font-size: 20px; margin-bottom: 14px; padding: 0; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; font-size: 13px; color: #6b6969; flex: 1; }
.field-row { display: flex; gap: 14px; }
.field-row.three > .field { flex: 1; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=search], select, textarea, .card-field {
  font: 400 15px/1.3 var(--sans); color: #333; border: 1px solid #d6d6d6; border-radius: 4px; padding: 12px 12px; background: #fff; width: 100%;
}
.card-field { height: 46px; padding: 12px; }
.card-field.is-focus { border-color: var(--navy); }
.card-field.is-error { border-color: var(--red); }
.card-field.is-complete { border-color: #4a8f4a; }
textarea { resize: vertical; }
.checkbox { display: flex; gap: 10px; align-items: center; font-size: 14px; margin: 10px 0 16px; }

/* Cart */
.cart-table { width: 100%; border-collapse: collapse; margin-bottom: 30px; }
.cart-table th { font: 700 11px/1 var(--display); letter-spacing: 2px; text-transform: uppercase; color: var(--heading);
  text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--line); }
.cart-table td { padding: 18px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cart-table.compact td { padding: 10px 8px; }
.cart-image img { width: 90px; height: 90px; object-fit: contain; }
.cart-footer { text-align: right; margin-bottom: 80px; }
.cart-subtotal { font-size: 18px; color: var(--heading); }
.cart-actions { display: flex; gap: 14px; justify-content: flex-end; flex-wrap: wrap; }

/* Checkout */
.checkout-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; align-items: start; margin-bottom: 80px; }
.order-summary { background: var(--soft); border: 1px solid var(--line); padding: 30px; position: sticky; top: 120px; }
.order-summary h2 { font-size: 22px; }
.summary-lines { list-style: none; padding: 0; margin: 0 0 20px; }
.summary-lines li { display: flex; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.summary-image { position: relative; width: 60px; height: 60px; flex: none; background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.summary-image img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.badge { position: absolute; top: -8px; right: -8px; background: #777; color: #fff; font-size: 11px; line-height: 20px; min-width: 20px; text-align: center; border-radius: 10px; }
.summary-title { flex: 1; color: var(--heading); font-size: 14px; line-height: 20px; }
.summary-price { color: var(--heading); font-size: 14px; }
.totals { width: 100%; border-collapse: collapse; margin-bottom: 16px; }
.totals th { text-align: left; font-weight: 300; padding: 6px 0; }
.totals td { text-align: right; padding: 6px 0; color: var(--heading); }
.totals .grand th, .totals .grand td { border-top: 1px solid var(--line); padding-top: 14px; font-size: 18px; color: var(--heading); font-weight: 400; }
.rate { display: flex; align-items: center; gap: 12px; border: 1px solid #d6d6d6; border-radius: 4px; padding: 14px; margin-bottom: 8px; cursor: pointer; }
.rate:has(input:checked) { border-color: var(--navy); background: #f4f6fc; }
.rate-name { flex: 1; color: var(--heading); }
.rate-name small { display: block; color: #9a9898; }
.rate-price { color: var(--heading); }

/* Order page */
.order-detail { margin: 20px 0 40px; }
.order-addresses { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; margin-top: 20px; }
.order-addresses h3 { font-size: 16px; font-weight: 400; }

/* Admin */
.admin-filters a.active { font-weight: 500; text-decoration: underline; }
.status { display: inline-block; font: 700 10px/1 var(--display); letter-spacing: 1px; text-transform: uppercase; padding: 5px 8px; border-radius: 10px; background: #eee; color: #555; vertical-align: middle; }
.status-paid { background: #e3f1e3; color: #2f6b2f; }
.status-review { background: #fff1d6; color: #8a5a00; }
.status-fulfilled { background: #e3e9f8; color: var(--navy); }
.status-declined, .status-cancelled { background: #fdecea; color: var(--red); }
.admin-status { display: flex; gap: 12px; align-items: end; margin: 30px 0 10px; }
.admin-status select { width: auto; }

/* Footer */
.site-footer { background: var(--footer); color: #fff; margin-top: 0; }
.footer-inner { display: grid; grid-template-columns: 1fr 1.4fr 1fr 1fr; gap: 40px; padding-top: 60px; padding-bottom: 40px; }
.site-footer h4 { color: #fff; font: 700 12px/1 var(--display); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 18px; }
.site-footer p, .site-footer li { font-size: 14px; color: #ddd; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer a { color: #ddd; }
.footer-brand img { width: 170px; }
.footer-bottom { border-top: 1px solid #333; padding-top: 20px; padding-bottom: 20px; }
.footer-bottom p { margin: 0; font-size: 12px; color: #aaa; }

/* Responsive */
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); }
  .site-nav.is-open { display: block; }
  .site-nav > ul { flex-direction: column; gap: 0; padding: 10px 24px 20px; }
  .site-nav li { flex-wrap: wrap; }
  .site-nav a { padding: 12px 0; flex: 1; }
  .dropdown { position: static; display: none; border: 0; box-shadow: none; width: 100%; padding: 0 0 6px 14px; }
  .has-dropdown:hover .dropdown { display: none; }
  .has-dropdown.is-open .dropdown { display: block; }
  .cart-link { border-left: 0; padding-left: 0; }
  .header-inner { min-height: 70px; }
  .slides-inner, .alt-block, .product, .checkout-grid { grid-template-columns: 1fr; }
  .alt-image-left .alt-text, .alt-image-left .alt-image { order: initial; }
  .alt-text-inner { padding: 50px 24px; }
  .focus-grid { grid-template-columns: 1fr; text-align: center; }
  .focus-col:first-child { text-align: center; }
  .focus-image img { max-height: 380px; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .order-summary { position: static; order: -1; }
}
@media (max-width: 640px) {
  .page-title, .section-title, .alt-text h3 { font-size: 28px; }
  .field-row { flex-direction: column; gap: 0; }
  .cart-table thead { display: none; }
  .cart-table tr { display: grid; grid-template-columns: 90px 1fr; gap: 4px 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .cart-table td { border: 0; padding: 0; }
  .cart-table td[data-label]::before { content: attr(data-label) ": "; color: #9a9898; font-size: 12px; }
  .cart-table td.cart-image { grid-row: span 4; }
  .footer-inner { grid-template-columns: 1fr; }
}
