/*
Theme Name: MojaElektryka Theme
Theme URI: https://mojaelektryka.pl
Author: Ty
Description: Własny motyw dla MojaElektryka.pl – przygotowanie do egzaminu ELE.02
Version: 1.7
Text Domain: mojaelektryka
*/

/* ==================== Główne style ==================== */
body {
    font-family: 'Inter', system-ui, sans-serif;
    line-height: 1.6;
    color: #374151;
    margin: 0;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: #111827;
}

.accent { color: #148965; }
.accent-bg { background-color: #148965; }

.hero-bg {
    background: linear-gradient(rgba(20, 137, 101, 0.88), rgba(20, 137, 101, 0.78)),
                url('https://source.unsplash.com/random/2000x1300/?electrician,tools,modern') center/cover no-repeat;
}

.glow { box-shadow: 0 0 35px -5px #148965; }

.prose {
    color: #374151;
    max-width: none;
}

.prose h1, .prose h2, .prose h3 {
    color: #111827;
    margin-top: 1.5em;
    margin-bottom: 0.75em;
}

/* Line-clamp */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==================== Header & Menu ==================== */
header {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.hamburger-line {
    transition: all 0.35s ease;
}

/* ==================== WooCommerce ==================== */
.woocommerce ul.products {
    list-style: none;
    padding: 0;
    margin: 40px 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
}

.woocommerce ul.products li.product {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.woocommerce ul.products li.product:hover {
    border-color: #148965;
    box-shadow: 0 10px 25px -5px rgba(20, 137, 101, 0.15);
}

.woocommerce ul.products li.product .price {
    color: #148965;
    font-size: 1.4rem;
    font-weight: 700;
}

.woocommerce ul.products li.product .button {
    background-color: #148965;
    color: white;
    border-radius: 9999px;
    width: 100%;
    padding: 12px;
    font-weight: 600;
}

.woocommerce div.product .price {
    color: #148965;
    font-size: 2.8rem;
    font-weight: 700;
}

.woocommerce div.product .woocommerce-product-gallery {
    margin-bottom: 30px;
}

.woocommerce-cart .wc-proceed-to-checkout .button.alt,
.woocommerce-checkout .place-order .button.alt {
    background-color: #148965;
    color: white;
    border-radius: 9999px;
    padding: 16px 40px;
    font-size: 1.15rem;
    width: 100%;
}

.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
    border-radius: 12px;
    padding: 16px 20px;
}

.woocommerce-breadcrumb {
    color: #6b7280;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.woocommerce-breadcrumb a {
    color: #148965;
}

/* Responsywność */
@media (max-width: 768px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 20px;
    }
}

/* Zapobieganie poziomemu scrollowaniu */
html, body {
    width: 100%;
    overflow-x: hidden;
}

/* ==================== Poprawki Headera ==================== */
header {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.hamburger-line {
    transition: all 0.35s ease;
}
.hamburger-line:nth-child(1) { top: 7px; }
.hamburger-line:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hamburger-line:nth-child(3) { bottom: 7px; }

