/* ========================================
   Wren & Whimsy - Main Stylesheet
   Color Palette:
   - Mint Green: #97FFC3
   - Soft Teal: #46B8B8
   - Warm Coral: #FF7D6B
   - Soft White: #FDFCFA
   - Warm Neutral: #F5F3F0
   - Deep Green: #2D5A4A
   ======================================== */

/* CSS Variables */
:root {
    --color-mint: #97FFC3;
    --color-teal: #46B8B8;
    --color-coral: #FF7D6B;
    --color-coral-light: #FF9A8D;
    --color-white: #FDFCFA;
    --color-cream: #F5F3F0;
    --color-neutral: #E8E4DF;
    --color-deep-green: #2D5A4A;
    --color-dark: #2C3E3A;
    --color-text: #3D4A44;
    --color-text-light: #6B7B73;
    
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    
    --transition: all 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

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

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

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul {
    list-style: none;
}

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

/* ========================================
   Announcement Bar
   ======================================== */
.announcement-bar {
    background: linear-gradient(135deg, var(--color-coral) 0%, var(--color-coral-light) 100%);
    color: white;
    text-align: center;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* ========================================
   Header & Navigation
   ======================================== */
.header {
    background: var(--color-white);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--color-deep-green);
}

.logo-icon {
    font-size: 28px;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-weight: 600;
    font-size: 15px;
    color: var(--color-text);
    position: relative;
    padding: 8px 0;
    transition: var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--color-teal);
    border-radius: 2px;
    transition: var(--transition);
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.icon-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--color-text);
    transition: var(--transition);
    position: relative;
}

.icon-btn:hover {
    background: var(--color-cream);
    color: var(--color-teal);
}

.cart-count {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    background: var(--color-coral);
    color: white;
    font-size: 11px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: var(--transition);
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 700;
    border-radius: var(--radius-xl);
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-teal) 0%, var(--color-mint) 100%);
    color: var(--color-deep-green);
    box-shadow: 0 4px 12px rgba(70, 184, 184, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(70, 184, 184, 0.4);
}

.btn-secondary {
    background: var(--color-white);
    color: var(--color-teal);
    border: 2px solid var(--color-teal);
}

.btn-secondary:hover {
    background: var(--color-teal);
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--color-teal);
    border: 2px solid var(--color-teal);
    padding: 10px 20px;
}

.btn-outline:hover {
    background: var(--color-teal);
    color: white;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--color-teal);
    transition: var(--transition);
}

.link-arrow:hover {
    gap: 12px;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-mint) 0%, var(--color-teal) 50%, var(--color-cream) 100%);
    overflow: hidden;
    padding: 80px 0;
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.floating-element {
    position: absolute;
    opacity: 0.3;
    animation: float 6s ease-in-out infinite;
    color: var(--color-deep-green);
}

.floating-element svg {
    width: 40px;
    height: 40px;
}

.leaf-1 { top: 15%; left: 10%; animation-delay: 0s; }
.leaf-2 { top: 60%; right: 15%; animation-delay: 1s; }
.bird { top: 25%; right: 20%; animation-delay: 2s; }
.butterfly { bottom: 25%; left: 15%; animation-delay: 3s; }
.flower { top: 70%; left: 25%; animation-delay: 4s; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.hero-content {
    text-align: center;
    max-width: 700px;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(48px, 10vw, 72px);
    font-weight: 700;
    color: var(--color-deep-green);
    margin-bottom: 16px;
    text-shadow: 2px 2px 0 rgba(255,255,255,0.5);
}

.hero-tagline {
    font-family: var(--font-display);
    font-size: clamp(20px, 4vw, 28px);
    color: var(--color-dark);
    margin-bottom: 20px;
    font-style: italic;
}

.hero-description {
    font-size: 18px;
    color: var(--color-text);
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--color-deep-green);
    font-size: 14px;
    font-weight: 600;
    opacity: 0.7;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

/* ========================================
   Section Styles
   ======================================== */
section {
    padding: 80px 0;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 42px);
    color: var(--color-deep-green);
    text-align: center;
    margin-bottom: 12px;
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-light);
    font-size: 18px;
    margin-bottom: 48px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 48px;
}

.section-header .section-title,
.section-header .section-subtitle {
    text-align: left;
    margin-bottom: 0;
}

.section-header .section-subtitle {
    margin-top: 8px;
}

/* ========================================
   Categories Section
   ======================================== */
.categories {
    background: var(--color-white);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.category-card {
    background: var(--color-cream);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-mint), var(--color-teal));
    transform: scaleX(0);
    transition: var(--transition);
}

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

.category-card:hover::before {
    transform: scaleX(1);
}

.category-image {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--color-mint) 0%, var(--color-teal) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.category-icon {
    color: var(--color-deep-green);
}

.category-icon svg {
    width: 48px;
    height: 48px;
}

.category-name {
    font-family: var(--font-display);
    font-size: 22px;
    color: var(--color-deep-green);
    margin-bottom: 8px;
}

.category-desc {
    font-size: 14px;
    color: var(--color-text-light);
}

.category-featured {
    background: linear-gradient(135deg, var(--color-coral-light) 0%, var(--color-coral) 100%);
    color: white;
}

.category-featured .category-name {
    color: white;
}

.category-featured .category-desc {
    color: rgba(255,255,255,0.9);
}

.category-featured .category-image {
    background: rgba(255,255,255,0.3);
}

.category-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: white;
    color: var(--color-coral);
    font-size: 11px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========================================
   Featured Products
   ======================================== */
.featured {
    background: var(--color-cream);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.product-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

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

.product-image {
    position: relative;
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--color-cream) 0%, var(--color-neutral) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-placeholder {
    text-align: center;
    color: var(--color-text-light);
}

.product-placeholder svg {
    width: 64px;
    height: 64px;
    display: block;
    margin-bottom: 8px;
    color: var(--color-text-light);
}

.product-placeholder p {
    font-size: 14px;
    font-weight: 600;
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-badge.new {
    background: var(--color-mint);
    color: var(--color-deep-green);
}

.product-badge.bestseller {
    background: var(--color-coral);
    color: white;
}

.product-info {
    padding: 20px;
}

.product-name {
    font-family: var(--font-display);
    font-size: 18px;
    color: var(--color-deep-green);
    margin-bottom: 4px;
}

.product-category {
    font-size: 13px;
    color: var(--color-text-light);
    margin-bottom: 8px;
}

.product-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--color-teal);
}

/* ========================================
   Product Types
   ======================================== */
.product-types {
    background: var(--color-white);
}

.type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
}

.type-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px 16px;
    background: var(--color-cream);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.type-item:hover {
    background: linear-gradient(135deg, var(--color-mint) 0%, var(--color-teal) 100%);
    transform: translateY(-4px);
}

.type-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
}

.type-icon svg {
    width: 32px;
    height: 32px;
}

.type-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--color-text);
}

.type-item:hover .type-name {
    color: var(--color-deep-green);
}

/* ========================================
   Custom CTA Section
   ======================================== */
.custom-cta {
    background: linear-gradient(135deg, var(--color-teal) 0%, var(--color-mint) 100%);
    padding: 100px 0;
}

.cta-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.cta-text h2 {
    font-family: var(--font-display);
    font-size: 42px;
    color: var(--color-deep-green);
    margin-bottom: 20px;
}

.cta-text p {
    font-size: 18px;
    color: var(--color-text);
    margin-bottom: 32px;
    max-width: 480px;
}

.cta-visual {
    display: flex;
    justify-content: center;
}

.custom-preview {
    width: 280px;
    height: 280px;
    background: rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 3px dashed rgba(255,255,255,0.5);
}

.custom-preview svg {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    color: var(--color-deep-green);
}

.custom-preview p {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-deep-green);
}

/* ========================================
   About Preview
   ======================================== */
.about-preview {
    background: var(--color-cream);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-placeholder {
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--color-mint) 0%, var(--color-teal) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--color-deep-green);
}

.about-placeholder svg {
    width: 80px;
    height: 80px;
    margin-bottom: 16px;
}

.about-placeholder p {
    font-size: 20px;
    font-weight: 700;
}

.about-text h2 {
    font-family: var(--font-display);
    font-size: 36px;
    color: var(--color-deep-green);
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 16px;
    color: var(--color-text);
}

.about-text .link-arrow {
    margin-top: 24px;
}

/* ========================================
   Newsletter
   ======================================== */
.newsletter {
    background: var(--color-deep-green);
    padding: 80px 0;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.newsletter h2 {
    font-family: var(--font-display);
    font-size: 36px;
    color: var(--color-mint);
    margin-bottom: 12px;
}

.newsletter p {
    color: rgba(255,255,255,0.9);
    font-size: 18px;
    margin-bottom: 32px;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.newsletter-input {
    flex: 1;
    padding: 16px 24px;
    border: none;
    border-radius: var(--radius-xl);
    font-size: 16px;
    background: rgba(255,255,255,0.1);
    color: white;
}

.newsletter-input::placeholder {
    color: rgba(255,255,255,0.5);
}

.newsletter-input:focus {
    outline: none;
    background: rgba(255,255,255,0.15);
}

.newsletter-note {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--color-dark);
    color: rgba(255,255,255,0.8);
    padding: 60px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--color-mint);
    margin-bottom: 12px;
}

.footer-tagline {
    font-style: italic;
    margin-bottom: 24px;
    color: rgba(255,255,255,0.7);
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--color-teal);
    transform: translateY(-2px);
}

.footer-links h4 {
    color: white;
    font-size: 16px;
    margin-bottom: 20px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: rgba(255,255,255,0.5);
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a:hover {
    color: var(--color-mint);
}

/* ========================================
   Cart Sidebar
   ======================================== */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

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

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    max-width: 90vw;
    height: 100vh;
    background: var(--color-white);
    z-index: 201;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid var(--color-cream);
}

.cart-header h3 {
    font-family: var(--font-display);
    font-size: 24px;
    color: var(--color-deep-green);
}

.close-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--color-text);
    border-radius: 50%;
    transition: var(--transition);
}

.close-btn:hover {
    background: var(--color-cream);
}

.cart-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
}

.cart-empty svg {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    color: var(--color-text-light);
}

.cart-empty p {
    color: var(--color-text-light);
    margin-bottom: 24px;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .cta-content,
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .cta-visual {
        order: -1;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--color-white);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        box-shadow: var(--shadow-md);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .section-header .section-title,
    .section-header .section-subtitle {
        text-align: left;
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .type-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .custom-preview {
        width: 200px;
        height: 200px;
    }
    
    .cta-text h2,
    .about-text h2 {
        font-size: 28px;
    }
}

/* ========================================
   Animations
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
