:root {
    --am-forest: #153e2a;
    --am-deep: #102c20;
    --am-sage: #e8f0e9;
    --am-paper: #f8f8f1;
    --am-line: #d8e4da;
    --am-orange: #ed8733;
}
body, body.home, body.home #main { background: var(--am-paper); }
.amarra-ar-header, .amarra-ar-footer, .am-mobile-dock { background: var(--am-deep) !important; }
.amarra-ar-wa { background: var(--am-orange) !important; color: var(--am-deep) !important; }
.amarra-ar-nav a:hover, .amarra-ar-footer a:hover { color: #ffad69 !important; }
.amx-hero h1, .amx-phero h1, .amx-head h2, .amx-brand b { color: var(--am-deep); }
.amx-hero .amx-img { background: var(--am-sage); }
.amx-eyebrow { background: var(--am-sage); color: var(--am-forest); }
.amx-btn.p, .am-catalog-button { background: var(--am-forest) !important; color: #fff !important; }
.amx-btn.p:hover, .am-catalog-button:hover { background: var(--am-deep) !important; }
.amx-btn.s, .amx-chips a, .am-catalog-card, .amx-brand { border-color: var(--am-line); }
.amx-chips a.on, .amx-card.dark { background: var(--am-forest); border-color: var(--am-forest); }
.amx-card.tint { background: var(--am-sage); }
.amx-brand > span:last-child, .am-catalog-price, .amx-card.tint small { color: var(--am-forest); }
.am-catalog { background: var(--am-paper); }
.am-catalog-photo { background: #f1f5f0; }
.amx-brand .amx-img { aspect-ratio: 4 / 3; background: #f3f6f1; }
.amx-brand .amx-img img { object-fit: contain; transform: none; padding: 8px; }
.amx-brand--logo .amx-img img { padding: 15px; }
.amx-category-link {
    display: grid;
    grid-template-columns: 88px 1fr auto;
    align-items: center;
    gap: 18px;
    max-width: 520px;
    padding: 14px 18px;
    margin-bottom: 34px;
    border: 1px solid var(--am-line);
    border-radius: 20px;
    background: #fff;
    color: var(--am-deep) !important;
}
.amx-category-link:hover { border-color: var(--am-forest); }
.amx-category-link img {
    width: 88px;
    height: 88px;
    object-fit: contain;
    padding: 8px;
    border-radius: 12px;
    background: var(--am-paper);
}
.amx-category-link strong, .amx-category-link small { display: block; }
.amx-category-link strong { font-size: clamp(18px, 2.5vw, 25px); }
.amx-category-link small { color: #3a614d; font-size: 14px; }
.amx-category-link > span:last-child {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--am-sage);
    color: var(--am-forest);
}
.amx-brand-heading { margin: 0 0 14px; color: var(--am-deep); font-size: clamp(20px, 3vw, 28px); }
.amx-category-link:focus-visible, .amx-brand:focus-visible, .amx-chips a:focus-visible {
    outline: 2px solid var(--am-forest);
    outline-offset: 3px;
}
@media (max-width: 767px) {
    .amx-category-link { grid-template-columns: 66px 1fr auto; gap: 12px; margin-bottom: 24px; padding: 12px; }
    .amx-category-link img { width: 66px; height: 66px; }
    .amx-category-link > span:last-child { width: 32px; height: 32px; }
    .amx-brand:last-child:nth-child(odd) { grid-column: auto; }
    .amx-brand:last-child:nth-child(odd) .amx-img { aspect-ratio: 4 / 3; }
    .amx-brand b { font-size: 17px; }
}
body .amarra-ar-header, body .amarra-ar-footer { background: var(--am-deep) !important; }
body .amarra-ar-header .amarra-ar-wa { background: var(--am-orange) !important; color: var(--am-deep) !important; }
main .amx-card.dark { background: var(--am-forest); }
main .amx-card.tint, main .amx-eyebrow { background: var(--am-sage); }
main .amx-eyebrow { color: var(--am-forest); }
.amx-brand .amx-logo-art {
    display: grid !important;
    place-items: center;
    aspect-ratio: 4 / 3;
    padding: 16px;
    border-radius: 14px;
    background: #f3f6f1;
}
.amx-brand .amx-logo-art img { display: block; width: 100%; height: auto; }

/* Storefront */
body.home .amx-hero {
    margin-block: 0 16px;
    padding-block: clamp(44px, 7vw, 96px);
    background: radial-gradient(ellipse at 14% 12%, #28513c, transparent 58%), #102c20;
}
body.home .amx-hero-grid { gap: clamp(24px, 5vw, 72px); }
body.home .amx-hero h1 {
    max-width: 14ch;
    font-size: clamp(35px, 4.5vw, 68px);
    color: #fffaf0;
    line-height: 1.27;
    margin-block: 17px 20px;
}
body.home .amx-hero p { color: #dce9df; max-width: 440px; }
body.home .amx-hero .amx-eyebrow { background: #edf5ea; color: #153e2a; }
body.home .amx-hero .amx-btn.p {
    background: #ffa557 !important;
    color: #152b21 !important;
}
body.home .amx-hero .amx-btn.p:hover { background: #ffb87c !important; }
body.home .amx-hero .amx-btn.s {
    background: transparent;
    border-color: #abc5b5;
    color: #fffaf0 !important;
}
body.home .amx-hero .amx-img {
    border: 1px solid #d8e4da;
    border-radius: 24px;
    aspect-ratio: 4 / 3;
    background: #fff;
}
body.home .amx-hero .amx-img img { object-fit: contain; transform: none; }
main #amarra-equipment { padding-block: clamp(35px, 5vw, 68px); }
#amarra-equipment .amx-head { display: block; margin-bottom: 19px; }
#amarra-equipment .amx-head p { margin: 4px 0 0; }
#amarra-equipment .amx-category-link {
    max-width: none;
    background: #e9f1e9;
    padding: clamp(14px, 2.6vw, 26px);
    margin-bottom: clamp(32px, 4vw, 52px);
}
#amarra-equipment .amx-category-link img { background: #fff; }
#amarra-equipment .amx-brand-heading { margin-bottom: 18px; }
#amarra-equipment .amx-brand {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 10px;
    border: 1px solid #d8e4da;
}
#amarra-equipment .amx-logo-art { aspect-ratio: 16 / 10; padding: clamp(12px, 1.4vw, 20px); }
#amarra-equipment [data-brand="astoria"] .amx-logo-art,
#amarra-equipment [data-brand="sanremo"] .amx-logo-art { background: #183428; }
#amarra-equipment [data-brand="astoria"] .amx-logo-art img { width: 80%; max-height: 84px; object-fit: contain; }
#amarra-equipment .amx-brand span:last-child:not(.amx-logo-art) { padding-bottom: 3px; }
#amarra-equipment .amx-brand:hover { box-shadow: 0 12px 32px #153e2a1c; }

/* Catalog, product and information pages */
main .amx-phero { background: linear-gradient(180deg, #e8f0e9, transparent); padding-inline: 16px; }
main .amx-phero .amx-eyebrow { background: #fff; }
main .amx-chips a.on { color: #fff; }
main .am-catalog { padding-block: clamp(28px, 4.5vw, 60px); }
main .am-catalog-card { border-radius: 16px; border-color: #d8e4da; }
main .am-catalog-photo { border-bottom: 1px solid #e8eee7; }
main .am-catalog-info h3 { overflow-wrap: anywhere; }
main .am-catalog-button { border-radius: 9px; }
.single-product main .woocommerce-product-gallery,
.single-product main .entry-summary {
    border: 1px solid #d8e4da;
    border-radius: 18px;
    background: #fff;
    padding: clamp(15px, 3vw, 30px);
}
.single-product main .amarra-product-wa {
    background: #153e2a !important;
    color: #fff !important;
    border-radius: 10px;
}
main .amx-stat, main .amx-tile { border-color: #d8e4da; }
main .amx-stat b, main .amx-tile i, main .amx-info a.v { color: #153e2a; }

@media (max-width: 767px) {
    body.home .amx-hero { padding-block: 32px 25px; }
    body.home .amx-hero h1 { font-size: clamp(32px, 8.8vw, 42px); }
    body.home .amx-hero .amx-img { aspect-ratio: 16 / 10; border-radius: 16px; }
    #amarra-equipment .amx-brand:last-child:nth-child(odd) { grid-column: auto; }
    #amarra-equipment .amx-logo-art { border-radius: 11px; }
    #amarra-equipment .amx-brand b { margin-top: 7px; }
    .single-product main .entry-summary { margin-block-start: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    #amarra-equipment .amx-brand:hover { transform: none; }
}

body .amarra-ar-header .amarra-ar-logo {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 54px;
    height: 61px;
    padding: 4px;
    border-radius: 10px;
    background: #fffdf8;
}
body .amarra-ar-header .amarra-ar-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
body.home .amx-hero .amx-img:has(.amx-hero-logo) {
    display: grid;
    place-items: center;
    background: radial-gradient(ellipse, #fffdf8 30%, #e8f0e9);
}
body.home .amx-hero .amx-img .amx-hero-logo {
    width: auto;
    height: 88%;
    max-width: 82%;
    max-height: 300px;
    object-fit: contain;
}
@media (max-width: 767px) {
    body .amarra-ar-header .amarra-ar-logo { width: 45px; height: 50px; }
    body.home .amx-hero .amx-img .amx-hero-logo { max-height: 190px; height: 85%; }
}
body .amarra-ar-header .amarra-ar-logo { grid-template: minmax(0, 1fr) / minmax(0, 1fr); }
body .amarra-ar-header .amarra-ar-logo img {
    width: auto;
    height: 100%;
    max-width: 100%;
    max-height: 53px;
}
@media (max-width: 767px) {
    body .amarra-ar-header .amarra-ar-logo img { max-height: 42px; }
}

@media (max-width: 767px) {
    body.home .amx-hero { padding-block: 20px; }
    body.home .amx-hero-grid {
        grid-template-columns: minmax(75px, 32%) minmax(0, 1fr);
        grid-template-areas: "art title" "art description" "actions actions";
        gap: 8px 12px;
    }
    body.home .amx-hero-grid > div:first-child { display: contents; }
    body.home .amx-hero-grid .amx-eyebrow { display: none; }
    body.home .amx-hero h1 {
        grid-area: title;
        align-self: end;
        max-width: none;
        margin: 0;
        font-size: clamp(21px, 5.7vw, 33px);
        line-height: 1.28;
    }
    body.home .amx-hero p {
        grid-area: description;
        margin: 0;
        font-size: clamp(12px, 3.35vw, 16px);
        line-height: 1.5;
    }
    body.home .amx-hero .amx-img:has(.amx-hero-logo) {
        grid-area: art;
        align-self: stretch;
        aspect-ratio: auto;
        min-height: 105px;
    }
    body.home .amx-hero .amx-img .amx-hero-logo { max-height: 105px; max-width: 84%; }
    body.home .amx-hero .amx-btns {
        grid-area: actions;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin-top: 5px;
    }
    body.home .amx-hero .amx-btns .amx-btn {
        min-height: 44px;
        padding: 7px 5px;
        font-size: clamp(11px, 3.2vw, 14px);
        white-space: normal;
    }
}

@media (prefers-reduced-motion: no-preference) {
    @keyframes amarra-enter {
        from { opacity: .45; translate: 0 12px; }
        to { opacity: 1; translate: 0 0; }
    }
    body.home .amx-hero h1, body.home .amx-hero .amx-hero-logo {
        animation: amarra-enter .55s cubic-bezier(.22,.72,.28,1) both;
    }
    .amx-category-link, .amx-btn, .am-catalog-button, .amx-chips a, .amarra-product-wa {
        transition: translate .2s ease-out, box-shadow .2s ease-out, background-color .2s ease-out;
    }
    @media (hover: hover) {
        .amx-category-link:hover, .amx-btn:hover, .amarra-product-wa:hover {
            translate: 0 -2px;
            box-shadow: 0 8px 20px #102c2022;
        }
    }
    .amx-btn:active, .amarra-product-wa:active { translate: 0 1px; }
    @supports (animation-timeline: view()) {
        :is(.amx-category-link, .amx-brand, .amx-card, .amx-stat, .amx-tile, .am-catalog-card) {
            animation: amarra-enter linear both;
            animation-timeline: view();
            animation-range: entry 0% entry 65%;
        }
    }
}
