/*
Theme Name: WinkelOnline.nu
Theme URI: https://winkelonline.nu
Description: Een startpagina thema voor webshops georganiseerd per categorie
Version: 1.0
Author: Uw Naam
Author URI: https://winkelonline.nu
License: GNU General Public License v2 or later
*/

/* Basis stijlen */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

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

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.shop-card {
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 8px;
    transition: transform 0.2s;
}

.shop-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Footer Styles */
.site-footer {
    background: #f5f5f5;
    padding: 40px 0;
    margin-top: 40px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 20px;
}

.footer-bottom {
    border-top: 1px solid #ddd;
    padding-top: 20px;
    text-align: center;
}

/* Shop Grid Styles */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 20px 0;
}

.shop-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.shop-thumbnail {
    position: relative;
    padding-top: 75%; /* 4:3 aspect ratio */
    overflow: hidden;
    background: #f5f5f5;
}

.shop-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.shop-card:hover .shop-thumbnail img {
    transform: scale(1.05);
}

.shop-content {
    padding: 20px;
}

.shop-title {
    font-size: 1.2em;
    margin: 0 0 10px 0;
}

.shop-title a {
    color: #333;
    text-decoration: none;
}

.shop-title a:hover {
    color: #007bff;
}

.shop-excerpt {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 15px;
}

.category-tag {
    display: inline-block;
    background: #f0f0f0;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    margin: 0 5px 5px 0;
    color: #666;
    text-decoration: none;
}

.category-tag:hover {
    background: #e0e0e0;
}

.button {
    display: inline-block;
    background: #007bff;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 15px;
}

.button:hover {
    background: #0056b3;
}

/* Single Webshop Page */
.webshop-single {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px 0;
}

.webshop-header {
    text-align: center;
    margin-bottom: 30px;
}

.webshop-categories {
    margin: 15px 0;
}

.webshop-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 30px;
}

.webshop-cta {
    text-align: center;
    margin: 30px 0;
}

/* Header Styles - Update */
.site-header {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 3px solid #007bff;
    transition: transform 0.3s ease;
}

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

.site-branding {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.site-branding h1 {
    margin: 0;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 700;
}

.site-branding h1 a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-branding h1 a:hover {
    color: #0056b3;
}

.site-slogan {
    margin: 0;
    font-size: 0.95em;
    color: #666;
    font-weight: normal;
}

.main-navigation {
    margin-left: 30px;
}

.primary-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 25px;
}

.primary-menu a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1em;
    padding: 5px 0;
    position: relative;
}

.primary-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #007bff;
    transition: width 0.3s ease;
}

.primary-menu a:hover::after {
    width: 100%;
}

/* Responsive aanpassingen */
@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        text-align: center;
    }

    .site-branding {
        margin-bottom: 15px;
    }

    .main-navigation {
        margin-left: 0;
        width: 100%;
    }

    .primary-menu {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }

    .site-branding h1 {
        font-size: 24px;
    }

    .site-slogan {
        font-size: 0.85em;
        margin-top: 5px;
    }
}

/* Verbeter bestaande stijlen */
.category-card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.category-card h3 {
    margin: 0 0 10px 0;
}

.category-card a {
    color: #333;
    text-decoration: none;
}

.category-card p {
    color: #666;
    margin: 0;
}

.footer-categories {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-categories li {
    margin-bottom: 8px;
}

.footer-categories a {
    color: #666;
    text-decoration: none;
}

.footer-categories a:hover {
    color: #007bff;
}

/* Categorie Menu Styles - Update */
.category-menu-wrapper {
    width: 100%;
    overflow-x: auto;
    padding: 20px 0;
    background: #fff;
    border-bottom: 1px solid #eee;
    -webkit-overflow-scrolling: touch;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    position: sticky;
    top: 80px;
    z-index: 99;
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    will-change: transform, opacity, visibility;
    height: auto; /* Zorgt ervoor dat de hoogte correct wordt berekend */
}

.category-menu {
    display: flex;
    gap: 20px;
    padding: 0 20px;
    min-width: max-content;
    max-width: 1200px; /* Match met container breedte */
    margin: 0 auto; /* Centreer de menu items */
    justify-content: center; /* Centreer de items horizontaal */
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    transition: transform 0.2s;
    width: 120px;
}

.category-item:hover {
    transform: translateY(-5px);
}

.category-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 10px;
    border: 2px solid #eee;
}

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

.category-name {
    font-size: 0.9em;
    text-align: center;
    font-weight: 500;
}

/* Scrollbar styling */
.category-menu-wrapper::-webkit-scrollbar {
    height: 6px;
}

.category-menu-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.category-menu-wrapper::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.category-menu-wrapper::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Category Section Styles */
.category-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.category-section:last-child {
    border-bottom: none;
}

.category-title {
    font-size: 1.5em;
    color: #333;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 2px solid #007bff;
    display: inline-block;
}

.category-description {
    color: #666;
    margin-bottom: 15px;
    font-size: 0.9em;
}

/* Shop List Styles */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    margin: 20px 0;
}

.shop-list-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.shop-list-item:hover {
    border-color: #007bff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.shop-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    font-size: 0.95em;
    line-height: 1.3;
}

.shop-link:hover {
    color: #007bff;
}

.external-link-icon {
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.shop-link:hover .external-link-icon {
    opacity: 1;
}

/* Responsive aanpassingen */
@media (max-width: 768px) {
    .shop-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

@media (max-width: 480px) {
    .shop-grid {
        grid-template-columns: 1fr;
    }
}

/* Drie kolommen grid voor categorie pagina's */
.shop-grid-three {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 30px 0;
}

/* Responsive aanpassingen voor de drie kolommen */
@media (max-width: 1024px) {
    .shop-grid-three {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .shop-grid-three {
        grid-template-columns: 1fr;
    }
}

/* Categorie header styling */
.category-header {
    text-align: center;
    margin: 40px 0;
    padding-bottom: 20px;
    border-bottom: 2px solid #007bff;
}

.category-header h1 {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 15px;
}

.category-header .category-description {
    font-size: 1.1em;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

/* Categories Grid op de voorpagina */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 30px 0;
}

.category-block {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.category-block .category-section {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.category-block .shop-grid {
    grid-template-columns: 1fr;
    gap: 8px;
}

/* Responsive aanpassingen voor categories grid */
@media (max-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }
}

/* Aanpassing van bestaande stijlen voor de nieuwe layout */
.category-block .category-title {
    font-size: 1.3em;
    margin-bottom: 15px;
    padding-bottom: 8px;
}

.category-block .category-description {
    font-size: 0.85em;
    margin-bottom: 15px;
}

.category-block .shop-list-item {
    border: none;
    border-bottom: 1px solid #eee;
    border-radius: 0;
}

.category-block .shop-list-item:last-child {
    border-bottom: none;
}

.category-block .shop-link {
    padding: 8px 0;
}

@media (max-width: 768px) {
    .site-branding {
        text-align: center;
    }
    
    .site-slogan {
        font-size: 0.85em;
        margin-top: 5px;
    }
}

/* Zorg ervoor dat de menu's boven andere content blijven */
.site-header {
    z-index: 100;
}

/* Update Animation Styles */
.site-main {
    transition: transform 0.3s ease;
    will-change: transform;
} 