/* --- Featured Slideshow Start --- */
.featured-slideshow {
    position: relative;
    width: 100%;
    overflow: hidden;
    z-index: 1;
}

.slideshow-container {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    overflow: hidden;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide-background {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.6) 50%, rgba(0, 0, 0, 0.1) 100%);
    padding: 0 8%;
    z-index: 1;
}

.slide:nth-child(2) .slide-content {
    background: rgba(0, 0, 0, 0.15);
}

.slide:nth-child(3) .slide-content {
    background: transparent;
}

.slide-text {
    max-width: 600px;
    color: #fff;
    z-index: 3;
}

.slide-text h2 {
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 16px;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    align-items: top;
    display: flex;
}

.slide-text h2 span {
    font-size: 16px;
}

.slide-text p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 22px;
    text-shadow: 0 0 14px rgba(0, 0, 0, 1);
}

.slide-btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none !important;
}

.slide-btn:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
}

.slide:nth-child(1) .slide-btn {
    background-color: rgba(0, 122, 255, 0.4);
    border: 1px solid rgba(0, 122, 255, 1);
}

.slide:nth-child(1) .slide-btn:hover {
    background-color: rgba(0, 122, 255, 1);
}

.slide:nth-child(2) .slide-btn {
    background-color: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 1);
    color: black;
}

.slide:nth-child(2) .slide-btn:hover {
    background-color: rgba(255, 255, 255, 1);
}

.slide:nth-child(3) .slide-btn {
    background-color: rgba(94, 0, 156, 0.4);
    border: 1px solid rgba(94, 0, 156, 1);
}

.slide:nth-child(3) .slide-btn:hover {
    background-color: rgba(94, 0, 156, 1);
}

.slideshow-navigation {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    z-index: 10;
}

.nav-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.nav-btn:hover {
    opacity: 1;
}

.slideshow-dots {
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: white;
    transform: scale(1.2);
}

@media screen and (max-width: 1400px) {
    .slide-text h2 {
        font-size: 40px;
    }

    .slide-text p {
        font-size: 16px;
    }

    .slideshow-container {
        height: 350px;
    }
}

@media screen and (max-width: 992px) {
    .slide-text h2 {
        font-size: 30px;
    }

    .slide:nth-child(2) .slide-text p {
        width: 70%;
    }

    .slide-text p {
        font-size: 14px;
    }

    .slideshow-container {
        height: 400px;
    }
}

@media screen and (max-width: 768px) {
    .slide-text {
        max-width: 100%;
    }

    .slide-content {
        background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.6) 50%, rgba(0, 0, 0, 0.4) 100%);
        padding: 0 5%;
    }

    .slide-text h2 {
        font-size: 1.8rem;
    }

    .slide-text p {
        font-size: 0.9rem;
        margin-bottom: 22px;
        width: 80%
    }

    .slide:nth-child(2) .slide-text p {
        width: 55%;
    }

    .slide:nth-child(3) .slide-text p {
        width: 60%;
    }

    .slide-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .slideshow-container {
        height: 350px;
    }
}

@media screen and (max-width: 480px) {
    .slide-text h2 {
        font-size: 18px;
        margin-top: 0;
        margin-bottom: 8px;
    }

    .slide-text p {
        font-size: 10px;
        margin-bottom: 8px;
        width: 80%;
    }

    .slide:nth-child(2) .slide-text p {
        width: 60%;
    }

    .slide:nth-child(3) .slide-text p {
        width: 60%;
    }

    .slide-btn {
        padding: 6px 12px;
        font-size: 8px;
        margin-bottom: 16px;
    }

    .slideshow-container {
        height: 225px;
    }

    .nav-btn {
        font-size: 14px;
    }

    .dot {
        width: 6px;
        height: 6px;
    }

    .slideshow-dots {
        gap: 8px;
    }
}

/* --- Featured Slideshow End --- */

/* --- Product Listing Section Start --- */
.section-header {
    margin: 0 0 20px;
}

.product-listing-section {
    padding: 30px 0;
    max-width: min(92.5%, var(--section-max-width));
    margin: 0 auto;
}

.listing-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}

/* Sidebar Filters */
.filters-sidebar {
    background: white;
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    height: fit-content;
    position: sticky;
    top: 120px;
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px 15px 20px;
    border-bottom: 1px solid #e9ecef;
}

.filters-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #222;
}

.clear-all-filters {
    background: none;
    border: none;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px;
    transition: 0.2s ease-in-out;
}

.clear-all-filters a {
    color: var(--accent-color);
    text-decoration: none !important;
}

.clear-all-filters:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
    text-decoration: underline !important;
}

.filter-group {
    border-bottom: 1px solid #f0f0f0;
}

.filter-group:last-child {
    border-bottom: none;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.filter-header:hover {
    background-color: #f8f9fa;
}

.filter-header h4 {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.toggle-icon {
    font-size: 12px;
    color: #666;
    transition: transform 0.3s ease;
}

.filter-header.active .toggle-icon {
    transform: rotate(180deg);
}

.filter-content {
    padding: 6px 20px 20px;
    display: none;
}

.filter-content.active {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    align-items: start;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    position: relative;
    padding: 0 8px 0 22px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    color: #555;
    transition: color 0.2s ease;
    line-height: 18px;
}

.filter-checkbox:hover {
    color: #333;
}

.filter-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    left: 0;
    width: 16px;
    height: 16px;
    background-color: #fff;
    border: 2px solid #ddd;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.filter-checkbox:hover .checkmark {
    border-color: #bbb;
}

.filter-checkbox input:checked~.checkmark {
    background-color: var(--accent-color, #6907c5);
    border-color: var(--accent-color, #6907c5);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 4px;
    top: 0;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.filter-checkbox input:checked~.checkmark:after {
    display: block;
}

.slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #ddd;
    outline: none;
    transition: background 0.2s ease;
}

.slider:hover {
    background: #ccc;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent-color, #6907c5);
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent-color, #6907c5);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.range-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 11px;
    color: #666;
}

/* Product Grid*/
.products-main {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 18px;
    border-bottom: 1px solid #e9ecef;
}

.products-header-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    background-color: #f2f2f2;
    border-radius: 20px;
    padding: 0 15px;
    width: 600px;
}

.search-box i {
    color: #999;
    margin-right: 10px;
    font-size: 12px;
}

.search-box input {
    border: none;
    background: transparent;
    padding: 10px 0;
    width: 100%;
    outline: none;
    font-size: 12px;
    color: #666;
}

.results-count {
    font-size: 11px;
    font-weight: 600;
    color: #666;
}

.sort-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-controls label {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

#sort-select {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 12px;
    background: white;
    font-size: 12px;
    color: #333;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

#sort-select:focus {
    outline: none;
    border-color: var(--accent-color, #6907c5);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 25px 30px;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border-color: #f0f0f0;
}

.product-image {
    margin: 0 auto;
    width: 100%;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.product-image img {
    max-width: 60%;
    max-height: 60%;
    object-fit: contain;
    transition: transform 0.3s ease;
    border-radius: 10px;
    display: block;
    margin: 0 auto;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.badge {
    padding: 3px 6px;
    border-radius: 6px;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge.refurbished {
    background: #ff9500;
    color: white;
}

.badge.new {
    background: #08b442;
    color: white;
    width: fit-content;
}

.badge.out-of-stock {
    background: #ff0000;
    color: white;
}

.product-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 2;
}

.wishlist-btn:hover {
    transform: scale(1.1);
    background-color: white;
}

.wishlist-btn i {
    color: var(--accent-color);
    font-size: 14px;
}

.wishlist-btn:hover i {
    color: var(--accent-color);
}

.wishlist-btn.active i {
    color: var(--accent-color);
}

.product-card-header {
    padding: 14px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.product-basic-info {
    display: flex;
    justify-content: center;
    text-align: center;
}

.product-basic-info h3 {
    color: #222;
    font-size: 13px;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.product-content {
    padding: 8px 16px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.price-container {
    display: flex;
    justify-content: flex-start;
    align-items: first baseline;
    gap: 6px;
    margin: 16px 0 0 0;
    color: #222;
    font-size: 11px;
    font-weight: 500;
}

.price {
    font-weight: 700;
    font-size: 18px;
    color: var(--accent-color);
}

.specs-list {
    margin: 15px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 16px;
    color: #222;
    font-size: 13px;
    font-weight: 500;
}

.spec-item img {
    width: 18px;
    height: 18px;
    filter: brightness(0) saturate(100%) invert(28%) sepia(10%) saturate(1000%) hue-rotate(200deg) brightness(100%) contrast(100%);
}

.product-card-actions {
    display: flex;
    width: 100%;
    gap: 10px;
    margin-top: auto;
}

.view-button,
.add-to-cart-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex: 1;
    padding: 10px;
    border-radius: 14px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

.view-button {
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
}

.add-to-cart-btn {
    background: linear-gradient(270deg, #ff4c4c, #a71c1c, #ff4c4c, #a71c1c);
    background-size: 300% 100%;
    background-position: 0% 0%;
    color: #fff;
}

.add-to-cart-btn.disabled {
    background: #6c757d;
    background-size: 100% 100%;
    color: #adb5bd;
    cursor: not-allowed;
    opacity: 0.7;
}

.view-button:hover,
.add-to-cart-btn:hover {
    background-position: 100% 0%;
    transform: translateY(-2px);
    text-decoration: none;
}

.view-button:hover {
    background: var(--accent-color);
    color: white;
}

.load-more-section {
    text-align: center;
    padding: 16px;
    border-top: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.load-more-btn {
    background: linear-gradient(270deg, #d64545, #a71c1c, #d64545, #a71c1c);
    background-size: 300% 100%;
    background-position: 0% 0%;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
    text-decoration: none;
}

.load-more-btn:hover {
    background-position: 100% 0%;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(208, 75, 75, 0.3);
    text-decoration: none;
}

.listing-counter {
    font-size: 12px;
    color: #666;
}

.listing-counter strong {
    color: #333;
}

.no-products-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
    grid-column: 1 / -1;
    /* Span full width of grid */
    background: rgba(var(--accent-color-rgb), 0.1);
    border-radius: 20px;
    border: 2px dashed var(--accent-color);
}

.no-products-message i {
    font-size: 48px;
    color: var(--accent-color);
    margin-bottom: 12px;
}

.no-products-message h3 {
    color: black;
    margin-bottom: 8px;
    font-size: 24px;
    font-weight: 600;
}

.no-products-message p {
    color: black;
    font-size: 14px;
    max-width: 400px;
}

/* --- Product Listing Section End --- */


/* --- Global Responsiveness Start --- */
@media (max-width: 1400px) {
    .product-listing-section {
        max-width: min(95%, var(--section-max-width));
    }

    .listing-container {
        grid-template-columns: 250px 1fr;
        gap: 25px;
    }

    .filters-header {
        padding: 16px 18px;
    }

    .filters-header h3 {
        font-size: 14px;
    }

    .filter-content {
        padding: 6px 18px 12px;
    }

    .filter-content.active {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }

    .checkmark:after {
        width: 2px;
        height: 6px;
    }

    .search-box input {
        padding: 8px 0;
    }

    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
        padding: 20px 25px;
    }

    #sort-select option {
        font-size: 10px;
    }

    .product-card-header {
        padding: 14px 8px;
    }

    .product-basic-info h3 {
        font-size: 12px;
    }

    .no-products-message i {
        font-size: 40px;
    }

    .no-products-message h3 {
        font-size: 20px;
    }

    .no-products-message p {
        font-size: 13px;
    }

    .view-button, .add-to-cart-btn {
        padding: 8px;
        font-size: 12px;
        border-radius: 10px;
    }
}

@media (max-width: 992px) {
    .listing-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .filters-sidebar {
        position: static;
        order: 2;
    }

    .products-main {
        order: 1;
    }

    .search-box {
        width: 400px;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .product-listing-section {
        padding: 20px 0 40px;
    }

    .product-image {
        height: fit-content;
    }

    .badge {
        font-size: 10px;
        padding: 3px 6px;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .product-card-header h3 {
        font-size: 14px;
    }

    .spec-item {
        padding: 6px 8px;
    }

    .spec-item span {
        font-size: 12px;
    }

    .view-button,
    .add-to-cart-btn {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .product-listing-section {
        padding: 20px 0;
    }

    .results-count {
        font-size: 10px;
    }

    .search-box {
        width: 175px;
        padding: 0 10px;
    }

    .search-box input {
        padding: 6px 0;
        font-size: 10px;
    }

    .search-box i {
        margin-right: 6px;
        font-size: 10px;
    }

    .sort-controls label {
        font-size: 10px;
    }

    #sort-select {
        font-size: 10px;
        border-radius: 10px;
        padding: 4px 6px;
    }

    .product-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding: 10px 15px;
    }

    .product-card-header {
        padding: 8px;
    }

    .product-card-header h3 {
        font-size: 10px;
    }

    .product-content {
        padding: 8px 10px 10px;
    }

    .product-image img {
        max-width: 90%;
        max-height: 90%;
    }

    .price-container {
        font-size: 8px;
        flex-direction: column;
        gap: 2px;
        margin-top: 8px;
    }

    .price {
        font-size: 14px;
    }

    .specs-list {
        margin: 6px 0;
    }

    .spec-item {
        padding: 0;
        gap: 6px;
    }

    .spec-item img {
        width: 12px;
        height: 12px;
    }

    .spec-item span {
        font-size: 10px;
    }

    .product-card-actions {
        gap: 5px;
    }

    .view-button, .add-to-cart-btn {
        font-size: 10px;
        padding: 8px;
        align-items: none;
    }

    .view-button {
        max-width: fit-content;
    }

    .view-button span {
        display: none;
    }

    .badge {
        font-size: 8px;
        padding: 2px 4px;
    }

    .wishlist-btn {
        width: 26px;
        height: 26px;
        font-size: 10px;
        bottom: 8px;
        right: 8px;
    }

    .load-more-section {
        padding: 16px;
    }

    .listing-counter {
        font-size: 12px;
    }

    .load-more-btn {
        padding: 8px 16px;
        font-size: 12px;
    }

    .no-products-message {
        padding: 20px;
        margin: 12px auto;
    }

    .no-products-message i {
        font-size: 32px;
    }

    .no-products-message h3 {
        font-size: 16px;
    }

    .no-products-message p {
        font-size: 11px;
    }
}

/* --- Global Responsiveness End --- */