/* Shared responsive shell. Component widths are constrained at their source. */
.aw-storefront :is(main, section, article, aside, form, fieldset, .aw-container, .aw-container-narrow) {
    min-width: 0;
}
.aw-storefront :is(img, video, iframe) { max-width: 100%; }
.aw-storefront :is(input, select, textarea) { min-width: 0; max-width: 100%; }
.aw-storefront :is(h1, h2, h3, h4, p, blockquote, label, address) { overflow-wrap: break-word; }
/* Gradient decorations belong to their band, not the document scroll area. */
.aw-storefront .aw-band { position: relative; overflow: clip; isolation: isolate; }
.aw-storefront .aw-btn { max-width: 100%; white-space: normal; line-height: 1.3; min-height: 44px; }
.aw-storefront :is(input, select, textarea, #checkout-step-details) { scroll-margin-top: calc(var(--aw-header-h, 80px) + 1rem); }
.aw-storefront .aw-header-inner { padding-inline: clamp(1rem, 3vw, 3.5rem); }
.aw-storefront .aw-header nav[aria-label="Main navigation"] { gap: clamp(.8rem, 1.5vw, 1.75rem); flex-shrink: 0; }
.aw-storefront .aw-nav-link { white-space: nowrap; }
.aw-storefront .aw-nav-search-wrap { min-width: 0; }
.aw-storefront .aw-footer-grid > * { min-width: 0; }
.aw-storefront .aw-footer :is(p, li, a) { overflow-wrap: anywhere; }
.aw-storefront .aw-footer-link { min-height: 36px; }
.aw-storefront .aw-mobile-menu { height: 100dvh; padding-bottom: env(safe-area-inset-bottom, 0px); }
.aw-storefront .aw-mobile-sub-left { min-width: 0; }
.aw-storefront .aw-mobile-sub-left > .truncate { white-space: normal; overflow: visible; }
.aw-storefront .aw-mobile-sub-row { min-height: 44px; }
.aw-storefront .aw-drawer { height: 100dvh; max-width: 100%; width: min(440px, 100%); }
.aw-storefront .aw-drawer:not(.is-open) { visibility: hidden; }
.aw-storefront .aw-drawer.is-open { visibility: visible; }
.aw-storefront .aw-review-modal-panel { max-height: calc(100dvh - 2rem); overflow-y: auto; max-width: 100%; }
.aw-storefront .aw-review-modal-text { overflow-wrap: anywhere; }

/* The full navigation needs room for search and cart, including longer labels. */
@media (max-width: 1199px) {
    .aw-storefront .aw-header nav[aria-label="Main navigation"] { display: none; }
    .aw-storefront #aw-burger { display: flex; }
    .aw-storefront #aw-mobile-menu { display: flex; }
    .aw-storefront .aw-header-certification { display: none; }
    .aw-storefront .aw-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .aw-storefront .aw-footer-grid > * { grid-column: auto; padding-right: 0; }
    .aw-storefront .aw-footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (min-width: 768px) and (max-width: 1199px) {
    .aw-storefront .aw-header-inner > .aw-nav-search-wrap { margin-left: auto; width: clamp(220px, 36vw, 380px); }
}
@media (max-width: 639px) {
    .aw-storefront .aw-footer-grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; padding-bottom: 6.5rem; }
    .aw-storefront .aw-footer-grid > :first-child { grid-column: auto; }
    .aw-storefront .aw-header-logo img { max-width: 112px; }
    .aw-storefront :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) { font-size: 16px; }
    .aw-storefront .aw-footer-heading { text-align: start; }
}
