:root {
    --radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

i {
    font-size: 18px;
    color: red;
    margin: 0 5px 0 0;

}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    background: #fff;
    color: #333;
}

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(to right, #7e0303, #2c0101);
    padding: 15px 20px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo {
    font-size: 20px;
    font-weight: 700;
}

nav a {
    color: white;
    text-decoration: none;
    margin-left: 30px;
    font-weight: 500;
}

nav a:hover, .contact-info a:hover {
    color: red;
}

.hero {
    position: relative;
    background: url('logobg.jpg') no-repeat center center/cover;
    color: white;
    padding: 6rem 2rem;
    text-align: center;
    height: 100vh;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.749); /* Black overlay with 50% opacity */
    z-index: 1;
}

.hero h1 {
    color: #ffffff;
    font-size: 5rem;
    position: relative;
    z-index: 2;
    font-weight: 800;
    transform: scale(1.5);
    display: inline-block;
}

.hero p {
    z-index: 2;
    position: relative;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
}

.hero .gsm {
    font-size: 20px;
    color: rgb(255, 255, 255);
}

.gsm code {
    color: rgb(255, 0, 0);
}

.line {
    display: block; /* Makes the span act as a block element */
    width: 130px; /* Adjust the width of the line */
    height: 4px; /* Adjust the thickness of the line */
    background-color: rgb(255, 0, 0); /* Line color */
    border-radius: var(--radius); /* Rounded corners */
    margin: 5px auto 14px; /* Spacing and centering */
}

.shop {
    padding: 4rem 1rem;
    text-align: center;
    scroll-margin-top: 65px;
}

.shop h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.product {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-card {
    border: 1px solid #ddd;
    border-radius: var(--radius);
    padding: 1rem;
    text-align: center;
    transition: transform 0.3s;
    position: relative;
    background-color: #fff;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}

.product .card-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;   
    scroll-margin-top: 65px;
}

.card-container .product-card img {
    width: 220px;
    height: 240px;
    border-radius: var(--radius);
    border: 1px solid #ababab;
}

.product-card h3 {
    margin: 1rem 0 0.5rem;
}

.product-card .price {
    font-weight: bold;
    color: #e60000;
}

.shop .shop-container {
    display: flex;
    flex-direction: row;
    gap: 20px;
    position: sticky;
}

.sidebar {
    position: sticky;
    top: 65px;
    width: 330px;
    height: 89vh;
    background-color: #111;
    color: white;
    padding: 20px 10px;
    border-radius: var(--radius);
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li {
    margin: 15px 0;
    text-align: start;
}

.sidebar h2 {
    line-height: 39px;
    font-weight: 800;
    font-size: 2.1rem;
    margin-bottom: 2.5rem;
    text-align: center;
    background: linear-gradient(80deg, #ff0000, #6e6e6e);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.sidebar h2 span {
    font-size: 3.2rem;
}

.sidebar ul li a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    display: block;
    padding: 10px;
    transition: background-color 0.1s ease;
    border-radius: var(--radius);
    padding: 5px 10px;
}

.sidebar ul li a:hover {
    background-color: white;
    color: red;
    border-radius: var(--radius);
    padding: 5px 10px;
}

.product-card .price span {
    text-decoration: line-through;
    color: #777;
    font-weight: 400;
    margin-left: 0.5rem;
}

.product-card .sale {
    position: absolute;
    top: 10px;
    right: 10px;
    background: red;
    color: white;
    font-size: 0.8rem;
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius);
}

.product-card:hover {
    transform: scale(1.03);
}

.contact {
    color: white;
    padding: 4rem 2rem;
    background: #000000;
    text-align: left;
}

.contact-header {
    text-align: center;
    margin-bottom: 3rem;
}

.contact h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    letter-spacing: 3px;
}

.contact .contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-content: center;
    gap: 30px;
    align-items: center;
    padding: 0 10px;
}

.footer-nav img {
    width: 60px;
    background-position: center;
    border-radius: var(--radius);
    margin: 0 10px;
}

.contact-logo {
    display: flex;
    flex-direction: column;
}

.footer-nav .left {
    display: flex;
    text-align: center;
    align-items: flex-start;
    margin-bottom: 20px;
}

.contact-grid .right {
    font-size: 15px;
}

.left h3 {
    font-size: 25px;
    letter-spacing: 3px;
}

.contact-info {
    flex-direction: column;
    display: flex;
    justify-content: center;
    margin: 0.5rem 0;
    gap: 8px;
    margin-left: 40px;
}

.contact-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    justify-content: center;
    text-align: start;
    margin-left: 40px;
}

.contact-info a {
    color: white;
    text-decoration: none;
}

footer {
    background: #111;
    color: white;
    text-align: center;
    padding: 12px;
}

.footer-nav {
    display: flex;
    align-items: start;
    font-size: 23px;
    justify-content: space-between;
    margin-right: 140px;
}

/* ========== RESPONSIVE DESIGN ========== */

@media (max-width: 1024px) {
    .product .card-container {
        grid-template-columns: repeat(2, 1fr); /* 2 per row on tablets */
    }

    .shop .shop-container {
        flex-direction: column; /* Stack sidebar and products vertically */
    }

    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
        top: 0;
        margin-bottom: 2rem;
    }

    .footer-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        margin-right: 0;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px;
    }

    nav {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-top: 10px;
    }

    .hero h1 {
        font-size: 2.5rem;
        transform: scale(1);
    }

    .hero {
        height: auto;
        padding: 4rem 1rem;
    }

    .product .card-container {
        grid-template-columns: 1fr; /* 1 per row on mobile */
    }

    .card-container .product-card img {
        width: 100%;
        height: auto;
    }

    .contact .contact-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .contact-info, .contact-list {
        margin-left: 0;
        display: flex;
        justify-content: flex-start;
    }

    .contact-list {
        grid-template-columns: 1fr;
    }

    .left h3 {
        font-size: 20px;
    }

    .sidebar h2 {
        font-size: 2rem;
    }

    .sidebar ul li a {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .sidebar h2 {
        font-size: 1.6rem;
    }

    .footer-nav img {
        width: 50px;
    }

    .contact h2 {
        font-size: 1.8rem;
    }

    .contact-grid .right {
        font-size: 14px;
    }

    footer {
        font-size: 14px;
    }
}
