:root {
    --bg-champagne: #FCF9E2;
    --bg-darker-champagne: #F2EED6;
    --brand-coral: #FA8A88;
    --text-primary: #2D2926;
    --text-secondary: #8C8681;
    --hover-blush: rgba(250, 138, 136, 0.1);

    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
}

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

[id] {
    scroll-margin-top: 15vh;
}

body {
    background-color: var(--bg-champagne);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
.logo {
    font-family: var(--font-serif);
    font-weight: 400;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.float-animation {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    z-index: 100;
    background-color: transparent;
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease, border-bottom 0.4s ease, padding 0.4s ease;
}

header.scrolled {
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(45, 41, 38, 0.05);
    padding: 1rem 5%;
}

.logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 85px; /* Increased size for a bolder brand presence */
    width: auto;
    filter: drop-shadow(0px 2px 6px rgba(0, 0, 0, 0.4)) drop-shadow(0px 0px 10px rgba(255, 255, 255, 0.6));
    transition: transform 0.3s ease, filter 0.3s ease;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

nav a,
.cart-btn {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-sans);
    transition: color 0.3s ease;
}

nav a:hover,
.cart-btn:hover {
    color: var(--brand-coral);
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background-color: var(--brand-coral);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(250, 138, 136, 0.25);
}

/* Hero */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    padding: 12vh 5% 0;
    z-index: 1;
}

.hero-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-right: 5%;
    position: relative;
}

.hero-left h1 {
    font-size: clamp(4rem, 8vw, 7rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.hero-left p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 400px;
}

.hero-floral-tl {
    position: absolute;
    top: 0;
    left: 0;
    width: clamp(250px, 30vw, 450px);
    height: auto;
    opacity: 0.6;
    /* Softly blended */
    z-index: -1;
    pointer-events: none;
    mix-blend-mode: multiply;
}

.hero-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5% 0;
}

.hero-image-wrapper {
    width: 80%;
    height: 80%;
    position: relative;
    border-radius: 200px 200px 0 0;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(45, 41, 38, 0.08);
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.scroll-indicator {
    position: absolute;
    top: 90%;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 80px;
    background-color: rgba(45, 41, 38, 0.1);
    display: flex;
    justify-content: center;
}

.scroll-indicator .line {
    width: 1px;
    height: 0;
    background-color: var(--brand-coral);
    animation: scrollDraw 2s cubic-bezier(0.77, 0, 0.175, 1) infinite;
}

@keyframes scrollDraw {
    0% {
        height: 0;
        transform: translateY(0);
    }

    50% {
        height: 100%;
        transform: translateY(0);
    }

    100% {
        height: 100%;
        transform: translateY(100%);
    }
}

/* Products Section */
.products {
    padding: 8rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.products-header {
    text-align: center;
    margin-bottom: 5rem;
}

.products-header h2 {
    font-size: 3rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem 3rem;
}

.product-card {
    background-color: var(--bg-champagne);
    border-radius: 12px;
    overflow: hidden;
    transition: background-color 0.4s ease;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.product-card:hover {
    background-color: var(--hover-blush);
}

.card-image {
    width: 100%;
    aspect-ratio: 4/5;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    mix-blend-mode: multiply;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

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

.card-details h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.card-details .price {
    font-size: 1.1rem;
    color: var(--brand-coral);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.product-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s;
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateY(0);
}

.qty-selector {
    display: flex;
    align-items: center;
    border: 1px solid rgba(45, 41, 38, 0.15);
    border-radius: 50px;
    overflow: hidden;
}

.qty-btn {
    background: transparent;
    border: none;
    padding: 0.8rem 1rem;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s;
}

.qty-btn:hover {
    background: rgba(45, 41, 38, 0.05);
}

.qty-input {
    width: 40px;
    text-align: center;
    border: none;
    background: transparent;
    font-family: var(--font-sans);
    font-size: 1rem;
}

.product-actions .btn-primary {
    padding: 0.8rem 2rem;
}

/* General Pages */
.page-main {
    padding: 15vh 5% 5vh;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 70vh;
}

.about-hero {
    display: flex;
    gap: 5rem;
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-text h1 {
    font-size: 4rem;
    margin-bottom: 2rem;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.about-image {
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.contact-section {
    display: flex;
    gap: 5rem;
}

.contact-text {
    flex: 1;
}

.contact-text h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.contact-text p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.contact-details p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.contact-form-container {
    flex: 1;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    border: 1px solid rgba(45, 41, 38, 0.15);
    background: transparent;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--text-primary);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--brand-coral);
}

/* Cart Drawer */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(2px);
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -450px;
    width: 450px;
    height: 100%;
    background: var(--bg-champagne);
    z-index: 1000;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}

.cart-drawer.open {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.close-cart-btn {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-primary);
    transition: color 0.3s;
}

.close-cart-btn:hover {
    color: var(--brand-coral);
}

.cart-items-container {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cart-item {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.cart-item-img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
}

.cart-item-title {
    font-size: 1.1rem;
    font-family: var(--font-serif);
}

.cart-item-price {
    color: var(--brand-coral);
    font-weight: 500;
    font-size: 0.95rem;
    margin-top: 0.2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-remove-btn {
    background: none;
    border: none;
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-decoration: underline;
    cursor: pointer;
}

.cart-footer {
    padding: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background: var(--bg-darker-champagne);
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    font-family: var(--font-serif);
}

.address-field-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.address-field-container label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.address-field-container textarea {
    padding: 0.8rem;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: white;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    resize: vertical;
    color: var(--text-primary);
}

.checkout-btn {
    width: 100%;
    border-radius: 8px;
    padding: 1.2rem;
}

/* Footer */
.site-footer {
    background-color: var(--bg-champagne);
    border-top: 1px solid rgba(45, 41, 38, 0.08);
    padding: 4rem 5% 2rem;
    margin-top: 5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 2fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-brand p {
    margin-top: 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-links h4,
.footer-newsletter h4 {
    font-family: var(--font-sans);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--brand-coral);
}

.footer-newsletter p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.newsletter-form {
    display: flex;
    border-bottom: 1px solid var(--text-primary);
    padding-bottom: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--text-primary);
}

.newsletter-form button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--brand-coral);
    transition: transform 0.3s;
}

.newsletter-form button:hover {
    transform: translateX(5px);
}

@media(max-width: 900px) {
    .hero {
        flex-direction: column;
        height: auto;
        padding-top: 18vh;
        padding-bottom: 8vh;
    }

    .logo img {
        height: 65px;
    }

    .hero-left {
        padding: 0;
        text-align: center;
        align-items: center;
    }

    .hero-right {
        display: none;
    }

    nav ul {
        display: none;
    }

    .about-hero,
    .contact-section {
        flex-direction: column;
        gap: 3rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .cart-drawer {
        width: 100%;
        right: -100%;
    }
}