/* ====== Responsive Root ====== */
html {
  font-size: clamp(14px, 1.1vw, 20px);
}

/* ====== General Styles ====== */
body {
  margin: 0;
  font-family: sans-serif;
  background-color: #ffffff;
  color: #111111;
}

/* ====== Navigation Bar (Logo above links) ====== */
.nav-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.95rem 1.25rem 0;
  background: #f5f5f5;
  border-bottom: 0.125rem solid #111;
  position: relative;
}

/* Logo section (centered on top) */
.nav-logo {
  margin-bottom: 0.3rem;
}

.nav-logo .logo img {
  height: 4.25rem;
  max-height: 4.25rem;
  width: auto;
  display: block;
}

/* Links row (nav links + cart) */
.nav-links-row {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  position: relative;
  padding-bottom: 0.75rem;
}

/* Center section (Navigation links) */
.nav-center {
  display: flex;
  justify-content: center;
  gap: 1.55rem;
}

.nav-center a {
  color: #111;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  background: #e8e8e8;
  padding: 0.5rem 1.25rem;
  border-radius: 3.125rem;
  transition: background 0.2s, color 0.2s;
}

.nav-center a:hover {
  background: #111;
  color: #fff;
}

/* Right section (Cart) */
.nav-right {
  position: absolute;
  right: 1.25rem;
}

.nav-right .cart-icon {
  color: #111;
  position: relative;
  text-decoration: none;
  background: none;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  transition: transform 0.2s;
  display: flex;
  align-items: center;
}

.nav-right .cart-icon .cart-img {
  height: 3.375rem;
  width: auto;
}

.nav-right .cart-icon:hover {
  transform: scale(1.1);
}

/* Cart count badge */
.nav-right .cart-icon .cart-count {
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  background: #111;
  color: #fff;
  font-size: 0.7em;
  padding: 0.125rem 0.375rem;
  border-radius: 50%;
  font-weight: bold;
}

.nav-right .cart-icon .cart-count:empty {
  display: none;
}

/* ====== Hero / Home Section ====== */
.hero {
  text-align: center;
  padding: 3.125rem 1.25rem;
}

/* ====== Launch sale (homepage banner + note under product prices) ====== */
.sale-banner {
  background: #111;
  color: #fff;
  text-align: center;
  padding: 1.5rem 1.25rem 1.75rem;
}

.sale-banner h2 {
  color: #fff;
  font-size: 2em;
  margin: 0.4rem 0 0.5rem;
}

.sale-banner p {
  margin: 0 0 1.1rem;
  font-size: 1.1em;
}

.sale-banner-tag {
  display: inline-block;
  background: #cc2222;
  padding: 0.2rem 0.8rem;
  border-radius: 3.125rem;
  font-size: 0.8em;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Slim one-line version of the banner (Tunes page) */
.sale-strip {
  background: #111;
  color: #fff;
  text-align: center;
  padding: 0.65rem 1rem;
  margin-bottom: 1.25rem;
  font-size: 1.05em;
  line-height: 1.6;
}

.sale-strip .sale-banner-tag {
  margin-right: 0.5rem;
  vertical-align: 0.1em;
}

/* "Limited time" tag + the info icon at its top-right corner */
.sale-banner-tagline {
  position: relative;
  display: inline-block;
}

.sale-info {
  position: absolute;
  top: -0.6rem;
  right: -1.3rem;
}

.sale-info-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.2rem;
  height: 1.2rem;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #111;
  color: #fff;
  font: italic bold 0.75rem/1 Georgia, "Times New Roman", serif;
  cursor: pointer;
}

.sale-info-btn:hover,
.sale-info-btn:focus-visible,
.sale-info--open .sale-info-btn {
  background: #fff;
  color: #111;
}

/* The pop-up: next to the icon, shown on hover (desktop) or tap (sale-info--open, set by the
   script on index.html) */
.sale-info-pop {
  position: absolute;
  left: calc(100% + 0.6rem);
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: max-content;
  max-width: 14rem;
  padding: 0.55rem 0.75rem;
  background: #fff;
  color: #111;
  border-radius: 0.5rem;
  box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.35);
  font-size: 0.85rem;
  font-weight: normal;
  line-height: 1.35;
  text-align: left;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s, visibility 0.15s;
  pointer-events: none;
}

/* Little arrow pointing at the icon */
.sale-info-pop::before {
  content: "";
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 0.35rem solid transparent;
  border-right-color: #fff;
}

.sale-info:hover .sale-info-pop,
.sale-info--open .sale-info-pop {
  opacity: 1;
  visibility: visible;
}

/* Phones: not enough room to the right, so the pop-up opens below the icon instead */
@media (max-width: 600px) {
  .sale-info-pop {
    left: auto;
    right: -0.4rem;
    top: calc(100% + 0.6rem);
    transform: none;
  }

  .sale-info-pop::before {
    right: 0.6rem;
    top: auto;
    bottom: 100%;
    transform: none;
    border-right-color: transparent;
    border-bottom-color: #fff;
  }
}

.sale-banner-btn {
  display: inline-block;
  padding: 0.6rem 1.6rem;
  background: #fff;
  color: #111;
  border-radius: 3.125rem;
  font-weight: bold;
  text-decoration: none;
}

.sale-banner-btn:hover {
  opacity: 0.85;
}

.price-was {
  color: #999;
  font-weight: normal;
  margin-right: 0.35rem;
}

.sale-note {
  margin-top: 0.4rem;
  text-align: center;
  color: #cc2222;
  font-weight: bold;
}

.sale-note s {
  color: #777;
  font-weight: normal;
}

/* Text for Google and screen readers only - not shown on screen (used for page headings that
   would otherwise change the design, e.g. the <h1> on the Tunes and tune pages) */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ====== Section Titles ====== */
h2 {
  text-align: center;
  margin-bottom: 1.25rem;
  color: #111;
}

/* ====== Reviews Cards ====== */
.review-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: center;
}

.review-card {
  position: relative;
  width: 18.75rem;
  height: 18.75rem;
  background-size: cover;
  background-position: center;
  border-radius: 0.625rem;
  overflow: hidden;
  box-shadow: 0 0 0.625rem rgba(0,0,0,0.2);
  transition: transform 0.2s, box-shadow 0.2s;
}

.review-card:hover {
  transform: scale(1.03);
  box-shadow: 0 0 0.95rem rgba(0,0,0,0.3);
}

.review-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.review-content {
  position: absolute;
  inset: 0;
  color: #fff;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.review-content h3 {
  margin: 0 0 0.625rem 0;
  font-size: 1.2em;
}

.review-purchased {
  font-size: 0.75em;
  opacity: 0.8;
  font-style: italic;
}

.review-content p {
  font-size: 1em;
}

/* ====== Add to Cart Button (MS4x tune pages) ====== */
#add-to-cart {
  background: #e8e8e8 !important;
  color: #111 !important;
  font-weight: bold;
  font-size: 1.1em;
  padding: 0.5rem 1.5rem !important;
  border: none;
  border-radius: 3.125rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  margin-top: 1rem !important;
}

#add-to-cart:hover {
  background: #111 !important;
  color: #fff !important;
}

#add-to-cart.disabled-btn {
  background: #ccc !important;
  color: #666 !important;
  cursor: not-allowed;
}

/* ====== Product cards (Tunes page + Shop page) ======
   Phones/tablets: 2 per row. Desktop (768px+): 3 per row. Every card is the same size and
   scales with the window, stopping at ~340px wide. Cards left over in the last row are
   centered, still at the same size.
   How: the grid has two narrow columns per card (4 for 2-per-row, 6 for 3-per-row) and each
   card spans two, so a leftover card can start half a card in and sit centered. */
.products {
  --card-gap: clamp(0.75rem, 2vw, 1.5rem);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 1fr; /* every row as tall as the tallest card, so all cards match */
  gap: var(--card-gap);
  max-width: 700px;
  margin: 0 auto;
  padding: 0 1rem;
}

.products .product {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  background: #f0f0f0;
  border-radius: 10px;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

/* 2 per row: a lone last card moves half a card in, to the middle */
.products .product:last-child:nth-child(odd) {
  grid-column: 2 / span 2;
}

/* Desktop: 3 per row */
@media (min-width: 768px) {
  .products {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    max-width: 1070px;
  }

  .products .product:last-child:nth-child(odd) {
    grid-column: span 2; /* undo the 2-per-row centering */
  }

  /* One card left over in the last row: centered */
  .products .product:nth-child(3n+1):last-child {
    grid-column: 3 / span 2;
  }

  /* Two left over: the pair is centered (the second one follows the first) */
  .products .product:nth-child(3n+1):nth-last-child(2) {
    grid-column: 2 / span 2;
  }
}

.products .product:hover {
  transform: scale(1.03);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

/* The whole card is the link; always black, never the browser's visited-link purple */
.products .product a,
.products .product a:visited,
.products .product a:hover,
.products .product a:active {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding-bottom: 0.4rem;
  color: #111;
  text-decoration: none;
}

/* Picture scales with the card and is never cropped */
.products .product img {
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  object-fit: contain;
  background: #fff;
  border-radius: 10px 10px 0 0;
}

/* Card picture text: a picture darkened slightly, with white text centred on top of it.
   <div class="product-media product-media--dark"> <img> <div class="product-media-text">
   <span class="product-media-title">..</span> <span class="product-media-sub">..</span> </div></div> */
.product-media {
  position: relative;
}

.products .product .product-media img {
  display: block;
}

.product-media--dark img {
  filter: brightness(0.6);
}

.product-media-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.75rem 1rem;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.75);
  pointer-events: none;
}

.product-media-title {
  font-size: clamp(1.1em, 2.4vw, 1.6em);
  font-weight: bold;
  letter-spacing: 0.02em;
}

.product-media-sub {
  max-width: 22rem;
  font-size: clamp(0.68em, 1.25vw, 0.92em);
  line-height: 1.35;
}

.products .product h3 {
  font-size: clamp(1.1em, 1.8vw, 1.35em);
  margin: 0.9rem 0 0.4rem;
  padding: 0 1rem;
}

/* Card text (the price, and any description lines added under it) */
.products .product p {
  font-size: clamp(0.95em, 1.4vw, 1.1em);
  line-height: 1.4;
  margin: 0 0 0.8rem;
  padding: 0 1rem;
}

/* Phones: tighter text padding so the narrower cards still fit their text */
@media (max-width: 500px) {
  .products {
    padding: 0 0.6rem;
  }

  .products .product h3,
  .products .product p {
    padding: 0 0.5rem;
  }

  /* Text on a darkened picture: less padding so the model list fits the small picture */
  .product-media-text {
    gap: 0.2rem;
    padding: 0.4rem 0.5rem;
  }
}

/* Tunes page (<section class="products products--tunes">) on phones: all card text 15% larger
   than the normal sizes above - each is the same clamp() x 1.15 */
@media (max-width: 767px) {
  .products--tunes .product h3 {
    font-size: calc(1.15 * clamp(1.1em, 1.8vw, 1.35em));
  }

  .products--tunes .product p {
    font-size: calc(1.15 * clamp(0.95em, 1.4vw, 1.1em));
  }

  .products--tunes .product-media-title {
    font-size: calc(1.15 * clamp(1.1em, 2.4vw, 1.6em));
  }

  .products--tunes .product-media-sub {
    font-size: calc(1.15 * clamp(0.68em, 1.25vw, 0.92em));
  }
}

/* ====== DME guide ("Which DME do I have?" page, shop/which-dme.html) ====== */
.dme-guide {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 1.25rem;
  line-height: 1.5;
}

.dme-guide h1 {
  text-align: center;
  margin-bottom: 0.5rem;
}

.dme-guide h2 {
  margin: 2rem 0 0.5rem;
}

.dme-guide-intro {
  text-align: center;
  color: #555;
  max-width: 750px;
  margin: 0 auto 1.75rem;
}

.dme-guide-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.dme-guide-card {
  display: flex;
  flex-direction: column;
  background: #f0f0f0;
  border-radius: 10px;
  padding: 1.25rem 1.25rem 1.5rem;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.dme-guide .dme-guide-card h2 {
  margin: 0 0 0.25rem;
}

.dme-guide-engine {
  margin: 0 0 0.75rem;
  text-align: center;
  color: #555;
  font-weight: bold;
}

.dme-guide-card ul {
  flex: 1;
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
}

.dme-guide-card li {
  margin-bottom: 0.3rem;
}

.dme-guide-card .dme-guide-btn {
  align-self: center;
}

.dme-guide-btn {
  display: inline-block;
  padding: 0.55rem 1.4rem;
  background: #111;
  color: #fff;
  border: 2px solid #111;
  border-radius: 3.125rem;
  font-weight: bold;
  text-decoration: none;
}

.dme-guide-btn:hover {
  opacity: 0.85;
}

.dme-guide-btn--alt {
  background: #fff;
  color: #111;
}

.dme-guide-steps li {
  margin-bottom: 0.75rem;
}

.dme-guide-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* Phones: 2x2 - four narrow columns, each card spans two, so a lone card on the last row
   (MS45) can sit centred at the same size */
@media (max-width: 767px) {
  .dme-guide-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .dme-guide-card {
    grid-column: span 2;
    padding: 0.9rem 0.75rem 1.1rem;
    font-size: 0.92em;
  }

  .dme-guide-card:last-child:nth-child(odd) {
    grid-column: 2 / span 2;
  }

  .dme-guide-card ul {
    padding-left: 1rem;
  }

  .dme-guide-card .dme-guide-btn {
    padding: 0.45rem 1rem;
  }
}

/* Small "Not sure which DME?" link under the Tunes page description */
.dme-guide-link {
  text-align: center;
  margin: -1rem auto 1.75rem;
}

/* ====== Contact Form ====== */
.contact {
  max-width: 31.25rem;
  margin: 2.5rem auto;
  padding: 0 1.25rem;
  text-align: center;
}

.contact-message-box {
  background: #f0f0f0;
  border-radius: 0.625rem;
  box-shadow: 0 0 0.625rem rgba(0,0,0,0.1);
  padding: 1.25rem;
  margin-top: 1.25rem;
}

.contact-message-box h3 {
  margin: 0 0 0.5rem;
}

.contact-message-box .contact-email {
  font-size: 1.15em;
  font-weight: bold;
  margin: 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 0.625rem;
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
  min-height: 8rem;
}

.contact-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.contact-send-btn {
  align-self: center;
  background: #cc2222;
  color: #fff;
  font-weight: bold;
  padding: 0.6rem 1.5rem;
  border: none;
  border-radius: 3.125rem;
  cursor: pointer;
  transition: background 0.2s;
}

.contact-send-btn:hover {
  background: #a51b1b;
}

.contact-send-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.contact-status {
  text-align: center;
  font-weight: bold;
  margin: 0;
}

.contact-status--success {
  color: #1a7a1a;
}

.contact-status--error {
  color: #cc2222;
}

.social-section {
  margin-top: 2rem;
}

.social-heading {
  margin-bottom: 0.75rem;
}

.social-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  padding: 0 0.625rem;
}

.social-card {
  flex: 1 1 12.5rem;
  max-width: 16.25rem;
  background: #f0f0f0;
  border-radius: 0.625rem;
  padding: 1.5625rem 1.25rem;
  text-align: center;
  box-shadow: 0 0 0.625rem rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: #111;
}

.social-card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 0.9375rem rgba(0,0,0,0.2);
}

.social-card .social-icon {
  width: 2.5rem;
  height: 2.5rem;
  margin: 0 auto 0.625rem auto;
  display: block;
  fill: #111;
}

.social-card .social-platform {
  font-size: 1.3em;
  font-weight: bold;
  margin-bottom: 0.375rem;
}

.social-card .social-handle {
  font-size: 0.95em;
  color: #555;
}

/* The social boxes above are the one design used on the Media page, the contact page and under
   the homepage FAQ - change them here and all three follow. */

/* Contact page: the section breaks out of the narrow contact column (centred, up to 44rem)
   so the two boxes fit side by side */
.contact .social-section {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  width: min(44rem, calc(100vw - 2rem));
}

.contact .social-heading {
  font-size: 1.75em;
}

/* Homepage: the "Follow Us" section under the FAQ */
.home-socials {
  max-width: 800px;
  margin: 3rem auto;
  padding: 0 1.25rem;
}

.home-socials-description {
  text-align: center;
  color: #555;
  margin: -0.5rem auto 1.5rem;
}

/* Phones: still two boxes side by side */
@media (max-width: 31.25rem) {
  .social-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .social-card {
    max-width: none;
    width: auto;
  }
}

/* ====== Cart / Checkout ====== */
.cart ul {
  list-style: none;
  padding: 0 0 0 2rem;
}

.cart ul li > strong {
  font-size: 1.2em;
  font-weight: 900;
}

.cart .cart-options {
  margin: 0.3rem 0 0.5rem 1rem;
  font-size: 0.95em;
  color: #333;
}

.cart .cart-option-label {
  font-weight: 600;
}

.cart .cart-option-choice {
  font-weight: 400;
}

.cart .cart-total-line {
  font-size: 1.2em;
  padding-left: 2rem;
}

.cart .cart-total-label {
  font-weight: 900;
}

.cart #cart-total {
  font-weight: 500;
}

.cart .cart-regular-price {
  margin-left: 0.5rem;
  color: #777;
}

.cart .cart-savings-line {
  margin-top: -0.5rem;
  padding-left: 2rem;
  color: #cc2222;
  font-weight: bold;
}

.cart ul li > button {
  background: #cc2222;
  color: #fff;
  font-weight: bold;
  font-size: 0.9em;
  padding: 0.4rem 1.1rem;
  border: none;
  border-radius: 3.125rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  margin-top: 0.5rem;
}

.cart ul li > button:hover {
  background: #991111;
}

.cart #checkout {
  background: #e8e8e8;
  color: #111;
  font-weight: bold;
  font-size: 1.1em;
  padding: 0.625rem 1.875rem;
  border: none;
  border-radius: 3.125rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.cart #checkout:hover {
  background: #111;
  color: #fff;
}

/* ====== Footer ====== */
footer {
  text-align: center;
  padding: 1.25rem;
  background: #f5f5f5;
  margin-top: 2.5rem;
  border-top: 0.125rem solid #111;
  color: #111;
}

/* ====== Responsive Header & Layout ====== */
@media (max-width: 600px) {
  html {
    font-size: 14px;
  }

  .nav-logo .logo img {
    height: 3.125rem;
    max-height: 3.125rem;
  }

  .nav-links-row {
    flex-direction: column;
    gap: 0.625rem;
  }

  .nav-center {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.625rem;
    justify-content: center;
  }

  .nav-links-row {
    position: static;
  }

  .nav-right {
    position: absolute;
    top: 0.95rem;
    right: 1.25rem;
  }

  .nav-right .cart-icon {
    font-size: 1.4em;
  }
}


/* ====== Responsive Reviews ====== */
@media (max-width: 700px) {
  .review-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .review-card {
    width: auto;
    height: auto;
    aspect-ratio: 1 / 1;
  }
}

/* ====== Legal Pages ====== */
.legal {
  max-width: 46rem;
  margin: 2.5rem auto;
  padding: 0 1.25rem;
  line-height: 1.6;
}

.legal h2 {
  text-align: center;
}

.legal h3 {
  margin: 1.75rem 0 0.5rem;
}

.legal-updated {
  text-align: center;
  color: #555;
  font-size: 0.9em;
}

.legal ul {
  padding-left: 1.25rem;
}

.legal li {
  margin-bottom: 0.5rem;
}

.legal a,
footer a {
  color: inherit;
}

/* ====== Message Pages (order confirmation, 404) ====== */
.message-page {
  max-width: 40rem;
  margin: 3rem auto;
  padding: 0 1.25rem;
  text-align: center;
  line-height: 1.6;
}

.message-lead {
  font-size: 1.1em;
}

.message-box {
  background: #f0f0f0;
  border-radius: 0.625rem;
  box-shadow: 0 0 0.625rem rgba(0,0,0,0.1);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  text-align: left;
}

.message-box h3 {
  margin: 0 0 0.75rem;
  text-align: center;
}

.message-box ul {
  padding-left: 1.25rem;
}

.message-box li {
  margin-bottom: 0.6rem;
}

.message-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.message-btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  background: #111;
  color: #fff;
  border: 0.125rem solid #111;
  border-radius: 0.625rem;
  text-decoration: none;
}

.message-btn--alt {
  background: #fff;
  color: #111;
}

.message-btn:hover {
  opacity: 0.85;
}

/* ====== "Added to cart" toast bubble ====== */
.toast {
  position: fixed;
  left: 50%;
  bottom: 2rem;
  transform: translate(-50%, 1rem);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.2rem;
  background: #111111;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.9rem;
  border-radius: 1.5rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 1000;
  width: max-content;
  max-width: calc(100vw - 2rem);
  box-sizing: border-box;
}

.toast--show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast--error {
  background: #cc2222;
}

.toast--error .toast-icon {
  background: rgba(255, 255, 255, 0.25);
}

.toast-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: #1a7a1a;
  flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
  .toast { transition: opacity 0.25s ease; transform: translate(-50%, 0); }
}

/* ====== Homepage FAQ ====== */
.faq-section {
  max-width: 800px;
  margin: 3rem auto;
  padding: 0 1.25rem;
}

.faq-item {
  border: 1px solid #ccc;
  border-radius: 0.5rem;
  background: #f9f9f9;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 3rem 1rem 1.25rem;
  font-weight: bold;
  position: relative;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

/* "+" that turns into "-" when the answer is open */
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3em;
  color: #555;
}

.faq-item[open] summary::after {
  content: "\2212";
}

.faq-item summary:hover {
  background: #f0f0f0;
}

.faq-item p {
  margin: 0;
  padding: 0 1.25rem 1.1rem;
  line-height: 1.6;
  color: #333;
}

.faq-item a {
  color: #007bff;
}

/* ====== Picture lightbox (product pages: click the slideshow picture to enlarge it) ====== */
.slide-image--zoomable { cursor: zoom-in; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.88);
  cursor: zoom-out;
}
.lightbox[hidden] { display: none; }

/* Fills the screen (small pictures are scaled up), keeping the picture's shape */
.lightbox-image {
  width: 94vw;
  height: 88vh;
  object-fit: contain;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 6px;
  cursor: pointer;
  line-height: 1;
}
.lightbox-close:hover,
.lightbox-nav:hover { background: #cc2222; }

.lightbox-close {
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  font-size: 28px;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 64px;
  font-size: 26px;
}
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }

/* Phones/tablets held upright: the whole picture, edge to edge across the screen (pinch to zoom
   in further). The arrows sit at the bottom of the screen instead of on top of the picture. */
@media (max-width: 900px) and (orientation: portrait) {
  .lightbox-image {
    width: 100vw;
    height: 80vh;
  }
  .lightbox-nav {
    top: auto;
    bottom: 16px;
    transform: none;
  }
}
