:root {
    --primary: rgba(178, 0, 0, 1);
    --secondary: rgba(45, 55, 72, 1);
    --white: #ffffff;
    --black: rgba(26, 32, 44, 1);
    --gray: #F7FAFC;
    --dark-gray: rgba(0, 0, 0, 0.1);
    --dark-blue: #1A202C;
    --light-gray: #F7F7F7;
    --blue: #2B6CB0;
  }

.container{
    max-width: 1458px;
    padding: 0px 12px;
    margin: 0px auto;
}
.text-2xl{
    font-size: 26px;
    font-weight: 700;
    color: var(--dark-blue);
    font-family: "Noto Sans", sans-serif;
}
.text-4xl{
    font-size: 14px;
    font-weight: 400;
    color: var(--secondary);
    font-family: "Noto Sans", sans-serif;
}

/* Deals Page */
.deals-page{
    background-color: var(--white);
    padding-top: 36px !important;
}

.notice-section .notice-wrapper{
    border: 1px solid var(--black);
    padding: 8px 8px;
}
.notice-section p{
    margin: 0px !important;
    font-weight: 400;
    text-align: center;
    margin: 0;
    font-family: "Noto Sans", sans-serif;
    font-size: 14px;
    line-height: 22px;
    color: var(--black);
}

.deals-category-section{
    margin-top: 56px;
}

.deals-category-tabs {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.deals-category-tabs .category-tab{
    background-color: var(--gray);
    border-radius: 50px;
    border: 1px solid var(--dark-gray);
    padding: 10px 26px;
    font-weight: 700;
    text-align: center;
    margin: 0;
    font-family: "Noto Sans", sans-serif;
    font-size: 14px;
    line-height: 22px;
    color: var(--secondary);
}

.deals-category-section .category-tab.active , .deals-category-section .category-tab:hover{
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    box-shadow: unset !important;
}
.deals-category-section .category-tab.active img{
    filter: invert(1);
}

.deals-category-section .category-tab{
    display: flex;
    align-items: center;
    gap: 8px;
}
.deals-category-section .category-tab img{
    max-width: 16px;
    width: 100%;
}

.filter-form{
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 30px;
    flex-wrap: wrap;
}

.deals-filter-grid{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 200px;
    gap: 20px;
}

.deals-filter-grid select, .deals-controls .search-bar input , .deals-controls select{
    padding: 16px 16px;
    font-size: 16px;
    line-height: 22px;
    font-weight: 400;
    color: var(--secondary);
    font-family: "Noto Sans", sans-serif;
    border: 1px solid var(--dark-gray);
    background-color: var(--gray);
    position: relative;
}

.deals-filter-grid select:focus , .deals-controls .search-bar input:focus , .deals-controls select:focus{
    box-shadow: unset !important;
    background-color: var(--gray);
}

.deals-filter-grid select {
    background-color: var(--gray);
    border: 1px solid var(--dark-gray);
}

.deals-filter-grid select:hover,
.deals-filter-grid select:focus {
    background-color: var(--gray);
    border-color: var(--dark-gray);
    outline: none;
}

/* Style for hierarchical category options */
.deals-filter-grid select option {
    padding: 8px 16px;
    font-family: "Noto Sans", sans-serif;
}

.deals-filter-grid select option:first-child {
    font-weight: 600;
    color: var(--primary);
}

/* Loading state for dropdowns */
.deals-filter-grid select option:contains("Loading") {
    color: var(--secondary);
    font-style: italic;
}

.deals-filter-grid select option:contains("Error") {
    color: #e74c3c;
    font-style: italic;
}

.secondary-btn{
    background-color: var(--primary);
    border-radius: 10px;
    border: 1px solid var(--primary);
    padding: 16px 34px;
    font-weight: 700;
    text-align: center;
    margin: 0;
    font-family: "Noto Sans", sans-serif;
    font-size: 16px;
    line-height: 22px;
    color: var(--white);
}

.secondary-btn:hover, .secondary-btn:active{
    background-color: var(--blue);
    border-color: var(--blue) !important;
}

.light-btn{
    background-color: var(--gray);
    border: 1px solid var(--dark-gray);
    color: var(--dark-blue);
}

.light-btn:hover{
    background-color: var(--primary);
    border: 1px solid var(--primary) !important;
    color: var(--white);
    opacity: 1;
}

.deals-filters {
    margin-bottom: 30px;
}

.deals-controls {
    display: flex;
    width: 100%;
    justify-content: space-between;
    margin-bottom: 20PX;
    padding-top: 30px;
    border-top: 1px solid var(--dark-gray);
    gap: 20px;
}

.deals-controls .search-bar{
    max-width: 70%;
    width: 100%;
}
.deals-controls .search-bar input , .deals-controls .sort-bar select{
    width: 100%;
}
.deals-controls .search-bar{
    position: relative;
}
.deals-controls .search-bar::before{
    content: "";
    background-image: url(https://catoutdoors.com/wp-content/themes/kadence-child/images/search.png);
    position: absolute;
    height: 20px;
    width: 20px;
    z-index: 9;
    top: 18px;
    right: 18px;
}
.deals-controls .sort-by-select{
    position: relative;
    width: 100%;
}
.deals-controls .sort-by-select::before{
    content: "";
    background-image: url(https://catoutdoors.com/wp-content/themes/kadence-child/images/sort.png);
    position: absolute;
    height: 20px;
    width: 20px;
    z-index: 9;
    top: 18px;
    right: 18px;
}
.deals-controls .sort-by-select select{
    background-image: unset !important;
}
.deals-controls .sort-bar{
    display: flex;
    gap: 20px;
    align-items: center;
    width: 30%;
}
.deals-grid{
    padding-top: 30px;
}
.deals-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    padding-top: 0;
}
.deals-grid .deal-image {
    height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--white);
    border-bottom: 1px solid #eee;
}
.deals-grid .deal-image img {
    height: 100%;
    width: auto;
    object-fit: contain;
    aspect-ratio: 1/1;
    max-height: 160px;
}
.deals-grid .deal-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.deal-content-section {
    padding: 15px;
	border:0;
}
.deal-main {
    border: 1px solid #eee;
    height: 100%;
}
.deals-title-section {
    padding-top: 32px;
    margin: 0 auto;
	border:0;
}

.deals-title-section h1 {
    margin-top: var(--global-kb-spacing-xxs, 0.5rem);
    text-align: center;
    font-size: var(--global-kb-font-size-xl, 3rem);
    line-height: 1.1;
}
.deal-title {
    font-size: 16px;
    font-weight: 600;
    font-family: "Noto Sans", sans-serif;
    color: #000;
    line-height: 24px;
}

.calendar-section{
    display: flex;  
    align-items: center;
    gap: 8px;
}
.calendar-section span{
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    font-family: "Noto Sans", sans-serif;
}
.deal-price{
    display: flex;
        gap: 10px;
        align-items: center;
}
.deal-price .current-price {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
    font-family: "Noto Sans", sans-serif;
    line-height: normal;
}
.deal-price .deleted-price{
    font-size: 14px;
    font-weight: 600;
    color: #000;
    font-family: "Noto Sans", sans-serif;
    text-decoration: line-through;
}
.get-deal-section .aval-section {
    padding: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.aval-image{
    display: flex;
    align-items: center;
    gap: 6px;
}
.aval-section p{
    margin: 0;
    font-size: 14px;
    color: #00000080;
    font-family: "Noto Sans", sans-serif;
}
.aval-section .aval-image h5{
    font-size: 14px;
    font-weight: 600;
    color: #000;
    font-family: "Noto Sans", sans-serif;
}
.deal-content-section {
    display: flex;
    flex-direction: column;
    gap: 0;
    height: calc(100% - 170px);
    justify-content: space-between;
    overflow: unset;
}
.get-deal-section{
    display: flex;
    gap: 10px;
    flex-direction: column;
}
.like-dislike-section {
    background: #F7F7F7;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
}

.like-dislike-section p {
    margin: 0;
}

.like-dislike-section .like-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-right: 7px;
    padding-left: 10px;
    padding-top: 0;
    padding-bottom: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.like-dislike-section .like-wrapper.active {
    color: #2ecc71;
}

.like-dislike-section .dislike-wrapper {
    padding-top: 7px;
    padding-bottom: 7px;
    padding-left: 7px;
    padding-right: 10px;
    border-left: 1px solid #0000001A;
    cursor: pointer;
    transition: all 0.3s ease;
}
.like-dislike-section .dislike-wrapper.active {
    color: #e74c3c;
}

.like-dislike-section .dislike-wrapper img {
    transform: rotate(180deg);
}

.like-dislike-section .like-wrapper.loading,
.like-dislike-section .dislike-wrapper.loading {
    opacity: 0.7;
    cursor: wait;
}

.reaction-buttons {
    display: flex;
    gap: 8px;
}

.reaction-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reaction-btn:hover {
    background: #f5f5f5;
}

.reaction-btn.active {
    background: #f0f0f0;
    border-color: #ccc;
}

.reaction-btn.active.like-btn {
    color: #2ecc71;
    border-color: #2ecc71;
}

.reaction-btn.active.dislike-btn {
    color: #e74c3c;
    border-color: #e74c3c;
}

.reaction-btn .icon {
    font-size: 16px;
}

.reaction-btn .count {
    font-size: 14px;
    font-weight: 500;
}

.reaction-btn.loading {
    opacity: 0.7;
    cursor: wait;
}

.get-deal-btn-section{
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
}
.get-deal-btn-section .secondary-btn {
    padding: 10px 14px;
    text-decoration: none;
    font-size: 14px;
    line-height: normal;
}
.get-deal-btn-section .secondary-btn:hover,
.get-deal-btn-section .secondary-btn:focus {
    color:#fff;
}
.get-deal-btn-section p{
    color: #00000080;
    font-size: 12px;
}
.deals-pagination{
    margin-top: 60px;
    padding-bottom: 60px;
    justify-content: center;
    align-items: center;
    display: flex;
    gap: 16px;
}
.deals-pagination .page-numbers{
    padding: 13px 22px;
    border: 1px solid var(--dark-gray);
    background-color: var(--gray);
    font-size: 18px;
    font-weight: 600;
    color: var(--dark-blue) !important;
    text-decoration: unset !important;
}
.deals-pagination .page-numbers.current, .deals-pagination .page-numbers:hover{
    background-color: var(--primary);
    border: 1px solid var(--primary);
    color: var(--white) !important;
}
.deals-pagination .next , .deals-pagination .prev{
    background-image: url(https://catoutdoors.com/wp-content/themes/kadence-child/images/arrow.png);
    height: 56px;
    width: 56px;
    background-size: 24px;
    background-repeat: no-repeat;
    background-position: center;
}
.deals-pagination .prev{
    transform: scaleX(-1);
}
.deals-pagination .next.current, .deals-pagination .next:hover , .deals-pagination .prev.current , .deals-pagination .prev:hover{
    background-image: url(https://catoutdoors.com/wp-content/themes/kadence-child/images/arrow-white.png);
}

.deal-card .dropdown-btn {
    padding: 10px 10px;
    font-size: 14px;
    font-weight: 400;
    color: var(--secondary);
    font-family: "Noto Sans", sans-serif;
    border: 1px solid var(--dark-gray);
    background-color: var(--gray);
    position: relative;
}

.deal-card .dropdown-btn p{
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.deal-card .dropdown-btn p span{
    width: 16px;
    transform: rotate(90deg);
}

.deal-card .dropdown-btn ul {
    list-style: none;
    margin: 0px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
    position: absolute;
    left: 0;
    width: 100%;
    z-index: 1;
    background-color: #fff;
    padding: 10px;
    border: 1px solid #eee;
}

.deal-card .dropdown-btn ul li, .deal-card .dropdown-btn ul li a {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    font-size: 14px;
    font-weight: 400;
    color: var(--secondary);
    text-decoration: none;
}
.w-full{
    width: 100%;
}
.deal-card .dropdown-menu {
    display: none !important;
}
.deal-card .dropdown-menu.show {
    display: flex !important;
}
.deal-card .dropdown-toggle{
    cursor: pointer;
}
.deal-card .dropdown-toggle.active span{
    transform: rotate(268deg);
}
.compare-price-modal.hidden{
    display: none !important;
}
.compare-price-modal.show{
    display: flex !important;
}
.compare-price-modal{
    background: #fff;
    border-radius: 26px;
    padding: 56px 56px;
    max-width: max-content;
    width: 100%;
    position: fixed;
    z-index: 999;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0px 12px;
    display: flex;
    flex-direction: column;
    gap: 56px;
    border: 1px solid var(--dark-gray);
}
.compare-price-modal .modal-header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 56px;
}
.compare-price-modal .modal-body ul{
    margin: 0;
    gap: 0;
    width: 314px;
}
.compare-price-modal ul li a {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    display: flex;
    text-decoration: none;
    align-items: center;
}
.compare-price-modal ul li a img {
    width: 26px;
}

.compare-price-modal ul li{
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;    
    padding: 10px;
    border: 1px solid var(--dark-gray);
    background-color: var(--gray);
    padding: 10px;
    border-bottom: unset;
}
.compare-price-modal ul li:last-child{
    border-bottom: 1px solid var(--dark-gray);
}
.compare-price-modal .modal-body{
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 1458px;
    max-height: 430px;
    overflow-y: auto;
    overflow-x: hidden;
    justify-content: center;
}
.close-icon{
    cursor: pointer;
}
.popupmenu:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    display: inline-block;
    background-color: rgb(0 0 0 / 70%);
    width: 100%;
    height: 100%;
    z-index: 111;
}
.popupmenu {
    position: relative;
    overflow: hidden;
}
.filter-section{
    font-size: 16px;
    line-height: 22px;
    font-weight: 400;
    color: var(--secondary);
    font-family: "Noto Sans", sans-serif;
    border-bottom: 1px solid #000;
    position: relative;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
}
.filter-section span img{
    width: 20px;
    transform: rotate(88deg);
}
.deals-filter-sort-section{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.deals-filter-sort-section{
    display: none;
}
@media screen and (min-width: 576px){
	.deal-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 48px;
}
}
@media screen and (max-width: 757px){
    .compare-price-modal ul:last-child li:first-child {
        border-top: unset;
    }
}


@media screen and (max-width: 1440px){
    .deal-content-section {
        padding: 20px 20px;
    }
}
@media screen and (max-width: 1398px){
    .deals-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media screen and (max-width: 1200px){
    .deals-grid {
        grid-template-columns: repeat(3, 1fr);
		padding-top:30px;
    }
    .deals-filter-grid{
        grid-template-columns: 1fr 1fr;
    }
    .deals-filter-sort-section{
        display: grid;
    }
    .category-filter{
        display: none;
        margin-top: 30px;
    }
    .category-filter.show{
        display: block;
    }
    .deals-controls{
        display: none;
        border-top: unset;
    }
    .deals-controls.show{
        display: flex;
    }
}
@media screen and (max-width: 991px){
    .deals-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .compare-price-modal .modal-body {
        gap: 0;
        font-size: medium;
    }
    /* .compare-price-modal .modal-body ul li:last-child{
        border-bottom: unset;
    }
     */
}
@media screen and (max-width: 767px){
    .compare-price-modal{
        max-width: 90%;
        margin: 0px !important;
    }
    .compare-price-modal{
        padding: 26px;
        gap: 26px;
    }
    .compare-price-modal .close-icon img{
        height: 20px;
    }
    .compare-price-modal .modal-body {
        gap: 0;
    }
    
}
@media screen and (max-width: 575px){
    .deals-grid {
        grid-template-columns: repeat(1, 1fr);
    }
	.deal-content-section {
		height: auto;
	}
    .deals-pagination .page-numbers{
        padding: 8px 14px;
        font-size: 15px;
    }
    .deals-pagination{
        gap: 10px;
    }
    .deals-pagination .next, .deals-pagination .prev{
        height: 42px;
        width: 42px;
        background-size: 15px;
    }
	.deal-title {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        min-height: 48px;
    }

	.deal-title {
		font-size: 15px;
		line-height: 20px;
		min-height: 40px;
	}

	.get-deal-btn-section .secondary-btn {
		font-size: 12px;
		padding: 8px 10px;
	}

	.deal-price .current-price {
		font-size: 16px;
	}

	.get-deal-section {
		gap: 5px;
	}

	.deal-content-section {
		padding: 15px;
	}

	.deal-card .dropdown-btn {
		padding: 5px 10px;
	}
	.deals-grid .deal-image {
		height: 115px;
	}
	.deals-grid .deal-image img {
		max-height: 105px;
	}
    .compare-price-modal .modal-body {
        gap: 0;
    }
   
}

@media screen and (max-width: 1427px){
    .deals-filter-grid{
        display: grid;
   
        width: 100%;
    }
    .deals-filter-grid select{
        width: 100%;
    }
    
}

@media screen and (max-width: 1200px){
    .deals-controls{
        flex-wrap: wrap;
        width: 100%;
    }
    .deals-controls .search-bar{
        max-width: 100%;
    }
    .deals-controls .sort-bar{
        width: 100%;
    }
}

@media screen and (max-width: 767px){
    .deals-filter-grid{
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        display: flex;
    }
    .deals-filters .secondary-btn{
        width: 100%;
    }
}

/* Deals loader and no-more-deals styling */
#deals-loader {
    text-align: center;
    padding: 40px 20px;
    background: var(--gray);
    border-radius: 10px;
    margin: 20px 0;
}

#deals-loader .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--dark-gray);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#load-more-container {
    text-align: center;
    padding: 20px;
    margin: 20px 0;
}

#load-more-btn {
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    background: var(--primary);
    color: var(--white);
    border: 1px solid var(--primary);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#load-more-btn:hover {
    background: var(--blue);
    border-color: var(--blue);
}

#load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#no-more-deals {
    text-align: center;
    padding: 40px 20px;
    background: var(--light-gray);
    border-radius: 10px;
    margin: 20px 0;
    border: 1px solid var(--dark-gray);
}

#no-more-deals p {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--secondary);
    font-family: "Noto Sans", sans-serif;
}

/* Loading state for deals container */
.deals-grid.loading {
    opacity: 0.6;
    pointer-events: none;
}
#deals-filter-form select option:hover, #deals-filter-form select option:focus {
    background: #F7FAFC !important;
}


/* Style for TOC prefix (before colon/dash) */
.kb-table-of-contents__entry .toc-prefix {
    color: #B20000; /* red */
    font-weight: bold;
}

/* Style for TOC remainder (after colon/dash) */
.kb-table-of-contents__entry .toc-main {
    color: #2B6CB0; /* blue */
}

a.kb-table-of-contents__entry span.toc-main {
    font-weight: 400;
}
a.kb-table-of-contents__entry  {
    font-weight: 700;
}

