:root {
    --primary-color: #d4a373;
    /* Rose Gold */
    --heading-color: #22223b;
    --secondary-color: #faedcd;
    /* Soft Cream */
    --accent-color: #ccd5ae;
    /* Muted Green */
    --dark-bg: #22223b;
    /* Deep Navy */
    --text-dark: #22223b;
    /* Deep Navy for text */
    --text-light: #4a4e69;
    /* Muted Purple-Grey */
    --bg-light: #f5f5f5;
    /* Light Grey */
    --white: #ffffff;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;

    --shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&family=Playfair+Display:wght@400;700&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--heading-color);
    letter-spacing: 0.5px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.text-center {
    padding: 5rem 0;
}

.text-center {
    text-align: center;
}

.btn-primary {
    display: inline-block;
    background: var(--dark-bg);
    /* Deep Navy */
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    background: var(--primary-color);
    /* Rose Gold */
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--dark-bg);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid var(--dark-bg);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover,
.btn-secondary.active {
    background: var(--dark-bg);
    color: var(--white);
}

/* Header */
header {
    background-color: var(--white);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 0;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: 2px;
}

.logo span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links li a {
    font-weight: 400;
    color: var(--text-dark);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.nav-links li a:hover {
    color: var(--primary-color);
}

.cart-icon {
    position: relative;
    font-size: 1.2rem;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: var(--primary-color);
    color: var(--white);
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 50%;
    font-weight: bold;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url('../images/hero-beauty.jpg');
    background-size: cover;
    background-position: center;
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 30px;
    font-weight: 300;
}

/* --- Features Section --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-top: 40px;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

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

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--dark-bg);
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- Shop Page Layout (Comfyze Style) --- */
.shop-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    padding: 3rem 0;
}

.shop-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.filter-section {
    background: var(--white);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}

.filter-section h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--dark-bg);
    /* Rose Gold */
    border-bottom: 2px solid var(--bg-light);
    padding-bottom: 0.5rem;
}

.filter-option {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    cursor: pointer;
    transition: color 0.3s ease;
}

.filter-option:hover {
    color: var(--primary-color);
    /* Rose Gold */
}

.filter-option input {
    margin-right: 10px;
    accent-color: var(--primary-color);
    /* Rose Gold */
}

/* Shop Grid */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 2rem;
}

/* Product Card (Comfyze Style) */
.product-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: none;
    /* Removed old border */
}

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

.product-img-container {
    position: relative;
    overflow: hidden;
    height: 300px;
    background-color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.product-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.5s;
}

.product-card:hover .product-img {
    transform: scale(1.05);
}

.product-info {
    padding: 1.5rem;
    text-align: center;
}

.product-category {
    font-size: 0.85rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.product-title {
    font-family: var(--font-body);
    /* Comfyze uses body font for titles mostly, or headings */
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    min-height: 50px;
    /* Ensure alignment */
}

.product-price {
    font-size: 1.25rem;
    color: var(--dark-bg);
    /* Deep Navy for readability */
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Responsive Sidebar */
@media (max-width: 768px) {
    .shop-layout {
        grid-template-columns: 1fr;
    }

    .shop-sidebar {
        position: relative;
        top: 0;
        margin-bottom: 2rem;
    }
}

/* Cart Page */
.cart-container {
    margin-top: 40px;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table th {
    text-align: left;
    padding: 15px;
    border-bottom: 2px solid #eee;
    color: var(--heading-color);
}

.cart-table td {
    padding: 20px 15px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.cart-item-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    margin-right: 15px;
}

.cart-item-info {
    display: flex;
    align-items: center;
}

.qty-input {
    width: 50px;
    padding: 5px;
    text-align: center;
    border: 1px solid #ddd;
}

.btn-remove {
    color: red;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: underline;
}

.cart-summary {
    background-color: var(--light-bg);
    padding: 30px;
    margin-top: 40px;
    max-width: 400px;
    margin-left: auto;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.total-row {
    font-weight: 700;
    font-size: 1.2rem;
    border-top: 1px solid #ddd;
    padding-top: 15px;
}

/* Contact Page Styles */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 50px;
}

.contact-info-box {
    background-color: var(--secondary-color);
    color: var(--heading-color);
    padding: 40px;
    border: 1px solid #e0dcd0;
}

.contact-info-box h3 {
    color: var(--heading-color);
    margin-bottom: 25px;
}

.info-item {
    margin-bottom: 25px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contact-form {
    padding: 40px;
    background-color: var(--white);
    border: 1px solid #f0f0f0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.02);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--heading-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 0;
    /* Square for luxury feel */
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 15px;
}

.error-message {
    color: #d9534f;
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}

/* Services & Contact Styles Refined */
.service-item {
    text-align: center;
}

.service-item .service-img {
    height: 250px;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 2px;
    background-color: var(--heading-color);
    margin: 5px 0;
    display: block;
}

/* Footer */
/* Footer */
footer {
    background-color: var(--secondary-color);
    color: var(--text-color);
    padding: 80px 0 40px;
    border-top: 5px solid var(--primary-color);
    /* Added top border for style */
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 4rem;
    /* Increased gap for better spacing */
    margin-bottom: 40px;
}

.footer-col h3 {
    color: var(--heading-color);
    margin-bottom: 25px;
    font-size: 1.4rem;
    position: relative;
    display: inline-block;
}

.footer-col h3::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
    margin-top: 10px;
}

.footer-col ul li {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
}

.footer-col ul li a {
    transition: margin-left 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
    margin-left: 5px;
}

.footer-col p {
    line-height: 1.8;
}

/* Footer Contact Icons */
.footer-col ul li i {
    width: 25px;
    /* Fixed width for alignment */
    margin-right: 8px;
    color: var(--primary-color);
    /* Rose Gold */
    text-align: center;
    flex-shrink: 0;
    margin-top: 5px;
    /* Adjust visual alignment with text */
}

.footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin-top: 0;
    padding-top: 30px;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Page Headers (About, Contact, Policies) */
.page-header {
    height: 350px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: var(--white);
    text-align: center;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    /* Dark Overlay for text readability */
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    font-size: 3.5rem;
    color: var(--white);
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 40px;
    border: 1px solid #888;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 20px;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--heading-color);
    text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        padding: 40px 0;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.05);
        transition: 0.3s;
    }

    .nav-links.active {
        left: 0;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .cart-table thead {
        display: none;
    }

    .cart-table tr {
        display: block;
        margin-bottom: 20px;
        border: 1px solid #eee;
        padding: 15px;
    }

    .cart-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border: none;
        padding: 5px 0;
    }

    .cart-item-info {
        flex-direction: column;
        align-items: flex-start;
    }
}