* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    line-height: 1.6;
}

header {
    background-color: #fff;
    color: #333;
    padding: 0.5rem;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: nowrap;
}

header h1 {
    font-size: 1.2rem;
    color: #333;
}

nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

nav a {
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    white-space: nowrap;
}

nav a:hover {
    text-decoration: underline;
}

main {
    max-width: 1400px;
    margin: 1rem auto;
    padding: 0 1rem;
}

#product-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 1rem 0;
}

.product-item {
    background: white;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.product-item:hover {
    transform: translateY(-5px);
}

.product-item img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

.price {
    font-weight: bold;
    color: #28a745;
    margin: 0.5rem 0;
}

.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    color: white;
    text-align: center;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.9rem;
    transition: transform 0.2s, background-color 0.3s;
    margin: 0.5rem;
}

.btn:hover {
    transform: scale(1.05);
}

.btn-primary {
    background-color: #007bff;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-danger {
    background-color: #dc3545;
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn-secondary {
    background-color: #6c757d;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-razorpay {
    background-color: #F79122;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

.btn-razorpay:hover {
    background-color: #e07b00;
    transform: scale(1.05);
}

.btn-razorpay:active {
    transform: scale(0.95);
}

.btn-razorpay::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.btn-razorpay:hover::after {
    width: 200px;
    height: 200px;
}

.btn-qr {
    background-color: #4A90E2;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

.btn-qr:hover {
    background-color: #357ABD;
    transform: scale(1.05);
}

.btn-qr:active {
    transform: scale(0.95);
}

.btn-qr::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.btn-qr:hover::after {
    width: 200px;
    height: 200px;
}

.btn-upi {
    background-color: #28a745;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

.btn-upi:hover {
    background-color: #218838;
    transform: scale(1.05);
}

.btn-upi:active {
    transform: scale(0.95);
}

.btn-upi::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.btn-upi:hover::after {
    width: 200px;
    height: 200px;
}

.form-container {
    background: white;
    padding: 1.5rem;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.payment-container {
    text-align: center;
    margin: 1rem 0;
}

.qr-code {
    max-width: 200px;
    height: auto;
    margin: 1rem auto;
    display: block;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: bold;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.cart-items,
.order-item,
.order-subitem {
    background: white;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

.cart-item img,
.order-item img,
.order-subitem img {
    max-width: 80px;
    height: auto;
    margin-right: 0.5rem;
}

.product-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.error {
    color: red;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.success {
    color: green;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.error-message {
    color: red;
    font-size: 0.8rem;
    margin-top: 0.3rem;
}

#slider-images img {
    max-width: 100%;
    height: auto;
    display: none;
}

#slider-images img.active {
    display: block;
}

.slider-prev,
.slider-next {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    margin: 0.5rem;
    border-radius: 4px;
}

.slider-prev:hover,
.slider-next:hover {
    background-color: #0056b3;
}

.order-confirmation {
    text-align: center;
    margin-bottom: 1.5rem;
}

.order-confirmed {
    font-size: 1.8rem;
    color: #28a745;
    margin-bottom: 0.5rem;
}

.note {
    font-size: 0.9rem;
    color: #555;
    margin-top: 1rem;
    text-align: center;
}

.about-container {
    background: white;
    padding: 1.5rem;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.about-section {
    margin-bottom: 1.5rem;
}

.about-section h3 {
    color: #333;
    margin-bottom: 0.5rem;
}

.about-section p {
    color: #555;
}

.about-section ul {
    list-style: none;
    padding: 0;
}

.about-section ul li {
    margin-bottom: 0.5rem;
    color: #555;
}

.about-section ul li strong {
    color: #333;
}

.contact-container {
    background: white;
    padding: 1.5rem;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.contact-details {
    margin-bottom: 1.5rem;
}

.contact-details h3 {
    color: #333;
    margin-bottom: 0.5rem;
}

.contact-details p {
    color: #555;
    margin-bottom: 0.5rem;
}

.contact-details a {
    color: #007bff;
    text-decoration: none;
}

.contact-details a:hover {
    text-decoration: underline;
}

.contact-form {
    margin-top: 1.5rem;
}

.contact-form h3 {
    color: #333;
    margin-bottom: 0.5rem;
}

.policy-container {
    background: white;
    padding: 1.5rem;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.policy-section {
    margin-bottom: 1.5rem;
}

.policy-section h3 {
    color: #333;
    margin-bottom: 0.5rem;
}

.policy-section p {
    color: #555;
    margin-bottom: 0.5rem;
}

.policy-section a {
    color: #007bff;
    text-decoration: none;
}

.policy-section a:hover {
    text-decoration: underline;
}

.last-updated {
    font-size: 0.8rem;
    color: #777;
    margin-bottom: 1rem;
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.animate__animated.animate__bounceIn {
    animation: bounceIn 1s ease;
}

.animate__animated.animate__fadeIn {
    animation: fadeIn 1s ease;
}

footer {
    background-color: #fff;
    color: #333;
    text-align: center;
    padding: 1rem;
    width: 100%;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
}

/* Responsive Design */
@media (max-width: 1024px) {
    #product-list {
        grid-template-columns: repeat(4, 1fr);
    }

    header h1 {
        font-size: 1.1rem;
    }

    nav {
        gap: 0.8rem;
    }

    nav a {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    #product-list {
        grid-template-columns: repeat(2, 1fr);
    }

    header h1 {
        font-size: 1rem;
    }

    nav {
        gap: 0.8rem;
    }

    nav a {
        font-size: 0.8rem;
    }

    .header-content {
        gap: 0.3rem;
    }

    header img {
        height: 40px;
    }

    .form-container, .about-container, .contact-container, .policy-container {
        padding: 1rem;
    }

    .btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }

    .btn-razorpay, .btn-qr, .btn-upi {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .qr-code {
        max-width: 180px;
    }

    .cart-item img,
    .order-item img,
    .order-subitem img {
        max-width: 60px;
    }

    .order-confirmed {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    #product-list {
        grid-template-columns: repeat(2, 1fr);
    }

    header h1 {
        font-size: 0.9rem;
    }

    nav {
        gap: 0.6rem;
    }

    nav a {
        font-size: 0.75rem;
    }

    header img {
        height: 35px;
    }

    main {
        padding: 0 0.5rem;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 0.9rem;
    }

    .btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }

    .btn-razorpay, .btn-qr, .btn-upi {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .qr-code {
        max-width: 150px;
    }

    .cart-item img,
    .order-item img,
    .order-subitem img {
        max-width: 50px;
    }

    .order-confirmed {
        font-size: 1.2rem;
    }

    .about-container, .contact-container, .policy-container {
        max-width: 100%;
    }
}