.edp-page {
    background-color: #f2f0eb;
    color: #000;
    font-family: var(--pd-font-body);
    max-width: 100%;
    min-width: 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.product-box-container {
    max-width: var(--site-max-width, 1440px);
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: max(var(--site-px, 0px), env(safe-area-inset-left, 0px));
    padding-right: max(var(--site-px, 0px), env(safe-area-inset-right, 0px));
}

.edp-page .edp-hero {
    width: 100%;
    position: relative;
    overflow: hidden;
    height: 60vh;
    min-height: 0;
    min-width: 0;
    padding: 0;
    text-align: left;
    border-bottom: 1px solid #d9d3ca;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    box-sizing: border-box;
    contain: layout;
    isolation: isolate;
}

.edp-hero-bg {
    --edp-hero-bg-x: 50%;
    --edp-hero-bg-y: top;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--edp-hero-bg-x) var(--edp-hero-bg-y);
    z-index: 0;
    pointer-events: none;
    user-select: none;
    transform: translate3d(0, 0, 0);
}

@media (min-width: 75rem) {
    .edp-hero-bg {
        object-fit: fill;
        object-position: var(--edp-hero-bg-x) var(--edp-hero-bg-y);
    }
}

.edp-hero-layout {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: 100%;
    min-width: 0;
    margin: 0;
    flex: 0 1 auto;
    min-height: 100%;
    align-self: stretch;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

.edp-hero-left {
    flex: 1 1 50%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-top: clamp(2.25rem, 5.5vw, 4.25rem);
    padding-bottom: clamp(1.5rem, 4vw, 3rem);
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
}

.edp-hero-right {
    flex: 1 1 50%;
    min-width: 0;
    pointer-events: none;
}

.edp-hero-title-block {
    width: 100%;
    margin: 0;
    padding: 0;
    text-align: left;
}

.edp-hero-title-block h1 {
    font-family: var(--pd-font-brand);
    font-size: var(--banner-title-size-desktop);
    font-weight: 700;
    margin: 0 0 clamp(1.35rem, 1.1rem + 0.9vw, 2rem);
    letter-spacing: 0;
    line-height: 1.12;
    padding: 0;
}

.edp-hero-description {
    width: 60%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    text-align: left;
    box-sizing: border-box;
}

.edp-hero-description p {
    max-width: 100%;
    font-family: var(--pd-font-body);
    font-size: var(--text-lede);
    font-weight: var(--fw-light, 300);
    line-height: 1.45;
    margin: 0;
}

.edp-hero-description p + p {
    padding-top: clamp(1.5rem, 1.2rem + 1vw, 2.25rem);
}

.edp-page .edp-hero-title-block h1 {
    color: #fff;
}

.edp-page .edp-hero-description p {
    color: #fff;
    font-weight: var(--fw-light, 300);
}

.filter-bar {
    padding-top: 20px;
    border-bottom: 1px solid #d9d3ca;
}

.filter-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 30px;
    margin-bottom: 12px;
}

.sort-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sort-select {
    border: 1px solid #000;
    padding: 8px 30px 8px 12px;
    background: #fff;
    font-size: 0.9rem;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='M0 3l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.separator {
    border: 0;
    border-top: 1px solid #d9d3ca;
    margin: 0;
}

.product-grid-container {
    padding: clamp(2rem, 4vw, 3.5rem) 0 max(4rem, calc(6rem + env(safe-area-inset-bottom, 0px)));
}

.product-grid.grid-4 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 60px 30px;
}

.product-card-tile {
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.product-card-tile .product-image img {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
}

@media (hover: hover) and (pointer: fine) {
    .product-card-tile .product-image img {
        transition: transform 0.25s ease;
    }

    .product-card-tile:hover .product-image img {
        transform: scale(1.02);
    }
}

.product-card-tile h3 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.2px;
}

.product-subtitle {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.4;
    margin-bottom: 25px;
    padding: 0 10px;
}

.size-group {
    text-align: left;
    margin-bottom: 0;
}

.size-group label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 6px;
    font-weight: 500;
}

.select-wrapper {
    border: 1px solid #333;
    background: transparent;
    position: relative;
    border-radius: 1.51px;
    overflow: hidden;
}

.select-wrapper::after {
    content: "";
    position: absolute;
    right: 11px;
    top: 50%;
    width: 7px;
    height: 7px;
    border-right: 1.5px solid #333;
    border-bottom: 1.5px solid #333;
    transform: translateY(-93%) rotate(45deg);
    pointer-events: none;
}

.select-wrapper select {
    width: 100%;
    height: 35px;
    min-height: 35px;
    padding: 0 30px 0 12px;
    border: none;
    background: transparent;
    font-size: 1.1rem;
    text-align: center;
    text-align-last: center;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: none;
    background-color: var(--primary-color);
    color: #000;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: #000;
}

.add-to-cart-btn {
    width: 100%;
    background: #000;
    color: #fff;
    border: 1px solid #000;
    height: 35px;
    min-height: 35px;
    padding: 16px;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 1.51px;
}

.add-to-cart-btn:hover {
    background: #333;
    border-color: #333;
}

.product-page {
    background: #f8f4ee;
    color: #000;
}

.product-hero {
    position: relative;
    height: 16.5rem;
    overflow: hidden;
}

.product-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.52);
}

.product-hero-content {
    position: absolute;
    left: 8%;
    top: 50%;
    transform: translateY(-50%);
    width: min(34rem, 84%);
    color: #fff;
}

.product-hero-content h1 {
    margin: 0 0 0.5rem;
    font-size: 2.25rem;
    font-weight: 500;
}

.product-hero-content p {
    margin: 0 0 0.25rem;
    font-size: 0.8125rem;
    line-height: 1.45;
}

.product-toolbar {
    width: min(94%, 82rem);
    margin: 0 auto;
    border-bottom: 1px solid #ddd4c8;
    padding: 0.875rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.product-toolbar-left {
    display: inline-flex;
    gap: 0.625rem;
    align-items: center;
}

.product-toolbar span,
.product-toolbar-right {
    font-size: 0.6875rem;
    color: #6f6a63;
}

.product-toolbar select {
    border: 1px solid #ddd4c8;
    background: #fff;
    height: 1.75rem;
    min-width: 12rem;
    padding: 0 0.5rem;
    font-size: 0.6875rem;
}

.product-grid {
    width: min(94%, 82rem);
    margin: 2rem auto 3rem;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2.25rem 1rem;
}

.product-card img {
    width: 100%;
    height: 11.5rem;
    object-fit: contain;
    display: block;
    margin-bottom: 0.75rem;
}

.product-card h3 {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
}

.product-card p {
    margin: 0.25rem 0 0.5rem;
    font-size: 0.6875rem;
    color: #6f6a63;
    line-height: 1.4;
}

.product-card label {
    display: block;
    margin-bottom: 0.125rem;
    font-size: 0.625rem;
    color: #6f6a63;
}

.product-card select {
    width: 100%;
    border: 1px solid #ddd4c8;
    background: #fff;
    height: 1.625rem;
    padding: 0 0.375rem;
    font-size: 0.6875rem;
}

.product-card-price {
    margin: 0.625rem 0 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.product-card button {
    width: 100%;
    border: none;
    background: #000;
    color: #fff;
    height: 1.875rem;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.product-card button:hover {
    background: #1a1a1a;
}

@media (max-width: 75rem) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 62rem) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-hero-content h1 {
        font-size: 1.75rem;
    }

    .edp-page .edp-hero {
        height: auto;
        min-height: 360px;
        padding: 64px 0;
        align-items: flex-start;
        aspect-ratio: auto;
    }

    .edp-page .edp-hero-bg {
        object-fit: cover;
        --edp-hero-bg-x: 50%;
        --edp-hero-bg-y: center;
        object-position: var(--edp-hero-bg-x) var(--edp-hero-bg-y);
    }

    .edp-hero-left {
        padding: 0;
    }
}

@media (max-width: 48rem) {
    .edp-page .edp-hero::after {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        background: linear-gradient(
            180deg,
            rgba(18, 14, 12, 0.55) 0%,
            rgba(18, 14, 12, 0.22) 38%,
            transparent 58%
        );
        z-index: 1;
    }

    .edp-page .edp-hero {
        height: 50vh;
        min-height: 0;
        aspect-ratio: auto;
        padding: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    @supports (height: 50dvh) {
        .edp-page .edp-hero {
            height: 50dvh;
        }
    }

    .edp-page .edp-hero-bg {
        --edp-hero-bg-x: 50%;
        --edp-hero-bg-y: 20%;
        inset: auto;
        top: 50%;
        left: 0;
        right: 0;
        width: 100%;
        height: 118%;
        margin: 0;
        min-height: 0;
        transform: translateY(-50%);
        object-fit: cover;
        object-position: var(--edp-hero-bg-x) var(--edp-hero-bg-y);
    }

    .edp-hero-layout {
        flex: 1 1 auto;
        flex-direction: column;
        justify-content: center;
        z-index: 2;
        min-height: 0;
    }

    .edp-hero-left {
        flex: 0 1 auto;
        width: 100%;
        justify-content: center;
        padding: 0;
        min-height: 0;
    }

    .edp-hero-right {
        display: none;
    }

    .edp-hero-description {
        width: min(22rem, 80vw);
    }

    .edp-page .edp-hero-title-block h1 {
        font-size: var(--banner-title-size-tablet);
        line-height: 1.1;
        margin-bottom: clamp(1.35rem, 3.8vw, 2rem);
    }

    .edp-hero-description p {
        max-width: 100%;
        font-size: 0.95rem;
        line-height: 1.6;
        font-weight: var(--fw-light, 300);
    }

    .edp-hero-description p + p {
        padding-top: clamp(1.85rem, 5vw, 2.65rem);
    }

    .filter-bar {
        padding-top: 16px;
    }

    .filter-container {
        justify-content: space-between;
        align-items: flex-start;
        gap: 14px;
        margin-bottom: 10px;
    }

    .sort-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .sort-select {
        min-width: 170px;
    }

    .separator {
        margin-bottom: 0;
    }

    .product-grid-container {
        padding-top: clamp(1.5rem, 4vw, 2.125rem);
        padding-bottom: max(3.5rem, calc(3.5rem + env(safe-area-inset-bottom, 0px)));
    }

    .product-card-tile h3 {
        font-size: 1.05rem;
    }

    .product-subtitle {
        font-size: 0.85rem;
        margin-bottom: 16px;
        padding: 0;
    }

    .select-wrapper select {
        padding: 10px;
        font-size: 0.95rem;
    }

    .product-price {
        font-size: 1.1rem;
        margin-bottom: 14px;
    }

    .add-to-cart-btn {
        padding: 12px;
        font-size: 0.95rem;
    }

    .edp-page .filter-container {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        column-gap: 0.75rem;
        row-gap: 0.45rem;
        align-items: start;
        justify-content: stretch;
    }

    .edp-page .sort-group {
        display: contents;
    }

    .edp-page .sort-group label {
        grid-column: 1;
        grid-row: 1;
    }

    .edp-page .sort-group .sort-select {
        grid-column: 1;
        grid-row: 2;
        width: 100%;
        min-width: 0;
    }

    .edp-page .product-count {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
        text-align: right;
        width: auto;
    }

    .edp-page .filter-trigger-btn {
        grid-column: 2;
        grid-row: 2;
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 48rem) and (min-width: 36.0625rem) {
    .edp-page .edp-hero {
        height: 50vh;
        aspect-ratio: auto;
    }

    @supports (height: 50dvh) {
        .edp-page .edp-hero {
            height: 50dvh;
        }
    }
}

@media (max-width: 36rem) {
    .edp-page .edp-hero {
        height: 50vh;
        min-height: 0;
        aspect-ratio: auto;
        padding: 0;
    }

    @supports (height: 50dvh) {
        .edp-page .edp-hero {
            height: 50dvh;
        }
    }

    .edp-hero-description {
        width: min(20rem, 78vw);
    }

    .edp-page .edp-hero-title-block h1 {
        font-size: var(--banner-title-size-mobile);
        line-height: 1.12;
        margin-bottom: clamp(1.25rem, 3.6vw, 1.85rem);
    }

    .edp-hero-description p {
        font-size: 0.88rem;
        line-height: 1.62;
        font-weight: var(--fw-light, 300);
    }

    .edp-hero-description p + p {
        padding-top: clamp(1.65rem, 5vw, 2.35rem);
    }

    .filter-container {
        flex-direction: column;
    }

    .sort-select,
    .product-count {
        width: 100%;
    }

    .edp-page .product-count {
        width: auto;
    }
}

.edp-page .filter-container {
    gap: 22px;
}

.edp-page .filter-trigger-btn {
    min-width: 176px;
    height: 34px;
    border: 1px solid #8f8a83;
    background: #f2f0eb;
    color: #2a2927;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
}

.edp-page .filter-trigger-btn:hover {
    border-color: #67625d;
}

.edp-page .sort-select {
    background-color: #f2f0eb;
}

.edp-page .product-grid-listing {
    grid-template-columns: repeat(var(--desktop-columns, 4), minmax(0, 1fr));
    gap: clamp(1rem, 2vw, 2rem) clamp(0.4rem, 0.9vw, 0.85rem);
    width: 100%;
    justify-items: stretch;
}

.edp-page .product-link,
.edp-page .product-image,
.edp-page .product-info,
.edp-page .product-form {
    display: block;
    width: 100%;
}

.edp-page .select-wrapper,
.edp-page .select-wrapper select,
.edp-page .product-card .select-wrapper select,
.edp-page .product-card select {
    background-color: #f2f0eb;
}

.edp-page .select-wrapper select option {
    background-color: #f2f0eb;
    color: #000;
}

@media (max-width: 1024px) {
    .edp-page .product-grid-listing {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .edp-page .product-grid-listing {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 36rem) {
    .edp-page .product-grid-listing {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: clamp(1rem, 3.5vw, 1.5rem) clamp(0.5rem, 2vw, 0.75rem);
    }

    .edp-page .filter-trigger-btn {
        width: 100%;
    }
}

.edp-page .product-card-tile,
.edp-page .product-card-tile * {
    font-family: var(--pd-font-body);
}

.edp-page .product-card-tile h3 {
    font-size: var(--product-list-title-size);
    font-weight: var(--fw-bold, 700);
    letter-spacing: 0;
    line-height: 1.3;
    margin-bottom: 4px;
    text-align: center;
}

.edp-page .product-subtitle {
    font-size: var(--product-list-subtitle-size);
    line-height: 1.45;
    color: #3f3d39;
    font-weight: var(--fw-regular, 400);
    margin-bottom: 12px;
    text-align: center;
    padding: 0;
}

.edp-page .size-group label {
    font-size: var(--product-list-label-size);
    font-weight: var(--fw-regular, 400);
    margin-bottom: 4px;
    text-align: left;
}

.edp-page .select-wrapper select {
    font-size: var(--product-list-label-size);
    font-weight: var(--fw-regular, 400);
}

.edp-page .product-price {
    font-size: var(--product-list-price-size);
    font-weight: var(--fw-bold, 700);
    margin: 10px 0;
    text-align: center;
    color: #000;
}

.edp-page .add-to-cart-btn {
    font-size: var(--product-list-btn-size);
    font-weight: var(--fw-regular, 400);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    height: 38px;
    min-height: 38px;
    padding: 0 12px;
}

.edp-page .filter-container {
    gap: 18px;
}

.edp-page .filter-trigger-btn {
    min-width: 158px;
    height: 32px;
    padding: 0 14px;
    justify-content: flex-start;
    font-size: var(--text-sm, 0.875rem);
}

.edp-page .filter-icon {
    margin-left: auto;
    flex-shrink: 0;
    width: 1.125rem;
    height: 1.125rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #4a4640;
}

.edp-page .filter-icon svg {
    display: block;
    width: 100%;
    height: 100%;
    flex-shrink: 0;
}

.edp-page .sort-group label,
.edp-page .product-count,
.edp-page .sort-select {
    font-size: var(--text-sm, 0.875rem);
}

.edp-page .sort-select {
    min-width: 174px;
    height: 32px;
    padding-top: 0;
    padding-bottom: 0;
}

@media (max-width: 48rem) {
    .edp-page .filter-trigger-btn {
        min-width: 0;
    }

    .edp-page .sort-select {
        min-width: 0;
    }
}

@media (min-width: 48.0625rem) and (max-width: 62rem) {
    .edp-page {
        --product-list-title-size: clamp(1.02rem, 0.92rem + 0.35vw, 1.2rem);
        --product-list-subtitle-size: clamp(0.74rem, 0.7rem + 0.12vw, 0.82rem);
        --product-list-label-size: clamp(0.7rem, 0.66rem + 0.1vw, 0.78rem);
        --product-list-price-size: clamp(0.98rem, 0.92rem + 0.18vw, 1.08rem);
        --product-list-btn-size: clamp(0.76rem, 0.72rem + 0.1vw, 0.82rem);
    }

    .edp-page .edp-hero-title-block h1 {
        font-size: var(--banner-title-size-desktop);
        line-height: 1.1;
    }

    .edp-hero-description {
        width: min(22rem, 40vw);
    }

    .edp-hero-description p {
        font-size: clamp(0.92rem, 0.88rem + 0.12vw, 1.02rem);
        font-weight: var(--fw-light, 300);
    }

    .edp-page .filter-container {
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-end;
        align-items: center;
        gap: clamp(0.65rem, 2vw, 1.25rem);
    }

    .edp-page .sort-group {
        display: flex;
        flex-direction: row;
        align-items: center;
        flex: 1 1 auto;
        min-width: 0;
        gap: 0.5rem;
    }

    .edp-page .sort-select {
        min-width: 0;
        flex: 1 1 10rem;
        max-width: min(22rem, 52vw);
    }

    .edp-page .filter-trigger-btn {
        flex-shrink: 0;
        min-width: 0;
    }

    .edp-page .product-count {
        flex-shrink: 0;
        white-space: nowrap;
    }

    .edp-page .product-grid-listing {
        gap: clamp(1.35rem, 2.8vw, 2.5rem) clamp(0.85rem, 2.2vw, 1.5rem);
    }

    .edp-page .product-grid-container {
        padding-top: clamp(1.65rem, 3.2vw, 2.75rem);
        padding-bottom: max(3.25rem, calc(4.5rem + env(safe-area-inset-bottom, 0px)));
    }
}

@media (min-width: 48.0625rem) and (max-width: 62rem) and (orientation: landscape) {
    .edp-hero-left {
        padding: 0;
    }

    .edp-page .edp-hero-title-block h1 {
        font-size: var(--banner-title-size-desktop);
        line-height: 1.1;
        margin-bottom: clamp(0.65rem, 1.5vw, 1.35rem);
    }

    .edp-hero-description p + p {
        padding-top: clamp(0.85rem, 2vw, 1.5rem);
    }
}

@media (max-width: 22rem) {
    .edp-page .edp-hero-description {
        width: 100%;
    }
}

@media (orientation: landscape) and (max-height: 32rem) and (min-width: 48.0625rem) {
    .edp-hero-left {
        padding: 0;
    }

    .edp-hero-title-block h1 {
        font-size: var(--banner-title-size-desktop);
        margin-bottom: clamp(0.4rem, 1.4vh, 0.8rem);
    }

    .edp-page .edp-hero-description {
        width: min(78%, 26rem);
    }

    .edp-hero-description p {
        font-size: clamp(0.76rem, 0.62rem + 0.85vmin, 0.9rem);
        line-height: 1.38;
        font-weight: var(--fw-light, 300);
    }

    .edp-hero-description p + p {
        padding-top: clamp(0.5rem, 1.1vh, 0.8rem);
    }

    .edp-page .product-grid-container {
        padding-top: clamp(1rem, 3vh, 1.75rem);
        padding-bottom: max(2.5rem, calc(2.5rem + env(safe-area-inset-bottom, 0px)));
    }
}

@media (orientation: landscape) and (min-width: 48.0625rem) and (max-height: 30rem) {
    .edp-hero-title-block h1 {
        font-size: var(--banner-title-size-desktop);
    }
}

/* WCAG 2.5.5: minimum 44px touch targets on coarse pointers */
@media (pointer: coarse) {
    .edp-page .filter-trigger-btn,
    .edp-page .sort-select {
        min-height: 44px;
    }

    .edp-page .add-to-cart-btn {
        min-height: 44px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .product-card-tile .product-image img {
        transition: none !important;
    }

    .product-card-tile:hover .product-image img {
        transform: none !important;
    }
}
