/* Homepage sections for the Storefront v3 layout. */
.pc-v3-home {
    --pc-home-hero-surface: #f4e5d5;
    --pc-home-section-gap: 22px;
    background: var(--pc-v3-paper);
    color: var(--pc-v3-ink);
    font-family: var(--pc-v3-font);
}

.pc-v3-home :is(.pc-home-section, .pc-home-hero) :focus-visible {
    outline: 2px solid var(--pc-v3-copper);
    outline-offset: 2px;
}

.pc-v3-home [hidden] {
    display: none !important;
}

.pc-v3-home :is(.pc-home-section, .pc-home-hero)[id] {
    scroll-margin-block-start: calc(var(--pc-v3-header-height) + 12px);
}

.pc-home-section {
    margin-block: var(--pc-home-section-gap);
}

.pc-v3-home .home-new-arrivals {
    margin-block: var(--pc-home-section-gap);
    padding-block: 0;
}

.pc-v3-home .home-new-arrivals > .container {
    width: 100%;
    max-width: var(--pc-v3-width);
    padding-inline: var(--pc-v3-gutter);
}

.pc-v3-home .home-new-arrivals .home-section-header {
    gap: 10px 20px;
    margin-block-end: 14px;
}

.pc-v3-home .home-new-arrivals .home-section-header h2 {
    margin: 0;
    font-size: clamp(20px, 4.9vw, 28px);
    line-height: 1.15;
}

.pc-home-section__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
    margin-block-end: 9px;
}

.pc-home-section__heading > div {
    min-width: 0;
}

.pc-home-section__heading h2,
.pc-home-build h2,
.pc-home-life h3 {
    margin: 0;
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: 1.12;
    overflow-wrap: anywhere;
}

.pc-home-section__heading h2 {
    font-size: clamp(20px, 4.9vw, 28px);
}

.pc-home-section__heading p {
    max-width: 62ch;
    margin: 6px 0 0;
    color: var(--pc-v3-muted);
    font-size: 13px;
    line-height: 1.5;
}

.pc-home-kicker {
    display: block;
    margin: 0 0 7px;
    color: var(--pc-v3-copper);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .11em;
    line-height: 1.35;
    text-transform: uppercase;
}

.pc-v3-home :is(.pc-home-button, .pc-home-textlink) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    color: var(--pc-v3-copper);
    font-size: 13px;
    font-weight: 750;
    line-height: 1.16;
    overflow-wrap: anywhere;
    text-decoration: none;
}

.pc-home-textlink {
    flex: 0 1 auto;
    max-width: 45%;
    text-align: end;
}

.pc-home-textlink:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.pc-v3-home .pc-home-button {
    padding: 8px 11px;
    border: 1px solid #bb8960;
    border-radius: 12px;
    text-align: center;
}

.pc-v3-home .pc-home-button--primary {
    border-color: var(--pc-v3-copper);
    background: var(--pc-v3-copper);
    color: var(--pc-v3-white);
}

.pc-v3-home .pc-home-button--primary:hover {
    border-color: #713505;
    background: #713505;
}

.pc-v3-home .pc-home-button--secondary {
    background: var(--pc-v3-paper);
}

.pc-v3-home .pc-home-button--secondary:hover {
    background: var(--pc-v3-sand);
}

.pc-v3-home :is(.pc-home-button, .pc-home-textlink) .pc-v3-icon {
    width: 16px;
    height: 16px;
}

.pc-home-hero {
    position: relative;
    isolation: isolate;
    background: var(--pc-home-hero-surface);
}

.pc-home-hero__visual {
    position: absolute;
    z-index: -1;
    inset: 0 0 0 auto;
    width: 69%;
}

.pc-home-hero__visual::after {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(0deg, var(--pc-home-hero-surface) 2%, #f4e5d5bd 13%, transparent 29%),
        linear-gradient(90deg, var(--pc-home-hero-surface), #f4e5d5ee 16%, #f4e5d592 32%, transparent 60%);
    content: "";
    pointer-events: none;
}

.pc-home-hero__slide {
    position: absolute;
    inset: 0;
}

.pc-home-hero:not(.is-ready, :has(.is-ready)) .pc-home-hero__slide ~ .pc-home-hero__slide {
    display: none;
}

.pc-home-hero__slide picture,
.pc-home-hero__slide img {
    display: block;
    width: 100%;
    height: 100%;
}

.pc-home-hero__slide img {
    object-fit: cover;
    object-position: center;
}

.pc-home-hero__caption {
    position: absolute;
    z-index: 1;
    inset: 8px 8px auto auto;
    max-width: 52%;
    margin: 0;
    font-size: 10px;
    line-height: 1.15;
}

.pc-home-hero__caption a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 4px 7px;
    border-radius: 7px;
    background: var(--pc-v3-white);
    color: var(--pc-v3-ink);
    font-weight: 750;
    overflow-wrap: anywhere;
    text-decoration: none;
}

.pc-home-hero__caption a:hover {
    text-decoration: underline;
}

.pc-home-hero__inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 13px;
    min-height: 283px;
    padding-block: 22px 12px;
    pointer-events: none;
}

.pc-home-hero__inner > :is(.pc-home-hero__copy, .pc-home-hero__actions, .pc-home-dots) {
    pointer-events: auto;
}

.pc-home-hero--text .pc-home-hero__inner {
    min-height: 230px;
}

.pc-home-hero__copy {
    width: 61%;
    max-width: 475px;
}

.pc-home-hero--text .pc-home-hero__copy {
    width: 100%;
    max-width: 600px;
}

.pc-home-hero__copy h1 {
    margin: 0;
    color: var(--pc-v3-ink);
    font-size: clamp(23px, 6.2vw, 34px);
    font-weight: 800;
    letter-spacing: -.045em;
    line-height: 1.04;
    overflow-wrap: anywhere;
}

.pc-home-hero__copy h1 em {
    color: var(--pc-v3-copper);
    font-style: normal;
}

.pc-home-hero__copy p:not(.pc-home-kicker) {
    max-width: 38ch;
    margin: 9px 0 0;
    color: var(--pc-v3-ink);
    font-size: 13px;
    line-height: 1.43;
    overflow-wrap: anywhere;
}

.pc-home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    width: 100%;
    max-width: 350px;
}

.pc-home-hero__actions .pc-home-button {
    flex: 1 1 0;
    min-width: min(138px, 100%);
    overflow-wrap: anywhere;
}

.pc-home-hero__actions .pc-home-button:only-child {
    flex-grow: 0;
}

.pc-home-dots {
    display: flex;
    justify-content: center;
    align-self: center;
    gap: 2px;
    margin: 2px auto 0;
}

.pc-home-dots button,
.pc-home-arrows button {
    display: inline-grid;
    flex: 0 0 auto;
    place-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--pc-v3-copper);
    cursor: pointer;
}

.pc-home-dots button {
    width: 28px;
    height: 27px;
    border-radius: 10px;
}

.pc-home-dots button::before {
    width: 9px;
    height: 9px;
    border: 1px solid #ad7751;
    border-radius: 50%;
    content: "";
}

.pc-home-dots button[aria-pressed="true"]::before {
    border-color: var(--pc-v3-copper);
    background: var(--pc-v3-copper);
}

.pc-home-build {
    display: grid;
    grid-template-columns: minmax(0, .42fr) minmax(0, .58fr);
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--pc-v3-line);
    border-radius: var(--pc-v3-radius);
    background: var(--pc-v3-sand);
}

.pc-home-build__media,
.pc-home-build__media picture {
    display: block;
    min-width: 0;
}

.pc-home-build__media img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 225px;
    aspect-ratio: 1.25;
    border-radius: 8px;
    object-fit: contain;
}

.pc-home-build__copy:only-child {
    grid-column: 1 / -1;
}

.pc-home-build h2 {
    font-size: clamp(21px, 5.5vw, 34px);
}

.pc-home-build p:not(.pc-home-kicker) {
    max-width: 58ch;
    margin: 6px 0 0;
    font-size: 13px;
    line-height: 1.38;
}

.pc-home-build .pc-home-kicker {
    display: inline-flex;
    margin: 0 0 5px;
    padding: 4px 8px;
    border-radius: 50px;
    background: var(--pc-v3-copper);
    color: var(--pc-v3-white);
    font-size: 9px;
}

.pc-home-build .pc-home-textlink {
    justify-content: start;
    max-width: none;
    text-align: start;
}

.pc-home-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    max-width: 390px;
    margin: 9px 0 0;
    padding: 0;
    list-style: none;
}

.pc-home-steps li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    text-align: center;
    overflow-wrap: anywhere;
}

.pc-home-steps .pc-v3-icon {
    box-sizing: content-box;
    width: 18px;
    height: 18px;
    padding: 5px;
    border-radius: 50%;
    background: var(--pc-v3-white);
    color: var(--pc-v3-copper);
}

.pc-home-steps strong,
.pc-home-steps small {
    font-size: 10px;
    line-height: 1.12;
}

.pc-home-steps small {
    color: var(--pc-v3-muted);
}

.pc-home-categories {
    display: grid;
    grid-auto-columns: 84px;
    grid-auto-flow: column;
    gap: 8px;
    margin: 0;
    padding: 0 0 3px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: var(--pc-v3-line) transparent;
    list-style: none;
}

.pc-home-categories li {
    min-width: 0;
    scroll-snap-align: start;
}

.pc-home-category {
    display: flex;
    height: 100%;
    min-height: 98px;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 5px 4px 7px;
    border: 1px solid var(--pc-v3-line);
    border-radius: 12px;
    background: var(--pc-v3-sand-soft);
    color: var(--pc-v3-ink);
    font-size: 12px;
    line-height: 1.15;
    overflow-wrap: anywhere;
    text-align: center;
    text-decoration: none;
}

.pc-home-category:is(:hover, :focus-visible) {
    border-color: var(--pc-v3-copper);
}

.pc-home-category:focus-visible {
    outline-offset: -3px;
}

.pc-home-category picture,
.pc-home-category img {
    display: block;
    width: 100%;
    border-radius: 7px;
}

.pc-home-category img {
    height: 66px;
    object-fit: contain;
}

.pc-home-category strong {
    font-size: 11px;
}

.pc-home-category__placeholder {
    display: grid;
    width: 100%;
    min-height: 66px;
    place-items: center;
    color: var(--pc-v3-copper);
}

.pc-home-category small {
    color: var(--pc-v3-muted);
    font-size: 10px;
}

.pc-home-products {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.pc-home-trust {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 66px), 1fr));
    margin: 0;
    padding: 10px 4px;
    border: 1px solid var(--pc-v3-line);
    border-radius: var(--pc-v3-radius);
    background: var(--pc-v3-sand-soft);
    list-style: none;
}

.pc-home-trust li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    min-width: 0;
    padding: 3px 5px;
    line-height: 1.2;
    overflow-wrap: anywhere;
    text-align: center;
}

.pc-home-trust li + li {
    border-inline-start: 1px solid var(--pc-v3-line);
}

.pc-home-trust strong {
    display: block;
    font-size: 12px;
}

.pc-home-trust li > span {
    color: var(--pc-v3-copper);
    font-size: 18px;
    line-height: 1;
}

.pc-home-trust small {
    display: block;
    margin-block-start: 3px;
    color: var(--pc-v3-muted);
    font-size: 11px;
}

.pc-home-trust .pc-v3-icon {
    width: 22px;
    height: 22px;
    color: var(--pc-v3-copper);
}

.pc-home-arrows {
    display: flex;
    flex: 0 0 auto;
    gap: 5px;
}

.pc-home-arrows button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--pc-v3-sand);
    font-size: 22px;
    line-height: 1;
}

.pc-home-arrows button:hover {
    background: var(--pc-v3-amber);
}

.pc-home-arrows .pc-v3-icon {
    width: 17px;
    height: 17px;
}

.pc-home-life__track {
    display: grid;
    gap: 10px;
}

.pc-home-life {
    display: grid;
    align-items: center;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--pc-v3-line);
    border-radius: var(--pc-v3-radius);
    background: var(--pc-v3-sand);
}

.pc-home-life--photo {
    justify-self: center;
    width: fit-content;
    max-width: 100%;
}

.pc-home-life__media {
    display: grid;
    place-items: center;
    align-self: stretch;
    min-width: 0;
    background: var(--pc-v3-sand-soft);
}

.pc-home-life__media picture {
    display: block;
    max-width: 100%;
    min-width: 0;
}

.pc-home-life__media img {
    display: block;
    max-width: 100%;
    max-height: min(58vh, 440px);
    max-height: min(58svh, 440px);
    width: auto;
    height: auto;
    margin-inline: auto;
    object-fit: contain;
}

.pc-home-life__copy {
    min-width: 0;
    padding: 15px;
}

.pc-home-life h3 {
    font-size: clamp(16px, 4.4vw, 28px);
}

.pc-home-life p {
    max-width: 50ch;
    margin: 6px 0 9px;
    color: var(--pc-v3-muted);
    font-size: 12px;
    line-height: 1.42;
}

.pc-home-life .pc-home-button {
    font-size: 12px;
}

.pc-home-lifestyle .pc-home-dots {
    margin-block-start: 4px;
}

.pc-home-lifestyle .pc-home-dots button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
}

@media (max-width: 599px) {
    .pc-v3-home .pc-home-hero__actions .pc-home-button {
        padding-inline: 8px;
        font-size: .75rem;
    }

    .pc-home-hero__actions .pc-home-button--primary:not(:only-child) {
        flex-grow: 1.2;
    }
}

@media (max-width: 359px) {
    .pc-home-hero__actions .pc-v3-icon {
        display: none;
    }

    .pc-home-build {
        grid-template-columns: minmax(0, .35fr) minmax(0, .65fr);
    }
}

@media (min-width: 600px) {
    .pc-v3-home {
        --pc-home-section-gap: 31px;
    }

    .pc-home-hero__inner {
        gap: 17px;
        min-height: 345px;
        padding-block: 30px 20px;
    }

    .pc-home-hero__visual {
        width: 61%;
    }

    .pc-home-hero__visual::after {
        background: linear-gradient(90deg, var(--pc-home-hero-surface), #f4e5d5bc 18%, transparent 52%);
    }

    .pc-home-hero__copy {
        width: 54%;
    }

    .pc-home-hero__copy h1 {
        font-size: clamp(33px, 5.5vw, 48px);
    }

    .pc-home-hero__copy p:not(.pc-home-kicker) {
        font-size: 15px;
    }

    .pc-home-hero__caption {
        inset: auto 12px 12px auto;
    }

    .pc-home-build {
        gap: 22px;
        padding: 18px 22px;
    }

    .pc-home-build p:not(.pc-home-kicker),
    .pc-home-life p {
        font-size: 15px;
    }

    .pc-home-steps strong,
    .pc-home-steps small {
        font-size: 12px;
    }

    .pc-home-categories {
        grid-auto-columns: minmax(103px, 1fr);
        gap: 12px;
    }

    .pc-home-category {
        min-height: 115px;
        padding: 8px 7px;
        font-size: 13px;
    }

    .pc-home-category img {
        height: 79px;
    }

    .pc-home-category strong {
        font-size: inherit;
    }

    .pc-home-products {
        gap: 14px;
    }

    .pc-home-product__body {
        padding: 10px;
    }

    .pc-home-product h3,
    .pc-home-product__price {
        font-size: 15px;
    }

    .pc-home-trust {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 102px), 1fr));
        padding: 12px 6px;
    }

    .pc-home-trust li {
        padding-inline: 8px;
    }

    .pc-home-life--feature {
        grid-template-columns: minmax(0, .51fr) minmax(0, .49fr);
    }

    .pc-home-life__copy {
        padding: 19px;
    }
}

@media (min-width: 600px) and (max-width: 959px) {
    .pc-home-product {
        display: grid;
        grid-template-columns: minmax(0, .48fr) minmax(0, .52fr);
    }

    .pc-home-product__media {
        position: relative;
        border-radius: calc(var(--pc-v3-radius) - 1px) 0 0 calc(var(--pc-v3-radius) - 1px);
    }

    .pc-home-product__media img {
        position: absolute;
        inset: 0;
        height: 100%;
        aspect-ratio: auto;
    }
}

@media (min-width: 960px) {
    .pc-v3-home {
        --pc-home-section-gap: 35px;
    }

    .pc-home-hero__inner {
        gap: 19px;
        min-height: 425px;
        padding-block: 43px 22px;
    }

    .pc-home-hero:has(.pc-home-dots:not([hidden])) .pc-home-hero__inner {
        padding-block-end: 40px;
    }

    .pc-home-hero--text .pc-home-hero__inner {
        min-height: 300px;
    }

    .pc-home-hero__visual {
        width: 62%;
    }

    .pc-home-hero__copy h1 {
        font-size: clamp(40px, 3.7vw, 52px);
    }

    .pc-home-hero__copy {
        max-width: 545px;
    }

    .pc-home-hero__copy p:not(.pc-home-kicker) {
        font-size: 16px;
    }

    .pc-home-hero__actions .pc-home-button {
        min-height: 49px;
        font-size: 14px;
    }

    .pc-home-hero__actions {
        max-width: 420px;
    }

    .pc-home-hero .pc-home-dots {
        position: absolute;
        inset: auto 0 5px;
        width: fit-content;
    }

    .pc-home-build {
        grid-template-columns: minmax(0, .38fr) minmax(0, .62fr);
        gap: 30px;
        min-height: 218px;
        padding: 18px 32px;
    }

    .pc-home-categories {
        grid-auto-columns: minmax(126px, 1fr);
    }

    .pc-home-category {
        min-height: 122px;
    }

    .pc-home-category img {
        height: 84px;
    }

    .pc-home-products {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .pc-home-product__body {
        padding: 12px;
    }

    .pc-home-trust {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 147px), 1fr));
    }

    .pc-home-trust li {
        flex-direction: row;
        justify-content: center;
        gap: 9px;
        text-align: start;
    }

    .pc-home-trust strong {
        font-size: 13px;
    }

    .pc-home-life--feature {
        grid-template-columns: minmax(0, .57fr) minmax(0, .43fr);
    }

    .pc-home-life__copy {
        padding: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pc-home-product__media img {
        transition: none;
    }

    .pc-home-product__media:hover img {
        transform: none;
    }
}
