


/* General Styles */
body {
    font-family: Arial, sans-serif;
    background-color: #0a0a0a; /* Black background */
    color: #fff;           /* White text */
    margin: 0 15px inset;
    padding: 0;
}

th {
    background-color: #000;
}

article {
    text-align: center;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}



/* Header Styles */
header {
    padding: 20px 0;
    background-color: #000000; /* Black background for header */
    box-shadow: 0 2px 5px rgba(255, 255, 255, 0.2); /* Lighter box shadow for contrast */
}

.logo-container {
    display: flex; /* Use flexbox to align logo and hamburger */
    justify-content: space-around; /* Distribute space around logo and hamburger */
    align-items: center; /* Vertically center items */
}

.logo-wrapper {
    flex-grow: 1; /* Allow the logo wrapper to grow to take available space */
    text-align: center; /* Center the logo within the wrapper */
}

#logo {
    max-width: 400px; /* Adjust this value as needed */
    max-height: 200px;
}

a, a:hover, a:active, a:visited {
    color: #dddddd;
}

/* Navigation Styles */
nav {
    margin-top: 20px;
}

.main-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.main-nav li {
    display: inline-block;
    margin: 0 15px;
}

.main-nav a {
    text-decoration: none;
    color: #fff; /* White text for links */
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease; /* Add color transition */
}

.main-nav a:hover {
    background-color: #fff; /* White background on hover */
    color: #000;           /* Black text on hover */
}

/* Main Content Styles */
main {
    padding: 30px 0;
}

/* Footer Styles */
footer {
    background-color: #000; /* Black background for footer */
    color: #fff;
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #fff; /* Add a white border on top of the footer */
}

/* Carousel Styles */
.carousel {
    position: relative;
    width: 100%;
    max-width: 800px; /* Maximum width for large screens */
    height: clamp(280px, 52vw, 520px);
    padding-bottom: 0;
    margin: 0 auto; /* Center the carousel */
    overflow: hidden;
    background-color: #111; /* Dark frame avoids white bleed around contain-fitted murals */
}

.carousel-item {
    position: relative;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 14px 0;
    box-sizing: border-box;
}

.carousel-item.active {
    display: flex;
}

/* Make images uniform and responsive within the carousel */
.carousel-item img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: calc(100% - 28px);
    object-fit: contain;
    object-position: center;
    display: block; /* Prevents bottom spacing */
}

/* Navigation Arrows */
.carousel-prev, .carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    border: none;
    border-radius: 4px;
    z-index: 10; /* Ensure arrows are above the image */
    transition: background-color 0.3s ease;
}

.carousel-prev:hover, .carousel-next:hover {
    background-color: rgba(0, 0, 0, 0.8); /* Darken on hover */
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

/* Navigation Dots */
.carousel-dots {
    text-align: center;
    margin-top: 10px;
}

.dot {
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot:hover, .dot.active {
    background-color: #717171;
}

/* Animation Keyframes */
@keyframes fade {
    from {opacity: 0.4}
    to {opacity: 1}
}

/* No JavaScript Fallback */
.no-js .carousel-item {
    display: block; /* Show all images */
    margin-bottom: 20px; /* Add some space between images */
}

.no-js .carousel-prev,
.no-js .carousel-next,
.no-js .carousel-dots {
    display: none; /* Hide navigation controls */
}

/* No JavaScript Message */
.no-js-message {
    background-color: #fdd;
    border: 1px solid #faa;
    padding: 10px;
    margin-bottom: 20px;
    text-align: center;
}

/* Mobile Responsive Carousel */
@media (max-width: 768px) {
    .carousel {
        max-width: 100%;
        margin: 0 10px; /* Add side margins on mobile */
        height: clamp(240px, 70vw, 420px);
    }
    
    .carousel-prev, .carousel-next {
        padding: 8px 12px; /* Larger touch targets */
        font-size: 18px;
    }
    
    .carousel-prev {
        left: 5px;
    }
    
    .carousel-next {
        right: 5px;
    }
    
    .dot {
        height: 14px;
        width: 14px;
        margin: 0 8px; /* More spacing on mobile */
    }
}

@media (max-width: 480px) {
    .carousel {
        margin: 0 5px;
        height: clamp(210px, 82vw, 340px);
    }
    
    .carousel-prev, .carousel-next {
        padding: 6px 10px;
        font-size: 16px;
    }
}

/* Hamburger Menu Styles */
#hamburger-icon {
    display: none; /* Hide by default on larger screens */
    cursor: pointer;
    padding: 10px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 5px 0;
    transition: 0.4s;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive grid */
    grid-gap: 20px;
}

.gallery-item {
    /* Add styles for individual image containers, e.g., borders, padding, etc. */
    text-align: center;
}

.gallery-item img {
    max-width: 100%;
    height: 250px;
    display: block; /* Prevents spacing below the image */
    object-fit: cover;
    object-position: center;
}

.caption {
    margin-top: 5px;
    font-size: 0.9em;
}

/* Shop Styles */

.products {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-auto-flow: row;
}

.product {
    display: grid;
    grid-template-areas: 'productName'
                        'productImage'
                        'productPrice'
                        'addToCartButton';
    padding: 5px;
    margin: 5px;
    
}

.product-image {
    max-width: 200px;
    grid-area: productImage;
    margin: 0 auto;
    padding: 5px;
}

.product-name { grid-area: productName; }
.product-price { grid-area: productPrice; margin: 10px 0;}

.add-to-cart-btn {
	margin: 10px auto;
    padding: 5px;
    max-width: 100px;
    grid-area: addToCartButton;
}

/* --- Shopping Cart Icon --- */
.cart-icon {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #4a4a8a; /* A purple from your logo */
    color: white;
    border: 2px solid #fff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    z-index: 1001; /* Make sure it's above other content */
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #e64a19; /* A contrasting red/orange from your logo */
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
    font-weight: bold;
}

.cart-sidebar.open {
    right: 0; /* Slide into view */
}

/* --- Shopping Cart Sidebar --- */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px; /* Start off-screen */
    width: 380px;
    height: 100%;
    background-color: #1a1a2e; /* Dark blue background */
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    transition: right 0.4s ease-in-out;
    display: flex;
    flex-direction: column;
}

/* --- Cart Header --- */
.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #112233; /* Matches your header */
    border-bottom: 2px solid #4a4a8a;
}

.cart-header h2 {
    margin: 0;
    color: #fff;
}

.cart-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
}

/* --- Cart Items --- */
.cart-items {
    flex-grow: 1;
    overflow-y: auto; /* Allows scrolling if items overflow */
    padding: 20px;
}

/* --- Cart Total & Checkout --- */
.cart-total {
    padding: 20px;
    border-top: 2px solid #4a4a8a;
}

.total-amount {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 15px;
    text-align: right;
}

.checkout-btn {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: #e64a19;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.checkout-btn:hover {
    background-color: #ff6a3d;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        width: 95%;
    }

    .products {
    display: flex;
    flex-direction: column;
    }

    .main-nav li {
        margin: 0 10px;
    }

    .main-nav a {
        padding: 8px 12px;
    }

    .logo-container {
        justify-content: space-between; /* Distribute space between logo and hamburger */
    }

    .logo-wrapper {
        text-align: left; /* Align logo to the left on mobile */
    }

    #logo {
        max-width: 200px;
        height: 50px;
    }

    #hamburger-icon {
        display: block; /* Show hamburger icon */
    }

    #nav-menu {
        display: none; /* Hide navigation menu */
    }

    #nav-menu.open {
        display: block; /* Show menu when 'open' class is added */
        width: 100%;
        text-align: center;
    }
    #nav-menu.open ul {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    #nav-menu.open ul li {
        width: 100%;
        margin: 0;
        padding: 0;
    }
    #nav-menu.open ul li a {
        width: 100%;
        box-sizing: border-box;
    }

    .main-nav {
        flex-direction: column;
    }

    .cart-icon {
    left: 20px;      /* Position from the left */
    right: auto;     /* Unset the right positioning */
    }
}