/* Crispslooks Category Products Showcase - scoped and all-device responsive */
.ccps-showcase,
.ccps-showcase * {
    box-sizing: border-box;
}

.ccps-showcase {
    --ccps-accent: #F16A26;
    --ccps-text: #202124;
    --ccps-muted: #6f7378;
    --ccps-line: #e8e8e8;
    --ccps-soft: #f8f8f8;
    --ccps-card: #ffffff;
    --ccps-green: #00a86b;
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: clamp(22px, 3vw, 46px) clamp(16px, 3vw, 34px);
    color: var(--ccps-text);
    font-family: inherit;
    background: transparent;
    overflow: hidden;
}

.ccps-section + .ccps-section {
    margin-top: clamp(34px, 4vw, 64px);
}

.ccps-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 clamp(14px, 2vw, 24px);
}

.ccps-section-head h2 {
    margin: 0;
    color: var(--ccps-text);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(18px, 2.2vw, 34px);
    font-weight: 700;
    font-style: italic;
    line-height: 1.05;
    letter-spacing: -.02em;
}

.ccps-section-head a {
    color: var(--ccps-accent) !important;
    font-size: clamp(11px, 1vw, 14px);
    font-weight: 600;
    line-height: 1;
    text-decoration: none !important;
    white-space: nowrap;
}

.ccps-section-head a:hover {
    opacity: .8;
}

/* Categories */
.ccps-category-scroll {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    display: flex;
    align-items: stretch;
    gap: clamp(12px, 1.8vw, 24px);
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    padding: 2px 2px 13px;
    margin: 0 -2px;
}

.ccps-category-scroll::-webkit-scrollbar {
    height: 6px;
}

.ccps-category-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.ccps-category-scroll::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,.15);
    border-radius: 999px;
}

.ccps-category-card {
    flex: 0 0 auto;
    width: clamp(56px, 6vw, 90px);
    min-height: clamp(56px, 6vw, 90px);
    border-radius: 12px;
    background: #f8f8f8;
    border: 1px solid var(--ccps-line);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #8b8b8b !important;
    text-decoration: none !important;
    box-shadow: 0 10px 25px rgba(0,0,0,.035);
    scroll-snap-align: start;
    transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.ccps-category-card:hover,
.ccps-category-card.is-active {
    background: var(--ccps-accent);
    border-color: var(--ccps-accent);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(241,106,38,.22);
}

.ccps-cat-icon {
    width: clamp(28px, 3vw, 42px);
    height: clamp(28px, 3vw, 42px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: currentColor;
}

.ccps-cat-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    filter: grayscale(1) opacity(.72);
    transition: filter .18s ease;
}

.ccps-category-card:hover .ccps-cat-icon img,
.ccps-category-card.is-active .ccps-cat-icon img {
    filter: brightness(0) invert(1);
}

.ccps-cat-icon svg {
    width: 78%;
    height: 78%;
    color: currentColor;
}

.ccps-cat-name {
    max-width: 100%;
    padding: 0 6px;
    font-size: 10px;
    line-height: 1.15;
    text-align: center;
    color: currentColor;
    display: none;
}

/* Product grid */
.ccps-products-grid {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(26px, 4vw, 46px) clamp(18px, 3vw, 36px);
    align-items: start;
}

.ccps-product-card {
    min-width: 0;
    max-width: 100%;
    position: relative;
    font-family: inherit;
}

.ccps-thumb-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1.04;
    border-radius: 16px;
    overflow: hidden;
    background: #f8f8f8;
    border: 1px solid rgba(0,0,0,.035);
    box-shadow: 0 12px 34px rgba(0,0,0,.035);
}

.ccps-thumb-link {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    color: inherit !important;
    background: transparent;
}

.ccps-product-img,
.ccps-thumb-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .28s ease;
}

.ccps-product-card:hover .ccps-thumb-link img {
    transform: scale(1.035);
}

.ccps-sale-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 23px;
    padding: 0 10px;
    border-radius: 999px;
    background: #ffffff;
    color: #3d3d3d;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
}

.ccps-wishlist-wrap {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 4;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(0,0,0,.10);
    color: #171717;
}

.ccps-wishlist-wrap a,
.ccps-wishlist-wrap button,
.ccps-wishlist-wrap .tinvwl_add_to_wishlist_button,
.ccps-wishlist-wrap .yith-wcwl-add-to-wishlist a {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: transparent !important;
    color: #171717 !important;
    text-decoration: none !important;
    box-shadow: none !important;
    font-size: 0 !important;
    line-height: 1 !important;
}

.ccps-wishlist-wrap i,
.ccps-wishlist-wrap svg,
.ccps-wishlist-wrap .tinvwl_add_to_wishlist_button::before,
.ccps-wishlist-wrap .yith-wcwl-icon {
    color: #171717 !important;
    fill: #171717 !important;
    stroke: #171717 !important;
    font-size: 18px !important;
    line-height: 1 !important;
    margin: 0 !important;
}

.ccps-wishlist-wrap .tinvwl_add_to_wishlist-text,
.ccps-wishlist-wrap .feedback,
.ccps-wishlist-wrap .tinvwl-tooltip,
.ccps-wishlist-wrap .screen-reader-text {
    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;
}

.ccps-wishlist-fallback svg {
    width: 19px;
    height: 19px;
}

.ccps-product-title {
    margin: 17px 0 8px;
    font-size: clamp(14px, 1.1vw, 16px);
    font-weight: 600;
    line-height: 1.35;
    color: #262626;
}

.ccps-product-title a {
    color: inherit !important;
    text-decoration: none !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ccps-product-title a:hover {
    color: var(--ccps-accent) !important;
}

.ccps-product-price {
    color: #2f3135;
    font-size: clamp(16px, 1.25vw, 20px);
    font-weight: 500;
    line-height: 1.25;
    margin: 0 0 13px;
}

.ccps-product-price del {
    color: #8e9399;
    opacity: .65;
    margin-right: 6px;
}

.ccps-product-price ins {
    color: #2f3135;
    text-decoration: none;
    font-weight: 600;
}

.ccps-stock {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: clamp(12px, 1vw, 14px);
    font-weight: 600;
    line-height: 1;
    margin: 0 0 16px;
}

.ccps-stock svg {
    flex: 0 0 auto;
}

.ccps-in-stock {
    color: var(--ccps-green);
}

.ccps-out-stock {
    color: #d64545;
}

.ccps-add-cart-wrap {
    margin-top: 2px;
}

.ccps-add-to-cart,
.ccps-add-cart-wrap .button {
    width: 100%;
    min-height: 44px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 12px !important;
    background: var(--ccps-accent) !important;
    border: 1px solid var(--ccps-accent) !important;
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 700;
    line-height: 1 !important;
    text-decoration: none !important;
    padding: 12px 18px !important;
    transition: opacity .18s ease, transform .18s ease;
}

.ccps-add-to-cart:hover,
.ccps-add-cart-wrap .button:hover {
    opacity: .9;
    transform: translateY(-1px);
}

.ccps-empty,
.ccps-admin-warning {
    padding: 18px;
    border-radius: 12px;
    background: #fff7f2;
    color: #663300;
}

/* Extra small phones */
@media (max-width: 359px) {
    .ccps-showcase {
        max-width: 100%;
        padding: 16px 12px 30px;
    }

    .ccps-section + .ccps-section {
        margin-top: 34px;
    }

    .ccps-section-head h2 {
        font-size: 15px;
    }

    .ccps-section-head a {
        font-size: 10px;
    }

    .ccps-category-scroll {
        gap: 14px;
        margin-right: -12px;
        padding-right: 20px;
        scrollbar-width: none;
    }

    .ccps-category-scroll::-webkit-scrollbar {
        display: none;
    }

    .ccps-category-card {
        width: 48px;
        min-height: 48px;
        border-radius: 8px;
    }

    .ccps-cat-icon {
        width: 27px;
        height: 27px;
    }

    .ccps-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 14px;
    }

    .ccps-thumb-wrap {
        aspect-ratio: 1 / 1.18;
        border-radius: 12px;
    }

    .ccps-thumb-link img {
        object-fit: contain;
        padding: 16px 8px 12px;
    }

    .ccps-sale-badge {
        top: 7px;
        left: 7px;
        min-height: 18px;
        padding: 0 7px;
        font-size: 8px;
    }

    .ccps-wishlist-wrap {
        top: 7px;
        right: 7px;
        width: 22px;
        height: 22px;
    }

    .ccps-wishlist-wrap a,
    .ccps-wishlist-wrap button,
    .ccps-wishlist-wrap .tinvwl_add_to_wishlist_button,
    .ccps-wishlist-wrap .yith-wcwl-add-to-wishlist a {
        width: 22px !important;
        height: 22px !important;
        min-width: 22px !important;
        min-height: 22px !important;
    }

    .ccps-product-title {
        margin: 10px 0 5px;
        font-size: 11px;
        font-weight: 400;
    }

    .ccps-product-price {
        font-size: 11px;
        font-weight: 800;
        margin-bottom: 0;
    }

    .ccps-product-price del {
        font-size: 9px;
        margin-left: 5px;
    }

    .ccps-stock,
    .ccps-add-cart-wrap {
        display: none;
    }
}

/* Phones */
@media (min-width: 360px) and (max-width: 575px) {
    .ccps-showcase {
        max-width: 430px;
        padding: 18px 22px 34px;
    }

    .ccps-section + .ccps-section {
        margin-top: 42px;
    }

    .ccps-section-head {
        margin-bottom: 18px;
    }

    .ccps-section-head h2 {
        font-size: 16px;
    }

    .ccps-section-head a {
        font-size: 10px;
    }

    .ccps-category-scroll {
        gap: 24px;
        padding: 1px 26px 18px 0;
        margin-right: -22px;
        scrollbar-width: none;
    }

    .ccps-category-scroll::-webkit-scrollbar {
        display: none;
    }

    .ccps-category-card {
        width: 52px;
        min-height: 52px;
        border-radius: 8px;
    }

    .ccps-cat-icon {
        width: 30px;
        height: 30px;
    }

    .ccps-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 34px 30px;
    }

    .ccps-thumb-wrap {
        aspect-ratio: 1 / 1.18;
        border-radius: 12px;
        box-shadow: 0 10px 25px rgba(0,0,0,.025);
    }

    .ccps-thumb-link img {
        object-fit: contain;
        padding: 18px 10px 14px;
    }

    .ccps-sale-badge {
        top: 8px;
        left: 8px;
        min-height: 20px;
        padding: 0 8px;
        font-size: 8px;
    }

    .ccps-wishlist-wrap {
        top: 8px;
        right: 8px;
        width: 23px;
        height: 23px;
        box-shadow: 0 4px 12px rgba(0,0,0,.06);
    }

    .ccps-wishlist-wrap a,
    .ccps-wishlist-wrap button,
    .ccps-wishlist-wrap .tinvwl_add_to_wishlist_button,
    .ccps-wishlist-wrap .yith-wcwl-add-to-wishlist a {
        width: 23px !important;
        height: 23px !important;
        min-width: 23px !important;
        min-height: 23px !important;
    }

    .ccps-wishlist-wrap i,
    .ccps-wishlist-wrap svg,
    .ccps-wishlist-wrap .tinvwl_add_to_wishlist_button::before,
    .ccps-wishlist-wrap .yith-wcwl-icon {
        font-size: 14px !important;
    }

    .ccps-product-title {
        margin: 12px 0 6px;
        font-size: 12px;
        font-weight: 400;
        color: #3d3d3d;
    }

    .ccps-product-price {
        font-size: 12px;
        font-weight: 800;
        color: #000000;
        margin-bottom: 0;
    }

    .ccps-product-price del {
        font-size: 10px;
        font-weight: 700;
        margin-left: 8px;
    }

    .ccps-stock,
    .ccps-add-cart-wrap {
        display: none;
    }
}

/* Large phones / mobile landscape */
@media (min-width: 576px) and (max-width: 767px) {
    .ccps-showcase {
        max-width: 720px;
        padding: 24px 28px 42px;
    }

    .ccps-category-scroll {
        gap: 20px;
        margin-right: -28px;
        padding-right: 28px;
        scrollbar-width: none;
    }

    .ccps-category-scroll::-webkit-scrollbar {
        display: none;
    }

    .ccps-category-card {
        width: 58px;
        min-height: 58px;
    }

    .ccps-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 38px 32px;
    }

    .ccps-thumb-wrap {
        aspect-ratio: 1 / 1.12;
    }

    .ccps-thumb-link img {
        object-fit: contain;
        padding: 20px 12px 16px;
    }

    .ccps-stock,
    .ccps-add-cart-wrap {
        display: none;
    }
}

/* Tablets */
@media (min-width: 768px) and (max-width: 1024px) {
    .ccps-showcase {
        max-width: 960px;
        padding: 34px 28px 52px;
    }

    .ccps-category-scroll {
        gap: 18px;
        padding-bottom: 14px;
    }

    .ccps-category-card {
        width: 72px;
        min-height: 72px;
    }

    .ccps-products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 42px 28px;
    }

    .ccps-thumb-wrap {
        aspect-ratio: 1 / 1.04;
    }
}

/* Small laptops */
@media (min-width: 1025px) and (max-width: 1199px) {
    .ccps-showcase {
        max-width: 1120px;
    }

    .ccps-products-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 44px 28px;
    }
}

/* Desktop */
@media (min-width: 1200px) and (max-width: 1399px) {
    .ccps-showcase {
        max-width: 1240px;
    }

    .ccps-products-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 46px 34px;
    }
}

/* Large desktop */
@media (min-width: 1400px) {
    .ccps-showcase {
        max-width: 1380px;
    }

    .ccps-products-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 48px 36px;
    }
}

/* Desktop category behavior: it can wrap naturally if the screen is wide enough */
@media (min-width: 1025px) {
    .ccps-category-scroll {
        overflow-x: auto;
        padding-bottom: 14px;
    }
}

@supports not (aspect-ratio: 1 / 1) {
    .ccps-thumb-wrap::before {
        content: '';
        display: block;
        padding-top: 104%;
    }

    .ccps-thumb-link {
        position: absolute;
        inset: 0;
    }
}
