/* Chaussures Xapatan — atelier-derived custom styles */

body {
    font-family: 'Open Sans', 'Roboto', ui-sans-serif, system-ui, sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Roboto', 'Open Sans', ui-sans-serif, system-ui, sans-serif;
}

h1.font-display {
    font-weight: 900;
}

h2,
h3,
h4,
h5,
h6 {
    font-weight: 800;
}

.font-display {
    font-family: 'Roboto', 'Open Sans', ui-sans-serif, system-ui, sans-serif;
    font-weight: 800;
}

.font-display.font-bold,
h2.font-bold,
h3.font-bold {
    font-weight: 800;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 5.5rem;
}

.skip-link {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link:focus {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 100;
    width: auto;
    height: auto;
    margin: 0;
    clip: auto;
    overflow: visible;
    white-space: normal;
    padding: 0.75rem 1.25rem;
    background-color: #335e5f;
    color: #faf7f2;
    font-family: 'Roboto', 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 0.875rem;
    border-radius: 9999px;
    box-shadow: 0 10px 25px -10px rgba(51, 94, 95, 0.45);
    text-decoration: none;
}

.skip-link:focus:hover {
    background-color: #c85a3c;
    color: #faf7f2;
}

.mobile-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 40;
    background-color: rgba(51, 94, 95, 0.38);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

body.mobile-menu-open {
    overflow: hidden;
    touch-action: none;
}

#header.scrolled {
    background-color: rgba(247, 244, 239, 0.92);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.08);
}

#mobile-menu {
    transition: opacity 0.25s ease-out, max-height 0.3s ease-out;
}

.img-zoom img {
    transition: transform 0.55s cubic-bezier(0.16, 1, 0.32, 1);
}

.img-zoom:hover img {
    transform: scale(1.04);
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px -24px rgba(51, 94, 95, 0.28);
}

/* Best sellers — product cards */
.product-card {
    transition:
        transform 0.35s cubic-bezier(0.16, 1, 0.32, 1),
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 12px 40px -18px rgba(51, 94, 95, 0.22),
        0 28px 56px -32px rgba(51, 94, 95, 0.28);
}

.product-card:focus-within {
    border-color: rgba(200, 90, 60, 0.45);
}

.hide-scrollbar {
    scrollbar-width: none;
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
    outline: 2px solid #c85a3c;
    outline-offset: 2px;
}

details summary {
    list-style: none;
}

details summary::-webkit-details-marker {
    display: none;
}

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

    .img-zoom img,
    .hover-lift {
        transition: none;
    }

    .img-zoom:hover img {
        transform: none;
    }

    .product-card:hover {
        transform: none;
        box-shadow: 0 4px 24px -12px rgba(51, 94, 95, 0.18);
    }

    .product-card img {
        transition: none !important;
        transform: none !important;
    }
}
