.collection-toolbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    margin: -34px 0 26px;
}

.collection-navigation {
    display: flex;
    gap: 7px;
}

.collection-navigation button,
.collection-view-all {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid color-mix(in srgb, var(--secondary-color) 16%, transparent);
    border-radius: 10px;
    background: color-mix(in srgb, var(--background-color) 92%, transparent);
    color: var(--secondary-color);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
}

.collection-navigation button {
    min-width: 42px;
    padding: 0 11px;
    cursor: pointer;
}

.collection-navigation button:disabled {
    cursor: default;
    opacity: .35;
}

.collection-view-all {
    gap: 8px;
    padding: 0 16px;
}

.collection-navigation button:hover:not(:disabled),
.collection-view-all:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.collection-navigation button:focus-visible,
.collection-view-all:focus-visible,
.collection-row:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--primary-color) 48%, transparent);
    outline-offset: 3px;
}

.customer-site .collection-section .collection-row {
    display: grid;
    grid-auto-flow: column;
    grid-template-columns: none !important;
    columns: auto !important;
    gap: 20px !important;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding-bottom: 16px;
    scroll-behavior: smooth;
    scroll-snap-type: inline mandatory;
    scrollbar-width: thin;
    scrollbar-color: color-mix(in srgb, var(--primary-color) 42%, transparent) transparent;
}

.customer-site .collection-section .collection-row > * {
    min-width: 0;
    height: auto;
    scroll-snap-align: start;
}

.customer-site .collection-section .collection-row img {
    height: auto !important;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.customer-site .collection-section .collection-row h3,
.customer-site .collection-section .collection-row p,
.customer-site .collection-section .collection-row strong {
    overflow-wrap: anywhere;
}

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

.products-section.section-layout-product-cards .product-card {
    box-shadow: 0 18px 44px color-mix(in srgb, var(--secondary-color) 12%, transparent);
}

.products-section.section-layout-product-featured .product-card:first-child {
    grid-column: span 2;
}

.products-section.section-layout-product-featured .product-card:first-child .product-card-image {
    aspect-ratio: 2.05 / 1;
}

.products-section.section-layout-product-minimal .product-card {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
}

.products-section.section-layout-product-minimal .product-card-content {
    padding-inline: 0;
}

.products-section.section-layout-product-editorial .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.products-section.section-layout-product-editorial .product-card {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.products-section.section-layout-product-list .product-grid {
    grid-template-columns: 1fr;
}

.products-section.section-layout-product-list .product-card {
    display: grid;
    grid-template-columns: minmax(180px, 28%) minmax(0, 1fr);
}

.products-section.section-layout-product-list .product-card-image {
    aspect-ratio: 4 / 3;
}

.product-card {
    display: flex;
    height: 100%;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--secondary-color) 14%, transparent);
    border-radius: 16px;
    background: var(--background-color);
}
.card-style-shadow .product-card { border-color: transparent; box-shadow: 0 16px 38px color-mix(in srgb, var(--secondary-color) 10%, transparent); }
.card-style-border .product-card { box-shadow: none; }
.card-style-flat .product-card { border-color: transparent; background: color-mix(in srgb, var(--primary-color) 5%, var(--background-color)); box-shadow: none; }

.product-card-image {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: color-mix(in srgb, var(--primary-color) 7%, var(--background-color));
}

.customer-site .products-section .product-card-image img,
.customer-site .products-section .product-card-image .image-placeholder,
.product-public-page .product-card-image img,
.product-public-page .product-card-image .image-placeholder {
    display: block;
    width: 100%;
    height: 100% !important;
    max-height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: center;
}

.product-card-content {
    display: flex;
    height: auto;
    flex-direction: column;
    gap: 10px;
    padding: 18px;
}

.product-card-content > span,
.product-detail-copy > span {
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 700;
}

.product-card h2,
.product-card h3 {
    margin: 0;
    color: var(--secondary-color);
    font-size: 20px;
}

.product-card h2 a,
.product-card h3 a {
    display: -webkit-box;
    overflow: hidden;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.product-card p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: color-mix(in srgb, var(--secondary-color) 70%, transparent);
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 9px;
}

.product-price del { color: color-mix(in srgb, var(--secondary-color) 50%, transparent); }
.product-price strong { color: var(--primary-color); font-size: 18px; }
.product-status {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    border-radius: 999px;
    padding: 5px 9px;
    font-weight: 700;
    line-height: 1;
}
.product-status.available { color: #166534; background: #dcfce7; }
.product-status.out-of-stock { color: #9a3412; background: #ffedd5; }
.product-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; padding-top: 0; }
.product-detail-link, .product-card-inquiry { display: inline-flex; min-height: 36px; align-items: center; justify-content: center; border-radius: 8px; font-size: 12px; font-weight: 700; }
.product-detail-link { padding: 7px 11px; background: var(--primary-color); color: #fff; }
.product-card-inquiry { padding: 6px 10px; border: 1px solid color-mix(in srgb,#06c755 45%,transparent); color: color-mix(in srgb,#06c755 72%,var(--secondary-color)); }
.button-style-pill .product-detail-link,
.button-style-pill .product-card-inquiry,
.button-style-pill .product-contact-actions a,
.button-style-pill .product-filters button { border-radius: 999px; }
.button-style-square .product-detail-link,
.button-style-square .product-card-inquiry,
.button-style-square .product-contact-actions a,
.button-style-square .product-filters button { border-radius: 0; }

.product-filters {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr auto;
    align-items: end;
    gap: 12px;
    margin-bottom: 30px;
    padding: 18px;
    border-radius: 14px;
    background: color-mix(in srgb, var(--primary-color) 6%, var(--background-color));
}

.product-filters label { display: grid; gap: 6px; color: var(--secondary-color); font-size: 12px; font-weight: 700; }
.product-filters input, .product-filters select, .product-filters button { min-height: 44px; padding: 9px 12px; border: 1px solid color-mix(in srgb, var(--secondary-color) 16%, transparent); border-radius: 9px; background: var(--background-color); color: var(--secondary-color); font: inherit; }
.product-filters button { border-color: var(--primary-color); background: var(--primary-color); color: #fff; font-weight: 700; }

.customer-site .products-section {
    min-height: 0;
    padding-block: 56px;
    padding-top: 32px;
}
.customer-site .customer-section + .products-section { margin-top: -78px; }
@supports selector(.customer-section:has(+ .products-section)) {
    .customer-site .customer-section:has(+ .products-section) { padding-bottom: 20px; }
    .customer-site .customer-section + .products-section { margin-top: 0; }
}
.products-section .section-heading { margin-bottom: 36px; }
.products-section .collection-toolbar { margin-top: -24px; }
.site-subpage > main { background: var(--background-color); }
.site-subpage .site-nav a.is-active { color: var(--primary-color); }
.product-detail { width: min(1180px, 100%); margin: auto; padding: 40px 24px 88px; }
.product-breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; color: color-mix(in srgb, var(--secondary-color) 65%, transparent); font-size: 13px; }
.product-detail-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, 1fr); align-items: start; gap: clamp(32px, 5vw, 58px); }
.product-gallery { min-width: 0; }
.product-main-image {
    display: grid;
    width: 100%;
    max-height: min(68vh, 680px);
    aspect-ratio: 4 / 3;
    place-items: center;
    padding: 0;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--secondary-color) 13%, transparent);
    border-radius: 18px;
    background: color-mix(in srgb, var(--secondary-color) 4%, var(--background-color));
    cursor: zoom-in;
}
.product-main-image img,
.product-main-image .image-placeholder {
    display: block;
    width: 100%;
    height: 100% !important;
    max-height: 100%;
    aspect-ratio: auto;
    object-fit: contain;
    object-position: center;
}
.product-gallery.product-image-fit-cover .product-main-image img { object-fit: cover; }
.product-main-placeholder { cursor: default; }
.product-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    padding: 2px 2px 8px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-width: thin;
}
.product-thumbnails button {
    width: 88px;
    min-width: 88px;
    aspect-ratio: 1;
    scroll-snap-align: start;
    padding: 0;
    overflow: hidden;
    border: 2px solid color-mix(in srgb, var(--secondary-color) 13%, transparent);
    border-radius: 10px;
    background: color-mix(in srgb, var(--secondary-color) 4%, var(--background-color));
    cursor: zoom-in;
}
.product-thumbnails button:hover,
.product-thumbnails button:focus-visible,
.product-thumbnails button.is-active { border-color: var(--primary-color); }
.product-thumbnails button:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary-color) 30%, transparent); outline-offset: 2px; }
.product-thumbnails img { display: block; width: 100%; height: 100% !important; aspect-ratio: auto; object-fit: contain; object-position: center; }
.product-detail-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.product-detail-meta > span:not(.product-status) { color: var(--primary-color); font-size: 12px; font-weight: 700; }
.product-detail-copy h1 { margin: 10px 0 14px; color: var(--secondary-color); font-size: clamp(32px, 4vw, 50px); line-height: 1.12; overflow-wrap: anywhere; }
.product-sku { color: color-mix(in srgb, var(--secondary-color) 58%, transparent); }
.product-price.large strong { font-size: 28px; }
.product-lead { color: var(--secondary-color); font-size: 18px; line-height: 1.7; }
.product-description { max-width: 68ch; padding-top: 18px; border-top: 1px solid color-mix(in srgb, var(--secondary-color) 13%, transparent); color: color-mix(in srgb, var(--secondary-color) 78%, transparent); line-height: 1.8; overflow-wrap: anywhere; }
.product-contact-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 28px; }
.product-contact-actions a { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 7px; padding: 11px 16px; border-radius: 9px; background: var(--primary-color); color: #fff; font-weight: 700; }
.product-contact-actions .product-line-inquiry { background: #06c755; color: #fff; }
.product-contact-actions .product-all-link { border: 1px solid color-mix(in srgb, var(--secondary-color) 16%, transparent); background: transparent; color: var(--secondary-color); }
.related-products { margin-top: 72px; }
.related-products h2 { color: var(--secondary-color); font-size: 34px; }

.customer-site .collection-section .collection-row[data-items-desktop="3"] { grid-auto-columns: calc(33.333333% - 13.333333px); }
.customer-site .collection-section .collection-row[data-items-desktop="4"] { grid-auto-columns: calc(25% - 15px); }
.customer-site .collection-section .collection-row[data-items-desktop="5"] { grid-auto-columns: calc(20% - 16px); }
.customer-site .collection-section .collection-row[data-items-desktop="6"] { grid-auto-columns: calc(16.666667% - 16.666667px); }

@media (max-width: 1024px) {
    .customer-site .collection-section .collection-row[data-items-tablet="2"] { grid-auto-columns: calc(50% - 10px); }
    .customer-site .collection-section .collection-row[data-items-tablet="3"] { grid-auto-columns: calc(33.333333% - 13.333333px); }
}

@media (max-width: 600px) {
    .collection-toolbar {
        justify-content: space-between;
        flex-wrap: wrap;
        margin: -18px 0 22px;
    }

    .collection-view-all {
        order: 2;
        width: 100%;
    }

    .customer-site .collection-section .collection-row[data-items-mobile="1"] { grid-auto-columns: 88%; }
    .customer-site .collection-section .collection-row[data-items-mobile="2"] { grid-auto-columns: calc(50% - 10px); }
}

@media (prefers-reduced-motion: reduce) {
    .customer-site .collection-section .collection-row { scroll-behavior: auto; }
}

.collection-archive-page {
    min-height: 100vh;
    background: var(--background-color);
}

.collection-archive-nav {
    position: sticky;
    top: 0;
    max-width: none;
    padding-right: max(24px, calc((100% - 1132px) / 2));
    padding-left: max(24px, calc((100% - 1132px) / 2));
    border-bottom: 1px solid color-mix(in srgb, var(--secondary-color) 12%, transparent);
    background: color-mix(in srgb, var(--background-color) 94%, transparent);
    backdrop-filter: blur(14px);
}

.collection-back-link {
    color: var(--secondary-color);
    font-size: 14px;
    font-weight: 700;
}

.collection-archive {
    width: min(1180px, 100%);
    min-height: 70vh;
    margin: 0 auto;
    padding: 48px 24px 88px;
}

.collection-archive-heading {
    max-width: 760px;
    margin-bottom: 30px;
}

.collection-archive-heading > a,
.collection-archive-heading > span {
    color: color-mix(in srgb, var(--secondary-color) 68%, transparent);
    font-size: 13px;
}

.collection-archive-heading > span {
    margin-left: 8px;
}

.collection-archive-heading h1 {
    margin: 16px 0 8px;
    color: var(--secondary-color);
    font-size: clamp(38px, 6vw, 68px);
    line-height: 1.08;
}

.collection-archive-heading p {
    margin: 0;
    color: color-mix(in srgb, var(--secondary-color) 76%, transparent);
}

.customer-site .collection-archive-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    columns: auto !important;
    gap: 24px;
}

.customer-site .collection-archive-grid > * {
    width: auto !important;
    margin: 0 !important;
}

.collection-archive-grid h2 {
    overflow-wrap: anywhere;
    font-size: 21px;
}

.collection-empty {
    padding: 50px 24px;
    border: 1px dashed color-mix(in srgb, var(--secondary-color) 22%, transparent);
    border-radius: 16px;
    color: var(--secondary-color);
    text-align: center;
}

.collection-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    margin-top: 48px;
}

.collection-pagination a {
    min-height: 42px;
    padding: 10px 16px;
    border: 1px solid color-mix(in srgb, var(--secondary-color) 16%, transparent);
    border-radius: 10px;
    color: var(--secondary-color);
    font-weight: 700;
}

.collection-pagination .is-current {
    display: inline-flex;
    min-width: 42px;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--primary-color);
    color: #fff;
    font-weight: 700;
}

.collection-pagination span {
    color: color-mix(in srgb, var(--secondary-color) 68%, transparent);
    font-size: 14px;
}

.collection-archive-footer {
    display: flex;
    justify-content: center;
    gap: 10px 22px;
    flex-wrap: wrap;
    padding: 30px 24px;
    border-top: 1px solid color-mix(in srgb, var(--secondary-color) 12%, transparent);
    text-align: center;
}

.collection-archive-footer a {
    color: var(--secondary-color);
    font-weight: 700;
}

.collection-archive-footer .footer-powered-by {
    color: color-mix(in srgb, var(--secondary-color) 66%, transparent);
    font-size: 12px;
}

@media (max-width: 900px) {
    .customer-site .collection-archive-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .products-section.section-layout-product-editorial .product-grid { grid-template-columns: 1fr; }
    .product-detail-grid { grid-template-columns: 1fr; gap: 32px; }
    .product-filters { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
    .customer-site .products-section { padding-block: 40px; padding-top: 28px; }
    .customer-site .customer-section + .products-section { margin-top: -38px; }
    @supports selector(.customer-section:has(+ .products-section)) {
        .customer-site .customer-section:has(+ .products-section) { padding-bottom: 16px; }
        .customer-site .customer-section + .products-section { margin-top: 0; }
    }
    .products-section .section-heading { margin-bottom: 28px; }
    .products-section .collection-toolbar { margin-top: -14px; }
    .collection-archive {
        padding: 34px 18px 64px;
    }

    .collection-back-link {
        font-size: 12px;
    }

    .customer-site .collection-archive-grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .collection-pagination {
        flex-wrap: wrap;
        gap: 10px;
    }
    .product-grid, .product-filters { grid-template-columns: 1fr; }
    .products-section.section-layout-product-featured .product-card:first-child { grid-column: span 1; }
    .products-section.section-layout-product-editorial .product-card,
    .products-section.section-layout-product-list .product-card { grid-template-columns: 1fr; }
    .product-detail { padding: 28px 18px 64px; }
    .product-main-image { max-height: min(62vh, 520px); }
    .product-thumbnails button { width: 76px; min-width: 76px; }
    .product-contact-actions { display: grid; grid-template-columns: 1fr; }
    .product-contact-actions a { width: 100%; }
}
