/* Shared mobile experience for the complete Patiolume storefront. */
html {
  scroll-padding-top: 96px;
  overscroll-behavior-y: none;
}

body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a,
a:hover,
a:focus,
a:active,
a:visited {
  text-decoration: none !important;
  text-decoration-line: none !important;
}

.btn {
  font-size: 1.02rem;
}

.product-actions .btn {
  font-size: .96rem;
}

.navbar {
  transition: background-color .25s ease, box-shadow .25s ease, border-color .25s ease, transform .25s ease;
}

.navbar.scrolled {
  background: rgba(242, 240, 239, .985);
  border-bottom-color: rgba(36, 95, 115, .22);
  box-shadow: 0 14px 38px rgba(32, 36, 38, .13);
}

.nav-links a {
  transition: color .2s ease, background-color .2s ease, transform .2s ease;
}

@media (min-width: 981px) {
  .nav-links a {
    position: relative;
    padding: 8px 2px;
    border-radius: 0;
  }

  .nav-links a:hover,
  .nav-links a:focus-visible {
    color: #733E24;
    background: transparent;
    transform: none;
  }

  .nav-links a::after {
    content: "" !important;
    display: block !important;
    position: absolute;
    left: 0;
    bottom: 1px;
    width: 100%;
    height: 2px;
    background: #733E24;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .28s ease;
  }

  .nav-links a:hover::after,
  .nav-links a:focus-visible::after {
    transform: scaleX(1);
  }
}

.product-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.menu-open {
  overflow: hidden;
}

[id] {
  scroll-margin-top: 96px;
}

body.has-announcement [id] {
  scroll-margin-top: 130px;
}

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(36, 95, 115, .35);
  outline-offset: 3px;
}

@media (max-width: 980px) {
  .nav-inner {
    min-height: 78px;
  }

  .nav-links {
    position: fixed;
    top: 78px;
    left: 12px;
    right: 12px;
    width: auto;
    max-height: calc(100dvh - 94px);
    padding: 12px;
    gap: 2px;
    overflow-y: auto;
    overscroll-behavior: contain;
    align-items: stretch;
    background: rgba(242, 240, 239, .98);
    border: 1px solid rgba(36, 95, 115, .14);
    border-radius: 0 0 18px 18px;
    box-shadow: 0 24px 60px rgba(32, 36, 38, .16);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-18px);
    transition: transform .24s ease, opacity .2s ease, visibility .2s ease;
  }

  body.has-announcement .nav-links {
    top: 112px;
    max-height: calc(100dvh - 128px);
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links li,
  .nav-links a {
    width: 100%;
  }

  .nav-links a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 10px 13px;
    border-radius: 11px;
    color: #27383e;
    font-size: 1rem;
    font-weight: 700;
  }

  .nav-links a:hover,
  .nav-links a:focus-visible {
    background: rgba(36, 95, 115, .08);
  }

  .nav-links a::after {
    display: none;
  }

  .menu-btn {
    display: grid;
  }

  .menu-btn[aria-expanded="true"] {
    color: #F2F0EF;
    background: #245F73;
    border-color: #245F73;
  }

  .menu-btn svg {
    transition: transform .2s ease;
  }

  .menu-btn[aria-expanded="true"] svg {
    transform: rotate(90deg);
  }
}

@media (max-width: 720px) {
  html {
    scroll-padding-top: 88px;
  }

  body {
    font-size: 16px;
    line-height: 1.65;
    overflow-x: clip;
  }

  .container {
    width: min(91%, var(--max-width));
  }

  .navbar,
  .announcement-bar {
    -webkit-backdrop-filter: blur(16px);
  }

  .brand::before {
    width: 155px;
    height: 46px;
  }

  .nav-actions {
    gap: 8px;
    flex: 0 0 auto;
  }

  .icon-btn {
    width: 46px;
    height: 46px;
  }

  h1,
  .page-hero h1,
  .hero h1 {
    font-size: clamp(2.25rem, 10vw, 3.3rem);
    line-height: 1.02;
    letter-spacing: -.045em;
  }

  h2 {
    font-size: clamp(1.95rem, 8vw, 2.7rem);
    line-height: 1.08;
  }

  h3 {
    line-height: 1.16;
  }

  .eyebrow {
    font-size: .7rem;
    letter-spacing: .13em;
  }

  .section {
    padding: 68px 0;
  }

  .section-head {
    gap: 16px;
    margin-bottom: 30px;
  }

  .page-hero {
    padding: 108px 0 44px;
  }

  .page-hero p,
  .hero-text {
    margin-top: 18px;
    font-size: 1rem;
    line-height: 1.65;
  }

  .hero {
    min-height: auto;
    padding: 126px 0 64px;
  }

  body.has-announcement .hero {
    padding-top: 158px;
  }

  .hero-actions {
    margin-top: 26px;
    gap: 10px;
  }

  .btn,
  .filter-btn {
    min-height: 46px;
  }

  .hero-actions .btn {
    padding-inline: 18px;
  }

  .hero-meta {
    margin-top: 38px;
  }

  .categories-grid,
  .product-grid,
  .trustpilot-grid,
  .features,
  .contact-grid,
  .showcase,
  .faq-grid {
    gap: 16px;
  }

  .category-card {
    min-height: 330px;
    border-radius: 18px;
  }

  .category-content {
    left: 20px;
    right: 20px;
    bottom: 20px;
    gap: 14px;
  }

  .category-content h3 {
    font-size: 1.45rem;
  }

  .category-content p {
    margin-top: 8px;
    font-size: .9rem;
    line-height: 1.5;
  }

  .shop-toolbar {
    position: sticky;
    top: 78px;
    z-index: 30;
    display: block;
    margin: -10px 0 18px;
    padding: 12px 0 10px;
    background: rgba(242, 240, 239, .97);
    border-bottom: 1px solid rgba(36, 95, 115, .12);
    backdrop-filter: blur(16px);
  }

  .filter-group {
    margin-inline: -4.5vw;
    padding: 0 4.5vw 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .filter-group::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    flex: 0 0 auto;
    scroll-snap-align: start;
    padding-inline: 16px;
  }

  .shop-toolbar > span {
    display: block;
    margin-top: 6px;
    font-size: .8rem !important;
  }

  .product-card,
  .review-card,
  .content-card,
  .faq-page-item {
    border-radius: 17px;
  }

  .product-grid {
    gap: 18px;
  }

  .product-card {
    box-shadow: 0 12px 34px rgba(36, 95, 115, .08);
  }

  .product-image {
    aspect-ratio: 16 / 10;
    background: #e9e7e1;
  }

  .product-body,
  .review-card,
  .content-card {
    padding: 18px;
  }

  .product-topline {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
  }

  .product-body h3 {
    margin-top: 5px;
    font-size: 1.25rem;
    line-height: 1.18;
  }

  .price {
    color: #245F73;
    font-size: 1.08rem;
  }

  .product-body p {
    margin: 10px 0 14px;
    font-size: .92rem;
    line-height: 1.55;
  }

  .rating-chip {
    margin-top: 8px;
    padding: 6px 9px;
    font-size: .76rem;
  }

  .product-actions {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: 8px;
    margin-top: 2px;
  }

  .product-actions .btn {
    width: 100%;
    min-height: 46px;
    padding: 10px 8px;
    white-space: nowrap;
  }

  .faq-page-item {
    padding: 19px;
  }

  .faq-question {
    min-height: 54px;
    text-align: left;
  }

  .field input,
  .field select,
  .field textarea {
    min-height: 48px;
    padding: 13px 14px;
    font-size: 16px;
  }

  .field textarea {
    min-height: 132px;
  }

  footer {
    padding-top: 58px;
  }

  .footer-grid,
  .footer-links {
    gap: 30px;
  }

  .footer-col a {
    display: block;
    min-height: 38px;
    padding-block: 7px;
  }

  .toast {
    left: 16px;
    right: 16px;
    bottom: max(16px, env(safe-area-inset-bottom));
    width: auto;
    text-align: center;
  }
}

@media (max-width: 520px) {
  .announcement-bar {
    min-height: 34px;
    line-height: 1.25;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    gap: 6px;
    align-items: flex-start;
  }
}

@media (max-width: 380px) {
  .brand::before {
    width: 132px;
  }

  .icon-btn {
    width: 43px;
    height: 43px;
  }

  .product-actions {
    flex-direction: column;
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
