body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

header {
    background-color: #8c00ff;
    color: white;
    padding: 10px 0;
    text-align: center;
}

header h1 {
    margin: 0;
}

nav {
    margin-top: 10px;
}

nav a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
}

nav a:hover {
    text-decoration: underline;
}

section {
    padding: 20px;
}

h2 {
    color: #8c00ff;
}

.home {
    text-align: center;
    margin: 20px;
}

.home p {
    font-size: 18px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #8c00ff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
}

.btn:hover {
    background-color: #555;
}

.products .product-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.product-item {
    background-color: white;
    border: 1px solid #ddd;
    margin: 10px;
    padding: 10px;
    text-align: center;
    width: calc(33% - 40px);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.product-item img {
    width: 100%;
    height: auto;
}

.product-item h3 {
    margin: 10px 0;
    font-size: 18px;
}

.product-item p {
    color: #555;
}

.product-details {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 20px;
    padding: 20px;
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.product-details img {
    width: 40%;
    height: auto;
}

.product-details .details {
    width: 50%;
}

.cart table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.cart table th,
.cart table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.checkout form {
    max-width: 400px;
    margin: 0 auto;
    background-color: white;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.checkout form label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
}

.checkout form input,
.checkout form select,
.checkout form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-content {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 80%;
    max-width: 400px;
}

#popupCheckbox {
    margin-right: 10px;
}

#popupButton {
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #cf3910;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    opacity: 0.5;
}

#popupButton:disabled {
    cursor: not-allowed;
}

#popupButton:not(:disabled) {
    opacity: 1;
}

#popup {
    display: none;
}

footer {
    text-align: center;
    padding: 10px;
    background-color: #333;
    color: white;
    margin-top: 20px;
}
