/* =============================================
   Featured Products Section - Vortice 2027
   Faithful reproduction of Tailwind reference design
   ============================================= */

/* ---- Hard Reset: override Storefront defaults ---- */
.vortice-products-section,
.vortice-products-section *,
.vortice-products-section h1,
.vortice-products-section h2,
.vortice-products-section h3,
.vortice-products-section p,
.vortice-products-section a,
.vortice-products-section span,
.vortice-products-section div {
    font-family: 'Fira Sans', sans-serif !important;
    box-sizing: border-box;
}

.vortice-products-section h2,
.vortice-products-section h3,
.vortice-products-section p {
    padding: 0 !important;
}

/* Icon reset - prevent Storefront from breaking FA icons */
.vortice-products-section i.fa-solid,
.vortice-products-section i.fa-regular,
.vortice-products-section i.fas,
.vortice-products-section i.far {
    font-family: 'Font Awesome 6 Free' !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    display: inline-block !important;
    line-height: 1 !important;
}

.vortice-products-section i.fa-solid {
    font-weight: 900 !important;
}

/* Constants/Vars */
:root {
    --vp-color-green: #00963E;
    --vp-color-dark: #009b4c;
    --vp-color-black: #0f172a;
    --vp-color-gray: #f8fafc;
    --vp-color-slate-50: #f8fafc;
    --vp-color-slate-100: #f1f5f9;
    --vp-color-slate-200: #e2e8f0;
    --vp-color-slate-400: #94a3b8;
    --vp-color-slate-500: #64748b;
    --vp-color-slate-900: #0f172a;
}

/* ---- Section ---- */
.vortice-products-section {
    position: relative;
    padding: 96px 0 !important; /* py-24 */
    background-color: var(--vp-color-gray) !important;
    overflow: hidden;
    margin: 0 !important;
}

/* Abstract Background Elements */
.vortice-products-bg-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--vp-color-slate-200), transparent);
}

.vortice-products-bg-blob-1 {
    position: absolute;
    top: -160px;
    right: -160px;
    width: 600px;
    height: 600px;
    background: rgba(49, 190, 103, 0.05);
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: 0;
}

.vortice-products-bg-blob-2 {
    position: absolute;
    top: 160px;
    left: 80px;
    width: 300px;
    height: 300px;
    background: rgba(219, 234, 254, 0.3);
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

/* ---- Container ---- */
.vortice-products-container {
    max-width: 1400px;
    margin: 0 auto !important;
    padding: 0 24px !important;
    position: relative;
    z-index: 10;
}

/* ---- Header ---- */
.vortice-products-header {
    text-align: center !important;
    max-width: 768px;
    margin: 0 auto 80px auto !important; /* mb-20 */
}

.vortice-products-title {
    font-size: 48px !important; /* text-5xl */
    line-height: 1 !important;
    font-weight: 300 !important;
    color: var(--vp-color-slate-900) !important;
    margin: 0 0 24px 0 !important; /* mb-6 */
    letter-spacing: -0.025em !important;
    text-transform: none !important;
}

@media (min-width: 1024px) {
    .vortice-products-title {
        font-size: 60px !important; /* lg:text-6xl */
    }
}

.vortice-products-title {
    word-spacing: 0.15em;
}

.vortice-products-title strong {
    font-weight: 600 !important;
    background: linear-gradient(135deg, #00963E 0%, #31be67 40%, #00963E 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.vortice-products-desc {
    font-size: 20px !important; /* text-xl */
    color: var(--vp-color-slate-500) !important;
    font-weight: 300 !important;
    margin: 0 !important;
    line-height: 1.6 !important;
}

/* ---- Grid ---- */
.vortice-products-grid {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 32px !important; /* gap-8 */
}

@media (min-width: 768px) {
    .vortice-products-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .vortice-products-grid {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }
}

/* ---- Product Card ---- */
.vortice-product-card {
    position: relative;
    background: #ffffff !important;
    border-radius: 2rem !important;
    padding: 24px !important; /* p-6 */
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
    border: 1px solid var(--vp-color-slate-100) !important;
    overflow: hidden;
    transition: all 0.5s ease;
}

.vortice-product-card:hover {
    box-shadow: 0 25px 50px -12px rgba(49, 190, 103, 0.1) !important;
    transform: translateY(-8px);
}

/* Card Shine Effect */
.vortice-product-card-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: skewX(-25deg);
    transition: 0.5s;
    pointer-events: none;
    z-index: 20;
}

.vortice-product-card:hover .vortice-product-card-shine {
    left: 150%;
    transition: 0.7s ease-in-out;
}

/* Image Container */
.vortice-product-card-img-container {
    position: relative;
    height: 256px !important; /* h-64 */
    margin-bottom: 32px !important; /* mb-8 */
    display: flex !important;
    align-items: center;
    justify-content: center;
    background-color: #ffffff !important;
    border-radius: 1.5rem !important;
    transition: background-color 0.5s ease;
    overflow: hidden;
}

.vortice-product-card:hover .vortice-product-card-img-container {
    background-color: #ffffff !important;
}

/* Link inside image container */
.vortice-product-card-img-container a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none !important;
}

.vortice-product-card-img {
    max-height: 270px !important;
    width: auto !important;
    max-width: 100% !important;
    object-fit: contain !important;
    mix-blend-mode: multiply;
    transition: transform 0.7s ease;
    filter: none !important;
}

.vortice-product-card:hover .vortice-product-card-img {
    transform: scale(1.1);
}

/* Content */
.vortice-product-card-content {
    position: relative;
    z-index: 10;
}

.vortice-product-card-title {
    font-size: 24px !important; /* text-2xl */
    font-weight: 700 !important;
    color: var(--vp-color-slate-900) !important;
    margin: 0 0 8px 0 !important; /* mb-2 */
    line-height: 1.25 !important;
    transition: color 0.3s ease;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

.vortice-product-card:hover .vortice-product-card-title {
    color: var(--vp-color-green) !important;
}

.vortice-product-card-excerpt {
    font-size: 18px !important; /* match site body text */
    color: var(--vp-color-slate-500) !important;
    font-weight: 300 !important;
    margin: 0 0 24px 0 !important; /* mb-6 */
    line-height: 1.6 !important;
}

/* Footer / Action Row */
.vortice-product-card-footer {
    display: flex !important;
    align-items: center;
    justify-content: center !important;
    border-top: 1px solid var(--vp-color-slate-100) !important;
    padding-top: 24px !important; /* pt-6 */
    margin: 0 !important;
}

/* Link */
.vortice-product-card-link {
    font-size: 14px !important; /* text-sm */
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    color: var(--vp-color-slate-900) !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
    line-height: 1 !important;
}

.vortice-product-card-link i.fa-solid {
    font-size: 14px !important;
    transform: rotate(-45deg);
    transition: transform 0.3s ease;
    color: inherit !important;
}

.vortice-product-card-link:hover {
    color: var(--vp-color-green) !important;
    text-decoration: none !important;
}

.vortice-product-card-link:hover i.fa-solid {
    transform: rotate(0deg);
}

/* Plus Button - hidden */
.vortice-product-card-plus {
    display: none !important;
}


/* ============================================
   Special Card (Last Item - "Odkryj Więcej")
   ============================================ */
.vortice-product-special-card {
    position: relative;
    background: linear-gradient(to bottom right, var(--vp-color-green), var(--vp-color-dark)) !important;
    border-radius: 2rem !important;
    padding: 32px !important; /* p-8 */
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    color: #ffffff !important;
    box-shadow: 0 20px 25px -5px rgba(49, 190, 103, 0.3), 0 8px 10px -6px rgba(49, 190, 103, 0.3) !important;
    transition: transform 0.5s ease;
    cursor: pointer;
    min-height: 450px !important;
    height: 100%;
    border: none !important;
}

.vortice-product-special-card:hover {
    transform: scale(1.02);
}

/* Special Card Backgrounds */
.vortice-special-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://www.transparenttextures.com/patterns/carbon-fibre.png');
    opacity: 0.1;
    z-index: 1;
    pointer-events: none;
}

.vortice-special-blob-1 {
    position: absolute;
    top: 0;
    right: 0;
    width: 256px;
    height: 256px;
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 50% !important;
    filter: blur(48px);
    transform: translate(50%, -50%);
    transition: transform 0.7s ease;
    z-index: 2;
    pointer-events: none;
}

.vortice-special-blob-2 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 256px;
    height: 256px;
    background: rgba(0, 0, 0, 0.1) !important;
    border-radius: 50% !important;
    filter: blur(48px);
    transform: translate(-50%, 50%);
    transition: transform 0.7s ease;
    z-index: 2;
    pointer-events: none;
}

.vortice-product-special-card:hover .vortice-special-blob-1 {
    transform: translate(50%, -50%) scale(1.5);
}

.vortice-product-special-card:hover .vortice-special-blob-2 {
    transform: translate(-50%, 50%) scale(1.5);
}

/* Special Content */
.vortice-special-content {
    position: relative;
    z-index: 10;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* Icon Circle */
.vortice-special-icon-circle {
    width: 80px !important;
    height: 80px !important;
    min-width: 80px !important;
    min-height: 80px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin: 0 0 32px 0 !important; /* mb-8 */
    padding: 0 !important;
    transition: transform 0.5s ease;
}

.vortice-product-special-card:hover .vortice-special-icon-circle {
    transform: rotate(90deg);
}

/* Arrow icon inside circle */
.vortice-special-icon-circle i.fa-solid {
    font-size: 36px !important; /* text-4xl */
    color: #ffffff !important;
    line-height: 1 !important;
    width: auto !important;
    height: auto !important;
}

/* Title */
.vortice-special-title {
    font-size: 36px !important; /* text-4xl */
    font-weight: 300 !important;
    color: #ffffff !important;
    margin: 0 0 8px 0 !important; /* mb-2 */
    line-height: 1.25 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

.vortice-special-title strong {
    font-weight: 700 !important;
    color: #ffffff !important;
}

/* Description */
.vortice-special-desc {
    font-size: 18px !important; /* text-lg */
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 300 !important;
    margin: 0 0 40px 0 !important; /* mb-10 */
    line-height: 1.5 !important;
    max-width: 320px;
}

/* Button */
.vortice-special-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 16px 32px !important; /* px-8 py-4 */
    background: #ffffff !important;
    color: var(--vp-color-dark) !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    border-radius: 9999px !important;
    text-decoration: none !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease;
    font-size: 14px !important;
    line-height: 1 !important;
    border: none !important;
}

.vortice-special-btn:hover {
    background: var(--vp-color-black) !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

/* ---- Responsive ---- */
@media (max-width: 767px) {
    .vortice-products-section {
        padding: 64px 0 !important;
    }

    .vortice-products-header {
        margin-bottom: 48px !important;
    }

    .vortice-products-title {
        font-size: 36px !important;
    }

    .vortice-products-desc {
        font-size: 18px !important;
    }

    .vortice-product-card-img-container {
        height: 200px !important;
    }

    .vortice-product-special-card {
        min-height: 350px !important;
    }

    .vortice-special-title {
        font-size: 30px !important;
    }

    .vortice-special-desc {
        font-size: 16px !important;
        margin-bottom: 32px !important;
    }
}

/* =============================================
   "Najlepsze Pomysły na Wentylację" Ideas Section
   Matching Featured Products header style
   ============================================= */

.vortice-ideas-section {
    position: relative;
    padding: 96px 0 !important;
    background-color: #ffffff !important;
    overflow: hidden;
    margin: 0 !important;
    font-family: 'Fira Sans', sans-serif !important;
}

.vortice-ideas-section *,
.vortice-ideas-section h2,
.vortice-ideas-section p {
    font-family: 'Fira Sans', sans-serif !important;
    box-sizing: border-box;
}

.vortice-ideas-container {
    max-width: 1400px;
    margin: 0 auto !important;
    padding: 0 24px !important;
    position: relative;
    z-index: 10;
}

.vortice-ideas-header {
    text-align: center !important;
    max-width: 768px;
    margin: 0 auto 48px auto !important;
}

.vortice-ideas-title {
    font-size: 48px !important;
    line-height: 1.1 !important;
    font-weight: 300 !important;
    color: var(--vp-color-slate-900) !important;
    margin: 0 !important;
    letter-spacing: -0.025em !important;
    text-transform: none !important;
    padding: 0 !important;
    word-spacing: 0.15em;
}

@media (min-width: 1024px) {
    .vortice-ideas-title {
        font-size: 60px !important;
    }
}

.vortice-ideas-title strong {
    font-weight: 600 !important;
    background: linear-gradient(135deg, #00963E 0%, #31be67 40%, #00963E 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.vortice-ideas-content {
    max-width: 900px;
    margin: 0 auto !important;
    text-align: center;
    font-size: 18px !important;
    color: var(--vp-color-slate-500) !important;
    line-height: 1.7 !important;
    font-weight: 300 !important;
}

.vortice-ideas-content p {
    font-size: 18px !important;
    color: var(--vp-color-slate-500) !important;
    line-height: 1.7 !important;
    font-weight: 300 !important;
    margin: 0 0 16px 0 !important;
    padding: 0 !important;
}

@media (max-width: 767px) {
    .vortice-ideas-section {
        padding: 64px 0 !important;
    }

    .vortice-ideas-title {
        font-size: 36px !important;
    }

    .vortice-ideas-content p {
        font-size: 16px !important;
    }
}
