/* NEW */
.ppc-stock-filter {
    margin-top: 15px;
}

.ppc-stock-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.ppc-stock-toggle input[type="checkbox"] {
    display: none;
}

.ppc-toggle-slider {
    position: relative;
    width: 50px;
    height: 26px;
    background-color: #ccc;
    border-radius: 26px;
    transition: background-color 0.3s;
}

.ppc-toggle-slider::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    left: 3px;
    top: 3px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s;
}

.ppc-stock-toggle input:checked + .ppc-toggle-slider {
    background-color: #C77732;
}

.ppc-stock-toggle input:checked + .ppc-toggle-slider::before {
    transform: translateX(24px);
}

.ppc-toggle-label {
    font-weight: 500;
}

/* NEW over */

/* making scroll more visible in mobile */
/* Mobile scrolling only */
@media (max-width: 767px) {
	.ppc-scroll-brands-wrapper{
		position: relative;
	}
  .ppc-brands-wrapper {
    overflow-x: scroll !important;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch !important;
    scroll-behavior: smooth;
    flex-wrap: nowrap !important;
    padding-right: 50px; /* Make space for arrow */
  }

  .ppc-scroll-arrow {
    display: block;
    position: absolute;
    right: 0px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 26px;
    color: #999;
    z-index: 10;
    background-color: #fff;
    padding: 5px 10px;
    cursor: pointer;
    user-select: none;
    box-shadow: -2px 0 5px rgba(0,0,0,0.1);
  }
}

/* Hide scroll arrow on desktop */
@media (min-width: 768px) {
  .ppc-scroll-arrow {
    display: none;
  }
}


/* Alert icon for no brand button */
.ppc-alert-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: #1D272B;
    color: white;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    margin-left: 8px;
    line-height: 1;
}

/* Brand search spinner 

.ppc-brand-search-input {
    padding-right: 30px; 
}

.ppc-brand-search-spinner {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid #ccc;
    border-top: 2px solid #999;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: none;
}

@keyframes spin {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}
*/

/* Custom brand search dropdown */
.ppc-brand-search-wrapper {
    margin-top: 15px;
    display: none;
}
.select2-container--open{
	top: 0px !important;
	width: 100% !important;
}

.ppc-brand-search-wrapper.active {
    display: block;
}

@media (min-width: 768px) {
    .ppc-brand-search-wrapper {
        display: block;
        margin-top: 0;
        flex: 1 1 100%;
    }
}

.ppc-brand-search {
    width: 100% !important;
    padding: 10px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}
.ppc-brand-search-wrapper .select2-container{
	width: 100% !important;
}

/* Container */
.ppc-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: var(--e-global-typography-text-font-family), Sans-serif !important;
}

/* Brand Filter */
.ppc-brand-filter {
    margin-bottom: 30px;
}

.ppc-brand-filter h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.ppc-brands-wrapper {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
    padding-top: 5px;
    -webkit-overflow-scrolling: auto;
    position: relative;
    scrollbar-width: thin;      
    scrollbar-color: #999 #f0f0f0;
}

.ppc-brands-wrapper::-webkit-scrollbar {
    height: 6px!important;
	width: 12px !important;
	-webkit-overflow-scrolling: auto;
}
.ppc-brands-wrapper::-webkit-scrollbar:horizontal {
    height: 12px!important;
}

.ppc-brands-wrapper::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3) !important;
   -webkit-border-radius: 10px !important;
   border-radius: 10px !important;
}

.ppc-brands-wrapper::-webkit-scrollbar-thumb {
    -webkit-border-radius: 10px !important;
   border-radius: 10px !important;
   background: #41617D !important; 
   -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.5) !important; 
}
.ppc-brands-wrapper::-webkit-scrollbar-thumb:window-inactive {
   background: #41617D !important; 
 }

@media (min-width: 768px) {
    .ppc-brands-wrapper {
        flex-wrap: wrap;
        overflow-x: visible;
    }
    
    .ppc-brand-search-wrapper {
        display: block !important;
        margin-top: 0;
        flex: 1 1 100%;
    }
}

.ppc-brand-chip {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    border: 2px solid #ddd;
    border-radius: 25px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 500;
}

.ppc-brand-chip:hover {
    border-color: #999;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.ppc-brand-chip.active {
    background: #C77732;
    border-color: #C77732;
    color: white;
}

.ppc-brand-search-wrapper {
    margin-top: 15px;
    display: none;
}

.ppc-brand-search-wrapper.active {
    display: block;
}

button.ppc-no-brand-btn{
	position: unset !important;
}
.ppc-no-brand-btn {
    color: #1D272B !important;
    margin-top: 10px;
    padding: 8px 16px;
    background: transparent !important;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    display: inline-flex;
    align-items: flex-start;
}

.ppc-no-brand-btn:hover {
    background: #e0e0e0 !important;
}

/* Size Filter */
.ppc-size-filter {
    margin-bottom: 30px;
}

.ppc-size-filter h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.ppc-size-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.ppc-size-card {
    padding: 20px;
    border: 2px solid #ddd;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.ppc-size-card:hover {
    border-color: #999;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.ppc-size-card.active {
    border-color: #C77732;
    background: #C77732;
}

.ppc-size-card .size-label {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 1px;
}

.ppc-size-card .size-range {
    font-size: 13px;
    color: #666;
}

.ppc-size-card.active .size-label,
.ppc-size-card.active .size-range {
    color: #fff;
}

/* Type Filter */
.ppc-type-filter {
    margin-bottom: 30px;
}

.ppc-type-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: #f5f5f5;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
}

.ppc-type-toggle:hover {
    background: #e0e0e0;
}

.ppc-type-toggle::after {
    content: '▼';
    transition: transform 0.3s ease;
}

.ppc-type-toggle.active::after {
    transform: rotate(180deg);
}

.ppc-type-options {
    display: none;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.ppc-type-options.active {
    display: grid;
}

.ppc-type-card {
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.ppc-type-card:hover {
    border-color: #999;
    transform: translateY(-2px);
}

.ppc-type-card.active {
    border-color: #C77732;
    background: #fff;
}

.ppc-type-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.ppc-type-label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

/* Results */
.ppc-results {
    margin-top: 40px;
}

.ppc-loading {
    display: none;
    text-align: center;
    padding: 40px;
    font-size: 16px;
    color: #666;
}

.ppc-loading.active {
    display: block;
}

.ppc-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #C77732;
    border-top: 4px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

/* Product Grid */
.ppc-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

@media (max-width: 1024px) {
    .ppc-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .ppc-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

/* Product Item */
.ppc-product-item {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: white;
    transition: all 0.3s ease;
    height: 100%;
}



.ppc-product-image-wrap {
    width: 100%;
}

.ppc-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ppc-product-content {
    padding: 15px 0px 0px 0px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Product Title */
.ppc-product-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 0 0;
    line-height: 1.4;
    min-height: 60px;
}

.ppc-title-main {
    display: block;
    color: #333;
}

.ppc-title-type {
    display: block;
    color: #A9A9A9;
    font-weight: 400;
    margin-top: 4px;
}

.ppc-title-specs {
    display: block;
    color: #A9A9A9;
    font-weight: 400;
}

/* Product Category */
.ppc-product-category {
    font-size: 12px;
    color: #A9A9A9;
}

/* Product Pricing */
.ppc-product-pricing {
    margin-bottom: 12px;
}

.ppc-original-price {
    font-size: 14px;
    color: #A9A9A9;
    font-weight: 400;
    margin-bottom: 1px;
}
.ppc-price-label{
	font-size: 14px;
}


.ppc-our-price {
    font-size: 14px;
}
.ppc-original-price .ppc-price-amount .amount{
	color: #A9A9A9 !important;
	font-weight: 400 !important;
}
.ppc-price-label {
    font-weight: 400;
    color: var(--wd-primary-color);
}

.ppc-our-price .ppc-price-amount {
    font-weight: 700;
    color: #333;
    font-size: 14px;
}

/* General Service Note */
.ppc-general-service-note {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
    margin: 10px 0;
}

/* Product Actions */
.ppc-product-actions {
    padding: 0 15px 0px 0px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
	min-height: 80px;
	justify-content: flex-end;
}

/* Buttons */
.ppc-btn {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.ppc-btn-service {
    background-color: transparent !important;
    color: #1d272b !important;
    border: 1px solid #1d272b !important;
    font-family: var(--e-global-typography-text-font-family), Sans-serif;
    font-size: 13px !important;
	font-weight: 400 !important;
    letter-spacing: var(--e-global-typography-text-letter-spacing, normal);
	min-height: unset !important;
}

.ppc-btn-stock {
    background: white;
    color: #ff6b35;
    border: 2px solid #ff6b35;
    display: flex;
	gap: 0 !important;
    flex-direction: column;
    align-items: center;
    padding: 8px 15px;
    line-height: 1.2;
}

.ppc-btn-stock .ppc-btn-small {
    font-size: 11px;
    font-weight: 400;
}

.ppc-btn-stock .ppc-btn-large {
    font-size: 14px;
    font-weight: 600;
}

.ppc-btn-stock:hover {
    background: #fff5f2;
}

/* Desktop hover behavior - show stock button */
@media (min-width: 768px) {
    .ppc-product-item:not(:hover) .ppc-btn-stock {
        visibility: hidden; 
        height: 40px;
    }
	.ppc-product-item:hover .ppc-btn-stock {
        visibility: visible;
    }
}

/* Mobile - always show both buttons */
@media (max-width: 767px) {
    .ppc-product-actions {
        min-height: auto; 
    }
    
    .ppc-btn-service {
        font-size: 12px !important;
        padding: 10px 5px !important;
    }
    
    .ppc-btn-stock {
        font-size: 12px;
        visibility: visible !important; 
		padding: 5px 3px !important;
    }
    
    .ppc-btn-stock .ppc-btn-small {
        font-size: 10px;
    }
    
    .ppc-btn-stock .ppc-btn-large {
        font-size: 12px;
    }
	.ppc-no-brand-btn{
		display: inline !important;
	}
	.ppc-product-pricing{
		margin-bottom: 5px !important;
	}
	.ppc-general-service .ppc-product-title{
		min-height: unset;
	}
	.ppc-general-service .ppc-product-pricing{
		margin-bottom: 0px;
	}
	.ppc-general-service .ppc-general-service-note{
		margin: 5px 0px;
	}
}

/* Load More */
.ppc-load-more-wrapper {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
}

.ppc-load-more-btn {
    padding: 15px 40px;
    background: #C77732;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ppc-load-more-btn:hover {
    background: #a86028;
    transform: translateY(-2px);
}

.ppc-load-more-btn:disabled {
    background: #ddd;
    cursor: not-allowed;
    transform: none;
}

/* No Results */
.ppc-no-results {
    text-align: left;
    padding: 5px;
    color: #666;
}