/* Mountain Gear Boots — 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;
}

.footer-affiliate-disclaimer {
    color: #1a211c;
    background-color: #e2ebe4;
    border: 1px solid #b86b2a;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
}

.footer-affiliate-disclaimer strong {
    color: #2d4a3e;
    font-weight: 700;
}

#best-sellers {
    width: 100%;
}

.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border-radius: 1.25rem;
    border: 1px solid #d5ddd7;
    background: linear-gradient(165deg, #faf9f6 0%, #eef3ef 100%);
    box-shadow:
        inset 0 1px 0 rgb(255 255 255 / 0.75),
        0 1px 2px rgb(26 33 28 / 0.05),
        0 10px 28px rgb(26 33 28 / 0.07);
    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(-5px);
    border-color: rgb(184 107 42 / 0.45);
    box-shadow:
        inset 0 1px 0 rgb(255 255 255 / 0.85),
        0 4px 8px rgb(26 33 28 / 0.06),
        0 22px 44px rgb(26 33 28 / 0.11);
}

.product-card__media {
    position: relative;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.75rem 1.5rem;
    background:
        radial-gradient(circle at 50% 28%, #faf9f6 0%, #e8efe9 72%),
        linear-gradient(180deg, #eef3ef 0%, #dfe8e1 100%);
    border-bottom: 1px solid rgb(213 221 215 / 0.75);
}

.product-card__media::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.55);
}

.product-card__media img {
    position: relative;
    z-index: 1;
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 12px 20px rgb(26 33 28 / 0.14));
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.32, 1);
}

.product-card:hover .product-card__media img {
    transform: scale(1.06);
}

.product-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.65rem;
    padding: 1.35rem 1.35rem 1.5rem;
    background: linear-gradient(180deg, #faf9f6 0%, #eef3ef 100%);
}

.product-card__title {
    font-family: Roboto, "Open Sans", ui-sans-serif, system-ui, sans-serif;
    font-size: 1.125rem;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: #1a211c;
}

.product-card__text {
    flex: 1;
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.6;
    color: #5c6b60;
}

.product-card__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    margin-top: 0.65rem;
    min-height: 2.85rem;
    padding: 0.75rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 700;
    color: #f5f3ee;
    background: #2d4a3e;
    box-shadow: 0 1px 2px rgb(26 33 28 / 0.12);
    transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card__cta svg {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    opacity: 0.9;
}

.product-card__cta:hover {
    background: #b86b2a;
    box-shadow: 0 4px 14px rgb(184 107 42 / 0.28);
}

.product-card__cta:focus-visible {
    outline: 2px solid #b86b2a;
    outline-offset: 2px;
}

#header.scrolled {
    background-color: rgb(245 243 238 / 0.93);
    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 rgb(45 74 62 / 0.35);
}

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

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

.nav-dropdown-summary {
    list-style: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.25rem;
    font-family: Roboto, "Open Sans", ui-sans-serif, system-ui, sans-serif;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgb(26 33 28 / 0.8);
}

.nav-dropdown-summary::-webkit-details-marker {
    display: none;
}

.nav-dropdown-summary .caret {
    font-size: 0.55rem;
    opacity: 0.7;
}

.nav-dropdown-panel {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 60;
    min-width: 11rem;
    margin-top: 0.35rem;
    padding: 0.5rem;
    border-radius: 0.75rem;
    border: 1px solid #d5ddd7;
    background: #f5f3ee;
    box-shadow: 0 12px 32px -8px rgb(26 33 28 / 0.15);
}

.nav-dropdown-link {
    display: block;
    padding: 0.55rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #1a211c;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-dropdown-link:hover {
    background: #e2ebe4;
    color: #b86b2a;
}

.mobile-nav-row {
    display: block;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgb(213 221 215 / 0.6);
    font-family: Roboto, "Open Sans", ui-sans-serif, system-ui, sans-serif;
    font-size: 1.125rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mobile-nav-details {
    border-bottom: 1px solid rgb(213 221 215 / 0.6);
}

.mobile-nav-summary {
    list-style: none;
    cursor: pointer;
    padding: 0.85rem 0;
    font-family: Roboto, "Open Sans", ui-sans-serif, system-ui, sans-serif;
    font-size: 1.125rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mobile-nav-summary::-webkit-details-marker {
    display: none;
}

.mobile-nav-submenu {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0 0 0.75rem 0.75rem;
}

.mobile-nav-submenu a {
    padding: 0.45rem 0;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #5c6b60;
}

.mobile-nav-submenu a:hover {
    color: #b86b2a;
}

.article-body h2,
.article-h2 {
    font-family: Roboto, "Open Sans", ui-sans-serif, system-ui, sans-serif;
    font-size: 1.375rem;
    font-weight: 800;
    color: #1a211c;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

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

details summary {
    list-style: none;
}

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

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

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

    .img-zoom:hover img,
    .product-card:hover .product-card__media img {
        transform: none;
    }
}
