body {
    font-family: 'Georgia', serif;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f9f5f0; /* Soft cream background */
}

.container {
    background: #fffaf5; /* Warm white */
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 500px;
    text-align: center;
    border: 1px solid #e8d8c0; /* Light gold border */
}

h1 {
    color: #333;
    margin-bottom: 20px;
}

button {
    background-color: #b78d65; /* Rose gold */
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 1px;
}

button:hover {
    background-color: #9a7552; /* Darker rose gold */
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.output {
    margin-top: 20px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-height: 100px;
    text-align: left;
    background-color: #f9f9f9;
}

.listening {
    background-color: #f44336;
}

/* Perfume results styling */
.perfume {
    border-bottom: 1px solid #eee;
    padding: 10px 0;
    margin-bottom: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.perfume:hover {
    background-color: #f0f0f0;
}

.price {
    font-weight: bold;
    color: #0f9d58;
}

.notes {
    font-size: 0.9em;
    color: #888;
}

.status {
    color: #1967d2;
}

.error {
    color: #d93025;
}

.loading {
    color: #666;
    font-style: italic;
}

.query {
    margin-bottom: 15px;
    font-weight: bold;
}

.no-matches {
    color: #666;
    font-style: italic;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.close {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

#modalImage {
    width: 200px;
    height: 200px;
    display: block;
    margin: 0 auto 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    object-fit: contain;
    background-color: #f5f5f5;
    padding: 10px;
    border: 1px solid #ddd;
}

/* Modal content styling */
#modalDetails {
    margin: 15px 0;
    line-height: 1.6;
}

#modalDetails p {
    margin: 8px 0;
}

#modalDetails strong {
    color: #333;
}

/* Size selection styling */
#sizeSelect {
    display: block;
    margin: 15px 0;
    padding: 8px;
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f9f9f9;
    font-size: 16px;
}

/* Add to cart button */
#addToCartBtn {
    background-color: #0f9d58;
    width: 100%;
}

#addToCartBtn:hover {
    background-color: #0b8043;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .modal-content {
        width: 90%;
        margin: 20% auto;
    }
    
    #modalImage {
        max-width: 150px;
    }
}
