/* Skip link: bypass header chrome for keyboard/screen-reader users (WCAG 2.4.1) */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    z-index: 20001;
    padding: 0.75rem 1rem;
    background-color: var(--color-black, #121212);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0 0 4px 0;
}

.skip-link:focus,
.skip-link:focus-visible {
    top: 0;
    outline: 2px solid #fff;
    outline-offset: 2px;
}

#main-content:focus {
    outline: none;
}

/* Contact + About + Our Stores + page maintenance + checkout success + public order detail + account + auth utility: content-sized main + footer margin-top:auto (cart parity) */
html:has(main.contact-page),
html:has(main.about-page),
html:has(main.our-store-page),
html:has(main.page-maintenance-section),
html:has(main.checkout-success-page),
html:has(main.order-public-detail-page),
html:has(main.account-page),
html:has(main.account-page-main) {
    overflow-x: clip;
}

body#kt_body.header-body-root:has(main.contact-page),
body#kt_body.header-body-root:has(main.about-page),
body#kt_body.header-body-root:has(main.our-store-page),
body#kt_body.header-body-root:has(main.page-maintenance-section),
body#kt_body.header-body-root:has(main.checkout-success-page),
body#kt_body.header-body-root:has(main.order-public-detail-page),
body#kt_body.header-body-root:has(main.account-page),
body#kt_body.header-body-root:has(main.account-page-main) {
    height: auto;
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    overscroll-behavior-y: none;
    overflow-x: clip;
}

.d-flex.flex-column.flex-root:has(main.contact-page),
.d-flex.flex-column.flex-root:has(main.about-page),
.d-flex.flex-column.flex-root:has(main.our-store-page),
.d-flex.flex-column.flex-root:has(main.page-maintenance-section),
.d-flex.flex-column.flex-root:has(main.checkout-success-page),
.d-flex.flex-column.flex-root:has(main.order-public-detail-page),
.d-flex.flex-column.flex-root:has(main.account-page),
.d-flex.flex-column.flex-root:has(main.account-page-main) {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    width: 100%;
}

#kt_wrapper:has(main.contact-page),
#kt_wrapper:has(main.about-page),
#kt_wrapper:has(main.our-store-page),
#kt_wrapper:has(main.page-maintenance-section),
#kt_wrapper:has(main.checkout-success-page),
#kt_wrapper:has(main.order-public-detail-page),
#kt_wrapper:has(main.account-page),
#kt_wrapper:has(main.account-page-main) {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    width: 100%;
}

#kt_wrapper:has(main.contact-page) #kt_footer,
#kt_wrapper:has(main.about-page) #kt_footer,
#kt_wrapper:has(main.our-store-page) #kt_footer,
#kt_wrapper:has(main.page-maintenance-section) #kt_footer,
#kt_wrapper:has(main.checkout-success-page) #kt_footer,
#kt_wrapper:has(main.order-public-detail-page) #kt_footer,
#kt_wrapper:has(main.account-page) #kt_footer,
#kt_wrapper:has(main.account-page-main) #kt_footer {
    margin-top: auto;
    flex-shrink: 0;
}

/* Shared: Layout Primitives */
:is(
    .product-box-container,
    .product-detail-box-container,
    .news-box-container,
    .philosophy-page-box-container
) {
    max-width: var(--site-max-width, 1440px);
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: max(var(--site-px, 0px), env(safe-area-inset-left, 0px));
    padding-right: max(var(--site-px, 0px), env(safe-area-inset-right, 0px));
}

/* Shared: CTA Rail Links */
:is(.view-all, .read-more-link) {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 170px;
    border-bottom: 1px solid currentColor;
    padding: 0 0 6px;
    line-height: 1;
}

:is(.view-all-arrow, .read-more-arrow) {
    margin-left: auto;
    padding-left: 16px;
    display: inline-flex;
    align-items: center;
}
