/* ALFEN Page Specific Styles */
.alfen-hero {
    background: url('/img/alfen/tlo.jpg') center / cover no-repeat;
    color: #fff;
    padding: 160px 0 100px;
    position: relative;
    overflow: hidden;
}

.alfen-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 0;
}

.alfen-hero__container {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.alfen-hero__subtitle {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 1rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.alfen-hero__title {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.alfen-hero__logo {
    max-width: 300px;
    height: auto;
}

.alfen-hero__description {
    font-size: 1.25rem;
    max-width: 900px;
    margin: 0 auto 3rem;
    line-height: 1.8;
    opacity: 0.95;
}

.alfen-hero__features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.alfen-hero__feature {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.alfen-hero__feature-title {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Product Section Styles */
.alfen-section {
    padding: 100px 0;
    position: relative;
    scroll-margin-top: 100px;
}

.alfen-section:nth-child(even) {
    background-color: #f8f9fa;
}

.alfen-section__container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.alfen-section__header {
    text-align: center;
    margin-bottom: 4rem;
}

.alfen-section__category {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #00b1cf;
    background: rgba(0, 177, 207, 0.1);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.alfen-section__title {
    font-size: 3rem;
    font-weight: 700;
    color: #303a4d;
    margin-bottom: 1rem;
}

.alfen-section__subtitle {
    font-size: 1.25rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Product Card - Desktop z dwoma kolumnami */
.alfen-product {
    display: flex !important;
    gap: 4rem;
    margin-bottom: 5rem;
    align-items: start;
    scroll-margin-top: 150px;
}

.alfen-product:last-child {
    margin-bottom: 0;
}

/* Lewa i prawa kolumna - flex containers */
.alfen-product__left,
.alfen-product__right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Elementy w lewej kolumnie */
.alfen-product__content {
    padding: 2rem 0 0 0;
    margin-bottom: 0;
    text-align: center;
}

.alfen-product__details {
    padding: 0;
    margin-top: 0;
}

/* Elementy w prawej kolumnie */
.alfen-product__order-numbers {
    margin-top: 1rem;
}

.alfen-product__actions {
    margin-top: 0.5rem;
}

/* Reverse layout - zamienia kolejność kolumn */
.alfen-product--reverse {
    flex-direction: row-reverse;
}

.alfen-product__name {
    font-size: 2rem;
    font-weight: 700;
    color: #303a4d;
    margin-bottom: 1rem;
}

.alfen-product__tagline {
    font-size: 1.125rem;
    color: #00b1cf;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.alfen-product__description {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 2rem;
}

.alfen-product__specs {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.alfen-section:nth-child(even) .alfen-product__specs {
    background: #fefefe;
}

.alfen-product__specs-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #303a4d;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #00b1cf;
}

.alfen-product__specs-list {
    list-style: none;
    padding: 0;
}

.alfen-product__specs-list li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
    color: #555;
}

.alfen-product__specs-list li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #00b1cf;
    font-weight: bold;
}

.alfen-product__installation {
    background: #e8f4f8;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.alfen-product__installation-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #303a4d;
    margin-bottom: 1rem;
}

.alfen-product__installation-list {
    list-style: none;
    padding: 0;
}

.alfen-product__installation-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #555;
    font-size: 0.95rem;
}

.alfen-product__installation-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #00b1cf;
    font-weight: bold;
}

.alfen-product__actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.alfen-product__button {
    flex: 1;
    min-width: 180px;
    padding: 1.1rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-sizing: border-box;
}

.alfen-product__button--primary {
    background-color: #00b1cf;
    color: #fff;
    border: 2px solid #00b1cf;
}

.alfen-product__button--primary:hover {
    background-color: #0097ad;
    border-color: #0097ad;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 177, 207, 0.25);
}

.alfen-product__button--secondary {
    background-color: #fff;
    color: #303a4d;
    border: 2px solid #303a4d;
}

.alfen-product__button--secondary:hover {
    background-color: #303a4d;
    color: #fff;
    transform: translateY(-3px);
}

.alfen-product__button--share {
    background-color: transparent;
    color: #303a4d;
    border: 2px solid #303a4d;
    padding: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.alfen-product__button--share:hover {
    background-color: #303a4d;
    color: #fff;
    transform: translateY(-3px);
}

.share-icon {
    width: 18px;
    height: 18px;
}

.alfen-gallery__main {
    width: 100%;
    height: 450px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    margin-bottom: 1rem;
    background: #e1e4eb;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alfen-gallery__main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: #ffffff;
    padding: 10px;
    border-radius: 8px;
}

.alfen-gallery__thumbs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.alfen-gallery__thumb {
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: #e1e4eb;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    border: 3px solid transparent;
    padding: 0;
    margin: 0;
    width: 100%;
}

.alfen-gallery__thumb:hover,
.alfen-gallery__thumb.active {
    border-color: #00b1cf;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 177, 207, 0.25);
}

.alfen-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: #ffffff;
    padding: 5px;
}

/* Order Numbers Section */
.alfen-product__order-numbers {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    border-left: 3px solid #00b1cf;
}

.alfen-section:nth-child(even) .alfen-product__order-numbers {
    background: #fff;
}

.alfen-product__order-numbers-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: #303a4d;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.alfen-order-codes {
    font-size: 0.8rem;
    line-height: 1.6;
    color: #555;
    font-family: 'Courier New', monospace;
    word-break: break-word;
}

/* Accessories Grid */
.alfen-accessories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.alfen-accessory {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}

.alfen-accessory:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.alfen-accessory__image {
    width: 100%;
    height: 200px;
    background: #e1e4eb;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alfen-accessory__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
}

.alfen-accessory__name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #303a4d;
    margin-bottom: 1rem;
}

.alfen-accessory__description {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.alfen-accessory__features {
    list-style: none;
    padding: 0;
}

.alfen-accessory__features li {
    padding: 0.5rem 0;
    padding-left: 1.25rem;
    position: relative;
    color: #555;
    font-size: 0.9rem;
}

.alfen-accessory__features li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #00b1cf;
    font-weight: bold;
}

@media (max-width: 1024px) {
    .alfen-product {
        flex-direction: column !important;
        gap: 2rem;
    }

    .alfen-product--reverse {
        flex-direction: column !important;
    }

    .alfen-product__left,
    .alfen-product__right {
        display: contents !important;
    }

    .alfen-product__content {
        order: 1;
    }

    .alfen-product__gallery {
        order: 2;
        margin: 0 auto;
    }

    .alfen-product__details {
        order: 3;
    }

    .alfen-product__order-numbers {
        order: 4;
        margin-top: 0;
    }

    .alfen-product__actions {
        order: 5;
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
        margin-top: 0;
    }

    .alfen-product__button {
        width: 100%;
        min-width: 0;
    }

    .alfen-product__button--share {
        align-self: flex-start;
        width: 50px;
        height: 50px;
    }

    .alfen-gallery__main {
        height: 350px;
    }

    .alfen-accessories {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .alfen-hero__logo {
        max-width: 200px;
    }

    .alfen-hero__features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .alfen-section__title {
        font-size: 2rem;
    }

    .alfen-product__name {
        font-size: 1.5rem;
    }

    .alfen-section {
        padding: 60px 0;
    }

    .alfen-accessories {
        grid-template-columns: 1fr;
    }
}