/* ==========================================================================
   VIODUS LUXURY "YENİ ÜRÜNLERİMİZ" CAROUSEL
   5-Column Desktop Viewport, Touch-Swipe & Mouse Drag Enabled
   ========================================================================== */

.viodus-new-products-section {
    position: relative;
    width: 100%;
    background-color: #ffffff;
    padding: 60px 0 65px 0;
    box-sizing: border-box;
    font-family: inherit;
    border-top: 1px solid #edf2f7;
    border-bottom: 1px solid #edf2f7;
    overflow: hidden;
}

.vnp-container {
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 32px;
    box-sizing: border-box;
    position: relative;
}

/* --------------------------------------------------------------------------
   HEADER
   -------------------------------------------------------------------------- */
.vnp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 20px;
    flex-wrap: wrap;
}

.vnp-header-left {
    display: flex;
    align-items: center;
}

.vnp-title {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 26px;
    font-weight: 800;
    line-height: 1.2;
    color: #0f172a;
    letter-spacing: -0.4px;
    margin: 0;
    text-transform: uppercase;
}

.vnp-eyebrow-bar {
    display: inline-block;
    width: 26px;
    height: 3.5px;
    background: linear-gradient(90deg, #c5a059, #e5c05b);
    border-radius: 2px;
    flex-shrink: 0;
}

.vnp-header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.vnp-all-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 700;
    color: #0f172a;
    text-decoration: none !important;
    transition: color 0.2s ease, transform 0.2s ease;
    padding-bottom: 2px;
    border-bottom: 1.5px solid transparent;
}

.vnp-all-link:hover {
    color: #c5a059;
    border-bottom-color: #c5a059;
    transform: translateX(2px);
}

.vnp-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.vnp-arrow {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    color: #1e293b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
}

.vnp-arrow:hover:not(:disabled) {
    background: #0f172a;
    border-color: #0f172a;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.18);
}

.vnp-arrow:active:not(:disabled) {
    transform: scale(0.95);
}

.vnp-arrow:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    border-color: #edf2f7;
}

/* --------------------------------------------------------------------------
   CAROUSEL VIEWPORT & TRACK
   -------------------------------------------------------------------------- */
.vnp-carousel-viewport {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 6px 0 16px 0;
    cursor: grab;
    touch-action: pan-y;
}

.vnp-carousel-viewport.is-dragging {
    cursor: grabbing;
    user-select: none;
    -webkit-user-select: none;
}

.vnp-carousel-track {
    display: flex;
    gap: 20px;
    transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

.vnp-carousel-track.is-dragging {
    transition: none !important;
}

/* --------------------------------------------------------------------------
   RESPONSIVE CARD WIDTHS
   Desktop Constraint: EXACTLY 5 PRODUCTS VISIBLE
   -------------------------------------------------------------------------- */

/* Extra Large & Desktop (>= 1200px): 5 Cards */
@media (min-width: 1200px) {
    .vnp-card {
        flex: 0 0 calc((100% - (4 * 20px)) / 5);
        width: calc((100% - (4 * 20px)) / 5);
        max-width: calc((100% - (4 * 20px)) / 5);
    }
}

/* Medium Desktop / Laptop (992px - 1199px): 4 Cards */
@media (min-width: 992px) and (max-width: 1199px) {
    .vnp-card {
        flex: 0 0 calc((100% - (3 * 18px)) / 4);
        width: calc((100% - (3 * 18px)) / 4);
        max-width: calc((100% - (3 * 18px)) / 4);
    }
    .vnp-carousel-track {
        gap: 18px;
    }
}

/* Tablet (768px - 991px): 3 Cards */
@media (min-width: 768px) and (max-width: 991px) {
    .vnp-card {
        flex: 0 0 calc((100% - (2 * 16px)) / 3);
        width: calc((100% - (2 * 16px)) / 3);
        max-width: calc((100% - (2 * 16px)) / 3);
    }
    .vnp-carousel-track {
        gap: 16px;
    }
}

/* Mobile Screen (480px - 767px): 2 Cards */
@media (min-width: 480px) and (max-width: 767px) {
    .vnp-card {
        flex: 0 0 calc((100% - 14px) / 2);
        width: calc((100% - 14px) / 2);
        max-width: calc((100% - 14px) / 2);
    }
    .vnp-carousel-track {
        gap: 14px;
    }
}

/* Small Mobile (< 480px): 1.3 Cards (Swipe Affordance) */
@media (max-width: 479px) {
    .vnp-card {
        flex: 0 0 calc(100% - 64px);
        width: calc(100% - 64px);
        max-width: calc(100% - 64px);
    }
    .vnp-carousel-track {
        gap: 14px;
    }
    .vnp-container {
        padding: 0 16px;
    }
    .vnp-title {
        font-size: 26px;
    }
}

/* --------------------------------------------------------------------------
   PRODUCT CARD ARCHITECTURE
   -------------------------------------------------------------------------- */
.vnp-card {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.vnp-card-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.28s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.vnp-card:hover .vnp-card-inner {
    transform: translateY(-5px);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
    border-color: #cbd5e1;
}

/* --------------------------------------------------------------------------
   THUMBNAIL WRAPPER (FULL BLEED COVER)
   -------------------------------------------------------------------------- */
.vnp-card-thumb {
    position: relative;
    width: 100%;
    height: 390px;
    background-color: #f1f5f9;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    overflow: hidden;
    border-bottom: 1px solid #eef2f6;
    border-radius: 13px 13px 0 0;
}

.vnp-thumb-link {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    text-decoration: none;
}

.vnp-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
    -webkit-user-drag: none;
}

.vnp-card:hover .vnp-thumb-img {
    transform: scale(1.06);
}

/* --------------------------------------------------------------------------
   CARD CONTENT
   -------------------------------------------------------------------------- */
.vnp-card-content {
    padding: 18px 16px 22px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.vnp-card-cat {
    font-size: 11px;
    font-weight: 700;
    color: #c5a059;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vnp-card-title {
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
    min-height: 38px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.vnp-card-title a {
    color: #0f172a;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.vnp-card-title a:hover {
    color: #c5a059;
}

/* --------------------------------------------------------------------------
   PAGINATION DOTS
   -------------------------------------------------------------------------- */
.vnp-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
}

.vnp-dot {
    width: 10px;
    height: 10px;
    border-radius: 5px;
    background: #e2e8f0;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.vnp-dot.is-active {
    width: 28px;
    background: #c5a059;
}
