﻿.cn-products {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 18px;
}

.cn-filterCard {
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 14px;
    background: #fff;
    padding: 14px;
    position: sticky;
    top: 14px;
}

.cn-filterHead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

    .cn-filterHead h2 {
        margin: 0;
        font-size: 18px;
        font-weight: 900;
        color: #951f1f;
    }

.cn-filterClear {
    border: 1px solid rgba(149,31,31,.25);
    background: rgba(149,31,31,.06);
    color: #951f1f;
    font-weight: 900;
    border-radius: 10px;
    height: 36px;
    padding: 0 12px;
    cursor: pointer;
}

.cn-filterGroup {
    padding: 10px 0;
    border-top: 1px solid rgba(0,0,0,.06);
}

    .cn-filterGroup:first-child {
        border-top: 0;
        padding-top: 0;
    }

.cn-filterTitle {
    font-weight: 900;
    color: #951f1f;
    margin-bottom: 8px;
}

.cn-filterList {
    display: grid;
    gap: 8px;
}

.cn-check {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.cn-check__box {
    width: 16px;
    height: 16px;
}

.cn-check__label {
    font-weight: 800;
    color: rgba(0,0,0,.75);
}

.cn-products__top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.cn-products__title {
    margin: 0;
    font-size: 26px;
    font-weight: 900;
    color: #951f1f;
}

.cn-products__count {
    font-weight: 800;
    opacity: .75;
}

.cn-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.cn-card {
    text-decoration: none;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    display: block;
}

.cn-card__img {
    background: #fff;
    padding: 10px;
}

    .cn-card__img img {
        width: 100%;
        height: 210px; /* fixed area so cards stay aligned */
        object-fit: contain; /* ✅ show whole image clearly (no crop) */
        display: block;
    }


.cn-card__body {
    padding: 12px;
}

.cn-card__cat {
    font-size: 12px;
    font-weight: 900;
    color: rgba(149,31,31,.9);
    margin-bottom: 6px;
}

.cn-card__name {
    font-weight: 900;
    color: rgba(0,0,0,.82);
    margin-bottom: 10px;
}

.cn-card__price {
    display: flex;
    gap: 10px;
    align-items: baseline;
}

.cn-price {
    font-weight: 900;
    color: #951f1f;
}

.cn-old {
    font-weight: 800;
    opacity: .55;
    text-decoration: line-through;
}

.cn-empty {
    padding: 18px;
    border: 1px dashed rgba(0,0,0,.18);
    border-radius: 14px;
    background: rgba(0,0,0,.02);
    font-weight: 800;
    grid-column: 1 / -1;
}

@media (max-width: 1100px) {
    .cn-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .cn-products {
        grid-template-columns: 1fr;
    }

    .cn-filterCard {
        position: static;
    }

    .cn-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 520px) {
    .cn-grid {
        grid-template-columns: 1fr;
    }
}
.cn-check {
    cursor: pointer; /* ✅ */
}

.cn-check__box {
    cursor: pointer; /* ✅ */
}

.cn-check__label {
    cursor: pointer; /* ✅ */
}
.cn-card__img {
    position: relative;
}

.cn-pbadge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(0,0,0,.75);
    color: #fff;
    font-weight: 900;
    font-size: 12px;
}
.cn-pbadge--danger {
    background: rgba(149,31,31,.92);
}
.cn-card--unavailable {
    opacity: .75;
}
/* =========================================================
   MAKE YOUR OWN MIX PROMO
   ========================================================= */

.cn-mixPromo {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(330px, .95fr);
    min-height: 300px;
    margin: 8px 0 26px;
    overflow: hidden;
    border: 1px solid rgba(149, 31, 31, .12);
    border-radius: 24px;
    background: linear-gradient( 115deg, #fffaf3 0%, #fff4e5 48%, #fff 100% );
    box-shadow: 0 18px 45px rgba(57, 25, 15, .10);
}


/* =========================================================
   LEFT CONTENT
   ========================================================= */

.cn-mixPromo__content {
    position: relative;
    z-index: 4;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 32px 18px 32px 34px;
}


.cn-mixPromo__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 29px;
    margin-bottom: 11px;
    padding: 5px 13px;
    border: 1px solid rgba(149, 31, 31, .12);
    border-radius: 999px;
    background: rgba(149, 31, 31, .08);
    color: #951f1f;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .055em;
    text-transform: uppercase;
}


.cn-mixPromo__title {
    margin: 0;
    color: #701b1b;
    font-size: clamp(30px, 3vw, 46px);
    font-weight: 950;
    line-height: 1;
    letter-spacing: -.035em;
}


.cn-mixPromo__text {
    max-width: 520px;
    margin: 14px 0 0;
    color: #51433e;
    font-size: 15px;
    line-height: 1.55;
}


    .cn-mixPromo__text strong {
        color: #951f1f;
        font-weight: 950;
    }


/* =========================================================
   THREE SMALL STEPS
   ========================================================= */

.cn-mixPromo__steps {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    margin-top: 22px;
}


.cn-mixPromoStep {
    display: flex;
    align-items: center;
    gap: 9px;
}


.cn-mixPromoStep__icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(149, 31, 31, .14);
    border-radius: 50%;
    background: #fff1df;
    color: #951f1f;
    font-size: 13px;
    font-weight: 950;
    box-shadow: 0 5px 14px rgba(90, 40, 20, .07);
}


.cn-mixPromoStep strong,
.cn-mixPromoStep span {
    display: block;
}


.cn-mixPromoStep strong {
    color: #3b1d18;
    font-size: 13px;
    font-weight: 950;
}


.cn-mixPromoStep span {
    margin-top: 2px;
    color: #796861;
    font-size: 10px;
    white-space: nowrap;
}


/* =========================================================
   CTA BUTTON
   ========================================================= */

.cn-mixPromo__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 49px;
    margin-top: 23px;
    padding: 0 24px;
    border-radius: 999px;
    background: linear-gradient( 115deg, #951f1f 0%, #ba3228 100% );
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 950;
    box-shadow: 0 11px 25px rgba(149, 31, 31, .24);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}


    .cn-mixPromo__button svg {
        width: 19px;
        height: 19px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
        transition: transform .18s ease;
    }


    .cn-mixPromo__button:hover {
        color: #fff;
        transform: translateY(-2px);
        box-shadow: 0 15px 30px rgba(149, 31, 31, .30);
    }


        .cn-mixPromo__button:hover svg {
            transform: translateX(4px);
        }


/* =========================================================
   RIGHT IMAGE AREA
   ========================================================= */

.cn-mixPromo__visual {
    position: relative;
    min-width: 0;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: radial-gradient( circle at center, rgba(255,255,255,1) 0%, rgba(255,255,255,.96) 45%, rgba(255,250,243,.25) 77%, transparent 100% );
}


    /*
   Soft fade between text and image.
*/
    .cn-mixPromo__visual::before {
        content: "";
        position: absolute;
        z-index: 2;
        left: 0;
        top: 0;
        bottom: 0;
        width: 85px;
        pointer-events: none;
        background: linear-gradient( 90deg, #fff4e5 0%, rgba(255,244,229,.72) 24%, rgba(255,255,255,0) 100% );
    }


.cn-mixPromo__image {
    position: absolute;
    width: 112%;
    height: 112%;
    right: -8%;
    top: -6%;
    object-fit: contain;
    object-position: center;
    display: block;
    transition: transform .45s ease;
}


.cn-mixPromo:hover
.cn-mixPromo__image {
    transform: scale(1.025);
}


/* Handwritten text over image */

.cn-mixPromo__visualText {
    position: absolute;
    z-index: 4;
    right: 18px;
    top: 22px;
    display: flex;
    flex-direction: column;
    transform: rotate(-7deg);
    pointer-events: none;
    color: #7f2823;
    font-family: "Segoe Print", "Comic Sans MS", cursive;
    font-weight: 700;
    line-height: 1.08;
    text-align: center;
    text-shadow: 0 1px 0 rgba(255,255,255,.8);
}


    .cn-mixPromo__visualText span:nth-child(1) {
        font-size: 17px;
    }

    .cn-mixPromo__visualText span:nth-child(2) {
        font-size: 19px;
    }

    .cn-mixPromo__visualText span:nth-child(3) {
        font-size: 17px;
    }


/* Decorative bottom accent */

.cn-mixPromo::after {
    content: "";
    position: absolute;
    z-index: 5;
    left: 34px;
    bottom: 0;
    width: 125px;
    height: 4px;
    border-radius: 999px 999px 0 0;
    background: linear-gradient( 90deg, #951f1f, #e86a27 );
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1000px) {

    .cn-mixPromo {
        grid-template-columns: minmax(0, 1.1fr) minmax(260px, .9fr);
        min-height: 280px;
    }

    .cn-mixPromo__content {
        padding: 26px 16px 26px 26px;
    }

    .cn-mixPromo__visual {
        min-height: 280px;
    }

    .cn-mixPromo__steps {
        gap: 13px;
    }

    .cn-mixPromo__image {
        width: 118%;
        height: 118%;
        right: -12%;
        top: -9%;
    }

    .cn-mixPromo__visualText {
        display: none;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

/* =========================================================
   MAKE YOUR OWN MIX - MOBILE
   ========================================================= */

@media (max-width: 700px) {

    /* Important: prevent horizontal overflow */
    .cn-products__gridWrap {
        min-width: 0;
        width: 100%;
        max-width: 100%;
    }

    .cn-mixPromo {
        display: flex;
        flex-direction: column;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        min-height: 0;
        margin: 8px 0 18px;
        overflow: hidden;
        box-sizing: border-box;
        border-radius: 17px;
    }


    /* =========================
       TEXT AREA
       ========================= */

    .cn-mixPromo__content {
        order: 1;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        padding: 20px 16px 16px;
    }


    .cn-mixPromo__badge {
        min-height: 24px;
        margin-bottom: 8px;
        padding: 4px 9px;
        font-size: 9px;
    }


    .cn-mixPromo__title {
        width: 100%;
        margin: 0;
        font-size: clamp(25px, 8vw, 31px);
        line-height: 1.02;
        overflow-wrap: break-word;
    }


    .cn-mixPromo__text {
        width: 100%;
        max-width: 100%;
        margin-top: 10px;
        font-size: 12.5px;
        line-height: 1.45;
        overflow-wrap: break-word;
    }


    /* =========================
       STEPS
       ========================= */

    .cn-mixPromo__steps {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: 100%;
        gap: 6px;
        margin-top: 16px;
    }


    .cn-mixPromoStep {
        min-width: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
        text-align: center;
    }


    .cn-mixPromoStep__icon {
        width: 29px;
        height: 29px;
        flex: 0 0 29px;
        font-size: 10px;
    }


    .cn-mixPromoStep strong {
        font-size: 10px;
        line-height: 1.1;
    }


    .cn-mixPromoStep span {
        max-width: 100%;
        font-size: 8px;
        line-height: 1.15;
        white-space: normal;
    }


    /* =========================
       BUTTON
       ========================= */

    .cn-mixPromo__button {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        min-height: 44px;
        margin-top: 16px;
        padding: 0 14px;
        box-sizing: border-box;
        font-size: 12px;
        white-space: normal;
        text-align: center;
    }


        .cn-mixPromo__button svg {
            width: 17px;
            height: 17px;
            flex: 0 0 17px;
        }


    /* =========================
       IMAGE
       ========================= */

    .cn-mixPromo__visual {
        order: 2;
        position: relative;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        min-height: 0;
        padding: 4px 10px 14px;
        box-sizing: border-box;
        overflow: hidden;
        background: #fff;
    }


    /*
       IMPORTANT:
       On mobile the image is no longer absolute.
       This is what prevents it leaving the phone.
    */
    .cn-mixPromo__image {
        position: relative;
        top: auto;
        right: auto;
        left: auto;
        bottom: auto;
        display: block;
        width: 100%;
        max-width: 100%;
        height: auto;
        margin: 0 auto;
        object-fit: contain;
        object-position: center;
        transform: none;
    }


    .cn-mixPromo:hover
    .cn-mixPromo__image {
        transform: none;
    }


    /*
       Remove desktop fade because the image
       now sits BELOW the content.
    */
    .cn-mixPromo__visual::before {
        display: none;
    }


    .cn-mixPromo__visualText {
        display: none;
    }


    .cn-mixPromo::after {
        left: 16px;
        width: 75px;
        height: 3px;
    }
}
@media (max-width: 390px) {

    .cn-mixPromo__content {
        padding: 18px 13px 14px;
    }

    .cn-mixPromo__title {
        font-size: 25px;
    }

    .cn-mixPromo__text {
        font-size: 12px;
    }

    .cn-mixPromo__steps {
        gap: 4px;
    }

    .cn-mixPromoStep strong {
        font-size: 9px;
    }

    .cn-mixPromoStep span {
        font-size: 7.5px;
    }

    .cn-mixPromo__button {
        min-height: 42px;
        font-size: 11.5px;
    }

    .cn-mixPromo__visual {
        padding: 0 6px 10px;
    }
}
/* =========================================================
   PRODUCTS GRID - SMALL SCREENS
   ========================================================= */

@media (max-width: 700px) {

    .cn-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
        max-width: 100%;
    }


    .cn-card {
        min-width: 0;
        width: 100%;
        border-radius: 12px;
        overflow: hidden;
    }


    /* PRODUCT IMAGE */

    .cn-card__img {
        position: relative;
        width: 100%;
        aspect-ratio: 1 / 1;
        padding: 5px;
        box-sizing: border-box;
    }


        .cn-card__img img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            display: block;
        }


    /* BADGE */

    .cn-pbadge {
        top: 5px;
        left: 5px;
        padding: 3px 6px;
        border-radius: 999px;
        font-size: 8px;
        line-height: 1.1;
    }


    /* PRODUCT INFO */

    .cn-card__body {
        padding: 7px 7px 9px;
    }


    .cn-card__cat {
        margin-bottom: 3px;
        font-size: 8px;
        line-height: 1.1;
    }


    .cn-card__name {
        font-size: 11px;
        line-height: 1.2;
        /*
         * Keep long names from making
         * one card much taller.
         */
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        min-height: 26px;
    }


    .cn-card__price {
        margin-top: 5px;
        display: flex;
        flex-wrap: wrap;
        gap: 3px;
    }


    .cn-price {
        font-size: 11px;
        line-height: 1.1;
    }


    .cn-old {
        font-size: 9px;
        line-height: 1.1;
    }
}


/* =========================================================
   NORMAL PHONES
   2 PRODUCTS PER ROW
   ========================================================= */

@media (max-width: 480px) {

    .cn-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }


    .cn-card__img {
        padding: 6px;
    }


    .cn-card__body {
        padding: 7px 7px 9px;
    }


    .cn-card__cat {
        font-size: 9px;
    }


    .cn-card__name {
        font-size: 11px;
        min-height: 27px;
    }


    .cn-price {
        font-size: 11px;
    }


    .cn-old {
        font-size: 9px;
    }
}


/* =========================================================
   VERY SMALL PHONES
   Still keep 2 per row
   ========================================================= */

@media (max-width: 360px) {

    .cn-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }


    .cn-card {
        border-radius: 10px;
    }


    .cn-card__img {
        padding: 4px;
    }


    .cn-card__body {
        padding: 6px 5px 7px;
    }


    .cn-card__cat {
        font-size: 8px;
    }


    .cn-card__name {
        font-size: 10px;
        line-height: 1.15;
        min-height: 24px;
    }


    .cn-price {
        font-size: 10px;
    }


    .cn-old {
        font-size: 8px;
    }


    .cn-pbadge {
        top: 4px;
        left: 4px;
        padding: 2px 5px;
        font-size: 7px;
    }
}