.md-section {
    width: 100%;
    background: #0f172a;
    position: relative;
    overflow: hidden;
    background-image: url("../../images/most-demand-left.avif"), url("../../images/most-demand.avif");
    background-size: 50% 100%, 50% 100%;
    background-position: left center, right center;
    background-repeat: no-repeat;
    padding: 40px 16px 48px;
}

.md-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.74), rgba(15, 23, 42, 0.62));
    z-index: 0;
}

.md-inner {
    max-width: 1120px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.md-header {
    text-align: center;
    margin-bottom: 24px;
}

.md-title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #f9fafb;
}

.md-subtitle {
    margin: 6px 0 0;
    font-size: 14px;
    color: #9ca3af;
}

.md-slider {
    position: relative;
    overflow: hidden;
}

.md-track {
    display: flex;
    gap: 16px;
    transition: transform 0.4s ease;
}

.md-card {
    min-width: 260px;
    max-width: 260px;
    background: #020617;
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.9);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(148, 163, 184, 0.5);
}

.md-card-image-wrap {
    width: 100%;
    height: 180px;
    background: #0b1220;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.md-card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.md-card-body {
    padding: 14px 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.md-pill {
    align-self: flex-start;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 500;
    background: rgba(59, 130, 246, 0.12);
    color: #bfdbfe;
}

.md-name {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #e5e7eb;
}

.md-pricing {
    margin-top: 4px;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.md-price {
    font-size: 18px;
    font-weight: 700;
    color: #22c55e;
}

.md-mrp {
    font-size: 13px;
    color: #f97373;
    text-decoration: line-through;
}

.md-cta {
    margin-top: 10px;
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 16px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #f9fafb;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 0;
    transition: box-shadow 0.18s ease, transform 0.14s ease, color 0.14s ease;
}

.md-cta i {
    margin-left: 5px;
}

.md-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid #64748b;
    background: rgba(15, 23, 42, 0.9);
    color: #e5e7eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
    z-index: 2;
}

.md-nav-prev { left: -4px; }
.md-nav-next { right: -4px; }

@media (max-width: 768px) {
    .md-section { padding-inline: 10px; }
    .md-card { min-width: 220px; max-width: 220px; }
    .md-card-image-wrap { height: 160px; }
    .md-nav { display: none; }
}
