/*
Theme Name: Fikon.nu
Theme URI: https://fikon.nu
Author: Fikon.nu
Author URI: https://fikon.nu
Description: Ett elegant tema för fikon.nu - Sällsynta medelhavs-fikonsorter. Mediterranean minimalism med fokus på ren design och användarvänlighet.
Version: 3.3.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fikon
Tags: e-commerce, botanical, minimalist, mediterranean, woocommerce
*/

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* CSS-variabler */
:root {
    --sage: #7D8C7C;
    --charcoal: #333333;
    --terracotta: #C07A66;
    --bg: #FAFAF9;
    --white: #FFFFFF;
}

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

body {
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    background: var(--bg);
    color: var(--charcoal);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    color: var(--charcoal);
    line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 6vw, 5rem); line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 4vw, 3rem); letter-spacing: -0.01em; }
h3 { font-size: 1.5rem; line-height: 1.3; }
h4 { font-size: 1.25rem; }

p { line-height: 1.7; color: rgba(51, 51, 51, 0.8); margin-bottom: 1rem; }

a { color: var(--sage); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--terracotta); }

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

/* Layout */
.fikon-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* HEADER */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.3s;
    background: transparent;
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.site-header .fikon-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin: 0;
    text-align: left;
}

.site-title a {
    color: var(--charcoal);
    text-decoration: none;
    transition: color 0.3s;
    display: block;
}

.site-title a:hover {
    color: var(--sage);
}

/* Navigation */
.main-navigation {
    display: flex;
    align-items: center;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 24px;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    color: var(--charcoal);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.main-navigation a:hover {
    color: var(--sage);
}

.menu-toggle {
    display: none;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--charcoal);
    padding: 8px;
}

/* Hero Section MED BAKGRUNDSBILD */
.fikon-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: -80px;
    padding-top: 80px;
}

/* Bakgrundsbild - FIXED */
.fikon-hero::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://fikon.nu/wp-content/uploads/2026/02/fikonbakgrund-scaled.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.15;
    z-index: -1;
}

/* Pattern overlay */
.fikon-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.1;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%237D8C7C' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

/* Gradient overlay för bättre läsbarhet */
.fikon-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(125, 140, 124, 0.1) 0%, rgba(192, 122, 102, 0.1) 100%);
    z-index: 1;
}

.fikon-hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 120px 24px 80px;
}

.fikon-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    padding: 8px 16px;
    border-radius: 50px;
    margin-bottom: 32px;
    animation: fadeIn 0.6s ease-out;
    font-size: 0.875rem;
}

.fikon-badge svg {
    width: 16px;
    height: 16px;
    color: var(--sage);
}

.fikon-hero h1 {
    margin-bottom: 24px;
    animation: slideUp 0.8s ease-out;
    text-shadow: 0 2px 8px rgba(255, 255, 255, 0.8);
}

.fikon-hero-description {
    font-size: 1.125rem;
    max-width: 640px;
    margin: 0 auto 48px;
    animation: slideUp 0.8s ease-out 0.2s both;
    background: rgba(255, 255, 255, 0.8);
    padding: 16px 24px;
    border-radius: 8px;
}

/* Buttons */
.fikon-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: slideUp 0.8s ease-out 0.4s both;
}

.fikon-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    font-family: 'Inter', sans-serif;
}

.fikon-btn-primary {
    background: linear-gradient(135deg, var(--sage) 0%, #6B7A6A 100%);
    color: white;
    box-shadow: 0 10px 25px rgba(125, 140, 124, 0.2);
}

.fikon-btn-primary:hover {
    background: var(--charcoal);
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(51, 51, 51, 0.3);
    color: white;
}

.fikon-btn-outline {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--charcoal);
    color: var(--charcoal);
}

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

/* Sections */
.fikon-section {
    padding: 96px 0;
    background: var(--bg);
}

.fikon-section-header {
    text-align: center;
    margin-bottom: 64px;
}

.fikon-section-header h2 {
    margin-bottom: 16px;
}

.fikon-section-header p {
    max-width: 640px;
    margin: 0 auto;
    font-size: 1.125rem;
}

/* Product Grid */
.fikon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 32px;
}

.fikon-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(125, 140, 124, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.fikon-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(125, 140, 124, 0.15);
}

.fikon-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: rgba(125, 140, 124, 0.05);
}

.fikon-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.fikon-card:hover .fikon-card-image img {
    transform: scale(1.1);
}

.fikon-card-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(192, 122, 102, 0.9);
    color: white;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
}

.fikon-card-content {
    padding: 24px;
}

.fikon-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.fikon-card h3 {
    font-size: 1.25rem;
    margin: 0;
    transition: color 0.3s;
    color: var(--charcoal);
}

.fikon-card:hover h3 {
    color: var(--sage);
}

.fikon-card-price {
    font-size: 0.875rem;
    color: rgba(51, 51, 51, 0.6);
    white-space: nowrap;
}

.fikon-card-description {
    font-size: 0.875rem;
    color: rgba(51, 51, 51, 0.6);
    margin-bottom: 12px;
}

/* Tags */
.fikon-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.fikon-tag {
    display: inline-block;
    padding: 6px 12px;
    background: linear-gradient(135deg, var(--sage) 0%, var(--terracotta) 100%);
    color: white;
    font-size: 0.75rem;
    border-radius: 50px;
    font-weight: 500;
}

/* Why Section */
.fikon-why {
    background: linear-gradient(135deg, rgba(125, 140, 124, 0.05) 0%, rgba(192, 122, 102, 0.05) 100%);
}

.fikon-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.fikon-why-content h2 {
    margin-bottom: 24px;
}

.fikon-why-content p {
    margin-bottom: 24px;
    line-height: 1.8;
}

.fikon-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--sage);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.fikon-link:hover {
    color: var(--terracotta);
}

.fikon-link svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s;
}

.fikon-link:hover svg {
    transform: translateX(4px);
}

/* Icon Grid */
.fikon-icon-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.fikon-icon-box {
    background: white;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.fikon-icon-box:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.fikon-icon-box svg {
    width: 32px;
    height: 32px;
    margin-bottom: 16px;
}

.fikon-icon-box h3 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.fikon-icon-box p {
    font-size: 0.875rem;
    margin: 0;
}

/* Encyclopedia Gallery */
.encyclopedia-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.encyclopedia-item {
    position: relative;
    aspect-ratio: 3/4;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.encyclopedia-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

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

.encyclopedia-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(51, 51, 51, 0.95), transparent);
    padding: 48px 16px 16px;
    color: white;
}

.encyclopedia-label h3 {
    font-size: 1.25rem;
    color: white;
    margin: 0;
}

/* Content Pages */
.content-page {
    padding: 120px 0 96px;
}

.content-page .fikon-container {
    max-width: 800px;
}

.content-page h1 {
    margin-bottom: 32px;
    text-align: center;
}

.content-page .entry-content {
    font-size: 1.125rem;
    line-height: 1.8;
}

.content-page .entry-content h2 {
    margin-top: 48px;
    margin-bottom: 24px;
}

.content-page .entry-content h3 {
    margin-top: 32px;
    margin-bottom: 16px;
}

.content-page .entry-content p {
    margin-bottom: 24px;
}

.content-page .entry-content ul,
.content-page .entry-content ol {
    margin: 24px 0;
    padding-left: 32px;
}

.content-page .entry-content li {
    margin-bottom: 12px;
}

/* Guide Page med Bildspel */
.guide-layout {
    max-width: 1280px !important;
}

.guide-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.guide-text {
    padding-right: 32px;
}

.guide-slideshow {
    position: sticky;
    top: 100px;
}

.slideshow-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.slideshow-slide {
    display: none;
    width: 100%;
    height: 100%;
}

.slideshow-slide.active {
    display: block;
    animation: fadeSlide 0.5s ease-in-out;
}

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

.slideshow-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(51, 51, 51, 0.9), transparent);
    color: white;
    padding: 32px 24px 16px;
    font-size: 0.875rem;
}

.slideshow-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.slideshow-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(125, 140, 124, 0.3);
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    padding: 0;
}

.slideshow-dot:hover {
    background: rgba(125, 140, 124, 0.6);
}

.slideshow-dot.active {
    background: var(--sage);
    width: 32px;
    border-radius: 6px;
}

@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: scale(1.05);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* SINGLE PRODUCT PAGE - SNYGG LAYOUT */
.single-product-page {
    padding: 120px 0 96px;
    background: var(--bg);
}

.product-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    margin-bottom: 64px;
}

.product-images {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.product-main-image {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.product-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-thumbnails {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.product-thumbnail {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s;
}

.product-thumbnail:hover {
    border-color: var(--sage);
}

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

.product-info {
    background: white;
    padding: 48px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.product-header {
    margin-bottom: 32px;
}

.product-title {
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.product-scientific {
    font-style: italic;
    color: rgba(51, 51, 51, 0.6);
    margin-bottom: 24px;
}

.product-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 32px;
    padding: 24px;
    background: rgba(125, 140, 124, 0.05);
    border-radius: 8px;
}

.product-meta-item h4 {
    font-size: 0.875rem;
    color: rgba(51, 51, 51, 0.6);
    margin-bottom: 4px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.product-meta-item p {
    font-size: 1.125rem;
    color: var(--charcoal);
    font-weight: 600;
    margin: 0;
}

.product-price-section {
    padding: 24px;
    background: linear-gradient(135deg, rgba(125, 140, 124, 0.05) 0%, rgba(192, 122, 102, 0.05) 100%);
    border-radius: 8px;
    margin-bottom: 24px;
}

.product-price {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: var(--charcoal);
    margin-bottom: 8px;
}

.product-stock {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(125, 140, 124, 0.1);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--sage);
}

.product-stock.out-of-stock {
    background: rgba(192, 122, 102, 0.1);
    color: var(--terracotta);
}

.product-description {
    margin-bottom: 32px;
}

.product-description h3 {
    margin-bottom: 16px;
}

.product-description p {
    margin-bottom: 16px;
}

.product-add-to-cart {
    display: flex;
    gap: 16px;
    align-items: center;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 2px solid var(--sage);
    border-radius: 8px;
    padding: 8px 16px;
}

.quantity-selector button {
    background: none;
    border: none;
    color: var(--sage);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.3s;
}

.quantity-selector button:hover {
    color: var(--charcoal);
}

.quantity-selector input {
    width: 60px;
    text-align: center;
    border: none;
    font-size: 1.125rem;
    font-weight: 600;
}

.add-to-cart-btn {
    flex: 1;
    background: linear-gradient(135deg, var(--sage) 0%, #6B7A6A 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.add-to-cart-btn:hover {
    background: var(--charcoal);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Footer */
.site-footer {
    background: var(--charcoal);
    color: rgba(255, 255, 255, 0.8);
    padding: 48px 0 24px;
    margin-top: 96px;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.8);
}

.site-footer a:hover {
    color: white;
}

.footer-content {
    text-align: center;
}

.footer-content p {
    color: rgba(255, 255, 255, 0.6);
    margin: 8px 0;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* WordPress Specifics */
.alignleft { float: left; margin: 0 24px 24px 0; }
.alignright { float: right; margin: 0 0 24px 24px; }
.aligncenter { display: block; margin: 0 auto 24px; }

/* RESPONSIVE - MOBIL */
@media (max-width: 768px) {
    .site-header .fikon-container {
        justify-content: space-between;
    }
    
    .site-title {
        font-size: 1.125rem;
        text-align: left;
        flex: 1;
    }
    
    .main-navigation {
        display: none;
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        padding: 24px;
        transform: none;
    }
    
    .main-navigation.toggled {
        display: block;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 16px;
    }
    
    .menu-toggle {
        display: block;
        position: relative;
        transform: none;
    }
    
    .fikon-section {
        padding: 64px 0;
    }
    
    .fikon-two-col,
    .product-main {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .fikon-icon-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .product-images {
        position: static;
    }
    
    .product-info {
        padding: 24px;
    }
    
    .product-title {
        font-size: 2rem;
    }
    
    .product-meta {
        grid-template-columns: 1fr;
    }
    
    .fikon-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .encyclopedia-gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 16px;
    }
    
    .fikon-buttons {
        flex-direction: column;
    }
    
    .fikon-btn {
        width: 100%;
        justify-content: center;
    }
    
    .fikon-hero-content {
        padding: 100px 16px 60px;
    }
    
    .fikon-hero h1 {
        font-size: 2rem;
    }
    
    .guide-content-wrapper {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .guide-text {
        padding-right: 0;
    }
    
    .guide-slideshow {
        position: static;
        order: -1;
    }
}

/* WooCommerce Support */
.woocommerce ul.products {
    list-style: none;
    margin: 0;
    padding: 0;
}

.woocommerce ul.products li.product {
    list-style: none;
}
