:root {
    --ink: #5A3A14;
    --brown: #5A3A14;
    --brown-deep: #3D2817;
    --tan: #7B5A35;
    --cream: #ECE3D0;
    --cream-light: #EAE2D5;
    --paper: #ECE3D0;
    --line: rgba(90, 58, 20, .18);
    --muted: rgba(90, 58, 20, .66);
    --serif: "EB Garamond", Georgia, "Times New Roman", serif;
    --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --ease: cubic-bezier(.16, 1, .3, 1);
    --max: 1420px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: var(--sans);
    overflow-x: hidden;
}

body.cart-open { overflow: hidden; }

a { color: inherit; }

button, input { font: inherit; }

.shop-nav {
    position: sticky;
    top: 0;
    z-index: 70;
    min-height: 76px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 30px;
    padding: 0 max(24px, calc((100vw - var(--max)) / 2));
    border-bottom: 1px solid var(--line);
    background: rgba(255,253,249,.91);
    backdrop-filter: blur(18px);
}

.shop-brand {
    width: fit-content;
    text-decoration: none;
    font-size: 21px;
    font-weight: 950;
    letter-spacing: -.045em;
}

.shop-nav nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.shop-nav nav a,
.shop-account {
    text-decoration: none;
    font-size: 10px;
    font-weight: 750;
}

.shop-nav nav a {
    position: relative;
    color: rgba(33,24,16,.68);
}

.shop-nav nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -9px;
    height: 1px;
    background: currentColor;
    transition: right .25s var(--ease);
}

.shop-nav nav a:hover::after,
.shop-nav nav a.is-active::after {
    right: 0;
}

.shop-nav__actions {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 8px;
}

.shop-account {
    padding: 10px 12px;
}

.shop-cart-button {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0 15px;
    color: var(--ink);
    background: var(--cream-light);
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
}

.shop-cart-button span {
    min-width: 19px;
    height: 19px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--brown-deep);
    font-size: 8px;
}

.shop-hero {
    width: min(calc(100% - 72px), var(--max));
    min-height: 385px;
    margin-inline: auto;
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(190px, .45fr);
    gap: 48px;
    align-items: center;
    padding: 62px 0 54px;
    border-bottom: 1px solid var(--line);
}

.shop-kicker {
    margin: 0 0 16px;
    color: var(--tan);
    font-size: 8px;
    font-weight: 850;
    letter-spacing: .2em;
}

.shop-hero h1,
.shop-editorial h2,
.shop-error h1 {
    margin: 0;
    font-family: var(--serif);
    font-weight: 400;
    letter-spacing: -.055em;
}

.shop-hero h1 {
    font-size: clamp(58px, 7vw, 106px);
    line-height: .88;
}

.shop-hero h1 em {
    color: var(--tan);
    font-weight: 400;
}

.shop-hero__copy > p:last-child {
    max-width: 620px;
    margin: 22px 0 0;
    color: var(--muted);
    line-height: 1.75;
}

.shop-hero__meta {
    align-self: center;
    justify-self: end;
    display: grid;
    justify-items: end;
    gap: 6px;
    padding: 14px 0 14px 18px;
    border-left: 1px solid var(--line);
    color: var(--muted);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.catalog {
    width: min(calc(100% - 72px), var(--max));
    margin-inline: auto;
    padding: 38px 0 96px;
}

.catalog__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
}

.catalog__bar small,
.catalog__bar strong {
    display: block;
}

.catalog__bar small {
    margin-bottom: 5px;
    color: var(--tan);
    font-size: 8px;
    font-weight: 850;
    letter-spacing: .15em;
}

.catalog__bar strong {
    font-family: var(--serif);
    font-size: 21px;
    font-weight: 400;
}

.catalog__filters {
    display: flex;
    gap: 8px;
}

.catalog__filters button {
    min-height: 36px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0 14px;
    color: var(--muted);
    background: transparent;
    font-size: 9px;
    cursor: pointer;
}

.catalog__filters button.is-active,
.catalog__filters button:hover {
    color: var(--paper);
    background: var(--brown-deep);
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 54px 20px;
}

.catalog-card {
    min-width: 0;
}

.catalog-card[hidden] { display: none; }

.catalog-card__media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1.08;
    display: block;
    border-radius: 25px;
    background: var(--cream-light);
}

.catalog-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s var(--ease);
}

.catalog-card:hover .catalog-card__media img {
    transform: scale(1.025);
}

.catalog-card__state {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 8px 10px;
    border-radius: 999px;
    color: var(--ink);
    background: rgba(255,253,249,.82);
    backdrop-filter: blur(12px);
    font-size: 8px;
    font-weight: 850;
    text-transform: uppercase;
}

.catalog-card__open {
    position: absolute;
    right: 16px;
    bottom: 16px;
    transform: translateY(8px);
    padding: 10px 13px;
    border-radius: 999px;
    color: #fff;
    background: rgba(36,22,13,.62);
    backdrop-filter: blur(12px);
    font-size: 8px;
    font-weight: 800;
    opacity: 0;
    transition: opacity .3s ease, transform .35s var(--ease);
}

.catalog-card:hover .catalog-card__open {
    opacity: 1;
    transform: translateY(0);
}

.catalog-card__info {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 2px 0;
}

.catalog-card__info small {
    color: var(--tan);
    font-size: 7px;
    font-weight: 850;
    letter-spacing: .14em;
}

.catalog-card h2 {
    margin: 5px 0 0;
    font-family: var(--serif);
    font-size: 37px;
    font-weight: 400;
    letter-spacing: -.04em;
}

.catalog-card h2 a {
    text-decoration: none;
}

.catalog-card__price {
    padding-bottom: 4px;
    font-size: 12px;
}

.catalog-card__description {
    max-width: 620px;
    min-height: 45px;
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.65;
}

.catalog-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 15px;
    padding: 14px 2px 0;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 9px;
}

.catalog-card__footer a {
    color: var(--ink);
    text-decoration: none;
    font-weight: 800;
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .75s var(--ease), transform .75s var(--ease);
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

.shop-editorial {
    min-height: 620px;
    display: grid;
    place-items: center;
    padding: 100px 30px;
    color: #fff;
    text-align: center;
    background:
        radial-gradient(circle at 20% 80%, rgba(239,227,210,.09), transparent 28%),
        radial-gradient(circle at 82% 20%, rgba(239,227,210,.07), transparent 30%),
        var(--brown-deep);
}

.shop-editorial h2 {
    color: var(--cream);
    font-size: clamp(58px, 7vw, 105px);
    line-height: .88;
}

.shop-editorial h2 em {
    color: #fff;
    font-weight: 400;
}

.shop-editorial > p:not(.shop-kicker) {
    max-width: 520px;
    margin: 24px auto 27px;
    color: rgba(255,255,255,.57);
    line-height: 1.7;
}

.shop-editorial > a {
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(255,255,255,.35);
    color: #fff;
    text-decoration: none;
    font-size: 10px;
    font-weight: 800;
}

.shop-footer {
    width: min(calc(100% - 72px), var(--max));
    min-height: 160px;
    margin-inline: auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 30px;
    color: var(--muted);
    font-size: 9px;
}

.shop-footer > div:first-child {
    display: grid;
    gap: 5px;
}

.shop-footer > div:nth-child(2) {
    display: flex;
    gap: 22px;
}

.shop-footer > div:nth-child(2) a {
    text-decoration: none;
}

.shop-footer > span {
    justify-self: end;
}

/* Cart */
.cart-backdrop {
    position: fixed;
    inset: 0;
    z-index: 180;
    background: rgba(27,17,10,.35);
    backdrop-filter: blur(5px);
}

.cart-panel {
    position: fixed;
    z-index: 190;
    top: 0;
    right: 0;
    width: min(470px, 100%);
    height: 100dvh;
    display: grid;
    grid-template-rows: auto 1fr auto;
    transform: translateX(102%);
    background: var(--paper);
    box-shadow: -30px 0 90px rgba(31,19,10,.16);
    transition: transform .45s var(--ease);
}

.cart-panel.is-open {
    transform: translateX(0);
}

.cart-panel__head {
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    border-bottom: 1px solid var(--line);
}

.cart-panel__head small {
    color: var(--tan);
    font-size: 7px;
    font-weight: 850;
    letter-spacing: .16em;
}

.cart-panel__head h2 {
    margin: 5px 0 0;
    font-family: var(--serif);
    font-size: 28px;
    font-weight: 400;
}

.cart-panel__head button {
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: transparent;
    font-size: 23px;
    cursor: pointer;
}

.cart-panel__body {
    overflow-y: auto;
    padding: 18px 24px;
}

.cart-empty {
    height: 100%;
    min-height: 330px;
    display: grid;
    place-content: center;
    justify-items: center;
    text-align: center;
}

.cart-empty > span {
    width: 74px;
    height: 74px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--tan);
    font-family: var(--serif);
    font-size: 22px;
}

.cart-empty h3 {
    margin: 22px 0 8px;
    font-family: var(--serif);
    font-size: 35px;
    font-weight: 400;
}

.cart-empty p {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
}

.cart-line {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 15px;
    padding: 17px 0;
    border-bottom: 1px solid var(--line);
}

.cart-line__image {
    overflow: hidden;
    height: 112px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: var(--cream-light);
    text-decoration: none;
}

.cart-line__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-line__image span {
    font-size: 9px;
    font-weight: 900;
}

.cart-line__copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cart-line__top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.cart-line__top a,
.cart-line__top span {
    display: block;
}

.cart-line__top a {
    color: var(--ink);
    text-decoration: none;
    font-family: var(--serif);
    font-size: 18px;
}

.cart-line__top span {
    max-width: 180px;
    margin-top: 5px;
    color: var(--muted);
    font-size: 8px;
    line-height: 1.4;
}

.cart-line__top strong {
    flex: 0 0 auto;
    font-size: 10px;
}

.cart-line__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.cart-line__qty {
    display: grid;
    grid-template-columns: 27px 28px 27px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
}

.cart-line__qty button {
    height: 28px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.cart-line__qty span {
    text-align: center;
    font-size: 9px;
}

.cart-line__actions > button {
    border: 0;
    border-bottom: 1px solid var(--line);
    padding: 0 0 2px;
    color: var(--muted);
    background: transparent;
    font-size: 8px;
    cursor: pointer;
}

.cart-panel__foot {
    padding: 20px 24px 24px;
    border-top: 1px solid var(--line);
}

.cart-subtotal {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    font-family: var(--serif);
    font-size: 22px;
}

.cart-panel__foot p {
    margin: 9px 0 17px;
    color: var(--muted);
    font-size: 8px;
}

.cart-checkout {
    width: 100%;
    min-height: 52px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: var(--brown-deep);
    font-size: 10px;
    font-weight: 850;
    cursor: pointer;
}

.cart-checkout:disabled {
    cursor: not-allowed;
    opacity: .38;
}

.cart-toast {
    position: fixed;
    z-index: 220;
    left: 50%;
    bottom: 24px;
    transform: translate(-50%, 20px);
    min-width: 240px;
    padding: 13px 17px;
    border-radius: 999px;
    color: #fff;
    background: rgba(36,22,13,.92);
    backdrop-filter: blur(10px);
    text-align: center;
    font-size: 9px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease, transform .25s var(--ease);
}

.cart-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* Error */
.shop-error-page {
    min-height: 100dvh;
    display: grid;
    place-items: center;
    background: var(--cream-light);
}

.shop-error {
    width: min(720px, calc(100% - 40px));
    text-align: center;
}

.shop-error > p {
    margin-top: 60px;
    color: var(--tan);
    font-size: 8px;
    letter-spacing: .18em;
}

.shop-error h1 {
    margin-top: 15px;
    font-size: clamp(50px, 8vw, 88px);
    line-height: .9;
}

.shop-error > span {
    display: block;
    max-width: 600px;
    margin: 25px auto;
    color: var(--muted);
    line-height: 1.7;
}

.shop-error > a:last-child {
    display: inline-block;
    padding: 14px 20px;
    border-radius: 999px;
    color: #fff;
    background: var(--brown-deep);
    text-decoration: none;
    font-size: 10px;
}

@media (max-width: 900px) {
    .shop-nav {
        grid-template-columns: 1fr auto;
        padding-inline: 18px;
    }

    .shop-nav nav {
        display: none;
    }

    .shop-account {
        display: none;
    }

    .shop-hero {
        grid-template-columns: 1fr;
        min-height: 410px;
        gap: 30px;
        padding-top: 75px;
    }

    .shop-hero__meta {
        justify-items: start;
    }

    .catalog-grid {
        grid-template-columns: 1fr;
    }

    .shop-footer {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 40px 0;
    }

    .shop-footer > div:nth-child(2) {
        justify-self: start;
    }

    .shop-footer > span {
        justify-self: start;
    }
}

@media (max-width: 650px) {
    .shop-hero,
    .catalog,
    .shop-footer {
        width: calc(100% - 30px);
    }

    .shop-hero {
        min-height: 360px;
        padding: 62px 0 50px;
    }

    .shop-hero h1 {
        font-size: clamp(54px, 16vw, 76px);
    }

    .catalog {
        padding-top: 34px;
    }

    .catalog__bar {
        align-items: start;
        flex-direction: column;
    }

    .catalog__filters {
        width: 100%;
        overflow-x: auto;
    }

    .catalog-card__media {
        aspect-ratio: .86;
    }

    .catalog-card h2 {
        font-size: 31px;
    }

    .catalog-card__open {
        opacity: 1;
        transform: none;
    }

    .shop-editorial {
        min-height: 520px;
    }

    .shop-editorial h2 {
        font-size: clamp(54px, 15vw, 75px);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}


/* Phase 1.4 — optional Pawline account before checkout */
.cart-account-nudge {
    margin: 14px 0 16px;
    padding: 13px 14px;
    border: 1px solid rgba(58,37,19,.12);
    border-radius: 14px;
    background: rgba(255,255,255,.42);
}

.cart-account-nudge__status {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #211810;
    font-size: 8px;
    font-weight: 850;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.cart-account-nudge__status i {
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #3f8c50;
    box-shadow: 0 0 0 3px rgba(63,140,80,.08);
}

.cart-account-nudge small {
    display: block;
    margin-top: 7px;
    color: rgba(33,24,16,.58);
    font-size: 8px;
    line-height: 1.55;
}

.cart-account-nudge a {
    color: #211810;
    font-weight: 800;
    text-underline-offset: 2px;
}


/* Phase 1.5 — Shopify Markets (Canada / United States) */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.shop-market-picker {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.shop-market-picker select {
    min-height: 40px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0 30px 0 13px;
    color: var(--ink);
    background: var(--paper);
    font: inherit;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .04em;
    cursor: pointer;
    outline: none;
}

.shop-market-picker select:focus-visible {
    box-shadow: 0 0 0 3px rgba(90, 58, 20, .12);
}

@media (max-width: 650px) {
    .shop-nav__actions {
        gap: 6px;
    }

    .shop-market-picker select {
        min-height: 36px;
        padding-inline: 10px 24px;
        font-size: 8px;
    }

    .shop-cart-button {
        min-height: 36px;
        padding-inline: 12px;
    }
}


/* Phase 1.5.1 — visual cleanup after Markets integration */
.shop-market-picker select {
    min-width: 116px;
    height: 40px;
    appearance: auto;
    background-color: rgba(255, 253, 249, .94);
}

.shop-nav__actions {
    white-space: nowrap;
}

@media (max-width: 900px) {
    .shop-hero {
        min-height: 330px;
        gap: 22px;
        padding: 52px 0 44px;
    }

    .shop-hero__meta {
        justify-self: start;
        justify-items: start;
        border-left: 0;
        border-top: 1px solid var(--line);
        padding: 14px 0 0;
    }
}

@media (max-width: 650px) {
    .shop-hero {
        min-height: 300px;
        padding: 46px 0 38px;
    }

    .shop-market-picker select {
        min-width: 94px;
    }
}


/* Phase 1.6 — resilient commerce states + final responsive pass */
.catalog-card__state.is-unavailable {
    color: rgba(33, 24, 16, .68);
    background: rgba(255, 253, 249, .9);
}

.catalog-card__price-note {
    color: var(--tan);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.catalog-empty-state,
.catalog-filter-empty {
    margin-top: 36px;
    padding: 54px 24px;
    border: 1px solid var(--line);
    border-radius: 24px;
    text-align: center;
    background: var(--cream-light);
}

.catalog-empty-state span,
.catalog-filter-empty span {
    color: var(--tan);
    font-size: 8px;
    font-weight: 850;
    letter-spacing: .15em;
}

.catalog-empty-state h2 {
    margin: 12px 0 8px;
    font-family: var(--serif);
    font-size: clamp(34px, 5vw, 54px);
    font-weight: 400;
}

.catalog-empty-state p,
.catalog-filter-empty p {
    margin: 8px auto 0;
    max-width: 520px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.65;
}

.cart-panel[aria-busy="true"] {
    cursor: progress;
}

.cart-state {
    min-height: 330px;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 9px;
    padding: 30px;
    text-align: center;
}

.cart-state > span:not(.cart-state__spinner) {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--tan);
    font-family: var(--serif);
    font-size: 24px;
}

.cart-state h3 {
    margin: 8px 0 0;
    font-family: var(--serif);
    font-size: 30px;
    font-weight: 400;
}

.cart-state p {
    max-width: 290px;
    margin: 0;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.55;
}

.cart-state button {
    min-height: 40px;
    margin-top: 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0 16px;
    color: var(--paper);
    background: var(--brown-deep);
    font-size: 9px;
    font-weight: 850;
    cursor: pointer;
}

.cart-state__spinner {
    width: 34px;
    height: 34px;
    border: 2px solid rgba(90, 58, 20, .14);
    border-top-color: var(--brown);
    border-radius: 50%;
    animation: pawline-spin .8s linear infinite;
}

@keyframes pawline-spin {
    to { transform: rotate(360deg); }
}

.cart-line__qty button:disabled {
    opacity: .28;
    cursor: not-allowed;
}

.shop-error__actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.shop-error__actions a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    text-decoration: none;
    font-size: 10px;
    font-weight: 800;
}

.shop-error__actions a:first-child {
    color: #fff;
    background: var(--brown-deep);
}

.shop-error__actions a:last-child {
    color: var(--ink);
    background: transparent;
}

@media (hover: none) {
    .catalog-card:hover .catalog-card__media img {
        transform: none;
    }

    .catalog-card__open {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 520px) {
    .shop-nav {
        min-height: 66px;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px;
        padding-inline: 12px;
    }

    .shop-brand {
        font-size: 17px;
    }

    .shop-nav__actions {
        gap: 5px;
    }

    .shop-market-picker select {
        min-width: 82px;
        width: 82px;
        min-height: 38px;
        height: 38px;
        padding: 0 5px 0 8px;
        font-size: 7px;
    }

    .shop-cart-button {
        min-height: 38px;
        padding: 0 10px;
        gap: 6px;
        font-size: 9px;
    }

    .shop-cart-button span {
        min-width: 17px;
        height: 17px;
    }

    .shop-hero,
    .catalog,
    .shop-footer {
        width: calc(100% - 24px);
    }

    .shop-hero {
        min-height: 265px;
        padding: 38px 0 32px;
    }

    .shop-hero h1 {
        font-size: clamp(48px, 15vw, 66px);
    }

    .shop-hero__copy > p:last-child {
        margin-top: 16px;
        font-size: 11px;
    }

    .catalog {
        padding: 28px 0 72px;
    }

    .catalog-grid {
        gap: 42px;
    }

    .catalog-card__info {
        gap: 10px;
    }

    .catalog-card h2 {
        font-size: 28px;
    }

    .cart-panel {
        width: 100%;
    }

    .cart-panel__head {
        min-height: 78px;
        padding-inline: 16px;
    }

    .cart-panel__body {
        padding-inline: 16px;
    }

    .cart-panel__foot {
        padding: 16px;
        padding-bottom: max(16px, env(safe-area-inset-bottom));
    }

    .cart-line {
        grid-template-columns: 78px 1fr;
    }

    .cart-line__image {
        height: 96px;
    }

    .cart-line__top {
        gap: 8px;
    }

    .cart-line__top a {
        font-size: 16px;
    }

    .cart-toast {
        width: calc(100% - 28px);
        min-width: 0;
        bottom: max(14px, env(safe-area-inset-bottom));
    }
}


/* Phase 2.1 — mobile storefront refinement */
.catalog-card,
.shop-editorial {
    content-visibility: auto;
    contain-intrinsic-size: 700px;
}

.catalog-card__media img {
    background: var(--cream-light);
}

@media (max-width: 520px) {
    .shop-nav {
        min-height: 60px;
        padding-inline: 10px;
        background: rgba(255,253,249,.96);
    }

    .shop-brand {
        font-size: 16px;
    }

    .shop-market-picker select {
        min-width: 74px;
        width: 74px;
        height: 36px;
        min-height: 36px;
        border-radius: 999px;
    }

    .shop-cart-button {
        min-height: 36px;
        padding-inline: 9px;
    }

    .shop-hero {
        min-height: 220px;
        padding: 28px 0 24px;
    }

    .shop-hero h1 {
        font-size: clamp(44px, 13vw, 58px);
        line-height: .9;
    }

    .catalog {
        padding-top: 20px;
    }

    .catalog__bar {
        gap: 14px;
        position: sticky;
        top: 60px;
        z-index: 12;
        margin-inline: -12px;
        padding: 12px;
        border-bottom: 1px solid var(--line);
        background: rgba(255,253,249,.95);
        backdrop-filter: blur(14px);
    }

    .catalog__filters {
        gap: 6px;
        scrollbar-width: none;
    }

    .catalog__filters::-webkit-scrollbar {
        display: none;
    }

    .catalog__filters button {
        flex: 0 0 auto;
        min-height: 34px;
        padding-inline: 12px;
    }

    .catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 10px;
    }

    .catalog-card__media {
        aspect-ratio: .84;
        border-radius: 16px;
    }

    .catalog-card__state {
        top: 8px;
        left: 8px;
        padding: 6px 7px;
        font-size: 6px;
    }

    .catalog-card__open {
        right: 8px;
        bottom: 8px;
        padding: 7px 8px;
        font-size: 6px;
    }

    .catalog-card__info {
        display: block;
        padding-top: 10px;
    }

    .catalog-card__info small {
        font-size: 6px;
    }

    .catalog-card h2 {
        margin-top: 4px;
        font-size: clamp(19px, 5.5vw, 24px);
        line-height: .98;
    }

    .catalog-card__price {
        padding: 6px 0 0;
        font-size: 9px;
    }

    .catalog-card__description,
    .catalog-card__footer {
        display: none;
    }

    .shop-editorial {
        min-height: 390px;
        padding-inline: 18px;
    }

    .shop-editorial h2 {
        font-size: clamp(43px, 12vw, 58px);
    }
}


/* ==========================================================
   PHASE 2.2 — SHOP VIDEO PREVIEWS
   Desktop: hover/focus. Mobile: first tap preview, second opens.
   ========================================================== */

.catalog-card__media {
    isolation: isolate;
}

.catalog-card__poster,
.catalog-card__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.catalog-card__poster--rinse {
    width: 80%;
    height: 80%;
    object-fit: contain;
    margin: auto;
}
.catalog-card__media {
    display: flex;
    align-items: center;
    justify-content: center;
}
.catalog-card__video {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease;
}

.catalog-card__media.is-previewing .catalog-card__video {
    opacity: 1;
}

.catalog-card__media.is-previewing .catalog-card__poster {
    opacity: 0;
}

.catalog-card__poster {
    transition: opacity .22s ease;
}

.catalog-card__state,
.catalog-card__open,
.catalog-card__preview-hint {
    z-index: 3;
}

.catalog-card__preview-hint {
    position: absolute;
    left: 12px;
    bottom: 12px;
    padding: 7px 9px;
    border-radius: 999px;
    color: #fff;
    background: rgba(37,32,27,.62);
    backdrop-filter: blur(8px);
    font-size: 7px;
    font-weight: 700;
    letter-spacing: .1em;
    transition: opacity .2s ease;
}

.catalog-card__open {
    opacity: 0;
}

.catalog-card__media.is-previewing .catalog-card__preview-hint {
    opacity: 0;
}

.catalog-card__media.is-previewing .catalog-card__open {
    opacity: 1;
}

@media (hover: hover) and (pointer: fine) {
    .catalog-card__media:hover .catalog-card__video,
    .catalog-card__media:focus .catalog-card__video {
        opacity: 1;
    }

    .catalog-card__media:hover .catalog-card__poster,
    .catalog-card__media:focus .catalog-card__poster {
        opacity: 0;
    }

    .catalog-card__media:hover .catalog-card__preview-hint,
    .catalog-card__media:focus .catalog-card__preview-hint {
        opacity: 0;
    }
}

@media (max-width: 520px) {
    .catalog-card__preview-hint {
        left: 8px;
        bottom: 8px;
        padding: 5px 7px;
        font-size: 5.5px;
    }

    .catalog-card__open {
        display: none;
    }
}


/* ==========================================================
   PHASE 2.3 — SHOP VISUAL POLISH
   Less generic, more editorial.
   ========================================================== */
.shop-page {
    background: #f6f2eb;
}
.shop-hero {
    overflow: hidden;
    position: relative;
    align-items: end;
    min-height: min(78svh, 720px);
    background:
        radial-gradient(circle at 16% 24%, rgba(190,184,166,.18) 0, rgba(190,184,166,0) 28%),
        linear-gradient(180deg, #faf8f4 0%, #efe7db 100%);
}
.shop-hero::after {
    content: '';
    position: absolute;
    right: -8%;
    top: 14%;
    width: min(52vw, 680px);
    aspect-ratio: 4 / 5;
    border-radius: 46% 54% 39% 61% / 54% 38% 62% 46%;
    background: linear-gradient(180deg, rgba(205,196,174,.54), rgba(231,225,213,.05));
    filter: blur(2px);
}
.shop-hero__copy { position: relative; z-index: 1; max-width: 760px; }
.shop-hero h1 {
    max-width: 9ch;
    letter-spacing: -.06em;
}
.catalog__bar {
    align-items: end;
    padding-bottom: 16px;
}
.catalog__bar small {
    letter-spacing: .18em;
}
.catalog__bar strong {
    font-family: var(--shop-serif);
    font-size: clamp(28px, 3vw, 44px);
    font-weight: 400;
    letter-spacing: -.04em;
}
.catalog__filters button {
    background: rgba(255,255,255,.6);
    border-color: rgba(39,35,29,.12);
    backdrop-filter: blur(8px);
}
.catalog__filters button.is-active {
    background: #2d2a24;
}
.catalog-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 22px;
}
.catalog-card {
    grid-column: span 4;
    border: 1px solid rgba(39,35,29,.08);
    box-shadow: 0 16px 40px rgba(60,54,44,.06);
}
.catalog-card:nth-child(1),
.catalog-card:nth-child(5),
.catalog-card:nth-child(9) {
    grid-column: span 6;
}
.catalog-card[data-product-type*="the wash"] { background: #ece6db; }
.catalog-card[data-product-type*="the wave"] { background: #ebe5da; }
.catalog-card[data-product-type*="stride"] { background: #eee3dd; }
.catalog-card__media {
    aspect-ratio: 4 / 5.4;
    background: rgba(255,255,255,.28);
}
.catalog-card__info small {
    letter-spacing: .16em;
}
.catalog-card__info h2 a {
    font-family: var(--shop-serif);
    font-size: clamp(27px, 2vw, 34px);
    font-weight: 400;
    line-height: .94;
    letter-spacing: -.045em;
}
.catalog-card__description {
    color: #655f55;
    font-size: 13px;
    line-height: 1.65;
}
.catalog-card__footer {
    border-top: 1px solid rgba(39,35,29,.08);
}
.catalog-card__footer a {
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.pdp-related-card[data-related-theme*="the wash"] { background: #ebe4d9; }
.pdp-related-card[data-related-theme*="the wave"] { background: #ebe4d8; }
.pdp-related-card[data-related-theme*="stride"] { background: #efe3dc; }
@media (max-width: 1080px) {
    .catalog-card, .catalog-card:nth-child(1), .catalog-card:nth-child(5), .catalog-card:nth-child(9) {
        grid-column: span 6;
    }
}
@media (max-width: 720px) {
    .shop-hero { min-height: 58svh; }
    .shop-hero::after { width: 76vw; top: 26%; right: -22%; }
    .catalog-grid { grid-template-columns: 1fr; gap: 18px; }
    .catalog-card, .catalog-card:nth-child(1), .catalog-card:nth-child(5), .catalog-card:nth-child(9) {
        grid-column: auto;
    }
    .catalog-card__media { aspect-ratio: 4 / 4.7; }
}


/* ==========================================================
   PHASE 2.4 — SHOP PRODUCT COLOR SYSTEM
   Distinct Pawline palettes instead of a uniform beige grid.
   ========================================================== */
.shop-page {
    --ink: #2b241d;
    --paper: #fbf5ec;
    --olive: #92936a;
    --sage: #9eac8e;
    --camel: #c39a6d;
    --rose: #caa39b;
    --mist: #a8bbc4;
    background:
        radial-gradient(circle at 11% 8%, rgba(202,163,155,.12), transparent 26%),
        radial-gradient(circle at 88% 16%, rgba(146,147,106,.10), transparent 24%),
        #f8f2e9;
}

.shop-hero {
    background:
        linear-gradient(120deg, rgba(202,163,155,.20), transparent 38%),
        linear-gradient(220deg, rgba(146,147,106,.16), transparent 42%),
        #f7efe5;
}

.catalog-card[data-product-handle="stride"] { background: #e6c9bc; }
.catalog-card[data-product-handle="the-wash"] { background: #aeb085; }
.catalog-card[data-product-handle="rinse-dog-shampoo"] { background: #9fa070; }
.catalog-card[data-product-handle="ease-dog-conditioner"] { background: #c6a38f; }
.catalog-card[data-product-handle="balm-paw-balm"] { background: #c8a16d; }
.catalog-card[data-product-handle="coat-dry-shampoo"] { background: #9ca084; }
.catalog-card[data-product-handle="the-wave-trench-coat"] { background: #c7a77f; }
.catalog-card[data-product-handle="the-wave-rain-jacket"] { background: #9fb8c2; }
.catalog-card[data-product-handle="the-wave-sherpa-fleece"] { background: #d7c3a6; }
.catalog-card[data-product-handle="the-wave-jersey"] { background: #c7a19c; }
.catalog-card[data-product-handle="the-wave-collared-jersey"] { background: #95a587; }

.catalog-card {
    border-radius: 2px;
    overflow: hidden;
    border-color: rgba(43,36,29,.10);
    box-shadow: 0 22px 48px rgba(53,44,34,.075);
}

.catalog-card__info,
.catalog-card__description,
.catalog-card__footer {
    color: #29231c;
}

.catalog-card__info {
    padding: 18px 18px 8px;
}

.catalog-card__description {
    padding: 0 18px 16px;
}

.catalog-card__footer {
    padding: 14px 18px 18px;
    border-top-color: rgba(43,36,29,.12);
}

.catalog-card__media {
    background: rgba(255,255,255,.20);
}

.catalog-card__media::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 30%;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(to bottom, transparent, rgba(30,25,20,.10));
}

.catalog-card__state {
    background: rgba(250,246,238,.86);
    color: #2c261f;
}

.shop-editorial {
    background:
        linear-gradient(135deg, #8e9163 0%, #a6a779 38%, #ccb18e 100%);
    color: #fffaf3;
}

@media (max-width: 720px) {
    .catalog-grid {
        gap: 14px;
    }
    .catalog-card {
        border-radius: 14px;
    }
    .catalog-card__info h2 a {
        font-size: clamp(25px, 8.5vw, 34px);
    }
}

/* ==========================================================
   PHASE 2.5 — COLLECTION PAGE / LIL LUV–STYLE PRODUCT GRID
   Product-first collection presentation: quiet background,
   large photography, restrained metadata, compact hierarchy.
   ========================================================== */
.shop-page--collection {
    --collection-ink: #171512;
    --collection-bg: #f5f2ec;
    --collection-line: rgba(23,21,18,.16);
    --collection-soft: #ece8e0;
    color: var(--collection-ink);
    background: var(--collection-bg);
}

.collection-announcement {
    min-height: 28px;
    display: grid;
    place-items: center;
    padding: 5px 20px;
    color: #f8f5ef;
    background: #1c1a17;
    font-size: 9px;
    font-weight: 650;
    letter-spacing: .04em;
    text-align: center;
    text-transform: lowercase;
}

.collection-nav.shop-nav {
    position: sticky;
    top: 0;
    min-height: 70px;
    grid-template-columns: 1fr auto 1fr;
    padding-inline: 32px;
    border-bottom: 1px solid var(--collection-line);
    background: rgba(247,244,238,.94);
    backdrop-filter: blur(16px);
}

.collection-nav__left {
    justify-self: start;
    display: flex !important;
    gap: 24px !important;
}

.collection-nav__left a,
.collection-nav__left button,
.collection-nav__right .shop-account {
    border: 0;
    padding: 0;
    color: var(--collection-ink) !important;
    background: transparent;
    font-size: 12px !important;
    font-weight: 500 !important;
    letter-spacing: -.01em;
    text-transform: lowercase;
    cursor: pointer;
}

.collection-nav__left a::after { display: none; }
.collection-nav__left button:hover,
.collection-nav__left a:hover { opacity: .55; }

.collection-nav__brand {
    justify-self: center;
    font-size: 25px;
    font-weight: 900;
    letter-spacing: -.055em;
}

.collection-nav__right {
    justify-self: end;
    gap: 12px;
}

.collection-nav .shop-market-picker select {
    min-width: 90px;
    height: 38px;
    min-height: 38px;
    border: 0;
    border-radius: 0;
    padding: 0 20px 0 0;
    color: var(--collection-ink);
    background: transparent;
    font-size: 10px;
    font-weight: 600;
}

.collection-nav .shop-cart-button {
    min-height: 38px;
    gap: 8px;
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
    font-size: 12px;
    font-weight: 500;
    text-transform: lowercase;
}

.collection-nav .shop-cart-button span {
    min-width: 20px;
    height: 20px;
    color: #fff;
    background: #1c1a17;
    font-size: 8px;
}

.collection-hero {
    position: relative;
    width: 100%;
    height: clamp(440px, 67vw, 760px);
    overflow: hidden;
    background: #d9d2c7;
}

.collection-hero__image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center 44%;
    transform: scale(1.002);
}

.collection-hero__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20,18,15,.03) 42%, rgba(20,18,15,.43) 100%);
    pointer-events: none;
}

.collection-hero__copy {
    position: absolute;
    z-index: 2;
    left: 50%;
    bottom: 46px;
    width: min(760px, calc(100% - 42px));
    transform: translateX(-50%);
    color: #fff;
    text-align: center;
}

.collection-hero__copy p {
    margin: 0 0 9px;
    font-size: 10px;
    font-weight: 650;
    letter-spacing: .08em;
    text-transform: lowercase;
}

.collection-hero__copy h1 {
    margin: 0;
    font-family: var(--sans);
    font-size: clamp(48px, 6.4vw, 100px);
    font-weight: 500;
    line-height: .88;
    letter-spacing: -.065em;
    text-transform: lowercase;
}

.collection-hero__copy span {
    display: block;
    max-width: 520px;
    margin: 18px auto 0;
    font-size: 13px;
    line-height: 1.45;
}

.collection-catalog.catalog {
    width: 100%;
    max-width: none;
    padding: 0 24px 90px;
}

.collection-toolbar.catalog__bar {
    min-height: 112px;
    margin: 0;
    padding: 28px 0 24px;
    border-bottom: 1px solid var(--collection-line);
}

.collection-toolbar__heading {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.collection-toolbar__heading h2 {
    margin: 0;
    font-size: clamp(29px, 3vw, 46px);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -.055em;
    text-transform: lowercase;
}

.collection-toolbar__heading span {
    color: rgba(23,21,18,.54);
    font-size: 10px;
}

.collection-filters.catalog__filters {
    gap: 20px;
}

.collection-filters.catalog__filters button {
    min-height: 0;
    border: 0;
    border-radius: 0;
    padding: 0 0 3px;
    color: rgba(23,21,18,.55);
    background: transparent !important;
    font-size: 11px;
    font-weight: 500;
    text-transform: lowercase;
}

.collection-filters.catalog__filters button.is-active,
.collection-filters.catalog__filters button:hover {
    color: var(--collection-ink);
    border-bottom: 1px solid currentColor;
}

.collection-grid.catalog-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 50px 10px;
    padding-top: 10px;
}

.collection-card.catalog-card,
.collection-card.catalog-card:nth-child(1),
.collection-card.catalog-card:nth-child(5),
.collection-card.catalog-card:nth-child(9),
.collection-card.catalog-card[data-product-type*="the wash"],
.collection-card.catalog-card[data-product-type*="the wave"],
.collection-card.catalog-card[data-product-type*="stride"],
.collection-card.catalog-card[data-product-handle] {
    grid-column: auto;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.collection-card__media.catalog-card__media {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 0;
    background: #e9e5dd;
}

.collection-card__media.catalog-card__media::after {
    display: none;
}

.collection-card__media .catalog-card__poster,
.collection-card__media .catalog-card__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.collection-card__media .catalog-card__poster {
    transition: opacity .32s ease, transform .7s cubic-bezier(.16,1,.3,1);
}

.collection-card:hover .catalog-card__poster {
    transform: scale(1.015);
}

.collection-card__media .catalog-card__video {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0;
    pointer-events: none;
    transition: opacity .28s ease;
}

.collection-card__badge {
    position: absolute;
    z-index: 3;
    top: 12px;
    left: 12px;
    padding: 7px 9px;
    color: #1b1916;
    background: rgba(248,245,239,.92);
    font-size: 8px;
    font-weight: 650;
    letter-spacing: .02em;
    text-transform: lowercase;
}

.collection-card__quick {
    position: absolute;
    z-index: 4;
    left: 10px;
    right: 10px;
    bottom: 10px;
    min-height: 42px;
    display: grid;
    place-items: center;
    transform: translateY(10px);
    color: #171512;
    background: rgba(248,245,239,.94);
    font-size: 11px;
    font-weight: 550;
    text-transform: lowercase;
    opacity: 0;
    transition: opacity .25s ease, transform .3s cubic-bezier(.16,1,.3,1);
}

.collection-card:hover .collection-card__quick {
    transform: translateY(0);
    opacity: 1;
}

.collection-card__meta {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    gap: 14px;
    align-items: start;
    padding: 13px 1px 0;
}

.collection-card__title-wrap h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 550;
    line-height: 1.25;
    letter-spacing: -.025em;
}

.collection-card__title-wrap h3 a {
    text-decoration: none;
}

.collection-card__title-wrap > span {
    display: block;
    margin-top: 4px;
    color: rgba(23,21,18,.53);
    font-size: 10px;
    line-height: 1.3;
    text-transform: lowercase;
}

.collection-card__price {
    padding-top: 1px;
    color: #171512;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.collection-card__price > span:not(.money) {
    color: rgba(23,21,18,.58);
    font-size: 10px;
    text-transform: lowercase;
}

.collection-values {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--collection-line);
    border-bottom: 1px solid var(--collection-line);
}

.collection-values > div {
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px 24px;
    border-right: 1px solid var(--collection-line);
}

.collection-values > div:last-child { border-right: 0; }
.collection-values span { color: rgba(23,21,18,.42); font-size: 9px; }
.collection-values strong { max-width: 14ch; font-size: 16px; font-weight: 500; line-height: 1.1; text-transform: lowercase; }

.collection-signoff {
    min-height: 470px;
    display: grid;
    place-content: center;
    justify-items: center;
    padding: 70px 24px;
    text-align: center;
    background: #ded8cf;
}

.collection-signoff p {
    margin: 0 0 16px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.collection-signoff h2 {
    margin: 0;
    font-size: clamp(52px, 6vw, 92px);
    font-weight: 500;
    line-height: .88;
    letter-spacing: -.07em;
    text-transform: lowercase;
}

.collection-signoff a {
    margin-top: 26px;
    padding-bottom: 3px;
    border-bottom: 1px solid currentColor;
    text-decoration: none;
    font-size: 11px;
    text-transform: lowercase;
}

.collection-footer.shop-footer {
    width: 100%;
    min-height: 170px;
    padding: 0 24px;
}

@media (hover: hover) and (pointer: fine) {
    .collection-card__media[data-product-preview]:hover .catalog-card__video,
    .collection-card__media[data-product-preview]:focus .catalog-card__video {
        opacity: 1;
    }
    .collection-card__media[data-product-preview]:hover .catalog-card__poster,
    .collection-card__media[data-product-preview]:focus .catalog-card__poster {
        opacity: 0;
    }
}

@media (max-width: 1050px) {
    .collection-grid.catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .collection-nav__left { gap: 16px !important; }
}

@media (max-width: 820px) {
    .collection-nav.shop-nav {
        grid-template-columns: 1fr auto;
        min-height: 64px;
        padding-inline: 16px;
    }
    .collection-nav__left { display: none !important; }
    .collection-nav__brand { justify-self: start; font-size: 21px; }
    .collection-nav__right { gap: 9px; }
    .collection-nav__right .shop-account { display: none; }
    .collection-grid.catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 38px 8px; }
    .collection-values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .collection-values > div:nth-child(2) { border-right: 0; }
    .collection-values > div:nth-child(-n+2) { border-bottom: 1px solid var(--collection-line); }
}

@media (max-width: 600px) {
    .collection-announcement { min-height: 26px; font-size: 8px; }
    .collection-nav .shop-market-picker select { min-width: 72px; width: 72px; font-size: 8px; }
    .collection-nav .shop-cart-button { font-size: 10px; }
    .collection-hero { height: 64svh; min-height: 470px; max-height: 650px; }
    .collection-hero__image { object-position: center center; }
    .collection-hero__copy { bottom: 30px; }
    .collection-hero__copy h1 { font-size: clamp(50px, 15vw, 72px); }
    .collection-hero__copy span { max-width: 32ch; font-size: 11px; }
    .collection-catalog.catalog { padding: 0 10px 65px; }
    .collection-toolbar.catalog__bar { min-height: 104px; align-items: flex-start; gap: 18px; padding: 22px 0 18px; }
    .collection-toolbar__heading h2 { font-size: 34px; }
    .collection-filters.catalog__filters { width: 100%; gap: 18px; overflow-x: auto; padding-bottom: 2px; }
    .collection-grid.catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 6px; padding-top: 6px; }
    .collection-card__media.catalog-card__media { aspect-ratio: 4 / 5.15; }
    .collection-card__badge { top: 7px; left: 7px; padding: 5px 6px; font-size: 6.5px; }
    .collection-card__quick { display: none; }
    .collection-card__meta { grid-template-columns: 1fr; gap: 5px; padding-top: 9px; }
    .collection-card__title-wrap h3 { font-size: 12px; }
    .collection-card__title-wrap > span, .collection-card__price, .collection-card__price > span:not(.money) { font-size: 9px; }
    .collection-values > div { min-height: 120px; padding: 15px 14px; }
    .collection-values strong { font-size: 13px; }
    .collection-signoff { min-height: 400px; }
    .collection-signoff h2 { font-size: clamp(48px, 14vw, 70px); }
    .collection-footer.shop-footer { padding-inline: 16px; }
}


/* ==========================================================
   PHASE 2.6 — BRAND BOOK COLOR SYSTEM
   Official v1 values: Brown #5A3A14, Cream #ECE3D0,
   Soft Tan #7B5A35; Ballet #E5C5C0, Mist #BCC8CD, Sand #CBB89C.
   ========================================================== */
:root {
    --paw-brown: #5A3A14;
    --paw-cream: #ECE3D0;
    --paw-tan: #7B5A35;
    --paw-ballet: #E5C5C0;
    --paw-mist: #BCC8CD;
    --paw-sand: #CBB89C;
    --paw-onyx: #2A2723;
    --paw-bone: #EAE2D5;
    --paw-espresso: #3D2817;
}

body,
.shop-page--collection {
    color: var(--paw-brown);
    background: var(--paw-cream);
}

.shop-nav,
.collection-nav.shop-nav {
    border-bottom-color: rgba(90, 58, 20, .18);
    background: rgba(236, 227, 208, .95);
}

.shop-nav nav a,
.shop-account,
.collection-nav__left a,
.collection-nav__left button,
.collection-nav__right .shop-account,
.collection-nav .shop-cart-button,
.collection-nav .shop-market-picker select {
    color: var(--paw-brown) !important;
}

.shop-cart-button,
.collection-nav .shop-cart-button span {
    color: var(--paw-cream);
    background: var(--paw-brown);
}

.shop-market-picker select {
    color: var(--paw-brown);
    background-color: var(--paw-bone);
}

.collection-announcement {
    color: var(--paw-cream);
    background: var(--paw-brown);
}

.shop-page--collection {
    --collection-ink: var(--paw-brown);
    --collection-bg: var(--paw-cream);
    --collection-line: rgba(90, 58, 20, .18);
    --collection-soft: var(--paw-bone);
}

.collection-hero {
    background: var(--paw-sand);
}

.collection-hero__shade {
    background: linear-gradient(180deg, rgba(61,40,23,.02) 38%, rgba(61,40,23,.50) 100%);
}

.collection-hero__copy {
    color: var(--paw-cream);
}

.collection-catalog.catalog,
.collection-toolbar.catalog__bar {
    background: var(--paw-cream);
}

.collection-toolbar.catalog__bar {
    border-bottom-color: rgba(90, 58, 20, .18);
}

.collection-filters.catalog__filters button {
    color: rgba(90, 58, 20, .56);
}

.collection-filters.catalog__filters button.is-active,
.collection-filters.catalog__filters button:hover {
    color: var(--paw-brown);
}

.collection-card__media.catalog-card__media {
    background: var(--paw-bone);
}

.collection-card__badge,
.collection-card__quick {
    color: var(--paw-brown);
    background: rgba(236, 227, 208, .94);
}

.collection-card__title-wrap > span,
.collection-card__price > span:not(.money),
.collection-toolbar__heading span {
    color: rgba(90, 58, 20, .58);
}

.collection-card__price {
    color: var(--paw-brown);
}

.collection-values {
    border-color: rgba(90, 58, 20, .18);
    background: var(--paw-bone);
}

.collection-values > div {
    border-color: rgba(90, 58, 20, .18);
}

.collection-values span {
    color: rgba(90, 58, 20, .52);
}

.collection-signoff {
    color: var(--paw-cream);
    background: var(--paw-tan);
}

.collection-footer.shop-footer,
.shop-footer {
    color: var(--paw-cream);
    background: var(--paw-brown);
    border-top: 1px solid rgba(236, 227, 208, .22);
}

.shop-footer a,
.shop-footer .shop-brand {
    color: var(--paw-cream);
}

.shop-footer > div:first-child > span,
.shop-footer > span {
    color: rgba(236, 227, 208, .72);
}

.cart-panel {
    color: var(--paw-brown);
    background: var(--paw-cream);
}

.cart-panel__head,
.cart-panel__foot {
    border-color: rgba(90, 58, 20, .18);
}

@media (max-width: 600px) {
    .collection-footer.shop-footer {
        padding-bottom: 44px;
    }
}

/* ==========================================================
   PHASE 2.7 — COLLECTION DENSITY
   Bring /shop closer to a compact product-led collection page.
   ========================================================== */
.collection-hero {
    height: clamp(400px, 54vw, 650px);
}

.collection-catalog.catalog {
    padding-bottom: 64px;
}

.collection-toolbar.catalog__bar {
    min-height: 88px;
    padding-top: 20px;
    padding-bottom: 18px;
}

.collection-grid.catalog-grid {
    gap: 38px 10px;
}

.collection-values > div {
    min-height: 118px;
    padding: 16px 20px;
}

.collection-signoff {
    min-height: 300px;
    padding: 48px 24px;
}

.collection-footer.shop-footer {
    min-height: 132px;
}

@media (max-width: 600px) {
    .collection-hero {
        height: 54svh;
        min-height: 420px;
        max-height: 560px;
    }

    .collection-catalog.catalog {
        padding-bottom: 52px;
    }

    .collection-toolbar.catalog__bar {
        min-height: 88px;
        padding-top: 18px;
        padding-bottom: 15px;
    }

    .collection-grid.catalog-grid {
        gap: 26px 6px;
    }

    .collection-values > div {
        min-height: 100px;
    }

    .collection-signoff {
        min-height: 270px;
        padding: 40px 18px;
    }
}


/* ==========================================================
   PHASE 2.8 — ONE PAWLINE HEADER ACROSS HOME / SHOP / PDP
   Same visual language as the Home navigation, adapted to a
   light commerce surface so it stays readable from first paint.
   ========================================================== */

:root {
    --storefront-announcement-h: 34px;
    --storefront-nav-ink: #21180f;
    --storefront-nav-brown: #5A3A14;
    --storefront-nav-deep: #25170d;
    --storefront-nav-cream: #ECE3D0;
    --storefront-nav-light: #f7f1e8;
    --storefront-nav-border: rgba(68, 43, 23, .14);
    --storefront-nav-ease: cubic-bezier(.16, 1, .3, 1);
}

body.no-scroll { overflow: hidden; }

.storefront-announcement {
    position: relative;
    z-index: 130;
    height: var(--storefront-announcement-h);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 0 20px;
    color: var(--storefront-nav-cream);
    background: var(--storefront-nav-deep);
    font-size: 9px;
    font-weight: 760;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.storefront-announcement p {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
}

.storefront-announcement__dot {
    width: 5px;
    height: 5px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--storefront-nav-cream);
}

.storefront-announcement__market {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--storefront-nav-cream);
}

.storefront-announcement__market select {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    outline: 0;
    padding: 0 16px 0 0;
    color: inherit;
    background: transparent;
    font: inherit;
    font-weight: 800;
    letter-spacing: .12em;
    cursor: pointer;
}

.storefront-announcement__market option { color: #21180f; }

.storefront-announcement__market svg {
    position: absolute;
    right: 0;
    width: 13px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    pointer-events: none;
}

.storefront-site-nav {
    position: sticky;
    top: 12px;
    left: auto;
    z-index: 120;
    width: min(calc(100% - 40px), 1400px);
    min-height: 68px;
    margin: 12px auto 14px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 28px;
    padding: 0 16px 0 24px;
    border: 1px solid rgba(67,43,23,.10);
    border-radius: 999px;
    color: var(--storefront-nav-ink);
    background: rgba(255,253,249,.92);
    box-shadow: 0 14px 45px rgba(45,29,16,.09);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.storefront-brand {
    justify-self: start;
    color: inherit;
    text-decoration: none;
    font-size: 20px;
    font-weight: 920;
    letter-spacing: -.045em;
}

.storefront-desktop-nav {
    display: flex;
    align-items: center;
    gap: clamp(18px, 2.4vw, 34px);
}

.storefront-desktop-nav a {
    position: relative;
    color: inherit;
    text-decoration: none;
    font-size: 10px;
    font-weight: 760;
    letter-spacing: .04em;
    opacity: .86;
}

.storefront-desktop-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -8px;
    height: 1px;
    background: currentColor;
    transition: right .3s var(--storefront-nav-ease);
}

.storefront-desktop-nav a:hover::after { right: 0; }

.storefront-nav-actions {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 7px;
}

.storefront-nav-icon {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid var(--storefront-nav-border);
    border-radius: 999px;
    padding: 0 13px;
    color: inherit;
    background: var(--storefront-nav-light);
    text-decoration: none;
    font-size: 10px;
    font-weight: 760;
    cursor: pointer;
    transition: transform .25s var(--storefront-nav-ease), background .25s ease;
}

.storefront-nav-icon:hover { transform: translateY(-1px); }

.storefront-nav-icon svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
}

.storefront-cart-trigger {
    position: relative;
    width: 42px;
    padding: 0;
}

.storefront-cart-count {
    position: absolute;
    top: -3px;
    right: -3px;
    width: 17px;
    height: 17px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--storefront-nav-deep);
    background: var(--storefront-nav-cream);
    font-size: 8px;
    font-weight: 900;
}

.storefront-menu-trigger {
    display: none;
    width: 42px;
    height: 38px;
    border: 1px solid currentColor;
    border-radius: 999px;
    background: transparent;
    cursor: pointer;
}

.storefront-menu-trigger span {
    width: 15px;
    height: 1px;
    display: block;
    margin: 4px auto;
    background: currentColor;
}

.storefront-mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 110;
    display: none;
    padding: 120px 22px 30px;
    color: var(--storefront-nav-ink);
    background: rgba(247,241,232,.985);
}

.storefront-mobile-menu.is-open { display: block; }

.storefront-mobile-menu__inner {
    display: grid;
    gap: 0;
    border-top: 1px solid var(--storefront-nav-border);
}

.storefront-mobile-menu a,
.storefront-mobile-market {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--storefront-nav-border);
    color: inherit;
    text-decoration: none;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 28px;
}

.storefront-mobile-market select {
    max-width: 160px;
    border: 0;
    outline: 0;
    color: rgba(37,23,13,.62);
    background: transparent;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 10px;
    text-align: right;
}

/* Old standalone shop headers are replaced by the Home header system. */
.shop-nav,
.collection-announcement { display: none !important; }

@media (max-width: 920px) {
    .storefront-site-nav {
        grid-template-columns: 1fr auto;
        gap: 12px;
        min-height: 60px;
        padding: 0 10px 0 18px;
    }

    .storefront-desktop-nav { display: none; }
    .storefront-menu-trigger { display: block; }
    .storefront-nav-account span { display: none; }
    .storefront-nav-account { width: 42px; padding: 0; }
}

@media (max-width: 560px) {
    :root { --storefront-announcement-h: 32px; }

    .storefront-announcement {
        justify-content: space-between;
        padding: 0 12px;
        font-size: 8px;
    }

    .storefront-site-nav {
        top: 8px;
        width: calc(100% - 18px);
        min-height: 56px;
        margin: 8px auto 10px;
        padding-left: 16px;
    }

    .storefront-brand { font-size: 18px; }
    .storefront-nav-actions { gap: 5px; }
    .storefront-nav-icon,
    .storefront-menu-trigger { width: 38px; height: 36px; min-height: 36px; }
    .storefront-mobile-menu { padding: 98px 18px 24px; }
    .storefront-mobile-menu a,
    .storefront-mobile-market { min-height: 66px; font-size: 25px; }
}


/* ==========================================================
   PHASE 3.3 — SHOP HERO VIDEO
   Replace the static collection image with the local Pawline
   shop film while keeping the storefront fast and readable.
   ========================================================== */
.collection-hero--video {
    height: clamp(360px, 25vw, 480px);
    min-height: 360px;
    max-height: 480px;
    background: var(--paw-brown);
    isolation: isolate;
}

.collection-hero__video {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center 48%;
    transform: scale(1.01);
    background: var(--paw-brown);
}

.collection-hero--video .collection-hero__shade {
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(35, 24, 15, .10) 0%, rgba(35, 24, 15, .08) 42%, rgba(35, 24, 15, .52) 100%),
        linear-gradient(90deg, rgba(35, 24, 15, .08), transparent 28%, transparent 72%, rgba(35, 24, 15, .08));
}

.collection-hero--video .collection-hero__copy {
    z-index: 2;
    bottom: 36px;
    width: min(680px, calc(100% - 40px));
    text-shadow: 0 1px 18px rgba(25, 17, 10, .18);
}

.collection-hero--video .collection-hero__copy p {
    margin-bottom: 7px;
    font-size: 9px;
    letter-spacing: .10em;
}

.collection-hero--video .collection-hero__copy h1 {
    font-family: var(--serif);
    font-size: clamp(48px, 4.6vw, 78px);
    font-weight: 500;
    line-height: .94;
    letter-spacing: -.035em;
}

.collection-hero--video .collection-hero__copy span {
    max-width: 510px;
    margin-top: 12px;
    font-size: 12px;
    line-height: 1.4;
}

@media (max-width: 700px) {
    .collection-hero--video {
        height: 52svh;
        min-height: 390px;
        max-height: 560px;
    }

    .collection-hero__video {
        object-position: center center;
    }

    .collection-hero--video .collection-hero__copy {
        bottom: 28px;
        width: min(92vw, 520px);
    }

    .collection-hero--video .collection-hero__copy h1 {
        font-size: clamp(48px, 14vw, 68px);
    }

    .collection-hero--video .collection-hero__copy span {
        max-width: 31ch;
        font-size: 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .collection-hero__video {
        display: none;
    }

    .collection-hero--video {
        background:
            linear-gradient(180deg, rgba(35,24,15,.06), rgba(35,24,15,.40)),
            url('/static/images/stride-harness-lifestyle.webp') center 44% / cover no-repeat;
    }
}


/* ==========================================================
   PHASE 3.4 — HOME CATEGORY WALL IN SHOP
   Exact Home collection showcase brought into /shop.
   ========================================================== */
.collection-showcase {
    padding: 130px 0 0;
    background: var(--paper);
}

.collection-showcase__heading {
    margin-bottom: 52px;
}

.collection-showcase__heading > div {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(260px, .7fr);
    gap: 70px;
    align-items: end;
}

.collection-showcase__heading h2 {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(56px, 6vw, 92px);
    font-weight: 400;
    line-height: .91;
    letter-spacing: -.055em;
}

.collection-showcase__heading p:not(.eyebrow) {
    margin: 0 0 6px;
    color: var(--muted);
    line-height: 1.72;
}

.category-wall {
    height: min(76vh, 760px);
    min-height: 620px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: hidden;
    background: #26231f;
}

.category-tile {
    position: relative;
    min-width: 0;
    overflow: hidden;
    color: #fff;
    text-decoration: none;
    isolation: isolate;
    border-right: 1px solid rgba(255,255,255,.12);
}

.category-tile:last-child {
    border-right: 0;
}

.category-tile img {
    position: absolute;
    inset: -2%;
    z-index: -3;
    width: 104%;
    height: 104%;
    object-fit: cover;
    filter: saturate(.72) contrast(1.03);
    transform: scale(1.02);
    transition:
        transform 1.15s var(--ease),
        filter .65s ease;
}

.category-tile__veil {
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(180deg, rgba(12,9,7,.06) 0%, rgba(20,13,8,.14) 45%, rgba(20,13,8,.68) 100%),
        linear-gradient(90deg, rgba(20,13,8,.18), transparent 65%);
    transition: background .5s ease;
}

.category-tile__content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    justify-items: center;
    padding: 50px 20px 62px;
    text-align: center;
    transform: translateY(12px);
    transition: transform .55s var(--ease);
}

.category-tile small {
    margin-bottom: 13px;
    color: rgba(255,255,255,.62);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .18em;
}

.category-tile h3 {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(36px, 3.1vw, 56px);
    font-weight: 400;
    letter-spacing: -.035em;
    text-transform: lowercase;
}

.category-tile__button {
    min-width: 132px;
    min-height: 48px;
    display: grid;
    place-items: center;
    margin-top: 20px;
    border-radius: 999px;
    color: #fff;
    background: rgba(105,94,78,.92);
    backdrop-filter: blur(10px);
    font-size: 9px;
    font-weight: 850;
    opacity: .9;
    transform: translateY(8px);
    transition:
        opacity .35s ease,
        transform .45s var(--ease),
        background .3s ease;
}

.category-tile:hover img {
    transform: scale(1.075);
    filter: saturate(.92) contrast(1.03);
}

.category-tile:hover .category-tile__veil {
    background:
        linear-gradient(180deg, rgba(12,9,7,.03) 0%, rgba(20,13,8,.08) 42%, rgba(20,13,8,.74) 100%);
}

.category-tile:hover .category-tile__content {
    transform: translateY(0);
}

.category-tile:hover .category-tile__button {
    opacity: 1;
    transform: translateY(0);
    background: rgba(79,69,57,.98);
}

/* Keep the previously requested lower shop-film crop. */
.collection-hero__video {
    object-position: center 68%;
}

@media (max-width: 700px) {
    .collection-showcase {
        padding-top: 90px;
    }

    .collection-showcase__heading > div {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .category-wall {
        height: 590px;
        min-height: 0;
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: 82vw;
        grid-template-columns: none;
        grid-template-rows: 1fr;
        overflow-x: auto;
        scroll-snap-type: inline mandatory;
        scrollbar-width: none;
    }

    .category-wall::-webkit-scrollbar {
        display: none;
    }

    .category-tile {
        scroll-snap-align: start;
        border-right: 1px solid rgba(255,255,255,.14);
    }

    .category-tile__content {
        padding-bottom: 42px;
    }

    .collection-hero__video {
        object-position: center 62%;
    }
}


/* ==========================================================
   PHASE 3.5 — CATEGORY WALL VISIBILITY FIX
   The Shop page does not run Home's reveal observer, so the
   Phase 3.4 `reveal` classes remained opacity:0. This version
   is intentionally always visible.
   ========================================================== */
.collection-showcase {
    padding-top: 96px;
}

.collection-showcase__heading,
.collection-showcase .category-tile {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
}

.collection-showcase__heading {
    margin-bottom: 38px;
}

.category-wall {
    background: #2a241f;
}

.category-tile img {
    opacity: 1 !important;
    visibility: visible !important;
}

@media (max-width: 700px) {
    .collection-showcase {
        padding-top: 70px;
    }

    .collection-showcase__heading {
        margin-bottom: 28px;
    }
}


/* ==========================================================
   PHASE 3.8 — REMOVE SHOP CATEGORY INTRO
   The 4-tile category wall now begins immediately after the
   product catalog, without the large cream editorial intro.
   ========================================================== */
.collection-showcase {
    padding-top: 0 !important;
}

.collection-showcase__heading {
    display: none !important;
    margin: 0 !important;
}

/* PAWLINE NAV LOGO PATCH */
.shop-brand {
    display: inline-flex;
    align-items: center;
}

.shop-brand .pawline-nav-logo {
    display: block;
    width: auto;
    height: 34px;
    max-width: 168px;
    object-fit: contain;
}

@media (max-width: 760px) {
    .shop-brand .pawline-nav-logo {
        height: 30px;
        max-width: 148px;
    }
}

/* PAWLINE SHOP 3COL DESKTOP 1COL MOBILE V1 */
.collection-grid.catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 46px 12px !important;
}

@media (max-width: 900px) {
    .collection-grid.catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 36px 10px !important;
    }
}

@media (max-width: 600px) {
    .collection-catalog.catalog {
        padding-inline: 16px !important;
    }

    .collection-grid.catalog-grid {
        grid-template-columns: 1fr !important;
        gap: 34px !important;
        padding-top: 8px !important;
    }

    .collection-card.catalog-card {
        width: 100% !important;
        max-width: none !important;
    }

    .collection-card__media.catalog-card__media {
        width: 100% !important;
        aspect-ratio: 4 / 5.15 !important;
        border-radius: 24px !important;
        overflow: hidden !important;
    }

    .collection-card__meta {
        grid-template-columns: minmax(0, 1fr) auto !important;
        gap: 14px !important;
        padding: 13px 3px 0 !important;
    }

    .collection-card__title-wrap h3 {
        font-size: 17px !important;
    }

    .collection-card__title-wrap > span {
        font-size: 11px !important;
    }

    .collection-card__price,
    .collection-card__price > span:not(.money) {
        font-size: 11px !important;
    }
}

.collection-card__media[data-product-preview].is-previewing .catalog-card__video {
    opacity: 1 !important;
}

.collection-card__media[data-product-preview].is-previewing .catalog-card__poster {
    opacity: 0 !important;
}

/* PAWLINE SHOP NAV + TOOLBAR HARD FIX V3 */

/* Only the main Pawline navbar remains sticky. */
.storefront-site-nav {
    position: sticky !important;
    top: 8px !important;
    z-index: 500 !important;
}

/* Force the real Pawline logo to remain visible. */
.storefront-brand {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    min-width: 150px !important;
    width: auto !important;
    height: 42px !important;
    overflow: visible !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.storefront-brand__logo {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 158px !important;
    min-width: 158px !important;
    max-width: 158px !important;
    height: auto !important;
    max-height: 36px !important;
    object-fit: contain !important;
    object-position: left center !important;
    margin: 0 !important;
    padding: 0 !important;
    filter: none !important;
    transform: none !important;
}

/* Shop title and filters must stay in normal page flow. */
.catalog__bar,
.collection-toolbar,
.collection-toolbar.catalog__bar,
.catalog .catalog__bar,
.collection-catalog .collection-toolbar,
.collection-catalog .collection-toolbar.catalog__bar {
    position: static !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    inset: auto !important;
    z-index: auto !important;
    transform: none !important;
    translate: none !important;
    margin-top: 0 !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Prevent children from inheriting sticky/fixed behavior. */
.collection-toolbar__heading,
.collection-toolbar__heading h2,
.collection-toolbar__heading span,
.collection-filters,
.catalog__filters {
    position: static !important;
    top: auto !important;
    inset: auto !important;
    z-index: auto !important;
    transform: none !important;
}

@media (max-width: 600px) {
    .storefront-site-nav {
        top: 8px !important;
        width: calc(100% - 18px) !important;
        z-index: 500 !important;
    }

    .storefront-brand {
        min-width: 138px !important;
        height: 38px !important;
    }

    .storefront-brand__logo {
        width: 138px !important;
        min-width: 138px !important;
        max-width: 138px !important;
        max-height: 31px !important;
    }

    .collection-toolbar.catalog__bar {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 17px !important;
        min-height: 0 !important;
        padding: 24px 0 18px !important;
    }

    .collection-toolbar__heading {
        display: flex !important;
        align-items: baseline !important;
        gap: 10px !important;
    }

    .collection-toolbar__heading h2 {
        margin: 0 !important;
    }
}

/* PAWLINE SHOP MARQUEE V3 */
.shop-values-marquee {
    width: 100%;
    overflow: hidden;
    background: #fffdf8;
    color: #7b5a35;
    border-top: 1px solid rgba(90, 58, 20, .14);
    border-bottom: 1px solid rgba(90, 58, 20, .14);
}

.shop-values-marquee__track {
    display: flex;
    width: max-content;
    min-width: 100%;
    animation: pawlineShopMarqueeV3 24s linear infinite;
    will-change: transform;
}

.shop-values-marquee__group {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    min-height: 86px;
    white-space: nowrap;
}

.shop-values-marquee__group span {
    flex: 0 0 auto;
    padding: 0 34px;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 12px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: .20em;
    text-transform: uppercase;
}

.shop-values-marquee__group b {
    flex: 0 0 auto;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    opacity: .4;
}

@keyframes pawlineShopMarqueeV3 {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(-50%, 0, 0); }
}

@media (max-width: 760px) {
    .shop-values-marquee__group {
        min-height: 74px;
    }

    .shop-values-marquee__group span {
        padding: 0 24px;
        font-size: 11px;
        letter-spacing: .18em;
    }

    .shop-values-marquee__group b {
        width: 4px;
        height: 4px;
    }

    .shop-values-marquee__track {
        animation-duration: 20s;
    }
}

@media (prefers-reduced-motion: reduce) {
    .shop-values-marquee__track {
        animation: none;
    }
}

/* PAWLINE SHOP NAV OVER VIDEO V1
   Floating pill navigation over the Shop hero/video, matching Home.
*/
.storefront-site-nav {
    position: sticky !important;
    top: 48px !important;
    z-index: 700 !important;

    width: calc(100% - 72px) !important;
    max-width: 1680px !important;
    min-height: 76px !important;

    margin: 16px auto -92px !important;
    padding: 0 24px !important;

    border: 1px solid rgba(96, 69, 43, .13) !important;
    border-radius: 999px !important;

    background: rgba(255, 253, 248, .96) !important;
    box-shadow: 0 12px 34px rgba(54, 35, 20, .08) !important;

    -webkit-backdrop-filter: blur(18px) saturate(115%) !important;
    backdrop-filter: blur(18px) saturate(115%) !important;
}

/* Make sure the brand remains visible in the light floating pill. */
.storefront-site-nav .storefront-brand,
.storefront-site-nav .storefront-brand__logo {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Keep the hero/video underneath the floating navigation. */
.collection-video-hero,
.collection-hero,
.shop-hero,
.shop-video-hero {
    position: relative;
    z-index: 1;
}

@media (max-width: 760px) {
    .storefront-site-nav {
        top: 48px !important;

        width: calc(100% - 32px) !important;
        min-height: 72px !important;

        margin: 14px auto -86px !important;
        padding: 0 14px 0 20px !important;

        border-radius: 999px !important;
    }

    .storefront-site-nav .storefront-brand {
        min-width: 0 !important;
        width: auto !important;
        height: 36px !important;
    }

    .storefront-site-nav .storefront-brand__logo {
        width: 138px !important;
        min-width: 138px !important;
        max-width: 138px !important;
        max-height: 30px !important;
    }
}

@media (max-width: 420px) {
    .storefront-site-nav {
        width: calc(100% - 28px) !important;
        min-height: 68px !important;
        margin-bottom: -82px !important;
        padding-left: 18px !important;
        padding-right: 10px !important;
    }

    .storefront-site-nav .storefront-brand__logo {
        width: 128px !important;
        min-width: 128px !important;
        max-width: 128px !important;
    }
}

/* PAWLINE SHOP MEGA MENU V2 */
.shop-mega-menu-v2 {
    --mega-top: 150px;
    position: fixed;
    top: var(--mega-top);
    left: 0;
    right: 0;
    z-index: 9998;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    background: #f8f4ec;
    border-top: 1px solid rgba(68, 44, 26, .10);
    border-bottom: 1px solid rgba(68, 44, 26, .14);
    box-shadow: 0 24px 55px rgba(40, 25, 14, .16);
    transition: opacity .18s ease, transform .24s ease, visibility .18s ease;
}

body.shop-mega-v2-open .shop-mega-menu-v2 {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.shop-mega-menu-v2__grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: 100%;
    height: clamp(310px, 31vw, 430px);
    overflow: hidden;
}

.shop-mega-card-v2 {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    color: #fffdf8 !important;
    text-decoration: none !important;
    background: #463b33;
    border-right: 1px solid rgba(255,255,255,.14);
}

.shop-mega-card-v2:last-child {
    border-right: 0;
}

.shop-mega-card-v2::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to bottom,
        rgba(22,15,10,.05) 10%,
        rgba(22,15,10,.12) 48%,
        rgba(22,15,10,.44) 100%
    );
    transition: background .3s ease;
}

.shop-mega-card-v2 img {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.015);
    filter: saturate(.92) contrast(.98);
    transition: transform .6s cubic-bezier(.2,.75,.25,1), filter .35s ease;
}

.shop-mega-card-v2 span {
    position: relative;
    z-index: 2;
    padding: 20px;
    text-align: center;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(28px, 2.25vw, 45px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -.025em;
    text-transform: lowercase;
    text-shadow: 0 2px 18px rgba(0,0,0,.28);
    transform: translateY(5px);
    transition: transform .3s ease;
}

.shop-mega-card-v2:hover img,
.shop-mega-card-v2:focus-visible img {
    transform: scale(1.065);
    filter: saturate(1) contrast(1.02);
}

.shop-mega-card-v2:hover span,
.shop-mega-card-v2:focus-visible span {
    transform: translateY(0);
}

.shop-mega-card-v2:hover::after,
.shop-mega-card-v2:focus-visible::after {
    background: linear-gradient(
        to bottom,
        rgba(22,15,10,.02) 10%,
        rgba(22,15,10,.08) 48%,
        rgba(22,15,10,.34) 100%
    );
}

.shop-mega-v2-trigger {
    position: relative;
}

.shop-mega-v2-trigger::after {
    content: "";
    position: absolute;
    height: 1px;
    left: 50%;
    right: 50%;
    bottom: -6px;
    background: currentColor;
    transition: left .2s ease, right .2s ease;
}

body.shop-mega-v2-open .shop-mega-v2-trigger::after,
.shop-mega-v2-trigger:hover::after {
    left: 0;
    right: 0;
}

@media (max-width: 900px) {
    .shop-mega-menu-v2 {
        left: 12px;
        right: 12px;
        width: auto;
        max-height: 72vh;
        overflow-y: auto;
        border: 1px solid rgba(68,44,26,.13);
        border-radius: 28px;
    }

    .shop-mega-menu-v2__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        height: auto;
    }

    .shop-mega-card-v2 {
        aspect-ratio: 1 / 1.08;
        border-bottom: 1px solid rgba(255,255,255,.14);
    }

    .shop-mega-card-v2:last-child {
        grid-column: 1 / -1;
        aspect-ratio: 2 / .78;
    }

    .shop-mega-card-v2 span {
        font-size: clamp(24px, 7vw, 36px);
    }
}

@media (max-width: 480px) {
    .shop-mega-menu-v2 {
        left: 8px;
        right: 8px;
        border-radius: 22px;
    }

    .shop-mega-card-v2 span {
        padding: 12px;
        font-size: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .shop-mega-menu-v2,
    .shop-mega-card-v2 img,
    .shop-mega-card-v2 span {
        transition: none !important;
    }
}

/* PAWLINE PRODUCT VIDEO ROUND HOVER V1
   Desktop only:
   - keeps the current product/video behavior
   - smoothly rounds the media while the pointer is over the product
   - returns smoothly to square corners when the pointer leaves
*/
.pawline-product-hover-round {
    position: relative;
    overflow: hidden !important;
    border-radius: 0 !important;
    transform: translateZ(0);
    transition:
        border-radius .48s cubic-bezier(.22,.61,.36,1),
        box-shadow .48s ease;
    will-change: border-radius;
}

.pawline-product-hover-round > img,
.pawline-product-hover-round > video,
.pawline-product-hover-round img,
.pawline-product-hover-round video {
    border-radius: inherit !important;
}

.pawline-product-hover-round video,
.pawline-product-hover-round img {
    transition:
        border-radius .48s cubic-bezier(.22,.61,.36,1),
        opacity .28s ease,
        transform .55s cubic-bezier(.22,.61,.36,1) !important;
}

@media (hover: hover) and (pointer: fine) {
    .pawline-product-hover-card:hover .pawline-product-hover-round,
    .pawline-product-hover-round:hover {
        border-radius: 30px !important;
        box-shadow: 0 10px 30px rgba(68, 45, 27, .08);
    }
}

@media (hover: none), (pointer: coarse) {
    .pawline-product-hover-round {
        border-radius: inherit !important;
        box-shadow: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pawline-product-hover-round,
    .pawline-product-hover-round video,
    .pawline-product-hover-round img {
        transition: none !important;
    }
}

/* =========================================================
   PAWLINE SHOP — SOFT MEGA MENU MOTION V12
   Desktop only. Mobile is untouched.
   ========================================================= */

@media (min-width: 901px) {

    /* Keep the navigation visually above the mega menu. */
    .pawline-mega-nav-v12 {
        position: relative !important;
        z-index: 220 !important;
        transition:
            background-color .34s ease,
            box-shadow .34s ease,
            backdrop-filter .34s ease !important;
    }

    .pawline-mega-nav-v12.is-mega-open-v12 {
        background: rgba(248, 245, 239, .98) !important;
        backdrop-filter: blur(14px) !important;
        -webkit-backdrop-filter: blur(14px) !important;
        box-shadow: 0 10px 34px rgba(31, 24, 18, .08) !important;
    }

    /* The mega menu begins hidden even if the old hover logic displays it instantly. */
    .pawline-mega-panel-v12 {
        z-index: 180 !important;

        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;

        transform: translate3d(0, -12px, 0) scale(.995) !important;
        transform-origin: top center !important;

        transition:
            opacity .46s cubic-bezier(.22, 1, .36, 1),
            transform .56s cubic-bezier(.22, 1, .36, 1),
            visibility 0s linear .56s !important;

        will-change: opacity, transform;
    }

    /* Our JS adds this after a small intentional delay. */
    .pawline-mega-panel-v12.is-soft-open-v12 {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;

        transform: translate3d(0, 0, 0) scale(1) !important;

        transition:
            opacity .46s cubic-bezier(.22, 1, .36, 1),
            transform .56s cubic-bezier(.22, 1, .36, 1),
            visibility 0s linear 0s !important;
    }

    /*
       If the existing mega menu starts flush against/behind the nav,
       this adds a subtle visual separation without changing its layout.
    */
    .pawline-mega-panel-v12::before {
        content: "" !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: 1px !important;
        background: rgba(72, 52, 35, .10) !important;
        pointer-events: none !important;
    }

    @media (prefers-reduced-motion: reduce) {
        .pawline-mega-panel-v12,
        .pawline-mega-panel-v12.is-soft-open-v12,
        .pawline-mega-nav-v12 {
            transition: none !important;
            transform: none !important;
        }
    }
}

/* PAWLINE RINSE SHOP CARD SIZE V1
   Keep every other product unchanged.
   Rinse uses contain instead of cover so the full bottle reads smaller.
*/
.catalog-card__poster--rinse {
    object-fit: contain !important;
    object-position: center center !important;
    transform: scale(0.65) !important;
    transform-origin: center center !important;
}

.catalog-card__media:hover .catalog-card__poster--rinse,
.collection-card__media:hover .catalog-card__poster--rinse {
    transform: scale(0.86) !important;
}

@media (max-width: 900px) {
    .catalog-card__poster--rinse {
        transform: scale(0.78) !important;
    }

    .catalog-card__media:hover .catalog-card__poster--rinse,
    .collection-card__media:hover .catalog-card__poster--rinse {
        transform: scale(0.78) !important;
    }
}


/* PAWLINE RINSE SHOP CARD SIZE V2
   Large, fully visible product — no crop, no tiny scaled canvas.
*/
.catalog-card__poster--rinse {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    transform: none !important;
    transform-origin: center center !important;
}

/* Keep it large on hover without cropping the bottle. */
.catalog-card__media:hover .catalog-card__poster--rinse,
.collection-card__media:hover .catalog-card__poster--rinse {
    transform: scale(1.015) !important;
}

/* Mobile: same principle — full bottle, large and centered. */
@media (max-width: 900px) {
    .catalog-card__poster--rinse {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        object-position: center center !important;
        transform: none !important;
    }

    .catalog-card__media:hover .catalog-card__poster--rinse,
    .collection-card__media:hover .catalog-card__poster--rinse {
        transform: none !important;
    }
}

/* PAWLINE CARE PRODUCT SCALE V3
   Make RINSE / EASE / BALM read at approximately the same visual size as COAT.
   COAT remains the reference and is not scaled.
*/
.catalog-card__media {
    overflow: hidden;
}

/* Tall bottles: enlarge the artwork/canvas while keeping the product centered. */
.catalog-card__poster[src*="rinse-shampoo-editorial.webp"],
.catalog-card__poster[src*="ease-conditioner-editorial.webp"] {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    transform: scale(1.46) !important;
    transform-origin: center center !important;
}

/* BALM is naturally wider, so it needs a smaller zoom than the bottles. */
.catalog-card__poster[src*="balm-paw-balm-editorial.webp"] {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    transform: scale(1.30) !important;
    transform-origin: center center !important;
}

/* COAT is the size reference. */
.catalog-card__poster[src*="coat-dry-shampoo-editorial.webp"] {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    transform: none !important;
}

/* Don't let the generic hover zoom make the care products inconsistent. */
.catalog-card__media:hover .catalog-card__poster[src*="rinse-shampoo-editorial.webp"],
.catalog-card__media:hover .catalog-card__poster[src*="ease-conditioner-editorial.webp"] {
    transform: scale(1.49) !important;
}

.catalog-card__media:hover .catalog-card__poster[src*="balm-paw-balm-editorial.webp"] {
    transform: scale(1.33) !important;
}

.catalog-card__media:hover .catalog-card__poster[src*="coat-dry-shampoo-editorial.webp"] {
    transform: scale(1.02) !important;
}

@media (max-width: 900px) {
    .catalog-card__poster[src*="rinse-shampoo-editorial.webp"],
    .catalog-card__poster[src*="ease-conditioner-editorial.webp"] {
        transform: scale(1.38) !important;
    }

    .catalog-card__poster[src*="balm-paw-balm-editorial.webp"] {
        transform: scale(1.24) !important;
    }

    .catalog-card__poster[src*="coat-dry-shampoo-editorial.webp"] {
        transform: none !important;
    }
}

/* PAWLINE REMOVE DUPLICATE RINSE V1
   Hide any RINSE card after the first one, preventing a flash before JS cleanup.
*/
.catalog-card[data-product-handle="rinse-dog-shampoo"]
~ .catalog-card[data-product-handle="rinse-dog-shampoo"] {
    display: none !important;
}

/* PAWLINE VIEW PRODUCT PILL + VIDEO SMOOTH V1 START */

/* Exact class added at runtime only to buttons/links whose text is "view product". */
.pawline-view-product-pill {
    border-radius: 999px !important;
    overflow: hidden !important;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
}

/* GPU compositing helps hover/background video render more smoothly. */
.catalog-card__video,
video[data-pawline-lazy-video],
.pawline-smooth-video {
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    will-change: transform;
}

/* PAWLINE VIEW PRODUCT PILL + VIDEO SMOOTH V1 END */

/* PAWLINE SHOP NAV CRISTAL V1 START */
/* Shop matches Home: translucent dark over video, softly lit after scrolling.
   Existing pill size, placement, sticky behavior, mega menu stay unchanged. */
.shop-page--collection #siteNav.storefront-site-nav {
    color: #fff !important;
    background: rgba(31, 22, 14, .18) !important;
    border-color: rgba(255, 255, 255, .24) !important;
    box-shadow: 0 12px 36px rgba(29, 19, 11, .10) !important;
    -webkit-backdrop-filter: blur(18px) saturate(115%) !important;
    backdrop-filter: blur(18px) saturate(115%) !important;
    transition: color .35s ease, background .35s ease,
                border-color .35s ease, box-shadow .35s ease !important;
}

.shop-page--collection #siteNav.storefront-site-nav.is-scrolled {
    color: #21180f !important;
    background: rgba(255, 253, 249, .93) !important;
    border-color: rgba(67, 43, 23, .12) !important;
    box-shadow: 0 14px 45px rgba(45, 29, 16, .10) !important;
}

/* Two existing Pawline brand variants (from Home), same coordinates. */
.shop-page--collection #siteNav .storefront-brand__logo-switch {
    position: relative;
    display: block;
    width: 158px;
    height: 36px;
    flex: 0 0 auto;
}
.shop-page--collection #siteNav .storefront-brand__logo-switch .storefront-brand__logo {
    position: absolute !important;
    left: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    display: block !important;
    transition: opacity .3s ease !important;
}
.shop-page--collection #siteNav:not(.is-scrolled) .storefront-brand__logo--light,
.shop-page--collection #siteNav.is-scrolled .storefront-brand__logo--dark {
    opacity: 1 !important;
}
.shop-page--collection #siteNav:not(.is-scrolled) .storefront-brand__logo--dark,
.shop-page--collection #siteNav.is-scrolled .storefront-brand__logo--light {
    opacity: 0 !important;
}

.shop-page--collection #siteNav:not(.is-scrolled) .storefront-nav-icon {
    color: #fff !important;
    border-color: rgba(255, 255, 255, .25) !important;
    background: rgba(255, 255, 255, .07) !important;
}
.shop-page--collection #siteNav:not(.is-scrolled) .storefront-nav-icon:hover {
    background: rgba(255, 255, 255, .15) !important;
}
.shop-page--collection #siteNav.is-scrolled .storefront-nav-icon {
    color: #21180f !important;
    border-color: rgba(68, 43, 23, .14) !important;
    background: #f7f1e8 !important;
}
.shop-page--collection #siteNav .storefront-nav-icon {
    transition: color .35s ease, background .35s ease, border-color .35s ease,
                transform .25s ease !important;
}

@media (max-width: 760px) {
    .shop-page--collection #siteNav .storefront-brand__logo-switch {
        width: 138px;
        height: 30px;
    }
}
@media (max-width: 420px) {
    .shop-page--collection #siteNav .storefront-brand__logo-switch {
        width: 128px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .shop-page--collection #siteNav.storefront-site-nav,
    .shop-page--collection #siteNav .storefront-brand__logo,
    .shop-page--collection #siteNav .storefront-nav-icon {
        transition: none !important;
    }
}
/* PAWLINE SHOP NAV CRISTAL V1 END */
