/* ===================================
   PRODUCT CATALOG PAGE
   =================================== */

.product-catalog-page {
    /* Let .hero-wrapper provide the orange/blue stripe background */
    background: transparent;
    min-height: 100vh;
}

/* Product Catalog navbar should scroll with the page (not fixed). */
.product-catalog-page .navbar.main-nav,
.product-catalog-page .navbar.main-nav.fixed-top {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
}

.product-catalog-intro-grid {
    position: relative;
    overflow: hidden;
}

.product-catalog-intro-grid::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-color: #fff;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.06) 1px, transparent 1px);
    background-size: 100px 100px;
    background-position: center top;
    pointer-events: none;
}

.product-catalog-intro-grid::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: radial-gradient(ellipse 88% 78% at 50% 45%, transparent 55%, rgba(255, 255, 255, 0.96) 100%);
    pointer-events: none;
}

.product-catalog-intro-grid > * {
    position: relative;
    z-index: 2;
}

/* With static navbar, keep only normal spacing before hero content. */
.product-catalog-hero {
    padding-top: clamp(1.5rem, 3vw, 2.5rem);
    padding-bottom: 0.75rem;
}



.product-catalog-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 300;
    color: var(--text-dark, #1c0c4f);
    margin-bottom: var(--space-lg, 1.5rem);
}

.product-catalog-title-highlight {
    font-weight: 600;
    background: linear-gradient(to right, #EE6849 0%, #2066D8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.product-catalog-cta {
    background: var(--dark-navy, #130033);
    color: white;
    padding: 0.75rem 2rem;
    font-weight: 500;
    border: none;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.product-catalog-cta:hover {
    background: #0d2754;
    color: white;
    transform: translateY(-2px);
}

/* Filter Pills - иста grid големина, fade */
.product-catalog-filters {
    padding: 1rem 0 2rem;
    background: transparent;
}

.product-filter-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.product-filter-pill {
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    border: 1px solid #dee2e6;
    background: white;
    color: var(--text-dark, #1c0c4f);
    cursor: pointer;
    transition: all 0.25s ease;
}

.product-filter-pill:hover {
    border-color: var(--dark-navy, #123773);
    color: var(--dark-navy, #123773);
}

.product-filter-pill.active {
    background: var(--dark-navy, #123773);
    border-color: var(--dark-navy, #123773);
    color: white;
}

/* Product Grid */
.product-catalog-grid-section {
    padding: 0 0 4rem;
}

.product-grid {
    display: flex;
    flex-wrap: wrap;
}

/* Последната видлива картичка центрирана кога е сама во ред */
@media (min-width: 992px) {
    .product-grid .product-card-wrapper.last-visible-alone-lg {
        margin-left: auto;
        margin-right: auto;
    }
}
@media (min-width: 768px) and (max-width: 991px) {
    .product-grid .product-card-wrapper.last-visible-alone-md {
        margin-left: auto;
        margin-right: auto;
    }
}

/* Product Cards - Gradient border #EE6849 → #3F83FF */
.product-card-wrapper {
    transition: opacity 0.3s ease;
}

.product-card-wrapper.hidden {
    display: none !important;
}

.product-card {
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, #EE6849 0%, #3F83FF 100%) border-box;
    border: 2px solid transparent;
    border-radius: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    overflow: hidden;
}

.product-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.product-card-image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f5f5f5;
    padding: 12px 12px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.product-card-body {
    padding: 20px 28px 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.product-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.75rem;
    color: #000;
}

.product-card-description {
    font-size: 0.9rem;
    color: #4a4a4a;
    line-height: 1.55;
    margin-bottom: 1rem;
    flex: 1;
    text-align: center;
}

.product-card-btn {
    display: inline-block;
    text-align: center;
    background: #123773 !important;
    color: white !important;
    padding: 0.45rem 1.1rem;
    font-weight: 500;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    border-radius: 4px !important;
    transition: all 0.25s ease;
    border: 1px solid #123773 !important;
}

.product-card-btn:hover {
    background: #2a2a4a;
    color: white !important;
}

.product-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
}

.product-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-dark, #1c0c4f);
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.25s ease, border-color 0.25s ease;
}

.product-tag.is-filter-match {
    background: #97C3F0;
    border-color: #97C3F0;
    color: var(--text-dark, #1c0c4f);
}

/* Language strip above final CTA */
.product-catalog-page .language-strip-section {
    padding: clamp(2.2rem, 5vw, 3.6rem) 0 clamp(0.9rem, 2.3vw, 1.4rem);
}

.product-catalog-page .language-strip-banner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    overflow: hidden;
    border-radius: 8px;
    background: linear-gradient(90deg, #f26b4f 0%, #f6bc2e 100%);
}

.product-catalog-page .language-strip-banner::before {
    content: "";
    position: absolute;
    right: 16%;
    top: -44px;
    width: 185px;
    height: 185px;
    border-radius: 58% 42% 46% 54% / 48% 44% 56% 52%;
    background: linear-gradient(135deg, rgba(246, 154, 62, 0.55) 0%, rgba(244, 126, 78, 0.38) 100%);
    transform: rotate(-22deg);
    pointer-events: none;
    z-index: 0;
}

.product-catalog-page .language-strip-banner::after {
    content: "";
    position: absolute;
    right: 29%;
    top: 42%;
    width: 112px;
    height: 74px;
    border-radius: 52% 48% 46% 54% / 54% 52% 48% 46%;
    background: linear-gradient(135deg, rgba(245, 142, 71, 0.45) 0%, rgba(242, 112, 87, 0.2) 100%);
    transform: rotate(-34deg);
    pointer-events: none;
    z-index: 0;
}

.product-catalog-page .language-strip-copy {
    position: relative;
    z-index: 1;
    max-width: 72%;
}

.product-catalog-page .language-strip-copy h2 {
    margin: 0 0 0.35rem;
    padding-bottom: 0.25rem;
    color: #ffffff;
    font-size: clamp(1.55rem, 2.1vw, 2.1rem);
    line-height: 1.08;
    letter-spacing: -0.01em;
    max-width: 520px;
}

.product-catalog-page .language-strip-copy p {
    margin: 0;
    color: #ffffff;
    opacity: 0.96;
    font-size: clamp(0.94rem, 1.05vw, 1.08rem);
    line-height: 1.32;
    letter-spacing: -0.005em;
    max-width: 780px;
}

.product-catalog-page .language-strip-btn {
    position: relative;
    z-index: 2;
    text-align: center;
    text-decoration: none;
    line-height: 1;
    border-radius: 4px !important;
    background: #123773 !important;
    border: 1px solid #123773 !important;
    color: #ffffff !important;
    font-weight: 500;
}

.product-catalog-page .language-strip-btn:hover,
.product-catalog-page .language-strip-btn:focus-visible {
    background: #123773 !important;
    color: #ffffff !important;
    opacity: 0.95;
}

@media (max-width: 768px) {
    .product-catalog-page .language-strip-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.9rem;
    }

    .product-catalog-page .language-strip-banner::before {
        right: -22px;
        top: -56px;
        width: 150px;
        height: 150px;
        opacity: 0.42;
    }

    .product-catalog-page .language-strip-banner::after {
        right: 10%;
        top: 56%;
        width: 86px;
        height: 56px;
        opacity: 0.3;
    }

    .product-catalog-page .language-strip-copy {
        max-width: 100%;
    }

    .product-catalog-page .language-strip-copy h2 {
        font-size: 1.72rem;
        line-height: 1.12;
        margin-bottom: 0.55rem;
    }

    .product-catalog-page .language-strip-copy p {
        font-size: 0.82rem;
        line-height: 1.3;
        max-width: 100%;
    }

    .product-catalog-page .language-strip-btn {
        margin-top: 0.3rem;
        align-self: flex-end;
    }
}

.product-tag:hover {
    border-color: #adb5bd;
    color: var(--text-dark, #1c0c4f);
}
