/* ================================
   RESET & GLOBAL STYLES
================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #ffffff;
    color: #111111;
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input {
    font-family: inherit;
}


/* ================================
   HEADER / NAVBAR
================================ */

.header {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #eeeeee;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav {
    width: 100%;
    max-width: 300px;
    height: 75px;
    margin: 0 auto;
    padding: 0 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}
.header {
    position: relative;
    width: 100%;
    height: 80px;
    background: #ffffff;
    display: flex;
    align-items: center;
    padding: 0 40px;
    box-sizing: border-box;
}

.logo {
    position: absolute;
    left: 95px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    text-decoration: none;
    z-index: 1000;
}

.logo img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    display: block;
}

.menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.menu a {
    font-size: 14px;
    font-weight: 600;
    transition: 0.3s ease;
}

.menu a:hover {
    color: #777777;
}

.actions {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: 350px;
}

.icon {
    width: 110px;
    height: 60px;
    border: none;
    background: whitesmoke;
    cursor: pointer;
    position: relative;
    border-radius: 40%;
}

.cart {
    font-size: 35px;    
}

.actions {
    position: fixed;
    right: 50px;
}

.count {
    position: absolute;
    top: 1px;
    right: 48px;

    min-width: 20px;
    height: 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #111111;
    color: #ffffff;
    border-radius: 50%;

    font-size: 13px;
    font-weight: 700;
}


/* ================================
   HERO SECTION
================================ */

.hero {
    width: 100%;
    min-height: 570px;

    background:
        linear-gradient(
            rgba(0, 0, 0, 0.35),
            rgba(0, 0, 0, 0.35)
        ),
        url(img/Main\ bg\ pic.jpg);

    background-size: cover;
    background-position: center;

    display: flex;
    align-items: center;
}

.hero-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    color: #ffffff;
}

.eyebrow {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero h1 {
    max-width: 650px;
    font-size: 54px;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-text {
    max-width: 600px;
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    padding: 13px 28px;
    background: #ffffff;
    color: #111111;
    font-size: 14px;
    font-weight: 700;
    transition: 0.3s ease;
}

.btn:hover {
    background: #111111;
    color: #ffffff;
}

.btn.dark {
    background: #111111;
    color: #ffffff;
}

.btn.dark:hover {
    background: #333333;
}


/* ================================
   GENERAL SECTION
================================ */

.section {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 70px 20px;
}

.heading {
    text-align: center;
    margin-bottom: 35px;
}

.heading h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.heading p {
    font-size: 15px;
    color: #666666;
}


/* ================================
   CATEGORY SECTION
================================ */

.categories {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.cat {
    position: relative;
    height: 260px;
    overflow: hidden;
    display: block;
}

.cat img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: 0.4s ease;
}

.cat:hover img {
    transform: scale(1.05);
}

.cat::after {
    content: "";
    position: absolute;
    inset: 0;
}

.cat span {
    position: absolute;
    left: 50%;
    bottom: 25px;
    transform: translateX(-50%);

    color: #ffffff;
    font-size: 20px;
    font-weight: 700;

    z-index: 2;
}


/* ================================
   FEATURED FURNITURE
================================ */

.featured-furniture {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 70px 20px;
}

.section-heading {
    text-align: center;
    margin-bottom: 35px;
}

.section-heading h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.section-heading p {
    font-size: 15px;
    color: #666666;
}


/* Product Grid */

.furniture-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px 22px;
}


/* Product Card */

.product-card {
    width: 100%;
    overflow: hidden;
}


/* Product Image */

.product-image {
    width: 100%;
    height: 285px;
    position: relative;
    overflow: hidden;
    background: #eeeeee;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: 0.4s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.04);
}


/* Sale Label */

.product-image .sale {
    position: absolute;
    top: 5px;
    right: 105px;
    color: white;
    background: black;

    padding: 5px 10px;

    font-size: 17px;
    font-weight: 700;

    z-index: 5;
}


/* Product Name */

.product-card h3 {
    font-size: 15px;
    font-weight: 700;
    margin-top: 14px;
    margin-bottom: 7px;
}


/* Product Price */

.product-card .price {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
}

.product-card .price del {
    color: #888888;
    margin-left: 5px;
    font-weight: 400;
}


/* Add To Cart */

.product-card button {
    width: 100%;
    height: 43px;

    border: none;
    background: #111111;
    color: #ffffff;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;
    transition: 0.3s ease;
}

.product-card button:hover {
    background: #333333;
}


/* ================================
   SALE / OFFER SECTION
================================ */

.sale {
    width: 100%;
    padding: 80px 20px;

    background: #f3f3f3;

    text-align: center;
}

.sale h2 {
    font-size: 38px;
    margin-bottom: 10px;
    font-weight: 700;
}

.sale p {
    color: #666666;
    font-size: 15px;
    margin-bottom: 25px;
}


/* ================================
   WHY SHOP WITH US
================================ */

.features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.feature {
    text-align: center;
    padding: 25px 15px;
}

.emoji {
    width: 55px;
    height: 55px;

    margin: 0 auto 15px;

    border: 1px solid #dddddd;
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 22px;
}

.feature h3 {
    font-size: 17px;
    margin-bottom: 8px;
}

.feature p {
    font-size: 14px;
    color: #777777;
    line-height: 1.6;
}


/* ================================
   NEWSLETTER SECTION
================================ */

.news {
    width: 100%;
    padding: 75px 20px;

    background: #f5f5f5;

    text-align: center;
}

.news h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.news p {
    color: #666666;
    margin-bottom: 25px;
}

.subscribe {
    max-width: 550px;
    margin: 0 auto;

    display: flex;
}

.subscribe input {
    flex: 1;
    height: 48px;

    border: 1px solid #cccccc;
    border-right: none;

    padding: 0 15px;
    outline: none;

    font-size: 14px;
    background: #ffffff;
}

.subscribe input:focus {
    border-color: #111111;
}

.subscribe button {
    height: 48px;
    padding: 0 25px;

    border: none;
    background: #111111;
    color: #ffffff;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;
    transition: 0.3s ease;
}

.subscribe button:hover {
    background: #333333;
}


/* ================================
   FOOTER
================================ */

.footer {
    width: 100%;
    background: #111111;
    color: #ffffff;
    padding-top: 60px;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 50px;

    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
}

.footer h3 {
    font-size: 17px;
    margin-bottom: 15px;
}

.footer p {
    color: #bbbbbb;
    font-size: 14px;
    line-height: 1.7;
}

.footer a {
    display: block;
    color: #bbbbbb;
    font-size: 14px;
    margin-bottom: 8px;
    transition: 0.3s ease;
}

.footer a:hover {
    color: #ffffff;
}

.bottom {
    border-top: 1px solid #333333;

    text-align: center;

    padding: 20px;

    color: #999999;
    font-size: 13px;
}

/* ================================
   MOBILE
================================ */

@media (max-width: 650px) {

    .nav {
        height: auto;
        min-height: 70px;
        padding: 15px;
        flex-wrap: wrap;
        gap: 15px;
    }

    .logo {
        font-size: 19px;
    }

    .menu {
        width: 100%;
        order: 3;

        justify-content: center;
        gap: 15px;

        overflow-x: auto;
        padding-bottom: 5px;
    }

    .menu a {
        white-space: nowrap;
        font-size: 13px;
    }

    .hero {
        min-height: 500px;
    }

    .hero-inner {
        padding: 50px 20px;
    }

    .hero h1 {
        font-size: 38px;
    }

    .hero-text {
        font-size: 15px;
    }

    .section,
    .featured-furniture {
        padding: 50px 15px;
    }

    .heading h2,
    .section-heading h2 {
        font-size: 27px;
    }

    .categories {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .cat {
        height: 240px;
    }

    .furniture-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .product-image {
        height: 320px;
    }

    .features {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .sale {
        padding: 60px 20px;
    }

    .sale h2 {
        font-size: 30px;
    }

    .news {
        padding: 60px 15px;
    }

    .news h2 {
        font-size: 27px;
    }

    .subscribe {
        flex-direction: column;
        gap: 10px;
    }

    .subscribe input {
        border-right: 1px solid #cccccc;
        width: 100%;
    }

    .subscribe button {
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding-bottom: 40px;
    }

    .drawer {
        width: 360px;
    }
}

