/* Golden Harvest Tobacco — atelier template (tobacco harvest 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(246, 242, 235, 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; }
.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: 16rem;
    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(61, 48, 40, 0.12);
    background: #f6f2eb;
    padding: 0.375rem;
    box-shadow: 0 16px 40px -20px rgba(61, 48, 40, 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(44, 34, 24, 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(184, 134, 11, 0.12);
    color: #b8860b;
}

.nav-dropdown__link--active {
    background: rgba(61, 48, 40, 0.08);
    color: #3d3028;
}

.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(61, 48, 40, 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(61, 48, 40, 0.1);
    background: #f9f5ee;
    box-shadow: 0 1px 2px rgba(61, 48, 40, 0.04), 0 8px 24px -12px rgba(61, 48, 40, 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(184, 134, 11, 0.35);
    box-shadow: 0 4px 8px rgba(61, 48, 40, 0.06), 0 20px 40px -16px rgba(61, 48, 40, 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, #f6f2eb 0%, #e8dfd2 48%, #ddd4c8 100%);
    border-bottom: 1px solid rgba(61, 48, 40, 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(61, 48, 40, 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: #b8860b; }

.product-card__desc {
    flex: 1;
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.6;
    color: rgba(44, 34, 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: #3d3028;
    color: #f6f2eb;
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 14px -6px rgba(61, 48, 40, 0.45);
    transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card__cta:hover {
    background: #b8860b;
    color: #f6f2eb;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px -8px rgba(184, 134, 11, 0.55);
}

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

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

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

.review-card {
    border-radius: 1.25rem;
    border: 1px solid rgba(61, 48, 40, 0.1);
    background: #f9f5ee;
    padding: 1.5rem;
    box-shadow: 0 8px 24px -12px rgba(61, 48, 40, 0.15);
}

.review-card__stars {
    color: #b8860b;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    font-weight: 700;
}

.review-card__quote {
    margin-top: 0.75rem;
    font-size: 0.9375rem;
    line-height: 1.65;
    color: rgba(44, 34, 24, 0.82);
}

.review-card__meta {
    margin-top: 1rem;
    font-size: 0.8125rem;
    color: rgba(107, 93, 79, 1);
}

.review-card__author {
    font-weight: 700;
    color: #2c2218;
}

.footer-affiliate-disclaimer {
    color: #2c2218;
    background-color: #fff8e8;
    border: 1px solid #b8860b;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
}

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

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

a:focus-visible,
button:focus-visible,
summary:focus-visible {
    outline: 2px solid #b8860b;
    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; }
}
