.elementor-widget-frontcat_pdf_catalog * {
    box-sizing: border-box;
}

.elementor-widget-frontcat_pdf_catalog .fc-pdf-catalog-wrapper {
    position: relative;
    padding: 2rem 0;
}

/* ========== GRID ========== */
.elementor-widget-frontcat_pdf_catalog .fc-pdf-grid {
    display: grid;
    gap: 1.75rem;
}
.elementor-widget-frontcat_pdf_catalog .fc-pdf-grid-desktop-1 { grid-template-columns: repeat(1, 1fr); }
.elementor-widget-frontcat_pdf_catalog .fc-pdf-grid-desktop-2 { grid-template-columns: repeat(2, 1fr); }
.elementor-widget-frontcat_pdf_catalog .fc-pdf-grid-desktop-3 { grid-template-columns: repeat(3, 1fr); }
.elementor-widget-frontcat_pdf_catalog .fc-pdf-grid-desktop-4 { grid-template-columns: repeat(4, 1fr); }
.elementor-widget-frontcat_pdf_catalog .fc-pdf-grid-desktop-5 { grid-template-columns: repeat(5, 1fr); }
.elementor-widget-frontcat_pdf_catalog .fc-pdf-grid-desktop-6 { grid-template-columns: repeat(6, 1fr); }

@media (max-width: 1024px) {
    .elementor-widget-frontcat_pdf_catalog .fc-pdf-grid-tablet-1 { grid-template-columns: repeat(1, 1fr); }
    .elementor-widget-frontcat_pdf_catalog .fc-pdf-grid-tablet-2 { grid-template-columns: repeat(2, 1fr); }
    .elementor-widget-frontcat_pdf_catalog .fc-pdf-grid-tablet-3 { grid-template-columns: repeat(3, 1fr); }
    .elementor-widget-frontcat_pdf_catalog .fc-pdf-grid-tablet-4 { grid-template-columns: repeat(4, 1fr); }
    .elementor-widget-frontcat_pdf_catalog .fc-pdf-grid-tablet-5 { grid-template-columns: repeat(5, 1fr); }
    .elementor-widget-frontcat_pdf_catalog .fc-pdf-grid-tablet-6 { grid-template-columns: repeat(6, 1fr); }
}

@media (max-width: 767px) {
    .elementor-widget-frontcat_pdf_catalog .fc-pdf-grid { gap: 1.25rem; }
    .elementor-widget-frontcat_pdf_catalog .fc-pdf-grid-mobile-1 { grid-template-columns: repeat(1, 1fr); }
    .elementor-widget-frontcat_pdf_catalog .fc-pdf-grid-mobile-2 { grid-template-columns: repeat(2, 1fr); }
    .elementor-widget-frontcat_pdf_catalog .fc-pdf-grid-mobile-3 { grid-template-columns: repeat(3, 1fr); }
    .elementor-widget-frontcat_pdf_catalog .fc-pdf-grid-mobile-4 { grid-template-columns: repeat(4, 1fr); }
    .elementor-widget-frontcat_pdf_catalog .fc-pdf-grid-mobile-5 { grid-template-columns: repeat(5, 1fr); }
    .elementor-widget-frontcat_pdf_catalog .fc-pdf-grid-mobile-6 { grid-template-columns: repeat(6, 1fr); }
}

/* ========== CARD (Modern Card Style) ========== */
.elementor-widget-frontcat_pdf_catalog .fc-pdf-card {
    position: relative;
    background-color: #fff;
    border-radius: 2.5rem;
    padding: 1rem;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    border: 1px solid #e2e8f0;
    overflow: visible;
}

.elementor-widget-frontcat_pdf_catalog .fc-pdf-card:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: translateY(-0.5rem);
    border-color: rgba(239, 68, 68, 0.1);
    z-index: 20;
}

/* ========== IMAGE WRAPPER ========== */
.elementor-widget-frontcat_pdf_catalog .fc-pdf-card-image-wrapper {
    position: relative;
    aspect-ratio: 4/5;
    border-radius: 2rem;
    overflow: hidden;
    background-color: #f1f5f9;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateZ(0);
}

.elementor-widget-frontcat_pdf_catalog .fc-pdf-card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
}

.elementor-widget-frontcat_pdf_catalog .fc-pdf-card:hover .fc-pdf-card-image-wrapper img {
    transform: scale(1.1);
}

/* ========== OVERLAY ========== */
.elementor-widget-frontcat_pdf_catalog .fc-pdf-card-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(239, 68, 68, 0.05);
    mix-blend-mode: multiply;
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
    z-index: 5;
}

.elementor-widget-frontcat_pdf_catalog .fc-pdf-card:hover .fc-pdf-card-overlay {
    opacity: 1;
}

/* ========== PLACEHOLDER ========== */
.elementor-widget-frontcat_pdf_catalog .fc-pdf-cover-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e2e8f0 0%, #f1f5f9 100%);
    color: #94a3b8;
}

.elementor-widget-frontcat_pdf_catalog .fc-pdf-cover-initial {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    color: #64748b;
}

.elementor-widget-frontcat_pdf_catalog .fc-pdf-cover-icon {
    opacity: 0.5;
}

/* ========== ACTIONS (Botao Ver Catalogo) ========== */
.elementor-widget-frontcat_pdf_catalog .fc-pdf-card-actions {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    transform: translateY(120%);
    transition: transform 0.5s ease-out;
    z-index: 10;
    display: flex;
    justify-content: center;
}

.elementor-widget-frontcat_pdf_catalog .fc-pdf-card:hover .fc-pdf-card-actions {
    transform: translateY(0);
}

.elementor-widget-frontcat_pdf_catalog .fc-pdf-card-button {
    width: 100%;
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(4px);
    color: white;
    padding: 0.75rem 0;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 0.875rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: background-color 0.2s;
    text-decoration: none;
    border: none;
    cursor: pointer;
    line-height: 1.5;
}

.elementor-widget-frontcat_pdf_catalog .fc-pdf-card-button:hover {
    background-color: #E83242;
    color: white;
}

/* ========== CONTENT ========== */
.elementor-widget-frontcat_pdf_catalog .fc-pdf-card-content {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    padding-bottom: 0.5rem;
}

.elementor-widget-frontcat_pdf_catalog .fc-pdf-card-category {
    font-size: 0.75rem;
    font-weight: 700;
    color: #1e40af;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.25rem;
    display: block;
    line-height: 1.2;
}

.elementor-widget-frontcat_pdf_catalog .fc-pdf-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.25;
    color: #0f172a;
    margin-top: 0;
    margin-bottom: 0.5rem;
    transition: color 0.2s;
}

.elementor-widget-frontcat_pdf_catalog .fc-pdf-card:hover .fc-pdf-card-title {
    color: #E83242;
}

.elementor-widget-frontcat_pdf_catalog .fc-pdf-card-meta {
    font-size: 0.875rem;
    color: #6b7280;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
    margin-top: 0.5rem;
}

/* ========== SLIDER (FrontCatSlider) ========== */
.elementor-widget-frontcat_pdf_catalog .frontcat-slider-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 1.5rem 0;
}

.elementor-widget-frontcat_pdf_catalog .frontcat-slider-wrapper *,
.elementor-widget-frontcat_pdf_catalog .frontcat-slider-wrapper *::before,
.elementor-widget-frontcat_pdf_catalog .frontcat-slider-wrapper *::after {
    box-sizing: border-box;
}

.elementor-widget-frontcat_pdf_catalog .frontcat-slider-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.elementor-widget-frontcat_pdf_catalog .frontcat-slider-track.is-dragging {
    transition: none !important;
    cursor: grabbing;
}

.elementor-widget-frontcat_pdf_catalog .frontcat-slider-track.is-dragging .fc-pdf-card {
    pointer-events: none;
}

.elementor-widget-frontcat_pdf_catalog .frontcat-slider-slide {
    flex: 0 0 auto;
    box-sizing: border-box;
    padding: 0.75rem;
}

.elementor-widget-frontcat_pdf_catalog .frontcat-slider-slide .fc-pdf-card {
    height: 100%;
}

/* ========== SLIDER NAVIGATION ========== */
.elementor-widget-frontcat_pdf_catalog .frontcat-slider-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.elementor-widget-frontcat_pdf_catalog .frontcat-slider-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #e2e8f0;
    background: #fff;
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
    outline: none;
    padding: 0;
    line-height: 1;
}

.elementor-widget-frontcat_pdf_catalog .frontcat-slider-btn:hover:not(:disabled) {
    background: #E83242;
    color: #fff;
    border-color: #E83242;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(232, 50, 66, 0.3);
}

.elementor-widget-frontcat_pdf_catalog .frontcat-slider-btn:active:not(:disabled) {
    transform: scale(0.95);
}

.elementor-widget-frontcat_pdf_catalog .frontcat-slider-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    box-shadow: none;
    background: #fff;
    color: #94a3b8;
    border-color: #e2e8f0;
}

.elementor-widget-frontcat_pdf_catalog .frontcat-slider-btn svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2.5;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    display: block;
}

/* ========== SLIDER DOTS ========== */
.elementor-widget-frontcat_pdf_catalog .frontcat-slider-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.elementor-widget-frontcat_pdf_catalog .frontcat-slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cbd5e1;
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    padding: 0;
    outline: none;
    display: block;
}

.elementor-widget-frontcat_pdf_catalog .frontcat-slider-dot:hover {
    background: #94a3b8;
    transform: scale(1.3);
}

.elementor-widget-frontcat_pdf_catalog .frontcat-slider-dot.active {
    width: 28px;
    border-radius: 9999px;
    background: #E83242;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .elementor-widget-frontcat_pdf_catalog .fc-pdf-card-title {
        font-size: 1.1rem;
    }

    .elementor-widget-frontcat_pdf_catalog .frontcat-slider-btn {
        width: 40px;
        height: 40px;
    }

    .elementor-widget-frontcat_pdf_catalog .frontcat-slider-btn svg {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 767px) {
    .elementor-widget-frontcat_pdf_catalog .fc-pdf-card {
        border-radius: 1.75rem;
        padding: 0.75rem;
    }

    .elementor-widget-frontcat_pdf_catalog .fc-pdf-card-image-wrapper {
        border-radius: 1.25rem;
        margin-bottom: 1rem;
    }

    .elementor-widget-frontcat_pdf_catalog .fc-pdf-card-title {
        font-size: 1rem;
    }

    .elementor-widget-frontcat_pdf_catalog .fc-pdf-card-meta {
        font-size: 0.8125rem;
    }

    .elementor-widget-frontcat_pdf_catalog .fc-pdf-card-button {
        font-size: 0.8125rem;
        padding: 0.625rem 0;
    }
}

@media (max-width: 480px) {
    .elementor-widget-frontcat_pdf_catalog .frontcat-slider-wrapper {
        padding: 1rem 0;
    }

    .elementor-widget-frontcat_pdf_catalog .frontcat-slider-slide {
        padding: 0.25rem;
    }

    .elementor-widget-frontcat_pdf_catalog .frontcat-slider-navigation {
        gap: 0.75rem;
        margin-top: 1rem;
    }
}
