/*
 Theme Name:   Expert Energies
 Theme URI:    https://expert-energies.fr
 Description:  Thème e-commerce pour Expert Energies - Climatisation, Pompes à chaleur, Chauffage
 Author:       Comelse
 Author URI:   https://comelse.com
 Template:     oceanwp
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  https://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  expert-energies
*/

/* ==========================================================================
   Variables & Palette
   ========================================================================== */
:root {
    /* Couleurs principales */
    --epe-blue-dark: #1a3a5c;
    --epe-blue: #2563eb;
    --epe-blue-light: #3b82f6;
    --epe-blue-pale: #eff6ff;

    /* Accents */
    --epe-orange: #f97316;
    --epe-orange-dark: #ea580c;
    --epe-green: #16a34a;

    /* Neutres */
    --epe-white: #ffffff;
    --epe-gray-50: #f9fafb;
    --epe-gray-100: #f3f4f6;
    --epe-gray-200: #e5e7eb;
    --epe-gray-300: #d1d5db;
    --epe-gray-500: #6b7280;
    --epe-gray-700: #374151;
    --epe-gray-900: #111827;

    /* Typography */
    --epe-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --epe-font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing */
    --epe-radius: 8px;
    --epe-radius-lg: 12px;
    --epe-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --epe-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --epe-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   Base & Typography
   ========================================================================== */
html {
    height: 100%;
}

body {
    margin: 0 !important;
    padding: 0;
    font-family: var(--epe-font);
    color: var(--epe-gray-900);
    background-color: var(--epe-white);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.epe-main {
    flex: 1 0 auto;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--epe-font-heading);
    font-weight: 700;
    color: var(--epe-blue-dark);
}

a {
    color: var(--epe-blue);
    transition: color 0.2s ease;
}

a:hover {
    color: var(--epe-blue-dark);
}

/* ==========================================================================
   Top Bar
   ========================================================================== */
.epe-topbar {
    background-color: var(--epe-blue-dark);
    color: var(--epe-white);
    font-size: 13px;
    padding: 6px 0;
}

.epe-topbar a {
    color: var(--epe-white);
    text-decoration: none;
    opacity: 0.9;
}

.epe-topbar a:hover {
    opacity: 1;
}

.epe-topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   Header Principal
   ========================================================================== */
.epe-header {
    background: var(--epe-white);
    border-bottom: 2px solid var(--epe-blue);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--epe-shadow);
}

.epe-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.epe-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.epe-logo-icon {
    width: 40px;
    height: 40px;
    background: var(--epe-blue);
    border-radius: var(--epe-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.epe-logo-text {
    font-size: 22px;
    font-weight: 800;
    color: var(--epe-blue-dark);
    line-height: 1.1;
}

.epe-logo-text span {
    color: var(--epe-blue);
}

.epe-logo-tagline {
    font-size: 11px;
    color: var(--epe-gray-500);
    font-weight: 400;
}

/* Search bar */
.epe-search {
    flex: 1;
    max-width: 500px;
    margin: 0 30px;
}

.epe-search form {
    display: flex;
    border: 2px solid var(--epe-gray-200);
    border-radius: var(--epe-radius);
    overflow: hidden;
    transition: border-color 0.2s;
}

.epe-search form:focus-within {
    border-color: var(--epe-blue);
}

.epe-search input[type="search"] {
    flex: 1;
    border: none;
    padding: 10px 15px;
    font-size: 14px;
    outline: none;
}

.epe-search button {
    background: var(--epe-blue);
    border: none;
    color: white;
    padding: 10px 18px;
    cursor: pointer;
    transition: background 0.2s;
}

.epe-search button:hover {
    background: var(--epe-blue-dark);
}

/* Header actions */
.epe-header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.epe-header-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--epe-gray-700);
    font-size: 12px;
    transition: color 0.2s;
}

.epe-header-action:hover {
    color: var(--epe-blue);
}

.epe-header-action svg {
    width: 24px;
    height: 24px;
    margin-bottom: 2px;
}

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

/* ==========================================================================
   Navigation Catégories
   ========================================================================== */
.epe-nav {
    background: var(--epe-blue);
}

.epe-nav .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

/* Hamburger button - hidden on desktop */
.epe-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 101;
}

.epe-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--epe-white);
    margin: 5px 0;
    transition: all 0.3s;
    border-radius: 2px;
}

.epe-hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.epe-hamburger.active span:nth-child(2) {
    opacity: 0;
}

.epe-hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.epe-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.epe-nav li a {
    display: block;
    padding: 12px 18px;
    color: var(--epe-white);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.epe-nav li a:hover,
.epe-nav li.current-menu-item a {
    background: rgba(255, 255, 255, 0.15);
}

/* Dropdown */
.epe-nav li {
    position: relative;
}

.epe-nav li ul.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--epe-white);
    min-width: 240px;
    box-shadow: var(--epe-shadow-lg);
    border-radius: 0 0 var(--epe-radius) var(--epe-radius);
    z-index: 100;
    flex-direction: column;
}

.epe-nav li:hover ul.sub-menu {
    display: flex;
}

.epe-nav li ul.sub-menu a {
    color: var(--epe-gray-700);
    padding: 10px 18px;
    font-size: 13px;
    text-transform: none;
    font-weight: 500;
}

.epe-nav li ul.sub-menu a:hover {
    background: var(--epe-blue-pale);
    color: var(--epe-blue);
}

/* ==========================================================================
   Homepage Hero
   ========================================================================== */
.epe-hero {
    background: linear-gradient(135deg, var(--epe-blue-dark) 0%, var(--epe-blue) 100%);
    padding: 60px 0;
    color: var(--epe-white);
}

.epe-hero .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.epe-hero h1 {
    font-size: 38px;
    color: var(--epe-white);
    margin-bottom: 15px;
    line-height: 1.2;
}

.epe-hero p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 25px;
    line-height: 1.6;
}

.epe-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--epe-orange);
    color: var(--epe-white);
    padding: 14px 30px;
    border-radius: var(--epe-radius);
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: background 0.2s, transform 0.2s;
}

.epe-hero-cta:hover {
    background: var(--epe-orange-dark);
    color: var(--epe-white);
    transform: translateY(-1px);
}

/* ==========================================================================
   Avantages (Trust Badges)
   ========================================================================== */
.epe-advantages {
    background: var(--epe-gray-50);
    padding: 30px 0;
    border-bottom: 1px solid var(--epe-gray-200);
}

.epe-advantages .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.epe-advantage {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: var(--epe-white);
    border-radius: var(--epe-radius);
    box-shadow: var(--epe-shadow);
}

.epe-advantage-icon {
    width: 48px;
    height: 48px;
    background: var(--epe-blue-pale);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--epe-blue);
    font-size: 22px;
}

.epe-advantage h4 {
    font-size: 14px;
    margin: 0 0 2px;
    color: var(--epe-gray-900);
}

.epe-advantage p {
    font-size: 12px;
    color: var(--epe-gray-500);
    margin: 0;
}

/* ==========================================================================
   Categories Section (Homepage)
   ========================================================================== */
.epe-categories-section {
    padding: 60px 0;
}

.epe-categories-section .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.epe-section-title {
    text-align: center;
    margin-bottom: 40px;
}

.epe-section-title h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.epe-section-title p {
    color: var(--epe-gray-500);
    font-size: 16px;
}

.epe-categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.epe-category-card {
    background: var(--epe-white);
    border: 1px solid var(--epe-gray-200);
    border-radius: var(--epe-radius-lg);
    padding: 30px 20px;
    text-align: center;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.epe-category-card-icon {
    width: 80px;
    height: 80px;
    background: var(--epe-blue-pale);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 36px;
}

.epe-category-card h3 {
    font-size: 16px;
    margin-bottom: 5px;
}

.epe-category-card p {
    font-size: 13px;
    color: var(--epe-gray-500);
}

/* ==========================================================================
   Breadcrumb Bar
   ========================================================================== */
.epe-breadcrumb-bar {
    background: var(--epe-gray-50);
    padding: 15px 0;
    border-bottom: 1px solid var(--epe-gray-200);
}

.epe-breadcrumb-bar .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.epe-breadcrumb,
.woocommerce .woocommerce-breadcrumb {
    font-size: 13px;
    color: var(--epe-gray-500);
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    letter-spacing: 0.2px;
}

.epe-breadcrumb a,
.woocommerce .woocommerce-breadcrumb a {
    color: var(--epe-blue);
    text-decoration: none;
    transition: color 0.2s;
}

.epe-breadcrumb a:hover,
.woocommerce .woocommerce-breadcrumb a:hover {
    color: var(--epe-blue-dark);
    text-decoration: underline;
}

/* ==========================================================================
   Category Header
   ========================================================================== */
.epe-category-header {
    background: linear-gradient(135deg, var(--epe-blue-dark) 0%, var(--epe-blue) 100%);
    padding: 35px 0;
    color: var(--epe-white);
}

.epe-category-header .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.epe-category-header h1 {
    color: var(--epe-white);
    font-size: 28px;
    margin: 0 0 8px;
}

.epe-category-header p {
    opacity: 0.9;
    font-size: 15px;
    margin: 0;
}

.epe-subcategories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.epe-subcat-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.15);
    color: var(--epe-white);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s;
}

.epe-subcat-chip:hover {
    background: rgba(255, 255, 255, 0.3);
    color: var(--epe-white);
}

.epe-subcat-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 1px 7px;
    border-radius: 10px;
    font-size: 11px;
}

/* ==========================================================================
   Shop Layout (Sidebar + Content)
   ========================================================================== */
.epe-shop-layout {
    padding: 30px 0 60px;
    background: var(--epe-gray-50);
}

.epe-shop-layout .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.epe-shop-grid {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 30px;
    align-items: start;
}

/* ==========================================================================
   Sidebar Filters
   ========================================================================== */
.epe-shop-sidebar {
    background: var(--epe-white);
    border-radius: var(--epe-radius-lg);
    border: 1px solid var(--epe-gray-200);
    overflow: hidden;
    position: sticky;
    top: 80px;
}

.epe-filter-header {
    background: var(--epe-blue);
    color: var(--epe-white);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.epe-filter-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--epe-white);
}

.epe-filter-close {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.epe-filter-group {
    padding: 18px;
    border-bottom: 1px solid var(--epe-gray-100);
}

.epe-filter-group:last-child {
    border-bottom: none;
}

.epe-filter-group h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--epe-blue-dark);
    margin: 0 0 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.epe-filter-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.epe-filter-list li {
    margin-bottom: 2px;
}

.epe-filter-list li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 10px;
    color: var(--epe-gray-700);
    text-decoration: none;
    font-size: 13px;
    border-radius: 6px;
    transition: all 0.15s;
}

.epe-filter-list li a:hover {
    background: var(--epe-blue-pale);
    color: var(--epe-blue);
}

.epe-filter-list li.active a {
    background: var(--epe-blue);
    color: var(--epe-white);
    font-weight: 600;
}

.epe-filter-list li.active a .epe-filter-count {
    color: rgba(255, 255, 255, 0.8);
}

.epe-filter-count {
    font-size: 12px;
    color: var(--epe-gray-500);
}

/* Mobile filter toggle */
.epe-filter-toggle {
    display: none;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--epe-white);
    border: 1px solid var(--epe-gray-200);
    border-radius: var(--epe-radius);
    font-size: 13px;
    font-weight: 600;
    color: var(--epe-gray-700);
    cursor: pointer;
}

/* ==========================================================================
   Shop Toolbar (Sorting / Count)
   ========================================================================== */
.epe-shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: var(--epe-white);
    border-radius: var(--epe-radius);
    border: 1px solid var(--epe-gray-200);
}

.epe-shop-count {
    font-size: 13px;
    color: var(--epe-gray-500);
}

.epe-shop-count .woocommerce-result-count {
    margin: 0;
    padding: 0;
}

.epe-shop-sort .woocommerce-ordering {
    margin: 0;
}

.epe-shop-sort select {
    padding: 6px 12px;
    border: 1px solid var(--epe-gray-200);
    border-radius: 6px;
    font-size: 13px;
    color: var(--epe-gray-700);
    background: var(--epe-white);
}

/* ==========================================================================
   Product Cards (Custom)
   ========================================================================== */
.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px !important;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
    display: none !important;
}

.epe-product-card,
.woocommerce ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    background: none;
    border: none;
}

.epe-product-card-inner {
    background: var(--epe-white);
    border: 1px solid var(--epe-gray-200);
    border-radius: var(--epe-radius-lg);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

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

/* Badges */
.epe-product-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.epe-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.epe-badge-sale {
    background: var(--epe-orange);
    color: white;
}

.epe-badge-featured {
    background: var(--epe-blue);
    color: white;
}

.epe-badge-stock {
    background: #dc2626;
    color: white;
}

/* Product Image */
.epe-product-image {
    display: block;
    padding: 15px;
    background: var(--epe-gray-50);
    text-align: center;
}

.epe-product-image img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    border-radius: var(--epe-radius);
}

/* Product Info */
.epe-product-info {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.epe-product-brand {
    font-size: 11px;
    font-weight: 700;
    color: var(--epe-blue);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.epe-product-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 8px;
}

.epe-product-title a {
    color: var(--epe-gray-900);
    text-decoration: none;
}

.epe-product-title a:hover {
    color: var(--epe-blue);
}

/* Specs */
.epe-product-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.epe-spec {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 8px;
    background: var(--epe-gray-100);
    border-radius: 4px;
    font-size: 11px;
    color: var(--epe-gray-700);
}

.epe-spec-energy {
    background: #16a34a;
    color: white;
    font-weight: 700;
}

/* Price */
.epe-product-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 6px;
    margin-top: auto;
}

.epe-price-current {
    font-size: 22px;
    font-weight: 800;
    color: var(--epe-blue-dark);
}

.epe-price-sale {
    color: var(--epe-orange) !important;
}

.epe-price-old {
    font-size: 14px;
    color: var(--epe-gray-500);
    text-decoration: line-through;
}

.epe-price-ttc {
    font-size: 11px;
    color: var(--epe-gray-500);
    font-weight: 600;
}

/* Shipping */
.epe-product-shipping {
    font-size: 12px;
    margin-bottom: 5px;
}

.epe-shipping-free {
    color: var(--epe-green);
    font-weight: 600;
}

.epe-shipping-paid {
    color: var(--epe-gray-500);
}

/* Product Actions */
.epe-product-actions {
    padding: 0 15px 15px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.epe-product-actions .button,
.epe-product-actions .add_to_cart_button,
.epe-product-actions .ajax_add_to_cart {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    background: var(--epe-orange) !important;
    color: var(--epe-white) !important;
    border: none !important;
    border-radius: var(--epe-radius) !important;
    padding: 10px 16px !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    cursor: pointer;
    transition: background 0.2s !important;
    text-decoration: none;
}

.epe-product-actions .button:hover,
.epe-product-actions .add_to_cart_button:hover {
    background: var(--epe-orange-dark) !important;
}

.epe-btn-details {
    display: block;
    width: 100%;
    text-align: center;
    padding: 8px 16px;
    background: var(--epe-blue-pale);
    color: var(--epe-blue);
    border-radius: var(--epe-radius);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    box-sizing: border-box;
}

.epe-btn-details:hover {
    background: var(--epe-blue);
    color: var(--epe-white);
}

/* Hide default WooCommerce onsale badge (we use custom) */
.woocommerce span.onsale {
    display: none !important;
}

/* ==========================================================================
   Single Product - Custom Layout
   ========================================================================== */
.epe-single-product {
    padding: 30px 0 60px;
    background: var(--epe-gray-50);
}

.epe-single-product .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.epe-product-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
    background: var(--epe-white);
    border-radius: var(--epe-radius-lg);
    border: 1px solid var(--epe-gray-200);
    padding: 30px;
}

/* Single Image */
.epe-single-image {
    position: relative;
}

.epe-single-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 5;
    font-size: 14px;
    padding: 5px 14px;
}

.epe-single-main-img {
    width: 100% !important;
    height: auto !important;
    min-height: 300px;
    max-height: 450px;
    object-fit: contain;
    border-radius: var(--epe-radius);
    background: var(--epe-gray-50);
    padding: 20px;
    box-sizing: border-box;
}

.epe-single-gallery {
    display: flex;
    gap: 8px;
    margin-top: 15px;
}

.epe-gallery-thumb {
    width: 70px;
    height: 70px;
    border: 2px solid var(--epe-gray-200);
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s;
}

.epe-gallery-thumb.active,
.epe-gallery-thumb:hover {
    border-color: var(--epe-blue);
}

.epe-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Single Info */
.epe-single-info {
    display: flex;
    flex-direction: column;
}

.epe-single-title {
    font-size: 24px;
    color: var(--epe-blue-dark);
    margin: 5px 0 8px;
    line-height: 1.3;
}

.epe-single-sku {
    font-size: 12px;
    color: var(--epe-gray-500);
    margin-bottom: 15px;
}

/* Specs Grid */
.epe-single-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
    padding: 15px;
    background: var(--epe-blue-pale);
    border-radius: var(--epe-radius);
}

.epe-single-spec {
    display: flex;
    flex-direction: column;
}

.epe-single-spec-label {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--epe-gray-500);
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.epe-single-spec-value {
    font-size: 15px;
    font-weight: 700;
    color: var(--epe-blue-dark);
}

.epe-energy-badge {
    display: inline-block;
    background: var(--epe-green);
    color: white;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 13px;
    width: fit-content;
}

/* Price Block */
.epe-single-price-block {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--epe-gray-200);
}

.epe-single-price-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 5px;
}

.epe-single-price-old {
    font-size: 18px;
    color: var(--epe-gray-500);
    text-decoration: line-through;
}

.epe-single-price-save {
    font-size: 13px;
    color: var(--epe-orange);
    font-weight: 600;
    background: #fff7ed;
    padding: 3px 10px;
    border-radius: 4px;
}

.epe-single-price-current {
    font-size: 32px;
    font-weight: 800;
    color: var(--epe-blue-dark);
}

.epe-single-price-current.epe-price-sale {
    color: var(--epe-orange);
}

.epe-single-price-current small {
    font-size: 14px;
    font-weight: 600;
    color: var(--epe-gray-500);
}

/* Meta (stock, shipping) */
.epe-single-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 25px;
}

.epe-meta-item {
    font-size: 14px;
    color: var(--epe-gray-700);
}

.epe-meta-stock {
    color: var(--epe-green);
    font-weight: 600;
}

.epe-meta-stock span {
    font-weight: 400;
    color: var(--epe-gray-500);
}

.epe-meta-outofstock {
    color: #dc2626;
    font-weight: 600;
}

.epe-meta-shipping-free {
    color: var(--epe-green);
    font-weight: 600;
}

/* Add to cart button override */
.epe-single-add-to-cart {
    margin-top: auto;
}

.epe-single-add-to-cart .quantity {
    margin-right: 10px;
}

.epe-single-add-to-cart .quantity input {
    width: 60px;
    padding: 10px;
    border: 2px solid var(--epe-gray-200);
    border-radius: var(--epe-radius);
    text-align: center;
    font-size: 16px;
    font-weight: 600;
}

.woocommerce div.product .single_add_to_cart_button,
.epe-single-add-to-cart .single_add_to_cart_button {
    background: var(--epe-orange) !important;
    border-radius: var(--epe-radius) !important;
    padding: 14px 40px !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    transition: all 0.2s !important;
    border: none !important;
    color: white !important;
    cursor: pointer;
}

.woocommerce div.product .single_add_to_cart_button:hover {
    background: var(--epe-orange-dark) !important;
    transform: translateY(-1px);
}

/* ==========================================================================
   Product Tabs
   ========================================================================== */
.epe-product-tabs {
    background: var(--epe-white);
    border-radius: var(--epe-radius-lg);
    border: 1px solid var(--epe-gray-200);
    overflow: hidden;
    margin-bottom: 40px;
}

.epe-tabs-nav {
    display: flex;
    border-bottom: 2px solid var(--epe-gray-100);
    background: var(--epe-gray-50);
}

.epe-tab-btn {
    padding: 15px 25px;
    border: none;
    background: none;
    font-size: 15px;
    font-weight: 600;
    color: var(--epe-gray-500);
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.epe-tab-btn:hover {
    color: var(--epe-blue);
}

.epe-tab-btn.active {
    color: var(--epe-blue);
    border-bottom-color: var(--epe-blue);
    background: var(--epe-white);
}

.epe-tabs-content {
    padding: 30px;
}

.epe-tab-panel {
    display: none;
    line-height: 1.8;
    font-size: 15px;
    color: var(--epe-gray-700);
}

.epe-tab-panel.active {
    display: block;
}

.epe-tab-panel table {
    width: 100%;
    border-collapse: collapse;
}

.epe-tab-panel table th,
.epe-tab-panel table td {
    padding: 10px 15px;
    border-bottom: 1px solid var(--epe-gray-100);
    text-align: left;
}

.epe-tab-panel table th {
    font-weight: 600;
    color: var(--epe-gray-700);
    background: var(--epe-gray-50);
    width: 200px;
}

/* Related Products */
.epe-related-products {
    margin-top: 20px;
}

.epe-related-products > section > h2 {
    font-size: 24px;
    color: var(--epe-blue-dark);
    margin-bottom: 20px;
}

/* Single Product Responsive */
@media (max-width: 768px) {
    .epe-product-top {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }

    .epe-single-title {
        font-size: 20px;
    }

    .epe-single-price-current {
        font-size: 26px;
    }

    .epe-single-specs {
        grid-template-columns: 1fr;
    }

    .epe-tabs-nav {
        overflow-x: auto;
    }

    .epe-tab-btn {
        white-space: nowrap;
        padding: 12px 18px;
        font-size: 13px;
    }
}

/* ==========================================================================
   Buttons Global
   ========================================================================== */
.epe-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--epe-radius);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.epe-btn-primary {
    background: var(--epe-blue);
    color: var(--epe-white);
}

.epe-btn-primary:hover {
    background: var(--epe-blue-dark);
    color: var(--epe-white);
}

.epe-btn-secondary {
    background: var(--epe-orange);
    color: var(--epe-white);
}

.epe-btn-secondary:hover {
    background: var(--epe-orange-dark);
    color: var(--epe-white);
}

.epe-btn-outline {
    background: transparent;
    color: var(--epe-blue);
    border: 2px solid var(--epe-blue);
}

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

/* ==========================================================================
   Footer
   ========================================================================== */
.epe-footer {
    background: var(--epe-blue-dark);
    color: var(--epe-white);
    padding: 50px 0 0;
    flex-shrink: 0;
}

.epe-footer .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.epe-footer h4 {
    color: var(--epe-white);
    font-size: 16px;
    margin-bottom: 20px;
}

.epe-footer p,
.epe-footer li {
    font-size: 14px;
    opacity: 0.8;
    line-height: 1.8;
}

.epe-footer a {
    color: var(--epe-white);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.epe-footer a:hover {
    opacity: 1;
}

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

.epe-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    opacity: 0.7;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
    .epe-advantages .container {
        grid-template-columns: repeat(2, 1fr);
    }

    .epe-categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .epe-footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .epe-hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .epe-shop-grid {
        grid-template-columns: 220px 1fr;
        gap: 20px;
    }

    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    /* Top bar: simplified on mobile */
    .epe-topbar {
        font-size: 11px;
        padding: 4px 0;
    }

    .epe-topbar .container {
        justify-content: center;
        gap: 8px;
    }

    .epe-topbar-left span:first-child,
    .epe-topbar-right span:last-child {
        display: none;
    }

    /* Header: logo + actions on one line, search below */
    .epe-header {
        padding: 10px 0;
    }

    .epe-header .container {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        gap: 8px;
        align-items: center;
    }

    .epe-logo {
        grid-column: 1;
        grid-row: 1;
    }

    .epe-logo-icon {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .epe-logo-text {
        font-size: 18px;
    }

    .epe-logo-tagline {
        display: none;
    }

    .epe-header-actions {
        grid-column: 2;
        grid-row: 1;
        gap: 8px;
    }

    .epe-header-action span {
        display: none;
    }

    .epe-header-action svg {
        width: 22px;
        height: 22px;
    }

    .epe-search {
        grid-column: 1 / -1;
        grid-row: 2;
        max-width: 100%;
        margin: 0;
        width: 100%;
    }

    /* Hamburger visible on mobile */
    .epe-hamburger {
        display: block;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
    }

    .epe-nav .container {
        display: flex;
        align-items: center;
        min-height: 44px;
    }

    .epe-nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--epe-blue);
        z-index: 100;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    }

    .epe-nav-menu.open {
        display: block;
    }

    .epe-nav-menu ul {
        flex-direction: column;
    }

    .epe-nav li a {
        padding: 14px 20px;
        font-size: 14px;
        white-space: nowrap;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .epe-nav li ul.sub-menu {
        position: static;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.15);
        border-radius: 0;
    }

    .epe-nav li ul.sub-menu a {
        color: rgba(255, 255, 255, 0.9);
        padding-left: 36px;
    }

    .epe-hero h1 {
        font-size: 26px;
    }

    .epe-hero p {
        font-size: 15px;
    }

    .epe-advantages .container {
        grid-template-columns: 1fr;
    }

    .epe-categories-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .epe-footer-grid {
        grid-template-columns: 1fr;
    }

    /* Shop: sidebar becomes slide-in drawer */
    .epe-shop-grid {
        grid-template-columns: 1fr;
    }

    .epe-filter-toggle {
        display: inline-flex;
    }

    .epe-shop-sidebar {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 300px;
        height: 100vh;
        z-index: 9999;
        overflow-y: auto;
        border-radius: 0;
        box-shadow: 5px 0 30px rgba(0, 0, 0, 0.3);
    }

    .epe-shop-sidebar.open {
        display: block;
    }

    .epe-filter-close {
        display: block;
    }

    .epe-filter-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 9998;
    }

    .epe-filter-overlay.open {
        display: block;
    }

    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    .epe-product-image img {
        height: 150px;
    }
}

/* ==========================================================================
   WooCommerce Account / Login / Register
   ========================================================================== */
.woocommerce-account .woocommerce {
    max-width: 960px;
    margin: 40px auto;
    padding: 0 20px;
    min-height: 400px;
}

/* OceanWP Login/Register tabs styling */
.woocommerce-account .owp-account-links {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--epe-gray-200);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.woocommerce-account .owp-account-links a {
    font-size: 16px !important;
    font-weight: 600;
    color: var(--epe-gray-500);
    text-decoration: none !important;
    padding: 12px 30px;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.woocommerce-account .owp-account-links a:hover {
    color: var(--epe-blue);
}

.woocommerce-account .owp-account-links a.active,
.woocommerce-account .owp-account-links a.current {
    color: var(--epe-blue);
    border-bottom-color: var(--epe-blue);
}

.woocommerce-account .owp-account-links .owp-account-delimiter {
    display: none;
}

/* Login / Register forms */
.woocommerce-account .u-columns {
    display: block;
    max-width: 500px;
    margin: 0 auto;
}

.woocommerce-account .u-columns .u-column-1,
.woocommerce-account .u-columns .u-column-2 {
    width: 100%;
}

.woocommerce form.woocommerce-form-login,
.woocommerce form.woocommerce-form-register,
.woocommerce form.woocommerce-ResetPassword {
    background: var(--epe-white);
    border: 1px solid var(--epe-gray-200);
    border-radius: 12px;
    padding: 36px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    max-width: 500px;
    margin: 0 auto;
}

.woocommerce form.woocommerce-form-login h2,
.woocommerce form.woocommerce-form-register h2,
.woocommerce-account h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--epe-blue-dark);
    margin: 0 0 24px;
    padding-bottom: 0;
    border-bottom: none;
    text-align: center;
}

/* Privacy policy text */
.woocommerce-account .woocommerce-privacy-policy-text {
    font-size: 12px;
    color: var(--epe-gray-500);
    line-height: 1.6;
    margin-top: 16px;
}

.woocommerce-account .woocommerce-privacy-policy-text p {
    font-size: 12px;
    color: var(--epe-gray-500);
}

.woocommerce form .form-row {
    margin-bottom: 18px;
}

.woocommerce form .form-row label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--epe-gray-700);
    margin-bottom: 6px;
}

.woocommerce form .form-row .input-text,
.woocommerce form .form-row input[type="text"],
.woocommerce form .form-row input[type="email"],
.woocommerce form .form-row input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--epe-gray-300);
    border-radius: 8px;
    font-size: 15px;
    font-family: var(--epe-font);
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.woocommerce form .form-row .input-text:focus,
.woocommerce form .form-row input:focus {
    outline: none;
    border-color: var(--epe-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.woocommerce form .form-row .woocommerce-form__label-for-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
}

.woocommerce form button.woocommerce-button,
.woocommerce form .button[type="submit"],
.woocommerce form input[type="submit"] {
    width: 100%;
    padding: 14px 24px;
    background: var(--epe-blue);
    color: var(--epe-white);
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    font-family: var(--epe-font);
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 8px;
}

.woocommerce form button.woocommerce-button:hover,
.woocommerce form .button[type="submit"]:hover,
.woocommerce form input[type="submit"]:hover {
    background: var(--epe-blue-dark);
}

.woocommerce .woocommerce-LostPassword {
    margin-top: 12px;
}

.woocommerce .woocommerce-LostPassword a {
    color: var(--epe-blue);
    font-size: 13px;
    text-decoration: none;
}

.woocommerce .woocommerce-LostPassword a:hover {
    text-decoration: underline;
}

/* Override OceanWP My Account tabs */
.woocommerce-MyAccount-tabs {
    float: none !important;
    width: 100% !important;
    margin-right: 0 !important;
}

/* Hide OceanWP default sidebar on My Account page */
.woocommerce-account #content-wrap {
    display: block !important;
}

.woocommerce-account #primary {
    width: 100% !important;
    float: none !important;
    max-width: 100% !important;
}

.woocommerce-account #right-sidebar,
.woocommerce-account #left-sidebar,
.woocommerce-account .sidebar-box,
.woocommerce-account .widget-area,
.woocommerce-account .oceanwp-sidebar {
    display: none !important;
}

/* My Account Dashboard (logged in) — sidebar + content grid */
.woocommerce-account .woocommerce:has(.woocommerce-MyAccount-navigation) {
    display: grid !important;
    grid-template-columns: 250px 1fr;
    gap: 30px;
    align-items: start;
}

/* Navigation sidebar */
.woocommerce-account .woocommerce-MyAccount-navigation {
    background: var(--epe-white);
    border: 1px solid var(--epe-gray-200);
    border-radius: 12px;
    position: sticky;
    top: 100px;
    min-width: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
    list-style: none;
    margin: 0;
    padding: 8px 0;
    display: flex;
    flex-direction: column;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li {
    width: 100%;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
    display: block;
    padding: 12px 20px;
    text-align: left;
    font-size: 14px;
    font-weight: 500;
    color: var(--epe-gray-700);
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all 0.2s;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
    background: var(--epe-blue-pale);
    color: var(--epe-blue);
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
    color: var(--epe-blue);
    border-left-color: var(--epe-blue);
    font-weight: 600;
    background: var(--epe-blue-pale);
}

/* Content area */
.woocommerce-account .woocommerce-MyAccount-content {
    background: var(--epe-white);
    border: 1px solid var(--epe-gray-200);
    border-radius: 12px;
    padding: 32px;
    min-height: 350px;
}

/* Dashboard welcome message */
.woocommerce-account .woocommerce-MyAccount-content p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--epe-gray-700);
}

.woocommerce-account .woocommerce-MyAccount-content a {
    color: var(--epe-blue);
    font-weight: 500;
}

.woocommerce-account .woocommerce-MyAccount-content a:hover {
    color: var(--epe-blue-dark);
    text-decoration: underline;
}

/* Order table styles */
.woocommerce-account .woocommerce-orders-table,
.woocommerce table.shop_table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.woocommerce-account .woocommerce-orders-table th,
.woocommerce table.shop_table th {
    background: var(--epe-gray-50);
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--epe-gray-700);
    border-bottom: 2px solid var(--epe-gray-200);
}

.woocommerce-account .woocommerce-orders-table td,
.woocommerce table.shop_table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--epe-gray-100);
    color: var(--epe-gray-700);
}

.woocommerce-account .woocommerce-orders-table tbody tr:hover,
.woocommerce table.shop_table tbody tr:hover {
    background: var(--epe-blue-pale);
}

/* Address cards */
.woocommerce-account .woocommerce-Addresses .woocommerce-Address {
    background: var(--epe-gray-50);
    border: 1px solid var(--epe-gray-200);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 16px;
}

.woocommerce-account .woocommerce-Addresses .woocommerce-Address h3 {
    font-size: 16px;
    margin: 0 0 12px;
}

.woocommerce-account .woocommerce-Addresses .woocommerce-Address address {
    font-style: normal;
    line-height: 1.7;
    color: var(--epe-gray-700);
    font-size: 14px;
}

/* Edit account form */
.woocommerce-account .woocommerce-EditAccountForm fieldset {
    border: 1px solid var(--epe-gray-200);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.woocommerce-account .woocommerce-EditAccountForm fieldset legend {
    font-weight: 600;
    color: var(--epe-blue-dark);
    padding: 0 8px;
}

/* View order details */
.woocommerce-account .woocommerce-order-details {
    margin-top: 20px;
}

/* Buttons in account */
.woocommerce-account .woocommerce-MyAccount-content .button,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-button {
    display: inline-block;
    padding: 10px 20px;
    background: var(--epe-blue);
    color: var(--epe-white) !important;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s;
    opacity: 1 !important;
}

.woocommerce-account .woocommerce-MyAccount-content .button:hover,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-button:hover {
    background: var(--epe-blue-dark);
    text-decoration: none;
}

/* WooCommerce notices */
.woocommerce .woocommerce-error,
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-message {
    padding: 14px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.woocommerce .woocommerce-message {
    background: #f0fdf4;
    border-left: 4px solid var(--epe-green);
    color: #166534;
}

.woocommerce .woocommerce-info {
    background: var(--epe-blue-pale);
    border-left: 4px solid var(--epe-blue);
    color: var(--epe-blue-dark);
}

.woocommerce .woocommerce-error {
    background: #fef2f2;
    border-left: 4px solid #dc2626;
    color: #991b1b;
}

/* Responsive */
@media (max-width: 768px) {
    .woocommerce form.woocommerce-form-login,
    .woocommerce form.woocommerce-form-register {
        padding: 24px;
    }

    .woocommerce-account .owp-account-links a {
        padding: 10px 20px;
        font-size: 14px !important;
    }

    .woocommerce-account .woocommerce:has(.woocommerce-MyAccount-navigation) {
        grid-template-columns: 1fr;
    }

    .woocommerce-account .woocommerce-MyAccount-navigation {
        position: static;
    }

    .woocommerce-account .woocommerce-MyAccount-navigation ul {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .woocommerce-account .woocommerce-MyAccount-navigation ul li a {
        text-align: center;
        border-left: none;
        border-bottom: 2px solid transparent;
        padding: 10px 14px;
        font-size: 13px;
    }

    .woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
        border-left: none;
        border-bottom-color: var(--epe-blue);
    }

    .woocommerce-account .woocommerce-MyAccount-content {
        padding: 20px;
    }
}

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

    .epe-header-actions {
        gap: 12px;
    }

    .woocommerce ul.products {
        grid-template-columns: 1fr !important;
    }
}

/* ==========================================================================
   WooCommerce Pagination
   ========================================================================== */
.woocommerce nav.woocommerce-pagination {
    margin-top: 30px;
}

.woocommerce nav.woocommerce-pagination ul {
    display: flex;
    justify-content: center;
    gap: 6px;
    border: none;
}

.woocommerce nav.woocommerce-pagination ul li {
    border: none;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid var(--epe-gray-200);
    color: var(--epe-gray-700);
    background: var(--epe-white);
}

.woocommerce nav.woocommerce-pagination ul li span.current {
    background: var(--epe-blue);
    color: var(--epe-white);
    border-color: var(--epe-blue);
}

.woocommerce nav.woocommerce-pagination ul li a:hover {
    background: var(--epe-blue-pale);
    color: var(--epe-blue);
}

/* ==========================================================================
   Page Header (titre des pages statiques)
   ========================================================================== */
.epe-page-header {
    background: linear-gradient(135deg, var(--epe-blue-dark) 0%, var(--epe-blue) 100%);
    padding: 40px 0;
}

.epe-page-header .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.epe-page-header h1 {
    color: var(--epe-white);
    font-size: 28px;
    font-weight: 700;
    margin: 0;
}

/* Supprimer les h1/h2 doublés dans le contenu des pages */
.entry-content > h1:first-child,
.entry-content > h2:first-child {
    display: none;
}

/* ==========================================================================
   Footer améliorations
   ========================================================================== */
.epe-footer-contact {
    margin-top: 16px;
}

.epe-footer-contact p {
    margin: 4px 0;
    font-size: 14px;
}

.epe-footer-social {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.epe-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--epe-white);
    transition: background 0.2s;
}

.epe-social-link:hover {
    background: rgba(255, 255, 255, 0.25);
}

.epe-social-link svg {
    fill: currentColor;
}

/* ==========================================================================
   Cookie Banner RGPD
   ========================================================================== */
.epe-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--epe-blue-dark);
    color: var(--epe-white);
    padding: 20px;
    z-index: 10000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
}

.epe-cookie-content {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.epe-cookie-content p {
    flex: 1;
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    min-width: 280px;
}

.epe-cookie-content a {
    color: var(--epe-blue-light);
    text-decoration: underline;
}

.epe-cookie-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.epe-cookie-accept {
    padding: 10px 24px;
    background: var(--epe-blue);
    color: var(--epe-white);
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.epe-cookie-accept:hover {
    background: var(--epe-blue-light);
}

.epe-cookie-decline {
    padding: 10px 24px;
    background: transparent;
    color: var(--epe-white);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.epe-cookie-decline:hover {
    border-color: var(--epe-white);
    background: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   Contact Form
   ========================================================================== */
.epe-contact-form {
    max-width: 640px;
}

.epe-contact-form .form-group {
    margin-bottom: 20px;
}

.epe-contact-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--epe-gray-700);
    margin-bottom: 6px;
}

.epe-contact-form input[type="text"],
.epe-contact-form input[type="email"],
.epe-contact-form input[type="tel"],
.epe-contact-form textarea,
.epe-contact-form select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--epe-gray-300);
    border-radius: 8px;
    font-size: 15px;
    font-family: var(--epe-font);
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.epe-contact-form input:focus,
.epe-contact-form textarea:focus,
.epe-contact-form select:focus {
    outline: none;
    border-color: var(--epe-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.epe-contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.epe-contact-form button[type="submit"] {
    padding: 14px 32px;
    background: var(--epe-blue);
    color: var(--epe-white);
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    font-family: var(--epe-font);
    cursor: pointer;
    transition: background 0.2s;
}

.epe-contact-form button[type="submit"]:hover {
    background: var(--epe-blue-dark);
}

.epe-contact-info {
    background: var(--epe-blue-pale);
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 32px;
}

.epe-contact-info h3 {
    margin: 0 0 16px;
    font-size: 18px;
}

.epe-contact-info p {
    margin: 8px 0;
    font-size: 15px;
    color: var(--epe-gray-700);
}

/* ==========================================================================
   Brands Bar
   ========================================================================== */
.epe-brands {
    background: var(--epe-gray-50);
    padding: 28px 0;
    border-top: 1px solid var(--epe-gray-200);
    border-bottom: 1px solid var(--epe-gray-200);
}

.epe-brands .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.epe-brands-label {
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--epe-gray-400);
    margin: 0 0 18px;
}

.epe-brands-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
    gap: 0;
    max-width: 750px;
    margin: 0 auto;
}

.epe-brand-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    padding: 0 16px;
    border-right: 1px solid var(--epe-gray-200);
}

.epe-brand-item:last-child {
    border-right: none;
}

.epe-brand-item img {
    height: 80px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.45;
    transition: all 0.3s;
}

.epe-brand-item img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Hero secondary CTA */
.epe-hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.epe-hero-cta-secondary {
    display: inline-block;
    padding: 14px 28px;
    border: 2px solid var(--epe-white);
    color: var(--epe-white);
    font-weight: 600;
    border-radius: var(--epe-radius);
    text-decoration: none;
    transition: all 0.2s;
}

.epe-hero-cta-secondary:hover {
    background: var(--epe-white);
    color: var(--epe-blue);
}

/* ==========================================================================
   Aides & Subventions
   ========================================================================== */
.epe-aides-section {
    padding: 80px 0;
    background: var(--epe-white);
    position: relative;
}

.epe-aides-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(37, 99, 235, 0.04) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(22, 163, 74, 0.04) 0%, transparent 60%);
    pointer-events: none;
}

.epe-aides-section .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.epe-aides-section .epe-section-title h2 {
    position: relative;
    display: inline-block;
}

.epe-aides-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.epe-aide-card {
    background: var(--epe-white);
    border-radius: 20px;
    padding: 36px 28px 32px;
    text-align: center;
    border: 1px solid var(--epe-gray-200);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.epe-aide-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--epe-blue), var(--epe-green));
    border-radius: 3px 3px 0 0;
    transition: width 0.4s;
}

.epe-aide-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.1);
    border-color: rgba(37, 99, 235, 0.15);
}

.epe-aide-card:hover::after {
    width: 60%;
}

.epe-aide-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.epe-aide-card:nth-child(1) .epe-aide-icon { background: linear-gradient(135deg, #eff6ff, #dbeafe); }
.epe-aide-card:nth-child(2) .epe-aide-icon { background: linear-gradient(135deg, #f0fdf4, #dcfce7); }
.epe-aide-card:nth-child(3) .epe-aide-icon { background: linear-gradient(135deg, #fff7ed, #ffedd5); }
.epe-aide-card:nth-child(4) .epe-aide-icon { background: linear-gradient(135deg, #eff6ff, #dbeafe); }

.epe-aide-card:hover .epe-aide-icon {
    transform: scale(1.1);
}

.epe-aide-card h4 {
    margin: 0 0 12px;
    font-size: 18px;
    color: var(--epe-blue-dark);
    font-weight: 700;
}

.epe-aide-card p {
    margin: 0;
    font-size: 14px;
    color: var(--epe-gray-600);
    line-height: 1.7;
}

.epe-aide-card p strong {
    color: var(--epe-blue-dark);
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.epe-faq-section {
    padding: 80px 0;
    background: var(--epe-gray-50);
    position: relative;
}

.epe-faq-section .container {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 20px;
}

.epe-faq-list {
    margin-top: 40px;
}

.epe-faq-item {
    border: none;
    border-radius: 16px;
    margin-bottom: 16px;
    overflow: hidden;
    background: var(--epe-white);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.3s;
}

.epe-faq-item:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
}

.epe-faq-item[open] {
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.1);
}

.epe-faq-item summary {
    padding: 22px 28px;
    font-weight: 600;
    font-size: 16px;
    color: var(--epe-blue-dark);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    transition: all 0.2s;
    border-left: 4px solid transparent;
}

.epe-faq-item summary:hover {
    background: rgba(37, 99, 235, 0.02);
}

.epe-faq-item[open] summary {
    border-left-color: var(--epe-blue);
    background: rgba(37, 99, 235, 0.03);
}

.epe-faq-item summary::-webkit-details-marker {
    display: none;
}

.epe-faq-item summary::after {
    content: '';
    width: 36px;
    height: 36px;
    min-width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--epe-blue-pale);
    border-radius: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    transition: all 0.3s;
}

.epe-faq-item[open] summary::after {
    background-color: var(--epe-blue);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='18 15 12 9 6 15'/%3E%3C/svg%3E");
    border-radius: 12px;
}

.epe-faq-answer {
    padding: 0 28px 24px 32px;
    border-left: 4px solid var(--epe-blue);
    animation: epe-fade-in 0.3s ease;
}

@keyframes epe-fade-in {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.epe-faq-answer p {
    margin: 0;
    font-size: 15px;
    line-height: 1.8;
    color: var(--epe-gray-600);
}

/* ==========================================================================
   Footer Payment Icons
   ========================================================================== */
.epe-footer-payment {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.epe-payment-badge {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--epe-white);
}

/* ==========================================================================
   Responsive new sections
   ========================================================================== */
@media (max-width: 768px) {
    .epe-cookie-banner {
        bottom: auto;
        top: 0;
    }

    .epe-cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .epe-page-header h1 {
        font-size: 22px;
    }

    .epe-aides-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .epe-hero-actions {
        flex-direction: column;
    }

    .epe-hero-cta,
    .epe-hero-cta-secondary {
        text-align: center;
    }

    .epe-brands-list {
        grid-template-columns: repeat(4, 1fr);
        gap: 0;
        max-width: 100%;
    }

    .epe-brand-item {
        padding: 0 8px;
        height: 40px;
    }

    .epe-brand-item img {
        height: 24px;
    }
}

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

    .epe-brands-list {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 12px;
    }

    .epe-brand-item:nth-child(2),
    .epe-brand-item:nth-child(4) {
        border-right: none;
    }

    .epe-brand-item:nth-child(4),
    .epe-brand-item:nth-child(5) {
        border-right: none;
    }
}
