/* Apply Montserrat font to the entire body */
body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Ensure body takes at least full viewport height */
    overflow: -moz-scrollbars-none; /* For older Firefox */
    -ms-overflow-style: none; /* For Internet Explorer and Edge */
    scrollbar-width: none; /* For Firefox */
    color: #FFF;
    font-size: 16px; /* Base font size */
}

/* Header styling */
header {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Align items to the left */
    background: #000;
    padding: 10px 20px; /* Add padding around the content */
    color: #fff;
    width: 100%;
    height: auto; /* Automatic height */
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000; /* Ensure header stays on top */
}

/* Logo styling */
header .logo {
    margin-right: 20px; /* Add space between logo and navigation */
}

header .logo img {
    width: 5vw; /* Adjust logo size */
}


/* Navigation styling */
nav {
    flex: 1;
    display: flex;
    justify-content: flex-start; /* Align navigation next to the logo */
    align-items: center;
}

nav ul {
    display: flex; /* Display navigation items in a row */
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 20px; /* Add space between navigation items */
}

nav ul li {
    width: auto; /* Ensure each navigation item is sized based on its content */
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    padding: 10px 15px; /* Adjust padding for clickable area */
    display: block;
}

nav ul li a:hover {
    background: #555;
    border-radius: 5px; /* Add border radius for hover effect */
}

/* Main content area */
main {
    padding: 20px;
    padding-top: 15vh;
    padding-bottom: 15vh; /* Increase padding to ensure footer doesn't overlap */
    flex: 1;
    background: url("../assets/background.jpg");
    background-size: cover; /* Cover ensures full background */
}

/* Custom Scrollbars for WebKit-based browsers (e.g., Chrome, Safari) */
body::-webkit-scrollbar {
    width: 12px;
}

body::-webkit-scrollbar-thumb {
    background-color: #888;
    border-radius: 6px;
    border: 3px solid #333; /* Matches background of the body */
}

body::-webkit-scrollbar-track {
    background-color: #333; /* Matches background of the body */
}

/* Container for merchandise header and cart button */
.merch-header {
    padding-top: 4vh;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px; /* Adjust spacing as needed */
    position: relative;
}

/* Cart Button Styles */
.cart-button {
    background-color: #333; /* Dark background for the button */
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

/* Ensure merchandise heading and cart button align well */
.merch-header h2 {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    font-size: 4vw;
}

/* CTA Button */
.cta {
    font-size: 2rem;
}

/* Merch section styling */
.merch {
    padding: 40px 20px;
    flex: 1;
}

.merch h2 {
    font-size: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Merch item styling */
.merch-item {
    display: flex;
    flex-direction: row; /* Align image and text in a row */
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 8px;
    box-sizing: border-box;
    width: 100%;
    margin-top: 20px;
    font-size: 2rem;
    align-items: center;
    justify-content: center;
}

.merch-item h3 {
    font-size: 2rem;
}

.merch-item p {
    font-size: 1.5rem;
}

.merch-item img {
    width: 200px;
    margin-right: 50px; /* Space between text and image */
}

.merch-details {
    max-width: 600px;
    text-align: center;
}


/* CTA Button styling */
.cta {
    background: linear-gradient(135deg, #ff0024, #ff0000);
    border: none;
    color: #ffffff;
    padding: 12px 24px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 10px 0;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.4s ease;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.cta:hover {
    background: linear-gradient(135deg, #ff0000, #ff0024);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    transform: scale(1.05);
}

.cta:focus {
    outline: none;
    border-color: #cc0000;
    box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.5);
}

/* Modal container */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    display: none;
    overflow-y: auto;
}

/* Modal content styling */
.modal-content {
    background-color: #333;
    background-image: url('../assets/background.jpg');
    background-size: cover;
    padding: 20px;
    border-radius: 8px;
    max-width: 70vw;
    max-height: 70vh;
    width: 70%;
    height: 70%;
    overflow-y: auto;
    color: #ffffff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 40px;
}

/* Custom Scrollbars for WebKit-based browsers */
.modal-content::-webkit-scrollbar {
    width: 12px;
}

.modal-content::-webkit-scrollbar-thumb {
    background-color: #888;
    border-radius: 6px;
    border: 3px solid #333; /* Matches background of the modal */
}

/* Modal body layout */
.modal-body {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    height: 100%;
}

/* Modal image styling */
.modal-image {
    flex: 1;
}

.modal-image img {
    width: 30vw;
    max-width: 50vw;
    height: auto;
    border-radius: 8px;
}

/* Text styling inside modal with opaque background */
.modal-text {
    flex: 2;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 20px;
    border-radius: 8px;
    width: 100%;
    max-width: 500px;
    color: #ffffff;
}

/* Base button styling with smooth gradient */
.modal-buy {
    background: linear-gradient(135deg, #ff0024, #ff0000);
    border: none;
    color: #ffffff;
    padding: 12px 24px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 10px 0;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.4s ease;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.modal-buy:hover {
    background: linear-gradient(135deg, #ff0000, #ff0024);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    transform: scale(1.05);
}

.modal-buy:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(255, 0, 0, 0.5);
}

.modal-add-to-basket {
    background-color: #f8c146;
    border: none;
    color: #333;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 10px;
}

.modal-add-to-basket:hover {
    background-color: #e5b03e;
}

/* Custom styles for the select element */
.size-selector {
    position: relative;
    margin-top: 20px;
}

.size-selector.hidden {
    display: none;
}

.size-selector select {
    width: 100%;
    padding: 12px 14px;
    font-size: 16px;
    color: #333;
    background-color: #ffffff;
    border: 2px solid #ff0000;
    border-radius: 8px;
    appearance: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Custom arrow for the dropdown */
.size-selector::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 10px;
    width: 0;
    height: 0;
    border-left: 10px solid #ff0000;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    transform: translateY(-50%);
    pointer-events: none;
}

/* Hover effect */
.size-selector select:hover {
    border-color: #cc0000;
}

/* Focus effect */
.size-selector select:focus {
    outline: none;
    border-color: #cc0000;
    box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.5);
}

/* Close button styling */
.close {
    color: #ffffff;
    font-size: 2em;
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
}

.carousel {
    position: relative;
    overflow: hidden;
    width: 100%; /* Adjust to the desired width */
    max-width: 300px; /* Set a maximum width if needed */

    margin: 0 auto; /* Center the carousel */
}

.carousel-images {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
}

.carousel-images img {
    width: 100%; /* Make sure images fill the container width */
    height: auto; /* Maintain aspect ratio */
    flex-shrink: 0; /* Prevent images from shrinking */
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 1; /* Ensure buttons are on top of the images */
}

.carousel-button.prev {
    left: 10px;
}

.carousel-button.next {
    right: 10px;
}

/* Quantity controls for the modal */
.quantity-controls-modal {
    display: flex;
    align-items: center;
    margin-top: 15px;
}

.quantity-controls-modal label {
    margin-right: 10px;
    font-size: 16px;
}

.quantity-controls-modal input {
    width: 50px;
    text-align: center;
    border: 2px solid #ff0000;
    border-radius: 4px;
    margin: 0 10px;
    font-size: 16px;
}

.quantity-controls-modal button {
    background-color: #ff0000;
    color: white;
    border: none;
    padding: 5px 10px;
    font-size: 18px;
    cursor: pointer;
    margin-right: 10px;
}


/* Cart Modal Styles */
.cartModal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    display: none; /* Initially hidden */
}

/* Modal Content Styling */
.cartModalContent {
    background-color: #333;
    background-image: url('../assets/background.jpg');
    background-size: cover;
    padding: 20px;
    border-radius: 8px; /* Rounded corners */
    max-width: 70vw;
    max-height: 70vh;
    width: 70%;
    height: 70%;
    overflow-y: auto;
    color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: #888 #333; /* Firefox */
}

/* Custom Scrollbars for WebKit-based browsers */
.cartModalContent::-webkit-scrollbar {
    width: 12px;
}

.cartModalContent::-webkit-scrollbar-thumb {
    background-color: #888;
    border-radius: 6px;
    border: 3px solid #333; /* Matches background of the modal */
}

.cartModalContent::-webkit-scrollbar-track {
    background-color: #333; /* Matches background of the modal */
}

/* Close button styling */
.cartModal .close {
    color: #fff;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    position: absolute; /* Positioned in the top-right corner */
    top: 10px;
    right: 40px;
}

.cartModal .close:hover,
.cartModal .close:focus {
    color: black;
    text-decoration: none;
}

.cartModal h2 {
    font-size: 3rem;
}

.cartModal p1 {
    font-size: 1.5rem;
}

/* Cart Items Container */
#cart-items-container {
    margin: 20px 0;
    width: 100%;
    display: flex;
    flex-direction: column; /* Stack cart items vertically */
    align-items: center;
}

/* Individual Cart Item Styling */
.cart-item {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 10px;
    border-radius: 8px; /* Rounded corners */
    width: 100%;
    max-width: 90%;
    color: #fff;
    display: flex;
    justify-content: center; /* Space items horizontally */
    align-items: center; /* Center items vertically */
    flex-direction: column;
    font-size: 1.5rem; /* Adjust font size */
    margin-bottom: 10px; /* Space between items */
}

/* Style for each cart item attribute */
.cart-item h3, .cart-item p {
    margin: 0 40px;
}

/* Quantity and Remove Button Container */
.quantity-controls-cart {
    display: flex;
    align-items: center;
    justify-content: center; /* Space items horizontally */

}

/* Styling for the quantity selector */
.quantity-controls-cart input {
    width: 50px;
    text-align: center;
    border: 2px solid #ff0000;
    border-radius: 4px;
    margin: 0 10px;
    font-size: 16px;
}

/* Styling for quantity buttons */
.quantity-controls-cart button {
    background-color: #ff0000;
    color: white;
    border: none;
    padding: 5px 10px;
    font-size: 18px;
    cursor: pointer;
    margin-right: 10px;
}

/* Styling for the remove button */
.remove-item-cart {
    background-color: #ff0000;
    color: #fff;
    border: none;
    padding: 8px 12px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* Remove button hover effect */
.remove-item-cart:hover {
    background-color: #cc0000; /* Darker red on hover */
}

/* Button styling within modal */
#proceed-to-payment {
    background-color: #f8c146;
    border: none;
    color: #fff;
    padding: 10px 40px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    display: block;
    margin: 20px auto 0;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

#proceed-to-payment:hover {
    background-color: #e5b03e;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}





/* Footer styling */
footer {
    font-size: 1rem; /* Use rem for consistency */
    background: #000;
    color: #fff;
    text-align: center; /* Center-align all text */
    padding: 10px 0;
    width: 100%;
    position: fixed;
    bottom: 0;
    display: flex;
    flex-direction: column; /* Stack content vertically */
    align-items: center; /* Center all content horizontally */
    z-index: 10; /* Ensure footer is above other content */
}
/* Social media section styling */
footer .social-media {
    display: flex;
    justify-content: center; /* Center social media links within their section */
    gap: 5px; /* Space between social media links */
    margin-top: 10px; /* Add some space between text and social media links */
}

/* Social media links styling */
footer .social-media a {
    color: #fff;
    text-decoration: none;
}

footer .social-media a:hover {
    text-decoration: underline;
}

/* Media queries for responsiveness */
@media (max-width: 768px) {
    /* General font size adjustment for mobile */
    body {
        font-size: 14px;
    }

    /* Header adjustments for mobile */
    header {
        flex-direction: row; /* Keep the logo and nav in a row */
        padding: 5px 10px; /* Reduce padding to conserve space */
        height: auto; /* Ensure height is only as tall as needed */
    }

    header .logo img {
        width: 15vw; /* Reduce the logo size */
        margin-right: 10px; /* Reduce margin between logo and nav */
    }

    nav ul {
        flex-direction: row; /* Keep navigation items in a row */
        flex-wrap: wrap; /* Allow items to wrap to the next line if necessary */
        gap: 10px; /* Reduce gap between navigation items */
    }

    nav ul li {
        text-align: left;
    }

    nav ul li a {
        padding: 5px 10px; /* Reduce padding inside nav links */
    }

    main {
        padding-top: 80px; /* Space for fixed header */
        padding-bottom: 120px; /* Ensure footer does not overlap */
    }

    .cta {
        font-size: 1.5rem;
        padding: 10px 20px;
    }

    .merch-item {
        flex-direction: column; /* Stack image and text vertically */
        font-size: 1.5rem;
        padding: 15px;
    }

    .merch-item img {
        width: 150px;
        margin-right: 0;
        margin-bottom: 15px; /* Space between image and text */
    }

    .modal-content {
        max-width: 90vw;
        max-height: 90vh;
        width: 90%;
        height: 90%;
    }

    .modal-image img {
        width: 80vw;
        max-width: 100%;
    }

    .modal-text {
        max-width: 100%;
    }

    footer {
        font-size: 0.875rem;
        padding: 8px 0;
    }
}