body {
    font-family: 'Work Sans', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f3f3f3;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

header {
    background-color: #003366;
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    margin: 0;
}

.home-icon, .cart-icon {
    cursor: pointer;
}

.home-icon img, .cart-icon img {
    width: 30px;
    height: 30px;
}

.main-product {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: url('main_back.png') no-repeat center center;
    background-size: cover;
    padding: 20px;
    margin: 0px 0;
}

.main-product-image {
    width: 50%;
    max-width: 300px;
    height: auto;
}

.main-product-info {
    text-align: left;
    color: white;
    width: 50%;
    padding-left: 20px;
}

.main-product-info h2 {
    margin: 0;
}

.main-product-info p {
    font-size: 18px;
}

.discount {
    margin-top: 10px;
    padding: 10px;
    color: white;
    border-color: white;
    border: 2px solid;
    font-size: 24px;
    border-radius: 5px;
    text-align: center;
}

.product-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.product-item {
    width: 200px;
    text-align: center;
    margin: 20px 0;
    cursor: pointer;
}

.product-item img {
    width: 100%;
    height: auto;
}

.product-item p {
    margin: 10px 0 0 0;
    color: #003366;
    font-weight: bold;
}

.add-to-cart, .go-to-cart, .checkout {
    width: 100%;
    max-width: 400px;
    padding: 10px 20px;
    background-color: #3EB775;
    color: white;
    font-size: 18px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin: 10px 0;
    align-self: center;
    display: block;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.add-to-cart:hover, .go-to-cart:hover, .checkout:hover {
    background-color: #009977;
}

#cart-products {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cart-product-item {
    width: 100%;
    max-width: 600px;
    display: flex;
    align-items: center;
    margin: 10px 0;
    padding: 10px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.cart-product-item img {
    width: 100px;
    height: auto;
}

.cart-product-info {
    margin-left: 20px;
    text-align: left;
}

.cart-product-info p {
    margin: 5px 0;
}

.payment-detail {
    text-align: center;
    padding: 20px;
}

.payment-detail h2,
.payment-detail p {
    margin: 10px 0;
}

.payment-detail form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.payment-detail input[type="text"] {
    width: 100%;
    max-width: 400px;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

.payment-detail .card-details {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 400px;
}

.payment-detail .card-details input {
    width: 48%;
}

.payment-detail button.checkout {
    width: 100%;
    max-width: 400px;
    padding: 10px 20px;
    background-color: #3EB775;
    color: white;
    font-size: 18px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin: 10px 0;
}

.payment-detail button.checkout:hover {
    background-color: #009977;
}

.payment-logos {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: 20px;
}

.payment-logos img.card-brands {
    width: 90%;
    max-width: 600px;
    height: auto;
    margin-bottom: 10px;
}

.payment-logos img.datafast-logo {
    width: 100%;
    max-width: 200px;
    height: auto;
}

.thank-you {
    text-align: center;
    padding: 20px;
}

.thank-you h2 {
    font-size: 36px;
    color: #3EB775;
    margin-bottom: 20px;
}

.thank-you .check-image {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
}

.thank-you .qr-code {
    width: 200px;
    height: 200px;
    margin: 20px auto;
}

.thank-you p {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
}

.thank-you .go-back {
    padding: 10px 20px;
    background-color: #3EB775;
    color: white;
    font-size: 18px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin: 20px auto;
    display: block;
}

.thank-you .go-back:hover {
    background-color: #009977;
}

.product-detail, .confirmation {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.product-detail img, .confirmation img {
    width: 100%;
    max-width: 300px;
    height: auto;
    margin-bottom: 20px;
}

.product-info, .confirmation-product-info {
    text-align: center;
}

.related-products {
    width: 100%;
    padding: 20px;
}

.related-products h3 {
    text-align: center;
    color: #003366;
}

/* Modal styles */
.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.4);
}

.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 400px;
    text-align: center;
    border-radius: 10px;
}

.modal-content h2 {
    font-size: 24px;
    color: #3EB775;
    margin-bottom: 10px;
}

.modal-content p {
    font-size: 16px;
    color: #333;
}

.modal-content input[type="text"] {
    width: 100%;
    max-width: 300px;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 18px;
    text-align: center;
}

.modal-content button {
    padding: 10px 20px;
    background-color: #3EB775;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
}

.modal-content button:hover {
    background-color: #009977;
}

.modal-content a {
    color: #3EB775;
    text-decoration: none;
    display: block;
    margin-top: 10px;
}

.modal-content a:hover {
    text-decoration: underline;
}