html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin-bottom: 0;
}

body > .container {
  flex: 1 0 auto;
  width: 100%;
}

.policy-page {
  max-width: 52rem;
  margin: 0 auto 2rem;
  color: #333;
  line-height: 1.75;
  letter-spacing: -0.02em;
}

.policy-page h1 {
  margin-bottom: 0.75rem;
  font-size: 1.75rem;
  font-weight: 700;
}

.policy-updated {
  margin-bottom: 2rem;
  color: #555;
}

.policy-page h2 {
  margin: 1.75rem 0 0.6rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.policy-page p,
.policy-page ul,
.policy-page ol {
  margin-bottom: 0.85rem;
}

.policy-page ul,
.policy-page ol {
  padding-left: 1.25rem;
}

.policy-page li {
  margin-bottom: 0.35rem;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* Custom 5-column grid for products */
.product-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

@media (max-width: 1200px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 992px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}

/* Product card hover effect */
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.storefront-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

a.storefront-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 18px;
  border: 1px solid #d8dbe3;
  background: #fff;
  color: #222;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

a.storefront-btn:hover {
  background: #eaf0ff;
  border-color: #346aff;
  color: #346aff;
  text-decoration: none;
}

a.storefront-btn.is-active,
a.storefront-btn.is-active:hover {
  background: #346aff;
  border-color: #346aff;
  color: #fff;
  text-decoration: none;
}

.navbar {
  min-height: 64px;
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
}

.navbar .navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding-top: 0;
  padding-bottom: 0;
  white-space: nowrap;
}

.navbar .navbar-logo {
  height: 48px;
  width: auto;
  display: block;
}

/* Product description HTML from the CMS often has fixed pixel widths.
   Keep those images inside the page on phones and fill the browser width. */
.detail-html-images {
  max-width: 100%;
  overflow-x: hidden;
}

.detail-html-images * {
  max-width: 100% !important;
  box-sizing: border-box;
}

.detail-html-images img,
.detail-html-images video,
.detail-html-images iframe {
  max-width: 100% !important;
  height: auto !important;
}

@media (max-width: 767.98px) {
  .product-description .description-content {
    padding: 0.75rem 0 !important;
  }

  .detail-html-images {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    overflow-x: hidden;
  }

  .detail-html-images img {
    width: 100% !important;
    display: block;
  }
}