/* General Styling */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #121212;
    color: #fff;
    line-height: 1.6;
}

h1, h2, h3 {
    color: #00ff00;
    text-align: center;
}

a {
    color: #00ff00;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #00cc00;
}

/* Header */
header {
    background: #1f1f1f;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #444;
}

header .header-container {
    display: flex;
    align-items: center;
}

.logo {
    height: 40px;
    margin-right: 10px;
}

.cart-link {
    font-size: 18px;
    text-decoration: none;
    color: #fff;
    background: #00ff00;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s ease;
}

.cart-link:hover {
    background: #00cc00;
}

/* Categories Section */
#categories {
    margin: 20px;
    padding: 10px;
    border: 1px solid #444;
    border-radius: 5px;
    background: #1c1c1c;
}

.categories-list {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.categories-list li {
    text-align: center;
}

/* Product Grid */
.product-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin: 20px;
}

.product {
    background: #1c1c1c;
    border: 1px solid #444;
    border-radius: 5px;
    text-align: center;
    padding: 15px;
    width: 300px;
    transition: transform 0.3s ease;
}

.product:hover {
    transform: scale(1.05);
}

.product img {
    width: 100%;
    height: auto;
    margin-bottom: 10px;
    border-radius: 5px;
}

/* Product Links and Buttons */
.details-link {
    display: block;
    margin: 10px 0;
    color: #00ff00;
    font-weight: bold;
    transition: color 0.3s ease;
}

.details-link:hover {
    color: #00cc00;
}

button {
    background: #00ff00;
    color: #000;
    border: none;
    border-radius: 5px;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: background 0.3s ease;
}

button:hover {
    background: #00cc00;
}

/* Product Details Page */
.product-details {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: #1c1c1c;
    border: 1px solid #444;
    border-radius: 5px;
    text-align: center;
}

.product-details img {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
    border-radius: 5px;
}

.add-to-cart-button {
    background: #00ff00;
    color: #000;
    border: none;
    border-radius: 5px;
    padding: 10px 15px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.add-to-cart-button:hover {
    background: #00cc00;
}

/* Cart Page */
.cart-items {
    list-style: none;
    padding: 0;
    margin: 20px auto;
    max-width: 800px;
}

.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    border-bottom: 1px solid #444;
    padding-bottom: 10px;
}

.cart-item img {
    width: 80px;
    height: auto;
    margin-right: 15px;
    border-radius: 5px;
}

.cart-item-details {
    flex-grow: 1;
}

.remove-button {
    background: #ff0000;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 5px 10px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.remove-button:hover {
    background: #cc0000;
}

.cart-summary {
    margin-top: 20px;
    padding: 10px;
    background: #1c1c1c;
    border: 1px solid #444;
    border-radius: 5px;
    text-align: center;
}

.checkout-button {
    background: #00ff00;
    color: #000;
    border: none;
    border-radius: 5px;
    padding: 10px 15px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

.checkout-button:hover {
    background: #00cc00;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background: #1f1f1f;
    color: #ccc;
    font-size: 12px;
    border-top: 1px solid #444;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .product {
        width: calc(50% - 20px);
    }

    .cart-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .cart-item img {
        margin-bottom: 10px;
    }
}

@media screen and (max-width: 480px) {
    .product {
        width: calc(100% - 20px);
    }

    header {
        flex-direction: column;
        align-items: center;
    }

    .cart-link {
        margin-top: 10px;
    }
}
.header-container {
    display: flex;
    align-items: center;
    justify-content: center; /* Centers all items horizontally */
    gap: 10px; /* Adds spacing between all child elements */
    padding: 10px; /* Optional: Adds padding inside the container */
}

.logo {
    margin-right: 10px; /* Adds space to the right of the logo */
}

.header-text {
    margin-right: auto; /* Pushes the cart links to the far right */
}

.cart-link {
    margin-left: 5px; /* Adds space between the cart links */
}
