/*
Theme Name: Kasy Fiskalne Rzeszów - Child
Theme URI: https://kasyfiskalne.rzeszow.pl
Template: blocksy
Author: m@rek
Author URI: https://kasyfiskalne.rzeszow.pl
Description: Szablon dziecka dla Kasy Fiskalne Rzeszów - rozszerza Blocksy o funkcje katalogu
Version: 1.0.0
Requires PHP: 7.4
License: GPL v2 or later
Text Domain: kfr-child
*/

/* =============================
   KASY FISKALNE - STYLIZACJA
   ============================= */
.kfr-hero {
    background: linear-gradient(135deg, #1a3a5c 0%, #2d6a9f 100%);
    color: #fff;
    padding: 60px 0;
    text-align: center;
    margin-bottom: 40px;
}
.kfr-hero h1 {
    color: #fff !important;
    font-size: 2.5rem;
    margin-bottom: 16px;
}
.kfr-hero p {
    font-size: 1.15rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}
.kfr-breadcrumbs {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 24px;
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
}
.kfr-breadcrumbs a { color: #2563eb; text-decoration: none; }
.kfr-breadcrumbs a:hover { text-decoration: underline; }
.kfr-breadcrumbs .sep { margin: 0 8px; }
.kfr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 30px 0;
}
.kfr-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}
.kfr-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}
.kfr-card-image {
    height: 260px;
    background: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #f3f4f6;
    padding: 20px;
}
.kfr-card-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.kfr-card-body {
    padding: 24px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.kfr-card-badge {
    font-size: 11px;
    text-transform: uppercase;
    color: #6b7280;
    letter-spacing: 1px;
    margin-bottom: 8px;
}
.kfr-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #111827;
    text-decoration: none;
    margin-bottom: 12px;
}
.kfr-card-title:hover { color: #2563eb; }
.kfr-card-meta {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 16px;
}
.kfr-card-meta span {
    display: inline-block;
    background: #f3f4f6;
    padding: 3px 10px;
    border-radius: 20px;
    margin: 2px;
    font-size: 12px;
}
.kfr-card-link {
    margin-top: auto;
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
}
.kfr-product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin: 40px 0;
}
.kfr-product-gallery {
    background: #f9fafb;
    border-radius: 16px;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}
.kfr-product-gallery img { max-width: 100%; max-height: 400px; object-fit: contain; }
.kfr-product-info h1 { font-size: 2rem; margin-bottom: 8px; }
.kfr-product-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.kfr-product-meta a {
    display: inline-block;
    background: #eef2ff;
    color: #4338ca;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 13px;
    text-decoration: none;
    font-weight: 500;
}
.kfr-product-meta a:hover { background: #e0e7ff; }
.kfr-specs {
    background: #f9fafb;
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
}
.kfr-specs h3 {
    font-size: 1.1rem;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}
.kfr-specs table { width: 100%; border-collapse: collapse; }
.kfr-specs table tr { border-bottom: 1px solid #f3f4f6; }
.kfr-specs table td { padding: 10px 12px; font-size: 14px; }
.kfr-specs table td:first-child { font-weight: 600; color: #374151; width: 40%; }
.kfr-specs table td:last-child { color: #6b7280; }
.kfr-product-content { margin-top: 40px; padding-top: 40px; border-top: 1px solid #e5e7eb; }
.kfr-tax-header { margin-bottom: 40px; }
.kfr-tax-header h1 { font-size: 2rem; margin-bottom: 8px; }
.kfr-tax-header .kfr-tax-desc { font-size: 1.05rem; color: #6b7280; line-height: 1.6; }
.kfr-home-section { margin: 60px 0; }
.kfr-home-section-title { font-size: 1.75rem; margin-bottom: 8px; padding-bottom: 16px; border-bottom: 3px solid #2563eb; display: inline-block; }
.kfr-home-section-sub { color: #6b7280; margin-bottom: 30px; font-size: 1.05rem; }
.kfr-home-cta {
    display: inline-block;
    background: #2563eb;
    color: #fff !important;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 20px;
}
.kfr-home-cta:hover { background: #1d4ed8; }
.kfr-manufacturer-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin: 30px 0;
}
.kfr-manufacturer-item {
    text-align: center;
    padding: 24px 16px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s;
    text-decoration: none;
    display: block;
}
.kfr-manufacturer-item:hover {
    background: #fff;
    border-color: #2563eb;
    transform: translateY(-3px);
}
.kfr-manufacturer-item .kfr-m-icon { font-size: 2rem; margin-bottom: 8px; }
.kfr-manufacturer-item .kfr-m-name { font-weight: 700; color: #111827; }
.kfr-manufacturer-item .kfr-m-count { font-size: 13px; color: #6b7280; margin-top: 4px; }
.kfr-mixed-loop { display: grid; gap: 30px; }
.kfr-mixed-loop article {
    padding: 30px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}
.kfr-mixed-loop .kfr-product-item { border-left: 4px solid #2563eb; }
.kfr-mixed-loop .kfr-post-item { border-left: 4px solid #10b981; }
.kfr-mixed-loop h2 { font-size: 1.35rem; margin-bottom: 8px; }
.kfr-mixed-loop h2 a { color: #111827; text-decoration: none; }
.kfr-mixed-loop h2 a:hover { color: #2563eb; }
.kfr-mixed-loop .kfr-item-meta { font-size: 13px; color: #6b7280; margin-bottom: 12px; }
.kfr-mixed-loop .kfr-item-excerpt { color: #4b5563; line-height: 1.6; }
@media (max-width: 768px) {
    .kfr-product-layout { grid-template-columns: 1fr; gap: 30px; }
    .kfr-hero h1 { font-size: 1.75rem; }
    .kfr-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
}
