﻿.hero-section {
    min-height: 100vh; /* height increase */
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.55)), url('/Images/hero-electronics.jpg');
    background-size: cover;
    background-position: center;
}


.step-card {
    background: #fff;
    padding: 30px 20px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}


    .step-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 15px 40px rgba(0,0,0,0.9);
    }

.step-icon {
    width: 70px;
    height: auto;
}
/* //stepend */ /*CATEGORY SECTION*/

.products-section {
    background: linear-gradient(rgba(0,0,0,0.9), rgba(0,0,0,0.4)), url('/images/categories_img.jpg');
    background-size: cover;
    background-position: center;
}
/* Search bar */

.search-input {
    max-width: 420px;
    background: transparent;
    border: none;
    border-bottom: 2px solid #fff;
    border-radius: 0;
    color: #fff;
    font-weight: 600;
}


    .search-input::placeholder {
        color: rgba(255,255,255,0.7);
    }

    .search-input:focus {
        box-shadow: none;
        border-bottom-color: #fff;
        background: transparent;
        color: #fff;
    }
/*Slider*/

.swiper-slide a {
    display: block;
    width: 100%;
}

.product-card-wrapper {
    position: relative;
    width: 100%;
    max-width: 260px;
    height: 260px;
    margin: auto;
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: #ff6333;
    opacity: 0;
    transition: all .35s ease;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card-wrapper:hover .card-overlay {
    opacity: 1;
}

.overlay-text {
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 900 !important;
}

.product-img-box {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.category-card {
    width: 100%;
    max-width: 260px;
    height: 260px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.mySwiper {
    padding: 20px 0;
}

#productSearch::placeholder {
    text-align: center;
}


/* WHY CHOOSE US SECTION */ .why-section {
    background: linear-gradient(rgba(0,0,0,0.9), rgba(0,0,0,0.4));
    background-size: cover;
    background-position: center;
}

.why-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 18px;
    padding: 30px 20px;
    color: #fff;
    /*    backdrop-filter: blur(6px);*/ transition: all 0.3s ease;
}


    .why-card p {
        color: rgba(255,255,255,0.75);
    }

    .why-card i {
        color: #fff;
    }

    .why-card:hover {
        transform: translateY(-8px);
        background: rgba(255,255,255,0.12);
        box-shadow: 0 20px 45px rgba(0,0,0,0.35);
    }
/*SELL ITEM BUTTON ON HERO SECTION*/

.cta-btn {
    display: inline-block;
    padding: 12px 30px;
    /* orange gradient */ background: linear-gradient(135deg, #ff6333, #ff2a00);
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    transition: all 0.3s ease;
}


    .cta-btn:hover {
        transform: translateY(-4px);
        box-shadow: 0 15px 35px rgba(0,0,0,0.35);
        background: linear-gradient(135deg, #ff7f50, #ff4500); /* slightly darker on hover */
    }

/* CARD DEFAULT */ .product-card {
    border-radius: 18px;
    transition: all 0.3s ease;
    background: #fff;
    cursor: pointer;
    border: 2px solid transparent !important;
}


    /* SMOOTH TEXT + ICON TRANSITION */ .product-card .card-title,
    .product-card i {
        transition: 0.3s ease;
    }

    /* HOVER — THEME COLOR */ .product-card:hover .card-title,
    .product-card:hover i {
        color: #ff5a2f !important; /* theme color */
    }

    .product-card:hover {
        background: #fff;
        box-shadow: 0 0px 30px #ff6333;
        transform: translateY(-6px) scale(1.02);
        border-color: #ff5a2f !important;
    }

    .product-card:active {
        transform: scale(0.98);
    }
/* CARD DEFAULT */

.step-card {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}


    .step-card:hover {
        border-color: #ff5a2f; /* theme border */
        box-shadow: 0 15px 30px rgba(0,0,0,0.18);
        transform: translateY(-5px);
        background: #fff; /* optional soft tint */
    }

        .step-card:hover .step-icon {
            filter: brightness(0) saturate(100%) invert(48%) sepia(82%) saturate(2142%) hue-rotate(347deg) brightness(101%) contrast(101%);
        }

        .step-card:hover h3 {
            color: #ff5a2f;
        }
/* Large Tablet */

@media (max-width: 1024px) {


    .category-card {
        width: 220px;
        height: 220px;
    }

    .product-img-box {
        height: 150px;
    }

    .swiper {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {

    .col-md-3 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
}


/* Tablet */ @media (max-width: 768px) {


    .category-card {
        width: 200px;
        height: 200px;
    }


    .product-img-box {
        height: 130px;
    }


    .swiper {
        padding-left: 30px;
        padding-right: 30px;
    }
}


/* Mobile */ @media (max-width:576px) {


    .swiper {
        padding-left: 20px;
        padding-right: 20px;
    }


    .category-card {
        width: 100%;
        max-width: 200px;
        height: 200px;
    }


    .product-card-wrapper {
        max-width: 200px;
        height: 200px;
    }


    .product-img-box {
        height: 120px;
    }
}

@media (max-width:400px) {


    .category-card {
        max-width: 170px;
        height: 170px;
    }


    .product-card-wrapper {
        max-width: 170px;
        height: 170px;
    }


    .product-img-box {
        height: 100px;
    }
}

.request-link {
    text-decoration: none;
    cursor: pointer;
}

.request-text {
    background: linear-gradient(135deg, #ff7f50, #ff4500);
    transition: all 0.3s ease;
}

/* Hover effect */
.request-link:hover .request-text {
    background: linear-gradient(135deg, #ff8f65, #ff5722);
}


/*SEARCH BAR*/
.search-box {
    max-width: 500px;
    width: 100%;
    margin: auto;
}

.search-dropdown {
    position: absolute;
    top: 100%;
    width: 100%;
    background: white;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    z-index: 1000;
    display: none;
    max-height: 350px; /* height limit */
    overflow-y: auto; /* scroll enable */
}

.search-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid lightgrey;
}

    .search-item:hover {
        background: lightgrey;
    }

.search-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.search-name {
    font-weight: 600;
    color: #333;
}