/* Birra Moretti Glass — atelier template (beer-bar palette) */

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;
}

#header.scrolled {
    background-color: rgba(249, 246, 240, 0.94);
    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(61, 41, 24, 0.35);
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.75rem;
    }
}

@media (min-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 2rem;
    }
}

.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border-radius: 1.25rem;
    border: 1px solid rgba(61, 41, 24, 0.1);
    background: #fffdf9;
    box-shadow:
        0 1px 2px rgba(61, 41, 24, 0.04),
        0 8px 24px -12px rgba(61, 41, 24, 0.18);
    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: rgba(201, 148, 60, 0.35);
    box-shadow:
        0 4px 8px rgba(61, 41, 24, 0.06),
        0 20px 40px -16px rgba(61, 41, 24, 0.22);
}

.product-card__media {
    position: relative;
    display: flex;
    aspect-ratio: 1;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background:
        radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.92) 0%, transparent 58%),
        linear-gradient(165deg, #faf6ef 0%, #f3ebe0 48%, #ebe1d3 100%);
    border-bottom: 1px solid rgba(61, 41, 24, 0.08);
}

.product-card__media::before {
    content: "";
    position: absolute;
    inset: 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.55);
    pointer-events: none;
}

.product-card__image {
    position: relative;
    z-index: 1;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 18px rgba(61, 41, 24, 0.14));
    transition: transform 0.55s cubic-bezier(0.16, 1, 0.32, 1);
}

.product-card:hover .product-card__image {
    transform: scale(1.05) translateY(-2px);
}

.product-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.25rem 1.25rem 1.5rem;
}

.product-card__title {
    min-height: 2.75rem;
    font-family: 'Roboto', 'Open Sans', ui-sans-serif, system-ui, sans-serif;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.35;
    color: inherit;
    transition: color 0.25s ease;
}

@media (min-width: 768px) {
    .product-card__title {
        font-size: 1.0625rem;
    }
}

.product-card:hover .product-card__title {
    color: #c9943c;
}

.product-card__desc {
    flex: 1;
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.6;
    color: rgba(61, 41, 24, 0.68);
}

.product-card__cta {
    display: inline-flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: auto;
    min-height: 2.75rem;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    background: #3d2918;
    color: #f9f6f0;
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 14px -6px rgba(61, 41, 24, 0.45);
    transition:
        background-color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.product-card__cta:hover {
    background: #c9943c;
    color: #fffdf9;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px -8px rgba(201, 148, 60, 0.55);
}

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

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

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

a:focus-visible,
button:focus-visible,
summary:focus-visible {
    outline: 2px solid #c9943c;
    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__image,
    .product-card__cta {
        transition: none;
    }

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