/* Shared navigation and responsive home-page layout. Loaded after Tailwind. */
html { -webkit-text-size-adjust: 100%; }
main { min-width: 0; }
:where(a, button, summary):focus-visible { outline: 3px solid #a96d40; outline-offset: 4px; }
:where(#buy, #colors, #how-it-works, #about, #faq, #contact) { scroll-margin-top: 24px; }

.site-header { position: relative; z-index: 50; background: #173f26; color: #fff; border-bottom: 1px solid #ffffff1a; }
.site-header-inner { max-width: 1800px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px clamp(24px, 4vw, 80px); }
.site-brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.site-brand img { width: 48px; height: 48px; object-fit: contain; }
.site-brand span { font-size: 13px; font-weight: 600; line-height: 1.55; letter-spacing: .22em; text-transform: uppercase; }
.brand-break { display: none; }
.desktop-navigation, .header-actions { display: flex; align-items: center; gap: 24px; }
.desktop-navigation a { padding-block: 12px; font-size: 14px; color: #ffffffd9; }
.desktop-navigation a:hover { color: #fff; }
.header-actions { gap: 16px; }
.header-buy { padding: 12px 22px; border-radius: 999px; background: #f4efe6; color: #173f26; font-size: 14px; font-weight: 600; white-space: nowrap; }
.header-cart, .mobile-menu summary { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid #ffffff30; border-radius: 50%; }
.header-cart { position: relative; flex-shrink: 0; }
.mobile-menu { display: none; }
.header-account .group:focus-within > div,
.mobile-menu-account .group:focus-within > div { visibility: visible; opacity: 1; }
.mobile-menu-account .group > div { right: auto; left: 0; max-width: calc(100vw - 100px); }

.product-purchase { flex-wrap: wrap; }
#selectedVariantPrice { white-space: nowrap; }
.color-options button { min-height: 44px; }
.color-options button[aria-pressed="true"] { box-shadow: 0 0 0 1px #173f26; }
.product-variant-image { max-width: 100%; }
.product-media { flex-direction: column; gap: 24px; }
.product-temperature { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(360px, 100%); margin: 0; padding: 18px 12px; border: 1px solid #173f2614; border-radius: 18px; background: #fffcf5ed; box-shadow: 0 8px 24px #173f2608; color: #173f26; }
.product-temperature-item { display: grid; grid-template-columns: 28px auto; align-items: center; justify-content: center; column-gap: 12px; row-gap: 2px; }
.product-temperature-item + .product-temperature-item { border-left: 1px solid #173f2626; }
.product-temperature-icon { grid-row: 1 / 3; width: 28px; height: 28px; }
.product-temperature-icon-warm { color: #a16840; }
.product-temperature dt { font-size: 12px; line-height: 1.4; }
.product-temperature dd { margin: 0; font-size: 23px; font-weight: 600; line-height: 1.3; white-space: nowrap; }
.product-temperature dd span { font-size: 12px; font-weight: 400; }

@media (max-width: 1199px) {
    .desktop-navigation { display: none; }
    .mobile-menu { display: block; }
    .mobile-menu summary { cursor: pointer; list-style: none; }
    .mobile-menu[open] summary { background: #ffffff1a; }
    .mobile-menu-panel { position: absolute; right: 20px; top: calc(100% - 1px); width: min(340px, calc(100vw - 40px)); padding: 12px 20px 20px; border: 1px solid #ffffff25; border-radius: 0 0 20px 20px; background: #173f26; box-shadow: 0 18px 30px #102f1c26; }
    .mobile-menu-panel > a { display: flex; justify-content: space-between; align-items: center; min-height: 48px; border-bottom: 1px solid #ffffff20; font-size: 15px; }
    .mobile-menu-panel > a span { color: #ffffff99; }
    .mobile-menu-account { margin-top: 20px; }
    .mobile-menu-account a { display: inline-flex; align-items: center; min-height: 44px; }
    .header-account { display: none; }
    .home-hero, .hero-content { min-height: 640px; }
    .hero-title { font-size: 64px; }
    .benefit-item { padding-inline: 20px; }
}

@media (max-width: 767px) {
    .site-header-inner { padding: 12px 20px; gap: 12px; }
    .site-brand { gap: 8px; }
    .site-brand img { width: 38px; height: 38px; }
    .site-brand span { font-size: 11px; letter-spacing: .17em; }
    .brand-break { display: block; }
    .header-actions { gap: 8px; }
    .header-buy { display: none; }

    .home-hero { display: flex; flex-direction: column; min-height: 0; }
    .home-hero .hero-decoration { display: none; }
    .home-hero .hero-image { position: static; order: 2; width: calc(100% - 40px); height: auto; aspect-ratio: 4 / 3; margin: 0 20px 24px; border-radius: 18px; object-fit: cover; opacity: 1; filter: none; }
    .hero-content { min-height: 0; width: 100%; padding: 32px 20px 24px; }
    .hero-content > div { width: 100%; }
    .hero-content > div > p:first-child { margin: 0 0 18px; padding: 8px 14px; font-size: 12px; }
    .hero-eyebrow { margin-bottom: 18px; gap: 10px; }
    .hero-eyebrow > span { width: 22px; }
    .hero-eyebrow p { font-size: 10px; line-height: 1.5; letter-spacing: .17em; }
    .hero-title { font-size: clamp(32px, 8.7vw, 52px); line-height: 1.08; letter-spacing: -.045em; }
    .hero-title svg { height: 7px; bottom: -7px; }
    .hero-description { margin-top: 24px; max-width: 560px; font-size: 16px; line-height: 1.65; color: #44483f; }
    .hero-actions { display: grid; grid-template-columns: 1.2fr 1fr; margin-top: 22px; gap: 10px; }
    .hero-actions a { min-height: 46px; justify-content: center; gap: 8px; padding: 12px 10px; font-size: 13px; box-shadow: none; }
    .hero-actions a:last-child { border-color: #173f2640; color: #173f26; background: transparent; }
    .hero-highlights { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 22px; padding-top: 16px; gap: 8px; font-size: 11px; line-height: 1.5; }
    .hero-highlights span { gap: 5px; align-items: flex-start; }

    .benefits-content { padding: 38px 20px; gap: 24px; }
    .benefits-content h2 { font-size: 28px; line-height: 1.15; }
    .benefits-content > div > p { max-width: none; margin-top: 16px; font-size: 16px; line-height: 1.65; color: #4d5148; }
    .benefits-list { gap: 0; }
    .benefit-item { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; row-gap: 5px; padding: 18px 0; border: 0; border-top: 1px solid #173f261a; text-align: left; }
    .benefit-item > div { grid-row: 1 / 3; width: 40px; height: 40px; margin: 0; font-size: 23px; color: #173f26; border-color: #173f2640; }
    .benefit-item h3 { font-size: 16px; line-height: 1.4; }
    .benefit-item p { grid-column: 2; margin: 0; font-size: 14px; line-height: 1.6; color: #56594f; }

    .product-section { padding: 0 16px 36px; }
    .product-card { border-radius: 20px; }
    .product-showcase-panel { min-height: 0; }
    .product-media { min-height: 0; height: auto; padding: 22px; gap: 20px; }
    .product-temperature { padding: 14px 8px; border-radius: 14px; }
    .product-temperature-item { grid-template-columns: 22px auto; column-gap: 8px; }
    .product-temperature-icon { width: 22px; height: 22px; }
    .product-temperature dd { font-size: 20px; }
    .product-variant-image { width: 200px; height: 266px; object-fit: contain; border-radius: 12px; filter: drop-shadow(0 10px 14px #173f2614); }
    .product-showcase-pedestal { height: 74px; bottom: -35px; }
    .product-details { min-width: 0; padding: 24px 20px; }
    .product-details > p:first-child { margin-bottom: 10px; font-size: 10px; line-height: 1.5; letter-spacing: .16em; }
    .product-details > h2 + p { margin-top: 12px; font-size: 15px; line-height: 1.6; letter-spacing: normal; }
    .product-details > h2 { font-size: 30px; line-height: 1.15; }
    .product-colors { margin-top: 22px; }
    .product-colors > p { margin-bottom: 12px; font-size: 14px; }
    .color-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    .color-options .variant-selector { min-width: 0; min-height: 76px; flex-direction: column; justify-content: center; gap: 7px; padding: 10px 3px; border-radius: 14px; font-size: 12px; line-height: 1.3; }
    .variant-selector > span { width: 24px; height: 24px; }
    .product-summary { margin-top: 20px; padding: 18px; }
    #selectedVariantTitle { font-size: 20px; }
    #selectedVariantDescription { margin-top: 8px; font-size: 14px; line-height: 1.6; }
    .product-specs { display: flex; flex-wrap: wrap; margin-top: 16px; gap: 6px; font-size: 12px; }
    .product-specs span { padding: 7px 10px; }
    .product-purchase { flex-direction: column; align-items: stretch; margin-top: 20px; gap: 14px; }
    #selectedVariantPrice { font-size: 30px; line-height: 1.2; }
    #productAddForm { min-width: 0; }
    #addToCartButton { min-height: 48px; padding: 12px 14px; font-size: 14px; }
    .product-delivery { margin-top: 16px; font-size: 12px; }

    .about-section, .about-content { min-height: 0; }
    .about-shade { background: #102f1c73; }
    .about-content { padding: 36px 20px; }
    .about-card { width: 100%; padding: 24px 18px; border: 1px solid #ffffff26; border-radius: 20px; background: #102f1cbd; }
    .about-card > p:first-child { margin-bottom: 14px; font-size: 10px; letter-spacing: .2em; }
    .about-card h2 { font-size: 29px; line-height: 1.15; text-wrap: balance; }
    .about-card > p:not(:first-child) { margin-top: 16px; font-size: 15px; line-height: 1.65; }
    .about-features { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 24px; }
    .about-features > div > div { width: 36px; height: 36px; font-size: 18px; border-color: #ffffff80; }
    .about-features p { margin-top: 10px; font-size: 11px; line-height: 1.5; }

    .faq-content { padding: 38px 20px; }
    #faq > div:first-child { margin-bottom: 22px; text-align: left; }
    #faq h2 { font-size: 28px; line-height: 1.15; text-wrap: balance; }
    #faq > div:first-child p { font-size: 15px; line-height: 1.65; }
    #faq summary { min-height: 52px; align-items: center; gap: 16px; font-size: 15px; line-height: 1.5; }
    #faq summary span:last-child { flex-shrink: 0; font-size: 21px; color: #173f26; }
    #faq details p { padding-right: 12px; font-size: 15px; line-height: 1.7; color: #50544a; }
    #faq > p { text-align: left; font-size: 14px; line-height: 1.65; }

    footer > div:first-child { gap: 24px; padding: 32px 20px; }
    footer nav { flex-direction: row; flex-wrap: wrap; column-gap: 20px; row-gap: 0; margin-top: 6px; }
    footer nav a, footer #contact a { display: inline-flex; align-items: center; min-height: 44px; }
    footer #contact > div { gap: 0; margin-top: 6px; }
    footer > div:last-child > div { padding-inline: 20px; }
    footer > div:last-child a { display: inline-flex; align-items: center; min-height: 40px; }

    /* Keep form fields legible and avoid focus zoom in mobile browsers. */
    input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select, textarea { font-size: 16px; }
    .commerce-page { padding: 32px 20px; }
    .commerce-page > div > div:first-child { margin-bottom: 24px; }
    .commerce-page h1 { font-size: 32px; line-height: 1.15; text-wrap: balance; }
    .commerce-page h2 { font-size: 21px; line-height: 1.3; }
    .commerce-page .p-7 { padding: 20px; border-radius: 20px; }
    .commerce-page aside { position: static; }
    .cart-item { padding: 18px; border-radius: 20px; }
    .cart-item-layout { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 16px; align-items: center; }
    .cart-item-layout > div:first-child { width: 84px; height: 112px; border-radius: 12px; }
    .cart-item-layout img { width: 78px; height: 104px; }
    .cart-item-layout h2 { font-size: 17px; }
    .cart-item-layout > div:last-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid #173f261a; }
    .cart-item-layout form:first-child { justify-content: flex-start; }
    .cart-item-layout > div:last-child > div { text-align: right; }
    .cart-item-layout form:last-child { grid-column: 1 / -1; }
    .cart-item-layout form:last-child button { min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .variant-selector, .product-variant-image, .hero-actions a { transition: none; }
}
