
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f7f7f7;
    color: #222;
}


/* =====================================================
                    TOP BAR
===================================================== */

.top-bar{
    width:100%;
    min-height:42px;

    background:#111827;
    color:white;

    display:flex;
    align-items:center;
    justify-content:space-between;

    padding:0 5%;

    font-size:13px;
    text-decoration: none;
}

.top-left{
    display:flex;
    align-items:center;
    gap:24px;
}

.top-left a{
    color:#e5e7eb;

    display:flex;
    align-items:center;
    gap:7px;
text-decoration: none;
    transition:.3s;
}

.top-left a:hover{
    color:#3b82f6;
}

.top-left i{
    color:#4f8cff;
    text-decoration: none;
}


.top-right{
    display:flex;
    align-items:center;
    gap:12px;
}

.top-right span{
    color:#cbd5e1;
}

.top-right a{
    width:27px;
    height:27px;

    display:flex;
    align-items:center;
    justify-content:center;

    border-radius:50%;

    color:white;
text-decoration: none;
    transition:.3s;
}

.top-right a:hover{
    background:#2878ff;
    transform:translateY(-2px);
}


/* =====================================================
                    NAVBAR
===================================================== */

.navbar{
    width:100%;
    height:82px;

    background:white;

    display:flex;
    align-items:center;

    padding:0 5%;

    gap:35px;

    position:sticky;
    top:0;

    z-index:1000;

    box-shadow:0 5px 20px rgba(0,0,0,.07);
    text-decoration: none;
}


/* LOGO */

.logo{
    font-size:30px;
    font-weight:800;

    color:#111827;

    white-space:nowrap;
}

.logo span{
    color:#2878ff;
}


/* NAV MENU */

.nav-menu{
    display:flex;
    align-items:center;
    gap:25px;

    margin-right:auto;
}

.nav-link{
    color:#374151;
    font-size:15px;
    font-weight:600;
text-decoration: none;
    position:relative;
    transition:.3s;
}

.nav-link::after{
    content:"";

    position:absolute;

    left:0;
    bottom:-8px;

    width:0;
    height:2px;

    background:#2878ff;

    transition:.3s;
}

.nav-link:hover,
.nav-link.active{
    color:#2878ff;
}

.nav-link:hover::after,
.nav-link.active::after{
    width:100%;
}


/* NAV RIGHT */

.nav-right{
    display:flex;
    align-items:center;
    gap:12px;
}


/* =====================================================
                    HOT DEAL BUTTON
===================================================== */

.hot-deals{
    background:#ff4d4d;
    color:white;

    padding:11px 16px;

    border-radius:6px;

    display:flex;
    align-items:center;
    gap:7px;

    font-size:14px;
    font-weight:bold;
text-decoration: none;
    transition:.3s;
}

.hot-deals:hover{
    background:#e63939;
    transform:translateY(-2px);
}

.hot-deals i{
    font-size:14px;
}


/* =====================================================
                    SEARCH
===================================================== */

.search-container{
    height:42px;

    display:flex;
    align-items:center;

    border:1px solid #ddd;

    border-radius:6px;

    overflow:hidden;

    background:white;
}

.search-container input{
    width:190px;
    height:100%;

    border:none;
    outline:none;

    padding:0 13px;

    font-size:14px;
}

.search-container button{
    width:45px;
    height:100%;

    border:none;

    background:#2878ff;
    color:white;

    cursor:pointer;

    transition:.3s;
}

.search-container button:hover{
    background:#145ed2;
}


/* =====================================================
                    ICON BUTTON
===================================================== */

.icon-btn{
    width:42px;
    height:42px;

    border:none;

    background:#f2f5fa;

    border-radius:6px;

    position:relative;

    cursor:pointer;

    font-size:17px;

    color:#374151;

    transition:.3s;
}

.icon-btn:hover{
    color:#2878ff;
    background:#e9f0ff;
}


/* COUNTER */

.counter{
    position:absolute;

    top:-6px;
    right:-5px;

    min-width:18px;
    height:18px;

    padding:0 4px;

    background:#2878ff;
    color:white;

    border-radius:20px;

    font-size:10px;
    font-weight:bold;

    display:flex;
    align-items:center;
    justify-content:center;
}


/* =====================================================
                    MOBILE MENU BUTTON
===================================================== */

.menu-toggle{
    display:none;

    width:42px;
    height:42px;

    border:none;

    background:#f2f5fa;

    border-radius:6px;

    font-size:19px;

    cursor:pointer;
}


/* =====================================================
                    PRODUCTS
===================================================== */

.products{
    padding:80px 5%;
}

.section-heading{
    text-align:center;
    margin-bottom:45px;
}

.section-heading p{
    color:#2878ff;
    font-size:13px;
    font-weight:bold;
    letter-spacing:2px;

    margin-bottom:10px;
}

.section-heading h1{
    font-size:38px;
}


.product-container{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:25px;
    max-width:1200px;
    margin:auto;
}

.product-card{
    background:white;

    border-radius:10px;

    overflow:hidden;

    box-shadow:0 10px 25px rgba(0,0,0,.07);

    transition:.3s;
}

.product-card:hover{
    transform:translateY(-7px);
}

.product-image{
    height:250px;
    overflow:hidden;
}

.product-image img{
    width:100%;
    height:100%;

    object-fit:cover;

    transition:.5s;
}

.product-card:hover img{
    transform:scale(1.08);
}

.product-info{
    padding:20px;
}

.product-info h3{
    margin-bottom:10px;
}

.product-info p{
    font-size:20px;
    font-weight:bold;

    color:#2878ff;

    margin-bottom:15px;
}

.add-cart{
    width:100%;

    border:none;

    background:#2878ff;
    color:white;

    padding:12px;

    border-radius:5px;

    cursor:pointer;

    font-weight:bold;
}

.add-cart:hover{
    background:#125ed8;
}


/* =====================================================
                    DEAL
===================================================== */

.deal{
    min-height:320px;

    display:flex;
    align-items:center;
    justify-content:center;

    text-align:center;

    color:white;

    background:
    linear-gradient(
        rgba(0,0,0,.65),
        rgba(0,0,0,.65)
    ),
    url("https://images.unsplash.com/photo-1498049794561-7780e7231661?auto=format&fit=crop&w=1600&q=80");

    background-size:cover;
    background-position:center;
}

.deal p{
    color:#61a2ff;

    font-size:14px;
    letter-spacing:3px;

    font-weight:bold;
}

.deal h2{
    font-size:55px;
    margin:10px 0 20px;
}

.deal button{
    border:none;

    background:#2878ff;
    color:white;

    padding:13px 28px;

    border-radius:5px;

    cursor:pointer;
}


/* =====================================================
                    CART POPUP
===================================================== */

.cart-popup{
    display:none;

    position:fixed;

    inset:0;

    background:rgba(0,0,0,.55);

    z-index:2000;

    justify-content:flex-end;
}

.cart-popup.active{
    display:flex;
}

.cart-box{
    width:420px;
    max-width:100%;

    height:100%;

    background:white;

    padding:25px;

    overflow-y:auto;
}

.cart-header{
    display:flex;
    align-items:center;
    justify-content:space-between;

    padding-bottom:18px;

    border-bottom:1px solid #ddd;
}

.cart-header button{
    border:none;
    background:none;

    font-size:22px;

    cursor:pointer;
}

.cart-item{
    display:flex;
    align-items:center;
    justify-content:space-between;

    padding:18px 0;

    border-bottom:1px solid #eee;
}

.cart-item h4{
    margin-bottom:6px;
}

.remove-item{
    border:none;

    background:#ffe8e8;
    color:#e11d48;

    padding:7px 10px;

    border-radius:4px;

    cursor:pointer;
}

.empty-cart{
    padding:60px 0;

    text-align:center;

    color:#777;
}

.cart-bottom{
    margin-top:25px;
}

.cart-bottom h3{
    margin-bottom:20px;
}

.cart-bottom button{
    width:100%;

    border:none;

    padding:13px;

    background:#2878ff;
    color:white;

    border-radius:5px;

    cursor:pointer;

    font-weight:bold;
}


/* =====================================================
                    RESPONSIVE
===================================================== */

@media(max-width:1100px){

    .nav-menu{
        gap:15px;
    }

    .search-container input{
        width:140px;
    }

    .top-left{
        gap:15px;
    }

}


@media(max-width:900px){

    .top-left a:nth-child(3){
        display:none;
    }

    .nav-menu{
        position:absolute;

        left:0;
        top:82px;

        width:100%;

        background:white;

        display:none;

        flex-direction:column;

        padding:25px;

        box-shadow:0 10px 20px rgba(0,0,0,.08);
    }

    .nav-menu.active{
        display:flex;
    }

    .nav-link::after{
        display:none;
    }

    .menu-toggle{
        display:block;
    }

    .product-container{
        grid-template-columns:repeat(2,1fr);
    }

}


@media(max-width:650px){

    .top-bar{
        padding:8px 4%;

        flex-direction:column;
        gap:7px;
    }

    .top-left{
        justify-content:center;
        flex-wrap:wrap;
    }

    .top-right{
        display:none;
    }

    .navbar{
        height:72px;
        padding:0 4%;
        gap:10px;
    }

    .nav-menu{
        top:72px;
    }

    .logo{
        font-size:23px;
    }

    .hot-deals{
        padding:10px;
    }

    .hot-deals{
        font-size:0;
    }

    .hot-deals i{
        font-size:15px;
    }

    .search-container input{
        display:none;
    }

    .search-container button{
        width:42px;
    }

    .product-container{
        grid-template-columns:1fr;
    }

    .section-heading h1{
        font-size:30px;
    }

    .deal h2{
        font-size:40px;
    }

}


@media(max-width:400px){

    .icon-btn,
    .menu-toggle,
    .search-container,
    .hot-deals{
        width:38px;
        height:38px;
    }

    .hot-deals{
        display:flex;
        justify-content:center;
        padding:0;
    }

}



 /* =====================================================
        ELECTRONICS CATEGORY ROLLING SECTION
===================================================== */

.category-slider{
    width:100%;
    height:205px;

    background:#07062d;

    position:relative;

    display:flex;
    align-items:center;

    overflow:hidden;

    padding:0 45px;
}


/* ================= TRACK WRAPPER ================= */

.category-track-wrapper{
    width:100%;
    overflow:hidden;
}


/* ================= TRACK ================= */

.category-track{
    display:flex;
    align-items:center;

    gap:48px;

    width:max-content;

    will-change:transform;
}


/* ================= CATEGORY ITEM ================= */

.category-item{
    width:145px;
    min-width:145px;

    display:flex;
    flex-direction:column;
    align-items:center;

    color:white;

    text-decoration:none;

    text-align:center;

    cursor:pointer;
}


/* ================= CIRCLE ================= */

.category-circle{
    width:125px;
    height:125px;

    border-radius:50%;

    background:#dff5f7;

    display:flex;
    align-items:center;
    justify-content:center;

    overflow:hidden;

    border:4px solid rgba(255,255,255,.18);

    transition:.35s;
}


.category-circle img{
    width:100%;
    height:100%;

    object-fit:cover;

    mix-blend-mode:multiply;

    transition:.4s;
}

/* ================= HERO ================= */

.mobile-hero {
    min-height: 500px;

    padding: 50px 8%;

    display: flex;

    align-items: center;

    overflow: hidden;

    background:
        linear-gradient(
            110deg,
            #f9fbff,
            #e9f4ff
        );
}

.hero-text {
    width: 48%;

    z-index: 2;
}

.small-title {
    color: #e40018;

    font-size: 13px;

    font-weight: bold;

    letter-spacing: 3px;
}

.hero-text h1 {
    margin: 12px 0;

    font-size: 70px;

    line-height: .95;

    color: #172b4d;
}

.hero-text h1 span {
    display: block;

    color: #e40018;
}

.hero-line {
    width: 80px;

    height: 5px;

    margin: 20px 0;

    background: #e40018;
}

.hero-text > p:not(.small-title) {
    max-width: 570px;

    color: #666;

    line-height: 1.7;
}

.hero-text button {
    margin-top: 25px;

    padding: 15px 25px;

    border: none;

    border-radius: 6px;

    background: #e40018;

    color: white;

    font-weight: bold;

    cursor: pointer;

    transition: .3s;
}

.hero-text button:hover {
    transform: translateX(6px);

    background: #b90013;
}


/* ================= DEVICES ================= */

.hero-devices {
    width: 52%;

    height: 410px;

    position: relative;
}


/* PHONE */

.phone {
    width: 145px;
    height: 285px;

    position: absolute;

    padding: 7px;

    border-radius: 25px;

    background: #111;

    box-shadow:
        0 25px 45px rgba(0,0,0,.25);
}

.phone-screen {
    height: 100%;

    border-radius: 19px;

    background:
        linear-gradient(
            145deg,
            #e40018,
            #172b4d
        );

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    color: white;
}

.phone-screen strong {
    font-size: 40px;
}

.phone-screen span {
    font-size: 20px;
}

.camera-dot {
    width: 8px;
    height: 8px;

    position: absolute;

    top: 14px;

    border-radius: 50%;

    background: #111;
}

.screen-content {
    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 8px;
}

.phone-one {
    left: 15%;

    top: 55px;

    transform: rotate(-13deg);
}

.phone-two {
    left: 43%;

    top: 25px;

    transform: rotate(12deg);

    z-index: 3;
}


/* TABLET */

.tablet {
    width: 280px;
    height: 205px;

    position: absolute;

    right: 2%;
    bottom: 25px;

    padding: 9px;

    border-radius: 20px;

    background: #222;

    box-shadow:
        0 25px 45px rgba(0,0,0,.2);

    transform: rotate(-5deg);
}

.tablet-screen {
    height: 100%;

    border-radius: 13px;

    background:
        linear-gradient(
            135deg,
            #172b4d,
            #4f87c9
        );

    color: white;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 15px;
}

.tablet-screen i {
    font-size: 42px;
}

.tablet-screen strong {
    letter-spacing: 3px;
}


/* ================= TITLES ================= */

.section-title {
    text-align: center;

    margin-bottom: 40px;
}

.section-title p,
.products-heading p {
    color: #e40018;

    font-size: 12px;

    letter-spacing: 2px;

    font-weight: bold;
}

.section-title h2,
.products-heading h2 {
    margin-top: 8px;

    font-size: 34px;
}

.section-title h2 span,
.products-heading h2 span {
    color: #e40018;
}


/* ================= CATEGORIES ================= */

.device-categories {
    width: 90%;

    margin: 70px auto;
}

.category-grid {
    display: grid;

    grid-template-columns:
        repeat(6, 1fr);

    gap: 18px;
}

.device-category {
    padding: 25px 15px;

    text-align: center;

    background: white;

    border: 1px solid transparent;

    border-radius: 15px;

    box-shadow:
        0 5px 18px rgba(0,0,0,.07);

    cursor: pointer;

    transition: .35s;
}

.device-category:hover {
    transform: translateY(-8px);

    border-color: #e40018;

    box-shadow:
        0 15px 30px rgba(0,0,0,.12);
}

.category-icon {
    width: 60px;
    height: 60px;

    margin: auto;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #fff0f2;

    color: #e40018;

    font-size: 24px;

    transition: .3s;
}

.device-category:hover .category-icon {
    background: #e40018;

    color: white;
}

.device-category h3 {
    margin-top: 14px;

    font-size: 15px;
}

.device-category p {
    margin-top: 6px;

    color: #999;

    font-size: 11px;
}


/* ================= PRODUCTS ================= */

.products-section {
    width: 92%;

    margin: 70px auto;
}

.products-heading {
    display: flex;

    justify-content: space-between;

    align-items: end;

    margin-bottom: 30px;
}

.products-heading small {
    color: #888;
}

.products-heading select {
    padding: 12px 18px;

    background: white;

    border: 1px solid #ddd;

    border-radius: 7px;

    outline: none;

    cursor: pointer;
}


/* PRODUCT GRID */

.products-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 22px;
}


/* PRODUCT CARD */

.product-card {
    position: relative;

    padding: 16px;

    background: white;

    border-radius: 17px;

    box-shadow:
        0 5px 18px rgba(0,0,0,.08);

    transition: .35s;

    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-8px);

    box-shadow:
        0 18px 35px rgba(0,0,0,.15);
}


/* OFFER */

.offer {
    position: absolute;

    top: 14px;
    left: 14px;

    padding: 7px 9px;

    border-radius: 6px;

    background: #e40018;

    color: white;

    font-size: 11px;

    font-weight: bold;

    z-index: 3;
}


/* WISHLIST */

.wishlist {
    width: 38px;
    height: 38px;

    position: absolute;

    top: 14px;
    right: 14px;

    border: none;

    border-radius: 50%;

    background: white;

    box-shadow:
        0 3px 12px #ddd;

    font-size: 21px;

    cursor: pointer;

    z-index: 3;
}

.wishlist.active {
    color: #e40018;
}


/* PRODUCT IMAGE */

.product-image {
    height: 235px;

    display: flex;

    align-items: center;
    justify-content: center;

    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;

    object-fit: contain;

    transition: .5s;
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}


/* PRODUCT DETAILS */

.brand {
    display: block;

    color: #e40018;

    font-size: 11px;

    font-weight: bold;

    margin-top: 10px;
}

.product-card h3 {
    min-height: 48px;

    margin: 7px 0;

    color: #174f70;

    font-size: 15px;

    line-height: 1.4;
}

.rating {
    color: #f2a400;

    font-size: 13px;
}

.rating span {
    color: #999;
}

.product-card del {
    display: block;

    color: #999;

    font-size: 12px;

    margin-top: 8px;
}

.price {
    color: #df0018;

    font-size: 24px;

    font-weight: bold;

    margin-top: 4px;
}

.emi {
    color: #168044;

    font-size: 11px;

    margin: 6px 0 12px;
}


/* CART */

.cart-btn {
    width: 100%;

    padding: 12px;

    border: 1px solid #e40018;

    border-radius: 5px;

    background: white;

    color: #e40018;

    font-weight: bold;

    cursor: pointer;

    transition: .3s;
}

.cart-btn:hover {
    background: #e40018;

    color: white;
}


/* ================= BRAND ================= */

.brand-section {
    width: 90%;

    margin: 80px auto;
}

.brands {
    display: grid;

    grid-template-columns:
        repeat(6, 1fr);

    gap: 20px;
}

.brands div {
    min-height: 90px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: white;

    border-radius: 12px;

    font-size: 20px;

    font-weight: 900;

    color: #444;

    box-shadow:
        0 4px 15px rgba(0,0,0,.06);

    transition: .35s;

    cursor: pointer;
}

.brands div:hover {
    color: #e40018;

    transform: translateY(-7px);

    box-shadow:
        0 15px 30px rgba(0,0,0,.12);
}


/* ================= FEATURES ================= */

.features {
    width: 90%;

    margin: 70px auto;

    padding: 30px;

    background: white;

    border-radius: 15px;

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 20px;

    box-shadow:
        0 5px 18px rgba(0,0,0,.07);
}

.features > div {
    text-align: center;
}

.features i {
    color: #e40018;

    font-size: 27px;

    margin-bottom: 10px;
}

.features h3 {
    font-size: 15px;
}

.features p {
    margin-top: 5px;

    color: #888;

    font-size: 11px;
}


/* ================= STATS ================= */

.stats {
    width: 90%;

    margin: 70px auto;

    padding: 40px 0;

    border-top: 1px solid #ddd;

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    text-align: center;
}

.stats strong {
    display: block;

    color: #df0018;

    font-size: 42px;

    font-weight: 900;
}

.stats span {
    display: block;

    color: #555;

    margin-top: 8px;

    font-size: 17px;
}
.stats p {
    grid-column: 1 / -1;

    margin: 0;

    color: #666;

    font-size: 16px;

    line-height: 1.8;

    text-align: justify;

    padding: 0 10px;
}
.stats p + p {
    margin-top: -15px;
}


/* MOBILE */

@media (max-width: 768px) 

{

    .stats {
        grid-template-columns: repeat(2, 1fr);

        width: 94%;

        padding: 30px 20px;
    }

}
/* ================= WHATSAPP ================= */

.whatsapp {
    position: fixed;

    right: 25px;
    bottom: 25px;

    width: 80px;

    text-decoration: none;

    z-index: 100;
}

.whatsapp span,
.whatsapp b {
    display: block;

    text-align: center;
}

.whatsapp span {
    font-weight: bold;
}

.whatsapp b {
    color: #d80018;
}

.whatsapp i {
    display: flex;

    justify-content: center;
    align-items: center;

    width: 62px;
    height: 62px;

    margin: auto;

    background: #25d366;

    color: white;

    border-radius: 8px;

    font-size: 40px;

    box-shadow: 0 5px 15px rgba(0,0,0,.2);
}



/* ================= FOOTER ================= */

footer {
    background: #171717;

    color: white;

    padding: 60px 8%;

    display: grid;

    grid-template-columns:
        2fr 1fr 1fr 2fr;

    gap: 50px;
}

.footer-logo h2 {
    color: #e50019;

    font-size: 30px;
}

.footer-logo p {
    color: #e50019;

    font-size: 20px;

    font-weight: bold;
}

footer h3 {
    margin-bottom: 20px;
}

footer a {
    display: block;

    color: #bbb;

    text-decoration: none;

    margin-bottom: 12px;
}

footer a:hover {
    color: white;
}

footer p {
    color: #bbb;

    margin-bottom: 10px;
}



/* ================= RESPONSIVE ================= */

@media(max-width:1200px) {

    .support {
        display: none;
    }

    .category-grid {
        grid-template-columns:
            repeat(3, 1fr);
    }

    .products-grid {
        grid-template-columns:
            repeat(3, 1fr);
    }

    .brands {
        grid-template-columns:
            repeat(3, 1fr);
    }

}


@media(max-width:900px) {

    .top-bar {
        display: none;
    }

    .header {
        flex-wrap: wrap;

        padding: 20px;
    }

    .search-box {
        order: 5;

        width: 100%;

        max-width: none;
    }

    .mobile-hero {
        flex-direction: column;

        text-align: center;
    }

    .hero-text {
        width: 100%;
    }

    .hero-text > p {
        margin-left: auto;

        margin-right: auto;
    }

    .hero-line {
        margin-left: auto;

        margin-right: auto;
    }

    .hero-devices {
        width: 100%;
    }

    .products-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .features {
        grid-template-columns:
            repeat(2, 1fr);
    }

    footer {
        grid-template-columns:
            repeat(2, 1fr);
    }

}


@media(max-width:600px) {

    .logo {
        min-width: 150px;
    }

    .logo h1 {
        font-size: 27px;
    }

    .logo h2 {
        font-size: 18px;
    }

    .hot-btn {
        padding: 0 12px;

        font-size: 11px;
    }

    .header-action .action {
        display: none;
    }

    .hero-text h1 {
        font-size: 52px;
    }

    .hero-devices {
        height: 330px;
    }

    .phone {
        width: 105px;
        height: 215px;
    }

    .tablet {
        width: 200px;
        height: 145px;
    }

    .category-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .products-heading {
        flex-direction: column;

        align-items: flex-start;

        gap: 20px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .brands {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .features {
        grid-template-columns: 1fr;
    }

    footer {
        grid-template-columns: 1fr;
    }

}

