section[data-name="elf_cab-product-listing"] {
    position: relative;
}

/* Filter dropdown wrapper */
section[data-name="elf_cab-product-listing"] .formSearch {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0 auto 45px;
}

/* Product category dropdown */
section[data-name="elf_cab-product-listing"] .formSearch select[name="product_category"] {
    width: 375px;
    max-width: 100%;
    height: 76px;
    padding: 0 72px 0 42px;
    border: none;
    border-radius: 999px;
    background-color: #f5323f;
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    outline: none;
    cursor: pointer;
    box-shadow: 14px 10px 22px rgba(0, 0, 0, 0.18);

    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    background-image: url("https://cab.stagings.entertopwp.com/wp-content/uploads/2026/06/arrow-down.png");
    background-repeat: no-repeat;
    background-position: calc(100% - 42px) center;
    background-size: 24px auto;

    transition: background-color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}

section[data-name="elf_cab-product-listing"] .formSearch select[name="product_category"]:hover,
section[data-name="elf_cab-product-listing"] .formSearch select[name="product_category"]:focus {
    background-color: #ee303c;
    transform: translateY(-2px);
    box-shadow: 16px 12px 26px rgba(0, 0, 0, 0.22);
}

section[data-name="elf_cab-product-listing"] .formSearch select[name="product_category"] option {
    background: #ffffff;
    color: #111111;
    font-size: 16px;
    font-weight: 400;
}

/* Product grid */
section[data-name="elf_cab-product-listing"] .listSearch {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    align-items: stretch;
    width: 100%;
    margin: 60px 0 100px 0;
    height: auto;
    min-height: 430px;
}

/* Reset grid list */
section[data-name="elf_cab-product-listing"] ul.grid,
section[data-name="elf_cab-product-listing"] ul.grid > li {
    padding: 0;
    margin: 0;
}

section[data-name="elf_cab-product-listing"] ul.grid > li {
    list-style: none;
    display: inline-block;
    vertical-align: top;
}

section[data-name="elf_cab-product-listing"] ul.ul-checkbox.grid > li {
    padding: 5px;
}

/* Product card */
section[data-name="elf_cab-product-listing"] .listSearch .list-inline-item {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 330px;
    padding: 0 !important;
    margin: 0;
    overflow: hidden;
    background: #ffffff;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease,
        background-color 0.35s ease;
	border-radius: 20px;
	height: 200px;
}

section[data-name="elf_cab-product-listing"] .listSearch .list-inline-item:hover {
    transform: translateY(-6px);
    background-color: #ee303c;
    box-shadow: 0 6px 12px rgba(238, 48, 60, 0.24);
}

/* Card image */
section[data-name="elf_cab-product-listing"] .product-card-image {
    width: 100%;
    height: 235px;
    background: #ffffff;
    overflow: hidden;
    border: 1px solid #F6F5F1;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    transition:
        background-color 0.35s ease,
        border-color 0.35s ease;
}



section[data-name="elf_cab-product-listing"] .list-inline-item:hover .product-card-image {
    background: #ffffff;
    border-color: #ee303c;
}

section[data-name="elf_cab-product-listing"] .product-card-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: center;
    transition:
        transform 0.45s ease,
        filter 0.45s ease;
}

section[data-name="elf_cab-product-listing"] .list-inline-item:hover .product-card-image img {
    transform: scale(1.06);
    filter: saturate(1.04) contrast(1.02);
}

/* Card bottom content */
section[data-name="elf_cab-product-listing"] .product-card-content {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 88px;
    padding: 10px 120px 40px 20px;
    background: #F6F5F1;
    flex: 1;
    overflow: hidden;
    border-bottom-right-radius: 20px;
    border-bottom-left-radius: 20px;
    transition: background-color 0.35s ease;
}

section[data-name="elf_cab-product-listing"] .list-inline-item:hover .product-card-content {
    background: #ee303c;
}

/* Product title */
section[data-name="elf_cab-product-listing"] .product-card-title {
    margin: 0;
    color: #111111;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.2;
    transition: color 0.35s ease;
}

section[data-name="elf_cab-product-listing"] .list-inline-item:hover .product-card-title {
    color: #ffffff;
}

/* Bone info badge */
section[data-name="elf_cab-product-listing"] .product-card-bone {
    position: absolute;
    right: -10px;
    bottom: -25px;
    width: 112px;
    height: 112px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 18px 32px;
    background: #ee303c;
    border-radius: 50%;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    transition:
        transform 0.35s ease,
        background-color 0.35s ease,
        color 0.35s ease;
}

section[data-name="elf_cab-product-listing"] .list-inline-item:hover .product-card-bone {
    transform: scale(1.08);
    background: #d5c0a1;
    color: #111111;
}

/* Popup */
section[data-name="elf_cab-product-listing"] .product-full-popup {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    opacity: 0;
    visibility: hidden;
}

section[data-name="elf_cab-product-listing"] .product-popup-card {
  border: 1px solid #D6BF9E;
  border-radius: 20px;
  margin: 20px;
  padding: 40px;
  background: #fff;
}

section[data-name="elf_cab-product-listing"] .product-full-popup.is-active {
    display: block;
    opacity: 1;
    visibility: visible;
}

section[data-name="elf_cab-product-listing"] .product-popup-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.96);
}

section[data-name="elf_cab-product-listing"] .product-popup-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}

section[data-name="elf_cab-product-listing"] .product-popup-content {
    width: 100%;
    max-width: 620px;
    text-align: center;
    animation: productPopupFadeUp 0.45s ease both;
}

section[data-name="elf_cab-product-listing"] .product-popup-image {
    width: 100%;
    max-width: 420px;
    margin: 0 auto 28px;
}

section[data-name="elf_cab-product-listing"] .product-popup-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

section[data-name="elf_cab-product-listing"] .product-popup-title {
    margin: 0 0 14px;
    color: #111111;
    font-size: 32px;
    font-weight: 600;
    line-height: 1.2;
	text-align: center;
}

section[data-name="elf_cab-product-listing"] .product-popup-bone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ee303c;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
	display: flex;
  align-items: center;
  justify-content: center;
}

/* Close button */
section[data-name="elf_cab-product-listing"] .product-popup-close {
    position: absolute;
    top: 188px;
  right: 32%;
    z-index: 3;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: #ee303c;
    color: #ffffff;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.35s ease, background-color 0.35s ease;
}

section[data-name="elf_cab-product-listing"] .product-popup-close:hover {
    transform: rotate(90deg);
    background: #111111;
}

body.product-popup-open {
    overflow: hidden;
}

/* Pagination */
section[data-name="elf_cab-product-listing"] .wrapper_pagination {
    display: block;
    clear: both;
    width: 100%;
    margin-top: 35px;
    text-align: center;
}

section[data-name="elf_cab-product-listing"] ul.page-pagination,
section[data-name="elf_cab-product-listing"] ul.page-pagination > li {
    display: inline-block;
    padding: 5px;
    margin: 0;
}

section[data-name="elf_cab-product-listing"] ul.page-pagination > li.page-item.active {
    font-weight: bold;
}

/* No result */
section[data-name="elf_cab-product-listing"] .no-result {
    grid-column: 1 / -1;
    width: 100%;
    padding: 40px 20px;
    text-align: center;
    color: #111111;
    font-size: 20px;
    font-weight: 600;
}

/* Animation */
@keyframes productPopupFadeUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 1200px) {
    section[data-name="elf_cab-product-listing"] .listSearch {
        grid-template-columns: repeat(3, 1fr);
        gap: 22px;
    }
}

@media (max-width: 1024px) {
    section[data-name="elf_cab-product-listing"] .listSearch {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 767px) {
	section[data-name="elf_cab-product-listing"] .listSearch {
	  margin: 0px 0 0px 0;
	}
	
	section[data-name="elf_cab-product-listing"] {
	  z-index: 2;
	  margin-top: -90px;
	}
	
    section[data-name="elf_cab-product-listing"] .formSearch {
        margin-bottom: 32px;
    }

    section[data-name="elf_cab-product-listing"] .formSearch select[name="product_category"] {
        width: 300px;
        height: 62px;
        padding: 0 58px 0 28px;
        font-size: 23px;
        background-position: calc(100% - 32px) center;
        background-size: 20px auto;
    }

    section[data-name="elf_cab-product-listing"] .listSearch {
        gap: 18px;
        min-height: auto;
    }

    section[data-name="elf_cab-product-listing"] .listSearch .list-inline-item {
        min-height: 200px;
    }

    section[data-name="elf_cab-product-listing"] .product-card-image {
        height: 150px;
    }

    section[data-name="elf_cab-product-listing"] .product-card-content {
        min-height: 60px;
    	padding: 0px 105px 18px 18px;
    }

    section[data-name="elf_cab-product-listing"] .product-card-title {
        font-size: 16px;
    }

    section[data-name="elf_cab-product-listing"] .product-card-bone {
        width: 60px;
		height: 60px;
		right: -7px;
		bottom: -17px;
        font-size: 14px;
    }

    section[data-name="elf_cab-product-listing"] .product-popup-title {
        font-size: 30px;
    }

    section[data-name="elf_cab-product-listing"] .product-popup-close {
        top: 18px;
        right: 18px;
        width: 42px;
        height: 42px;
        font-size: 30px;
    }
}