:root {
    --loom-ink: #1f2a24;
    --loom-muted: #5c695f;
    --loom-green: #2f6f4e;
    --loom-green-dark: #214f38;
    --loom-cream: #fffaf0;
    --loom-paper: #f7f1e6;
    --loom-line: #d8cab5;
    --loom-white: #ffffff;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--loom-cream);
    color: var(--loom-ink);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.55;
}

a {
    color: var(--loom-green-dark);
}

a:focus-visible {
    outline: 3px solid #0b6fba;
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -5rem;
    z-index: 10;
    padding: 0.8rem 1rem;
    background: var(--loom-ink);
    color: var(--loom-white);
    border-radius: 6px;
}

.skip-link:focus {
    top: 1rem;
}

.site-header {
    background: var(--loom-white);
    border-bottom: 1px solid var(--loom-line);
}

.site-header__inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1rem 0;
}

.brand {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--loom-ink);
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
}

.brand img {
    width: 56px;
    height: 56px;
    margin: 0;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.site-nav a,
.button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
}

.site-nav a {
    min-width: 108px;
    padding: 0.7rem 1rem;
    background: var(--loom-paper);
    border: 2px solid var(--loom-line);
    color: var(--loom-ink);
}



.main {
    min-height: 60vh;
}

.main-nav a.active {
    background-color: #c5d8bd;
    border-radius: 20px;
    padding: 8px 16px;
}
.cart-link.active {
    background-color: #c5d8bd !important;
    border-radius: 20px;
    padding: 8px 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.account-icon-link.active {
    background-color: #c5d8bd;
    border-radius: 20px;
    padding: 8px 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.landing-hero {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 520px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr);
    align-items: center;
    gap: 3rem;
    padding: 4rem 0;
}

.landing-hero__brand,
.section__eyebrow {
    margin: 0 0 0.5rem;
    color: var(--loom-green-dark);
    font-size: 1.4rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0;
}

.landing-hero h1,
.page-panel h1 {
    margin: 0 0 1.5rem;
    color: var(--loom-ink);
    font-size: clamp(2.4rem, 4vw, 4rem);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: 0;
}

.landing-hero__copy,
.page-panel p {
    max-width: 680px;
    margin: 0 0 2rem;
    color: var(--loom-muted);
    font-size: 1.8rem;
}

.product-placeholder {
    width: 100%;
    margin: 0;
    padding: 5rem max(32px, calc((100% - 1280px) / 2));
    background: var(--loom-white);
}

.product-placeholder h2 {
    margin: 0 0 2rem;
    color: var(--loom-ink);
    font-size: 2.8rem;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
}

.product-placeholder__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4rem;
}

.product-placeholder article {
    min-width: 0;
}

.product-placeholder__image {
    width: 100%;
    aspect-ratio: 1 / 1;
    margin-bottom: 1rem;
    background: #d9d9d9;
    border: 1px solid #c9c9c9;
}

.product-placeholder h3 {
    margin: 0 0 0.25rem;
    color: var(--loom-ink);
    font-size: 1.6rem;
    font-weight: 800;
}

.product-placeholder p {
    margin: 0;
    color: var(--loom-muted);
    font-size: 1.45rem;
    line-height: 1.35;
}

.product-placeholder strong {
    display: block;
    margin-top: 0.4rem;
    color: var(--loom-ink);
    font-size: 1.5rem;
    font-weight: 800;
}

/* Shop page */
.shop-page {
    width: 70%;
    max-width: 1400px;
    margin: 4rem auto;
}

.shop-page .section__eyebrow {
    margin: 0 0 0.5rem;
    color: var(--loom-green-dark);
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
}

.shop-page h1 {
    margin: 0 0 2.5rem;
    color: var(--loom-ink);
    font-size: clamp(2.5rem, 4vw, 4rem);
    line-height: 1.1;
    font-weight: 800;
}

.shop-product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
}

.shop-product-card {
    min-width: 0;
}

.shop-product-card .product-placeholder__image {
    width: 100%;
    aspect-ratio: 1 / 1;
    margin-bottom: 1.2rem;
    background: #d9d9d9;
    border: 1px solid #c9c9c9;
}

.shop-product-card h2 {
    margin: 0 0 0.6rem;
    color: var(--loom-ink);
    font-size: 1.45rem;
    line-height: 1.3;
    font-weight: 800;
}

.shop-product-card p {
    margin: 0 0 0.8rem;
    color: var(--loom-muted);
    font-size: 1.05rem;
    line-height: 1.5;
}

.shop-product-card strong {
    display: block;
    margin-bottom: 1rem;
    color: var(--loom-ink);
    font-size: 1.4rem;
    font-weight: 800;
}

.shop-product-card .button {
    font-size: 1rem;
}

.search-results-text {
    margin-top: -10px;
    margin-bottom: 25px;
    font-size: 0.9rem;
    color: #666;
}

.add-to-cart-form {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.quantity-input {
    width: 70px;
    height: 48px;
    padding: 0.5rem;
    border: 2px solid var(--loom-line);
    border-radius: 6px;
    font-size: 1rem;
    text-align: center;
}

.add-to-cart-form .button {
    margin: 0;
    white-space: nowrap;
}
.landing-hero__image img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
}

.button {
    width: fit-content;
    padding: 0 1.5rem;
    background: var(--loom-green);
    border: 3px solid var(--loom-ink);
    color: var(--loom-white);
    line-height: 1.2;
}

.button:hover,
.button:focus {
    background: var(--loom-green-dark);
    color: var(--loom-white);
}

.page-panel {
    width: min(820px, calc(100% - 32px));
    margin: 4rem auto;
    padding: 2rem;
    background: var(--loom-white);
    border: 1px solid var(--loom-line);
    border-radius: 8px;
}

.site-footer {
    background: #e3d9c9;
    color: var(--loom-ink);
    padding: 3rem 0;
}

.site-footer__inner {
    width: min(900px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3rem;
}

.site-footer h2 {
    margin: 0 0 0.75rem;
    font-size: 2rem;
    font-weight: 800;
}

.site-footer a {
    min-height: 44px;
    display: flex;
    align-items: center;
    color: var(--loom-ink);
    text-decoration: none;
}

@media (max-width: 820px) {
    .site-header__inner,
    .landing-hero,
    .site-footer__inner {
        grid-template-columns: 1fr;
    }

    .site-header__inner {
        display: grid;
        justify-items: center;
    }

    .landing-hero {
        min-height: 0;
        padding: 3rem 0;
    }

    .landing-hero__image {
        max-width: 580px;
        margin: 0 auto;
    }

    .product-placeholder__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .shop-page {
        width: 85%;
    }

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

@media (max-width: 560px) {
    .brand {
        flex-direction: column;
        text-align: center;
        font-size: 1.6rem;
    }

    .site-nav,
    .button {
        width: 100%;
    }

    .site-nav a,
    .button {
        flex: 1 1 140px;
    }

    .page-panel {
        padding: 1.25rem;
    }

    .product-placeholder__grid {
        grid-template-columns: 1fr;
    }
    @media (max-width: 560px) {
        .brand {
            flex-direction: column;
            text-align: center;
            font-size: 1.6rem;
        }

        .site-nav,
        .button {
            width: 100%;
        }

        .site-nav a,
        .button {
            flex: 1 1 140px;
        }

        .page-panel {
            padding: 1.25rem;
        }

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

    .captcha-row {
        display: flex;
        justify-content: center;
        margin: 18px 0;
    }

    .form-actions {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .form-actions__buttons {
        display: flex;
        gap: 12px;
    }

    #message {
        resize: none;
        height: 180px;
        overflow-y: auto;
    }
}
.site-header__inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-header__left {
    position: relative;
}

.menu-toggle {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
    cursor: pointer;
}

.site-menu {
    position: absolute;
    top: calc(100% + 1rem);
    left: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 180px;
    padding: 1rem;
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.site-menu[hidden] {
    display: none;
}

.site-menu a {
    text-decoration: none;
}

.site-nav {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.menu-toggle {
    color: #333;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
    cursor: pointer;
}
.cart-quantity-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.cart-quantity-form input {
    width: 65px;
    height: 44px;
    padding: 0.4rem;
    text-align: center;
}

.cart-quantity-form .button {
    margin: 0;
    min-height: 44px;
    white-space: nowrap;
}

.cart-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.cart-count {
    min-width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--loom-green);
    color: var(--loom-white);
    font-size: 0.8rem;
    font-weight: 800;
    line-height: 1;
}
.user-name {
    min-height: 48px;
    min-width: auto !important;
    display: inline-flex;
    align-items: center;
    padding: 0 0.5rem !important;
    background: transparent !important;
    border: none !important;
    color: var(--loom-ink) !important;
    font-weight: 700;
    text-decoration: none;
}

.user-name:hover,
.user-name:focus {
    color: var(--loom-green-dark) !important;
    text-decoration: underline;
}

.guest-name:hover,
.guest-name:focus {
    color: var(--loom-ink) !important;
    text-decoration: none;
}

.account-icon-link {
    min-height: 48px;
    min-width: auto !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem !important;
    background: transparent !important;
    border: none !important;
    color: var(--loom-ink) !important;
    text-decoration: none;
}

.account-icon {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.account-icon-link:hover,
.account-icon-link:focus {
    color: var(--loom-green-dark) !important;
}

.cart-link {
    position: relative;
    min-height: 48px;
    min-width: auto !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    padding: 0.7rem !important;
    background: transparent !important;
    border: none !important;
    color: var(--loom-ink) !important;
    text-decoration: none;
}

.cart-icon {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cart-link:hover,
.cart-link:focus {
    color: var(--loom-green-dark) !important;
}
