/* Good Lovin' Dog Chews — atelier template (natural pet 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(248, 246, 241, 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;
}

.header-nav {
    gap: 2.75rem;
}

.header-cta {
    margin-left: 0.5rem;
}

@media (min-width: 1280px) {
    .header-nav {
        gap: 3.25rem;
    }

    .header-cta {
        margin-left: 1rem;
    }
}

.header-nav > a,
.header-nav .nav-dropdown > button {
    padding-left: 0.125rem;
    padding-right: 0.125rem;
}

.header-nav-mobile {
    gap: 0.125rem;
}

.footer-affiliate-disclaimer {
    color: #1a2e22;
    background-color: #f5e6d3;
    border: 1px solid #2d5038;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
}

.footer-affiliate-disclaimer strong {
    color: #1a2e22;
    font-weight: 700;
}

.header-nav-mobile > a {
    padding-top: 0.875rem;
    padding-bottom: 0.875rem;
}

.mobile-guides {
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
}

.mobile-guides summary {
    padding-top: 0.875rem;
    padding-bottom: 0.875rem;
}

.mobile-guides__grid {
    column-gap: 1.25rem;
    row-gap: 0.625rem;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
}

.nav-dropdown__panel {
    position: absolute;
    left: 50%;
    top: 100%;
    z-index: 60;
    padding-top: 0.75rem;
    min-width: 15rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-50%) translateY(-4px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.nav-dropdown:hover .nav-dropdown__panel,
.nav-dropdown:focus-within .nav-dropdown__panel,
.nav-dropdown.is-open .nav-dropdown__panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown__inner {
    overflow: hidden;
    border-radius: 1rem;
    border: 1px solid rgba(26, 46, 34, 0.1);
    background: #fdfcf9;
    padding: 0.375rem;
    box-shadow: 0 16px 40px -20px rgba(26, 46, 34, 0.35);
}

.nav-dropdown__link {
    display: block;
    border-radius: 0.625rem;
    padding: 0.75rem 1rem;
    margin-bottom: 0.125rem;
    font-family: 'Roboto', 'Open Sans', ui-sans-serif, system-ui, sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    color: rgba(26, 46, 34, 0.85);
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.nav-dropdown__link:hover,
.nav-dropdown__link:focus-visible {
    background: rgba(198, 122, 61, 0.12);
    color: #c67a3d;
}

.nav-dropdown__link--active {
    background: rgba(45, 80, 56, 0.08);
    color: #2d5038;
}

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

.mobile-guides[open] .mobile-guides__chevron {
    transform: rotate(180deg);
}

.mobile-guides__chevron {
    transition: transform 0.2s ease;
}

.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(26, 46, 34, 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-grid--3 {
    grid-template-columns: 1fr;
}

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

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

.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border-radius: 1.25rem;
    border: 1px solid rgba(26, 46, 34, 0.1);
    background: #fdfcf9;
    box-shadow:
        0 1px 2px rgba(26, 46, 34, 0.04),
        0 8px 24px -12px rgba(26, 46, 34, 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(198, 122, 61, 0.35);
    box-shadow:
        0 4px 8px rgba(26, 46, 34, 0.06),
        0 20px 40px -16px rgba(26, 46, 34, 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, #f8f6f1 0%, #ede8de 48%, #e2dbd0 100%);
    border-bottom: 1px solid rgba(26, 46, 34, 0.08);
}

.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(26, 46, 34, 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: #c67a3d;
}

.product-card__desc {
    flex: 1;
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.6;
    color: rgba(26, 46, 34, 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: #2d5038;
    color: #f8f6f1;
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 14px -6px rgba(45, 80, 56, 0.45);
    transition:
        background-color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.product-card__cta:hover {
    background: #c67a3d;
    color: #fdfcf9;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px -8px rgba(198, 122, 61, 0.55);
}

.amazon-bestseller-card .product-card__desc {
    min-height: 4.5rem;
}

@media (min-width: 768px) {
    .amazon-bestseller-card .product-card__title {
        min-height: 3rem;
    }
}

.product-card__cta:focus-visible {
    outline: 2px solid #c67a3d;
    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 #c67a3d;
    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;
    }
}
