:root {
    --color-primary: #404837;
    --color-primary-light: #525c46;
    --color-accent: #b9b49c;
    --color-accent-light: #d6d3c5;
    --color-bg: #ffffff;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-white: #ffffff;

    --font-body: 'Inter', sans-serif;
    --font-heading: 'Playfair Display', serif;

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-round: 50px;

    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    line-height: 1.2;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.section-padding {
    padding: var(--spacing-xl) 0;
}

.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: var(--radius-round);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
}

.primary-btn {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.primary-btn:hover {
    background-color: var(--color-primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Header */
#main-header {
    padding: var(--spacing-sm) 0;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

#main-header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--color-primary);
    letter-spacing: -0.5px;
}

.logo .accent {
    color: var(--color-accent);
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--color-accent);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    padding: 8px;
    color: var(--color-primary);
}

.cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--color-accent);
    color: var(--color-primary);
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
}

.bar {
    width: 24px;
    height: 2px;
    background: var(--color-primary);
    transition: 0.3s;
}

/* Hero */
.hero {
    padding: var(--spacing-lg) 0;
    background: linear-gradient(to right, #f9f9f9, #ffffff);
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.hero-text h1 {
    font-size: 4rem;
    margin-bottom: var(--spacing-md);
}

.hero-text em {
    font-style: italic;
    color: var(--color-accent);
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-md);
    max-width: 400px;
}

.hero-image {
    position: relative;
}

.hero-image img {
    border-radius: 0 100px 0 100px;
    box-shadow: var(--shadow-md);
    aspect-ratio: 4/5;
    object-fit: cover;
    width: 100%;
}

/* Shop */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-xs);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.product-card {
    background: var(--color-white);
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.image-wrapper {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: var(--spacing-sm);
    aspect-ratio: 1;
}

.badge-sale {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--color-accent);
    color: var(--color-primary);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .image-wrapper img {
    transform: scale(1.05);
}

.add-to-cart {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 12px;
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    cursor: pointer;
    font-weight: 500;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.product-card:hover .add-to-cart {
    transform: translateY(0);
}

.product-info h3 {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 4px;
}

.product-info .price {
    color: var(--color-primary);
    font-weight: 600;
}

.original-price {
    text-decoration: line-through;
    color: var(--color-text-light);
    font-size: 0.9em;
    margin-right: 8px;
    font-weight: 400;
}

.sale-price {
    color: #e53935;
    /* Red color for sale emphasis, or use accent if cleaner */
    color: var(--color-primary);
    /* Keeping consistent for now, relying on strikethrough */
    font-weight: 700;
}

/* About */
.about {
    background-color: #faf9f6;
    /* Very light beige/grey */
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.about-content h2 {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.about-content p {
    color: var(--color-text-light);
    margin-bottom: var(--spacing-md);
}

.features-list li {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
}

.check {
    color: var(--color-accent);
    font-weight: bold;
}

.about-visual {
    background: var(--color-accent);
    height: 400px;
    border-radius: var(--radius-md);
    position: relative;
    background-image: url('../images/uploaded_image_3_1765475163063.jpg');
    background-size: cover;
    background-position: center;
}

.feature-box {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: var(--color-bg);
    padding: var(--spacing-md);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
}

.number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--color-primary);
    line-height: 1;
}

.label {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

/* Newsletter */
.content-center {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter h2 {
    margin-bottom: var(--spacing-sm);
    font-size: 2.2rem;
}

.newsletter-form {
    margin-top: var(--spacing-md);
    display: flex;
    gap: var(--spacing-sm);
}

.newsletter-form input {
    flex: 1;
    padding: 12px 20px;
    border: 1px solid #ddd;
    border-radius: var(--radius-round);
    font-family: inherit;
    font-size: 1rem;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--color-accent);
}

/* Footer */
footer {
    background: var(--color-primary);
    color: var(--color-white);
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-brand h3 {
    color: var(--color-accent);
    margin-bottom: var(--spacing-sm);
    font-size: 1.5rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    max-width: 250px;
}

.footer-links h4,
.footer-social h4 {
    color: var(--color-white);
    margin-bottom: var(--spacing-md);
    font-family: var(--font-body);
    font-size: 1.1rem;
}

.footer-links ul li {
    margin-bottom: var(--spacing-sm);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
    color: var(--color-accent);
}

.social-icons {
    display: flex;
    gap: var(--spacing-sm);
}

.social-icons a {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.social-icons a:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-md);
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Media Queries */
@media (max-width: 768px) {
    :root {
        --spacing-xl: 4rem;
        --spacing-lg: 3rem;
    }

    .nav-links {
        display: none;
        /* Mobile menu implementation needed if want full toggle */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--color-white);
        flex-direction: column;
        padding: var(--spacing-md);
        box-shadow: var(--shadow-md);
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-toggle {
        display: flex;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-md);
    }

    .hero-text h1 {
        font-size: 3rem;
    }

    .hero-text p {
        margin: 0 auto var(--spacing-md);
    }

    .hero-image img {
        border-radius: 50px;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-visual {
        order: -1;
        height: 300px;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .btn {
        width: auto;
    }
}

@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* --- New Additions: About Page & Extensions --- */

/* Utility */
.bg-light {
    background-color: #faf9f6;
}

.active {
    color: var(--color-primary);
    position: relative;
}

.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-accent);
}

/* Page Hero */
.page-hero {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: var(--spacing-xl) 0;
    text-align: center;
    background-image: linear-gradient(rgba(64, 72, 55, 0.8), rgba(64, 72, 55, 0.8)), url('../images/uploaded_image_2_1765475163063.jpg');
    background-size: cover;
    background-position: center;
}

.hero-text-centered h1 {
    font-size: 3.5rem;
    color: var(--color-white);
    margin-bottom: var(--spacing-sm);
}

.hero-text-centered p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Text Block */
.text-block {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.text-block h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
}

.text-block p {
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-light);
    font-size: 1.1rem;
}

.full-width-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin: var(--spacing-md) 0;
}

/* Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    text-align: center;
}

.value-card {
    padding: var(--spacing-md);
    background: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.value-card .icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

/* Lifestyle Section */
/* Lifestyle Slider */
.lifestyle-slider-container {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.slider-track {
    display: flex;
    width: calc(300px * 10);
    /* 5 images * 2 sets * width */
    animation: scroll 30s linear infinite;
}

.slide {
    width: 300px;
    height: 450px;
    /* Portrait aspect ratio */
    flex-shrink: 0;
    padding: 0 var(--spacing-sm);
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.slider-track:hover {
    animation-play-state: paused;
}

/* Scrolling Text Banner */
.scrolling-banner {
    background: var(--color-primary);
    color: var(--color-accent);
    padding: var(--spacing-sm) 0;
    overflow: hidden;
    white-space: nowrap;
    display: flex;
}

.scrolling-content {
    display: flex;
    animation: scroll 20s linear infinite;
}

.scrolling-content span {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-style: italic;
    padding: 0 var(--spacing-lg);
    display: inline-block;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* --- Phase 3: Contact & Cart --- */

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
}

.contact-info h1 {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.contact-info>p {
    color: var(--color-text-light);
    margin-bottom: var(--spacing-lg);
    font-size: 1.1rem;
}

.info-item {
    margin-bottom: var(--spacing-md);
}

.info-item h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.info-item p {
    color: var(--color-text-light);
}

.contact-form {
    background: var(--color-white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.full-width {
    width: 100%;
    text-align: center;
}

/* Side Cart Drawer */
.cart-drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: var(--color-white);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.cart-drawer.open {
    right: 0;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    backdrop-filter: blur(2px);
}

.cart-overlay.open {
    opacity: 1;
    visibility: visible;
}

.cart-header {
    padding: var(--spacing-md);
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-cart {
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    color: var(--color-text);
}

.cart-items {
    flex: 1;
    padding: var(--spacing-md);
    overflow-y: auto;
}

.cart-item {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    border-bottom: 1px solid #f5f5f5;
    padding-bottom: var(--spacing-sm);
}

.cart-item img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.cart-item-details h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.cart-item-details p {
    color: var(--color-primary);
    font-weight: 600;
}

.empty-cart-msg {
    text-align: center;
    color: var(--color-text-light);
    margin-top: var(--spacing-lg);
}

.cart-footer {
    padding: var(--spacing-md);
    border-top: 1px solid #eee;
    background: #fcfcfc;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--spacing-md);
    font-weight: 600;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* Collections Page */
.collection-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.collection-card {
    display: block;
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 400px;
}

.collection-image {
    width: 100%;
    height: 100%;
    position: relative;
}

.collection-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.collection-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    transition: background 0.3s ease;
}

.collection-overlay h2 {
    color: var(--color-white);
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
}

.collection-overlay .btn {
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease 0.1s;
}

.collection-card:hover img {
    transform: scale(1.05);
}

.collection-card:hover .collection-overlay {
    background: rgba(0, 0, 0, 0.5);
}

.collection-card:hover h2,
.collection-card:hover .btn {
    transform: translateY(0);
    opacity: 1;
}

/* Cart Page */
.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: var(--spacing-lg);
}

.cart-table th {
    text-align: left;
    padding: var(--spacing-sm);
    border-bottom: 2px solid #eee;
    font-family: var(--font-heading);
}

.cart-table td {
    padding: var(--spacing-sm);
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.cart-product-cell {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.cart-product-cell img {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.qty-input {
    width: 60px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
}

.cart-summary {
    text-align: right;
    max-width: 400px;
    margin-left: auto;
}

.cart-summary h3 {
    margin-bottom: var(--spacing-xs);
    font-size: 1.5rem;
}

.cart-summary p {
    color: var(--color-text-light);
    margin-bottom: var(--spacing-md);
    font-size: 0.9rem;
}

/* Checkout Page */
.checkout-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--spacing-xl);
}

.checkout-section {
    margin-bottom: var(--spacing-lg);
}

.checkout-section h2 {
    margin-bottom: var(--spacing-md);
    font-size: 1.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: var(--spacing-xs);
}

.form-row {
    display: flex;
    gap: var(--spacing-sm);
}

.form-group.half {
    flex: 1;
}

.checkout-summary .summary-card {
    background: #faf9f6;
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    position: sticky;
    top: 100px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--spacing-sm);
}

.summary-divider {
    height: 1px;
    background: #e0e0e0;
    margin: var(--spacing-sm) 0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    color: var(--color-text-light);
    margin-bottom: 4px;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 1.2rem;
    margin-top: var(--spacing-sm);
    color: var(--color-primary);
}

.place-order-btn {
    margin-top: var(--spacing-md);
    padding: 16px;
    font-size: 1.1rem;
}

.checkout-secure-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-primary);
    font-weight: 500;
}

@media (max-width: 768px) {
    .cart-table thead {
        display: none;
    }

    .cart-table tr {
        display: block;
        border-bottom: 2px solid #eee;
        margin-bottom: var(--spacing-sm);
    }

    .cart-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border: none;
        padding: 8px 0;
    }

    .cart-table td::before {
        content: attr(data-label);
        font-weight: 600;
        margin-right: 10px;
    }

    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .checkout-layout {
        display: flex;
        flex-direction: column-reverse;
    }
}

/* Personalization Section */
.personalization-layout {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
}

.personalize-image {
    flex: 1;
}

.personalize-image img {
    width: 100%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.personalize-content {
    flex: 1;
}

.personalize-content h2 em {
    font-family: var(--font-heading);
    color: var(--color-primary);
}

@media (max-width: 768px) {
    .personalization-layout {
        flex-direction: column;
    }
}