/* Butterfly Merchandise Store - Professional Theme with Butterfly Inspiration */

:root {
    /* Professional butterfly-inspired color palette */
    --butterfly-primary: #2E7D32;      /* Forest green - butterfly habitat */
    --butterfly-secondary: #8E24AA;    /* Purple - butterfly wings */
    --butterfly-accent: #F57C00;       /* Amber - butterfly details */
    --butterfly-neutral: #455A64;      /* Blue grey - professional base */
    --butterfly-success: #4CAF50;      /* Green success */
    --butterfly-warning: #FF9800;      /* Orange warning */
    
    /* Subtle background tones */
    --butterfly-light-green: #E8F5E8;
    --butterfly-light-purple: #F3E5F5;
    --butterfly-light-amber: #FFF8E1;
    --butterfly-light-grey: #F5F5F5;
    
    /* Text colors */
    --butterfly-dark: #212121;
    --butterfly-medium: #424242;
    --butterfly-light: #757575;
    --butterfly-white: #FFFFFF;
    
    /* Professional shadows and effects */
    --butterfly-shadow: 0 2px 8px rgba(46, 125, 50, 0.15);
    --butterfly-card-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --butterfly-hover-shadow: 0 6px 20px rgba(46, 125, 50, 0.2);
}

/* Base styling - clean and professional */
body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--butterfly-dark);
    background: var(--butterfly-white);
    min-height: 100vh;
    line-height: 1.6;
}

/* Subtle butterfly pattern background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 85% 15%, rgba(46, 125, 50, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 15% 85%, rgba(142, 36, 170, 0.02) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

/* Beautiful Light Green Header */
.navbar {
    background: linear-gradient(135deg, #E8F5E8 0%, #C8E6C9 50%, #A5D6A7 100%) !important;
    box-shadow: 0 2px 20px rgba(46, 125, 50, 0.15);
    border-bottom: 1px solid rgba(46, 125, 50, 0.1);
    padding: 1rem 0;
    backdrop-filter: blur(10px);
}

.navbar-brand {
    color: var(--butterfly-primary) !important;
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    color: var(--butterfly-medium) !important;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    margin: 0 0.5rem;
}



/* Professional Buttons */
.btn-primary {
    background: var(--butterfly-primary);
    border: none;
    border-radius: 6px;
    padding: 12px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--butterfly-shadow);
    color: var(--butterfly-white);
}


.btn-secondary {
    background: var(--butterfly-secondary);
    border: none;
    border-radius: 6px;
    padding: 12px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
    color: var(--butterfly-white);
}


.btn-outline-primary {
    border: 2px solid var(--butterfly-primary);
    color: var(--butterfly-primary);
    border-radius: 6px;
    padding: 10px 22px;
    font-weight: 600;
    transition: all 0.3s ease;
    background: transparent;
}


/* Kort och containers */
.card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}


.card-header {
    background: linear-gradient(45deg, var(--butterfly-light-pink), var(--butterfly-light-yellow));
    border: none;
    padding: 20px;
    color: var(--butterfly-dark);
    font-weight: 600;
}

/* Produktkort */
.product-card {
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '🦋';
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2;
}


.product-image {
    transition: all 0.3s ease;
    border-radius: 15px;
}


/* Enhanced Cart Styling */
.cart-container {
    background: var(--butterfly-white);
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--butterfly-card-shadow);
    border: 1px solid var(--butterfly-light-grey);
}

.cart-item {
    background: var(--butterfly-light-green);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    border-left: 4px solid var(--butterfly-primary);
    border: 1px solid rgba(46, 125, 50, 0.1);
}


.cart-summary {
    background: var(--butterfly-white);
    border-radius: 15px;
    padding: 25px;
    position: sticky;
    top: 20px;
    box-shadow: var(--butterfly-card-shadow);
    border: 1px solid var(--butterfly-light-grey);
}

/* Kvantitetskontroller */
.quantity-controls {
    background: white;
    border-radius: 25px;
    padding: 5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.quantity-btn {
    background: var(--butterfly-primary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    transition: all 0.3s ease;
}


/* Enhanced Form Styling */
.form-control {
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 12px 16px;
    transition: all 0.3s ease;
    background: var(--butterfly-white);
    font-size: 1rem;
}

.form-control:focus {
    border-color: var(--butterfly-primary);
    box-shadow: 0 0 0 0.2rem rgba(46, 125, 50, 0.25);
    background: var(--butterfly-white);
    outline: none;
}

.form-control::placeholder {
    color: #6c757d;
    opacity: 0.7;
}

.form-label {
    color: var(--butterfly-dark);
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

/* Contact form specific */
#contact .form-control {
    border: 2px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}


#contact .form-control:focus {
    border-color: var(--butterfly-primary);
    box-shadow: 0 0 0 0.2rem rgba(46, 125, 50, 0.15), 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Animationer */
@keyframes butterflyCascade {
    0% {
        transform: translateY(-10px) rotate(0deg);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateY(0) rotate(5deg);
        opacity: 1;
    }
}

.butterfly-animate {
    animation: butterflyCascade 0.6s ease-out forwards;
}

/* Gradients för olika sektioner */
.hero-section {
    background: linear-gradient(135deg, 
        var(--butterfly-light-pink) 0%, 
        var(--butterfly-light-yellow) 50%, 
        var(--butterfly-light-blue) 100%);
    border-radius: 30px;
    padding: 60px 40px;
    margin: 30px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '🦋 🌸 🦋';
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    opacity: 0.3;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 40px 20px;
        margin: 20px 10px;
    }
    
    .card {
        border-radius: 15px;
    }
    
    .btn-primary, .btn-secondary, .btn-outline-primary {
        border-radius: 20px;
        padding: 10px 20px;
    }
}

/* Speciella effekter */
.butterfly-glow {
    position: relative;
    overflow: hidden;
}

.butterfly-glow::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 107, 107, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}


@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* Enhanced Checkout Styling */
.checkout-steps {
    background: linear-gradient(135deg, var(--butterfly-light-green), var(--butterfly-light-amber));
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: var(--butterfly-card-shadow);
    border: 1px solid rgba(46, 125, 50, 0.1);
}

.checkout-step {
    background: var(--butterfly-white);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 4px solid var(--butterfly-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.checkout-step.active {
    background: linear-gradient(135deg, var(--butterfly-primary), var(--butterfly-secondary));
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--butterfly-hover-shadow);
}

.checkout-step.completed {
    background: var(--butterfly-success);
    color: white;
}

.order-item {
    background: var(--butterfly-light-green);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    border-left: 3px solid var(--butterfly-secondary);
    transition: all 0.3s ease;
    border: 1px solid rgba(46, 125, 50, 0.1);
}


/* Betalningsmetoder */
.payment-method {
    border: 2px solid var(--butterfly-light-pink);
    border-radius: 15px;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}


.payment-method.selected {
    border-color: var(--butterfly-primary);
    background: var(--butterfly-light-pink);
    box-shadow: var(--butterfly-shadow);
}

/* Hero Image Placeholder */
.hero-image-placeholder {
    background: var(--butterfly-light-grey);
    border: 2px dashed var(--butterfly-primary);
    border-radius: 20px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}


.placeholder-content {
    text-align: center;
    color: var(--butterfly-medium);
}

.placeholder-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.placeholder-text {
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
    opacity: 0.8;
}

/* Fun and Natural Footer */
.footer {
    background: linear-gradient(135deg, #2E7D32 0%, #388E3C 50%, #43A047 100%);
    color: white;
    padding: 50px 0 30px 0;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(142, 36, 170, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(245, 124, 0, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.footer .container {
    position: relative;
    z-index: 2;
}

.footer-title {
    color: #FFE082;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    font-size: 1.3rem;
}

.footer-title::after {
    content: '🌿';
    position: absolute;
    right: -30px;
    top: 0;
    animation: sway 3s ease-in-out infinite;
}

.footer-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    padding: 0.4rem 0;
    position: relative;
    font-size: 1rem;
}


.footer-link::before {
    content: '🌸';
    position: absolute;
    left: -25px;
    opacity: 0;
    transition: all 0.3s ease;
    padding-right: 8px;
}


.social-links {
    display: flex;
    gap: 15px;
    margin-top: 1rem;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}


/* Animated nature elements */
.footer-nature {
    position: absolute;
    font-size: 1.5rem;
    opacity: 0.3;
    animation: float 6s ease-in-out infinite;
}

.footer-nature:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.footer-nature:nth-child(2) { top: 60%; right: 15%; animation-delay: 2s; }
.footer-nature:nth-child(3) { bottom: 30%; left: 20%; animation-delay: 4s; }

@keyframes sway {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-10px) rotate(5deg); }
    66% { transform: translateY(5px) rotate(-3deg); }
}

/* Laddningsanimationer */
.loading-butterfly {
    display: inline-block;
    animation: flutter 2s ease-in-out infinite;
}

@keyframes flutter {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-5px) rotate(2deg); }
    75% { transform: translateY(-3px) rotate(-2deg); }
}

/* -- NYA STILAR FÖR HEADER, VARUKORG OCH KASSA -- */

/* Header när man skrollar */
.navbar.scrolled {
    background: rgba(232, 245, 232, 0.85) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Steg-indikator för varukorg/kassa */
.steps-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: #a0a0a0;
}
.step-item.active {
    color: var(--butterfly-primary);
    font-weight: 600;
}
.step-item.done {
    color: var(--butterfly-success);
}
.step-item .step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e0e0e0;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    border: 3px solid #e0e0e0;
}
.step-item.active .step-circle {
    background-color: var(--butterfly-primary);
    border-color: var(--butterfly-primary);
}
.step-item.done .step-circle {
    background-color: var(--butterfly-success);
    border-color: var(--butterfly-success);
}
.step-item .step-title {
    font-size: 0.9rem;
    text-decoration: none;
    color: inherit;
}
.step-connector {
    flex-grow: 1;
    height: 2px;
    background-color: #e0e0e0;
    margin: 0 1rem;
    transform: translateY(-1rem);
}

/* Förbättrade betalningsalternativ */
.payment-option {
    margin-bottom: 1rem;
}
.payment-option input[type="radio"] {
    display: none; /* Göm radio-knappen */
}
.payment-option-label {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.payment-option input[type="radio"]:checked + .payment-option-label {
    border-color: var(--butterfly-primary);
    background-color: var(--butterfly-light-green);
    box-shadow: 0 0 0 2px var(--butterfly-primary);
}
.payment-option-label img {
    height: 30px;
    margin-right: 1rem;
}