/*===================================================================================*/
/* --- Font Faces --- */
/*===================================================================================*/
@font-face {
    font-family: 'Britti Sans';
    src: url('/wp-content/uploads/2024/06/britti-sans-light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}
@font-face {
    font-family: 'Britti Sans';
    src: url('/wp-content/uploads/2024/06/britti-sans-regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Britti Sans';
    src: url('/wp-content/uploads/2024/06/britti-sans-medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}
@font-face {
    font-family: 'Britti Sans';
    src: url('/wp-content/uploads/2024/06/britti-sans-bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

/*=======================================================================================================================================================================================================================*/
/*Global Styles*/
/*=======================================================================================================================================================================================================================*/
html, body {
    background: #0B1017 !important;
}

.cpf-content input[type="text"]:valid {
    background-color: transparent !important;
}

.cpf-content * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Britti Sans', sans-serif;
}

.cpf-content {
    max-width: 1440px;
    margin: 0 auto;
    padding: 20px 0px;
}

/*=======================================================================================================================================================================================================================*/
/* Parent Categories */
/*=======================================================================================================================================================================================================================*/
.cpf-parent-categories {
    margin-bottom: 25px;
}

.cpf-child-categories-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.38rem;
    margin-bottom: 85px;
    display: none;
}

.cpf-child-category-item {
    display: flex;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    font-style: normal;
    line-height: 0.875rem;
    border-radius: 0.5rem;
    background: #222833;
    padding: 0.5rem 0.75rem 0.5rem 0.625rem;
    align-items: center;
    gap: 0.5rem;
}
.cpf-child-category-item img {
    width: 30px;
    height: 30px;
    margin-right: 10px;
}

.cpf-child-category-item:hover {
    background: #1b1f26;
    border-color: #666;
    /* transform: translateY(-2px); */
    /* box-shadow: 0 6px 20px rgba(255, 255, 255, 0.1); */
}

.cpf-child-category-item.active {
    border-radius: 8px;
    background: #C52233;
    font-weight: 600;
}

/*=======================================================================================================================================================================================================================*/
/* Search and filtering */
/*=======================================================================================================================================================================================================================*/

.search-and-filter-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    width: 100%;
}

/* Search input styling */
input.cpf-search-input[type=text] {
    display: flex;
    width: 100%;
    max-width: 22.5rem;
    align-items: center;
    border-radius: 0.75rem;
    border: 1.5px solid #2B323F;
    background: #121720 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 22 22' fill='none'%3E%3Cpath d='M15.5834 15.5833L19.25 19.25' stroke='%239EA5AD' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M17.4167 10.0833C17.4167 6.03324 14.1334 2.75 10.0833 2.75C6.03324 2.75 2.75 6.03324 2.75 10.0833C2.75 14.1334 6.03324 17.4167 10.0833 17.4167C14.1334 17.4167 17.4167 14.1334 17.4167 10.0833Z' stroke='%239EA5AD' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat 12px center;
    padding: 0.8125rem 1rem 0.8125rem 2.8rem;
    color: white;
    transition: padding 0.2s ease, background 0.2s ease;
}

/* When input is focused, remove icon and adjust padding */
input.cpf-search-input[type=text]:focus, input.cpf-search-input[type=text]:not(:placeholder-shown) {
    background-image: none;
    padding-left: 1rem;
    border: 1.5px solid #2B323F;
    box-shadow: none;
}

/* Search Box */
.cpf-search {
    display: flex;
    gap: 10px;
    align-items: center;
    max-width: 400px;
}

.cpf-search-input:focus {
    outline: none;
    border: 1.5px solid #2B323F;
    box-shadow: none;
}

.cpf-search-input::placeholder {
    color: #888;
}

.cpf-search .cpf-search-btn {
    border: none;
    transition: all 0.3s ease;
    background: #C52233;
    font-size: 0.875rem !important;
    font-style: normal;
    font-weight: 400;
    line-height: 0.875rem;
}

.cpf-search-btn:hover {
    /*transform: translateY(-2px);*/
    /*background: #C52233;*/
    background: #A6202E;
    /*box-shadow: 0 6px 20px rgba(255, 255, 255, 0.1);*/
}

/*=======================================================================================================================================================================================================================*/
/* Sort by button */
/*=======================================================================================================================================================================================================================*/

.cpf-sort-options {
    position: relative;
    width: 185px;
    display: none;
}

select.cpf-sort-select {
    width: 100%;
    padding: 12px;
    padding-left: 40px;
    padding-right: 36px;
    border-radius: 8px;
    background-color: rgba(43, 50, 63, 0.60);
    color: #D0D5DD;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 14px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;

    width: 100%;
    padding: 12px;
    padding-left: 40px;
    padding-right: 36px;
    border-radius: 8px;
    background-color: rgba(43, 50, 63, 0.60);
    color: #D0D5DD;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 14px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding-top: 14px;
    padding-bottom: 10px;
}

/* Default icon for the select */
.cpf-sort-options::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M2.5 4.5H13.5M4.5 8H11.5M6.5 11.5H9.5' stroke='%23D0D5DD' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    z-index: 1;
    pointer-events: none;
}

/* Update icon based on selected value using JavaScript */
.cpf-sort-options.price-selected::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M8.18687 0.813127C7.99161 0.617874 7.67507 0.617874 7.47981 0.813127L6.63161 1.66129C6.44131 1.85158 6.17082 1.93825 5.90536 1.89401L4.58221 1.67349C4.39013 1.64148 4.19695 1.72389 4.08712 1.88469C3.97729 2.04548 3.97081 2.25541 4.07051 2.42268L5.03765 4.04534C5.08575 4.12604 5.17277 4.17547 5.26671 4.17547H10.3999C10.4939 4.17547 10.5809 4.12604 10.629 4.04534L11.5961 2.42268C11.6959 2.25541 11.6894 2.04548 11.5795 1.88469C11.4697 1.72389 11.2765 1.64148 11.0845 1.67349L9.76134 1.89401C9.49587 1.93825 9.22541 1.85158 9.03507 1.66129L8.18687 0.813127ZM4.73486 4.92976C4.78505 4.87373 4.85674 4.84214 4.93196 4.84214H10.735C10.8102 4.84214 10.8819 4.87373 10.9321 4.92976C11.5358 5.60379 12.2373 6.48558 12.8474 7.46869C13.5116 8.53902 14.0858 9.75815 14.2885 10.9779C14.4824 12.1442 14.0343 13.1676 13.2645 13.8824C12.5023 14.59 11.4217 15.003 10.2946 15.003H5.37235C4.24529 15.003 3.16466 14.59 2.40247 13.8824C1.63257 13.1676 1.18457 12.1442 1.37842 10.9779C1.58116 9.75809 2.15531 8.53902 2.81956 7.46869C3.4297 6.48558 4.1311 5.60379 4.73486 4.92976ZM8.33334 7.16669C8.33334 6.89055 8.10947 6.66669 7.83334 6.66669C7.55721 6.66669 7.33334 6.89055 7.33334 7.16669V7.38909C7.05721 7.45209 6.80287 7.56702 6.59053 7.72622C6.25453 7.97822 6.00001 8.36455 6.00001 8.83335C6.00001 9.30215 6.25453 9.68849 6.59053 9.94049C6.92641 10.1924 7.36741 10.3334 7.83334 10.3334C8.10381 10.3334 8.32941 10.4162 8.47614 10.5262C8.62274 10.6362 8.66667 10.7499 8.66667 10.8334C8.66667 10.9168 8.62274 11.0306 8.47614 11.1405C8.32941 11.2505 8.10381 11.3334 7.83334 11.3334C7.38774 11.3334 7.10634 11.1194 7.02814 10.9536C6.91047 10.7038 6.61252 10.5967 6.36273 10.7144C6.11293 10.8321 6.00587 11.13 6.12359 11.3798C6.34351 11.8465 6.80754 12.1566 7.33334 12.277V12.5C7.33334 12.7762 7.55721 13 7.83334 13C8.10947 13 8.33334 12.7762 8.33334 12.5V12.2776C8.60947 12.2146 8.86381 12.0997 9.07614 11.9405C9.41214 11.6885 9.66667 11.3022 9.66667 10.8334C9.66667 10.3646 9.41214 9.97822 9.07614 9.72622C8.74027 9.47435 8.29927 9.33335 7.83334 9.33335C7.56287 9.33335 7.33727 9.25049 7.19054 9.14049C7.04394 9.03055 7.00001 8.91682 7.00001 8.83335C7.00001 8.74989 7.04394 8.63615 7.19054 8.52622C7.33727 8.41622 7.56287 8.33335 7.83334 8.33335C8.27894 8.33335 8.56034 8.54735 8.63854 8.71315C8.75621 8.96295 9.05414 9.07002 9.30394 8.95229C9.55374 8.83462 9.66081 8.53669 9.54307 8.28689C9.32314 7.82022 8.85914 7.51015 8.33334 7.38969V7.16669Z' fill='%23D0D5DD'/%3E%3C/svg%3E");
}

.cpf-sort-options.name-selected::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M2 12.5H7.5M2 8H10M2 3.5H14' stroke='%23D0D5DD' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
}

select.cpf-sort-select:hover {
    background-color: rgba(43, 50, 63, 0.80);
    /*box-shadow: 0 6px 20px rgba(255, 255, 255, 0.1);*/
}

select.cpf-sort-select:focus {
    outline: none;
}

.cpf-sort-options::after {
    content: "";
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.99985 6.00003L7.99987 10L11.9999 6' stroke='%23676E76' stroke-width='1.5' stroke-miterlimit='16' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    z-index: 1;
    pointer-events: none;
}

/*=======================================================================================================================================================================================================================*/
/* Type Filter Buttons */
/*=======================================================================================================================================================================================================================*/
.cpf-child-categories {
}

.type {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.type li {
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    background: #222833;
    font-size: 0.875rem;
    font-style: normal;
    font-weight: 400;
    line-height: 0.875rem;
    min-width: 6.25rem;
    padding: 0.75rem;
    cursor: pointer;
}

.type li:hover {
    background: #1a1e26;
    border-color: #666;
}

.type li.active {
    background: #C52233;
    font-weight: 600;
}


/*=======================================================================================================================================================================================================================*/
/*  Product Grid & Product  */
/*=======================================================================================================================================================================================================================*/

.cpf-product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.62rem;
    margin-top: 30px;
    transition: opacity 0.4s ease-in-out;
    min-height: 200px; /* Set a minimum height to prevent collapsing during load */
}

.cpf-product-grid.loading {
    opacity: 0;
}

.cpf-product {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid #2B323F;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    text-align: center;
    background: rgba(20, 22, 29, 0.7);
}

.cpf-product::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 124, 186, 0.1), rgba(0, 150, 199, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cpf-product:hover::before {
    opacity: 1;
}

.cpf-product:hover {
    border-color: #444;
}

.cpf-product img {
    width: 100%;
    object-fit: contain;
    margin-bottom: 16px;
    padding: 0;
    max-width: 4.14113rem !important;
}

.cpf-content .cpf-product h3 {
    margin-bottom: 0;
    position: relative;
    color: #D0D5DD;
    text-align: center;
    font-style: normal;
    font-weight: 600;
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.cpf-product-description {
    margin: 0;
    padding: 0;
    color: #9EA5AD;
    text-align: center;
    font-style: normal;
    font-weight: 400;
    font-size: 0.875rem;
    line-height: 1.375rem; /* 157.143% */
}

.cpf-price {
    color: #03C773;
    text-align: center;
    font-size: 1.375rem;
    font-style: normal;
    font-weight: 600;
    line-height: 1.75rem;
}

/* Product Actions */
.cpf-product-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
}

/* Quantity Input with +/- buttons */
.quantity-wrapper {
    display: flex;
    height: 35px;
    align-items: center;
    justify-content: center;
    gap: 0;
    border-radius: 6px;
    border: 1.5px solid #2B323F;
    max-width: 130px;
    align-self: center;
}


/* Modify the product actions container to display buttons inline */
.cpf-product-buttons {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 8px;
    position: relative;
    width: 100%;
}

button.qty-btn:hover {
    background-color: #2a3447 !important;
}
button.qty-btn {
    display: flex;
    width: 36px;
    height: 36px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    background: #1C2330;
    background-color: #1C2330 !important;
    border: none;
    padding: 0 14px !important;
    /* display: inline-block; */
}
button.qty-btn.qty-minus {
    border-radius: 6px 0 0 6px;
}
button.qty-btn.qty-plus {
    border-radius: 0 6px 6px 0;
}

.cpf-qty {
    background: transparent;
    -moz-appearance: textfield;
    display: flex;
    align-items: center;
    border: none !important;
    text-align: center;
    font-style: normal;
    line-height: 24px;
    color: #9EA5AD;
    font-size: 1rem;
    line-height: 1.5rem;
}

/* Remove spinner arrows from Firefox */
.cpf-qty::-webkit-inner-spin-button,
.cpf-qty::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cpf-qty:focus {
    outline: none;
}

/* Buttons */
.cpf-product-buttons .cpf-add-to-cart, .cpf-product-buttons .cpf-buy-now {
    border: none;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    flex: 1 0 0;
    border-radius: 8px !important;
    width: unset;
    color: #FCFCFD;
    font-size: 0.875rem;
    font-style: normal;
    font-weight: 400;
    line-height: 0.875rem;
    padding: 0.75rem 1.25rem !important;
    gap: 0.5rem;
}

.cpf-product-buttons .cpf-add-to-cart {
    background: #2B323F;
}

.cpf-product-buttons .cpf-add-to-cart:hover {
    background: #353d4d;
}

.cpf-product-buttons .cpf-buy-now {
    color: #fff;
    background: #C52233!important;
}

.cpf-product-buttons .cpf-buy-now:hover {
    background: #A6202E !important;
}

/*=======================================================================================================================================================================================================================*/
/*Cart-Notification*/
/*=======================================================================================================================================================================================================================*/

.cm-cart-notification {
    position: fixed;
    top: 20px;
    right: -400px;
    width: auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    z-index: 9999;
    padding: 20px;
    transition: right 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
}

.cm-cart-notification.active {
    right: 20px;
    opacity: 1;
}

.cm-notification-content {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.cm-notification-icon {
    background-color: #4CAF50;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.cm-notification-text p {
    margin: 0;
}

.cm-product-name {
    font-weight: bold;
    font-size: 16px;
}

.cm-message {
    color: #666;
}

.cm-notification-actions {
    display: flex;
    justify-content: space-between;
}

.cm-notification-actions button {
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.cm-view-cart {
    background-color: #2196F3;
    color: white;
    flex: 1;
    margin-right: 10px;
}

.cm-view-cart:hover {
    background-color: #0b7dda;
}

.cm-dismiss {
    background-color: #f1f1f1;
    color: #333;
    flex: 1;
}

.cm-dismiss:hover {
    background-color: #e1e1e1;
}
#cm-cart-notification {
    background-color: black;
    border: 1px solid;
    top: 70px;
    padding: 10px;
}
.cm-quantity {
    font-weight: bold;
    color: #4CAF50;
}
.cpf-category-description {
    margin-top: 20px;
    display: none;
}
/* Pagination Styles */
.cpf-pagination-container {
    margin-top: 30px;
    text-align: center;
}

/*=======================================================================================================================================================================================================================*/
/*Pagination*/
/*=======================================================================================================================================================================================================================*/

.cpf-pagination-container {
    margin-top: 30px;
    text-align: center;
    transition: opacity 0.4s ease-in-out;
}

.cpf-pagination-container.loading {
    opacity: 0;
}

.cpf-pagination {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.375rem;
    align-self: stretch;
}

.page-item.active .page-link {
    color: #fff !important;
    font-size: 0.875rem;
    font-style: normal;
    font-weight: 600;
    line-height: 2.5rem;
    display: block;
    width: 100%;
    height: 100%;
}
.page-item span {
    color: #9EA5AD !important;
    font-size: 0.875rem;
    font-style: normal;
    font-weight: 600;
    line-height: 2.5rem;
    width: 100%;
    height: 100%;
}
.page-item {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    align-self: stretch;
    border-radius: 0.5rem;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    border: 1px solid #2B323F;
    cursor: pointer;
}
.page-item.active {
    background: #C52233;
}

/* Previous and Next button styling */
.page-link.cpf-page-nav {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0;  /* Hide the text arrows */
}

.disabled .page-link.cpf-page-nav {
    /*disable clicks*/
    pointer-events: none;
}
/* Previous button with SVG */
.disabled .page-link.cpf-page-nav[aria-label="Previous"]::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M15.8333 9.99996H4.16663M4.16663 9.99996L9.99996 15.8333M4.16663 9.99996L9.99996 4.16663' stroke='%232B323F' stroke-width='1.67' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.page-link.cpf-page-nav[aria-label="Previous"]::before {
    content: "";
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M15.8333 9.99996H4.16663M4.16663 9.99996L9.99996 15.8333M4.16663 9.99996L9.99996 4.16663' stroke='%23C52233' stroke-width='1.67' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}
/* Next button with SVG */
.disabled .page-link.cpf-page-nav[aria-label="Next"]::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M4.16669 9.99996H15.8334M15.8334 9.99996L10 4.16663M15.8334 9.99996L10 15.8333' stroke='%232B323F' stroke-width='1.67' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.page-link.cpf-page-nav[aria-label="Next"]::before {
    content: "";
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M4.16669 9.99996H15.8334M15.8334 9.99996L10 4.16663M15.8334 9.99996L10 15.8333' stroke='%23C52233' stroke-width='1.67' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

/* Screen reader text */
.screen-reader-text {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Animation for smooth transitions */
.cpf-product-grid {
    animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*=======================================================================================================================================================================================================================*/
/* Responsive Design */
/*=======================================================================================================================================================================================================================*/

/* Larger Desktops (1400px and below) */
@media (max-width: 1400px) {
    .cpf-product-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .cpf-content {
        padding: 20px 40px;
    }
}

/* Medium Desktops (1200px and below) */
@media (max-width: 1200px) {
    .cpf-product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

/* Tablets and Small Desktops (992px and below) */
@media (max-width: 992px) {
    .cpf-product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cpf-content {
        padding: 20px 30px;
    }

    .search-and-filter-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    input.cpf-search-input[type=text] {
        max-width: 100%;
    }

    .cpf-sort-options {
        width: 100%;
    }

    .cpf-child-categories {
        padding: 15px;
    }

    .cpf-child-categories-list {
        margin-bottom: 40px;
    }
}

/* Mobile Landscape (768px and below) */
@media (max-width: 768px) {
    .cpf-content {
        padding: 15px 20px;
    }

    .cpf-child-category-item {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }

    .cpf-child-category-item img {
        width: 24px;
        height: 24px;
        margin-right: 8px;
    }

    .type li {
        padding: 10px;
        font-size: 0.8rem;
    }

    .cpf-pagination {
        flex-wrap: wrap;
    }
}

/* Mobile Portrait (576px and below) */
@media (max-width: 576px) {
    .cpf-product-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .cpf-content {
        padding: 10px 15px;
    }

    .cpf-child-categories-list {
        margin-bottom: 30px;
    }

    .cpf-pagination .page-item {
        width: 2.2rem;
        height: 2.2rem;
    }

    .cpf-pagination .page-item a,
    .cpf-pagination .page-item.active .page-link {
        line-height: 2.2rem;
    }

    /* Display fewer pagination items on mobile */
    .cpf-pagination .page-item:not(.active):not(:first-child):not(:last-child):not(:nth-child(2)):not(:nth-last-child(2)) {
        display: none;
    }

    /* Adjust cart notification for mobile */
    .cm-cart-notification {
        width: calc(100% - 40px);
        max-width: none;
    }

    /* Adjust quantity buttons for smaller screens */
    .cpf-product-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .quantity-wrapper {
        margin-bottom: 10px;
    }
}

/* Very Small Devices (400px and below) */
@media (max-width: 400px) {
    .cpf-child-category-item {
        font-size: 0.75rem;
    }

    .cpf-child-category-item img {
        width: 20px;
        height: 20px;
    }

    .cpf-content .cpf-product h3 {
        font-size: 1rem;
        line-height: 1.5rem;
    }

    .cpf-product-description {
        font-size: 0.75rem;
        line-height: 1.2rem;
    }

    .cpf-price {
        font-size: 1rem;
    }

    /* Simplify filter section */
    .cpf-child-categories {
        padding: 10px;
    }

    .type li {
        padding: 8px;
        font-size: 0.75rem;
    }
}