@font-face {
    font-family: CS;
    src: url(SHUTTLE-X.ttf);
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}
body {
    background: url(bg.png);
    background-size: cover;
    background-position: center;
    margin: 0;
    font-family: CS;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: black;
    flex-direction: column;
    margin: 0;
}

.heading {
    padding: 40px;
    text-align: center;
    margin-bottom: 30px;
    width: 100%;
    position: relative;
    background: rgba(255, 255, 255, 0.8);
}

h1 {
    font-size: 60px;
    margin-bottom: 10px;
    background: linear-gradient(to right,#D03463,#FF6A88);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    font-weight: bold;
}

.back-button {
    position: absolute;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(to right, #D03463, #FF6A88);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    cursor: pointer;
    font-family: CS;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.back-button:hover {
    opacity: 0.9;
    transform: translateY(-50%) scale(1.05);
}

.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 0 2rem;
    max-width: 1200px;
    width: 100%;
}

.product-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 1rem;
    text-align: center;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.product-name {
    font-size: 1.2rem;
    margin: 0.5rem 0;
    color: #333;
}

.product-price {
    font-size: 1.5rem;
    color: #D03463;
    margin: 0.5rem 0;
    font-weight: bold;
}

.buy-button {
    background: linear-gradient(to right, #D03463, #FF6A88);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    cursor: pointer;
    font-family: CS;
    font-size: 1rem;
    transition: opacity 0.3s ease;
}

.buy-button:hover {
    opacity: 0.9;
}
::-webkit-scrollbar {
    width: 12px;
    height: 0;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.4);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #D03463, #FF6A88);
    border-radius: 10px;
    border: 3px solid rgba(255, 255, 255, 0.4);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #b82e56, #ff5677);
}

/* For Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #D03463 rgba(255, 255, 255, 0.4);
}
footer {
    width: 100%;
    padding: 20px;
    background: linear-gradient(to right, rgba(208, 52, 99, 0.9), rgba(255, 106, 136, 0.9));
    color: white;
    text-align: center;
    margin-top: auto;
    box-sizing: border-box;
    backdrop-filter: blur(5px);
}

footer p {
    margin: 0;
    font-size: 1rem;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    footer {
        padding: 15px;
    }
    
    footer p {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .heading {
        padding: 20px;
    }
    
    h1 {
        font-size: 40px;
    }
    
    .products {
        padding: 0 1rem;
    }

    .back-button {
        left: 20px;
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .heading {
        padding: 15px;
        margin-bottom: 20px;
    }

    h1 {
        font-size: 32px;
    }

    .back-button {
        left: 15px;
        padding: 0.5rem 1.2rem;
        font-size: 0.8rem;
    }
}

#cart-icon-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    cursor: pointer;
}

#cart-icon {
    background: linear-gradient(to right, #D03463, #FF6A88);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

#cart-icon:hover {
    transform: scale(1.1);
}

#cart-item-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #FF6A88;
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8rem;
    font-weight: bold;
    border: 2px solid white;
}

#cart-container {
    position: fixed;
    top: 0;
    right: -350px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 0 0 0 15px;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    height: 100vh;
    overflow-y: auto;
    width: 320px;
    font-family: CS;
    transition: right 0.3s ease;
    z-index: 999;
}

#cart-container.show-cart {
    right: 0;
}

#close-cart {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #D03463;
}

#cart-header {
    margin-top: 20px;
    margin-bottom: 20px;
    text-align: center;
}

#cart-items {
    margin-top: 20px;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

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

.quantity-controls button {
    background: linear-gradient(to right, #D03463, #FF6A88);
    color: white;
    border: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.quantity-controls input {
    width: 40px;
    text-align: center;
    margin: 0 5px;
    font-family: CS;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 2px;
}

#cart-total {
    font-weight: bold;
    margin: 20px 0;
    text-align: right;
    color: #D03463;
    font-size: 1.2rem;
}

#checkout-button {
    background: linear-gradient(to right, #D03463, #FF6A88);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    cursor: pointer;
    font-family: CS;
    font-size: 1rem;
    transition: opacity 0.3s ease;
    width: 100%;
}

#checkout-button:hover {
    opacity: 0.9;
}

@media (max-width: 480px) {
    #cart-container {
        width: 85%;
    }
}
#checkout-form-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1100;
}

#checkout-form-content {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

#close-checkout-form {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #D03463;
}

#checkout-form h2 {
    color: #D03463;
    margin-bottom: 20px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: CS;
    font-size: 16px;
}

.form-group small {
    color: #777;
    font-size: 12px;
}

.payment-options {
    display: flex;
    gap: 20px;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 5px;
}

#checkout-total {
    font-weight: bold;
    margin: 20px 0;
    text-align: right;
    color: #D03463;
    font-size: 1.2rem;
}

#confirm-order-button {
    background: linear-gradient(to right, #D03463, #FF6A88);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    cursor: pointer;
    font-family: CS;
    font-size: 1rem;
    transition: opacity 0.3s ease;
    width: 100%;
}

#confirm-order-button:hover {
    opacity: 0.9;
}

/* Thank you message styles */
#thank-you-message {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1100;
}

.thank-you-content {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    width: 90%;
    max-width: 400px;
    text-align: center;
}

.thank-you-content i {
    font-size: 4rem;
    color: #4CAF50;
    margin-bottom: 1rem;
}

.thank-you-content h2 {
    color: #333;
    margin-bottom: 10px;
}

.thank-you-content p {
    color: #666;
    margin-bottom: 20px;
}

#close-thank-you {
    background: linear-gradient(to right, #D03463, #FF6A88);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    cursor: pointer;
    font-family: CS;
    font-size: 1rem;
    transition: opacity 0.3s ease;
}

#close-thank-you:hover {
    opacity: 0.9;
}

/* Additional responsive styles */
@media (max-width: 768px) {
    .products {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }
    
    #checkout-form-content {
        padding: 1.5rem;
        width: 95%;
    }
    
    .payment-options {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .products {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .product-card {
        padding: 0.8rem;
    }
    
    .product-image {
        height: 160px;
    }
    
    .product-name {
        font-size: 1rem;
    }
    
    .product-price {
        font-size: 1.2rem;
    }
    
    .buy-button {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
    
    #cart-icon {
        width: 45px;
        height: 45px;
    }
    
    #checkout-form-content {
        padding: 1rem;
    }
}
#checkout-button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }