/* =========================================
   TMX LABS — SHOP
========================================= */

:root {

    --bg: #f4f4f0;
    --surface: #ffffff;
    --text: #111111;
    --muted: #777b77;
    --line: #dedfd9;
    --green: #b9d86c;
    --green-dark: #7ea43d;
    --dark: #111411;

}


/* =========================================
   RESET
========================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {

    margin: 0;

    background: var(--bg);
    color: var(--text);

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}


/* =========================================
   HEADER
========================================= */

.site-header {

    width: 100%;

    border-bottom:
        1px solid var(--line);

    background:
        rgba(244, 244, 240, .94);
}

.header-inner {

    width:
        min(1400px, calc(100% - 48px));

    margin: 0 auto;

    min-height: 78px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 40px;
}

.logo {

    font-size: 17px;
    font-weight: 700;

    letter-spacing: .16em;

    white-space: nowrap;
}

.main-nav {

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 28px;

    flex: 1;
}

.main-nav a {

    position: relative;

    font-size: 11px;
    font-weight: 500;

    letter-spacing: .08em;

    text-transform: uppercase;

    color: var(--muted);

    transition:
        color .2s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--text);
}

.main-nav a.active::after {

    content: "";

    position: absolute;

    left: 0;
    right: 0;

    bottom: -9px;

    height: 1px;

    background: var(--text);
}
/* =========================================
   RESEARCH AREAS DROPDOWN
========================================= */

.nav-dropdown {

    position: relative;

    display: flex;
    align-items: center;
}


/* TRIGGER */

.main-nav .nav-dropdown-trigger {

    display: flex;

    align-items: center;

    gap: 6px;
}


.nav-dropdown-arrow {

    font-size: 11px;

    line-height: 1;

    transition:
        transform .2s ease;
}


/* DROPDOWN */

.nav-dropdown-menu {

    position: absolute;

    top: calc(100% + 20px);
    left: -20px;

    width: 245px;

    padding: 8px 0;

    background:
        rgba(244, 244, 240, .98);

    border:
        1px solid var(--line);

    box-shadow:
        0 18px 45px
        rgba(17, 17, 17, .10);

    opacity: 0;
    visibility: hidden;

    transform:
        translateY(8px);

    transition:
        opacity .2s ease,
        visibility .2s ease,
        transform .2s ease;

    z-index: 500;
}


/* HOVER BRIDGE */

.nav-dropdown-menu::before {

    content: "";

    position: absolute;

    left: 0;
    right: 0;

    top: -21px;

    height: 21px;
}


/* DROPDOWN LINKS */

.main-nav .nav-dropdown-menu a {

    display: block;

    padding:
        12px 20px;

    color:
        var(--muted);

    font-size: 10px;

    font-weight: 500;

    letter-spacing: .08em;

    text-transform: uppercase;

    white-space: nowrap;

    border-bottom:
        1px solid var(--line);

    transition:
        color .2s ease,
        padding-left .2s ease;
}


.main-nav .nav-dropdown-menu a:last-child {

    border-bottom: 0;
}


.main-nav .nav-dropdown-menu a:hover {

    color:
        var(--text);

    padding-left:
        24px;
}


/* OPEN */

.nav-dropdown:hover
.nav-dropdown-menu {

    opacity: 1;

    visibility: visible;

    transform:
        translateY(0);
}


.nav-dropdown:hover
.nav-dropdown-arrow {

    transform:
        rotate(180deg);
}
.header-actions {

    display: flex;

    align-items: center;

    gap: 20px;
}

.header-search,
.cart-button {

    border: 0;

    background: transparent;

    padding: 0;

    font-size: 11px;

    letter-spacing: .08em;

    text-transform: uppercase;

    color: var(--text);

    cursor: pointer;
}

.cart-button {

    display: flex;

    align-items: center;

    gap: 7px;
}

.cart-count {

    min-width: 18px;
    height: 18px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--text);
    color: white;

    font-size: 9px;

    line-height: 1;

    transition:
        transform .2s ease,
        background .2s ease;
}

.cart-count.cart-updated {

    transform: scale(1.25);

    background:
        var(--green-dark);
}


/* =========================================
   HERO
========================================= */

.shop-hero {

    position: relative;

    width:
        min(1400px, calc(100% - 48px));

    min-height: 390px;

    margin: 0 auto;

    display: flex;

    align-items: center;

    overflow: hidden;
}

.shop-hero-content {

    position: relative;

    z-index: 2;

    max-width: 650px;
}

.eyebrow {

    display: block;

    margin-bottom: 18px;

    font-size: 9px;
    font-weight: 600;

    letter-spacing: .18em;

    text-transform: uppercase;

    color: var(--muted);
}

.shop-hero h1 {

    margin: 0 0 20px;

    font-size:
        clamp(52px, 6vw, 88px);

    line-height: .95;

    font-weight: 500;

    letter-spacing: -.055em;
}

.shop-hero p {

    max-width: 480px;

    margin: 0;

    color: var(--muted);

    font-size: 14px;

    line-height: 1.7;
}


/* =========================================
   SCIENCE OBJECT
========================================= */

.shop-science {

    position: absolute;

    right: 50px;
    top: 30px;

    width: 420px;
    height: 330px;

    pointer-events: none;
}

.science-orbit {

    position: absolute;

    left: 50%;
    top: 50%;

    border:
        1px solid rgba(126, 164, 61, .28);

    border-radius: 50%;

    transform-origin: center center;
}

.orbit-one {

    width: 270px;
    height: 100px;

    transform:
        translate(-50%, -50%)
        rotate(-20deg);

    animation:
        orbitOne 18s linear infinite;
}

.orbit-two {

    width: 300px;
    height: 130px;

    transform:
        translate(-50%, -50%)
        rotate(45deg);

    animation:
        orbitTwo 24s linear infinite;
}

.orbit-three {

    width: 190px;
    height: 250px;

    transform:
        translate(-50%, -50%)
        rotate(65deg);

    animation:
        orbitThree 30s linear infinite;
}

.science-core {

    position: absolute;

    left: 50%;
    top: 50%;

    width: 64px;
    height: 64px;

    transform:
        translate(-50%, -50%);

    border-radius: 50%;

    background:
        radial-gradient(
            circle at 35% 30%,
            #e5f3b7 0%,
            var(--green) 35%,
            var(--green-dark) 100%
        );

    box-shadow:
        0 0 45px
        rgba(185, 216, 108, .35);

    animation:
        corePulse 4.5s ease-in-out infinite;
}

.science-node {

    position: absolute;

    width: 10px;
    height: 10px;

    border-radius: 50%;

    background:
        var(--green-dark);

    box-shadow:
        0 0 0 5px
        rgba(185, 216, 108, .14);
}

.node-one {

    top: 67px;
    left: 94px;

    animation:
        nodeFloatOne 5s ease-in-out infinite;
}

.node-two {

    right: 57px;
    top: 150px;

    animation:
        nodeFloatTwo 6s ease-in-out infinite;
}

.node-three {

    bottom: 51px;
    left: 178px;

    animation:
        nodeFloatThree 7s ease-in-out infinite;
}


/* =========================================
   SCIENCE ANIMATIONS
========================================= */

@keyframes orbitOne {

    0% {
        transform:
            translate(-50%, -50%)
            rotate(-20deg);
    }

    100% {
        transform:
            translate(-50%, -50%)
            rotate(340deg);
    }
}

@keyframes orbitTwo {

    0% {
        transform:
            translate(-50%, -50%)
            rotate(45deg);
    }

    100% {
        transform:
            translate(-50%, -50%)
            rotate(-315deg);
    }
}

@keyframes orbitThree {

    0% {
        transform:
            translate(-50%, -50%)
            rotate(65deg);
    }

    100% {
        transform:
            translate(-50%, -50%)
            rotate(425deg);
    }
}

@keyframes corePulse {

    0%,
    100% {

        transform:
            translate(-50%, -50%)
            scale(1);
    }

    50% {

        transform:
            translate(-50%, -50%)
            scale(1.08);
    }
}

@keyframes nodeFloatOne {

    0%,
    100% {
        transform:
            translateY(0);
    }

    50% {
        transform:
            translateY(-8px);
    }
}

@keyframes nodeFloatTwo {

    0%,
    100% {
        transform:
            translateY(0);
    }

    50% {
        transform:
            translateY(9px);
    }
}

@keyframes nodeFloatThree {

    0%,
    100% {
        transform:
            translateY(0);
    }

    50% {
        transform:
            translateY(-6px);
    }
}


/* =========================================
   SHOP CONTROLS
========================================= */

.shop-controls {

    width:
        min(1400px, calc(100% - 48px));

    margin: 0 auto;

    padding: 25px 0;

    border-top:
        1px solid var(--line);

    border-bottom:
        1px solid var(--line);

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 30px;
}

.category-tabs {

    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 22px;
}

.category-tab {

    border: 0;

    background: transparent;

    padding: 0;

    color: var(--muted);

    font-size: 10px;

    letter-spacing: .08em;

    text-transform: uppercase;

    cursor: pointer;

    transition:
        color .2s ease;
}

.category-tab:hover,
.category-tab.active {
    color: var(--text);
}

.category-tab.active {
    font-weight: 600;
}

.shop-tools {

    display: flex;

    align-items: center;

    gap: 22px;
}

.shop-tools button {

    border: 0;

    background: transparent;

    padding: 0;

    color: var(--muted);

    font-size: 10px;

    letter-spacing: .08em;

    text-transform: uppercase;

    cursor: pointer;

    transition:
        color .2s ease;
}

.shop-tools button:hover {
    color: var(--text);
}


/* =========================================
   PRODUCTS
========================================= */

.shop-products {

    width:
        min(1400px, calc(100% - 48px));

    margin: 0 auto;

    padding: 42px 0 100px;
}

.shop-product-grid {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 16px;
}


/* =========================================
   PRODUCT CARD
========================================= */

.shop-product-card {

    min-width: 0;

    background:
        var(--surface);

    border:
        1px solid var(--line);

    transition:
        transform .25s ease,
        border-color .25s ease,
        box-shadow .25s ease;
}

.shop-product-card:hover {

    transform:
        translateY(-3px);

    border-color:
        #cfd1ca;

    box-shadow:
        0 14px 35px
        rgba(0, 0, 0, .045);
}


/* =========================================
   PRODUCT IMAGE
========================================= */

.shop-product-image {

    position: relative;

    height: 300px;

    display: flex;

    align-items: center;
    justify-content: center;

    background:
        radial-gradient(
            circle at 50% 45%,
            #ffffff 0%,
            #f5f5f1 70%,
            #eeeeea 100%
        );

    overflow: hidden;
}

.product-number {

    position: absolute;

    top: 18px;
    left: 18px;

    font-size: 9px;

    letter-spacing: .14em;

    color: var(--muted);
}
.shop-real-product-image {
    display: block;
    width: auto;
    height: 190px;
    max-width: 85%;
    object-fit: contain;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 16px 18px rgba(0, 0, 0, .12));
}

/* =========================================
   VIAL
========================================= */

.product-vial {

    position: relative;

    width: 105px;
    height: 175px;

    filter:
        drop-shadow(
            0 16px 18px
            rgba(0, 0, 0, .12)
        );
}

.vial-cap {

    position: absolute;

    top: 0;
    left: 50%;

    width: 68px;
    height: 35px;

    transform:
        translateX(-50%);

    background:
        linear-gradient(
            90deg,
            #d8d9d4 0%,
            #f7f7f4 25%,
            #d5d7d1 55%,
            #fafaf8 100%
        );

    border-radius:
        7px 7px 3px 3px;

    border:
        1px solid #c9cbc5;
}

.vial-body {

    position: absolute;

    left: 50%;
    bottom: 0;

    width: 105px;
    height: 145px;

    transform:
        translateX(-50%);

    border-radius:
        12px 12px 17px 17px;

    background:
        linear-gradient(
            90deg,
            rgba(210, 216, 211, .8),
            rgba(255, 255, 255, .9) 35%,
            rgba(215, 222, 218, .8)
        );

    border:
        1px solid #c9cec9;

    overflow: hidden;
}

.vial-body::before {

    content: "";

    position: absolute;

    left: 14px;
    top: 0;
    bottom: 0;

    width: 10px;

    background:
        rgba(255,255,255,.45);

    filter:
        blur(3px);
}

.vial-label {

    position: absolute;

    left: 10px;
    right: 10px;

    top: 38px;

    height: 72px;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 5px;

    background:
        #f3f4ef;

    border:
        1px solid #d9dbd4;
}

.vial-label strong {

    font-size: 10px;

    letter-spacing: .14em;
}

.vial-label span {

    font-size: 9px;

    letter-spacing: .04em;
}

.vial-label small {

    font-size: 7px;

    color: var(--muted);
}


/* =========================================
   PRODUCT INFO
========================================= */

.shop-product-info {
    padding: 18px;
}

.product-top {

    display: flex;

    align-items: flex-start;
    justify-content: space-between;

    gap: 15px;
}

.product-category {

    display: block;

    margin-bottom: 7px;

    font-size: 8px;
    font-weight: 600;

    letter-spacing: .15em;

    color: var(--muted);
}

.shop-product-card h2 {

    margin: 0;

    font-size: 20px;

    line-height: 1;

    font-weight: 500;

    letter-spacing: -.025em;
}

.product-price {

    font-size: 15px;

    font-weight: 500;

    white-space: nowrap;
}

.product-meta {

    display: flex;

    align-items: center;

    gap: 14px;

    margin-top: 18px;

    padding-top: 14px;

    border-top:
        1px solid var(--line);

    color: var(--muted);

    font-size: 9px;

    letter-spacing: .03em;

    flex-wrap: wrap;
}

.product-actions {

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 8px;

    margin-top: 18px;
}

.view-product,
.add-to-cart {

    min-height: 37px;

    display: flex;

    align-items: center;
    justify-content: center;

    border:
        1px solid var(--line);

    font-size: 8px;

    font-weight: 600;

    letter-spacing: .1em;

    text-transform: uppercase;

    cursor: pointer;

    transition:
        background .2s ease,
        color .2s ease,
        border-color .2s ease;
}

.view-product {
    background: transparent;
}

.view-product:hover {

    border-color:
        var(--text);
}

.add-to-cart {

    background:
        var(--text);

    border-color:
        var(--text);

    color: white;
}

.add-to-cart:hover {

    background:
        var(--green-dark);

    border-color:
        var(--green-dark);
}

.add-to-cart.added {

    background:
        var(--green-dark);

    border-color:
        var(--green-dark);
}


/* =========================================
   NO RESULTS
========================================= */

.shop-no-results {

    display: none;

    padding: 80px 20px;

    text-align: center;

    border:
        1px solid var(--line);

    background:
        var(--surface);
}

.shop-no-results.visible {

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 8px;
}

.shop-no-results strong {

    font-size: 14px;

    font-weight: 500;
}

.shop-no-results span {

    font-size: 11px;

    color: var(--muted);
}


/* =========================================
   QUALITY
========================================= */

.shop-quality {

    width:
        min(1400px, calc(100% - 48px));

    margin:
        0 auto 100px;

    min-height: 380px;

    background:
        var(--dark);

    color: white;

    display: flex;

    align-items: center;

    padding: 70px;
}

.quality-content {
    max-width: 600px;
}

.quality-content .eyebrow {
    color: #858985;
}

.quality-content h2 {

    margin: 0 0 25px;

    font-size:
        clamp(42px, 5vw, 70px);

    line-height: .98;

    font-weight: 500;

    letter-spacing: -.05em;
}

.quality-content p {

    max-width: 470px;

    margin: 0 0 30px;

    color: #9da19d;

    font-size: 13px;

    line-height: 1.7;
}

.quality-content a {

    display: inline-flex;

    min-height: 42px;

    align-items: center;

    padding: 0 20px;

    border:
        1px solid #4c504c;

    font-size: 9px;

    font-weight: 600;

    letter-spacing: .12em;

    text-transform: uppercase;

    transition:
        background .2s ease,
        border-color .2s ease;
}

.quality-content a:hover {

    background:
        #202420;

    border-color:
        #707570;
}



/* =========================================
   CART TOAST
========================================= */

.cart-toast {

    position: fixed;

    right: 24px;
    bottom: 24px;

    z-index: 1000;

    width: 300px;

    padding:
        16px 17px;

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    background:
        var(--dark);

    color: white;

    border:
        1px solid #2b302c;

    box-shadow:
        0 18px 50px
        rgba(0, 0, 0, .18);

    opacity: 0;
    visibility: hidden;

    transform:
        translateY(15px);

    transition:
        opacity .25s ease,
        visibility .25s ease,
        transform .25s ease;
}

.cart-toast.show,
.cart-toast.visible {

    opacity: 1;

    visibility: visible;

    transform:
        translateY(0);
}

.cart-toast > div {

    display: flex;

    flex-direction: column;

    gap: 5px;
}

.cart-toast strong {

    font-size: 10px;

    letter-spacing: .1em;

    text-transform: uppercase;
}

.cart-toast span {

    color: #9da19d;

    font-size: 10px;
}

.cart-toast button {

    width: 25px;
    height: 25px;

    border: 0;

    background: transparent;

    color: #8f948f;

    font-size: 20px;

    line-height: 1;

    cursor: pointer;
}


/* =========================================
   SEARCH OVERLAY
========================================= */

.tmx-search-overlay {

    position: fixed;

    inset: 0;

    z-index: 2000;

    display: flex;

    align-items: flex-start;
    justify-content: center;

    padding:
        12vh 24px 40px;

    background:
        rgba(17, 20, 17, .72);

    backdrop-filter:
        blur(8px);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity .25s ease,
        visibility .25s ease;
}

.tmx-search-overlay.active {

    opacity: 1;

    visibility: visible;
}

.tmx-search-container {

    position: relative;

    width:
        min(680px, 100%);

    padding:
        42px;

    background:
        var(--surface);

    border:
        1px solid var(--line);

    box-shadow:
        0 30px 80px
        rgba(0, 0, 0, .2);

    transform:
        translateY(12px);

    transition:
        transform .25s ease;
}

.tmx-search-overlay.active
.tmx-search-container {

    transform:
        translateY(0);
}

.tmx-search-close {

    position: absolute;

    top: 18px;
    right: 18px;

    width: 30px;
    height: 30px;

    border: 0;

    background: transparent;

    color: var(--muted);

    font-size: 24px;

    cursor: pointer;
}

.tmx-cart-eyebrow {

    display: block;

    margin-bottom: 15px;

    color: var(--muted);

    font-size: 9px;

    font-weight: 600;

    letter-spacing: .18em;

    text-transform: uppercase;
}

.tmx-search-container h2 {

    margin:
        0 0 25px;

    font-size: 38px;

    line-height: 1;

    font-weight: 500;

    letter-spacing: -.04em;
}

#tmxSearchInput {

    width: 100%;

    height: 54px;

    padding:
        0 16px;

    border:
        1px solid var(--line);

    background:
        #f7f7f3;

    color:
        var(--text);

    outline: none;

    font-size: 14px;

    transition:
        border-color .2s ease,
        background .2s ease;
}

#tmxSearchInput:focus {

    background:
        white;

    border-color:
        #aeb1aa;
}

.tmx-search-results {

    margin-top: 15px;

    display: flex;

    flex-direction: column;

    gap: 6px;

    max-height: 330px;

    overflow-y: auto;
}

.tmx-search-result {

    width: 100%;

    padding:
        14px 15px;

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    border:
        1px solid var(--line);

    background:
        white;

    text-align: left;

    cursor: pointer;

    transition:
        background .2s ease,
        border-color .2s ease;
}

.tmx-search-result:hover {

    background:
        #f5f5f1;

    border-color:
        #c9cbc5;
}

.tmx-search-result span {

    display: flex;

    flex-direction: column;

    gap: 4px;
}

.tmx-search-result strong {

    font-size: 11px;

    font-weight: 600;
}

.tmx-search-result small {

    color: var(--muted);

    font-size: 9px;
}

.tmx-no-results {

    padding:
        20px;

    text-align: center;

    color: var(--muted);

    font-size: 11px;
}


/* =========================================
   SORT MENU
========================================= */

.tmx-sort-menu {

    position: fixed;

    z-index: 1900;

    width: 190px;

    padding: 7px;

    background:
        white;

    border:
        1px solid var(--line);

    box-shadow:
        0 15px 40px
        rgba(0, 0, 0, .12);

    opacity: 0;
    visibility: hidden;

    transform:
        translateY(-5px);

    transition:
        opacity .2s ease,
        visibility .2s ease,
        transform .2s ease;
}

.tmx-sort-menu.active {

    opacity: 1;

    visibility: visible;

    transform:
        translateY(0);
}

.tmx-sort-option {

    width: 100%;

    padding:
        11px 12px;

    border: 0;

    background: transparent;

    text-align: left;

    color: var(--muted);

    font-size: 9px;

    letter-spacing: .08em;

    text-transform: uppercase;

    cursor: pointer;
}

.tmx-sort-option:hover,
.tmx-sort-option.active {

    background:
        #f4f4f0;

    color:
        var(--text);
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 1050px) {

    .main-nav {
        gap: 17px;
    }

    .shop-science {

        right: 0;

        opacity: .65;
    }

    .shop-product-grid {

        grid-template-columns:
            repeat(3, 1fr);
    }
}


/* =========================================
   TABLET — 2 COLUMNS
========================================= */

@media (max-width: 850px) {

    .header-inner {

        width:
            min(100% - 32px, 700px);

        gap: 20px;
    }

    .main-nav {
        display: none;
    }

    .shop-hero,
    .shop-controls,
    .shop-products,
    .shop-quality,
    .site-footer {

        width:
            calc(100% - 32px);
    }

    .shop-hero {

        min-height: 340px;
    }

    .shop-science {

        right: -80px;

        opacity: .4;
    }

    .shop-controls {

        align-items: flex-start;

        flex-direction: column;
    }

    .shop-product-grid {

        grid-template-columns:
            repeat(2, 1fr);
    }

    .shop-product-image {

        height: 300px;
    }

    .quality-content h2 {

        font-size: 52px;
    }
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 600px) {

    .header-inner {
        min-height: 68px;
    }

    .header-actions {
        gap: 13px;
    }

    .header-search {
        display: none;
    }

    .shop-hero {

        min-height: 390px;

        align-items: flex-start;

        padding-top: 65px;
    }

    .shop-hero h1 {

        font-size: 52px;
    }

    .shop-science {

        width: 300px;
        height: 240px;

        right: -70px;
        top: 160px;
    }

    .shop-controls {

        padding:
            20px 0;
    }

    .category-tabs {

        gap: 15px;
    }

    .shop-tools {

        width: 100%;

        justify-content: space-between;
    }

    .shop-products {

        padding-top: 30px;
        padding-bottom: 70px;
    }

    .shop-product-grid {

        grid-template-columns:
            1fr;
    }

    .shop-product-image {

        height: 300px;
    }

    .shop-quality {

        min-height: 350px;

        padding:
            45px 28px;

        margin-bottom: 70px;
    }

    .quality-content h2 {

        font-size: 44px;
    }

    .footer-top {

        grid-template-columns:
            1fr 1fr;

        gap: 35px;
    }

    .footer-brand {

        grid-column:
            1 / -1;
    }

    .footer-bottom {

        gap: 15px;

        flex-direction: column;
    }

    .cart-toast {

        left: 16px;
        right: 16px;

        bottom: 16px;

        width: auto;
    }

    .tmx-search-container {

        padding:
            35px 22px 25px;
    }

    .tmx-search-container h2 {

        font-size: 30px;
    }
}


/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 400px) {

    .shop-hero h1 {

        font-size: 46px;
    }

    .shop-product-info {

        padding: 16px;
    }

    .product-actions {

        grid-template-columns:
            1fr;
    }
}


/* =========================================
   REDUCED MOTION
========================================= */

@media (prefers-reduced-motion: reduce) {

    .science-orbit,
    .science-core,
    .science-node {

        animation: none;
    }

    .shop-product-card,
    .cart-toast,
    .tmx-search-overlay,
    .tmx-search-container {

        transition: none;
    }
}
/* ==========================================
   AGEM LABS — SHOP HEADER LOGO
========================================== */

.site-header .agem-logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    line-height: 1;
    text-decoration: none;
}

.site-header .agem-logo-img {
    display: block;
    width: auto;
    height: 52px;
    max-width: 260px;
    object-fit: contain;
}

@media (max-width: 768px) {
    .site-header .agem-logo-img {
        height: 40px;
        max-width: 200px;
    }
}
/* =========================================
   AGEM LABS — UNIFIED HEADER ACTIONS
========================================= */

.site-header .header-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.site-header .header-search {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 36px;
    padding: 0;
    background: transparent;
    border: none;
    color: #101512;
    cursor: pointer;
}

.site-header .header-search svg {
    display: block;
}

.site-header .cart-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 44px;
    padding: 0 18px;
    background: #101512;
    border: 1px solid #101512;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .02em;
    cursor: pointer;
}

.site-header .cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #a5bd99;
    color: #101512;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
}
/* ================================================
   AGEM LABS — SHOP HEADER MATCHES HOME
================================================ */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(244, 242, 236, .82);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(16, 21, 18, .13);
}

/* Same container as Home */
.site-header .nav-container {
    width: 100%;
    max-width: 1440px;
    min-height: 0;
    height: 76px;
    margin: 0 auto;
    padding: 0 42px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0;
}

/* Logo */
.site-header .agem-logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    line-height: 1;
}

.site-header .agem-logo-img {
    display: block;
    width: auto;
    height: 52px;
    max-width: 260px;
    object-fit: contain;
}

/* Navigation */
.site-header .main-nav {
    display: flex;
    flex: initial;
    align-items: center;
    justify-content: initial;
    gap: 34px;
    margin-left: 80px;
}

.site-header .main-nav > a,
.site-header .main-nav .nav-dropdown-trigger {
    font-size: 12px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: .08em;
    opacity: .7;
    transition: opacity .2s ease;
}

.site-header .main-nav a:hover {
    opacity: 1;
}

/* Search + Cart container */
.site-header .nav-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-shrink: 0;
}

/* Search icon — identical to Home */
.site-header .search-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #101512;
    cursor: pointer;
}

.site-header .search-button svg {
    display: block;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
}

/* Cart — identical to Home */
.site-header .cart-button {
    display: inline-block;
    min-height: 0;
    height: auto;
    padding: 12px 18px;
    border: 0;
    border-radius: 30px;
    background: #101512;
    color: #ffffff;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    font-weight: 400;
    line-height: normal;
    text-transform: uppercase;
    letter-spacing: .08em;
    cursor: pointer;
}

.site-header .cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: auto;
    min-width: 19px;
    height: 19px;
    margin-left: 6px;
    padding: 0 3px;

    border-radius: 50%;
    background: #8da982;
    color: #101512;

    font-size: 10px;
    font-weight: 400;
    line-height: 1;
}

/* Account for fixed header */
body > main {
    padding-top: 76px;
}

/* Responsive */
@media (max-width: 1000px) {
    .site-header .main-nav {
        display: none;
    }
}

@media (max-width: 650px) {
    .site-header .nav-container {
        padding: 0 18px;
    }

    .site-header .agem-logo-img {
        height: 40px;
        max-width: 200px;
    }
}

/* ==========================================
   AGEM LABS — FOOTER
========================================== */

.site-footer.agem-footer {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 60px 7vw 24px;
    background: #f4f2ec;
    color: #101512;
}

.agem-footer .footer-top {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 50px;
    align-items: start;
    padding: 0 0 55px;
    border: 0;
}

.agem-footer .footer-brand {
    min-width: 0;
}

.agem-footer .footer-logo {
    display: inline-block;
    width: 90px;
    max-width: 100%;
}

.agem-footer .footer-logo img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.agem-footer .footer-brand p {
    margin: 18px 0 0;
    color: #777d76;
    font-size: 12px;
    line-height: 1.8;
}

.agem-footer .footer-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}

.agem-footer .footer-links > div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}

.agem-footer .footer-links span {
    margin-bottom: 12px;
    color: #101512;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .16em;
}

.agem-footer .footer-links a {
    color: #626a63;
    font-size: 12px;
    line-height: 1.6;
    text-decoration: none;
}

.agem-footer .footer-links a:hover {
    color: #54785a;
}

.agem-footer .footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 22px;
    border-top: 1px solid rgba(16, 21, 18, .15);
    color: #777d76;
    font-size: 11px;
    letter-spacing: .04em;
}

.shop-quality {
    margin-bottom: 0;
}

@media (max-width: 900px) {
    .agem-footer .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 600px) {
    .site-footer.agem-footer {
        padding: 45px 24px 24px;
    }

    .agem-footer .footer-links {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .agem-footer .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}
/* ==========================================
   AGEM LABS — FOOTER FINAL ALIGNMENT
========================================== */

.site-footer.agem-footer {
    padding-left: max(24px, calc((100% - 1400px) / 2 + 70px));
    padding-right: max(24px, calc((100% - 1400px) / 2 + 70px));
}

.agem-footer .footer-top {
    grid-template-columns: 1fr 3fr;
    gap: 50px;
}

.agem-footer .footer-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}
/* =====================================================
   AGEM LABS — MOBILE FOOTER FIX
   Applies only to tablets and mobile devices
===================================================== */

@media (max-width: 768px) {

    .agem-footer {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }

    .agem-footer .footer-top {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 36px;
        padding: 42px 22px 30px;
    }

    /* BRAND */

    .agem-footer .footer-brand {
        width: 100%;
        min-width: 0;
    }

    .agem-footer .footer-logo {
        display: inline-block;
        max-width: 100%;
    }

    .agem-footer .footer-logo img {
        display: block;
        width: 150px;
        max-width: 100%;
        height: auto;
        object-fit: contain;
    }

    .agem-footer .footer-brand p {
        margin-top: 16px;
        font-size: 12px;
        line-height: 1.7;
    }

    /* LINK COLUMNS */

    .agem-footer .footer-links {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px 20px;
        width: 100%;
        min-width: 0;
    }

    .agem-footer .footer-links > div {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        min-width: 0;
        gap: 12px;
    }

    .agem-footer .footer-links > div > span {
        display: block;
        margin-bottom: 8px;
        font-size: 10px;
        font-weight: 700;
        letter-spacing: .12em;
    }

    .agem-footer .footer-links a {
        display: block;
        max-width: 100%;
        font-size: 12px;
        line-height: 1.5;
        overflow-wrap: break-word;
    }

    /* BOTTOM */

    .agem-footer .footer-bottom {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 22px;
        text-align: left;
    }

    .agem-footer .footer-bottom span {
        font-size: 11px;
        line-height: 1.5;
    }
}

/* VERY SMALL PHONES */

@media (max-width: 380px) {

    .agem-footer .footer-links {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .agem-footer .footer-top {
        padding-left: 18px;
        padding-right: 18px;
    }

    .agem-footer .footer-bottom {
        padding-left: 18px;
        padding-right: 18px;
    }
}
