@charset "UTF-8";

/* ===========================
   Karuzela produktów (kontener)
   =========================== */

.product-carousel {
  overflow: hidden;
  width: 100%;
  position: relative;
}

.carousel-track {
  display: flex;
  transition: transform 0.4s ease;
}

/* 🔒 Blokada kopiowania treści w kartach produktów */
article {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

/* ===========================
   NOWA KARUZELA MAREK
   =========================== */

.brand-carousel {
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
    background: #f8f8f8;
}

.brand-track {
    display: flex;
    align-items: center;
    gap: 40px;
    animation: scrollBrands 35s linear infinite;
}

.brand-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    width: 120px;
    background: #ffffff;
    border-radius: 4px;
    box-shadow: 0 0 3px rgba(0,0,0,0.05);
}

.brand-item img {
    max-height: 50px;
    max-width: 100px;
    object-fit: contain;
    opacity: 0.85;
    transition: opacity 0.3s;
}

.brand-item img:hover {
    opacity: 1;
}

@keyframes scrollBrands {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===========================
   Logotyp producenta (w kartach)
   =========================== */

.product-logo {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 8px 0 12px 0;
}

.product-logo img {
  max-width: 120px;
  max-height: 40px;
  object-fit: contain;
  opacity: 0.9;
  transition: opacity 0.2s;
}

.product-logo img:hover {
  opacity: 1;
}

/* ==========================================================
   📱 MOBILNE DOPIESZCZENIE WYSZUKIWARKI
   ========================================================== */

.search-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ccc;
    border-top: none;
    max-height: 260px;
    overflow-y: auto;
    z-index: 9999;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 420px) {
    .search-suggestions {
        font-size: 14px;
        max-height: 200px;
    }
}

@media (max-width: 360px) {
    .search-suggestions {
        font-size: 13px;
        padding: 4px;
    }
}

/* ==========================================================
   PREMIUM P5 — MINI‑KARTY NA STRONIE GŁÓWNEJ (KARUZELA)
   ========================================================== */

.product-carousel .product-card {
    flex: 0 0 auto;
    width: 200px;
    margin: 10px;
    padding: 16px;
    border-radius: 14px;

    background: linear-gradient(135deg, #0d1b2a, #1b263b);
    border: 1px solid rgba(255,255,255,0.08);

    box-shadow:
        0 6px 14px rgba(0,0,0,0.35),
        inset 0 0 12px rgba(255,255,255,0.05);

    text-align: center;
    transition: all 0.35s ease;
    box-sizing: border-box;
}

.product-carousel .product-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 12px 26px rgba(0,0,0,0.45),
        0 0 16px rgba(0,120,255,0.35);
    border-color: rgba(0,120,255,0.45);
}

.product-carousel .product-brand-thumb {
    width: 100%;
    height: 140px;
    border-radius: 10px;
    background: rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 12px;
    transition: transform 0.35s ease;
}

.product-carousel .product-card:hover .product-brand-thumb {
    transform: scale(1.05);
}

.product-carousel .product-brand-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-carousel .product-title {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    margin: 10px 0 6px 0;
    letter-spacing: 0.4px;
}

.product-carousel .product-code {
    color: #66c0ff;
    font-size: 14px;
    margin-bottom: 12px;
}

.product-carousel .product-card button {
    padding: 8px 16px;
    background: linear-gradient(135deg, #0077ff, #004a99);
    color: #ffffff !important;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: background 0.35s ease, box-shadow 0.35s ease;
}

.product-carousel .product-card button:hover {
    background: linear-gradient(135deg, #1a8cff, #005fcc);
    box-shadow: 0 0 12px rgba(0,120,255,0.55);
}

/* ==========================================================
   PREMIUM P5 — DUŻA KARTA PRODUKTU
   ========================================================== */

.product-card {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    background: #ffffff;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    box-sizing: border-box;
}

.product-card .product-image {
    flex: 0 0 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card .product-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}

.product-card .product-details {
    flex: 1 1 260px;
    display: flex;
    flex-direction: column;
}

.product-card .product-details h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 10px 0 12px 0;
    color: #1b263b;
}

.product-card .product-codes p {
    margin: 2px 0;
    font-size: 14px;
}

.product-card .product-codes strong {
    color: #0d47a1;
}

.product-card .product-info {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.5;
}

.product-card .product-info strong {
    color: #1b263b;
}

.product-card .tag-link {
    display: inline-block;
    margin: 2px 4px 2px 0;
    font-size: 12px;
    color: #0d47a1;
    text-decoration: none;
}

.product-card .tag-link:hover {
    text-decoration: underline;
}

.product-card .product-buttons {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.product-card .product-buttons button {
    padding: 8px 16px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 3px 8px rgba(0,0,0,0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.product-card .product-buttons button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0,0,0,0.24);
    opacity: 0.95;
}

@media (max-width: 768px) {
    .product-card {
        flex-direction: column;
    }

    .product-card .product-image {
        flex: 0 0 auto;
    }
}

/* ==========================================================
   KAFELKI WYSZUKIWARKI — IDENTYCZNE JAK NA STRONIE GŁÓWNEJ
   ========================================================== */

.search-results {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    justify-content: flex-start;
}

.search-card {
    flex: 0 0 auto;
    width: 200px;
    margin: 10px;
    padding: 16px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 6px 14px rgba(0,0,0,0.12);
    text-decoration: none;
    color: #222;
    display: block;
    text-align: center;
    transition: all 0.35s ease;
    box-sizing: border-box;
}

.search-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 26px rgba(0,0,0,0.18);
}

.product-brand-thumb {
    width: 100%;
    height: 140px;
    border-radius: 10px;
    background: rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 12px;
}

.product-brand-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-logo img {
    max-height: 40px;
    display: block;
    margin: 0 auto 10px auto;
    opacity: 0.9;
}

.product-title {
    color: #222;
    font-size: 16px;
    font-weight: 600;
    margin: 10px 0 6px 0;
    letter-spacing: 0.4px;
}

.product-code {
    color: #666;
    font-size: 14px;
    margin-bottom: 12px;
}

.search-card button {
    padding: 8px 16px;
    background: #1976d2;
    color: #ffffff !important;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: background 0.35s ease, box-shadow 0.35s ease;
}

.search-card button:hover {
    background: #1e88e5;
    box-shadow: 0 0 12px rgba(0,120,255,0.35);
}

/* ===========================
   WYNIKI WYSZUKIWANIA — NOWE KAFELKI
   =========================== */

.search-results {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
}

/* KAFELKA PRODUKTU */
.search-product-card {
    font-family: 'Segoe UI', sans-serif;
    background: #ffffff;
    border: 1px solid #ddd;
    padding: 16px;
    width: 240px;
    color: #333;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: 0.25s;
}

.search-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* MINIATURA PRODUKTU */
.search-product-image {
    width: 100%;
    height: 180px;
    border: 1px solid #e5e5e5;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
}

.search-product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* LOGO PRODUCENTA */
.search-product-logo {
    border: 1px solid #e5e5e5;
    padding: 6px;
    background: #fff;
    margin-bottom: 12px;
}

.search-product-logo img {
    max-width: 100px;
    object-fit: contain;
}

/* TEKSTY */
.search-product-title {
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 6px;
}

.search-product-code {
    font-size: 13px;
    color: #666;
    text-align: center;
}

/* ===========================
   PRZYCISK POWROTU
   =========================== */

.back-button {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #0d47a1;
    color: #fff;
    padding: 10px 18px;
    border-radius: 8px;
    font-family: 'Segoe UI', sans-serif;
    font-size: 14px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: 0.25s;
    z-index: 9999;
}

.back-button:hover {
    background: #1565c0;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

/* ===========================
   NAGŁÓWEK WYSZUKIWANIA
   =========================== */

.search-heading {
    margin: 20px;
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 600;
    color: #1b263b;
    letter-spacing: 0.5px;
}

/* ===========================
   WYNIKI WYSZUKIWANIA — NOWE KAFELKI
   =========================== */

.search-results {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
}

/* KAFELKA PRODUKTU */
.search-product-card {
    font-family: 'Segoe UI', sans-serif;
    background: #ffffff;
    border: 1px solid #ddd;
    padding: 16px;
    width: 240px;
    color: #333;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: 0.25s;
}

.search-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* MINIATURA PRODUKTU */
.search-product-image {
    width: 100%;
    height: 180px;
    border: 1px solid #e5e5e5;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
}

.search-product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* LOGO PRODUCENTA */
.search-product-logo {
    border: 1px solid #e5e5e5;
    padding: 6px;
    background: #fff;
    margin-bottom: 12px;
}

.search-product-logo img {
    max-width: 100px;
    object-fit: contain;
}

/* TEKSTY */
.search-product-title {
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 6px;
}

.search-product-code {
    font-size: 13px;
    color: #666;
    text-align: center;
}

/* ===========================
   STATYSTYKI WYSZUKIWANIA
   =========================== */

.search-stats {
    margin: -10px 20px 20px 20px;
    padding: 12px 16px;
    background: #eef2f6;
    border-left: 4px solid #0d47a1;
    border-radius: 6px;
    font-family: 'Segoe UI', sans-serif;
    font-size: 14px;
    color: #1b263b;
    display: flex;
    gap: 25px;
}

/* ===========================
   TAGI W KARCIE PRODUKTU
   =========================== */

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.tag-link {
    display: inline-block;
    padding: 4px 8px;
    background: #eef2f6;
    border-radius: 6px;
    font-size: 12px;
    color: #0d47a1;
    text-decoration: none;
    border: 1px solid #d0d7e2;
    transition: 0.2s;
}

.tag-link:hover {
    background: #dce3ec;
    text-decoration: underline;
}


.search-stats span strong {
    color: #0d47a1;
}


body {
    background: #f2f4f7;
}

.brand-inline {
    margin-top: 10px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 16px;
    color: #333;
}

.brand-item-inline {
    display: flex;
    align-items: center;
    gap: 6px;
}

.brand-item-inline img {
    height: 32px;
    width: auto;
    object-fit: contain;
}

