/*
Theme Name: Condensdroger Theme
Theme URI: https://condensdrogeraanbiedingen.nl/
Author: Condensdroger Aanbiedingen
Author URI: https://condensdrogeraanbiedingen.nl/
Description: Modern WordPress thema gebaseerd op het aangeleverde ontwerp.
Version: 1.0.0
*/

:root {
    --primary-color: #2563eb;
    --primary-light: #eff6ff;
    --secondary-color: #f8fafc;
    --accent-color: #f97316;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --energy-green: #10b981;
    --border-radius: 12px;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f1f5f9;
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.025em;
}

.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 800;
    color: var(--primary-color) !important;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-brand i {
    background: var(--primary-light);
    padding: 8px;
    border-radius: 8px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    margin: 0 10px;
    transition: color 0.2s;
}

.nav-link:hover,
.navbar-nav .current-menu-item > a,
.navbar-nav .current-menu-ancestor > a {
    color: var(--primary-color) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
}

.hero-section {
    background: white;
    padding: 5rem 0;
    overflow: hidden;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-light) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.hero-img-container {
    position: relative;
    z-index: 1;
}

.hero-img {
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    transform: rotate(-2deg);
    transition: transform 0.3s ease;
    max-width: 100%;
}

.hero-img:hover {
    transform: rotate(0deg);
}

.usp-tag {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.card {
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    background: white;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.card-img-top-wrapper {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    padding: 20px;
    border-bottom: 1px solid #f1f5f9;
}

.blog-img-wrapper {
    height: 200px;
    overflow: hidden;
}

.blog-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card:hover .blog-img-wrapper img {
    transform: scale(1.05);
}

.energy-label {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--energy-green);
    color: white;
    padding: 4px 10px;
    font-weight: 700;
    border-radius: 6px;
    font-size: 0.75rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.price-tag {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
}

.old-price {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.btn-cta {
    background-color: var(--accent-color);
    color: white;
    font-weight: 600;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    transition: background 0.2s;
}

.btn-cta:hover {
    background-color: #ea580c;
    color: white;
}

.btn-cta-outline {
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 8px;
}

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

.sidebar-widget {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid #e2e8f0;
    margin-bottom: 1.5rem;
}

.widget-title {
    font-size: 1.1rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 15px;
    font-weight: 700;
}

footer {
    margin-top: auto;
    background: #0f172a;
    color: #94a3b8;
    padding: 4rem 0 2rem;
}

footer h5 {
    color: white;
    margin-bottom: 1.2rem;
}

footer a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
}

footer a:hover {
    color: white;
}

.view-section { display: none; }
.view-section.active { display: block; animation: slideUp 0.4s ease-out; }

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

.product-svg {
    filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.05));
}

.blog-content h2,
.blog-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.blog-content p {
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 1.2rem;
}

.author-meta img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.object-fit-cover {
    object-fit: cover;
}

.navbar-nav .nav-link {
    color: var(--text-dark);
    font-weight: 500;
    border-radius: 999px;
    padding: 0.5rem 1rem;
    transition: background 0.2s ease, color 0.2s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: var(--primary-color);
    background: var(--primary-light);
}

.navbar-nav .nav-link:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}
.header-search .search-form {
    min-width: 280px;
}

.search-form {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    padding: 4px 6px;
    gap: 8px;
}

.search-form .search-input {
    border: 0;
    padding-left: 14px;
    background: transparent;
    font-size: 0.95rem;
}

.search-form .search-input:focus {
    box-shadow: none;
}

.search-form .search-btn {
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
}

.offcanvas {
    background: #f8fafc;
}

.offcanvas .navbar-nav a {
    font-weight: 600;
    color: var(--text-dark);
}

.offcanvas .navbar-nav a:hover {
    color: var(--primary-color);
}

@media (max-width: 991.98px) {
    .header-search .search-form {
        min-width: 100%;
    }
}

.breadcrumb {
    --bs-breadcrumb-divider: '>';
}

.badge.bg-primary-subtle {
    background-color: var(--primary-light);
    color: var(--primary-color);
}

.archive-grid .card,
.category-grid .card {
    height: 100%;
}

.archive-grid .card-body p,
.category-grid .card-body p {
    color: var(--text-muted);
}

.article-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.article-meta span + span::before {
    content: '\2022';
    margin: 0 0.5rem;
}

.table th {
    color: var(--text-muted);
}

.table td {
    font-weight: 600;
}

.single-cta {
    background: var(--primary-light);
    padding: 1.5rem;
    border-radius: var(--border-radius);
}

@media (min-width: 992px) {
    .sticky-top-sidebar {
        position: sticky;
        top: 80px;
    }
}
