/* =========================================================
   Types of Ecommerce Websites
   Unique Prefix: ecom-dev-types-
   ========================================================= */

.ecom-dev-types-section {
    position: relative;
    padding: 90px 0;
    background: #f8fafc;
    overflow: hidden;
}

.ecom-dev-types-section::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    top: -180px;
    right: -140px;
    border-radius: 50%;
    background: rgba(13, 110, 253, 0.06);
    pointer-events: none;
}

.ecom-dev-types-section::after {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    bottom: -160px;
    left: -120px;
    border-radius: 50%;
    background: rgba(13, 110, 253, 0.045);
    pointer-events: none;
}

.ecom-dev-types-section .container {
    position: relative;
    z-index: 2;
}


/* =========================================================
   Header
   ========================================================= */

.ecom-dev-types-header {
    max-width: 850px;
    margin: 0 auto 55px;
}

.ecom-dev-types-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 17px;
    margin-bottom: 16px;
    border: 1px solid rgba(13, 110, 253, 0.14);
    border-radius: 50px;
    background: rgba(13, 110, 253, 0.07);
    color: #0d6efd;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.2px;
    line-height: 1.3;
}

.ecom-dev-types-heading {
    margin: 0 0 17px;
    color: #111827;
    font-size: clamp(30px, 4vw, 46px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.8px;
}

.ecom-dev-types-description {
    max-width: 760px;
    margin: 0 auto;
    color: #64748b;
    font-size: 16px;
    line-height: 1.8;
}


/* =========================================================
   Grid
   ========================================================= */

.ecom-dev-types-grid {
    margin-top: 0;
}


/* =========================================================
   Card
   ========================================================= */

.ecom-dev-types-card {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.055);
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}

.ecom-dev-types-card:hover {
    transform: translateY(-8px);
    border-color: rgba(13, 110, 253, 0.25);
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.11);
}


/* =========================================================
   Card Media
   ========================================================= */

.ecom-dev-types-card-media {
    position: relative;
    min-height: 145px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 20px;
    background: linear-gradient(
        135deg,
        #f8fbff 0%,
        #eef5ff 100%
    );
    overflow: hidden;
}

.ecom-dev-types-card-media::after {
    content: "";
    position: absolute;
    width: 150px;
    height: 150px;
    right: -65px;
    top: -75px;
    border-radius: 50%;
    background: rgba(13, 110, 253, 0.08);
    transition: transform 0.4s ease;
}

.ecom-dev-types-card:hover .ecom-dev-types-card-media::after {
    transform: scale(1.35);
}


/* =========================================================
   Icon
   ========================================================= */

.ecom-dev-types-icon {
    position: relative;
    z-index: 2;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: #ffffff;
    color: #0d6efd;
    font-size: 28px;
    box-shadow: 0 12px 28px rgba(13, 110, 253, 0.13);
    transition:
        transform 0.35s ease,
        background 0.35s ease,
        color 0.35s ease;
}

.ecom-dev-types-card:hover .ecom-dev-types-icon {
    transform: translateY(-4px) scale(1.05);
    background: #0d6efd;
    color: #ffffff;
}


/* =========================================================
   Image
   ========================================================= */

.ecom-dev-types-image {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 145px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}


/* =========================================================
   Card Body
   ========================================================= */

.ecom-dev-types-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 27px 25px 25px;
}

.ecom-dev-types-card-title {
    margin: 0 0 12px;
    color: #111827;
    font-size: 19px;
    font-weight: 750;
    line-height: 1.35;
    transition: color 0.3s ease;
}

.ecom-dev-types-card:hover .ecom-dev-types-card-title {
    color: #0d6efd;
}

.ecom-dev-types-card-description {
    margin: 0 0 22px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.75;
}


/* =========================================================
   Link
   ========================================================= */

.ecom-dev-types-card-link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    color: #0d6efd;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition:
        color 0.25s ease,
        gap 0.25s ease;
}

.ecom-dev-types-card-link i {
    font-size: 12px;
    transition: transform 0.25s ease;
}

.ecom-dev-types-card-link:hover {
    color: #084298;
    gap: 11px;
}

.ecom-dev-types-card-link:hover i {
    transform: translateX(3px);
}


/* =========================================================
   Tablet
   ========================================================= */

@media (max-width: 991.98px) {

    .ecom-dev-types-section {
        padding: 75px 0;
    }

    .ecom-dev-types-header {
        margin-bottom: 42px;
    }

    .ecom-dev-types-card-media {
        min-height: 135px;
    }

    .ecom-dev-types-card-body {
        padding: 24px 21px 22px;
    }

    .ecom-dev-types-card-title {
        font-size: 18px;
    }
}


/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 767.98px) {

    .ecom-dev-types-section {
        padding: 60px 0;
    }

    .ecom-dev-types-header {
        margin-bottom: 35px;
    }

    .ecom-dev-types-badge {
        font-size: 10px;
        letter-spacing: 0.9px;
        padding: 7px 13px;
    }

    .ecom-dev-types-heading {
        font-size: 30px;
        letter-spacing: -0.4px;
    }

    .ecom-dev-types-description {
        font-size: 15px;
        line-height: 1.7;
    }

    .ecom-dev-types-card {
        border-radius: 17px;
    }

    .ecom-dev-types-card-media {
        min-height: 125px;
        padding: 23px 18px;
    }

    .ecom-dev-types-icon {
        width: 64px;
        height: 64px;
        border-radius: 16px;
        font-size: 24px;
    }

    .ecom-dev-types-card-body {
        padding: 22px 20px 21px;
    }

    .ecom-dev-types-card-title {
        font-size: 18px;
    }

    .ecom-dev-types-card-description {
        font-size: 14px;
        line-height: 1.7;
    }
}


/* =========================================================
   Small Mobile
   ========================================================= */

@media (max-width: 575.98px) {

    .ecom-dev-types-section {
        padding: 50px 0;
    }

    .ecom-dev-types-heading {
        font-size: 27px;
    }

    .ecom-dev-types-card-body {
        padding: 20px 18px;
    }
}


/* =========================================================
   Accessibility
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .ecom-dev-types-card,
    .ecom-dev-types-icon,
    .ecom-dev-types-card-link,
    .ecom-dev-types-card-link i,
    .ecom-dev-types-card-media::after {
        transition: none;
    }
}