/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
header {
    position: sticky;
    top: 0; /* Stick to the top of the page */
    width: 100%;
    z-index: 1000; /* Make sure the header is above other content */
    background-color: #003366;
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Optional: Adds a shadow for better separation */
    padding: 10px 20px;
    display: flex;
    justify-content: space-between; /* Align the logo and icon container */
    align-items: center;
}

header .logo img {
    height: 50px;
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 15px;
}

header nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 14px;
}

/* Main Image Grid */
.image-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
    padding: 20px;
}

.image-grid a img {
    width: 100%;
    max-height: 380px;
    border-radius: 8px;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.3), -5px -5px 10px rgba(0, 0, 0, 0.1);  /* 3D shadow effect */
    transition: transform 0.3s ease;
}

.image-grid a:hover img {
    transform: scale(1.05);
}

.image-item {
    position: relative;
    display: inline-block;
    text-align: center; /* Center align both image and text */
    margin-bottom: 20px;
}

.image-item p {
    margin-top: 10px; /* Space between image and text */
    font-size: 14px; /* Adjust font size */
    color: #333; /* Text color */
}

.image-item a img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

/* Footer */
footer {
    position: sticky;
    bottom: 0; /* Stick to the bottom of the page */
    width: 100%;
    z-index: 1000;
    background-color: #003366;
    color: white;
    text-align: center;
    padding: 10px 0;
    margin-top: auto;
}

/* Container for your icons */
.icon-container {
    display: flex;
    justify-content: flex-end; /* Align the cart icon to the right */
    align-items: center; /* Vertically center the icons */
    gap: 20px; /* Space between icons */
    flex-grow: 1; /* Ensure it takes up available space */
}

/* For cart icon */
.cart-icon {
    cursor: pointer;
}

/* For home icon, align it to the right */
.home-icon {
    cursor: pointer;
}

.overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    background: rgba(0, 0, 0, 0.7); /* Semi-transparent black */
    color: white;
    font-size: 20px;
    font-weight: bold;
    text-transform: uppercase;
    padding: 10px 20px;
    text-align: center;
    letter-spacing: 2px;
    z-index: 2; /* Ensures it appears above the image */
    pointer-events: none; /* Ensures the text does not interfere with clicks */
}

/* Cart Overlay */
.cart-overlay {
    position: absolute;
    top: 50px; /* Adjust this to position it below the cart icon */
    right: 10px; /* Adjust this to align it horizontally */
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #ccc;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 10px;
    z-index: 1000;
    display: none; /* Initially hidden */
}

.cart-overlay.active {
    display: block;
}

.cart-icon {
    position: relative;
    display: inline-block;
    font-size: 24px; /* Adjust the size to your liking */
    color: white;
}

.cart-icon a {
    text-decoration: none;
    color: inherit;
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -10px; /* Adjust to position correctly */
    right: -10px; /* Adjust to position correctly */
    background: red; /* Badge background color */
    color: white; /* Badge text color */
    font-size: 12px; /* Badge font size */
    font-weight: bold;
    width: 20px; /* Badge size */
    height: 20px; /* Badge size */
    line-height: 20px; /* Centers text vertically */
    text-align: center; /* Centers text horizontally */
    border-radius: 50%; /* Makes it a circle */
    border: 2px solid white; /* Optional: Adds a white border for better visibility */
    z-index: 2; /* Ensures it is above the cart icon */
}

#cart-table {
    width: 100%;
    border-collapse: collapse;
}

#cart-table th, #cart-table td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: left;
}

#main-total {
    font-weight: bold;
    margin-top: 10px;
}

/* Responsive Design */
@media (min-width: 600px) {
    .image-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .image-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}.price {
    font-size: 1.2em;
    font-weight: bold;
    margin: 10px 0;
    color: #333;
}

.add-to-cart-form label, 
.add-to-cart-form select {
    margin-right: 10px;
}

.add-to-cart-btn {
    background-color: #007BFF;
    color: #fff;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 5px;
}

.add-to-cart-btn:hover {
    background-color: #0056b3;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #fff; /* Adjust color as needed */
    outline: none; /* Removes focus outline */
}

.close-button:hover {
    color: #ff0000; /* Optional: Change color on hover */
}

#cart-footer {
    display: flex;
    justify-content: space-between; /* Aligns items on the same line */
    align-items: center; /* Vertically aligns items */
    margin-top: 20px;
}

#main-total {
    margin: 0; /* Removes default margin for precise alignment */
    font-size: 16px; /* Optional: Adjust font size */
    font-weight: bold; /* Optional: Make the text bold */
}

#pay-now-button {
    padding: 10px 20px;
    background-color: #28a745; /* Green color */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

#pay-now-button:hover {
    background-color: #218838; /* Darker green on hover */
}

.powered-by img {
    height: 50px; /* Set to 100px */
    display: block;
    margin: 5px auto;
}

.drop-container {
    display: flex;
    justify-content: center;
    margin: 20px auto;
}
