/* ===================================================== */
/* HERO */
/* ===================================================== */

.hero-slider{

    position:relative;

    height:620px;

    overflow:hidden;

    border-bottom:1px solid var(--border);

}

.hero-slides{

    width:100%;
    height:100%;

}

.hero-slide{

    position:absolute;
    inset:0;

    opacity:0;

    transition:1s;

}

.hero-slide.active{

    opacity:1;

}

.hero-slide img{

    width:100%;
    height:100%;

    object-fit:cover;

}

.hero-overlay{

    position:absolute;
    inset:0;

    background:linear-gradient(
        rgba(0,0,0,.65),
        rgba(0,0,0,.8)
    );

    display:flex;
    align-items:center;
    justify-content:center;

    z-index:2;

}

.hero-content{

    width:100%;
    max-width:1400px;

    padding:20px;

    text-align:center;

}

.hero-mini-title{

    display:inline-block;

    background:rgba(255,255,255,.08);

    border:1px solid rgba(255,255,255,.1);

    padding:10px 20px;

    border-radius:50px;

    margin-bottom:25px;

    font-size:14px;

    color:#fff;

}

.hero-title{

    font-size:72px;
    font-weight:900;

    margin-bottom:20px;

    color:#fff;

}

.hero-description{

    max-width:700px;

    margin:auto auto 40px;

    color:#d1d5db;

    line-height:2;

    font-size:18px;

}

/* ===================================================== */
/* HERO SEARCH */
/* ===================================================== */

.hero-search-box{

    max-width:1200px;

    margin:auto;

    background:rgba(15,23,42,.85);

    backdrop-filter:blur(20px);

    border:1px solid rgba(255,255,255,.08);

    border-radius:28px;

    padding:16px;

    display:grid;
    grid-template-columns:1fr 1fr 1fr 180px;

    gap:14px;

}

.hero-input,
.hero-select{

    height:62px;

    border:none;
    outline:none;

    border-radius:18px;

    background:rgba(255,255,255,.06);

    color:#fff;

    padding:0 20px;

    font-size:15px;

}

.hero-select option{

    color:#000;

}

.hero-search-btn{

    border:none;

    border-radius:18px;

    background:var(--orange);

    color:#fff;

    font-size:18px;
    font-weight:700;

    cursor:pointer;

    transition:.25s;

}

.hero-search-btn:hover{

    background:var(--orangeHover);

}

/* ===================================================== */
/* DOTS */
/* ===================================================== */

.hero-dots{

    position:absolute;

    bottom:30px;
    right:50%;
    transform:translateX(50%);

    display:flex;
    gap:12px;

    z-index:5;

}

.hero-dot{

    width:12px;
    height:12px;

    border-radius:50%;

    background:rgba(255,255,255,.4);

}

.hero-dot.active{

    background:var(--orange);

}

/* ===================================================== */
/* SECTION */
/* ===================================================== */

.products-section,
.categories-section,
.based-products-section{

    max-width:1500px;

    margin:auto;

    padding:80px 20px;

}

.section-header{

    display:flex;
    align-items:center;
    justify-content:space-between;

    margin-bottom:35px;

}

.section-header h2{

    font-size:34px;
    font-weight:800;

}

/* ===================================================== */
/* CATEGORIES */
/* ===================================================== */

.categories-grid{

    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(180px,1fr));

    gap:20px;

}

.category-card{

    background:var(--card);

    border:1px solid var(--border);

    border-radius:22px;

    padding:28px 20px;

    text-align:center;

    transition:.25s;

    font-weight:700;

}

.category-card:hover{

    transform:translateY(-6px);

    background:var(--orange);

    color:#fff;

}

/* ===================================================== */
/* PRODUCTS */
/* ===================================================== */

.products-grid{

    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));

    gap:24px;

}

.shop-product-card{

    background:var(--card);

    border:1px solid var(--border);

    border-radius:26px;

    overflow:hidden;

    transition:.3s;

    position:relative;

}

.shop-product-card:hover{

    transform:translateY(-8px);

    box-shadow:var(--shadow);

}

.product-image-wrapper{

    position:relative;

    height:260px;

    background:#111827;

}

.product-image-wrapper img,
.shop-product-card img{

    width:100%;
    height:100%;

    object-fit:cover;

}

.stock-badge{

    position:absolute;

    top:14px;
    right:14px;

    padding:8px 16px;

    border-radius:40px;

    font-size:12px;
    font-weight:700;

    color:#fff;

}

.stock-badge.available{

    background:var(--green);

}

.stock-badge.unavailable{

    background:var(--red);

}

.shop-product-body{

    padding:22px;

}

.product-company{

    color:var(--textSoft);

    font-size:13px;

    margin-bottom:10px;

}

.shop-product-body h3{

    line-height:1.9;

    font-size:17px;

    height:64px;

    overflow:hidden;

    margin-bottom:10px;

}

.part-number{

    color:var(--textSoft);

    font-size:13px;

}

.product-price{

    margin-top:20px;

    color:#f59e0b;

    font-size:28px;
    font-weight:800;

}

/* ===================================================== */
/* SLIDER */
/* ===================================================== */

.products-slider-wrapper{

    overflow:hidden;

    position:relative;

}

.slider-track{

    display:flex;
    gap:20px;

    width:max-content;

    animation:sliderMove 60s linear infinite;

}

.slider-track .shop-product-card{

    width:260px;
    min-width:260px;

}

@keyframes sliderMove{

    from{
        transform:translateX(0);
    }

    to{
        transform:translateX(50%);
    }

}

/* ===================================================== */
/* PAGINATION */
/* ===================================================== */

.pagination-wrapper{

    margin-top:60px;

    display:flex;
    justify-content:center;
    gap:12px;

    flex-wrap:wrap;

}

.page-btn{

    width:46px;
    height:46px;

    border-radius:14px;

    background:var(--card);

    border:1px solid var(--border);

    display:flex;
    align-items:center;
    justify-content:center;

    transition:.25s;

}

.page-btn:hover,
.page-btn.active{

    background:var(--orange);

    color:#fff;

}

.product-actions{

    position:absolute;

    top:10px;
    left:10px;

    display:flex;
    flex-direction:column;
    gap:8px;

    opacity:0;

    transform:translateY(-6px);

    transition:.25s;

}

.shop-product-card:hover .product-actions{
    opacity:1;
    transform:translateY(0);
}

.product-action-btn{

    width:36px;
    height:36px;

    border:none;

    border-radius:10px;

    background:#fff;

    color:#333;

    display:flex;
    align-items:center;
    justify-content:center;

    cursor:pointer;

    text-decoration:none;

    box-shadow:0 6px 20px rgba(0,0,0,.15);

    transition:.2s;

}

.product-action-btn:hover{
    background:var(--orange);
    color:#fff;
}

/* ===================================================== */
/* MOBILE */
/* ===================================================== */

@media(max-width:1000px){

    .hero-search-box{

        grid-template-columns:1fr 1fr;

    }

}

@media(max-width:768px){

    .hero-slider{

        height:auto;
        min-height:700px;

    }

    .hero-title{

        font-size:42px;

    }

    .hero-description{

        font-size:15px;

    }

    .hero-search-box{

        grid-template-columns:1fr;

    }

    .section-header h2{

        font-size:26px;

    }

    .products-grid{

        grid-template-columns:1fr 1fr;

    }

}

@media(max-width:500px){

    .products-grid{

        grid-template-columns:1fr;

    }

    .hero-title{

        font-size:34px;

    }

}