/*
Theme Name: Freeheeler New Design
Theme URI: https://freeheeler.eu
Description: Neues Freeheeler Design - 1:1 wie new.freeheeler.eu
Author: Freeheeler Team
Author URI: https://freeheeler.eu
Template: kadence
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: freeheeler-new
*/

/* =====================================================
   CSS VARIABLEN
   ===================================================== */

:root {
    --red: #E63323;
    --red-dark: #c42a1c;
    --black: #1a1a1a;
    --gray-800: #333;
    --gray-600: #555;
    --gray-400: #888;
    --gray-200: #e5e5e5;
    --gray-100: #f5f5f5;
    --white: #fff;
}

/* =====================================================
   RESET & GRUNDLAGEN
   ===================================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', sans-serif !important;
    color: var(--black);
    line-height: 1.6;
    background: var(--white);
    padding-top: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

/* =====================================================
   KADENCE OVERRIDES - Altes Design ausblenden
   ===================================================== */

#masthead,
.site-header,
.kadence-header,
#colophon,
.site-footer,
.kadence-footer,
.site-header-wrap {
    display: none !important;
}

.site-content {
    padding-top: 0 !important;
}

.content-style-unboxed .entry-content-wrap,
.site-main {
    padding: 0 !important;
    margin: 0 !important;
}

/* =====================================================
   WOOCOMMERCE PAGE OVERRIDES
   ===================================================== */

/* Hide Kadence's grey hero banner on cart / checkout */
.woocommerce-cart .entry-hero,
.woocommerce-checkout .entry-hero {
    display: none !important;
}

/* Remove the top margin that normally compensates for the hero */
.woocommerce-cart .content-area,
.woocommerce-checkout .content-area {
    margin-top: 0 !important;
}

/* Hide the Kadence entry-content wrapper padding on cart/checkout */
.woocommerce-cart .entry-content-wrap,
.woocommerce-checkout .entry-content-wrap {
    padding: 0 !important;
    box-shadow: none !important;
}

.woocommerce-cart .single-entry,
.woocommerce-checkout .single-entry {
    box-shadow: none !important;
}

/* =====================================================
   NEUE NAVIGATION
   ===================================================== */

.fh-nav {
    position: relative;
    background: #fff;
    border-bottom: 1px solid var(--gray-200);
}

.fh-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    max-width: 1140px;
    margin: 0 auto;
}

.fh-logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.fh-nav-links {
    display: flex;
    gap: 28px;
    align-items: center;
    list-style: none;
}

.fh-nav-links a {
    font-weight: 600;
    font-size: 15px;
    color: var(--gray-600);
    text-decoration: none;
    transition: color 0.2s;
}

.fh-nav-links a:hover,
.fh-nav-links a.active {
    color: var(--red);
}

/* Nav Right */
.fh-nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Language Selector */
.fh-lang-selector {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 13px;
    font-weight: 600;
}

.fh-lang-selector a {
    color: var(--gray-400);
    padding: 4px 6px;
    border-radius: 4px;
    transition: all 0.2s;
}

.fh-lang-selector a:hover {
    color: var(--gray-800);
}

.fh-lang-selector a.active {
    color: var(--gray-800);
    background: var(--gray-100);
}

/* Cart Icon */
.fh-cart-icon {
    position: relative;
    font-size: 1.3rem;
    cursor: pointer;
    color: var(--gray-600);
    transition: color 0.2s;
}

.fh-cart-icon:hover {
    color: var(--red);
}

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

/* Hamburger Menu */
.fh-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    background: none;
    border: none;
}

.fh-hamburger span {
    width: 24px;
    height: 2px;
    background: var(--gray-800);
    transition: all 0.3s;
    display: block;
}

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

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

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

/* Mobile Nav */
.fh-mobile-nav {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(10px);
    z-index: 9998;
    padding: 40px 20px;
    flex-direction: column;
    gap: 20px;
}

.fh-mobile-nav.active {
    display: flex;
}

.fh-mobile-nav a {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gray-800);
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-200);
    text-decoration: none;
}

.fh-mobile-nav a:hover {
    color: var(--red);
}

/* =====================================================
   BUTTONS
   ===================================================== */

.btn {
    display: inline-block;
    padding: 12px 24px;
    font-weight: 700;
    font-size: 14px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
    text-decoration: none;
    text-align: center;
}

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

.btn-primary:hover {
    background: var(--red-dark);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--gray-200);
    color: var(--black);
}

.btn-outline:hover {
    border-color: var(--black);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

/* =====================================================
   NEUER FOOTER
   ===================================================== */

.fh-footer {
    background: var(--black);
    color: var(--white);
    padding: 60px 20px 30px;
}

.fh-footer-inner {
    max-width: 1140px;
    margin: 0 auto;
}

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

.fh-footer-brand .fh-logo {
    font-size: 1.8rem;
    margin-bottom: 16px;
    display: block;
}

.fh-footer-brand p {
    color: var(--gray-400);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.fh-footer h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    color: var(--gray-400);
}

.fh-footer-links {
    list-style: none;
}

.fh-footer-links li {
    margin-bottom: 12px;
}

.fh-footer-links a {
    color: var(--white);
    font-size: 0.95rem;
    transition: color 0.2s;
}

.fh-footer-links a:hover {
    color: var(--red);
}

.fh-footer-social {
    display: flex;
    gap: 12px;
}

.fh-footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.2s;
}

.fh-footer-social a:hover {
    background: var(--red);
}

.fh-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--gray-400);
}

.fh-footer-bottom-links {
    display: flex;
    gap: 24px;
}

.fh-footer-bottom-links a {
    color: var(--gray-400);
}

.fh-footer-bottom-links a:hover {
    color: var(--white);
}

/* =====================================================
   WOOCOMMERCE SHOP STYLES
   ===================================================== */

/* Shop Header */
.woocommerce-products-header,
.woocommerce-archive-header {
    background: linear-gradient(135deg, rgba(245,245,245,0.92), rgba(245,245,245,0.85)),
                url('https://images.unsplash.com/photo-1605540436563-5bca919ae766?w=1600&q=80') center/cover;
    padding: 60px 20px 40px;
    text-align: center;
    margin-bottom: 40px;
}

.woocommerce-products-header h1,
.page-title {
    font-size: 2.4rem !important;
    font-weight: 900 !important;
    color: var(--black) !important;
    margin-bottom: 12px !important;
}

/* Content Container */
.woocommerce .site-main,
.woocommerce-page .site-main {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

/* Product Grid */
ul.products,
.wc-block-grid__products {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Product Cards */
ul.products li.product,
.wc-block-grid__product {
    background: var(--white) !important;
    border: 1px solid var(--gray-200) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    transition: all 0.2s ease !important;
    padding: 0 !important;
    margin: 0 !important;
    position: relative !important;
}

ul.products li.product:hover,
.wc-block-grid__product:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.1) !important;
    transform: translateY(-4px) !important;
}

/* Product Image */
ul.products li.product a img,
.wc-block-grid__product-image img {
    width: 100% !important;
    height: 200px !important;
    object-fit: cover !important;
    border-radius: 0 !important;
    margin: 0 !important;
}

/* Product Title */
ul.products li.product .woocommerce-loop-product__title,
ul.products li.product h2 {
    font-weight: 700 !important;
    font-size: 1rem !important;
    color: var(--black) !important;
    margin: 16px 20px 8px !important;
    padding: 0 !important;
    text-transform: none !important;
}

/* Product Price */
ul.products li.product .price {
    font-size: 1.3rem !important;
    font-weight: 800 !important;
    color: var(--red) !important;
    margin: 0 20px 16px !important;
    padding: 0 !important;
}

ul.products li.product .price del {
    font-size: 0.95rem !important;
    color: var(--gray-400) !important;
}

ul.products li.product .price ins {
    text-decoration: none !important;
    background: none !important;
}

/* Add to Cart Button */
ul.products li.product .button,
ul.products li.product a.add_to_cart_button {
    display: block !important;
    background: var(--red) !important;
    color: var(--white) !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 12px 24px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    margin: 0 20px 20px !important;
    text-align: center !important;
    text-decoration: none !important;
    transition: all 0.2s !important;
}

ul.products li.product .button:hover {
    background: var(--red-dark) !important;
}

/* Sale Badge */
ul.products li.product .onsale {
    position: absolute !important;
    top: 12px !important;
    left: 12px !important;
    background: #2ecc71 !important;
    color: var(--white) !important;
    padding: 4px 10px !important;
    border-radius: 4px !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    min-width: auto !important;
    min-height: auto !important;
    line-height: 1.4 !important;
}

/* Sorting & Results */
.woocommerce-result-count {
    color: var(--gray-400) !important;
    font-size: 0.9rem !important;
}

.woocommerce-ordering select {
    padding: 8px 12px !important;
    border: 1px solid var(--gray-200) !important;
    border-radius: 6px !important;
    font-size: 0.9rem !important;
}

/* Pagination */
.woocommerce-pagination ul {
    display: flex !important;
    justify-content: center !important;
    gap: 8px !important;
    list-style: none !important;
    padding: 0 !important;
    margin-top: 40px !important;
    border: none !important;
}

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

.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span {
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid var(--gray-200) !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    background: var(--white) !important;
    color: var(--black) !important;
}

.woocommerce-pagination ul li a:hover,
.woocommerce-pagination ul li span.current {
    background: var(--red) !important;
    border-color: var(--red) !important;
    color: var(--white) !important;
}

/* Star Rating */
.star-rating {
    color: #ffc107 !important;
    margin: 0 20px 8px !important;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 1000px) {
    ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
    }

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

@media (max-width: 768px) {
    .fh-nav-links {
        display: none;
    }

    .fh-hamburger {
        display: flex;
    }

    .fh-footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .fh-footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media (max-width: 600px) {
    ul.products {
        grid-template-columns: 1fr !important;
    }

    body {
        padding-top: 60px;
    }
}
