:root {
    --primary: #34c06d;
    --primary-dark: #238e4e;
    --primary-light: rgba(52, 192, 109, 0.15);
    --background: #0b0f1a;
    --surface: #161c2d;
    --surface-light: #21293d;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --radius-lg: 32px;
    --radius-md: 20px;
    --radius-sm: 12px;
    --shadow-sm: 0 4px 6px -1px rgb(0 0 0 / 0.5);
    --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.7);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.8);
    --shadow-soft: 0 30px 60px -12px rgba(0, 0, 0, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body,
html {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--background);
    color: var(--text-main);
    line-height: 1.6;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* Page Loader */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: background-color 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

.page-loader.loaded {
    background-color: transparent;
    pointer-events: none;
}

.loader-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader-outline {
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    width: calc(100% + 16px);
    height: calc(100% + 16px);
    fill: none;
    stroke: #ffffff;
    /* Jasny biały dla kontrastu */
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 100 400;
    /* Pasek o długości 100, przerwa 400 */
    filter: drop-shadow(0 0 8px var(--primary));
    /* Poświata w kolorze marki */
    animation: outlineMove 1.8s linear infinite;
    z-index: 5;
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
}

.page-loader.loaded .loader-outline {
    opacity: 0;
    transform: scale(0.9);
}

@keyframes outlineMove {
    0% {
        stroke-dashoffset: 500;
    }

    100% {
        stroke-dashoffset: 0;
    }
}

.loader-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--primary);
    padding: 16px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.8s cubic-bezier(0.77, 0, 0.175, 1);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
}

.page-loader.loaded .loader-logo {
    top: 0;
    transform: translate(-50%, 0);
    border-radius: 0 0 20px 20px;
}

.loader-logo img {
    height: 55px;
    width: auto;
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Ukrywamy oryginalne logo, dopóki loader nie skończy animacji */
.logo {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.logo.visible {
    opacity: 1;
}

/* Animacja treści strony */
main,
.hero {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
}

body.content-ready main,
body.content-ready .hero {
    opacity: 1;
    transform: translateY(0);
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 5vw, 2.75rem);
    text-align: center;
    margin-bottom: 0.5rem;
}

.subtitle {
    display: block;
    color: var(--text-muted);
    font-size: 1.1rem;
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem auto;
}

.highlight {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.hero .highlight {
    color: #4ae58b;
    text-shadow: none;
}

/* Sections */
.section-container {
    padding: 100px 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.pb-100 {
    padding-bottom: 140px;
}

.bg-pattern {
    background-color: var(--background);
    background-image: radial-gradient(rgba(52, 192, 109, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* Hero Header */
.hero {
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 60px 24px;
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background-color: #000;
}

/* Animowane tło */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('img/serszynka.webp');
    background-size: cover;
    background-position: center;
    animation: heroRotate 30s linear infinite;
    z-index: 0;
    scale: 1.2;
}

/* Nakładka przyciemniająca */
.hero {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 80px 24px;
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background-color: #000;
}

/* Animowane tło */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('img/serszynka.png');
    background-size: cover;
    background-position: center;
    animation: heroRotate 30s linear infinite;
    z-index: 0;
    scale: 1.2;
}

/* Nakładka przyciemniająca */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(11, 15, 26, 0.7) 0%,
            rgba(11, 15, 26, 0.2) 50%,
            var(--background) 100%);
    z-index: 1;
}

@keyframes heroRotate {
    0% {
        transform: scale(1.1) translateY(0);
    }

    50% {
        transform: scale(1.2) translateY(-20px);
    }

    100% {
        transform: scale(1.1) translateY(0);
    }
}

.hero-content {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: clamp(2rem, 5vw, 4rem);
    border-radius: clamp(20px, 4vw, 40px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 1000px;
    width: 100%;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    z-index: 5;
    position: relative;
    text-align: center;
}

.hero h1 {
    color: #ffffff;
    font-size: clamp(2.2rem, 8vw, 4.8rem);
    /* Płynna czcionka */
    margin-bottom: 1.5rem;
    line-height: 1.05;
    font-weight: 800;
    text-shadow: none;
}

.hero p {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    /* Płynna czcionka */
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: none;
}

.logo {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    padding: 16px;
    background: var(--primary);
    border-radius: 0 0 20px 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    text-decoration: none;
}

.logo img {
    height: 56px;
    /* Powiększone z 35px */
    width: 79px;
    display: block;
}

.hero h1 {
    margin: 0 auto 1.5rem auto;
    max-width: 800px;
}

.hero p {
    font-size: 1.25rem;
    margin: 0 auto 2.5rem auto;
    max-width: 600px;
}

/* Buttons */
.hero-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-primary,
.btn-tel {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 20px 40px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 10px 30px rgba(52, 192, 109, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-primary:hover,
.btn-tel:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(52, 192, 109, 0.4);
}

.btn-primary:active,
.btn-tel:active {
    transform: scale(0.98);
}

.btn-secondary {
    display: inline-block;
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    padding: 20px 40px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(52, 192, 109, 0.15);
}

.btn-secondary:active {
    transform: scale(0.98);
}

/* Product Cards */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
}

.product-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-md);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    position: relative;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
    border-color: rgba(52, 192, 109, 0.3);
}

.product-image {
    width: 100%;
    height: 220px;
    position: relative;
    overflow: hidden;
}

.product-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
    z-index: 1;
}

.product-image img:not(.label-badge) {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.product-card:hover .product-image img:not(.label-badge) {
    transform: scale(1.1);
}

.product-image h3 {
    position: absolute;
    bottom: 20px;
    left: 24px;
    color: #ffffff;
    z-index: 2;
    font-size: 1.4rem;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.label-badge {
    position: absolute !important;
    top: 15px !important;
    left: 15px !important;
    width: 80px !important;
    height: auto !important;
    z-index: 3 !important;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3)) !important;
    transition: transform 0.3s ease !important;
}

.product-card:hover .label-badge {
    transform: scale(1.1) rotate(-5deg);
}

.product-image .weight {
    position: absolute;
    bottom: 20px;
    right: 24px;
    z-index: 2;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.product-main {
    padding: 24px 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-icon-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
}

.product-icon {
    font-size: 2.2rem;
    background: var(--primary-light);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    flex-shrink: 0;
    overflow: hidden;
}

.label-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 2px;
}

.product-info h3 {
    font-size: 1.3rem;
    margin-bottom: 4px;
}

.product-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.price-netto {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.price-netto small {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-left: 4px;
}

.price-brutto {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
}

.product-footer {
    padding: 16px 24px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.85rem;
    text-align: center;
}

/* Features (Warunki) */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.feature-card {
    background: var(--surface);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(52, 192, 109, 0.2);
}

.feature-icon {
    font-size: 2.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: rgba(52, 192, 109, 0.1);
    border-radius: var(--radius-md);
    color: var(--primary);
}

.feature-text {
    flex-grow: 1;
}

.feature-card h4 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
    text-align: left;
}

/* Contact Section */
.contact-container {
    background: #0f172a;
    color: #fff;
    padding: 48px 24px;
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

.contact-container::after {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: var(--primary-dark);
    filter: blur(120px);
    opacity: 0.2;
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 40px;
}

.contact-link {
    flex: 1;
    min-width: 250px;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    padding: 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.contact-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.02);
    border-color: var(--primary);
}

.contact-link-icon {
    font-size: 1.5rem;
    margin-right: 16px;
}

/* Sticky Footer */
.sticky-footer {
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: 24px;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 16px 24px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transform: translateY(150px);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.sticky-inner span {
    color: #fff;
    font-weight: 500;
}

.sticky-footer.visible {
    transform: translateY(0);
}

.sticky-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sticky-tel-btn {
    background: var(--primary);
    color: white;
    padding: 12px 28px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(52, 192, 109, 0.3);
}

/* Floating Action Bar Container */
.floating-action-bar {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(30px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-action-bar.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.floating-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 800;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.floating-btn:hover {
    transform: scale(1.05) translateY(-5px);
}

.btn-call {
    background: var(--primary);
    box-shadow: 0 10px 30px rgba(52, 192, 109, 0.4);
}

.btn-messenger {
    background: #0084FF;
    box-shadow: 0 10px 30px rgba(0, 132, 255, 0.4);
}

.btn-messenger svg {
    animation: contactShake 2s infinite;
}

.btn-call .phone-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: contactShake 2s infinite;
}

@keyframes contactShake {
    0% {
        transform: rotate(0);
    }

    10% {
        transform: rotate(-15deg);
    }

    20% {
        transform: rotate(15deg);
    }

    30% {
        transform: rotate(-15deg);
    }

    40% {
        transform: rotate(15deg);
    }

    50% {
        transform: rotate(0);
    }
}

@media (max-width: 768px) {
    .section-container {
        padding: 50px 20px;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .sticky-footer {
        display: none;
    }

    /* FAB replaces it on mobile */
    .sticky-inner {
        justify-content: center;
    }

    /* Poprawka dla Hero na Mobile */
    .hero {
        min-height: 90vh;
        min-height: 90svh;
        padding: 30px 16px;
    }

    .hero-content {
        padding: 24px 16px;
        margin-top: 30px;
        border-radius: 24px;
    }

    .hero h1 {
        font-size: clamp(1.8rem, 10vw, 2.5rem);
        margin-bottom: 0.8rem;
    }

    .hero p {
        font-size: 0.95rem;
        margin-bottom: 1.2rem;
        line-height: 1.4;
    }

    /* Responsive styling for Drawer */
    .drawer-content {
        max-width: 100% !important;
        border-left: none !important;
    }

    .drawer-hero {
        height: 240px !important;
    }

    .drawer-close {
        top: 16px !important;
        right: 16px !important;
    }

    .drawer-info-section {
        padding: 24px 20px !important;
    }
}

/* ==========================================================================
   ROZBUDOWA: SZCZEGÓŁY PRODUKTÓW (DRAWER, TABELA, KOD EAN, BRAK ZDJĘĆ)
   ========================================================================== */

/* Placeholder dla kanapek bez zdjęć */
.product-image.no-image {
    background: linear-gradient(135deg, var(--surface-light) 0%, var(--surface) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 220px;
}

.no-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-bottom: 20px;
}

.placeholder-icon {
    font-size: 3.5rem;
    margin-bottom: 12px;
    filter: drop-shadow(0 6px 12px rgba(52, 192, 109, 0.25));
    animation: floatIcon 4s ease-in-out infinite;
}

@keyframes floatIcon {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-6px) scale(1.03);
    }
}

.placeholder-tag {
    background: var(--primary-light);
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 4px 14px;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Wskaźnik interaktywności karty produktu */
.product-card {
    cursor: pointer;
    position: relative;
}

/* Boczny panel szczegółów (Drawer) */
.product-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    visibility: hidden;
    transition: visibility 0.5s;
}

.product-drawer.open {
    visibility: visible;
}

.drawer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 15, 26, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-drawer.open .drawer-overlay {
    opacity: 1;
}

.drawer-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 520px;
    height: 100%;
    background: var(--surface);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.6);
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.product-drawer.open .drawer-content {
    transform: translateX(0);
}

.drawer-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-main);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.drawer-close:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: rotate(90deg);
}

.drawer-body {
    height: 100%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.drawer-hero {
    position: relative;
    width: 100%;
    height: 280px;
    background: linear-gradient(135deg, var(--surface-light) 0%, var(--surface) 100%);
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.drawer-hero.no-image {
    background: linear-gradient(135deg, var(--surface-light) 0%, #0f172a 100%);
}

.drawer-hero img:not(.drawer-label-badge) {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.drawer-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80%;
    background: linear-gradient(to top, rgba(22, 28, 45, 1) 0%, rgba(22, 28, 45, 0.7) 30%, transparent 100%);
    z-index: 1;
}

.drawer-label-badge {
    position: absolute !important;
    top: 24px !important;
    left: 24px !important;
    width: 90px !important;
    height: auto !important;
    z-index: 3 !important;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4)) !important;
}

.drawer-title-wrap {
    position: absolute;
    bottom: 24px;
    left: 32px;
    right: 32px;
    z-index: 2;
}

.drawer-weight {
    background: var(--primary-light);
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 5px 14px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 10px;
}

#drawer-title {
    font-size: 1.8rem;
    color: #ffffff;
    font-weight: 800;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.drawer-info-section {
    padding: 32px;
    flex-grow: 1;
}

.drawer-meta-row {
    margin-bottom: 28px;
    background: var(--surface-light);
    padding: 16px 20px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.drawer-price-info {
    display: flex;
    flex-direction: column;
}

.price-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.price-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
}

.drawer-section {
    margin-bottom: 32px;
}

.drawer-section h3 {
    font-size: 1.2rem;
    color: #ffffff;
    margin-bottom: 14px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--primary-light);
    display: inline-block;
}

.drawer-description {
    font-size: 1.05rem;
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 28px;
    border-left: 3px solid var(--primary);
    padding-left: 16px;
    text-align: left;
}

.drawer-ingredients {
    color: var(--text-main);
    font-size: 0.92rem;
    line-height: 1.55;
    margin-bottom: 16px;
    text-align: left;
}

.drawer-allergens-wrap {
    background: rgba(239, 68, 68, 0.08);
    border: 1px dashed rgba(239, 68, 68, 0.3);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    color: #fca5a5;
    font-size: 0.88rem;
    line-height: 1.4;
}

.drawer-allergens-wrap strong {
    color: #ef4444;
}

.nutrition-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.nutrition-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.nutrition-table tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nutrition-table tr:last-child {
    border-bottom: none;
}

.nutrition-table td {
    padding: 8px 10px;
}

.nutrition-table td:last-child {
    text-align: right;
    font-weight: 700;
}

.nutrition-table tr.sub-row td:first-child {
    padding-left: 24px;
    color: var(--text-muted);
}

.val-bold {
    color: var(--primary);
    font-weight: 800 !important;
}

/* Sekcja kodu kreskowego */
.barcode-card {
    background: #ffffff;
    padding: 20px;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.barcode-logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    color: #0b0f1a;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.barcode-svg-container {
    width: 100%;
    max-width: 280px;
    height: auto;
    display: flex;
    justify-content: center;
}

.barcode-number {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95rem;
    color: #000000;
    letter-spacing: 0.2em;
    margin-top: 6px;
    font-weight: bold;
}

/* ==========================================================================
   ROZBUDOWA: INTERAKTYWNA ANKIETA WSPÓŁPRACY (WIZARD FORM)
   ========================================================================== */

.survey-wrapper {
    margin: 0 auto;
    background: rgba(22, 28, 45, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.survey-progress-bar {
    width: 100%;
    height: 6px;
    background: var(--surface-light);
    border-radius: 10px;
    margin-bottom: 36px;
    overflow: hidden;
}

.survey-progress {
    height: 100%;
    background: var(--primary);
    width: 25%;
    border-radius: 10px;
    transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.survey-step {
    display: none;
    animation: surveyFadeIn 0.5s ease forwards;
}

.survey-step.active {
    display: block;
}

@keyframes surveyFadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.survey-step h3 {
    font-size: 1.25rem;
    color: #ffffff;
    margin-bottom: 24px;
    line-height: 1.4;
    font-weight: 700;
}

/* Krok 1 Options Layout */
.survey-options {
    display: flex;
    gap: 20px;
    flex-direction: row;
}

.btn-survey-option {
    flex: 1;
    background: var(--surface-light);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 32px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-survey-option:hover,
.btn-survey-option.active {
    border-color: var(--primary);
    background: rgba(52, 192, 109, 0.06);
    transform: translateY(-5px);
}

.btn-survey-option.active {
    background: rgba(52, 192, 109, 0.1);
    box-shadow: 0 10px 25px rgba(52, 192, 109, 0.2);
}

.option-icon {
    font-size: 3rem;
}

.option-text {
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.3;
}

/* Krok 2 Grid Layout */
.survey-options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.grid-option {
    background: var(--surface-light);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.grid-option:hover,
.grid-option.active {
    border-color: var(--primary);
    background: rgba(52, 192, 109, 0.06);
    transform: translateY(-3px);
}

.grid-option.active {
    background: rgba(52, 192, 109, 0.1);
    box-shadow: 0 8px 20px rgba(52, 192, 109, 0.15);
}

.grid-option-icon {
    font-size: 2.2rem;
}

.grid-option-label {
    font-weight: 600;
    font-size: 0.92rem;
}

/* Inputs & Form Fields */
.survey-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
    margin-bottom: 20px;
}

.input-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-muted);
}

.survey-input,
.survey-textarea {
    width: 100%;
    background: var(--surface-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    color: #ffffff;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.survey-input:focus,
.survey-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(52, 192, 109, 0.15);
}

.survey-textarea {
    height: 120px;
    resize: none;
    line-height: 1.5;
}

/* Navigation & Pilling Buttons */
.survey-navigation {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 32px;
}

.btn-survey-nav {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    padding: 12px 32px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-survey-nav:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.btn-survey-nav.btn-next {
    background: var(--primary);
    border-color: var(--primary);
    margin-left: auto;
    /* Pcha przycisk do prawej, gdy nie ma "Wstecz" */
}

.btn-prev {
    background: rgba(255, 255, 255, 0.03);
}

.btn-survey-nav.btn-next:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-survey-nav:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* Krok 4: Contact method */
.contact-method-selector {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.btn-method-pill {
    flex: 1;
    background: var(--surface-light);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffffff;
    padding: 12px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-method-pill:hover,
.btn-method-pill.active {
    border-color: var(--primary);
    background: rgba(52, 192, 109, 0.06);
}

.btn-method-pill.active {
    color: var(--primary);
    background: rgba(52, 192, 109, 0.1);
    box-shadow: 0 4px 12px rgba(52, 192, 109, 0.1);
}

.btn-survey-submit {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #ffffff;
    padding: 12px 36px;
    border-radius: 100px;
    border: none;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 8px 24px rgba(52, 192, 109, 0.25);
    margin-left: auto;
}

.btn-survey-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(52, 192, 109, 0.35);
}

.btn-survey-submit:active {
    transform: scale(0.98);
}

/* Wyniki ankiety */
.survey-result-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
    text-align: center;
}

.result-success-icon {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 16px;
    animation: successPop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes successPop {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.survey-result-content h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: #ffffff;
}

.survey-result-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 440px;
    line-height: 1.6;
}

/* Tradycyjne alternatywy kontaktowe na dole */
.contact-alternative {
    margin: 32px auto 0 auto;
    padding: 40px;
    background: rgba(22, 28, 45, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.alternative-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.alternative-cards {
    display: flex;
    justify-content: center;
    gap: 16px;
    width: 100%;
}

.alt-contact-card {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: rgba(11, 15, 26, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.alt-contact-card:hover {
    background: var(--primary-light);
    border-color: rgba(52, 192, 109, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(52, 192, 109, 0.08);
}

.alt-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    color: var(--primary);
    transition: all 0.3s ease;
}

.alt-contact-card:hover .alt-card-icon {
    background: var(--primary);
    color: #ffffff;
    transform: rotate(15deg);
}

.alt-card-icon svg {
    width: 20px;
    height: 20px;
}

.alt-card-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.alt-card-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.alt-card-value {
    font-size: 0.95rem;
    color: var(--text-main);
    font-weight: 700;
    margin-top: 2px;
    transition: color 0.3s ease;
}

.alt-contact-card:hover .alt-card-value {
    color: var(--primary);
}

/* Responsywność dla mobile */
@media (max-width: 580px) {
    .survey-wrapper {
        padding: 24px 20px;
    }

    .survey-options {
        flex-direction: column;
        gap: 12px;
    }

    .btn-survey-option {
        padding: 20px 16px;
        flex-direction: row;
        gap: 16px;
        justify-content: flex-start;
    }

    .option-icon {
        font-size: 2.2rem;
    }

    .survey-options-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .grid-option {
        flex-direction: row;
        gap: 16px;
        padding: 16px;
        justify-content: flex-start;
    }

    .grid-option-icon {
        font-size: 2rem;
    }

    .alternative-cards {
        flex-direction: column;
        gap: 12px;
    }

    .alt-contact-card {
        padding: 14px 18px;
        width: 100%;
    }

    .contact-alternative {
        padding: 24px 20px;
    }
}

/* Antyspamowe style błędów weryfikacji */
.survey-input.input-error {
    border-color: #ff4b4b !important;
    box-shadow: 0 0 10px rgba(255, 75, 75, 0.25) !important;
    animation: inputShake 0.4s ease;
}

@keyframes inputShake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-6px);
    }

    75% {
        transform: translateX(6px);
    }
}

/* Stylizacja Szklanego Modalu z Mapą */
.pointer {
    cursor: pointer;
}

.map-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2500;
    display: none;
    align-items: center;
    justify-content: center;
}

.map-modal.open {
    display: flex;
}

.map-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 12, 23, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: opacity 0.3s ease;
}

.map-modal-content {
    position: relative;
    width: 90%;
    max-width: 950px;
    height: 80%;
    max-height: 650px;
    background: rgba(22, 28, 45, 0.95);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
    z-index: 2501;
    display: flex;
    flex-direction: column;
    animation: modalFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.map-modal-content h3 {
    margin: 0 0 4px 0;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.map-modal-content p {
    margin: 0 0 20px 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.map-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    font-size: 24px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2502;
    padding-bottom: 2px;
}

.map-modal-close:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: scale(1.08) rotate(90deg);
}

.map-modal-iframe-container {
    flex-grow: 1;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    background: rgba(11, 15, 26, 0.6);
}

.map-modal-iframe-container iframe {
    display: block;
    width: 100%;
    /* Google My Maps header hiding offset */
    margin-top: -55px;
    height: calc(100% + 55px);
    border: none;
}

@media (max-width: 768px) {
    .map-modal-content {
        padding: 20px 16px;
        height: 85%;
    }

    .map-modal-close {
        top: 15px;
        right: 15px;
        width: 32px;
        height: 32px;
        font-size: 20px;
    }

    .map-modal-content h3 {
        font-size: 1.25rem;
    }

    .map-modal-iframe-container iframe {
        margin-top: -46px;
        height: calc(100% + 46px);
    }
}

/* Styl linku wywołania mapy w sekcji korzyści */
.map-link {
    display: inline-block;
    margin-top: 6px;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
}

.map-link:hover {
    color: #5fe493;
    transform: translateX(3px);
}