/* =========================================
   PRODUCTS PAGE – HERO VIDEO 40vh + NAWIGACJA
   ========================================= */

.products-hero-video {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 320px;
    overflow: hidden;
    display: flex;
    align-items: center;
    margin-bottom: 0;
}

.products-hero-video-el {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.products-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.products-hero-content {
    position: relative;
    z-index: 2;
    padding: 0 40px;
}

.products-hero-title {
    font-size: clamp(28px, 36px, 42px);
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.products-hero-desc {
    font-size: var(--font-body);
    color: #fff;
    line-height: 1.6;
    max-width: 560px;
    margin-bottom: 24px;
    opacity: 0.95;
}

.products-hero-cta {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 10px;
    font-weight: 600;
    background-color: var(--primary-color);
    color: #fff;
    border: 1px solid var(--primary-color);
}

.products-hero-cta:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
}

/* Pasek Produkty + filtry – 20px od wideo i od gridu */
.products-nav-strip {
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 0 24px;
}

.products-nav-strip .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.products-nav-title {
    font-size: 24px;
    font-weight: 400;
    color: #111;
    margin: 0;
    text-align: center;
    text-transform: uppercase;
}

.products-filter {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    background: #f0f0f0;
    padding: 6px;
    border-radius: 10px;
}

.filter-btn {
    padding: 10px 24px;
    border-radius: 10px;
    border: none;
    background: transparent;
    color: #555;
    font-size: var(--font-small);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.filter-btn.active {
    background: var(--accent-muted);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.filter-btn:hover:not(.active) {
    background: #fff;
    color: #111;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* =========================================
   PRODUCTS SHOWCASE - GRID KART
   ========================================= */

.products-showcase {
    position: relative;
    z-index: 5;
    margin-top: 0;
    margin-bottom: 120px;
}

.products-header-hidden {
    display: none;
}

.products-header {
    text-align: center;
    margin-bottom: 60px;
}

.products-header .section-title {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 24px;
    color: #111;
    text-transform: uppercase;
}

/* Paginacja pod galerią – kółka jak na screenie + strzałki */
.products-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 48px;
    padding-bottom: 24px;
}

.products-pagination-dots {
    display: flex;
    align-items: center;
    gap: 12px;
}

.products-pagination-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #fff;
    color: #111;
    font-size: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.products-pagination-dot.active {
    background: var(--accent-muted);
    color: #111;
}

.products-pagination-dot:hover:not(.active) {
    background: #f0f0f0;
}

.products-pagination-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #e0e0e0;
    background: #fff;
    color: #111;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s, background 0.2s;
}

.products-pagination-arrow:hover {
    border-color: #999;
    background: #f9f9f9;
}

/* Grid Layout */
.products-grid-new {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
}

.product-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Product Card – ciemna karta, zaokrąglone rogi, bez cieni, proporcje jak na wzorze */
.product-card-new {
    position: relative;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    box-shadow: none;
    transition: background 0.3s ease;
    cursor: pointer;
}

.product-card-new:hover {
    background: #fafafa;
}

/* Default State */
.product-card-default {
    padding: 24px 20px 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    transition: opacity 0.6s ease;
}

.product-card-new:hover .product-card-default {
    opacity: 1;
}

.product-img-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 0;
}

.product-img-wrapper img {
    max-width: 100%;
    max-height: 180px;
    object-fit: contain;
}

.product-card-default h3 {
    font-size: 15px;
    font-weight: 700;
    color: #111;
    margin-top: 14px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* Hover State – półprzezroczyste tło, produkt prześwituje */
.product-card-hover {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
    color: #fff;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
    z-index: 2;
}

.product-card-new:hover .product-card-hover {
    opacity: 1;
    visibility: visible;
}

.product-card-hover h3 {
    font-size: clamp(16px, 1.35rem, 20px);
    font-weight: 700;
    margin: 0 0 24px 0;
    padding: 0;
    text-align: center;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #fff;
}

.product-specs {
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.25);
    font-size: 13px;
    line-height: 1.35;
}

.spec-row:last-child {
    border-bottom: none;
}

.spec-label {
    font-weight: 400;
    color: rgba(255,255,255,0.75);
}

.spec-value {
    font-weight: 700;
    color: #fff;
    text-align: right;
}

/* Responsive */
@media (max-width: 992px) {
    .products-grid-new {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .products-grid-new {
        grid-template-columns: 1fr;
    }
    .product-card-new {
        aspect-ratio: auto;
        min-height: 340px;
    }
    .product-card-hover {
        padding: 22px 20px;
    }
    .product-card-hover h3 {
        font-size: 15px;
        margin-bottom: 18px;
    }
    .spec-row {
        padding: 8px 0;
        font-size: 12px;
    }
}