/**
 * Gratis kleurstalen — Sample Product Layout (rd_theme parity).
 * Plain CSS so it works even when Tailwind @apply build has unrelated failures.
 */

.page-layout-sample-product-catalog .category-description ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.page-layout-sample-product-catalog .category-description li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0;
}

.page-layout-sample-product-catalog .category-description li:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.4rem;
    display: block;
    width: 0.5rem;
    height: 0.5rem;
    background-color: #ff9900;
}

.sample-catalog {
    position: relative;
    width: 100%;
}

.sample-catalog__cart-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 0;
    min-height: 44px;
    flex-shrink: 0;
    margin-left: auto;
}

.sample-catalog__toolbar .sample-catalog__cart-bar:not(.sample-catalog__cart-bar--fixed) {
    width: auto;
}

.sample-catalog__selected-filters .rd-selected-filters,
.sample-catalog__selected-filters .filter-current {
    margin: 0;
}

.sample-catalog__cart-bar--fixed {
    position: fixed;
    top: 185px;
    right: 0;
    left: 0;
    z-index: 999;
    padding-left: 1rem;
    padding-right: 1rem;
    pointer-events: none;
}

.sample-catalog__cart-bar--fixed .sample-catalog__add-btn {
    pointer-events: auto;
    margin-left: auto;
    margin-right: 1rem;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

.sample-catalog__add-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    height: 2.75rem;
    padding: 0 1.5rem;
    border-radius: 0.375rem;
    background-color: #4783dd !important;
    color: #fff !important;
    font-size: 13.5px;
    font-weight: 400;
    border: 1px solid #4783dd !important;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.sample-catalog__add-btn:hover:not(:disabled) {
    background-color: #3068bc !important;
    border-color: #3068bc !important;
    color: #fff !important;
}

.sample-catalog__add-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.sample-catalog.applyfilter .sample-catalog__cart-bar:not(.sample-catalog__cart-bar--fixed) {
    margin-bottom: 1.5rem;
}

.sample-catalog__grid {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    font-family: Roboto, "Helvetica Neue", Helvetica, sans-serif;
}

.sample-catalog__group-label {
    width: 100%;
    flex-basis: 100%;
    padding-top: 1.25rem;
    margin-top: 1.25rem;
    border-top: 1px solid #dfdfdf;
    font-size: 15px;
    font-weight: 800;
}

.sample-catalog__group-label a {
    color: inherit;
    text-decoration: none;
}

.sample-catalog__group-label a:hover {
    text-decoration: none;
}

.sample-catalog__group-label a:hover .sample-catalog__bekijk {
    text-decoration: underline;
}

.sample-catalog__bekijk {
    margin-left: 10px;
    color: #ff9900;
    font-weight: 800;
}

.sample-catalog__item {
    box-sizing: border-box;
    margin: 7px;
    border: 1px solid #dfdfdf;
    cursor: pointer;
    flex: 0 0 calc(50% - 14px);
    width: calc(50% - 14px);
}

@media (min-width: 768px) {
    .sample-catalog__item {
        flex: 0 0 23.2%;
        width: 23.2%;
        margin: 0.9%;
    }
}

.sample-catalog__item.is-selected,
.sample-catalog__item.alreadyin-cart {
    border-color: #ff9900;
}

.sample-catalog__card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.sample-catalog__name {
    text-align: center;
    padding-top: 0.75rem;
    margin-bottom: 0;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

@media (min-width: 640px) {
    .sample-catalog__name {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

.sample-catalog__name .product-item-name {
    display: block;
    font-size: 0.875rem;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 30px;
}

.sample-catalog__image {
    text-align: center;
    width: 100%;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.sample-catalog__image .product-image-photo {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 80%;
    max-width: 200px;
    height: auto;
    object-fit: contain;
}

.sample-catalog__actions {
    width: 100%;
}

.sample-catalog__actions .actions-primary {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 0.25rem;
    padding: 0.625rem;
}

.sample-catalog__actions .selectren {
    font-size: 0.875rem;
    line-height: 27px;
}

.sample-catalog__checkbox {
    -webkit-appearance: none !important;
    appearance: none !important;
    position: relative;
    display: grid !important;
    place-content: center;
    width: 25px !important;
    height: 25px !important;
    margin: 0 !important;
    border-radius: 9999px !important;
    border: 2px solid #e9e9e9 !important;
    background-color: #fff !important;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0 !important;
}

.sample-catalog__checkbox::before {
    content: "";
    width: 1.1em;
    height: 1em;
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
    transform: scale(0);
    transform-origin: bottom left;
    transition: 120ms transform ease-in-out;
    background-color: #ff9900;
}

.sample-catalog__checkbox:checked::before {
    transform: scale(1);
}

.sample-catalog__checkbox:checked,
.sample-catalog__checkbox:disabled {
    border-color: #ff9900 !important;
}

.sample-catalog__item.alreadyin-cart .sample-catalog__card {
    opacity: 0.7;
    pointer-events: none;
}

.sample-catalog__item.alreadyin-cart .sample-catalog__checkbox {
    pointer-events: none;
}

@media (max-width: 767px) {
    .sample-catalog__cart-bar:not(.sample-catalog__cart-bar--fixed) {
        width: 100%;
    }

    .sample-catalog__add-btn {
        width: 100%;
    }

    .sample-catalog__cart-bar--fixed {
        top: auto;
        bottom: 5rem;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .sample-catalog__cart-bar--fixed .sample-catalog__add-btn {
        width: 100%;
        margin-right: 0;
    }
}

/**
 * Sample Product Layout uses body class page-layout-sample-product-catalog
 * (not page-layout-2columns-left), so Hyvä 2-col sidebar CSS never applied.
 * Mirror 2columns-left grid here so filters stay on the left.
 */
@media (min-width: 768px) {
    .page-layout-sample-product-catalog {
        --sidebar-width: 240px;
        --main-width: minmax(0, 1fr);
    }

    .page-layout-sample-product-catalog .columns {
        display: grid !important;
        grid-template-columns: var(--sidebar-width) var(--main-width) !important;
        grid-template-rows: auto;
        column-gap: 2rem;
        align-items: start;
    }

    .page-layout-sample-product-catalog .columns > .sidebar-main {
        grid-column: 1 !important;
        grid-row: 1 !important;
        order: 0 !important;
        width: auto !important;
        max-width: none !important;
    }

    .page-layout-sample-product-catalog .columns > .column.main {
        grid-column: 2 !important;
        grid-row: 1 !important;
        order: 0 !important;
        width: auto !important;
        max-width: none !important;
    }

    .page-layout-sample-product-catalog .columns > .sidebar-additional {
        display: none;
    }
}

@media (min-width: 1024px) {
    .page-layout-sample-product-catalog {
        --sidebar-width: 280px;
    }
}
