/* Product Filtering Section - Modern Design */
.common-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 20px;
}

.common-section .section-container {
    margin: 0 auto;
    width: 100%;
}

.common-section .section-main-layout {
    background: #ffffff;
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(60, 7, 83, 0.08);
}

.common-section .title-h2 {
    font-size: 30px;
    color: #3C0753;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.common-section .title-h2 i {
    color: #ff6c2c;
    font-size: 2.2rem;
}

.common-section .product-filtering-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.common-section .product-filtering {
    background: linear-gradient(135deg, #fafbfc 0%, #ffffff 100%);
    border: 2px solid transparent;
    border-radius: 20px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.common-section .product-filtering::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3C0753, #720455, #910A67, #ff6c2c);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.common-section .product-filtering:hover::before {
    transform: scaleX(1);
}

.common-section .product-filtering:hover {
    border-color: rgba(145, 10, 103, 0.1);
    box-shadow: 0 8px 24px rgba(60, 7, 83, 0.12);
    transform: translateY(-2px);
}

.common-section .product-filtering-title {
    font-size: 1.4rem;
    color: #3C0753;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.common-section .product-filtering-title i {
    color: #720455;
    font-size: 1.3rem;
}

.common-section .filter-common-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.common-section .filter-common-btn {
    background: #ffffff;
    color: #3C0753;
    border: 2px solid #e9ecef;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.common-section .filter-common-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #720455, #910A67);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.common-section .filter-common-btn:hover {
    border-color: #910A67;
    color: #720455;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(114, 4, 85, 0.2);
}

.common-section .filter-common-btn.active {
    background: linear-gradient(135deg, #720455, #910A67);
    color: #ffffff !important;
    border-color: #910A67;
    box-shadow: 0 6px 20px rgba(145, 10, 103, 0.3);
}

/* Price Range Styling */
.common-section .product-filtering div {
    gap: 5px;
}

.common-section .d-flex {
    display: flex;
}

.common-section .flex-row {
    flex-direction: row;
}

.common-section .justify-content-between {
    justify-content: space-between;
}

.common-section #rangeMinValue,
.common-section #rangeMaxValue {
    display: inline-block;
    background: linear-gradient(135deg, #3C0753, #720455);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(60, 7, 83, 0.2);
}

.common-section #productPriceRangeMin {
    width: 100%;
    height: 8px;
    border-radius: 8px;
    outline: none;
    background: linear-gradient(90deg, #e9ecef 0%, #e9ecef 100%);
    -webkit-appearance: none;
    cursor: pointer;
    margin: 12px 0;
}

.common-section #productPriceRangeMin::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6c2c, #910A67);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255, 108, 44, 0.4);
    transition: all 0.3s ease;
}

.common-section #productPriceRangeMin::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6c2c, #910A67);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255, 108, 44, 0.4);
    transition: all 0.3s ease;
    border: none;
}

.common-section #productPriceRangeMin::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(255, 108, 44, 0.6);
}

.common-section #productPriceRangeMin::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(255, 108, 44, 0.6);
}

.common-section #resetFunc {
    background: linear-gradient(135deg, #ff6c2c, #910A67);
    color: #ffffff;
    border: none;
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(255, 108, 44, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 10px;
}

.common-section #resetFunc:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(255, 108, 44, 0.5);
    background: linear-gradient(135deg, #910A67, #ff6c2c);
}

.common-section #resetFunc:active {
    transform: translateY(-1px);
}

/* Tablet Landscape - Large (1024px - 1199px) */
@media (max-width: 1199px) {
    .common-section .product-filtering-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

    .common-section .section-main-layout {
        padding: 28px;
    }

    .common-section .filter-common-btn {
        padding: 11px 20px;
        font-size: 0.92rem;
    }
}

/* Tablet Portrait - Medium (768px - 1023px) */
@media (max-width: 1023px) {
    .common-section {
        padding: 16px;
    }

    .common-section .section-main-layout {
        padding: 24px;
        border-radius: 20px;
    }

    .common-section .title-h2 {
        font-size: 1.8rem;
    }

    .common-section .title-h2 i {
        font-size: 1.8rem;
    }

    .common-section .product-filtering-container {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .common-section .product-filtering-title {
        font-size: 1.25rem;
    }

    .common-section .product-filtering-title i {
        font-size: 1.2rem;
    }

    .common-section .filter-common-btn {
        padding: 10px 18px;
        font-size: 0.9rem;
    }

    .common-section .filter-common-container {
        gap: 10px;
    }
}

/* Mobile Landscape - Small Tablet (600px - 767px) */
@media (max-width: 767px) {
    .common-section {
        padding: 12px;
    }

    .common-section .section-main-layout {
        padding: 20px;
        border-radius: 16px;
    }

    .common-section .title-h2 {
        font-size: 1.6rem;
        gap: 10px;
    }

    .common-section .title-h2 i {
        font-size: 1.6rem;
    }

    .common-section .product-filtering {
        padding: 18px;
        border-radius: 16px;
    }

    .common-section .product-filtering-title {
        font-size: 1.15rem;
        margin-bottom: 16px;
    }

    .common-section .filter-common-btn {
        padding: 10px 16px;
        font-size: 0.88rem;
    }

    .common-section #rangeMinValue,
    .common-section #rangeMaxValue {
        padding: 7px 14px;
        font-size: 0.9rem;
    }

    .common-section #resetFunc {
        padding: 12px 28px;
        font-size: 0.95rem;
    }
}

/* Mobile Portrait - Medium (480px - 599px) */
@media (max-width: 599px) {
    .common-section {
        padding: 10px;
    }

    .common-section .section-main-layout {
        padding: 18px;
    }

    .common-section .title-h2 {
        font-size: 1.4rem;
        gap: 8px;
    }

    .common-section .title-h2 i {
        font-size: 1.4rem;
    }

    .common-section .product-filtering {
        padding: 16px;
    }

    .common-section .product-filtering-title {
        font-size: 1.1rem;
        gap: 8px;
    }

    .common-section .product-filtering-title i {
        font-size: 1.1rem;
    }

    .common-section .filter-common-container {
        gap: 8px;
    }

    .common-section .filter-common-btn {
        padding: 9px 14px;
        font-size: 0.85rem;
        border-radius: 10px;
    }

    .common-section #rangeMinValue,
    .common-section #rangeMaxValue {
        padding: 6px 12px;
        font-size: 0.85rem;
    }

    .common-section #productPriceRangeMin {
        height: 6px;
        margin: 10px 0;
    }

    .common-section #productPriceRangeMin::-webkit-slider-thumb {
        width: 20px;
        height: 20px;
    }

    .common-section #productPriceRangeMin::-moz-range-thumb {
        width: 20px;
        height: 20px;
    }

    .common-section #resetFunc {
        padding: 11px 24px;
        font-size: 0.9rem;
    }
}

/* Mobile Portrait - Small (320px - 479px) */
@media (max-width: 479px) {
    .common-section {
        padding: 8px;
    }

    .common-section .section-main-layout {
        padding: 16px;
        border-radius: 12px;
    }

    .common-section .title-h2 {
        font-size: 1.25rem;
        gap: 6px;
        flex-wrap: wrap;
    }

    .common-section .title-h2 i {
        font-size: 1.25rem;
    }

    .common-section .product-filtering {
        padding: 14px;
        border-radius: 12px;
    }

    .common-section .product-filtering-title {
        font-size: 1rem;
        margin-bottom: 14px;
        gap: 6px;
    }

    .common-section .product-filtering-title i {
        font-size: 1rem;
    }

    .common-section .filter-common-container {
        gap: 8px;
    }

    .common-section .filter-common-btn {
        flex: 1 1 calc(50% - 4px);
        min-width: calc(50% - 4px);
        padding: 9px 12px;
        font-size: 0.8rem;
        text-align: center;
        border-radius: 8px;
    }

    /* Specific adjustments for better two-column layout */
    .common-section .ProcessorFinderContainer .filter-common-btn:first-child,
    .common-section #CoreBtnContainer .filter-common-btn:first-child,
    .common-section #BrandBtnContainer .filter-common-btn:first-child {
        flex: 1 1 100%;
        min-width: 100%;
    }

    .common-section #rangeMinValue,
    .common-section #rangeMaxValue {
        padding: 6px 10px;
        font-size: 0.8rem;
        border-radius: 6px;
    }

    .common-section #productPriceRangeMin {
        height: 6px;
        margin: 8px 0;
    }

    .common-section #productPriceRangeMin::-webkit-slider-thumb {
        width: 18px;
        height: 18px;
    }

    .common-section #productPriceRangeMin::-moz-range-thumb {
        width: 18px;
        height: 18px;
    }

    .common-section #resetFunc {
        padding: 10px 20px;
        font-size: 0.85rem;
        border-radius: 10px;
        letter-spacing: 0.3px;
    }
}

/* Extra Small Devices (below 360px) */
@media (max-width: 359px) {
    .common-section .section-main-layout {
        padding: 12px;
    }

    .common-section .title-h2 {
        font-size: 1.1rem;
    }

    .common-section .title-h2 i {
        font-size: 1.1rem;
    }

    .common-section .product-filtering {
        padding: 12px;
    }

    .common-section .product-filtering-title {
        font-size: 0.95rem;
    }

    .common-section .filter-common-btn {
        padding: 8px 10px;
        font-size: 0.75rem;
    }

    .common-section #rangeMinValue,
    .common-section #rangeMaxValue {
        padding: 5px 8px;
        font-size: 0.75rem;
    }

    .common-section #resetFunc {
        padding: 9px 16px;
        font-size: 0.8rem;
    }
}