@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600&family=Source+Sans+Pro:wght@300;400;600&display=swap');

/* Root Variables for Color Palette */
:root {  --dark-gray: #353535;
    --primary-color: #ea1538;
    /* Red */
    --secondary-color: #343434;
    /* Black */
    --accent-color: #f1f1f1;
    /* Light Gray */
    --highlight-color: #333333;
    /* Dark Gray */
    --text-color: #ffffff;
    /* White */
    --body-font: 'Source Sans Pro', sans-serif;
    --heading-font: 'Playfair Display', serif;
}

/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: black;
    color: var(--text-color)
}

/* Hero Section */
#hero-section {
    position: relative;
    height: 60vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--text-color);
}

#hero-section img {
    opacity: 0.3;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

#hero-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-color);
    z-index: -1;
    max-width: 720px;
    padding: 20px;
}

#hero-section h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

#hero-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Categories Section */
#categories-section { background: linear-gradient(0deg, var(--dark-gray), black);

    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    padding: 30px 0;
    align-items: center;
}
#category-list{
    display: flex;
    gap: 30px;
}
.category-item {
    cursor: pointer;
    padding: 13px 30px;
    background-color: var(--primary-color);
    color: var(--text-color);
    border-radius: 10px;
    text-align: center;
    justify-content: center;
    font-size: 1.5em;
    transition: background-color 0.3s ease;
    /* width: 250px; */
    display: flex;
    gap: 4px;
}

.category-item:hover {
    color: #353535;
    background-color: var(--text-color);
    /* Darker red on hover */
}



/* Product Sections */
.category-section {
    display: none;
    text-align: center;
    background-color: var(--dark-gray);
}

.category-section h2 {
    font-family: var(--font-family-heading);
    font-size: 2.5em;
    margin-bottom: 20px;
    color: var(--text-color);
}

/* Product List */
.category-products {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 20px;
    overflow-x: auto;
    overflow-y: auto;
}
.title{
    padding: 8px 12px;
    margin: 12px 0px;
}

#products-container {
    background: linear-gradient(359deg, black, #353535);
    box-sizing: border-box;
    padding: 15px 20px;
    overflow-x: overlay;
    flex-direction: row;
    display: flex;
    gap: 50px;
}

.product-card {
    background-color: var(--highlight-color);
    padding: 20px;
    color: var(--text-color);
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.6);
    width: 240px;
    /* height: fit-content; */
    text-align: left;
    /* transition: transform 0.2s ease-in-out; */
    flex-shrink: 0;
}



.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
}

.product-card h3 {
    font-size: 1.5em;
    margin-top: 10px;
    /* color: var(--highlight-color); */
}

.product-card p {
    font-size: 1.2em;
    margin: 10px 0;
    /* color: #555; */
}

.product-card button {
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: var(--text-color);
    border: none;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 10px;
}

.product-card button:hover {
    background-color: var(--text-color);
    color: #353535;
}
/* Cart Icon */
#cart-icon {
    position: fixed;
    top: 70px;
    right: 30px;
    /* background: #fff; */
    border: 2px solid #000;
    border-radius: 50%;
    padding: 10px;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

#cart-count {
    margin-left: 5px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 14px;
    font-weight: bold;
}

/* Cart Tab */
#cart-tab {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background: rgba(0,0,0,0.7);
    border-left: 2px solid #ccc;
    box-shadow: -2px 0 6px rgba(0, 0, 0, 0.2);
    padding: 20px;
    overflow-y: auto;
    z-index: 1000;
}

#cart-tab.hidden {
    display: none;
}

#cart-items {
    margin-bottom: 20px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

#cart-total {
    font-weight: bold;
    margin-top: 20px;
    text-align: center;
}

#checkout-button {
    display: block;
    width: 100%;
    padding: 10px;
    background: #000;
    color: #fff;
    border: none;
    cursor: pointer;
    text-align: center;
    font-size: 16px;
    margin-top: 20px;
    transition: background 0.3s ease;
}

#checkout-button:hover {
    background: #444;
}
.remove-item{
    padding: 0;
}

/* Responsive Layout */
@media (max-width: 768px) {
    .category-item {
        width: 150px;
        font-size: 1.2em;
        padding: 15px;
    }

    .category-products {
        padding: 10px;
    }

 

    #cart-tab {
        width: 250px;
        font-size: 1rem;
    }

    #hero-section h1 {
        font-size: 2rem;
    }

    #hero-section p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    #hero-section h1 {
        font-size: 1.5em;
    }
#hero-section {
    height: 45vh;
}
    #hero-section p {
        font-size: 1em;
    }

    .category-item {
        width: 100px;
        font-size: 0.9rem;
        padding: 15px;
    }
#category-list{
    gap: 15px;
}
  

    #cart-tab {
        width: 200px;
        font-size: 0.9em;
    }
}