/* General Styles */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #3b1d82, #f7931a);
    color: white;
    text-align: center;
    margin: 0;
    padding: 0;
    transition: background 0.3s ease-in-out;
}

.dark-mode {
    background: linear-gradient(135deg, #1a1a1a, #3b1d82);
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    font-size: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.header-right {
    display: flex;
    gap: 10px;
}

/* Dark Mode Toggle */
#dark-mode-toggle {
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

/* Cart Button */
#cart-btn {
    background: #f7931a;
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 18px;
    cursor: pointer;
    border-radius: 10px;
    transition: transform 0.3s ease-in-out;
}

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

/* Product Section */
#products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

/* Product Card */
.product {
    background: rgba(255, 255, 255, 0.2);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease-in-out;
    perspective: 1000px;
}

.product:hover {
    transform: rotateY(5deg);
}

.product img {
    width: 100%;
    border-radius: 10px;
    background: none;
    background-color: transparent;
}

.product button {
    background: #f7931a;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 10px;
    margin-top: 10px;
    transition: background 0.3s;
}

.product button:hover {
    background: #d67914;
}

/* Cart Sidebar */
#cart-sidebar {
    position: fixed;
    right: -350px;
    top: 0;
    width: 300px;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    padding: 20px;
    transition: right 0.4s ease-in-out;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    font-size: 22px;
}

.close-cart {
    cursor: pointer;
    font-size: 25px;
    transition: color 0.3s;
}

.close-cart:hover {
    color: #f7931a;
}

#cart-items {
    list-style: none;
    padding: 0;
    text-align: left;
}

#cart-items li {
    margin: 10px 0;
    background: rgba(255, 255, 255, 0.3);
    padding: 10px;
    border-radius: 8px;
}

#checkout-btn {
    background: #f7931a;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 10px;
    width: 100%;
    margin-top: 15px;
}

#checkout-btn:hover {
    background: #d67914;
}
/* Modal Background */
/* Modal Background */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

/* Modal Content */
.modal-content {
    background: linear-gradient(135deg, #ffffff, #f4f4f4);
    color: #333;
    padding: 25px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    transform: scale(0.8);
    opacity: 0;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

/* Show modal with animation */
.modal.show .modal-content {
    transform: scale(1);
    opacity: 1;
}

/* Close Button */
.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #333;
    transition: color 0.3s;
}

.close-modal:hover {
    color: #f7931a;
}

/* Form Styling */
.form-group {
    text-align: left;
    margin-bottom: 15px;
}

label {
    font-weight: 600;
    font-size: 14px;
}

input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    margin-top: 5px;
    outline: none;
    transition: border 0.3s ease;
}

input:focus {
    border-color: #f7931a;
}

/* Payment Options */
.payment-options {
    display: flex;
    gap: 15px;
    margin-top: 5px;
}

.payment-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 16px;
}

/* Custom Radio Buttons */
.payment-label input {
    display: none;
}

.custom-radio {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #f7931a;
    display: inline-block;
    margin-right: 8px;
    position: relative;
}

.payment-label input:checked + .custom-radio::after {
    content: "";
    width: 10px;
    height: 10px;
    background: #f7931a;
    position: absolute;
    top: 3px;
    left: 3px;
    border-radius: 50%;
}

/* Confirm Button */
#confirm-shipping {
    background: #f7931a;
    color: white;
    border: none;
    padding: 12px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 8px;
    width: 100%;
    margin-top: 15px;
    transition: background 0.3s ease, transform 0.2s ease;
}

#confirm-shipping:hover {
    background: #d67914;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 500px) {
    .modal-content {
        width: 90%;
        padding: 20px;
    }
}
