:root {
    /* Colors */
    --primary-color: #6B46C1; /* Deep Purple */
    --primary-light: #805AD5;
    --secondary-color: #D6BCFA; /* Light Purple */
    --accent-color: #ECC94B; /* Gold/Yellow */
    --text-color: #2D3748; /* Dark Gray */
    --text-light: #4A5568;
    --background-color: #F7FAFC; /* Light Gray */
    --surface-color: #FFFFFF;
    --border-color: #E2E8F0;
    --success-color: #48BB78;
    --error-color: #F56565;

    /* Fonts */
    --font-family-sans: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-family-serif: 'Georgia', serif;

    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-xxl: 48px;

    /* Border Radius */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;

    /* Box Shadow */
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

body {
    font-family: var(--font-family-sans);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-lg);
}

/* Header */
header {
    background-color: var(--primary-color);
    color: var(--surface-color);
    padding: var(--spacing-md) 0;
    box-shadow: var(--shadow-md);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

header h1 {
    margin: 0;
    font-size: 1.8rem;
    font-family: var(--font-family-serif);
}

header nav a {
    color: var(--surface-color);
    text-decoration: none;
    margin-left: var(--spacing-xl);
    font-weight: 500;
    transition: color 0.3s ease;
}

header nav a:hover {
    color: var(--accent-color);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://via.placeholder.com/1200x500/6B46C1/FFFFFF?text=Arab+Parfum+Hero') no-repeat center center/cover;
    color: var(--surface-color);
    text-align: center;
    padding: var(--spacing-xxl) var(--spacing-lg);
    margin-bottom: var(--spacing-xxl);
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.hero-content {
    max-width: 800px;
}

.hero-section h2 {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    font-family: var(--font-family-serif);
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-xl);
}

.hero-section button {
    background-color: var(--accent-color);
    color: var(--primary-color);
    border: none;
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.hero-section button:hover {
    background-color: #F6E05E;
    transform: translateY(-2px);
}

/* Sections */
section {
    padding: var(--spacing-xxl) 0;
    margin-bottom: var(--spacing-xxl);
    background-color: var(--surface-color);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
}

section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: var(--spacing-xl);
    color: var(--primary-color);
    font-family: var(--font-family-serif);
}

/* Filter Controls */
.filter-controls {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
    flex-wrap: wrap;
    padding: 0 var(--spacing-md);
}

.filter-controls input,
.filter-controls select,
.filter-controls button {
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
}

.filter-controls input:focus,
.filter-controls select:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 2px rgba(107, 70, 193, 0.2);
}

.filter-controls button {
    background-color: var(--primary-color);
    color: var(--surface-color);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.filter-controls button:hover {
    background-color: var(--primary-light);
}

#clear-filters {
    background-color: var(--text-light);
}

#clear-filters:hover {
    background-color: var(--text-color);
}

/* Perfume Grid */
.perfume-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-xl);
    padding: var(--spacing-md);
}

.perfume-card {
    background-color: var(--surface-color);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.perfume-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.perfume-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.perfume-card-content {
    padding: var(--spacing-md);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.perfume-card h3 {
    font-size: 1.4rem;
    margin-top: 0;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-color);
    font-family: var(--font-family-serif);
}

.perfume-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-sm);
}

.perfume-card .category {
    font-weight: bold;
    color: var(--primary-light);
    font-size: 0.85rem;
    margin-bottom: var(--spacing-sm);
}

/* About Section */
.about-section #about-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    text-align: center;
}

.about-section #about-content p {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-md);
    color: var(--text-light);
}

/* Contact Section */
.contact-section {
    text-align: center;
}

.contact-section form {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--surface-color);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    text-align: left;
}

.contact-section .form-group {
    margin-bottom: var(--spacing-md);
}

.contact-section label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
    color: var(--text-color);
}

.contact-section input[type="text"],
.contact-section input[type="email"],
.contact-section textarea {
    width: calc(100% - 20px); /* Account for padding */
    padding: var(--spacing-sm);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    box-sizing: border-box;
}

.contact-section input:focus,
.contact-section textarea:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 2px rgba(107, 70, 193, 0.2);
}

.contact-section button[type="submit"] {
    background-color: var(--primary-color);
    color: var(--surface-color);
    border: none;
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

.contact-section button[type="submit"]:hover {
    background-color: var(--primary-light);
}

.form-status {
    margin-top: var(--spacing-md);
    font-weight: 600;
    text-align: center;
}

.form-status.success {
    color: var(--success-color);
}

.form-status.error {
    color: var(--error-color);
}

/* Footer */
footer {
    background-color: var(--text-color);
    color: var(--surface-color);
    text-align: center;
    padding: var(--spacing-lg) 0;
    margin-top: var(--spacing-xxl);
}

footer p {
    margin: var(--spacing-xs) 0;
    font-size: 0.9rem;
}

/* Loading Skeletons */
.loading-skeleton {
    background: linear-gradient(90deg, var(--border-color) 25%, #e8e8e8 50%, var(--border-color) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: var(--border-radius-md);
}

.perfume-grid .loading-skeleton {
    height: 300px; /* Approximate height of a card */
}

.loading-text {
    height: 1.2em;
    width: 80%;
    margin: var(--spacing-sm) auto;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Modal */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.6); /* Black w/ opacity */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding-top: 60px;
}

.modal-content {
    background-color: var(--surface-color);
    margin: 5% auto;
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    width: 90%;
    max-width: 700px;
    position: relative;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.close-button {
    color: var(--text-light);
    font-size: 2rem;
    font-weight: bold;
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-lg);
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-button:hover,
.close-button:focus {
    color: var(--primary-color);
    text-decoration: none;
    cursor: pointer;
}

#modal-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.modal-image-container {
    width: 100%;
    max-width: 300px;
    height: 300px;
    margin-bottom: var(--spacing-lg);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

#modal-perfume-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#modal-perfume-name {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    font-family: var(--font-family-serif);
}

.modal-category {
    font-size: 1rem;
    color: var(--primary-light);
    margin-bottom: var(--spacing-md);
    font-weight: 600;
}

#modal-perfume-description {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: var(--spacing-lg);
}

.modal-notes, .modal-usage, .modal-where-to-buy {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-sm);
    text-align: left;
    width: 100%;
    max-width: 500px;
}

.modal-notes strong, .modal-usage strong, .modal-where-to-buy strong {
    color: var(--primary-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        text-align: center;
    }

    header nav {
        margin-top: var(--spacing-md);
    }

    header nav a {
        margin: 0 var(--spacing-sm);
    }

    .hero-section h2 {
        font-size: 2.2rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    section h2 {
        font-size: 2rem;
    }

    .filter-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-controls input,
    .filter-controls select,
    .filter-controls button {
        width: 100%;
        margin-bottom: var(--spacing-sm);
    }

    .perfume-grid {
        grid-template-columns: 1fr;
    }

    .contact-section form {
        padding: var(--spacing-md);
    }

    .modal-content {
        margin: 10% auto;
        padding: var(--spacing-lg);
    }

    #modal-perfume-name {
        font-size: 1.5rem;
    }

    .modal-image-container {
        height: 250px;
        width: 250px;
    }
}
