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 rgba(255, 200, 0, 0.55);
}

html {
  position: relative;
  min-height: 100%;
  overflow-x: clip;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: clip;
  max-width: 100%;
}

/* Reserve space only when a fixed footer is present (auth/shop shells) */
body:has(footer.fixed-bottom) {
  padding-bottom: 4.5rem;
}

body.layout-marketing {
  padding-bottom: 0;
}

body.layout-marketing > main {
  flex: 1 0 auto;
}

/* App pages (no home masthead): clear the fixed Agency navbar */
body.layout-marketing > main:not(:has(header.masthead)) {
  padding-top: 6.5rem;
  padding-bottom: 2rem;
}

header {
  flex-shrink: 0;
}

.main-content {
  flex: 1 0 auto;
  margin-top: 100px;
}

footer.fixed-bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1020;
  background-color: #fff;
}

.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;
}

/* Cart icon + badge (marketing / guest / shared) */
.cart-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 2.65rem;
  height: 2.65rem;
  padding: 0;
  border-radius: 999px;
  font-size: 1.05rem;
  color: #212529;
  background: rgba(33, 37, 41, 0.06);
  border: 1px solid rgba(33, 37, 41, 0.12);
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.cart-link:hover,
.cart-link:focus {
  color: #212529;
  background: rgba(255, 200, 0, 0.28);
  border-color: rgba(255, 200, 0, 0.55);
  box-shadow: 0 4px 14px rgba(255, 200, 0, 0.28);
}

.cart-link:focus-visible {
  outline: 2px solid #ffc800;
  outline-offset: 2px;
}

.profile-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 2.65rem;
  height: 2.65rem;
  padding: 0;
  border-radius: 999px;
  font-size: 1.05rem;
  color: #212529;
  background: rgba(33, 37, 41, 0.06);
  border: 1px solid rgba(33, 37, 41, 0.12);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.profile-link:hover,
.profile-link:focus {
  color: #212529;
  background: rgba(255, 200, 0, 0.28);
  border-color: rgba(255, 200, 0, 0.55);
  box-shadow: 0 4px 14px rgba(255, 200, 0, 0.28);
}

.profile-link:focus-visible {
  outline: 2px solid #ffc800;
  outline-offset: 2px;
}

.profile-guest {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.65rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #212529;
  background: rgba(33, 37, 41, 0.06);
  border: 1px solid rgba(33, 37, 41, 0.12);
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.profile-guest:hover,
.profile-guest:focus {
  color: #212529;
  background: rgba(255, 200, 0, 0.28);
  border-color: rgba(255, 200, 0, 0.55);
  box-shadow: 0 4px 14px rgba(255, 200, 0, 0.28);
}

.cart-badge {
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0.15rem 0.4rem !important;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.05;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #212529 !important;
  background-color: #ffc800 !important;
  border: 1px solid rgba(33, 37, 41, 0.12);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.cart-badge.d-none {
  display: none !important;
}

@media (max-width: 576px) {
  .cart-badge {
    min-width: 1.2rem;
    height: 1.2rem;
    padding: 0.1rem 0.35rem !important;
    font-size: 0.65rem;
  }
}