/* =========================================
   SAGE FAMILIAR
   Custom Fonts
   ========================================= */

@font-face {
    font-family: "Roman Uncial Modern";
    src: url("fonts/roman-uncial-modern/RomanUncialModern.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Cupola";
    src: url("fonts/cupola/CupolaRegular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Cupola";
    src: url("fonts/cupola/CupolaBold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Cupola";
    src: url("fonts/cupola/CupolaItalic.ttf") format("truetype");
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "Cupola";
    src: url("fonts/cupola/CupolaBoldItalic.ttf") format("truetype");
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

/* =========================================
   BRAND COLORS & TYPOGRAPHY
   ========================================= */

:root {
    --sage: #87977C;
    --woodland: #53634C;
    --moss: #C3CEB9;
    --ivory: #F8F4EC;
    --rose: #C99E95;
    --text: #454D40;
    --muted: #747B6A;
    --white: #FFFCF7;
    --heading-font: "Roman Uncial Modern", Georgia, serif;
    --body-font: "Cupola", sans-serif;
}

/* =========================================
   GLOBAL SETTINGS
   ========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 120px;
}

body {
    background-color: var(--ivory);
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='grain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' opacity='.035' filter='url(%23grain)'/%3E%3C/svg%3E");
    color: var(--text);
    font-family: var(--body-font);
    font-weight: 400;
    font-size: 18px;
    line-height: 1.8;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

h1, h2, h3 {
    font-family: var(--heading-font);
    color: var(--woodland);
    font-weight: 400;
    line-height: 1.15;
}

h2 {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

h3 {
    font-size: 1.8rem;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

p {
    margin-bottom: 15px;
}

.eyebrow {
    color: var(--woodland);
    font-family: var(--body-font);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 18px;
}

/* =========================================
   ANNOUNCEMENT BAR
   ========================================= */

.announcement-bar {
    background-color: var(--sage);
    color: var(--white);
    text-align: center;
    padding: 8px 20px;
    font-style: italic;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

/* =========================================
   HEADER & NAVIGATION
   ========================================= */

.site-header {
    background-color: rgba(248, 244, 236, 0.97);
    border-bottom: 3px double var(--moss);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.brand img {
    width: 70px;
    height: 70px;
    object-fit: contain;
}

.brand span {
    font-family: var(--heading-font);
    font-size: 2rem;
    font-weight: 400;
    color: var(--woodland);
    letter-spacing: 0.5px;
}

.navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
}

.navigation a {
    font-family: var(--body-font);
    font-size: 1rem;
    font-weight: 700;
    color: var(--woodland);
    letter-spacing: 0.2px;
    position: relative;
    transition: color 0.3s ease;
}

.navigation a:hover {
    color: #91675E;
}

.navigation a::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--rose);
    transition: width 0.3s ease;
}

.navigation a:hover::after {
    width: 100%;
}

/* =========================================
   HERO SECTION
   ========================================= */

.hero {
    position: relative;
    margin: auto;
    padding: 65px 8% 85px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
    background-color: var(--ivory);
    background-image: url("images/paper-texture.png");
    background-size: 300px auto;
    background-position: center;
    background-repeat: repeat;
}

.hero-content {
    max-width: 580px;
}

.hero h1 {
    font-size: clamp(2rem, 3vw, 3.2rem);
    line-height: 1.25;
    letter-spacing: 0;
    margin-bottom: 24px;
}

.hero .eyebrow::before {
    content: "✧";
    margin-right: 12px;
    color: var(--sage);
    font-size: 1rem;
}

.hero .tagline {
    font-style: italic;
    font-size: 1.1rem;
    color: var(--woodland);
    margin-bottom: 24px;
}

.hero-content > p:not(.eyebrow):not(.tagline) {
    color: var(--muted);
    max-width: 450px;
}

.hero-image img {
    width: 100%;
    max-width: 600px;
    margin: auto;
}

/* =========================================
   BUTTONS
   ========================================= */

.button {
    display: inline-block;
    background-color: var(--woodland);
    color: var(--white);
    border: 1px solid var(--woodland);
    border-radius: 2px;
    outline: 1px solid rgba(248, 244, 236, 0.5);
    outline-offset: -5px;
    padding: 13px 30px;
    margin-top: 15px;
    font-family: var(--body-font);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.button:not(:disabled):hover {
    background-color: var(--sage);
    border-color: var(--sage);
    transform: translateY(-2px);
}

.button:disabled {
    opacity: 0.65;
    cursor: default;
}

/* =========================================
   DECORATIVE DIVIDERS
   ========================================= */

.hero-content::after,
.explore-section h2::after,
.plant-finder h2::after,
.cabinet-section h2::after,
.about-familiar h2::after,
.newsletter h2::after,
.site-footer::before {
    content: "";
    display: block;
    max-width: 100%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

/* Hero celestial divider */

.hero-content::after {
    width: 320px;
    height: 100px;
    margin-top: 25px;
    background-image: url("images/divider-celestial.png");
}

/* Floral section dividers */

.explore-section h2::after,
.plant-finder h2::after,
.cabinet-section h2::after,
.about-familiar h2::after,
.newsletter h2::after {
    width: 280px;
    height: 85px;
    margin: 10px auto 0;
    background-image: url("images/divider-floral.png");
}

/* Footer celestial divider */

.site-footer::before {
    width: 280px;
    height: 85px;
    margin: 0 auto 20px;
    background-image: url("images/divider-celestial.png");
}

/* =========================================
   EXPLORE OUR LITTLE WORLD
   ========================================= */

.explore-section {
    padding: 75px 8%;
    text-align: center;
    border-top: 1px solid var(--moss);
    background-color: var(--white);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto 0;
}

/* Antique arched category cards */

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient( 160deg, #FFFCF7, #F0EEE4 );
    border: 1px solid var(--moss);
    border-radius: 160px 160px 8px 8px;
    outline: 1px solid var(--moss);
    outline-offset: -8px;
    padding: 50px 30px 35px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(83, 99, 76, 0.09);
}

/* Botanical category icons */

.category-icon {
    display: block;
    width: 150px;
    height: 150px;
    object-fit: contain;
    flex-shrink: 0;
    margin: 0 auto 20px;
}

/* Category descriptions */

.category-card p {
    color: var(--muted);
    font-size: 1.1rem;
    line-height: 1.7;
    flex-grow: 1;
}

/* Dusty rose decorative stars */

.category-card::after {
    content: "✧";
    display: block;
    color: var(--rose);
    font-size: 1.3rem;
    margin-top: 15px;
}

/* =========================================
   PLANT FINDER
   ========================================= */

.plant-finder {
    background-color: #E3E8DA;
    text-align: center;
    padding: 85px 10%;
}

.plant-finder::before {
    content: "";
    display: block;
    width: 100px;
    height: 140px;
    margin: 0 auto 20px;
    background-image: url("images/icon-ivy.png");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

/* =========================================
   CURIOSITY CABINET
   ========================================= */

.cabinet-section {
    text-align: center;
    padding: 85px 8%;
    background-color: var(--ivory);
}

.cabinet-section p {
    color: var(--muted);
}

/* =========================================
   MEET OUR FAMILIAR
   ========================================= */

.about-familiar {
    background-color: #F0E5DF;
    text-align: center;
    padding: 75px 10%;
    border-top: 1px solid #E4D3C9;
    border-bottom: 1px solid #E4D3C9;
}

.about-familiar p {
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

/* =========================================
   LETTERS FROM THE HEARTH
   ========================================= */

.newsletter {
    background-color: var(--ivory);
    padding: 70px 8%;
    text-align: center;
}

.newsletter img {
    width: 155px;
    margin: 0 auto 25px;
}

.newsletter p {
    color: var(--muted);
}

/* =========================================
   FOOTER
   ========================================= */

.site-footer {
    background-color: var(--woodland);
    color: var(--ivory);
    text-align: center;
    padding: 50px 20px 30px;
    border-top: 5px double var(--moss);
}

.site-footer h3 {
    color: var(--ivory);
    font-size: 2.4rem;
}

.site-footer p {
    font-size: 0.9rem;
    font-style: italic;
}

.site-footer p:last-child {
    font-style: normal;
    font-size: 0.75rem;
    opacity: 0.8;
    margin-top: 30px;
}

/* =========================================
   SHARED CATEGORY PAGE HERO
   ========================================= */

.page-hero {
    text-align: center;
    padding: 60px 8% 50px;
    background-color: var(--ivory);
    background-image: url("images/paper-texture.png");
    background-size: 300px auto;
    background-position: center;
    background-repeat: repeat;
}

.page-icon {
    width: 160px;
    height: 160px;
    object-fit: contain;
    margin: 0 auto 20px;
}

.page-hero h1 {
    font-size: clamp(2.8rem, 5vw, 4.5rem);
    margin-bottom: 15px;
}

.page-tagline {
    font-style: italic;
    font-size: 1.3rem;
    color: var(--woodland);
}

.page-description {
    max-width: 750px;
    margin: 20px auto 0;
    color: var(--muted);
    font-size: 1.15rem;
    line-height: 1.8;
}

.page-hero::after {
    content: "";
    display: block;
    width: 320px;
    max-width: 100%;
    height: 100px;
    margin: 20px auto 0;
    background: url("images/divider-floral.png") center / contain no-repeat;
}

/* =========================================
   HERBARIUM PAGE
   ========================================= */

.herbarium-finder,
.plant-collections,
.plant-essentials,
.botanical-library {
    text-align: center;
    padding: 75px 8%;
}

.herbarium-finder {
    background-color: #E3E8DA;
}

.plant-collections {
    background-color: var(--white);
}

.plant-essentials {
    background-color: var(--ivory);
}

.botanical-library {
    background-color: #E3E8DA;
}

.herbarium-finder > p:not(.eyebrow),
.plant-essentials > p:not(.eyebrow),
.botanical-library > p:not(.eyebrow) {
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

/* Herbarium decorative dividers */

.herbarium-finder h2::after,
.plant-collections h2::after,
.plant-essentials h2::after,
.botanical-library h2::after {
    content: "";
    display: block;
    width: 280px;
    max-width: 100%;
    height: 85px;
    margin: 10px auto 0;
    background: url("images/divider-floral.png") center / contain no-repeat;
}

/* =========================================
   PLANT COLLECTION CARDS
   ========================================= */

.plant-collection-grid {
    display: grid;
    grid-template-columns: repeat( auto-fit, minmax(min(230px, 100%), 1fr) );
    gap: 25px;
    max-width: 1200px;
    margin: 40px auto 0;
}

/* Antique arched cards */

.plant-collection-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient( 160deg, var(--white), #F0EEE4 );
    border: 1px solid var(--moss);
    border-radius: 100px 100px 8px 8px;
    outline: 1px solid var(--moss);
    outline-offset: -7px;
    padding: 40px 25px 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.plant-collection-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(83, 99, 76, 0.09);
}

/* Botanical collection illustrations */

.collection-icon {
    display: block;
    width: 180px;
    height: 180px;
    max-width: 100%;
    object-fit: contain;
    flex-shrink: 0;
    margin: 0 auto 20px;
}

/* Compact Plant Care Essentials illustrations */

.plant-essentials .collection-icon {
    width: 145px;
    height: 145px;
    margin-bottom: 15px;
}

.plant-essentials .plant-collection-card {
    padding: 35px 25px 25px;
}

.plant-essentials .plant-collection-card::after {
    margin-top: 10px;
}

/* Collection headings */

.plant-collection-card h3 {
    font-size: 1.6rem;
    min-height: 2.5em;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Collection descriptions */

.plant-collection-card p {
    color: var(--muted);
    font-size: 1.1rem;
    line-height: 1.7;
    flex-grow: 1;
}

/* Dusty rose decorative stars */

.plant-collection-card::after {
    content: "✧";
    display: block;
    color: var(--rose);
    font-size: 1.3rem;
    margin-top: 15px;
}

/* Active navigation link */

.navigation a[aria-current="page"] {
    color: #91675E;
}

.navigation a[aria-current="page"]::after {
    width: 100%;
}

/* =========================================
   TABLET RESPONSIVENESS
   ========================================= */

@media (max-width: 1100px) {
    html {
        scroll-padding-top: 180px;
    }

    .site-header {
        flex-direction: column;
        gap: 15px;
    }

    .navigation {
        gap: 18px;
    }

    .hero {
        gap: 30px;
        padding: 65px 6% 85px;
    }
}

/* =========================================
   MOBILE RESPONSIVENESS
   ========================================= */

@media (max-width: 768px) {
    html {
        scroll-padding-top: 20px;
    }

    .site-header {
        position: relative;
    }

    .brand span {
        font-size: 1.9rem;
    }

    .navigation {
        gap: 10px 18px;
    }

    .navigation a {
        font-size: 1rem;
    }

    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 40px 7% 50px;
    }

    .hero h1 {
        font-size: clamp(2rem, 7vw, 3rem);
    }

    .hero-content {
        margin: auto;
    }

    .hero-content > p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-content::after {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-image {
        grid-row: 1;
    }

    .hero-image img {
        max-width: 360px;
    }

    .category-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .category-card {
        padding: 45px 25px 30px;
    }

    .explore-section,
    .plant-finder,
    .cabinet-section,
    .about-familiar,
    .newsletter {
        padding: 55px 7%;
    }
}

/* =========================================
   CLICKABLE CATEGORY CARDS
   ========================================= */

a.category-card {
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

a.category-card:focus-visible {
    outline: 2px solid var(--sage);
    outline-offset: 5px;
}

/* =========================================
   THE FAMILIAR PAGE
   ========================================= */

.companion-collections,
.companion-essentials,
.familiar-guide {
    text-align: center;
    padding: 75px 8%;
}

/* Section backgrounds */

.companion-collections {
    background-color: var(--white);
}

.companion-essentials {
    background-color: #F0E5DF;
}

.familiar-guide {
    background-color: var(--ivory);
}

/* Section descriptions */

.companion-essentials > p:not(.eyebrow),
.familiar-guide > p:not(.eyebrow) {
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

/* Decorative floral dividers */

.companion-collections h2::after,
.companion-essentials h2::after,
.familiar-guide h2::after {
    content: "";
    display: block;
    width: 280px;
    max-width: 100%;
    height: 85px;
    margin: 10px auto 0;
    background: url("images/divider-floral.png") center / contain no-repeat;
}

/* Feline and canine collection cards */

.companion-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 850px;
}

.companion-grid .plant-collection-card {
    border-radius: 160px 160px 8px 8px;
    padding: 50px 35px 35px;
}

.companion-grid .collection-icon {
    width: 220px;
    height: 220px;
}

/* Everyday essentials collection cards */

.companion-essentials-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 1100px;
}

.companion-essentials-grid .collection-icon {
    width: 145px;
    height: 145px;
    margin-bottom: 15px;
}

.companion-essentials-grid .plant-collection-card {
    padding: 35px 25px 25px;
}

/* Meet our resident familiar */

.resident-familiar {
    background-color: #E3E8DA;
}

.resident-familiar-image {
    width: 350px;
    max-width: 100%;
    margin: 0 auto 30px;
}

.familiar-signature {
    font-style: italic;
    color: var(--woodland);
    font-size: 1.2rem;
}

/* Clickable collection cards */

a.plant-collection-card {
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

a.plant-collection-card:focus-visible {
    outline: 2px solid var(--sage);
    outline-offset: 5px;
}

/* Familiar tablet layout */

@media (max-width: 900px) {
    .companion-essentials-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Familiar mobile layout */

@media (max-width: 600px) {
    .companion-grid,
    .companion-essentials-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .companion-collections,
    .companion-essentials,
    .familiar-guide {
        padding: 55px 7%;
    }

    .companion-grid .collection-icon {
        width: 180px;
        height: 180px;
    }
}

/* =========================================
   THE HEARTH PAGE
   ========================================= */

.hearth-collections,
.hearth-finder,
.hearth-journal {
    text-align: center;
    padding: 75px 8%;
}

/* Section backgrounds */

.hearth-collections {
    background-color: var(--white);
}

.hearth-finder {
    background-color: #E3E8DA;
}

.hearth-journal {
    background-color: #F0E5DF;
}

/* Section descriptions */

.hearth-collections > p:not(.eyebrow),
.hearth-finder > p:not(.eyebrow),
.hearth-journal > p:not(.eyebrow) {
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

/* Decorative floral dividers */

.hearth-collections h2::after,
.hearth-finder h2::after,
.hearth-journal h2::after {
    content: "";
    display: block;
    width: 280px;
    max-width: 100%;
    height: 85px;
    margin: 10px auto 0;
    background: url("images/divider-floral.png") center / contain no-repeat;
}

/* Home collection cards */

.hearth-collection-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 1100px;
}

.hearth-collection-grid .plant-collection-card {
    border-radius: 120px 120px 8px 8px;
    padding: 40px 30px 30px;
}

.hearth-collection-grid .collection-icon {
    width: 180px;
    height: 180px;
    margin-bottom: 20px;
}

/* Home aesthetic finder */

.hearth-finder::before {
    content: "";
    display: block;
    width: 110px;
    height: 140px;
    margin: 0 auto 20px;
    background: url("images/icon-star.png") center / contain no-repeat;
}

.hearth-finder .button {
    margin-top: 15px;
}

/* Hearth tablet layout */

@media (max-width: 900px) {
    .hearth-collection-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Hearth mobile layout */

@media (max-width: 600px) {
    .hearth-collection-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .hearth-collections,
    .hearth-finder,
    .hearth-journal {
        padding: 55px 7%;
    }
}

/* =========================================
   THE CURIOSITY CABINET PAGE
   ========================================= */

.cabinet-featured,
.cabinet-collections,
.cabinet-finder {
    text-align: center;
    padding: 75px 8%;
}

/* Section backgrounds */

.cabinet-featured {
    background-color: #E3E8DA;
}

.cabinet-collections {
    background-color: var(--white);
}

.cabinet-finder {
    background-color: #F0E5DF;
}

/* Section descriptions */

.cabinet-featured > p:not(.eyebrow),
.cabinet-collections > p:not(.eyebrow),
.cabinet-finder > p:not(.eyebrow) {
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

/* Decorative floral dividers */

.cabinet-featured h2::after,
.cabinet-collections h2::after,
.cabinet-finder h2::after {
    content: "";
    display: block;
    width: 280px;
    max-width: 100%;
    height: 85px;
    margin: 10px auto 0;
    background: url("images/divider-floral.png") center / contain no-repeat;
}

/* Featured treasures */

.featured-treasure-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
    max-width: 1100px;
    margin: 40px auto 0;
}

.featured-treasure-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient( 160deg, var(--white), #F0EEE4 );
    border: 1px solid var(--moss);
    border-radius: 8px;
    outline: 1px solid var(--moss);
    outline-offset: -7px;
    padding: 35px 25px 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-treasure-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(83, 99, 76, 0.09);
}

.treasure-symbol {
    display: block;
    color: var(--sage);
    font-family: Georgia, serif;
    font-size: 3.5rem;
    line-height: 1;
    margin-bottom: 25px;
}

.featured-treasure-card h3 {
    font-size: 1.6rem;
}

.featured-treasure-card p {
    color: var(--muted);
    font-size: 1.1rem;
    flex-grow: 1;
}

.featured-treasure-card .treasure-status {
    color: #91675E;
    font-style: italic;
    font-size: 1rem;
    flex-grow: 0;
    margin-top: 10px;
}

/* Cabinet collection cards */

.cabinet-collection-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 1100px;
}

.cabinet-collection-grid .plant-collection-card {
    border-radius: 120px 120px 8px 8px;
    padding: 40px 30px 30px;
}

.cabinet-collection-grid .collection-icon {
    width: 180px;
    height: 180px;
    margin-bottom: 20px;
}

/* Gift finder */

.cabinet-finder .button {
    margin-top: 15px;
}

/* Cabinet tablet layout */

@media (max-width: 900px) {
    .cabinet-collection-grid,
    .featured-treasure-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Cabinet mobile layout */

@media (max-width: 600px) {
    .cabinet-collection-grid,
    .featured-treasure-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .cabinet-featured,
    .cabinet-collections,
    .cabinet-finder {
        padding: 55px 7%;
    }
}

/* Curiosity Cabinet Hero Icon */

.cabinet-hero .page-icon {
    width: 320px;
    height: 320px;
    max-width: 100%;
}

/* ========================================
   THE GRIMOIRE
======================================== */

.grimoire-tools,
.grimoire-library,
.grimoire-closing {
    text-align: center;
    padding: 75px 8%;
}

.grimoire-tools {
    background-color: #E3E8DA;
}

.grimoire-library {
    background-color: var(--white);
}

.grimoire-closing {
    background-color: #F0E5DF;
}

.grimoire-tools > p:not(.eyebrow),
.grimoire-library > p:not(.eyebrow),
.grimoire-closing > p:not(.eyebrow) {
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

/* Decorative Dividers */

.grimoire-tools h2::after,
.grimoire-library h2::after,
.grimoire-closing h2::after {
    content: "";
    display: block;
    width: 280px;
    max-width: 100%;
    height: 85px;
    margin: 10px auto 0;
    background: url("images/divider-floral.png") center / contain no-repeat;
}

/* Interactive Tool Cards */

.grimoire-tool-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 1100px;
}

.grimoire-tool-grid .plant-collection-card {
    border-radius: 120px 120px 8px 8px;
    padding: 45px 30px 30px;
}

.grimoire-tool-grid .collection-icon {
    width: 190px;
    height: 190px;
    margin-bottom: 20px;
}

.grimoire-tool-grid .button {
    margin-top: 15px;
}

/* Library and Journal Cards */

.grimoire-library-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    max-width: 1000px;
    margin: 40px auto 0;
}

.grimoire-library-card {
    display: flex;
    align-items: center;
    gap: 35px;
    text-align: left;
    padding: 40px;
    background: linear-gradient( 160deg, var(--white), #F0EEE4 );
    border: 1px solid var(--moss);
    border-radius: 8px;
    outline: 1px solid var(--moss);
    outline-offset: -7px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grimoire-library-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(83, 99, 76, 0.09);
}

.grimoire-library-icon {
    width: 200px;
    height: 200px;
    object-fit: contain;
    flex-shrink: 0;
}

.grimoire-library-content {
    flex: 1;
}

.grimoire-library-content h3 {
    font-size: 1.8rem;
}

.grimoire-library-content p:not(.eyebrow) {
    color: var(--muted);
    font-size: 1.1rem;
    line-height: 1.7;
}

.grimoire-library-content .grimoire-status {
    color: #91675E;
    font-style: italic;
    margin-bottom: 0;
}

/* Closing Section */

.grimoire-closing .page-tagline {
    margin-top: 25px;
    color: var(--woodland);
}

/* Responsive Layout */

@media (max-width: 900px) {
    .grimoire-tool-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .grimoire-library-icon {
        width: 160px;
        height: 160px;
    }
}

@media (max-width: 600px) {
    .grimoire-tools,
    .grimoire-library,
    .grimoire-closing {
        padding: 55px 7%;
    }

    .grimoire-tool-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .grimoire-library-card {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 30px 25px;
    }

    .grimoire-library-icon {
        width: 180px;
        height: 180px;
    }
}

.grimoire-hero .page-icon {
    width: 420px;
    height: 320px;
    max-width: 100%;
    object-fit: contain;
    margin: 0 auto 20px;
}

/* ========================================
   HOMEPAGE CABINET & GRIMOIRE
======================================== */

/* Curiosity Cabinet Illustration */

.homepage-cabinet-icon {
    display: block;
    width: 320px;
    height: 320px;
    max-width: 100%;
    object-fit: contain;
    margin: 0 auto 20px;
}

/* The Grimoire Homepage Section */

.grimoire-section {
    text-align: center;
    padding: 75px 8%;
    background-color: #F0E5DF;
}

.homepage-grimoire-icon {
    display: block;
    width: 420px;
    height: 320px;
    max-width: 100%;
    object-fit: contain;
    margin: 0 auto 20px;
}

.grimoire-section h2::after {
    content: "";
    display: block;
    width: 280px;
    max-width: 100%;
    height: 85px;
    margin: 10px auto 0;
    background: url("images/divider-floral.png") center / contain no-repeat;
}

.grimoire-section > p:not(.eyebrow) {
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

.grimoire-section .page-tagline {
    font-style: italic;
    color: var(--woodland);
    font-size: 1.3rem;
}

.grimoire-section .button {
    margin-top: 15px;
}

/* Responsive Homepage Adjustments */

@media (max-width: 600px) {
    .grimoire-section {
        padding: 55px 7%;
    }

    .homepage-cabinet-icon {
        width: 260px;
        height: 260px;
    }

    .homepage-grimoire-icon {
        width: 340px;
        height: 260px;
    }
}

/* ========================================
   COLLECTION PAGES
======================================== */

/* Breadcrumb Navigation */

.breadcrumb {
    color: var(--muted);
}

/* Collection Hero */

.collection-hero .page-icon {
    max-width: 100%;
    object-fit: contain;
}

/* Collection Filters */

.collection-filters {
    background-color: #E3E8DA;
    text-align: center;
}

.collection-filters > p:not(.eyebrow) {
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.collection-filters h2::after {
    content: "";
    display: block;
    width: 280px;
    max-width: 100%;
    margin: 10px auto 0;
    background: url("images/divider-floral.png") center / contain no-repeat;
}

.filter-grid {
    display: grid;
    gap: 20px;
    max-width: 1200px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.filter-group label {
    font-family: var(--body-font);
    font-weight: bold;
    font-size: 0.95rem;
    color: var(--woodland);
}

.filter-group input,
.filter-group select {
    width: 100%;
    min-width: 0;
    min-height: 50px;
    padding: 12px 15px;
    border: 1px solid var(--sage);
    border-radius: 5px;
    background-color: var(--white);
    color: var(--text);
    font-family: var(--body-font);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.filter-group input::placeholder {
    color: var(--muted);
    opacity: 0.85;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: var(--woodland);
    box-shadow: 0 0 0 3px rgba(135, 151, 124, 0.2);
}

.filter-group select {
    cursor: pointer;
}

#clear-filters {
    margin-top: 10px;
}

/* Product Collection */

.product-collection {
    background-color: var(--white);
    text-align: center;
}

.product-collection h2::after {
    content: "";
    display: block;
    width: 280px;
    max-width: 100%;
    margin: 10px auto 0;
    background: url("images/divider-floral.png") center / contain no-repeat;
}

#product-count {
    color: var(--muted);
    font-style: italic;
    font-size: 1rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 35px auto 0;
}

/* Individual Product Cards */

.product-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: linear-gradient( 160deg, var(--white), #F0EEE4 );
    border: 1px solid var(--moss);
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(83, 99, 76, 0.09);
}

/* Product Images */

.product-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 250px;
    background: radial-gradient( ellipse at center, #F8F4EC, #E3E8DA );
    border-bottom: 1px solid var(--moss);
}

.product-image-placeholder span {
    font-family: Georgia, serif;
    font-size: 5rem;
    color: var(--sage);
}

.product-image {
    display: block;
    width: 100%;
    height: 250px;
    object-fit: contain;
    background-color: var(--ivory);
    border-bottom: 1px solid var(--moss);
}

/* Product Information */

.product-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;
    padding: 30px 25px;
}

.product-scientific-name {
    font-style: italic;
    font-size: 0.95rem;
    color: var(--muted);
    margin-bottom: 8px;
}

.product-content h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.product-content > p:not(.product-scientific-name) {
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.7;
    flex-grow: 1;
}

/* Product Tags */

.product-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 15px 0 25px;
}

.product-tags span {
    display: inline-block;
    padding: 5px 12px;
    background-color: #E3E8DA;
    border: 1px solid var(--moss);
    border-radius: 20px;
    color: var(--woodland);
    font-size: 0.8rem;
    line-height: 1.5;
}

.product-content .button {
    width: 100%;
    margin-top: auto;
    text-align: center;
}

/* Collection Closing */

.collection-closing {
    padding: 75px 8%;
    background-color: #F0E5DF;
    text-align: center;
}

.collection-closing h2::after {
    content: "";
    display: block;
    width: 280px;
    max-width: 100%;
    height: 85px;
    margin: 10px auto 0;
    background: url("images/divider-floral.png") center / contain no-repeat;
}

.collection-closing > p:not(.eyebrow) {
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.collection-closing .button {
    margin-top: 15px;
}

/* ========================================
   COLLECTION PAGE RESPONSIVENESS
======================================== */

@media (max-width: 1100px) {
    .filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .breadcrumb {
        padding: 15px 7%;
        gap: 8px;
        font-size: 0.8rem;
    }

    .collection-hero .page-icon {
        width: 180px;
        height: 180px;
    }

    .collection-filters,
    .product-collection,
    .collection-closing {
        padding: 55px 7%;
    }

    .filter-grid,
    .product-grid {
        grid-template-columns: 1fr;
    }

    .product-grid {
        gap: 25px;
    }

    .product-image,
    .product-image-placeholder {
        height: 220px;
    }
}

/* ========================================
   COLLECTION PAGE SPACING REFINEMENTS
======================================== */

.collection-hero {
    padding: 30px 8% 25px;
}

.collection-hero .page-icon {
    width: 160px;
    height: 160px;
    margin-bottom: 10px;
}

.collection-hero h1 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
}

.collection-hero .page-description {
    margin-top: 12px;
}

.collection-hero::after {
    height: 65px;
    margin-top: 10px;
}

.collection-filters {
    padding: 40px 8%;
}

.collection-filters h2::after {
    height: 60px;
    margin-top: 5px;
}

.filter-grid {
    margin: 25px auto 15px;
}

.product-collection {
    padding: 45px 8% 60px;
}

.product-collection h2::after {
    height: 65px;
}

@media (max-width: 600px) {
    .collection-hero,
    .collection-filters,
    .product-collection {
        padding-left: 7%;
        padding-right: 7%;
    }

    .collection-hero .page-icon {
        width: 140px;
        height: 140px;
    }
}

/* ========================================
   EMPTY COLLECTION STATE
======================================== */

.empty-collection {
    grid-column: 1 / -1;
    padding: 50px 25px;
    background: linear-gradient( 160deg, var(--white), #F0EEE4 );
    border: 1px solid var(--moss);
    border-radius: 12px;
    text-align: center;
}

.empty-collection > span {
    font-family: Georgia, serif;
    line-height: 1.2;
    margin-bottom: 20px;
}

.empty-collection h3 {
    margin-bottom: 10px;
}

.empty-collection p {
    color: var(--muted);
    max-width: 500px;
    margin: 0 auto;
}

/* Adaptive Collection Filters */

.filter-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
}

/* ========================================
   MINI PLANT COLLECTION NAVIGATION
======================================== */

.mini-collection-navigation {
    padding: 30px 8%;
    background-color: var(--ivory);
    text-align: center;
    border-bottom: 1px solid var(--moss);
}

.mini-collection-navigation h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.mini-collection-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    max-width: 850px;
    margin: 0 auto;
}

.mini-collection-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 12px 15px;
    background: linear-gradient( 160deg, var(--white), #F0EEE4 );
    border: 1px solid var(--moss);
    border-radius: 65px 65px 8px 8px;
    outline: 1px solid var(--moss);
    outline-offset: -5px;
    color: var(--woodland);
    text-decoration: none;
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.mini-collection-card img {
    display: block;
    width: 85px;
    height: 85px;
    max-width: 100%;
    object-fit: contain;
}

.mini-collection-card h3 {
    font-size: 1.1rem;
    line-height: 1.4;
    margin: 0;
    min-height: 2.8em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mini-collection-card::after {
    content: "✧";
    color: var(--rose);
    font-size: 1rem;
}

.mini-collection-card:hover {
    transform: translateY(-4px);
    border-color: var(--sage);
    box-shadow: 0 8px 20px rgba(83, 99, 76, 0.10);
}

.mini-collection-card:focus-visible {
    outline: 2px solid var(--woodland);
    outline-offset: 3px;
}

/* Current Collection */

.mini-collection-card[aria-current="page"] {
    background: linear-gradient( 160deg, #E3E8DA, var(--moss) );
    border-color: var(--sage);
    outline-color: var(--sage);
}

.mini-collection-card[aria-current="page"]::after {
    content: "✦";
    color: var(--woodland);
}

/* Responsive Navigation */

@media (max-width: 700px) {
    .mini-collection-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 450px;
        gap: 15px;
    }

    .mini-collection-card img {
        width: 70px;
        height: 70px;
    }

    .mini-collection-card h3 {
        font-size: 1rem;
    }

    .mini-collection-navigation {
        padding: 25px 7%;
    }
}

/* ========================================
   SIX-FIELD COLLECTION FILTER LAYOUT
======================================== */

.filter-grid:has(> .filter-group:nth-child(6):last-child) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 900px) {
    .filter-grid:has(> .filter-group:nth-child(6):last-child) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .filter-grid:has(> .filter-group:nth-child(6):last-child) {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   MULTI-SELECT COLLECTION FILTERS
======================================== */

/* Match standard filter labels */

.filter-group .filter-label {
    display: block;
    font-family: var(--body-font);
    font-weight: bold;
    font-size: 0.95rem;
    color: var(--woodland);
    margin: 0;
}

/* Multi-select container */

.multi-select {
    position: relative;
    width: 100%;
    min-width: 0;
    text-align: left;
}

/* Match standard dropdown appearance */

.multi-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: 50px;
    padding: 12px 15px;
    border: 1px solid var(--sage);
    border-radius: 5px;
    background-color: var(--white);
    color: var(--text);
    font-family: var(--body-font);
    font-size: 1rem;
    line-height: normal;
    cursor: pointer;
    list-style: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Match standard dropdown focus styling */

.multi-select-trigger:focus-visible {
    outline: none;
    border-color: var(--woodland);
    box-shadow: 0 0 0 3px rgba(135, 151, 124, 0.2);
}

/* Remove default disclosure arrow */

.multi-select-trigger::-webkit-details-marker {
    display: none;
}

.multi-select-trigger::marker {
    content: "";
}

/* Custom dropdown arrow */

.multi-select-trigger::after {
    content: "";
    width: 5px;
    height: 5px;
    border-right: 1px solid var(--text);
    border-bottom: 1px solid var(--text);
    transform: rotate(45deg);
    margin-left: 12px;
    margin-right: -10px;
    flex-shrink: 0;
}

/* Prevent long selections from stretching the field */

.multi-select-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Floating dropdown menu */

.multi-select-menu {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    z-index: 90;
    box-sizing: border-box;
    padding: 8px;
    background-color: var(--white);
    border: 1px solid var(--sage);
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(83, 99, 76, 0.15);
}

/* Individual checkbox options */

.filter-group .multi-select-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    margin: 0;
    border-radius: 3px;
    font-weight: normal;
    font-size: 1rem;
    line-height: 1.5;
    cursor: pointer;
}

.multi-select-option:hover {
    background-color: #E3E8DA;
}

/* Override standard input styling */

.filter-group .multi-select-option input[type="checkbox"] {
    appearance: auto;
    width: 16px;
    height: 16px;
    min-width: 16px;
    min-height: 0;
    padding: 0;
    margin: 0;
    flex-shrink: 0;
    accent-color: var(--woodland);
    cursor: pointer;
}

/* Dropdown actions */

.multi-select-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 5px 5px;
    margin-top: 5px;
    border-top: 1px solid var(--moss);
}

.multi-select-clear {
    background: none;
    border: none;
    color: var(--woodland);
    font-family: var(--body-font);
    font-size: 0.9rem;
    cursor: pointer;
}

.multi-select-clear:hover {
    text-decoration: underline;
}

.multi-select-actions .multi-select-apply {
    padding: 6px 14px;
    margin: 0;
    font-size: 0.9rem;
}

/* Keep the filter grid aligned */

.filter-grid {
    align-items: start;
}

.filter-group {
    min-width: 0;
}

/* Hide empty selection tags */

.multi-select-tags:empty {
    display: none;
}

/* ========================================
   CURATED COLLECTIONS
======================================== */

.curated-collection {
    padding: 60px 8%;
    scroll-margin-top: 130px;
    border-bottom: 1px solid var(--moss);
}

.curated-collection:nth-of-type(even) {
    background-color: var(--white);
}

.curated-collection:nth-of-type(odd) {
    background-color: var(--ivory);
}

.curated-description {
    max-width: 700px;
    margin: 15px auto 30px;
    color: var(--muted);
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: center;
}

.curated-collection .product-grid {
    margin-top: 30px;
}

.curated-collection .empty-collection {
    padding: 35px 20px;
}

/* ========================================
   ESSENTIALS CATEGORY NAVIGATION
======================================== */

.essentials-navigation {
    padding: 35px 8%;
    background-color: #E3E8DA;
}

.essentials-navigation .mini-collection-grid {
    max-width: 900px;
}

/* ========================================
   AFFILIATE DISCLOSURE
======================================== */

.site-footer .affiliate-disclosure {
    font-size: 0.85rem;
    font-style: italic;
    margin: 15px auto;
    max-width: 650px;
}

/* ========================================
   MOBILE CURATED COLLECTIONS
======================================== */

@media (max-width: 700px) {
    .curated-collection {
        padding: 40px 6%;
        scroll-margin-top: 160px;
    }

    .curated-description {
        font-size: 1rem;
    }

    .essentials-navigation {
        padding: 30px 6%;
    }
}

/* ========================================
   PLANT PET SAFETY TAGS
======================================== */

.product-tags .tag-pet-friendly {
    background-color: #D5E5CD;
    color: #3E6036;
    border: 1px solid #A9BFA0;
}

.product-tags .tag-pet-toxic {
    background-color: #F1DCD6;
    color: #8A4545;
    border: 1px solid #D5AAA2;
}

.product-tags .tag-pet-unknown {
    background-color: #EAE4D9;
    color: #74634D;
    border: 1px solid #CEC1AD;
}

/* ========================================
   PRODUCT AFFILIATE DISCLOSURE
======================================== */

.product-affiliate-disclosure {
    display: block;
    margin-top: 8px;
    font-size: 0.8rem;
    font-style: italic;
    color: var(--muted);
    text-align: center;
}

/* ========================================
   NON-CLICKABLE COLLECTION CARDS
======================================== */

article.plant-collection-card {
    cursor: default;
    transition: none;
}

article.plant-collection-card:hover {
    transform: none;
    box-shadow: none;
}

/* ========================================
   PLANT CARE ESSENTIALS HOVER
======================================== */

.plant-essentials .plant-collection-card,
.essentials-navigation .mini-collection-card {
    transition: none;
}

.plant-essentials .plant-collection-card:hover,
.essentials-navigation .mini-collection-card:hover {
    transform: none;
    box-shadow: none;
}

/* ========================================
   FAMILIAR CATEGORY GRID
======================================== */

.essentials-navigation .mini-collection-grid:has(> :nth-child(6)) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 850px;
}

@media (max-width: 700px) {
    .essentials-navigation .mini-collection-grid:has(> :nth-child(6)) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 450px;
    }
}

/* ========================================
   HEARTH COLLECTION NAVIGATION
======================================== */

.hearth-collections .plant-collection-card {
    transition: none;
}

.hearth-collections .plant-collection-card:hover {
    transform: none;
    box-shadow: none;
}

.hearth-collections > .button {
    margin-top: 35px;
}

/* ========================================
   CABINET COLLECTION NAVIGATION
======================================== */

.cabinet-collections .plant-collection-card {
    transition: none;
}

.cabinet-collections .plant-collection-card:hover {
    transform: none;
    box-shadow: none;
}

.cabinet-collections > .button {
    margin-top: 35px;
}

/* ========================================
   GLOBAL PRODUCT IMAGE PLACEHOLDERS
======================================== */

.product-image-placeholder {
    background-image: url("images/icon-ivy.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 120px auto;
}

.product-image-placeholder span {
    display: none;
}

/* ========================================
   GLOBAL EMPTY COLLECTION PLACEHOLDERS
======================================== */

.empty-collection > span {
    display: block;
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    background-image: url("images/icon-ivy.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    font-size: 0;
    color: transparent;
}

/* ========================================
   REFINED BREADCRUMB NAVIGATION
======================================== */

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 8%;
    background-color: #F0F2E9;
    border-bottom: 1px solid var(--moss);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Navigation Links */

.breadcrumb a {
    color: var(--woodland);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: #91675E;
    text-decoration: underline;
}

/* Decorative Separators */

.breadcrumb > span:not([aria-current]) {
    font-size: 0;
}

.breadcrumb > span:not([aria-current])::after {
    content: "✧";
    font-size: 0.85rem;
    color: var(--rose);
}

/* Current Page */

.breadcrumb [aria-current="page"] {
    padding: 6px 15px;
    background-color: #E3E8DA;
    border: 1px solid var(--moss);
    border-radius: 30px;
    color: var(--woodland);
    font-weight: bold;
}

/* Mobile Layout */

@media (max-width: 700px) {
    .breadcrumb {
        padding: 12px 6%;
        gap: 8px;
        font-size: 0.8rem;
    }

    .breadcrumb [aria-current="page"] {
        padding: 4px 10px;
    }
}

/* =========================================
   UNIVERSAL AMAZON SHOPPING SEARCH
   ========================================= */

.shopping-search {
    padding: 60px 8%;
    background-color: #E3E8DA;
    text-align: center;
    border-bottom: 1px solid var(--moss);
}

.shopping-search h2::after {
    content: "";
    display: block;
    width: 280px;
    max-width: 100%;
    height: 85px;
    margin: 0 auto;
    background-image: url("images/divider-floral.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.shopping-search-description {
    max-width: 750px;
    margin: 0 auto 30px;
    color: var(--muted);
    font-size: 1.1rem;
    line-height: 1.8;
}


/* Amazon Search Form */

.amazon-search-form {
    max-width: 850px;
    margin: 0 auto;
}

.search-label {
    display: block;
    margin-bottom: 12px;
    color: var(--woodland);
    font-family: var(--body-font);
    font-size: 1.05rem;
    font-weight: bold;
    text-align: left;
}

.amazon-search-field {
    display: flex;
    align-items: stretch;
    gap: 12px;
}

.amazon-search-field input {
    flex: 1;
    width: 100%;
    min-width: 0;
    min-height: 55px;
    padding: 15px 20px;
    background-color: var(--white);
    border: 1px solid var(--sage);
    border-radius: 6px;
    color: var(--text);
    font-family: var(--body-font);
    font-size: 1.05rem;
    transition: border-color 0.3s ease,
                box-shadow 0.3s ease;
}

.amazon-search-field input::placeholder {
    color: var(--muted);
    opacity: 0.85;
}

.amazon-search-field input:focus {
    outline: none;
    border-color: var(--woodland);
    box-shadow: 0 0 0 3px rgba(135, 151, 124, 0.2);
}

.amazon-search-field .button {
    margin: 0;
    padding: 15px 28px;
    white-space: nowrap;
    cursor: pointer;
}

.shopping-search-note {
    margin: 15px auto 0;
    color: var(--muted);
    font-size: 0.85rem;
    font-style: italic;
}


/* Mobile Shopping Search */

@media (max-width: 700px) {

    .shopping-search {
        padding: 45px 6%;
    }

    .shopping-search-description {
        font-size: 1rem;
    }

    .amazon-search-field {
        flex-direction: column;
        gap: 12px;
    }

    .amazon-search-field .button {
        width: 100%;
        white-space: normal;
    }

    .amazon-search-field input {
        font-size: 1rem;
    }

}

/* =========================================
   UNIVERSAL STICKY SECTION NAVIGATION
   ========================================= */

html {
    scroll-behavior: smooth;
}

.section-navigation {
    position: sticky;
    top: 90px;
    z-index: 90;
    padding: 14px 5%;
    background-color: #E3E8DA;
    border-top: 1px solid var(--moss);
    border-bottom: 1px solid var(--moss);
    box-shadow: 0 3px 8px rgba(83, 99, 76, 0.08);
}

.section-navigation-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    max-width: 1400px;
    margin: 0 auto;
}

.section-navigation a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 20px;
    background-color: var(--white);
    border: 1px solid var(--sage);
    border-radius: 30px;
    color: var(--woodland);
    font-family: var(--body-font);
    font-size: 0.95rem;
    font-weight: bold;
    line-height: 1.5;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.25s ease,
                border-color 0.25s ease,
                color 0.25s ease;
}

.section-navigation a:hover {
    background-color: #F0E5DF;
    border-color: var(--rose);
    color: #91675E;
}

.section-navigation a:focus-visible {
    outline: 2px solid var(--woodland);
    outline-offset: 3px;
}


/* Keep unavailable sections hidden */

.section-navigation a[hidden],
.handpicked-treasures[hidden] {
    display: none;
}


/* Prevent headings from hiding behind navigation */

.section-navigation ~ section[id] {
    scroll-margin-top: 180px;
}


/* Mobile Section Navigation */

@media (max-width: 700px) {

    .section-navigation {
        top: 120px;
        padding: 12px 4%;
    }

    .section-navigation-inner {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 8px;
        padding: 4px;
        scrollbar-width: thin;
        scrollbar-color: var(--sage) transparent;
    }

    .section-navigation a {
        flex-shrink: 0;
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .section-navigation ~ section[id] {
        scroll-margin-top: 210px;
    }

}


/* Respect reduced motion preferences */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    .section-navigation a {
        transition: none;
    }

}
.section-navigation {
    background-color: #E8D2CD;
}

/* ========================================
   CATEGORY SHOPPING SECTIONS
======================================== */

.category-handpicked,
.category-browsing {
    max-width: 1100px;
    margin: 40px auto 0;
}

.category-handpicked[hidden],
.category-browsing[hidden] {
    display: none;
}

.category-handpicked > h3,
.category-browsing > h3 {
    color: var(--woodland);
    font-size: 1.8rem;
    margin-bottom: 12px;
    text-align: center;
}

.category-shopping-description {
    max-width: 650px;
    margin: 0 auto 25px;
    color: var(--muted);
    font-size: 1.05rem;
    text-align: center;
}


/* ========================================
   BROWSING COLLECTION GRID
======================================== */

.browsing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
    max-width: 950px;
    margin: 25px auto 0;
}


/* ========================================
   BROWSING LINKS
======================================== */

.browsing-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;

    min-height: 65px;
    padding: 18px 22px;

    background-color: var(--white);
    border: 1px solid var(--sage);
    border-radius: 8px;

    color: var(--woodland);
    font-family: var(--body-font);
    font-size: 1.05rem;
    font-weight: bold;
    text-decoration: none;
    text-align: left;

    transition:
        background-color 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease;
}

.browsing-link-name {
    flex: 1;
}

.browsing-link-arrow {
    color: var(--sage);
    font-size: 1.2rem;
}

.browsing-link:hover {
    background-color: #F0E5DF;
    border-color: var(--rose);
    color: #91675E;
}

.browsing-link:hover .browsing-link-arrow {
    color: #91675E;
}

.browsing-link:focus-visible {
    outline: 2px solid var(--woodland);
    outline-offset: 3px;
}

.browsing-affiliate-disclosure {
    flex-basis: 100%;
    font-size: 0.75rem;
    font-weight: normal;
    color: var(--muted);
}


/* ========================================
   HANDPICKED SECTION SPACING
======================================== */

.category-handpicked:not([hidden]) + .category-browsing {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid var(--moss);
}


/* ========================================
   RESPONSIVE BROWSING COLLECTIONS
======================================== */

@media (max-width: 900px) {

    .browsing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 550px) {

    .browsing-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .browsing-link {
        min-height: 55px;
        padding: 14px 18px;
        font-size: 1rem;
    }

    .category-handpicked > h3,
    .category-browsing > h3 {
        font-size: 1.5rem;
    }

}

@media (prefers-reduced-motion: reduce) {

    .browsing-link {
        transition: none;
    }

}
/* Soft Sage Browsing Boxes */

.browsing-link {
    background-color: #E3E8DA;
    border-color: var(--sage);
}

.browsing-link:hover {
    background-color: #E8D2CD;
    border-color: var(--rose);
    color: #91675E;
}

.browsing-link:hover .browsing-link-arrow {
    color: #91675E;
}
/* Greenery Shopping Reminder */

.greenery-shopping-note {
    margin: 35px auto 0;
}
/* ========================================
   DISCOVER YOUR GREENERY — BOUTIQUE LAYOUT
======================================== */

/* Section Backgrounds */

.greenery-page .greenery-browse-section {
    background-color: var(--white);
    padding: 65px 8%;
}

.greenery-page .greenery-botanical-section {
    background-color: #E3E8DA;
    padding: 65px 8%;
}


/* Browsing Section */

.greenery-browsing {
    margin-top: 30px;
}

.greenery-shopping-note {
    max-width: 950px;
    margin: 35px auto 0;
    padding: 0 20px;
    font-size: 0.9rem;
    font-style: italic;
    color: var(--muted);
    line-height: 1.8;
}


/* Botanical Filter Panel */

.greenery-filter-panel {
    max-width: 1000px;
    margin: 35px auto;
    padding: 25px;
    background-color: var(--white);
    border: 1px solid var(--sage);
    border-radius: 8px;
}


/* Plant Search */

.greenery-search-row {
    width: 100%;
    margin-bottom: 15px;
}

.greenery-search-group {
    width: 100%;
    text-align: left;
}

.greenery-search-group input {
    width: 100%;
    min-height: 50px;
    padding: 12px 18px;
    background-color: var(--white);
    border: 1px solid var(--sage);
    border-radius: 6px;
    font-family: var(--body-font);
    font-size: 1rem;
    color: var(--text);
}


/* Collapsible Filters */

.greenery-filter-details {
    border: 1px solid var(--rose);
    border-radius: 6px;
    overflow: hidden;
}

.greenery-filter-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 15px 20px;
    background-color: #E8D2CD;
    color: var(--woodland);
    font-weight: bold;
    cursor: pointer;
    list-style: none;
    text-align: left;
    transition: background-color 0.3s ease;
}

.greenery-filter-toggle::-webkit-details-marker {
    display: none;
}

.greenery-filter-toggle:hover {
    background-color: #DFC3BD;
}

.greenery-filter-toggle:focus-visible {
    outline: 2px solid var(--woodland);
    outline-offset: -3px;
}


/* Expand and Collapse Symbol */

.filter-toggle-symbol {
    font-size: 0;
}

.filter-toggle-symbol::after {
    content: "+";
    font-size: 1.5rem;
}

.greenery-filter-details[open]
.filter-toggle-symbol::after {
    content: "−";
}


/* Expanded Filter Content */

.greenery-filter-content {
    padding: 25px;
    background-color: var(--white);
}

.greenery-filter-description {
    max-width: 650px;
    margin: 0 auto 25px;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.8;
}

.greenery-filter-content .filter-grid {
    margin: 0 auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}


/* Clear Filters Button */

.greenery-filter-panel #clear-filters {
    margin: 20px auto 0;
    padding: 8px 20px;
    background-color: transparent;
    border: 1px solid var(--sage);
    color: var(--woodland);
    font-size: 0.9rem;
}

.greenery-filter-panel #clear-filters:hover {
    background-color: #E3E8DA;
}


/* Mobile Layout */

@media (max-width: 700px) {

    .greenery-page .greenery-browse-section,
    .greenery-page .greenery-botanical-section {
        padding: 45px 6%;
    }

    .greenery-filter-panel {
        padding: 15px;
    }

    .greenery-filter-content {
        padding: 15px;
    }

    .greenery-filter-content .filter-grid {
        grid-template-columns: 1fr;
    }

    .greenery-filter-toggle {
        padding: 12px 15px;
        font-size: 0.95rem;
    }

}
/* ========================================
   SHOPPING CATEGORY SECTION ICONS
======================================== */

.shopping-category-icon {
    display: block;
    width: 180px;
    height: 180px;
    object-fit: contain;
    margin: 0 auto 20px;
}


/* Mobile Category Icons */

@media (max-width: 700px) {

    .shopping-category-icon {
        width: 140px;
        height: 140px;
        margin-bottom: 15px;
    }

}

/* =========================================
   THE GRIMOIRE — PLANT FINDER
========================================= */


/* FINDER SECTION */

.plant-finder-page .finder-section {
    padding: 75px 8%;
    background-color: #E3E8DA;
}

.finder-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 45px;
    background-color: var(--ivory);
    border: 1px solid var(--sage);
    border-radius: 16px;
    outline: 1px solid var(--moss);
    outline-offset: 6px;
    box-shadow: 0 8px 25px rgba(83, 99, 76, 0.08);
    text-align: center;
}

.finder-container [hidden] {
    display: none !important;
}

.finder-container h2 {
    color: var(--woodland);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    line-height: 1.4;
    margin-bottom: 20px;
}

.finder-container h3 {
    color: var(--woodland);
}


/* WELCOME SCREEN */

.finder-welcome {
    max-width: 800px;
    margin: 0 auto;
    padding: 25px 0;
}

.finder-introduction {
    max-width: 650px;
    margin: 0 auto 30px;
    color: var(--text);
}

.finder-welcome-details {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 30px auto;
    color: var(--woodland);
    font-size: 0.95rem;
}

.finder-welcome-details span[aria-hidden="true"] {
    color: var(--rose);
}

.finder-welcome .button {
    margin: 15px auto;
    min-width: 230px;
}

.finder-small-note {
    max-width: 750px;
    margin: 25px auto 0;
    color: var(--muted);
    font-size: 0.9rem;
    font-style: italic;
    line-height: 1.7;
}


/* QUESTIONNAIRE */

.finder-questionnaire {
    max-width: 850px;
    margin: 0 auto;
}

.finder-question-content {
    margin: 45px auto 35px;
}

.finder-question-description {
    max-width: 650px;
    margin: 0 auto 30px;
    color: var(--muted);
}


/* PROGRESS INDICATOR */

.finder-progress {
    max-width: 750px;
    margin: 0 auto;
}

.finder-progress-information {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
    color: var(--woodland);
    font-size: 0.9rem;
    font-weight: bold;
}

.finder-progress-track {
    width: 100%;
    height: 8px;
    background-color: #E8D2CD;
    border-radius: 20px;
    overflow: hidden;
}

.finder-progress-fill {
    width: 0%;
    height: 100%;
    background-color: var(--sage);
    border-radius: 20px;
    transition: width 0.4s ease;
}


/* SELECTABLE ANSWER CARDS */

.finder-answer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    max-width: 750px;
    margin: 30px auto;
}

.finder-answer {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 110px;
    padding: 25px 20px;
    background-color: var(--white);
    border: 1px solid var(--moss);
    border-radius: 12px;
    color: var(--woodland);
    font-family: var(--body-font);
    font-size: 1rem;
    line-height: 1.6;
    text-align: center;
    cursor: pointer;
    transition:
        background-color 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.finder-answer:hover {
    background-color: #E8D2CD;
    border-color: var(--rose);
    transform: translateY(-2px);
}

.finder-answer.selected,
.finder-answer[aria-pressed="true"] {
    background-color: #D6E0CE;
    border-color: var(--woodland);
    box-shadow: inset 0 0 0 1px var(--woodland);
}

.finder-answer-title {
    display: block;
    font-weight: bold;
    font-size: 1.1rem;
}

.finder-answer-description {
    display: block;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: normal;
}

.finder-answer.selected::after,
.finder-answer[aria-pressed="true"]::after {
    content: "✓";
    position: absolute;
    top: 10px;
    right: 14px;
    color: var(--woodland);
    font-size: 1rem;
    font-weight: bold;
}


/* QUESTION NAVIGATION */

.finder-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    max-width: 750px;
    margin: 35px auto 20px;
}

.finder-controls .button {
    min-width: 150px;
    margin: 0;
}

.finder-back-button {
    background-color: transparent;
    border: 1px solid var(--sage);
    color: var(--woodland);
}

.finder-back-button:hover {
    background-color: #E8D2CD;
    color: var(--woodland);
}

.finder-container button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.finder-text-button {
    padding: 8px 12px;
    border: none;
    background: transparent;
    color: var(--muted);
    font-family: var(--body-font);
    font-size: 0.9rem;
    text-decoration: underline;
    text-underline-offset: 4px;
    cursor: pointer;
}

.finder-text-button:hover {
    color: var(--woodland);
}


/* RESULTS SCREEN */

.finder-results-introduction {
    max-width: 750px;
    margin: 0 auto 30px;
    color: var(--text);
}

.finder-answer-summary {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-width: 850px;
    margin: 25px auto 40px;
}

.finder-summary-tag {
    display: inline-flex;
    align-items: center;
    padding: 7px 15px;
    background-color: #E3E8DA;
    border: 1px solid var(--moss);
    border-radius: 30px;
    color: var(--woodland);
    font-size: 0.85rem;
}


/* RECOMMENDED PLANT CARDS */

.finder-results-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
    margin: 35px auto;
}

.finder-results-grid .product-card {
    position: relative;
    min-width: 0;
    height: 100%;
}

.finder-results-grid .product-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.finder-match-label {
    display: inline-block;
    align-self: center;
    margin: 0 auto 15px;
    padding: 5px 14px;
    background-color: #E8D2CD;
    border-radius: 30px;
    color: var(--woodland);
    font-size: 0.8rem;
    font-weight: bold;
}

.finder-match-reason {
    margin: 18px 0;
    padding: 15px;
    background-color: #E3E8DA;
    border-radius: 8px;
    color: var(--woodland);
    font-size: 0.9rem;
    line-height: 1.7;
}

.finder-match-reason strong {
    display: block;
    margin-bottom: 5px;
}

.finder-plant-details {
    display: grid;
    gap: 10px;
    margin: 20px 0;
    text-align: left;
}

.finder-plant-detail {
    padding-bottom: 8px;
    border-bottom: 1px solid var(--moss);
    font-size: 0.9rem;
}

.finder-plant-detail strong {
    color: var(--woodland);
}

.finder-results-grid .product-content .button {
    margin-top: auto;
}


/* NO SUITABLE MATCHES */

.finder-no-matches {
    max-width: 650px;
    margin: 35px auto;
    padding: 35px 25px;
    background-color: #E3E8DA;
    border: 1px solid var(--moss);
    border-radius: 12px;
}

.finder-no-matches h3 {
    margin-bottom: 15px;
    font-size: 1.6rem;
}

.finder-no-matches p {
    margin-bottom: 25px;
}


/* RECOMMENDED CARE ESSENTIALS */

.finder-care-recommendations {
    margin: 50px auto 0;
    padding-top: 40px;
    border-top: 1px solid var(--moss);
}

.finder-care-recommendations h3 {
    font-size: 1.9rem;
    margin-bottom: 15px;
}

.finder-care-recommendations > p:not(.eyebrow) {
    max-width: 650px;
    margin: 0 auto 25px;
}

.finder-care-recommendations .browsing-grid {
    margin: 25px auto;
}


/* RESULTS ACTIONS */

.finder-results-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 35px auto 0;
}

.finder-results-actions .button {
    margin: 0;
}

.plant-finder-page .collection-closing .button {
    margin: 10px 5px;
}


/* ACCESSIBILITY */

.finder-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.finder-container button:focus-visible,
.finder-container a:focus-visible {
    outline: 2px solid var(--woodland);
    outline-offset: 4px;
}

.finder-container h2[tabindex="-1"]:focus {
    outline: none;
}


/* TABLET RESPONSIVENESS */

@media (max-width: 900px) {

    .plant-finder-page .finder-section {
        padding: 60px 6%;
    }

    .finder-container {
        padding: 45px 30px;
    }

    .finder-results-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


/* MOBILE RESPONSIVENESS */

@media (max-width: 600px) {

    .plant-finder-page .finder-section {
        padding: 45px 5%;
    }

    .finder-container {
        padding: 35px 18px;
        outline-offset: 4px;
    }

    .finder-welcome {
        padding: 10px 0;
    }

    .finder-welcome-details {
        flex-direction: column;
        gap: 5px;
    }

    .finder-welcome-details span[aria-hidden="true"] {
        display: none;
    }

    .finder-answer-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .finder-answer {
        min-height: 85px;
        padding: 20px 18px;
    }

    .finder-question-content {
        margin-top: 30px;
    }

    .finder-controls {
        gap: 12px;
    }

    .finder-controls .button {
        flex: 1;
        min-width: 0;
        padding: 12px;
    }

    .finder-results-grid {
        grid-template-columns: 1fr;
    }

    .finder-results-actions {
        flex-direction: column;
    }

    .finder-results-actions .button {
        width: 100%;
    }

    .finder-care-recommendations h3 {
        font-size: 1.6rem;
    }

}


/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {

    .finder-progress-fill,
    .finder-answer {
        transition: none;
    }

    .finder-answer:hover {
        transform: none;
    }

}

/* ========================================
   PLANT FINDER - RECOMMENDATION CARDS
======================================== */

/* Results layout */

.plant-finder-page .finder-results-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 25px;
    max-width: 1100px;
    margin: 25px auto 35px;
}

/* Main recommendation card */

.plant-finder-page .finder-results-grid .finder-plant-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    height: auto;
    padding: 25px 30px;
    gap: 16px;
    text-align: left;
    background: linear-gradient(
        145deg,
        var(--white),
        var(--ivory)
    );
    border: 1px solid var(--moss);
    border-radius: 14px;
    box-shadow: 0 3px 12px rgba(83, 99, 76, 0.05);
}

.plant-finder-page .finder-plant-card:hover {
    transform: none;
    box-shadow: 0 5px 18px rgba(83, 99, 76, 0.08);
}


/* ========================================
   PLANT HEADER
======================================== */

.plant-finder-page .finder-card-header {
    display: grid;
    grid-template-columns: 155px minmax(0, 1fr);
    align-items: center;
    gap: 25px;
    width: 100%;
}

/* Botanical illustration */

.plant-finder-page .finder-card-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 155px;
    height: 155px;
    padding: 10px;
    background: var(--white);
    border: 1px solid var(--moss);
    border-radius: 80px 80px 10px 10px;
}

.plant-finder-page .finder-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Plant introduction */

.plant-finder-page .finder-card-introduction {
    min-width: 0;
    text-align: left;
}

.plant-finder-page .finder-card-introduction h3 {
    color: var(--woodland);
    font-size: 1.9rem;
    line-height: 1.3;
    margin: 5px 0;
}

.plant-finder-page .finder-scientific-name {
    font-style: italic;
    color: var(--muted);
    font-size: 0.95rem;
    margin: 0 0 8px;
}

.plant-finder-page .finder-card-description {
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Match badge */

.plant-finder-page .finder-match-label {
    display: inline-block;
    align-self: flex-start;
    background: #E8D2CD;
    color: var(--woodland);
    border-radius: 30px;
    padding: 3px 14px;
    margin: 0 0 5px;
    font-size: 0.75rem;
}


/* ========================================
   PERSONALIZED MATCH EXPLANATION
======================================== */

.plant-finder-page .finder-match-reason {
    width: 100%;
    background: #E3E8DA;
    border-radius: 8px;
    padding: 12px 18px;
    margin: 0;
    text-align: left;
    font-size: 0.85rem;
    line-height: 1.5;
}

.plant-finder-page .finder-match-reason strong {
    display: block;
    color: var(--woodland);
    margin-bottom: 6px;
}

.plant-finder-page .finder-match-reason ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.plant-finder-page .finder-match-reason li {
    position: relative;
    padding-left: 20px;
    margin: 0;
}

.plant-finder-page .finder-match-reason li::before {
    content: "✧";
    position: absolute;
    left: 0;
    color: var(--woodland);
}


/* ========================================
   PLANT CHARACTERISTICS
======================================== */

.plant-finder-page .finder-plant-details {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 20px;
    width: 100%;
    margin: 0;
    text-align: left;
}

.plant-finder-page .finder-plant-detail {
    min-width: 0;
    padding: 5px 0 10px;
    margin: 0;
    border-bottom: 1px solid var(--moss);
    font-size: 0.85rem;
    line-height: 1.5;
    overflow-wrap: break-word;
}

.plant-finder-page .finder-plant-detail strong {
    display: block;
    color: var(--woodland);
    margin-bottom: 3px;
}

.plant-finder-page .finder-plant-detail span {
    color: var(--muted);
}


/* ========================================
   EXPANDABLE CARE GUIDANCE
======================================== */

.plant-finder-page .finder-growing-guidance {
    width: 100%;
    background: var(--ivory);
    border: 1px solid var(--moss);
    border-radius: 8px;
    padding: 10px 16px;
    margin: 0;
    font-size: 0.85rem;
}

.plant-finder-page .finder-growing-guidance summary {
    cursor: pointer;
    color: var(--woodland);
    font-weight: bold;
    text-align: left;
}

.plant-finder-page .finder-growing-guidance summary:hover {
    color: var(--sage);
}

.plant-finder-page .finder-guidance-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 20px;
    margin-top: 15px;
}

.plant-finder-page .finder-guidance-grid .finder-plant-detail {
    border-bottom: none;
}


/* ========================================
   CARD FOOTER
======================================== */

.plant-finder-page .finder-card-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
    text-align: center;
}

.plant-finder-page .finder-card-footer .finder-small-note {
    max-width: 100%;
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.5;
    color: var(--muted);
}

.plant-finder-page .finder-card-footer .button {
    display: inline-block;
    width: auto;
    max-width: 100%;
    margin: 0;
    padding: 10px 25px;
    font-size: 0.85rem;
    text-align: center;
}


/* ========================================
   RESULTS SECTION HEADINGS
======================================== */

.plant-finder-page .finder-best-matches-heading {
    margin: 35px auto 20px;
    text-align: center;
}

.plant-finder-page .finder-best-matches-heading h3,
.plant-finder-page .finder-additional-section h3 {
    color: var(--woodland);
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.plant-finder-page .finder-best-matches-heading p,
.plant-finder-page .finder-additional-section > p {
    color: var(--muted);
    font-size: 0.95rem;
    max-width: 700px;
    margin: 0 auto;
}


/* ========================================
   MORE BOTANICAL COMPANIONS
======================================== */

.plant-finder-page .finder-additional-section {
    width: 100%;
    margin: 40px auto 0;
    padding-top: 35px;
    border-top: 1px solid var(--moss);
    text-align: center;
}

.plant-finder-page .finder-additional-section .finder-match-label {
    background: #D6E0CE;
}

.plant-finder-page .finder-show-more {
    margin: 5px auto 20px;
}


/* ========================================
   TABLET RESPONSIVENESS
======================================== */

@media (max-width: 900px) {

    .plant-finder-page .finder-results-grid .finder-plant-card {
        padding: 22px;
    }

    .plant-finder-page .finder-card-header {
        grid-template-columns: 125px minmax(0, 1fr);
        gap: 20px;
    }

    .plant-finder-page .finder-card-image {
        width: 125px;
        height: 125px;
    }

    .plant-finder-page .finder-plant-details {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


/* ========================================
   MOBILE RESPONSIVENESS
======================================== */

@media (max-width: 600px) {

    .plant-finder-page .finder-results-grid .finder-plant-card {
        padding: 18px;
        gap: 15px;
    }

    .plant-finder-page .finder-card-header {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
        justify-items: center;
    }

    .plant-finder-page .finder-card-image {
        width: 135px;
        height: 135px;
    }

    .plant-finder-page .finder-card-introduction {
        text-align: center;
    }

    .plant-finder-page .finder-card-introduction h3 {
        font-size: 1.6rem;
    }

    .plant-finder-page .finder-match-reason ul {
        grid-template-columns: minmax(0, 1fr);
    }

    .plant-finder-page .finder-plant-details {
        gap: 10px 15px;
    }

    .plant-finder-page .finder-guidance-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .plant-finder-page .finder-card-footer .button {
        width: 100%;
    }

}

@media (max-width: 380px) {

    .plant-finder-page .finder-plant-details {
        grid-template-columns: minmax(0, 1fr);
    }

}


/* ========================================
   HIDDEN ELEMENTS
======================================== */

.plant-finder-page .finder-additional-section[hidden],
.plant-finder-page .finder-best-matches-heading[hidden],
.plant-finder-page .finder-show-more[hidden] {
    display: none !important;
}
/* ========================================
   PLANT FINDER - RESULTS FOOTER POLISH
======================================== */

/* Center care recommendations */

.plant-finder-page #finder-care-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    max-width: 950px;
    margin: 25px auto;
}

.plant-finder-page #finder-care-grid .browsing-link {
    flex: 0 1 300px;
    justify-content: center;
    text-align: center;
}

/* Equal-height navigation buttons */

.plant-finder-page .finder-results-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 15px;
}

.plant-finder-page .finder-results-actions .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 12px 25px;
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
    box-sizing: border-box;
    text-align: center;
}

/* Mobile layout */

@media (max-width: 600px) {

    .plant-finder-page #finder-care-grid .browsing-link {
        flex: 1 1 100%;
    }

    .plant-finder-page .finder-results-actions {
        flex-direction: column;
    }

    .plant-finder-page .finder-results-actions .button {
        width: 100%;
    }

}
/* ========================================
   GREENERY PAGE - PLANT FINDER BACKGROUND
======================================== */

.greenery-page .herbarium-finder {
    background: #E8D2CD;
}
/* PLANT FINDER — CARE GUIDANCE FOCUS */

.plant-finder-page .finder-growing-guidance summary:focus {
    outline: 2px solid var(--sage);
    outline-offset: 4px;
    border-radius: 4px;
}
/* =========================================
   PLANT FINDER — MOBILE REFINEMENTS
========================================= */

@media (max-width: 600px) {

    .plant-finder-page .finder-section {
        padding: 30px 12px;
    }

    .plant-finder-page .finder-container {
        padding: 25px 12px;
        outline-offset: 3px;
        border-radius: 12px;
    }

    .plant-finder-page .finder-container h2 {
        font-size: 1.7rem;
        line-height: 1.35;
    }

    .plant-finder-page .finder-results-introduction {
        font-size: 1rem;
        line-height: 1.6;
    }

    .plant-finder-page .finder-answer-summary {
        gap: 6px;
        margin: 20px auto;
    }

    .plant-finder-page .finder-summary-tag {
        padding: 5px 10px;
        font-size: 0.8rem;
    }

    .plant-finder-page .finder-results-grid {
        gap: 18px;
    }

    .plant-finder-page .finder-results-grid .finder-plant-card {
        padding: 16px 12px;
        gap: 12px;
    }

    .plant-finder-page .finder-card-image {
        width: 110px;
        height: 110px;
    }

    .plant-finder-page .finder-card-header {
        gap: 12px;
    }

    .plant-finder-page .finder-card-description {
        line-height: 1.5;
    }

    .plant-finder-page .finder-match-reason {
        padding: 12px;
    }

    .plant-finder-page .finder-plant-details {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px 12px;
    }

    .plant-finder-page .finder-plant-detail:nth-child(5),
    .plant-finder-page .finder-plant-detail:nth-child(6) {
        grid-column: 1 / -1;
    }

    .plant-finder-page .finder-answer {
        min-height: 90px;
        padding: 16px 12px;
    }

    .plant-finder-page .finder-answer-grid {
        gap: 12px;
    }

    .plant-finder-page .finder-card-footer .button {
        padding: 12px 10px;
    }

}
/* =========================================
   PLANT FINDER — COMPACT MOBILE LAYOUT
========================================= */

@media (max-width: 600px) {

    /* Compact page hero */

    .plant-finder-page .page-hero {
        padding: 30px 15px;
    }

    .plant-finder-page .page-hero .page-icon {
        width: 90px;
        height: 90px;
        margin-bottom: 10px;
    }

    .plant-finder-page .page-hero h1 {
        font-size: 2rem;
        line-height: 1.2;
        margin: 10px 0;
    }

    .plant-finder-page .page-tagline {
        margin: 8px 0;
        line-height: 1.4;
    }

    .plant-finder-page .page-description {
        margin: 12px auto 0;
        line-height: 1.5;
    }


    /* Reduce results introduction spacing */

    .plant-finder-page .finder-container {
        padding: 20px 12px;
    }

    .plant-finder-page .finder-container .eyebrow {
        margin-bottom: 8px;
        line-height: 1.4;
    }

    .plant-finder-page .finder-container h2 {
        margin: 10px 0;
    }

    .plant-finder-page .finder-results-introduction {
        margin: 12px auto;
        line-height: 1.45;
    }

    .plant-finder-page .finder-answer-summary {
        margin: 15px auto;
    }

    .plant-finder-page .finder-best-matches-heading {
        margin: 20px auto 12px;
    }

    .plant-finder-page .finder-additional-section {
        margin-top: 25px;
        padding-top: 20px;
    }


    /* Compact plant card header */

    .plant-finder-page .finder-card-header {
        grid-template-columns: 75px minmax(0, 1fr);
        align-items: center;
        gap: 12px;
    }

    .plant-finder-page .finder-card-image {
        width: 75px;
        height: 90px;
        padding: 6px;
    }

    .plant-finder-page .finder-card-introduction {
        text-align: left;
    }

    .plant-finder-page .finder-card-introduction h3 {
        font-size: 1.3rem;
        line-height: 1.25;
        margin: 4px 0;
    }

    .plant-finder-page .finder-scientific-name {
        font-size: 0.85rem;
        margin-bottom: 5px;
    }

    .plant-finder-page .finder-card-description {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .plant-finder-page .finder-match-label {
        padding: 2px 10px;
        margin-bottom: 3px;
    }


    /* Compact plant information */

    .plant-finder-page .finder-match-reason {
        padding: 10px 12px;
        line-height: 1.4;
    }

    .plant-finder-page .finder-match-reason ul {
        gap: 4px;
    }

    .plant-finder-page .finder-plant-detail {
        padding: 4px 0 7px;
        line-height: 1.4;
    }

    .plant-finder-page .finder-growing-guidance {
        padding: 10px;
    }

    .plant-finder-page .finder-card-footer {
        gap: 6px;
    }


    /* Compact questionnaire */

    .plant-finder-page .finder-question-content {
        margin: 20px auto;
    }

    .plant-finder-page .finder-question-description {
        margin: 10px auto 15px;
        line-height: 1.5;
    }

    .plant-finder-page .finder-answer {
        min-height: 75px;
        padding: 12px;
    }

    .plant-finder-page .finder-answer-grid {
        gap: 10px;
    }

}

/* =========================================
   PLANT FINDER — COLLAPSIBLE MOBILE CARDS
========================================= */

/* Hide mobile-only controls on desktop */

.plant-finder-page .finder-mobile-quick-info,
.plant-finder-page .finder-card-toggle {
    display: none;
}


/* Mobile recommendation cards */

@media (max-width: 600px) {

    .plant-finder-page .finder-results-grid {
        gap: 12px;
        margin: 15px auto 20px;
    }

    .plant-finder-page .finder-results-grid .finder-plant-card {
        padding: 14px;
        gap: 10px;
    }


    /* Compact plant header */

    .plant-finder-page .finder-card-header {
        grid-template-columns: 65px minmax(0, 1fr);
        align-items: center;
        gap: 12px;
    }

    .plant-finder-page .finder-card-image {
        width: 65px;
        height: 80px;
        padding: 5px;
    }

    .plant-finder-page .finder-card-introduction {
        text-align: left;
    }

    .plant-finder-page .finder-card-introduction h3 {
        font-size: 1.3rem;
        line-height: 1.25;
        margin: 4px 0;
    }

    .plant-finder-page .finder-scientific-name {
        font-size: 0.8rem;
        line-height: 1.3;
        margin: 0;
    }

    .plant-finder-page .finder-match-label {
        font-size: 0.7rem;
        padding: 2px 9px;
        margin: 0;
    }


    /* Quick information tags */

    .plant-finder-page .finder-mobile-quick-info {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 5px;
        width: 100%;
    }

    .plant-finder-page .finder-quick-tag {
        display: inline-block;
        background: #E3E8DA;
        color: var(--woodland);
        border-radius: 20px;
        padding: 4px 9px;
        font-size: 0.75rem;
        line-height: 1.4;
    }


    /* Expand and collapse button */

    .plant-finder-page .finder-card-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        width: 100%;
        min-height: 44px;
        padding: 8px 12px;
        background: transparent;
        border: 1px solid var(--sage);
        border-radius: 6px;
        color: var(--woodland);
        font-family: var(--body-font);
        font-size: 0.9rem;
        font-weight: bold;
        cursor: pointer;
    }

    .plant-finder-page .finder-card-toggle:hover {
        background: #E3E8DA;
    }

    .plant-finder-page .finder-card-toggle:focus-visible {
        outline: 2px solid var(--woodland);
        outline-offset: 3px;
    }

    .plant-finder-page .finder-toggle-arrow {
        font-size: 1.2rem;
        line-height: 1;
    }


    /* Hide detailed information when collapsed */

    .plant-finder-page .finder-plant-card:not(.finder-card-expanded)
    .finder-card-description,

    .plant-finder-page .finder-plant-card:not(.finder-card-expanded)
    .finder-match-reason,

    .plant-finder-page .finder-plant-card:not(.finder-card-expanded)
    .finder-plant-details,

    .plant-finder-page .finder-plant-card:not(.finder-card-expanded)
    .finder-growing-guidance,

    .plant-finder-page .finder-plant-card:not(.finder-card-expanded)
    .finder-card-footer {
        display: none !important;
    }


    /* Expanded recommendation cards */

    .plant-finder-page .finder-card-expanded
    .finder-card-toggle {
        background: #E3E8DA;
    }

    .plant-finder-page .finder-card-expanded
    .finder-card-description {
        margin-top: 8px;
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .plant-finder-page .finder-card-expanded
    .finder-match-reason {
        margin-top: 5px;
    }

    .plant-finder-page .finder-card-expanded
    .finder-card-footer {
        margin-top: 5px;
    }

}

/* =========================================
   BOTANICAL COLLECTION — MOBILE CARDS
========================================= */


/* Hide mobile controls on desktop */

.greenery-page .botanical-mobile-quick-info,
.greenery-page .botanical-card-toggle {
    display: none;
}


/* Compact mobile botanical cards */

@media (max-width: 600px) {

    .greenery-page .greenery-product-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
        margin: 20px auto;
    }


    /* Card layout */

    .greenery-page .botanical-mobile-card {
        display: grid;
        grid-template-columns: 65px minmax(0, 1fr);
        align-items: start;
        gap: 12px;
        width: 100%;
        height: auto;
        padding: 14px;
        text-align: left;
        border-radius: 12px;
    }

    .greenery-page .botanical-mobile-card:hover {
        transform: none;
    }


    /* Compact plant image */

    .greenery-page .botanical-mobile-card > .product-image,
    .greenery-page .botanical-mobile-card > .product-image-placeholder {
        width: 65px;
        height: 80px;
        min-height: 0;
        max-width: 100%;
        margin: 0;
        padding: 5px;
        object-fit: contain;
        background-color: var(--white);
        border: 1px solid var(--moss);
        border-radius: 40px 40px 8px 8px;
        box-sizing: border-box;
    }

    .greenery-page .botanical-mobile-card
    .product-image-placeholder {
        background-size: 50px auto;
        background-position: center;
        background-repeat: no-repeat;
    }

    .greenery-page .botanical-mobile-card
    .product-image-placeholder > span {
        display: none;
    }


    /* Plant name and information */

    .greenery-page .botanical-mobile-card .product-content {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        min-width: 0;
        width: 100%;
        padding: 0;
        gap: 6px;
        text-align: left;
    }

    .greenery-page .botanical-mobile-card h3 {
        order: -2;
        font-size: 1.3rem;
        line-height: 1.25;
        margin: 0;
    }

    .greenery-page .botanical-mobile-card
    .product-scientific-name {
        order: -1;
        font-size: 0.8rem;
        line-height: 1.3;
        margin: 0;
        overflow-wrap: anywhere;
    }


    /* Quick information tags */

    .greenery-page .botanical-mobile-quick-info {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
        margin: 3px 0;
    }

    .greenery-page .botanical-quick-tag {
        display: inline-block;
        background: #E3E8DA;
        color: var(--woodland);
        border-radius: 20px;
        padding: 4px 9px;
        font-size: 0.75rem;
        line-height: 1.4;
    }

    .greenery-page .botanical-quick-tag.tag-pet-toxic {
        background: #E8D2CD;
        color: #783F38;
    }

    .greenery-page .botanical-quick-tag.tag-pet-unknown {
        background: var(--ivory);
        border: 1px solid var(--moss);
    }


    /* Expand and collapse button */

    .greenery-page .botanical-card-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        min-height: 44px;
        padding: 8px;
        margin: 4px 0 0;
        background: transparent;
        border: 1px solid var(--sage);
        border-radius: 6px;
        color: var(--woodland);
        font-family: var(--body-font);
        font-size: 0.85rem;
        font-weight: bold;
        cursor: pointer;
    }

    .greenery-page .botanical-card-toggle:hover {
        background: #E3E8DA;
    }

    .greenery-page .botanical-card-toggle:focus-visible {
        outline: 2px solid var(--woodland);
        outline-offset: 3px;
    }

    .greenery-page .botanical-toggle-arrow {
        font-size: 1.2rem;
        line-height: 1;
    }


    /* Hide detailed information when collapsed */

    .greenery-page .botanical-mobile-card:not(.botanical-card-expanded)
    .product-description,

    .greenery-page .botanical-mobile-card:not(.botanical-card-expanded)
    .product-tags,

    .greenery-page .botanical-mobile-card:not(.botanical-card-expanded)
    .product-content > .button,

    .greenery-page .botanical-mobile-card:not(.botanical-card-expanded)
    .product-affiliate-disclosure {
        display: none !important;
    }


    /* Expanded botanical cards */

    .greenery-page .botanical-card-expanded
    .botanical-card-toggle {
        background: #E3E8DA;
    }

    .greenery-page .botanical-card-expanded
    .product-description {
        font-size: 0.9rem;
        line-height: 1.5;
        margin: 8px 0;
    }

    .greenery-page .botanical-card-expanded
    .product-tags {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 5px;
        margin: 5px 0;
    }

    .greenery-page .botanical-card-expanded
    .product-tags span {
        font-size: 0.75rem;
        line-height: 1.4;
        padding: 4px 8px;
    }

    .greenery-page .botanical-card-expanded
    .product-content > .button {
        width: 100%;
        padding: 10px;
        margin: 8px 0 0;
        font-size: 0.85rem;
        text-align: center;
    }

}

/* =========================================
   COMPACT MOBILE BROWSING BUTTONS
========================================= */

@media (max-width: 600px) {

    .category-browsing .browsing-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin: 20px auto;
    }

    .category-browsing .browsing-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-width: 0;
        min-height: 54px;
        padding: 10px 12px;
        gap: 6px;
        font-size: 0.85rem;
        line-height: 1.4;
        border-radius: 8px;
    }

    .category-browsing .browsing-link-name {
        min-width: 0;
        overflow-wrap: break-word;
    }

    .category-browsing .browsing-link-arrow {
        flex-shrink: 0;
        font-size: 0.9rem;
    }

}

/* =========================================
   COMPACT MOBILE STICKY NAVIGATION
========================================= */

@media (max-width: 768px) {

    /* Stick directly to the top */

    .section-navigation {
        position: sticky;
        top: 0;
        padding: 5px 3%;
        z-index: 90;
    }


    /* Compact horizontal navigation */

    .section-navigation-inner {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 6px;
        padding: 3px;
        scrollbar-width: thin;
        scrollbar-color: var(--sage) transparent;
        -webkit-overflow-scrolling: touch;
    }


    /* Smaller navigation buttons */

    .section-navigation a {
        flex-shrink: 0;
        min-height: 44px;
        padding: 5px 12px;
        font-size: 0.8rem;
        line-height: 1.3;
        white-space: nowrap;
        border-radius: 20px;
    }


    /* Correct section scrolling offsets */

    html {
        scroll-padding-top: 10px;
    }

    .section-navigation ~ section[id] {
        scroll-margin-top: 65px;
    }

}

/* =========================================
   SITE-WIDE COMPACT MOBILE DESIGN
========================================= */

@media (max-width: 600px) {

    /* =====================================
       SHOPPING CATEGORY SECTIONS
    ===================================== */

    .curated-collection {
        padding: 28px 6%;
    }

    .shopping-category-icon {
        width: 85px;
        height: 85px;
        margin: 0 auto 10px;
    }

    .curated-collection h2 {
        font-size: 1.65rem;
        line-height: 1.3;
        margin-bottom: 10px;
    }

    .curated-collection h2::after {
        height: 40px;
        margin-top: 5px;
    }

    .curated-description {
        font-size: 0.95rem;
        line-height: 1.5;
        margin: 10px auto 18px;
    }

    .category-handpicked,
    .category-browsing {
        margin-top: 20px;
    }

    .category-handpicked h3,
    .category-browsing h3 {
        font-size: 1.35rem;
        line-height: 1.3;
        margin-bottom: 8px;
    }

    .category-handpicked:not([hidden])
    + .category-browsing {
        margin-top: 25px;
        padding-top: 20px;
    }


    /* =====================================
       COMPACT CATEGORY CARDS
    ===================================== */

    .plant-essentials .plant-collection-grid,
    .companion-essentials-grid,
    .hearth-collection-grid,
    .cabinet-collection-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        max-width: 100%;
        margin-top: 20px;
    }

    .plant-essentials .plant-collection-card,
    .companion-essentials-grid .plant-collection-card,
    .hearth-collection-grid .plant-collection-card,
    .cabinet-collection-grid .plant-collection-card {
        min-width: 0;
        padding: 18px 10px 14px;
        border-radius: 65px 65px 8px 8px;
        outline-offset: -4px;
    }

    .plant-essentials .collection-icon,
    .companion-essentials-grid .collection-icon,
    .hearth-collection-grid .collection-icon,
    .cabinet-collection-grid .collection-icon {
        width: 80px;
        height: 80px;
        margin: 0 auto 10px;
    }

    .plant-essentials .plant-collection-card h3,
    .companion-essentials-grid .plant-collection-card h3,
    .hearth-collection-grid .plant-collection-card h3,
    .cabinet-collection-grid .plant-collection-card h3 {
        font-size: 1.1rem;
        line-height: 1.3;
        min-height: 0;
        margin-bottom: 8px;
        overflow-wrap: break-word;
    }

    .plant-essentials .plant-collection-card p,
    .companion-essentials-grid .plant-collection-card p,
    .hearth-collection-grid .plant-collection-card p,
    .cabinet-collection-grid .plant-collection-card p {
        font-size: 0.85rem;
        line-height: 1.45;
        margin-bottom: 5px;
    }

    .plant-essentials .plant-collection-card::after,
    .companion-essentials-grid .plant-collection-card::after,
    .hearth-collection-grid .plant-collection-card::after,
    .cabinet-collection-grid .plant-collection-card::after {
        font-size: 0.9rem;
        margin-top: 5px;
    }


    /* =====================================
       HANDPICKED PRODUCT CARDS
    ===================================== */

    .category-handpicked .product-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        margin-top: 15px;
    }

    .category-handpicked .product-card {
        display: grid;
        grid-template-columns: 70px minmax(0, 1fr);
        align-items: start;
        gap: 12px;
        padding: 12px;
        text-align: left;
    }

    .category-handpicked .product-image,
    .category-handpicked .product-image-placeholder {
        width: 70px;
        height: 85px;
        background-size: 50px auto;
        border: 1px solid var(--moss);
        border-radius: 40px 40px 8px 8px;
    }

    .category-handpicked .product-content {
        min-width: 0;
        padding: 0;
        align-items: stretch;
        text-align: left;
    }

    .category-handpicked .product-content h3 {
        font-size: 1.2rem;
        line-height: 1.3;
        margin-bottom: 6px;
    }

    .category-handpicked .product-content > p {
        font-size: 0.85rem;
        line-height: 1.5;
        margin-bottom: 8px;
    }

    .category-handpicked .product-content .button {
        min-height: 44px;
        padding: 8px 10px;
        font-size: 0.85rem;
        margin-top: 8px;
    }


    /* =====================================
       CURIOSITY CABINET FEATURED TREASURES
    ===================================== */

    .featured-treasure-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        max-width: 100%;
        margin-top: 20px;
    }

    .featured-treasure-card {
        min-width: 0;
        padding: 18px 12px;
        outline-offset: -4px;
    }

    .treasure-symbol {
        font-size: 2rem;
        margin-bottom: 10px;
    }

    .featured-treasure-card h3 {
        font-size: 1.15rem;
        line-height: 1.3;
        margin-bottom: 8px;
    }

    .featured-treasure-card p {
        font-size: 0.85rem;
        line-height: 1.45;
    }

    .featured-treasure-card .treasure-status {
        font-size: 0.8rem;
        margin-top: 5px;
    }


    /* =====================================
       COMPACT PLANT FINDER QUESTIONNAIRE
    ===================================== */

    .plant-finder-page .finder-answer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .plant-finder-page .finder-answer {
        min-width: 0;
        min-height: 65px;
        padding: 10px;
        gap: 4px;
        border-radius: 8px;
    }

    .plant-finder-page .finder-answer-title {
        font-size: 0.9rem;
        line-height: 1.3;
        overflow-wrap: break-word;
    }

    .plant-finder-page .finder-answer-description {
        font-size: 0.78rem;
        line-height: 1.4;
        overflow-wrap: break-word;
    }

    .plant-finder-page .finder-answer.selected,
    .plant-finder-page .finder-answer[aria-pressed="true"] {
        padding-top: 20px;
    }

    .plant-finder-page .finder-controls {
        gap: 8px;
        margin-top: 15px;
    }

    .plant-finder-page .finder-controls .button {
        min-height: 44px;
        padding: 8px 12px;
        font-size: 0.9rem;
    }


    /* Compact recommended care links */

    .plant-finder-page #finder-care-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .plant-finder-page #finder-care-grid .browsing-link {
        min-width: 0;
        min-height: 54px;
        padding: 10px;
        font-size: 0.85rem;
        line-height: 1.4;
    }

}


/* Extra narrow mobile screens */

@media (max-width: 340px) {

    .plant-finder-page .finder-answer-grid,
    .featured-treasure-grid {
        grid-template-columns: 1fr;
    }

}

/* =========================================
   UNIFIED MOBILE COLLECTION CARDS
========================================= */

@media (max-width: 600px) {

    /* Shared two-column collection grids */

    .plant-collection-grid,
    .companion-grid,
    .companion-essentials-grid,
    .hearth-collection-grid,
    .cabinet-collection-grid,
    .grimoire-tool-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        width: 100%;
        max-width: 100%;
        margin: 20px auto 0;
        align-items: stretch;
    }


    /* Consistent collection card dimensions */

    .plant-collection-grid .plant-collection-card,
    .companion-grid .plant-collection-card,
    .companion-essentials-grid .plant-collection-card,
    .hearth-collection-grid .plant-collection-card,
    .cabinet-collection-grid .plant-collection-card,
    .grimoire-tool-grid .plant-collection-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        min-width: 0;
        width: 100%;
        height: 100%;
        padding: 18px 10px 14px;
        border-radius: 65px 65px 8px 8px;
        outline-offset: -4px;
        text-align: center;
    }


    /* Consistent illustration sizes */

    .plant-collection-grid .collection-icon,
    .companion-grid .collection-icon,
    .companion-essentials-grid .collection-icon,
    .hearth-collection-grid .collection-icon,
    .cabinet-collection-grid .collection-icon,
    .grimoire-tool-grid .collection-icon {
        width: 80px;
        height: 80px;
        max-width: 100%;
        object-fit: contain;
        margin: 0 auto 10px;
    }


    /* Consistent card headings */

    .plant-collection-grid .plant-collection-card h3,
    .companion-grid .plant-collection-card h3,
    .companion-essentials-grid .plant-collection-card h3,
    .hearth-collection-grid .plant-collection-card h3,
    .cabinet-collection-grid .plant-collection-card h3,
    .grimoire-tool-grid .plant-collection-card h3 {
        font-size: 1.1rem;
        line-height: 1.3;
        min-height: 0;
        margin: 0 0 8px;
        overflow-wrap: anywhere;
    }


    /* Consistent descriptions */

    .plant-collection-grid .plant-collection-card p,
    .companion-grid .plant-collection-card p,
    .companion-essentials-grid .plant-collection-card p,
    .hearth-collection-grid .plant-collection-card p,
    .cabinet-collection-grid .plant-collection-card p,
    .grimoire-tool-grid .plant-collection-card p {
        font-size: 0.85rem;
        line-height: 1.45;
        margin-bottom: 5px;
        flex-grow: 1;
    }


    /* Consistent decorative stars */

    .plant-collection-grid .plant-collection-card::after,
    .companion-grid .plant-collection-card::after,
    .grimoire-tool-grid .plant-collection-card::after {
        font-size: 0.9rem;
        margin-top: 5px;
    }


    /* Compact buttons inside collection cards */

    .plant-collection-card .button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-width: 0;
        min-height: 44px;
        padding: 8px;
        margin: 10px auto 0;
        font-size: 0.8rem;
        line-height: 1.3;
        text-align: center;
        white-space: normal;
        overflow-wrap: anywhere;
    }


    /* =====================================
       TREASURES OF THE MOMENT
    ===================================== */

    .featured-treasure-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-auto-rows: 1fr;
        align-items: stretch;
        gap: 8px;
        width: 100%;
        max-width: 100%;
        margin: 20px auto 0;
    }

    .featured-treasure-grid > * {
        min-width: 0;
        width: 100%;
        height: 100%;
        box-sizing: border-box;
    }

    .featured-treasure-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 16px 8px;
        outline-offset: -4px;
    }

    .featured-treasure-card .treasure-symbol {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 36px;
        font-size: 1.8rem;
        margin-bottom: 10px;
    }

    .featured-treasure-card h3 {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 3.9em;
        font-size: 0.95rem;
        line-height: 1.3;
        margin-bottom: 8px;
        overflow-wrap: anywhere;
    }

    .featured-treasure-card p {
        font-size: 0.8rem;
        line-height: 1.45;
        flex-grow: 1;
        overflow-wrap: break-word;
    }

    .featured-treasure-card .treasure-status {
        font-size: 0.75rem;
        line-height: 1.4;
        margin-top: auto;
        padding-top: 10px;
        flex-grow: 0;
    }


    /* =====================================
       GRIMOIRE LIBRARY AND JOURNALS
    ===================================== */

    .grimoire-library-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        margin-top: 20px;
    }

    .grimoire-library-card {
        display: grid;
        grid-template-columns: 70px minmax(0, 1fr);
        align-items: center;
        gap: 12px;
        width: 100%;
        padding: 14px;
        text-align: left;
        border-radius: 8px;
        outline-offset: -4px;
    }

    .grimoire-library-icon {
        width: 70px;
        height: 80px;
        max-width: 100%;
        margin: 0;
        object-fit: contain;
    }

    .grimoire-library-content {
        min-width: 0;
        text-align: left;
    }

    .grimoire-library-content .eyebrow {
        font-size: 0.7rem;
        line-height: 1.4;
        margin-bottom: 4px;
    }

    .grimoire-library-content h3 {
        font-size: 1.2rem;
        line-height: 1.3;
        margin-bottom: 6px;
    }

    .grimoire-library-content p:not(.eyebrow) {
        font-size: 0.85rem;
        line-height: 1.45;
        margin-bottom: 6px;
    }

    .grimoire-library-content .grimoire-status {
        font-size: 0.8rem;
        margin-bottom: 0;
    }


    /* =====================================
       CONSISTENT SECTION SPACING
    ===================================== */

    .companion-collections,
    .companion-essentials,
    .plant-essentials,
    .hearth-collections,
    .cabinet-featured,
    .cabinet-collections,
    .grimoire-tools,
    .grimoire-library {
        padding: 35px 6%;
    }

}


/* Preserve readability on very narrow screens */

@media (max-width: 340px) {

    .featured-treasure-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .featured-treasure-card h3 {
        min-height: 0;
    }

}

/* =========================================
   BALANCED THREE-CARD MOBILE LAYOUTS
========================================= */

@media (max-width: 600px) {

    /* Two cards above, one centered below */

    .grimoire-tool-grid,
    .featured-treasure-grid {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        grid-auto-rows: 1fr;
        align-items: stretch;
        gap: 10px;
        width: 100%;
        max-width: 100%;
    }


    /* Each card occupies half the grid */

    .grimoire-tool-grid > *,
    .featured-treasure-grid > * {
        grid-column: span 2;
        width: 100%;
        height: 100%;
        min-width: 0;
    }


    /* Center the final card */

    .grimoire-tool-grid > :last-child:nth-child(odd),
    .featured-treasure-grid > :last-child:nth-child(odd) {
        grid-column: 2 / 4;
    }


    /* Align Grimoire card buttons */

    .grimoire-tool-grid .plant-collection-card h3 {
        min-height: 3.9em;
    }

    .grimoire-tool-grid .plant-collection-card .button {
        min-height: 54px;
        margin-top: auto;
    }


    /* Restore comfortable treasure card sizing */

    .featured-treasure-card {
        padding: 18px 12px;
    }

    .featured-treasure-card .treasure-symbol {
        font-size: 2rem;
        height: 36px;
    }

    .featured-treasure-card h3 {
        font-size: 1.1rem;
        line-height: 1.3;
        min-height: 2.6em;
    }

    .featured-treasure-card p {
        font-size: 0.85rem;
        line-height: 1.45;
    }

    .featured-treasure-card .treasure-status {
        font-size: 0.8rem;
        margin-top: auto;
    }

}


/* Extra narrow screen fallback */

@media (max-width: 340px) {

    .grimoire-tool-grid,
    .featured-treasure-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }

    .grimoire-tool-grid > *,
    .featured-treasure-grid > *,
    .grimoire-tool-grid > :last-child:nth-child(odd),
    .featured-treasure-grid > :last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

}

/* =========================================
   COMPACT MOBILE HOMEPAGE CARDS
========================================= */

@media (max-width: 600px) {

    .explore-section {
        padding: 35px 6%;
    }


    /* Balanced category grid */

    .explore-section .category-grid {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        grid-auto-rows: 1fr;
        align-items: stretch;
        gap: 10px;
        width: 100%;
        max-width: 100%;
        margin: 20px auto 0;
    }


    /* Compact arched cards */

    .explore-section .category-card {
        grid-column: span 2;
        display: flex;
        flex-direction: column;
        align-items: center;
        min-width: 0;
        width: 100%;
        height: 100%;
        padding: 18px 10px 14px;
        border-radius: 65px 65px 8px 8px;
        outline-offset: -4px;
        text-align: center;
    }


    /* Center the final card */

    .explore-section .category-card:last-child:nth-child(odd) {
        grid-column: 2 / 4;
    }


    /* Match collection illustration sizes */

    .explore-section .category-icon {
        width: 80px;
        height: 80px;
        max-width: 100%;
        object-fit: contain;
        margin: 0 auto 10px;
    }


    /* Match collection headings */

    .explore-section .category-card h3 {
        font-size: 1.1rem;
        line-height: 1.3;
        min-height: 2.6em;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 0 8px;
        overflow-wrap: anywhere;
    }


    /* Match collection descriptions */

    .explore-section .category-card p {
        font-size: 0.85rem;
        line-height: 1.45;
        margin-bottom: 5px;
        flex-grow: 1;
    }


    /* Match decorative stars */

    .explore-section .category-card::after {
        font-size: 0.9rem;
        margin-top: 5px;
    }

}


/* Extra narrow screen fallback */

@media (max-width: 340px) {

    .explore-section .category-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }

    .explore-section .category-card,
    .explore-section .category-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

}
/* ========================================
   Shopping Button Refinements
======================================== */

/* Replace emoji arrows with simple text arrows */

.browsing-link-arrow {
    font-size: 0 !important;
    flex-shrink: 0;
}

.browsing-link-arrow::after {
    content: "\2197\FE0E";
    font-family: Arial, sans-serif;
    font-size: 1rem;
    font-weight: normal;
    color: var(--woodland);
}

/* Balanced mobile shopping buttons */

@media (min-width: 341px) and (max-width: 600px) {

    .browsing-grid,
    .category-browsing .browsing-grid {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        grid-auto-rows: 1fr;
        align-items: stretch;
        gap: 8px;
    }

    .browsing-grid > .browsing-link {
        grid-column: span 2;
        width: 100%;
        height: 100%;
        min-height: 60px;
    }

    .browsing-grid > .browsing-link:last-child:nth-child(odd) {
        grid-column: 2 / 4;
    }
}