/* 5D Eğitim Setleri Vitrini — Woodmart uyumlu, izole stiller */
.wd5des-section,
.wd5des-section * {
    box-sizing: border-box;
}

.wd5des-section {
    --wd5des-primary: #123a72;
    --wd5des-button: #176fc4;
    --wd5des-text: #68778e;
    --wd5des-border: #e5ebf2;
    --wd5des-bg: #fff;
    --wd5des-gap: 16px;

    position: relative;
    width: 100%;
    padding: 42px 0;
    overflow: hidden;
    background: var(--wd5des-bg);
    font-family: inherit;
}

.wd5des-section .wd5des-container {
    width: 100%;
    max-width: 1380px;
    margin: 0 auto;
    padding-right: 20px !important;
    padding-left: 20px !important;
}

.wd5des-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 24px;
    align-items: stretch;
    min-width: 0;
}

.wd5des-intro {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 12px 22px 12px 4px;
}

.wd5des-title {
    max-width: 250px;
    margin: 0 0 13px !important;
    padding: 0 !important;
    color: var(--wd5des-primary) !important;
    font-family: inherit !important;
    font-size: clamp(27px, 2.2vw, 38px) !important;
    font-weight: 800 !important;
    line-height: 1.07 !important;
    letter-spacing: -.8px;
}

.wd5des-description {
    max-width: 235px;
    margin: 0 0 22px !important;
    padding: 0 !important;
    color: var(--wd5des-text) !important;
    font-family: inherit !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    line-height: 1.65 !important;
}

.wd5des-main-button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    align-self: flex-start;
    min-width: 225px;
    min-height: 50px;
    padding: 12px 20px;
    color: #fff !important;
    background: var(--wd5des-button);
    border: 1px solid var(--wd5des-button);
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(23, 111, 196, .16);
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none !important;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.wd5des-main-button:hover {
    color: #fff !important;
    background: #105ca7;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(23, 111, 196, .23);
}

.wd5des-main-button svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.wd5des-products-wrap {
    position: relative;
    min-width: 0;
    padding-right: 42px;
}

.wd5des-track {
    display: flex;
    gap: var(--wd5des-gap);
    width: 100%;
    min-width: 0;
    padding: 4px 2px 10px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
}

.wd5des-track::-webkit-scrollbar {
    display: none;
}

.wd5des-card {
    position: relative;
    display: flex;
    flex: 0 0 var(--wd5des-card-desktop);
    flex-direction: column;
    min-width: 0;
    min-height: 282px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--wd5des-border);
    border-radius: 15px;
    box-shadow: 0 5px 22px rgba(25, 55, 91, .04);
    scroll-snap-align: start;
    scroll-snap-stop: always;
    transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease;
}

.wd5des-card:hover {
    transform: translateY(-4px);
    border-color: #cfdae7;
    box-shadow: 0 15px 34px rgba(25, 55, 91, .1);
}

.wd5des-badge {
    position: absolute;
    z-index: 3;
    top: 10px;
    left: 10px;
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 4px 10px;
    color: #fff;
    border-radius: 20px;
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
}

.wd5des-badge--popular { background: #32a663; }
.wd5des-badge--new { background: #ef7a22; }
.wd5des-badge--recommended { background: #3473c9; }
.wd5des-badge--custom { background: #7954b7; }

.wd5des-image-link {
    display: block;
    padding: 18px 14px 5px;
    text-decoration: none !important;
}

.wd5des-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 155px;
    overflow: hidden;
}

.wd5des-image img {
    display: block;
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 150px !important;
    margin: 0 auto !important;
    object-fit: contain;
    transition: transform .25s ease;
}

.wd5des-card:hover .wd5des-image img {
    transform: scale(1.035);
}

.wd5des-card-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
    padding: 4px 16px 14px;
}

.wd5des-product-title {
    min-height: 42px;
    margin: 0 0 12px !important;
    padding: 0 !important;
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.45 !important;
}

.wd5des-product-title a {
    display: -webkit-box;
    overflow: hidden;
    color: var(--wd5des-primary) !important;
    text-decoration: none !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.wd5des-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
}

.wd5des-price {
    min-width: 0;
    color: var(--wd5des-primary);
    font-family: inherit;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.25;
    white-space: nowrap;
}

.wd5des-price del {
    display: block;
    color: #9aa6b7;
    font-size: 11px;
    font-weight: 500;
    opacity: 1;
}

.wd5des-price ins {
    color: #dc4a4a;
    background: none;
    text-decoration: none;
}

.wd5des-actions {
    display: flex;
    align-items: stretch;
    flex: 0 0 auto;
}

.wd5des-view-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    min-height: 39px;
    padding: 8px 13px;
    color: var(--wd5des-primary) !important;
    background: #fff;
    border: 1px solid #dfe6ef;
    border-radius: 9px 0 0 9px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none !important;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}

.wd5des-view-button:hover {
    color: #fff !important;
    background: var(--wd5des-button);
    border-color: var(--wd5des-button);
}

.wd5des-cart-button,
.wd5des-section a.wd5des-cart-button.button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 42px !important;
    min-width: 42px !important;
    height: 39px !important;
    min-height: 39px !important;
    margin: 0 !important;
    padding: 0 !important;
    color: var(--wd5des-primary) !important;
    background: #fff !important;
    border: 1px solid #dfe6ef !important;
    border-left: 0 !important;
    border-radius: 0 9px 9px 0 !important;
    box-shadow: none !important;
    line-height: 1 !important;
    text-decoration: none !important;
}

.wd5des-cart-button:hover,
.wd5des-section a.wd5des-cart-button.button:hover {
    color: #fff !important;
    background: var(--wd5des-button) !important;
    border-color: var(--wd5des-button) !important;
}

.wd5des-cart-button svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.wd5des-nav {
    all: unset;
    position: absolute;
    z-index: 5;
    top: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px !important;
    height: 32px !important;
    color: #7c8ba1;
    background: #fff;
    border: 1px solid #e7edf4;
    border-radius: 24px;
    box-shadow: 0 8px 24px rgba(27, 57, 91, .11);
    cursor: pointer;
    transform: translateY(-50%);
    transition: color .2s ease, transform .2s ease, opacity .2s ease, box-shadow .2s ease;
}

.wd5des-nav:hover {
    color: var(--wd5des-button);
    transform: translateY(-50%) scale(1.04);
    box-shadow: 0 12px 28px rgba(27, 57, 91, .16);
}

.wd5des-nav:disabled {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.wd5des-nav svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.wd5des-nav--prev { left: -20px; }
.wd5des-nav--next { right: 0; }

.wd5des-empty {
    padding: 18px;
    background: #fff8e5;
    border: 1px solid #f0d795;
    border-radius: 8px;
}

@media (max-width: 1199px) {
    .wd5des-track {
        --wd5des-gap: 14px;
    }

    .wd5des-layout {
        grid-template-columns: 240px minmax(0, 1fr);
    }

    .wd5des-card {
        flex-basis: var(--wd5des-card-tablet);
    }
}

@media (max-width: 991px) {
    .wd5des-section {
        padding: 34px 0;
    }

    .wd5des-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .wd5des-intro {
        align-items: center;
        padding: 0 16px;
        text-align: center;
    }

    .wd5des-title,
    .wd5des-description {
        max-width: 620px;
    }

    .wd5des-main-button {
        align-self: center;
    }

    .wd5des-products-wrap {
        padding: 0 35px;
    }

    .wd5des-nav--prev { left: 0; }
    .wd5des-nav--next { right: 0; }
}

@media (max-width: 767px) {
    .wd5des-section .wd5des-container {
        padding-right: 10px !important;
        padding-left: 10px !important;
    }

    .wd5des-title {
        font-size: 27px !important;
    }

    .wd5des-description {
        margin-bottom: 17px !important;
        font-size: 13px !important;
    }

    .wd5des-main-button {
        min-width: 220px;
        min-height: 46px;
        font-size: 13px;
    }

    .wd5des-products-wrap {
        padding: 0;
    }

    .wd5des-track {
        --wd5des-gap: 10px;
        padding-right: 2px;
        padding-left: 2px;
    }

    .wd5des-card {
        flex-basis: var(--wd5des-card-mobile);
        min-height: 252px;
        border-radius: 12px;
    }

    .wd5des-image-link {
        padding: 14px 8px 3px;
    }

    .wd5des-image {
        height: 125px;
    }

    .wd5des-image img {
        max-height: 120px !important;
    }

    .wd5des-card-body {
        padding: 3px 9px 10px;
    }

    .wd5des-product-title {
        min-height: 38px;
        margin-bottom: 8px !important;
        font-size: 11.5px !important;
        line-height: 1.4 !important;
    }

    .wd5des-card-footer {
        display: block;
    }

    .wd5des-price {
        min-height: 20px;
        margin-bottom: 7px;
        font-size: 13px;
    }

    .wd5des-actions {
        width: 100%;
    }

    .wd5des-view-button {
        flex: 1 1 auto;
        min-width: 0;
        min-height: 36px;
        padding: 7px 8px;
        font-size: 11px;
    }

    .wd5des-cart-button,
    .wd5des-section a.wd5des-cart-button.button {
        width: 38px !important;
        min-width: 38px !important;
        height: 36px !important;
        min-height: 36px !important;
    }

    .wd5des-nav {
        display: none;
    }

    .wd5des-badge {
        top: 7px;
        left: 7px;
        min-height: 21px;
        padding: 3px 7px;
        font-size: 9px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wd5des-track {
        scroll-behavior: auto;
    }

    .wd5des-card,
    .wd5des-image img,
    .wd5des-nav,
    .wd5des-main-button {
        transition: none;
    }
}
