/* General Reset and Body Setup */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif; /* Sets a modern font style */
    background-color: #f4f4f4; /* Light neutral background for readability */
    color: #333; /* Dark gray text color for contrast */
    line-height: 1.6; /* Improves readability */
}

/* Header Styles */
header {
    background-color: #555555; /* Sets a soft dark gray header background */
    padding: 20px; /* Adds space inside the header */
    color: white; /* Ensures text is visible */
    display: flex; /* Aligns elements horizontally */
    justify-content: space-between; /* Spaces out logo and icons */
    align-items: center; /* Vertically centers content */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Adds a soft shadow */
}

/* Logo Styling */
.logo h1 {
    font-size: 2.2em; /* Increases font size for visibility */
    font-weight: bold; /* Enhances emphasis */
    color: #89CFF0; /* Light blue color for brand identity */
    letter-spacing: 2px; /* Adds spacing for readability */
}

/* Header Icons */
.header-icons a {
    color: white; /* White color for icons */
    font-size: 1.5em; /* Adjusts icon size */
    margin-left: 20px; /* Spaces out icons */
    transition: color 0.3s ease; /* Smooth hover effect */
}

.header-icons a:hover {
    color: #A1C6EA; /* Changes color on hover */
}

/* Search Bar */
.search-bar {
    display: flex; /* Aligns elements in a row */
    align-items: center; /* Centers content vertically */
    margin-top: 10px; /* Adds spacing */
}

.search-bar input {
    flex-grow: 1; /* Expands input field */
    padding: 12px; /* Adds padding for comfort */
    font-size: 1.1em; /* Adjusts text size */
    border-radius: 25px; /* Rounds the corners */
    border: 1px solid #ccc; /* Adds a soft border */
    background-color: #ffffff; /* White background */
    transition: all 0.3s ease; /* Smooth transition */
}

.search-bar input:focus {
    border-color: #89CFF0; /* Changes border color on focus */
    background-color: #f0f0f0; /* Lightens background */
    outline: none; /* Removes default outline */
}

.search-bar button {
    padding: 12px; /* Adjusts button padding */
    background-color: #A1C6EA; /* Light blue background */
    border: none; /* Removes default border */
    border-radius: 25px; /* Rounds button corners */
    cursor: pointer; /* Indicates interactivity */
    margin-left: 10px; /* Adds spacing */
    transition: background-color 0.3s ease; /* Smooth hover effect */
}

.search-bar button:hover {
    background-color: #79A3C1; /* Darkens on hover */
}

/* Navigation Bar Styles */
nav.menu-bar {
    display: flex; /* Aligns menu items horizontally */
    justify-content: center; /* Centers navigation items */
    background-color: #555555; /* Dark gray background */
    padding: 15px 0; /* Adds padding */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Adds a shadow */
}

nav.menu-bar a {
    margin: 0 20px; /* Spaces out menu links */
    text-decoration: none; /* Removes default underline */
    color: white; /* White text color */
    font-size: 1.1em; /* Adjusts font size */
    font-weight: 600; /* Enhances visibility */
    transition: color 0.3s ease; /* Smooth hover effect */
}

nav.menu-bar a:hover {
    color: #A1C6EA; /* Light blue hover effect */
}

/* Catalog Section */
#jersey-catalogue {
    display: flex; /* Enables flexible layout */
    flex-wrap: wrap; /* Allows items to wrap */
    gap: 20px; /* Adds spacing */
    justify-content: center; /* Centers items */
    padding: 40px 20px; /* Adds padding */
    background-color: #f9f9f9; /* Light background */
}

.jersey-card {
    background-color: #ffffff; /* White card background */
    border-radius: 12px; /* Rounded corners */
    padding: 20px; /* Adds spacing */
    width: 280px; /* Sets width */
    text-align: center; /* Centers content */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1); /* Adds a shadow */
    transition: transform 0.3s ease; /* Smooth hover effect */
}

.jersey-card:hover {
    transform: translateY(-12px); /* Moves card up slightly on hover */
}

/* Login Page */
.login-container {
    max-width: 420px; /* Sets max width */
    margin: 80px auto; /* Centers the container */
    background-color: #ffffff; /* White background */
    padding: 30px; /* Adds padding */
    border-radius: 12px; /* Rounds the corners */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1); /* Adds a shadow */
    text-align: center; /* Centers content */
}

.login-container h2 {
    font-size: 2.5em; /* Increases font size */
    color: #555555; /* Soft gray text */
    text-transform: uppercase; /* Capitalizes text */
    letter-spacing: 2px; /* Adds spacing */
}

/* Footer Styles */
footer {
    background-color: #f4f4f4; /* Light gray background */
    color: #555555; /* Soft gray text */
    padding: 30px; /* Adds padding */
    text-align: center; /* Centers text */
    font-size: 1em; /* Sets font size */
    border-top: 1px solid #ccc; /* Adds a top border */
}

footer a {
    color: #A1C6EA; /* Light blue links */
    text-decoration: none; /* Removes underline */
    font-weight: 600; /* Enhances visibility */
}

footer a:hover {
    text-decoration: underline; /* Adds underline on hover */
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-container {
        width: 90%; /* Makes login form responsive */
        padding: 20px;
    }
}
    .search-bar input, .search-bar button {
        font-size: 1em; /* Adjusts input and button size for smaller screens */
    }

    .jersey-card {
        width: 90%;
        padding: 15px; /* Adjusts padding for responsiveness */
    }

    .form-group input, .form-group .login-btn {
        font-size: 1em;
        padding: 12px;
    }

    .cart-table td input {
        width: 45px;
        font-size: 12px; /* Ensures cart input fields are readable */
    }
}

/* Dropdown Size Selector */
.size-select {
    padding: 5px;
    font-size: 1em;
    border-radius: 5px;
    border: 1px solid #ddd;
    cursor: pointer; /* Changes cursor to pointer for selection */
}

.size-select:focus {
    outline: none;
    border-color: #1d3557; /* Highlights dropdown on focus */
}