* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: Arial, sans-serif;
    position: relative;
}

/* Blurred background image */
body::before {
    content: '';
    position: fixed; /* Use fixed so it stays put when scrolling */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('img/Union.jfif') no-repeat center center / cover;
    filter: blur(8px);
    z-index: -1;
}

header {
    background-color: #003366;
    color: white;
    padding: 20px;
    text-align: center;
}

header img {
    max-height: 80px;
    object-fit: contain;
}

.container ul {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    display: flex;
    flex-wrap: nowrap; /* prevent wrapping */
    justify-content: flex-start;
    overflow-x: auto; /* horizontal scroll */
    gap: 10px;
    padding-bottom: 10px;
    scroll-behavior: smooth;
}

/* Optional: Style scrollbar on mobile */
.container ul::-webkit-scrollbar {
    height: 6px;
}
.container ul::-webkit-scrollbar-thumb {
    background: #fac20a;
    border-radius: 10px;
}

/* Rotating border effect */
.rotating-border {
    position: relative;
    display: inline-block;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-size: 18px;
    background-color: #f1f0f0;
    color: #fac20a;
    border: 2px solid #ff9900;
    z-index: 1;
    transition: color 0.3s ease;
}

.rotating-border:hover {
    color: #afa440;
}

footer {
    background-color: #090d0e;
    color: #e1e8eb;
    padding: 10px 0;
    text-align: center;
    margin-top: 20px;
}

ul {
    list-style-type: none;
    padding: 0;
}

ul li {
    display: inline;
    margin-right: 20px;
}

a.category {
    font-size: 18px;
    color: #04040c;
    text-decoration: none;
    cursor: pointer;
}

.product-listing .product {
    border: 1px solid #003366;
    padding: 20px;
    margin-bottom: 30px;
    background-color: rgb(243, 246, 248);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product img {
    max-width: 150px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product img:hover {
    transform: scale(1.1);
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.3);
}

.product img.clicked {
    animation: bounce 0.5s ease;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
}

.product-info {
    flex: 1;
    padding-left: 20px;
}

.product-title {
    font-size: 20px;
    margin-bottom: 10px;
}

.price {
    color: #b12704;
    font-size: 18px;
}

.quantity-control {
    display: flex;
    align-items: center;
}

.quantity-control button {
    background-color: #003366;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
}

.quantity-control input {
    width: 50px;
    text-align: center;
    margin: 0 10px;
    font-size: 16px;
}

/* Add to Cart button */
.add-to-cart {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.1s ease;
}

.add-to-cart:hover {
    background-color: #2bfa02;
    transform: scale(1.05);
}

.add-to-cart:active {
    background-color: #367c3e;
    transform: scale(0.95);
}

/* Cart Icon */
.cart-icon {
    position: fixed;
    top: 20px;
    right: 30px;
    background-color: #ff9900;
    color: white;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    text-align: center;
}

.cart-icon span {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: rgb(245, 243, 248);
    color: rgb(12, 10, 10);
    padding: 5px;
    border-radius: 50%;
    font-size: 14px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #76a706;
    width: 90%;
    max-width: 600px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.remove-item {
    background-color: rgb(58, 6, 6);
    color: white;
    border: none;
    cursor: pointer;
    padding: 5px 10px;
}

.cart-total {
    font-size: 20px;
    text-align: right;
    margin-top: 20px;
}

.pay-now {
    background-color: #28a745;
    color: white;
    padding: 10px 20px;
    margin-top: 20px;
    cursor: pointer;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .product-listing .product {
        flex-direction: column;
        align-items: flex-start;
    }

    .product img {
        max-width: 100%;
        margin-bottom: 10px;
    }

    .product-info {
        padding-left: 0;
    }

    .modal-content {
        width: 95%;
        margin: 20% auto;
    }

    .quantity-control input {
        width: 40px;
    }

    .cart-icon {
        font-size: 16px;
        padding: 8px;
        top: 10px;
        right: 10px;
    }
}
.product-section {
    padding: 40px 20px;
    text-align: center;
    background: #1c1c2b;
    border-radius: 20px;
    margin: 40px auto;
    max-width: 1100px;
}

.container ul {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 12px;
    justify-content: flex-start;
    scroll-behavior: smooth;
    padding-bottom: 15px;
}

.container ul::-webkit-scrollbar {
    height: 6px;
}
.container ul::-webkit-scrollbar-thumb {
    background-color: #fac20a;
    border-radius: 10px;
}

.section-title {
    font-size: 2.2rem;
    color: #f0db4f;
    margin-bottom: 10px;
    font-weight: bold;
    letter-spacing: 1px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 25px;
}