:root {
    --primary-color: #E63946; /* A vibrant yet elegant red/rose */
    --secondary-color: #1D3557; /* Deep elegant blue */
    --accent-color: #457B9D;
    --bg-color: #FDFBF7; /* Warm off-white */
    --text-main: #2B2D42;
    --text-light: #8D99AE;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
}

/* Typography */
h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--secondary-color);
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background-color: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--secondary-color);
}
.logo span {
    color: var(--primary-color);
    font-style: italic;
    font-weight: 400;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}

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

.cart-icon {
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    background-color: #fff;
    padding: 8px 15px;
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}
.cart-icon:hover {
    transform: translateY(-2px);
}

/* Main Content Toggle */
.page-section {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}
.page-section.active {
    display: block;
}

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

/* Hero Section */
.hero {
    height: 70vh;
    background: linear-gradient(to right, rgba(253, 251, 247, 0.9) 30%, rgba(253, 251, 247, 0) 100%),
                url('https://images.unsplash.com/photo-1590736969955-71cc94801759?ixlib=rb-4.0.3&auto=format&fit=crop&w=1200&q=80') center/cover;
    display: flex;
    align-items: center;
    padding: 0 5%;
}

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

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--text-light);
}

.cta-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1rem;
    font-family: var(--font-body);
    font-weight: 500;
    cursor: pointer;
    border-radius: 30px;
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
}

.cta-btn:hover {
    background-color: #d62828;
    transform: translateY(-2px);
}

/* Products Grid */
.featured, .section-header {
    padding: 60px 5% 20px;
    text-align: center;
}
.featured h2, .section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}
.section-header p {
    color: var(--text-light);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 40px;
    padding: 20px 5% 60px;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.product-img {
    height: 300px;
    width: 100%;
    object-fit: cover;
    background-color: #f4f4f4;
}

.product-info {
    padding: 20px;
    text-align: center;
}

.product-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.product-price {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.add-to-cart {
    background: transparent;
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-family: var(--font-body);
    transition: all 0.3s;
    width: 100%;
}

.add-to-cart:hover {
    background: var(--secondary-color);
    color: white;
}

/* Story Section */
.story-container {
    display: flex;
    align-items: center;
    gap: 50px;
    padding: 60px 5%;
}

.story-image {
    flex: 1;
}

.img-placeholder {
    width: 100%;
    height: 500px;
    border-radius: 20px;
    background: url('https://images.unsplash.com/photo-1605282747185-115dfb824db2?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80') center/cover !important;
}

.story-text {
    flex: 1;
}

.story-text h2 {
    font-size: 2.8rem;
    margin-bottom: 25px;
}

.story-text p {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--text-main);
}

/* Form Styles */
.custom-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 5%;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.submit-btn {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #112238;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}
.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
}

/* Cart Specifics */
.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}
.cart-total {
    margin-top: 20px;
    font-size: 1.2rem;
    text-align: right;
}
.checkout-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 15px;
    width: 100%;
    border-radius: 8px;
    margin-top: 20px;
    cursor: pointer;
    font-size: 1.1rem;
}

footer {
    text-align: center;
    padding: 40px;
    background: var(--secondary-color);
    color: white;
    margin-top: 40px;
}
