/* Shared visual language. Component layouts and functional states stay local. */
.frontend-theme {
  --front-ink: #183653;
  --front-blue: #0d4087;
  --front-muted: #526676;
  --front-surface: #eef5f9;
  --front-border: #dce8ee;
  --front-radius: 12px;
  color: var(--front-ink);
  background: #fff;
}
.frontend-theme .main { line-height: 1.65; }
.frontend-theme .main :is(.page-title, .section-title) { color: var(--front-blue); text-transform: none; letter-spacing: normal; line-height: 1.2; }
.frontend-theme .main .page-title { font-size: clamp(28px, 4vw, 44px); margin-bottom: 28px; }
.frontend-theme .main :is(.card, .product-row) { border: 1px solid var(--front-border); border-radius: var(--front-radius); box-shadow: none; }
.frontend-theme .main .card-header { background: #f5f8fa; border-bottom-color: var(--front-border); }
.frontend-theme .main .card-body { padding: 24px; }
.frontend-theme .main .btn { border-radius: 8px; text-transform: none; letter-spacing: normal; font-weight: 600; white-space: normal; }
.frontend-theme .main .btn-primary { background: var(--front-blue); border-color: var(--front-blue); color: #fff; }
.frontend-theme .main .btn-primary:hover { background: #173c65; border-color: #173c65; }
.frontend-theme .main .btn-outline-primary { color: var(--front-blue); border-color: var(--front-blue); background: transparent; }
.frontend-theme .main .btn-outline-primary:hover { background: var(--front-surface); }
.frontend-theme .main :is(.form-control, .form-select) { border-radius: 8px; border-color: #b7c9d6; }
.frontend-theme .main :is(.form-control, .form-select):focus { border-color: #016db6; box-shadow: 0 0 0 3px rgba(1,109,182,.14); }
.frontend-theme .main .table > thead { background: #f5f8fa; color: var(--front-ink); }
.frontend-theme .main .my-account { background: #f5f8fa; border: 1px solid var(--front-border); border-radius: var(--front-radius); padding: 24px; }
.frontend-theme .main .account-nav { border: 1px solid var(--front-border); border-radius: var(--front-radius); box-shadow: none; }
.frontend-theme .account-nav .menu-link_active { color: var(--front-blue); background: var(--front-surface); border-radius: 6px; }
.frontend-theme :is(a, button, summary):focus-visible { outline: 3px solid #016db6; outline-offset: 4px; }
.front-page-intro { padding: 36px 0 48px; background: var(--front-surface); border-bottom: 1px solid var(--front-border); margin-bottom: 40px; }
.front-page-intro nav { font-size: 14px; margin-bottom: 32px; }
.front-page-intro nav a { color: var(--front-blue); text-decoration: underline; text-underline-offset: 3px; }
.front-page-intro-grid { display: grid; grid-template-columns: 1fr; gap: 0; align-items: center; }
.front-page-intro h1 { font-size: clamp(32px, 4vw, 52px); color: var(--front-blue); line-height: 1.15; margin: 0; }
.front-page-eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 13px; font-weight: 600; color: var(--front-muted); }

@media (max-width: 767.98px) {
  .front-page-intro { padding: 24px 0 32px; margin-bottom: 28px; }
  .front-page-intro-grid { grid-template-columns: 1fr; gap: 24px; }

  .frontend-theme .main .card-body, .frontend-theme .main .my-account { padding: 16px; }
  .frontend-theme .main .btn { min-height: 44px; }
  .frontend-theme .main :is(.form-control, .form-select) { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .frontend-theme .main .transition { transition: none; }
}
.front-intro-lead { font-size: 20px; color: var(--front-muted); margin: 20px 0; }
.frontend-theme .main .bg-grey-faf9f8 { background-color: var(--front-surface); }
.frontend-theme .main :is(.blog__item, .product-card) { border-radius: var(--front-radius); overflow: hidden; }
.frontend-theme .main .pagination .page-link { border-radius: 8px; }
.frontend-theme .footer.footer_type_1 { background-color: #183653 !important; color: #fff; }
.frontend-theme .footer .sub-menu__title { letter-spacing: .04em; }
.frontend-theme .footer .menu-link { line-height: 1.8; }
/* A stable mobile bar; preserve the existing navigation and basket behavior. */
@media (max-width: 991.98px) {
  .frontend-theme #front-standard-header .mobile-header-stable {
    position: fixed !important;
    top: var(--access-toolbar-height, 76px);
    height: 64px;
    min-height: 64px;
    z-index: 1030;
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
  .frontend-theme .mobile-header-row { display: grid !important; grid-template-columns: 90px 1fr 90px; gap: 8px; }
  .frontend-theme .mobile-header-row .logo { justify-self: center; margin: 0; }
  .frontend-theme .mobile-header-row .logo__image { width: auto; max-width: 90px; height: 60px; object-fit: contain; }
  .frontend-theme .mobile-menu-button { display: flex; align-items: center; gap: 7px; min-height: 44px; padding: 4px; border: 0; background: transparent; color: white; font: inherit; font-size: 14px; cursor: pointer; }
  .frontend-theme .mobile-menu-button svg { fill: currentColor; flex-shrink: 0; }
  .frontend-theme .mobile-header-row .header-tools__cart { display: flex; align-items: center; justify-content: center; justify-self: end; position: relative; min-width: 44px; min-height: 44px; margin: 0; }
  .frontend-theme .mobile-header-row .cart-amount { top: 0; right: 0; }
  .frontend-theme .mobile-header-stable .header-mobile__navigation { max-height: calc(100dvh - var(--access-toolbar-height, 76px) - 64px); }
  .frontend-theme:not(.mobile-menu-opened) .mobile-header-stable .header-mobile__navigation { max-height: 0; }
}
.frontend-theme .mobile-menu-panel[hidden] { display: none !important; }
@media (max-width: 991.98px) {
  .frontend-theme .mobile-menu-panel { position: absolute; top: 100%; left: 0; width: 100%; height: calc(100vh - var(--access-toolbar-height, 76px) - 64px); height: calc(100dvh - var(--access-toolbar-height, 76px) - 64px); overflow-y: auto; overscroll-behavior: contain; background: #fff; color: #183653; box-shadow: 0 12px 24px rgba(24,54,83,.12); }
  .frontend-theme .mobile-panel-heading { position: sticky; top: 0; z-index: 1; background: #f5f8fa; padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #dce8ee; }
  .frontend-theme .mobile-panel-close { border: 1px solid #b7c9d6; background: #fff; color: #0d4087; border-radius: 8px; padding: 10px 12px; min-height: 44px; font: inherit; }
  .frontend-theme .mobile-panel-links, .frontend-theme .mobile-panel-links ul { list-style: none; padding: 0; margin: 0; }
  .frontend-theme .mobile-panel-links { padding: 8px 16px; }
  .frontend-theme .mobile-panel-links ul { margin-left: 12px; padding-left: 12px; border-left: 2px solid #dce8ee; }
  .frontend-theme .mobile-panel-links :is(a, summary) { display: block; padding: 14px 8px; min-height: 48px; font-size: 17px; line-height: 1.5; color: #183653; border-bottom: 1px solid #edf1f4; white-space: normal; overflow-wrap: anywhere; cursor: pointer; }
  .frontend-theme .mobile-panel-links summary { display: list-item; list-style-position: inside; font-weight: 600; }
  .frontend-theme .mobile-panel-links a:hover { background: #eef5f9; }
  .frontend-theme .mobile-panel-account { padding: 20px 24px; background: #eef5f9; }
  .frontend-theme .mobile-panel-account > a { display: block; padding: 12px 0; color: #0d4087; font-weight: 600; }
  .frontend-theme .mobile-panel-account > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
  .frontend-theme .mobile-panel-account select { min-height: 44px; padding: 8px; border: 1px solid #b7c9d6; border-radius: 6px; background: #fff; }
}
.frontend-theme .mobile-panel-links a[aria-current="page"],
.frontend-theme .mobile-panel-account a[aria-current="page"] { background: #e7f1f8; color: #0d4087; font-weight: 700; border-left: 4px solid #0d4087; padding-left: 12px; }
.frontend-theme .mobile-panel-links .contains-current-page > summary { color: #0d4087; }
.mobile-participant-context { padding: 12px; border: 1px solid #b7c9d6; border-radius: 8px; background: #fff; font-size: 15px; }
.mobile-participant-context p { margin: 0 0 8px; }
.mobile-participant-context a { display: inline-block; padding: 8px 0; text-decoration: underline; }

/* Keep the desktop breathing room without a white strip below the mobile menu. */
.frontend-theme .frontend-banner-slider { margin-top: 10px; }
@media (max-width: 991.98px) {
  .frontend-theme .frontend-banner-slider { margin-top: 0; }
}
#cart-feedback { margin: auto; width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto; padding: 28px; border: 1px solid #dce8ee; border-radius: 16px; color: #183653; background: #fff; }
#cart-feedback::backdrop { background: rgba(15,35,55,.55); }
#cart-feedback h2 { font-size: 26px; color: #0d4087; }
.cart-feedback-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.cart-feedback-actions .btn { min-height: 48px; white-space: normal; border-radius: 8px; }

/* Full-width photographic introductions; the overlay protects text contrast. */
.frontend-theme .front-photo-intro {
  background-color: #122d45;
  background-image: linear-gradient(90deg, rgba(8, 25, 43, .84), rgba(8, 25, 43, .60)), var(--intro-photo);
  background-size: cover;
  background-position: center;
  color: #fff;
  min-height: 320px;
  padding: 36px 0 56px;
  border-bottom: 0;
}
.frontend-theme .front-photo-intro :is(h1, .front-page-eyebrow, .front-intro-lead, .home-eyebrow, .home-lead, nav, nav a) { color: #fff; }
.frontend-theme .front-photo-intro :is(.front-page-intro-grid, .home-hero-grid) { display: block; }
.frontend-theme .front-photo-intro :is(.front-page-intro-grid, .home-hero-grid) > div { max-width: 760px; }
.frontend-theme .front-photo-intro .btn-primary { background: #fff; border-color: #fff; color: #0d4087; }
.frontend-theme .front-photo-intro .btn-primary:hover { background: #e8f2f8; border-color: #e8f2f8; color: #0d4087; }
.frontend-theme .front-photo-intro .btn-outline-primary { color: #fff; border-color: #fff; background: rgba(8, 25, 43, .25); }
.frontend-theme .front-photo-intro .btn-outline-primary:hover { color: #0d4087; background: #fff; }
.frontend-theme .front-photo-intro :is(a, button):focus-visible { outline-color: #fff; outline-offset: 5px; }
.frontend-theme .home-hero.front-photo-intro { padding: 64px 0; background-position: center 40%; }
@media (max-width: 767.98px) {
  .frontend-theme .front-photo-intro { min-height: 280px; padding: 28px 0 40px; background-image: linear-gradient(rgba(8, 25, 43, .76), rgba(8, 25, 43, .72)), var(--intro-photo); }
  .frontend-theme .home-hero.front-photo-intro { padding: 40px 0; }
}
