:root {
    --cream: #FDF8F3;
    --warm-white: #FFFAF5;
    --honey: #D4A574;
    --honey-light: #E8CDB5;
    --sage: #8B9F82;
    --sage-light: #B5C4AE;
    --charcoal: #3D3D3D;
    --soft-brown: #6B5B4F;
    --blush: #E8D5CC;
    --glass-blue: #A7C4D4;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Sans 3', Georgia, serif;
    background-color: var(--cream);
    color: var(--charcoal);
    font-size: 18px;
    line-height: 1.8;
}

h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 500;
    line-height: 1.3;
}

/* Subtle texture overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.02;
    pointer-events: none;
    z-index: -1;
}

/* Navigation */
nav {
    background-color: #FFFAF5;
    padding: 1.5rem 2rem;
    position: sticky;
    top: 0;
    z-index: 9999;
    border-bottom: 1px solid var(--blush);
    box-shadow: 0 4px 20px rgba(107, 91, 79, 0.12);
}

/* Ensure all main content stays below nav */
main, section, .hero, .story, .products, .contact, .message-banner {
    position: relative;
    z-index: 1;
}

nav .container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    color: var(--soft-brown);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--glass-blue) 0%, var(--honey-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    flex-wrap: wrap;
}

nav a {
    color: var(--soft-brown);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
}

nav a:hover {
    color: var(--honey);
}

/* Hero Section */
.hero {
    background: linear-gradient(180deg, var(--warm-white) 0%, var(--cream) 100%);
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--honey-light) 0%, transparent 70%);
    opacity: 0.3;
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--sage-light) 0%, transparent 70%);
    opacity: 0.2;
    border-radius: 50%;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: var(--sage);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    font-size: 1rem;
    margin-bottom: 2rem;
    letter-spacing: 0.5px;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: var(--soft-brown);
    margin-bottom: 1.5rem;
}

.hero h1 span {
    color: var(--honey);
    font-style: italic;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: var(--soft-brown);
    max-width: 700px;
    margin: 0 auto 2.5rem;
    opacity: 0.85;
}

.hero-cta {
    display: inline-block;
    background: var(--honey);
    color: white;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(212, 165, 116, 0.3);
}

.hero-cta:hover {
    background: var(--soft-brown);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(107, 91, 79, 0.3);
}

/* Story Section */
.story {
    padding: 6rem 2rem;
    background: var(--warm-white);
}

.story .container {
    max-width: 1000px;
    margin: 0 auto;
}

.story-header {
    text-align: center;
    margin-bottom: 4rem;
}

.story-header h2 {
    font-size: 2.5rem;
    color: var(--soft-brown);
    margin-bottom: 1rem;
}

.decorative-line {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--honey), transparent);
    margin: 0 auto;
}

.story-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.story-image {
    position: relative;
}

.story-image-placeholder {
    aspect-ratio: 4/5;
    background: linear-gradient(135deg, var(--blush) 0%, var(--honey-light) 50%, var(--glass-blue) 100%);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--soft-brown);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    text-align: center;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(107, 91, 79, 0.15);
    position: relative;
    overflow: hidden;
}

.story-image-placeholder::before {
    content: '♥';
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.6;
}

.story-image-frame {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 15px;
    pointer-events: none;
}

.story-text p {
    margin-bottom: 1.5rem;
    color: var(--charcoal);
    font-size: 1.15rem;
}

.story-text p:first-of-type::first-letter {
    font-family: 'Cormorant Garamond', serif;
    font-size: 4rem;
    float: left;
    line-height: 1;
    padding-right: 0.8rem;
    color: var(--honey);
}

.story-signature {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.4rem;
    color: var(--honey);
    margin-top: 2rem;
}

/* Message Banner */
.message-banner {
    background: linear-gradient(135deg, var(--sage) 0%, var(--sage-light) 100%);
    padding: 4rem 2rem;
    text-align: center;
    color: white;
}

.message-banner .container {
    max-width: 800px;
    margin: 0 auto;
}

.message-banner h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.message-banner p {
    font-size: 1.2rem;
    opacity: 0.95;
    line-height: 1.9;
}

/* Products Section */
.products {
    padding: 6rem 2rem;
    background: var(--cream);
}

.products .container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--soft-brown);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--soft-brown);
    opacity: 0.8;
    max-width: 600px;
    margin: 1rem auto 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.product-card {
    background: var(--warm-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(107, 91, 79, 0.08);
    transition: all 0.4s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(107, 91, 79, 0.12);
}

.product-image {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-link {
    display: block;
    text-decoration: none;
}

.product-link:hover .product-image img {
    transform: scale(1.05);
    transition: transform 0.4s ease;
}

.product-image.crystal-cube {
    background: #000;
}

.product-image.crystal-led {
    background: #000;
}

.product-image.crystal-trophy {
    background: #000;
}

.product-info h3 a {
    color: var(--soft-brown);
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-info h3 a:hover {
    color: var(--honey);
}

.product-image.vase {
    background: linear-gradient(135deg, var(--glass-blue) 0%, var(--blush) 100%);
}

.product-image.bowl {
    background: linear-gradient(135deg, var(--honey-light) 0%, var(--sage-light) 100%);
}

.product-image.ornament {
    background: linear-gradient(135deg, var(--blush) 0%, var(--honey-light) 100%);
}

.product-image.suncatcher {
    background: linear-gradient(135deg, var(--sage-light) 0%, var(--glass-blue) 100%);
}

.product-image.figurine {
    background: linear-gradient(135deg, var(--glass-blue) 0%, var(--honey-light) 100%);
}

.product-image.paperweight {
    background: linear-gradient(135deg, var(--honey) 0%, var(--blush) 100%);
}

.product-info {
    padding: 2rem;
}

.product-info h3 {
    font-size: 1.5rem;
    color: var(--soft-brown);
    margin-bottom: 0.5rem;
}

.product-info .description {
    color: var(--charcoal);
    opacity: 0.8;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.product-info .price {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    color: var(--honey);
    font-weight: 600;
}

.product-info .original-price {
    font-size: 1.1rem;
    color: var(--soft-brown);
    opacity: 0.5;
    text-decoration: line-through;
    margin-left: 0.5rem;
}

.product-btn {
    display: block;
    width: 100%;
    background: var(--soft-brown);
    color: white;
    border: none;
    padding: 1rem;
    font-size: 1.1rem;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 1.5rem;
    border-radius: 10px;
}

.product-btn:hover {
    background: var(--honey);
}

/* Shopify Buy Button Container */
.shopify-buy-button {
    margin-top: 1.5rem;
    min-height: 50px;
}

.shopify-buy-button iframe {
    width: 100% !important;
}

/* Loading state for Shopify buttons */
.shopify-buy-button:empty::after {
    content: 'Loading...';
    display: block;
    text-align: center;
    padding: 1rem;
    color: var(--soft-brown);
    opacity: 0.6;
    font-style: italic;
}

/* Coming soon placeholder for products without IDs */
.coming-soon {
    text-align: center;
    padding: 1rem;
    color: var(--soft-brown);
    opacity: 0.6;
    font-style: italic;
    margin: 0;
}

.handmade-badge {
    display: inline-block;
    background: var(--sage);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

/* Contact Section */
.contact {
    padding: 6rem 2rem;
    background: var(--warm-white);
}

.contact .container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact h2 {
    font-size: 2.5rem;
    color: var(--soft-brown);
    margin-bottom: 1rem;
}

.contact > .container > p {
    font-size: 1.2rem;
    color: var(--charcoal);
    margin-bottom: 3rem;
    opacity: 0.85;
}

.contact-card {
    background: var(--cream);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(107, 91, 79, 0.08);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.contact-item {
    text-align: center;
}

.contact-item-icon {
    width: 60px;
    height: 60px;
    background: var(--honey-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
}

.contact-item h4 {
    font-size: 1.1rem;
    color: var(--soft-brown);
    margin-bottom: 0.5rem;
}

.contact-item p,
.contact-item a {
    color: var(--charcoal);
    font-size: 1.1rem;
    text-decoration: none;
}

.contact-item a:hover {
    color: var(--honey);
}

.contact-note {
    background: var(--blush);
    padding: 1.5rem 2rem;
    border-radius: 15px;
    margin-top: 2rem;
    font-style: italic;
    color: var(--soft-brown);
}

/* Footer */
footer {
    background: var(--soft-brown);
    color: var(--cream);
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

footer .container {
    max-width: 800px;
    margin: 0 auto;
}

footer p {
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.footer-heart {
    color: var(--honey);
    font-size: 1.5rem;
    margin: 1rem 0;
}

.memorial {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.2rem;
    margin-top: 1.5rem;
    opacity: 0.8;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}

.product-card {
    animation: fadeInUp 0.6s ease-out backwards;
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }
.product-card:nth-child(5) { animation-delay: 0.5s; }
.product-card:nth-child(6) { animation-delay: 0.6s; }

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .story-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 600px) {
    body {
        font-size: 16px;
    }

    nav ul {
        gap: 1.5rem;
    }

    .hero {
        padding: 4rem 1.5rem;
    }

    .story,
    .products,
    .contact {
        padding: 4rem 1.5rem;
    }

    .contact-card {
        padding: 2rem 1.5rem;
    }
}