/* 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-wrapper {
    position: relative;
}

.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-container {
    position: relative;
}

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

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

.ppc-brand-search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #ddd;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 200px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
}

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

.ppc-brand-search-item {
    padding: 10px 15px;
    cursor: pointer;
    transition: background 0.2s;
}

.ppc-brand-search-item:hover {
    background: #f5f5f5;
}

.ppc-brand-search-no-results {
    padding: 10px 15px;
    color: #999;
    font-style: italic;
}

/* 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: touch;
    position: relative;
    scrollbar-width: thin;      
    scrollbar-color: #999 #f0f0f0;
}

.ppc-brands-wrapper::-webkit-scrollbar {
    height: 6px;
}

.ppc-brands-wrapper::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 3px;
}

.ppc-brands-wrapper::-webkit-scrollbar-thumb {
    background-color: #999;
    border-radius: 3px;
    border: 2px solid #f0f0f0;
}

@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;
}

.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: center;
}

.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;
    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: 12px;
    color: #A9A9A9;
    font-weight: 400;
    margin-bottom: 4px;
}

.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: 16px;
}

/* 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;
}

/* 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 {
        display: none;
    }
}

/* Mobile - always show both buttons */
@media (max-width: 767px) {
    .ppc-btn-service {
        font-size: 12px !important;
        padding: 10px 5px !important;
    }
    
    .ppc-btn-stock {
        font-size: 12px;
    }
    
    .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;
	}
}

/* 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: center;
    padding: 40px;
    color: #666;
}