:root {
    --collection-ink: #0c3d3d;
    --collection-muted: #708181;
    --collection-line: #d9e5e3;
    --collection-soft: #f5f9f8;
    --collection-coral: #ff5b53;
    --collection-coral-dark: #e94a43;
    --collection-radius: 15px;
}

.collection-page,
.collection-page * {
    box-sizing: border-box;
}

.collection-page {
    color: var(--collection-ink);
    background: #fff;
}

.collection-container {
    width: min(1320px, calc(100% - 40px));
    margin-inline: auto;
}

.collection-breadcrumb {
    display: flex;
    gap: 9px;
    align-items: center;
    min-height: 48px;
    color: #7a8b8a;
    font-size: 13px;
}

.collection-breadcrumb a {
    color: inherit;
    text-decoration: none;
}

.collection-breadcrumb a:hover {
    color: var(--collection-ink);
}

.collection-hero {
    position: relative;
    min-height: clamp(320px, 42vw, 560px);
    overflow: hidden;
    background: var(--collection-accent, #dce9e1);
}

.collection-hero__media,
.collection-hero__media img,
.collection-hero__shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.collection-hero__media img {
    object-fit: cover;
}

.collection-hero__shade {
    background: linear-gradient(90deg, rgba(6, 42, 42, .72) 0%, rgba(6, 42, 42, .38) 42%, rgba(6, 42, 42, 0) 76%);
}

.collection-hero__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    min-height: clamp(320px, 42vw, 560px);
    color: #fff;
}

.collection-kicker {
    display: block;
    margin-bottom: 8px;
    color: #79908e;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.collection-hero .collection-kicker {
    color: rgba(255, 255, 255, .78);
}

.collection-hero h1 {
    max-width: 720px;
    margin: 0;
    color: #fff;
    font-size: clamp(36px, 5vw, 72px);
    line-height: 1.03;
}

.collection-hero p {
    max-width: 600px;
    margin: 18px 0 26px;
    color: rgba(255, 255, 255, .9);
    font-size: clamp(15px, 1.4vw, 19px);
    line-height: 1.65;
}

.collection-primary-button {
    display: inline-flex;
    min-height: 46px;
    padding: 0 22px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 10px;
    color: #fff;
    background: var(--collection-coral);
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform .18s ease, background .18s ease;
}

.collection-primary-button:hover {
    color: #fff;
    background: var(--collection-coral-dark);
    transform: translateY(-1px);
}

.collection-primary-button:disabled {
    cursor: not-allowed;
    opacity: .55;
    transform: none;
}

.collection-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: -35px;
    position: relative;
    z-index: 2;
    overflow: hidden;
    border: 1px solid var(--collection-line);
    border-radius: var(--collection-radius);
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 15px 35px rgba(18, 59, 59, .08);
}

.collection-summary > div {
    min-height: 96px;
    padding: 20px 26px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid var(--collection-line);
}

.collection-summary > div:last-child {
    border-right: 0;
}

.collection-summary strong {
    font-size: 20px;
}

.collection-summary span {
    margin-top: 4px;
    color: var(--collection-muted);
    font-size: 13px;
}

.collection-products {
    padding-block: 58px 74px;
}

.collection-section-heading {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-end;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--collection-line);
}

.collection-section-heading h2 {
    margin: 0;
    color: var(--collection-ink);
    font-size: clamp(26px, 3vw, 40px);
}

.collection-section-heading p {
    margin: 7px 0 0;
    color: var(--collection-muted);
    font-size: 13px;
}

.collection-filter-toggle {
    display: none;
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid var(--collection-line);
    border-radius: 9px;
    color: var(--collection-ink);
    background: #fff;
    font: inherit;
    cursor: pointer;
}

.collection-toolbar {
    display: grid;
    grid-template-columns: minmax(250px, 1fr) 220px 220px auto;
    gap: 14px;
    align-items: end;
    padding: 20px 0 22px;
}

.collection-toolbar label > span:not(.sr-only) {
    display: block;
    margin-bottom: 6px;
    color: #597170;
    font-size: 12px;
    font-weight: 700;
}

.collection-toolbar input,
.collection-toolbar select {
    width: 100%;
    height: 44px;
    padding: 0 13px;
    border: 1px solid var(--collection-line);
    border-radius: 9px;
    outline: none;
    color: var(--collection-ink);
    background: #fff;
    font: inherit;
}

.collection-toolbar input:focus,
.collection-toolbar select:focus {
    border-color: #6b9895;
    box-shadow: 0 0 0 3px rgba(53, 127, 123, .1);
}

.collection-search {
    position: relative;
}

.collection-search svg {
    position: absolute;
    left: 13px;
    bottom: 12px;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
}

.collection-search input {
    padding-left: 42px;
}

.collection-clear-filter {
    height: 44px;
    padding: 0 16px;
    border: 0;
    color: #597170;
    background: transparent;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.collection-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px 20px;
}

.collection-product-card {
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid #d4e2e0;
    border-radius: var(--collection-radius);
    background: #fff;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.collection-product-card:hover {
    border-color: #b9cfcc;
    box-shadow: 0 14px 34px rgba(20, 61, 60, .1);
    transform: translateY(-3px);
}

.collection-product-card[hidden] {
    display: none !important;
}

.collection-product-card__image {
    position: relative;
    overflow: hidden;
    /*aspect-ratio: 1.52 / 1;*/
    background: var(--collection-soft);
}

.collection-product-card__image a,
.collection-product-card__image img {
    display: block;
    width: 100%;
    height: 100%;
}

.collection-product-card__image img {
    object-fit: cover;
    transition: transform .4s ease;
}

.collection-product-card:hover .collection-product-card__image img {
    transform: scale(1.035);
}

.collection-sale-badge,
.collection-discount-badge {
    position: absolute;
    top: 13px;
    left: 13px;
    z-index: 1;
    min-height: 25px;
    padding: 5px 10px;
    border-radius: 7px;
    color: #fff;
    background: var(--collection-coral);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
}

.collection-discount-badge {
    left: auto;
    right: 60px;
    background: #0d7b74;
}

.collection-favorite {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(18, 61, 61, .12);
    border-radius: 50%;
    color: var(--collection-ink);
    background: rgba(255, 255, 255, .94);
    cursor: pointer;
}

.collection-favorite svg {
    width: 21px;
    fill: transparent;
    stroke: currentColor;
    stroke-width: 1.8;
}

.collection-favorite[aria-pressed="true"] {
    color: var(--collection-coral);
}

.collection-favorite[aria-pressed="true"] svg {
    fill: currentColor;
}

.collection-product-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 18px 16px 17px;
}

.collection-product-label {
    min-height: 17px;
    color: #6e8381;
    font-size: 12px;
}

.collection-product-card h3 {
    margin: 7px 0 0;
    min-height: 52px;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    color: var(--collection-ink);
    font-size: 16px;
    line-height: 1.45;
}

.collection-product-card h3 a {
    color: inherit;
    text-decoration: none;
}

.collection-product-card h3 a:hover {
    color: #167a74;
}

.collection-product-views {
    margin-top: 8px;
    color: #91a09f;
    font-size: 12px;
}

.collection-product-card__footer {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 10px;
}

.collection-product-price {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.collection-product-price strong {
    color: var(--collection-coral);
    font-size: 17px;
    line-height: 1.3;
}

.collection-product-price del {
    color: #82908f;
    font-size: 13px;
}

.collection-cart-button {
    flex: 0 0 auto;
    display: grid;
    width: 43px;
    height: 43px;
    place-items: center;
    border: 0;
    border-radius: 10px;
    color: #fff;
    background: var(--collection-coral);
    cursor: pointer;
    transition: transform .18s ease, background .18s ease;
}

.collection-cart-button:hover {
    background: var(--collection-coral-dark);
    transform: translateY(-2px);
}

.collection-cart-button svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.collection-empty {
    margin-top: 18px;
    padding: 50px 20px;
    border: 1px dashed #c6d8d6;
    border-radius: var(--collection-radius);
    color: #708181;
    background: var(--collection-soft);
    text-align: center;
}

.collection-empty span {
    display: block;
    margin-bottom: 12px;
}

.collection-empty button {
    border: 0;
    color: #0d726d;
    background: transparent;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.collection-pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    padding-top: 30px;
}

.collection-pagination button {
    min-width: 40px;
    height: 40px;
    padding: 0 11px;
    border: 1px solid var(--collection-line);
    border-radius: 9px;
    color: var(--collection-ink);
    background: #fff;
    font: inherit;
    cursor: pointer;
}

.collection-pagination button[aria-current="page"] {
    border-color: var(--collection-ink);
    color: #fff;
    background: var(--collection-ink);
}

.collection-story {
    margin-bottom: 72px;
    padding: clamp(28px, 5vw, 64px);
    border-radius: 20px;
    background: #f0f6f4;
}

.collection-story__content {
    color: #425b59;
    font-size: 16px;
    line-height: 1.8;
}

.collection-story__content img {
    max-width: 100%;
    height: auto;
}

.collection-not-found {
    min-height: 520px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.collection-not-found > span {
    color: var(--collection-coral);
    font-size: 64px;
    font-weight: 800;
}

.collection-not-found h1 {
    margin: 5px 0 10px;
}

.collection-not-found p {
    max-width: 560px;
    margin: 0 0 24px;
    color: var(--collection-muted);
}

.collection-modal[hidden] {
    display: none;
}

.collection-modal {
    position: fixed;
    inset: 0;
    z-index: 10020;
    display: grid;
    place-items: center;
    padding: 18px;
}

.collection-modal__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: rgba(3, 24, 24, .62);
    cursor: pointer;
}

.collection-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(720px, 100%);
    max-height: min(760px, calc(100vh - 36px));
    overflow: auto;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(0, 0, 0, .28);
}

.collection-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 38px;
    height: 38px;
    border: 1px solid var(--collection-line);
    border-radius: 50%;
    color: var(--collection-ink);
    background: #fff;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
}

.collection-modal__product {
    display: grid;
    grid-template-columns: 126px minmax(0, 1fr);
    gap: 18px;
    padding: 24px 56px 20px 24px;
    border-bottom: 1px solid var(--collection-line);
}

.collection-modal__product img {
    width: 126px;
    height: 96px;
    object-fit: cover;
    border-radius: 11px;
    background: var(--collection-soft);
}

.collection-modal__product h2 {
    margin: 0 0 9px;
    color: var(--collection-ink);
    font-size: 20px;
    line-height: 1.35;
}

.collection-modal__price {
    color: var(--collection-coral);
    font-size: 20px;
}

.collection-modal__loading,
.collection-modal__error {
    padding: 30px 24px;
    color: var(--collection-muted);
    text-align: center;
}

.collection-modal__error {
    color: #b7332e;
    background: #fff5f4;
}

.collection-modal__body {
    padding: 20px 24px 6px;
}

.collection-modal__body fieldset {
    min-width: 0;
    margin: 0 0 18px;
    padding: 0;
    border: 0;
}

.collection-modal__body legend {
    margin-bottom: 9px;
    color: var(--collection-ink);
    font-size: 14px;
    font-weight: 700;
}

.collection-option-list {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.collection-option-list button {
    min-height: 39px;
    padding: 8px 14px;
    border: 1px solid #cbdad8;
    border-radius: 8px;
    color: var(--collection-ink);
    background: #fff;
    font: inherit;
    cursor: pointer;
}

.collection-option-list button:hover {
    border-color: #5d918e;
}

.collection-option-list button.is-selected {
    border-color: var(--collection-ink);
    color: #fff;
    background: var(--collection-ink);
}

.collection-option-list button.is-unavailable:not(.is-selected) {
    color: #9ba6a5;
    background: #f3f5f5;
    text-decoration: line-through;
    cursor: not-allowed;
}

.collection-variant-status {
    min-height: 22px;
    margin: 3px 0 12px;
    color: var(--collection-muted);
    font-size: 13px;
}

.collection-variant-status.is-error {
    color: #c03933;
}

.collection-variant-status.is-success {
    color: #08766f;
}

.collection-modal__footer {
    display: grid;
    grid-template-columns: auto auto minmax(190px, 1fr);
    gap: 12px;
    align-items: center;
    padding: 18px 24px 24px;
    border-top: 1px solid var(--collection-line);
}

.collection-modal__footer > label {
    color: #526866;
    font-size: 13px;
    font-weight: 700;
}

.collection-quantity {
    display: grid;
    grid-template-columns: 36px 48px 36px;
    height: 42px;
    overflow: hidden;
    border: 1px solid var(--collection-line);
    border-radius: 9px;
}

.collection-quantity button,
.collection-quantity input {
    min-width: 0;
    border: 0;
    color: var(--collection-ink);
    background: #fff;
    font: inherit;
    text-align: center;
}

.collection-quantity button {
    cursor: pointer;
}

.collection-quantity input {
    width: 48px;
    border-inline: 1px solid var(--collection-line);
    appearance: textfield;
}

.collection-quantity input::-webkit-inner-spin-button,
.collection-quantity input::-webkit-outer-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.collection-toast {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 10040;
    max-width: min(390px, calc(100vw - 44px));
    padding: 13px 17px;
    border-radius: 10px;
    color: #fff;
    background: #103f3e;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .22);
    opacity: 0;
    pointer-events: none;
    transform: translateY(14px);
    transition: opacity .2s ease, transform .2s ease;
}

.collection-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.collection-toast.is-error {
    background: #b43d38;
}

.collection-no-scroll {
    overflow: hidden;
}

.sr-only {
    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;
}

@media (max-width: 980px) {
    .collection-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .collection-toolbar {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 767px) {
    .collection-container {
        width: min(100% - 24px, 1320px);
    }

    .collection-breadcrumb {
        min-height: 42px;
        overflow: hidden;
        white-space: nowrap;
    }

    .collection-hero,
    .collection-hero__content {
        min-height: 390px;
    }

    .collection-hero__shade {
        background: linear-gradient(0deg, rgba(4, 35, 35, .76), rgba(4, 35, 35, .12));
    }

    .collection-hero__content {
        justify-content: flex-end;
        padding-bottom: 34px;
    }

    .collection-hero h1 {
        font-size: 39px;
    }

    .collection-summary {
        grid-template-columns: 1fr;
        margin-top: 12px;
    }

    .collection-summary > div {
        min-height: 76px;
        padding: 14px 18px;
        border-right: 0;
        border-bottom: 1px solid var(--collection-line);
    }

    .collection-summary > div:last-child {
        border-bottom: 0;
    }

    .collection-products {
        padding-block: 38px 55px;
    }

    .collection-filter-toggle {
        display: inline-flex;
        align-items: center;
    }

    .collection-toolbar {
        display: none;
        grid-template-columns: 1fr;
        padding: 15px;
        margin: 14px 0 18px;
        border: 1px solid var(--collection-line);
        border-radius: 12px;
        background: var(--collection-soft);
    }

    .collection-toolbar.is-open {
        display: grid;
    }

    .collection-grid {
        gap: 12px 10px;
    }

    /*.collection-product-card__image {
        aspect-ratio: 1.05 / 1;
    }*/

    .collection-product-card__body {
        padding: 12px 10px;
    }

    .collection-product-card h3 {
        min-height: 58px;
        font-size: 14px;
        line-height: 1.38;
    }

    .collection-product-price strong {
        font-size: 14px;
    }

    .collection-product-price del {
        font-size: 11px;
    }

    .collection-product-views,
    .collection-product-label {
        font-size: 11px;
    }

    .collection-cart-button {
        width: 39px;
        height: 39px;
    }

    .collection-favorite {
        top: 8px;
        right: 8px;
        width: 36px;
        height: 36px;
    }

    .collection-sale-badge,
    .collection-discount-badge {
        top: 8px;
        left: 8px;
        padding: 4px 7px;
        font-size: 10px;
    }

    .collection-discount-badge {
        left: auto;
        right: 49px;
    }

    .collection-modal {
        align-items: end;
        padding: 0;
    }

    .collection-modal__dialog {
        width: 100%;
        max-height: 88vh;
        border-radius: 18px 18px 0 0;
    }

    .collection-modal__product {
        grid-template-columns: 92px minmax(0, 1fr);
        gap: 13px;
        padding: 18px 50px 16px 16px;
    }

    .collection-modal__product img {
        width: 92px;
        height: 78px;
    }

    .collection-modal__product h2 {
        font-size: 16px;
    }

    .collection-modal__price {
        font-size: 17px;
    }

    .collection-modal__body {
        padding-inline: 16px;
    }

    .collection-modal__footer {
        grid-template-columns: auto 1fr;
        padding: 14px 16px 18px;
    }

    .collection-modal__footer .collection-primary-button {
        grid-column: 1 / -1;
        width: 100%;
    }

    .collection-quantity {
        justify-self: end;
    }
}

@media (max-width: 390px) {
    .collection-grid {
        grid-template-columns: 1fr;
    }

    .collection-product-card__image {
        aspect-ratio: 1.45 / 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .collection-product-card,
    .collection-product-card__image img,
    .collection-primary-button,
    .collection-cart-button,
    .collection-toast {
        transition: none;
    }
}
