.totl-category-section {
    display: flex;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Sidebar - Modern & Clean */
.totl-sidebar {
    flex: 0 0 280px;
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
}

.totl-sidebar-title {
    margin: 0 0 1.25rem;
    font-size: 1.4rem;
    color: #1e293b;
}

.totl-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
	color: #666666;
    font-family: 'inter';
	gap: 10px;
    display: grid;
}
.totl-category-list label {
	font-size: 15px;
}
}
.totl-cat-parent, .totl-cat-all {
    margin-bottom: 1rem;
}

.totl-cat-toggle {
    cursor: pointer;
    font-weight: bold;
    margin-left: 0.5rem;
    color: #64748b;
    transition: color 0.2s;
}

.totl-cat-toggle:hover {
    color: #2f57ef;
}

.totl-cat-children {
	padding-left: 1.8rem;           /* indent children a bit */
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.totl-cat-children label {
    display: flex;
    align-items: center;
    gap: 0.75rem;                   /* space between checkbox and text */
    cursor: pointer;
    padding: 0.4rem 0;              /* make label taller → easier tap */
    margin: 0;
    transition: background 0.2s;
    border-radius: 6px;
}

.totl-cat-children label:hover {
    background: #f8fafc;            /* light gray hover */
}

.totl-cat-checkbox {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #EEEBEB;
    border-radius: 4px;
    transition: all 0.2s;
    position: relative;
    cursor: pointer;
	margin: 0;                      /* reset default margin */
    flex-shrink: 0;                 /* prevent squishing */
}

.totl-cat-checkbox:checked {
	background: #81d742;
    border-color: #81d742;
}

.totl-cat-checkbox:checked::after {
content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background-color: white;              /* this becomes the icon color */
    -webkit-mask: url('/wp-content/uploads/2026/03/checkmark-ot.svg') no-repeat center/contain;
    mask: url('/wp-content/uploads/2026/03/checkmark-ot.svg') no-repeat center/contain;
}

label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    color: #1e293b;
    font-size: 1rem;
    transition: color 0.2s;
}

label:hover {
    color: #2f57ef;
}

/* Product Grid - Modern Cards */
.totl-products-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.totl-product-card {
    background: white;
    border-radius: 20px;
    border: 1px solid #EEEBEB;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}

.totl-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.totl-product-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 20px!important;  
    margin-bottom: 1rem;
}

.totl-product-meta {
    display: flex;
	justify-content: space-evenly;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.totl-meta-item {
	display: flex;
    gap: 0px;
    margin-bottom: 0px;
    flex-direction: row;
    align-items: flex-start;
    background: #f1f5f9;
	border-radius: 10px;
	padding:5px;
    font-size: 13px;
    color: #475569;
}

.totl-product-title {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 0.5rem;
    line-height: 1.2;
    font-family: 'inter';
}

.totl-product-price {
    font-size: 1rem;
    color: #6b7385;
    font-family: 'inter';
    font-weight: 700;
}
.card-header {
    padding: 10px;	
}
.card-header span {
    font-size: 15px;
    color: #73738c;
    font-weight: 500;
}
.card-footer {
    display:flex;
    justify-content: space-between;
    padding: 10px;
}
.totl-learn-more {
    text-align: center;
    font-weight: 600;
    transition: background 0.2s;
    color: #2e353c;
    }
.totl-learn-more:hover {
    color: #3aab42;    
}
a.totl-learn-more {
	position: relative;
	display: inline-block;
}
a.totl-learn-more:after {
    position: absolute;
    content: "";
    left: auto;
    bottom: 0;
    background: #3aab42;
    width: 0;
    height: 2px;
    transition: 0.3s;
    right: 0;
}
a.totl-learn-more:hover::after {
    width: 100%;
    left: 0;
    right: auto;
}
.totl-product-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 8px; /* optional - soft corners on whole card image area */
}

.totl-product-main-image {
    display: block;
    width: 100%;
    height: auto;
}

.totl-category-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 1);
    border-radius: 50%; /* perfect circle */
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    overflow: hidden;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px; /* tiny inner padding */
}

.totl-category-badge img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Optional: square badge instead of circle */
.totl-category-badge.square {
    border-radius: 6px;
}

/* Optional: smaller on mobile */
@media (max-width: 768px) {
    .totl-category-badge {
        width: 40px;
        height: 40px;
        top: 10px;
        left: 10px;
    }
}
/* Responsive */
@media (max-width: 1024px) {
    .totl-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .totl-category-section {
        flex-direction: column;
    }
    .totl-sidebar {
        flex-basis: 100%;
    }
    .totl-products-grid {
        grid-template-columns: 1fr;
    }
}

.loading {
    text-align: center;
    padding: 2rem;
    color: #64748b;
}