/* Marketplace Services section. Builds on style.css (titlebar, btn-main, pricing-block, hero-data). */

.ms-section{padding: 60px 0;}
.ms-section .container-fluid{padding: 0 40px;}
.ms-section-alt{background: var(--lightgray);}

/* **** Hero **** */
.ms-hero .hero-row{padding: 20px 0 0;}
.ms-hero .hero-data h1{font-size: 60px;line-height: 72px;margin: 0 0 24px;}
.ms-hero .hero-data p{margin: 0 0 32px;color: var(--txt-font3);}
.ms-cta-row{display: flex;flex-wrap: wrap;gap: 16px;align-items: center;}
.ms-cta-row .btn-main{margin: 0;}
.btn-outline-main{
    padding: 16px 24px;
    background: var(--whiteColor);
    border-radius: 12px;
    border: 1px solid #D5D7DA;
    box-shadow: 0px 1px 2px rgba(10, 13, 18, 0.05);
    font-weight: 600;
    font-size: 18px;
    line-height: 28px;
    color: var(--txt-font2);
    display: flex;
    align-items: center;
    width: fit-content;
}
.btn-outline-main:hover{border-color: var(--primary);color: var(--primary);}
.ms-hero-note{margin: 24px 0 0;font-size: 14px;line-height: 20px;color: var(--txt-font);}

.ms-hero-panel{
    background: var(--gradient);
    border: 1px solid var(--borderColor);
    border-radius: 24px;
    padding: 32px;
    max-width: 560px;
    margin: 0 0 0 auto;
}
.ms-flow{display: flex;flex-direction: column;gap: 16px;}
.ms-flow-row{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: var(--whiteColor);
    border: 1px solid var(--borderColor);
    border-radius: 16px;
    padding: 16px 20px;
    box-shadow: 0px 4px 6px -2px rgba(10, 13, 18, 0.03);
}
.ms-flow-row span.ms-flow-text{font-weight: 500;font-size: 16px;line-height: 24px;color: var(--txt-font2);}
.ms-flow-row .ms-flow-state{font-weight: 500;font-size: 14px;line-height: 20px;color: #027A48;background: #ECFDF3;border-radius: 16px;padding: 2px 10px;white-space: nowrap;}
.ms-flow-hub{
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    line-height: 20px;
    color: var(--primary);
    background: var(--lightback);
    border: 1px dashed #D6BBFB;
    border-radius: 12px;
    padding: 10px 16px;
}

/* **** Marketplace wordmarks. Text marks only; swap for official logo files if you hold the brand assets. **** */
.ms-brand{
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    font-size: 18px;
    line-height: 24px;
    letter-spacing: -0.01em;
    border-radius: 8px;
    padding: 6px 12px;
    white-space: nowrap;
}
.ms-brand-amazon{background: #232F3E;color: #FFFFFF;border-bottom: 3px solid #FF9900;text-transform: lowercase;}
.ms-brand-flipkart{background: #2874F0;color: #FFE500;font-style: italic;}
.ms-brand-shopify{background: #F0F7EA;color: #5E8E3E;border: 1px solid #95BF47;}
.ms-brand-synkron{background: var(--lightback);color: var(--secondary);border: 1px solid #E9D7FE;}
.ms-brand-sm{font-size: 14px;line-height: 20px;padding: 3px 8px;border-radius: 6px;}
.ms-brand-row{display: flex;flex-wrap: wrap;gap: 8px;align-items: center;}

/* **** Service cards **** */
.ms-grid{display: grid;grid-template-columns: repeat(4, 1fr);gap: 24px;}
.ms-card{
    background: var(--whiteColor);
    border: 1px solid var(--borderColor);
    border-radius: 16px;
    padding: 24px;
    height: 100%;
    transition: all .2s ease-in-out;
}
.ms-card:hover{border-color: #D6BBFB;box-shadow: 0px 12px 16px -4px rgba(10, 13, 18, 0.08), 0px 4px 6px -2px rgba(10, 13, 18, 0.03);}
.ms-card-icon{
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--lightback);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 20px;
    font-weight: 700;
    font-size: 18px;
}
.ms-card h3{margin: 0 0 8px;font-weight: 600;font-size: 18px;line-height: 28px;color: var(--titleColor);}
.ms-card p{margin: 0;font-weight: 400;font-size: 16px;line-height: 24px;color: var(--txt-font);}
.ms-card a.ms-card-link{display: inline-block;margin: 16px 0 0;font-weight: 600;font-size: 16px;line-height: 24px;color: var(--secondary);}
.ms-card a.ms-card-link:hover{color: var(--titleColor);}

/* **** Steps **** */
.ms-steps{display: grid;grid-template-columns: repeat(4, 1fr);gap: 24px;counter-reset: ms-step;}
.ms-step{position: relative;padding: 24px;background: var(--whiteColor);border: 1px solid var(--borderColor);border-radius: 16px;}
.ms-step:before{
    counter-increment: ms-step;
    content: counter(ms-step);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--whiteColor);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    margin: 0 0 16px;
}
.ms-step h3{margin: 0 0 8px;font-weight: 600;font-size: 18px;line-height: 28px;color: var(--titleColor);}
.ms-step p{margin: 0;font-size: 16px;line-height: 24px;color: var(--txt-font);}

/* **** Package cards (extends .pricing-block) **** */
.ms-packages .row{row-gap: 32px;}
.ms-packages .pricing-block{display: flex;flex-direction: column;border: 1px solid var(--borderColor);}
.ms-packages .pricing-block.best-seller{border-color: var(--primary);box-shadow: 0px 20px 24px -4px rgba(127, 86, 217, 0.18), 0px 8px 8px -4px rgba(127, 86, 217, 0.06);}
.ms-packages .pricing-list{flex: 1;}
.ms-packages .pricing-head h6{min-height: 48px;}
.ms-packages .pricing-rw h2 span{margin: 0 0 0 8px;}
.ms-packages .ms-brand-row{margin: 0 0 12px;}
.ms-recommended{
    display: inline-block;
    margin: 0 0 12px;
    padding: 2px 10px;
    border-radius: 16px;
    background: var(--primary);
    color: var(--whiteColor);
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
}
.ms-price-note{margin: 4px 0 0;font-size: 14px;line-height: 20px;color: var(--txt-font);}

/* **** Add-on tables **** */
.ms-addons{display: grid;grid-template-columns: repeat(3, 1fr);gap: 24px;align-items: start;}
.ms-addon-card{background: var(--whiteColor);border: 1px solid var(--borderColor);border-radius: 16px;overflow: hidden;}
.ms-addon-card h3{margin: 0;padding: 20px 24px 4px;font-weight: 600;font-size: 20px;line-height: 30px;color: var(--titleColor);}
.ms-addon-card > p{margin: 0;padding: 0 24px 16px;font-size: 14px;line-height: 20px;color: var(--txt-font);}
.ms-addon-table{width: 100%;border-collapse: collapse;}
.ms-addon-table th{
    padding: 12px 24px;
    background: var(--lightgray);
    border-top: 1px solid var(--borderColor);
    border-bottom: 1px solid var(--borderColor);
    font-weight: 500;
    font-size: 12px;
    line-height: 18px;
    color: var(--txt-font);
    text-transform: uppercase;
    text-align: left;
}
.ms-addon-table td{padding: 14px 24px;border-bottom: 1px solid var(--borderColor);font-size: 16px;line-height: 24px;color: var(--txt-font2);}
.ms-addon-table tr:last-child td{border-bottom: none;}
.ms-addon-table th:last-child,.ms-addon-table td:last-child{text-align: right;white-space: nowrap;font-weight: 600;}
.ms-addon-table td small{display: block;font-size: 14px;line-height: 20px;color: var(--txt-font);font-weight: 400;}
.ms-addon-note{display: block;margin-top: 2px;font-size: 12px;line-height: 18px;color: var(--txt-font);}
.ms-disclaimer{margin: 24px auto 0;max-width: 1040px;text-align: center;font-size: 14px;line-height: 20px;color: var(--txt-font);}

/* **** Banner **** */
.ms-banner{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    background: var(--lightback);
    border: 1px solid #E9D7FE;
    border-radius: 24px;
    padding: 32px 40px;
}
.ms-banner h2{margin: 0 0 8px;font-weight: 700;font-size: 30px;line-height: 38px;color: var(--titleColor);}
.ms-banner p{margin: 0;font-size: 18px;line-height: 28px;color: var(--txt-font3);max-width: 820px;}
.ms-banner .btn-main{margin: 0;white-space: nowrap;}

/* **** Onboarding detail page **** */
.ms-detail{display: grid;grid-template-columns: minmax(0, 1fr) 420px;gap: 40px;align-items: start;}
.ms-detail .pricing-block{border: 1px solid var(--primary);position: sticky;top: 100px;}
.ms-check-list{margin: 0;padding: 0;display: grid;grid-template-columns: repeat(2, 1fr);gap: 16px 32px;}
.ms-check-list li{position: relative;padding: 0 0 0 30px;font-size: 16px;line-height: 24px;color: var(--txt-font3);}
.ms-check-list li:after{position: absolute;content: '';width: 24px;height: 24px;background: url('../images/chack-ic2.svg') 0 0 no-repeat;background-size: 100% 100%;top: 0;left: 0;}
.ms-detail h2{margin: 0 0 24px;font-weight: 700;font-size: 30px;line-height: 38px;color: var(--titleColor);}
.ms-detail-block{margin: 0 0 48px;}

@media(max-width:1200px){
    .ms-grid,.ms-steps{grid-template-columns: repeat(2, 1fr);}
    .ms-addons{grid-template-columns: 1fr;}
    .ms-hero .hero-data h1{font-size: 48px;line-height: 60px;}
    .ms-detail{grid-template-columns: 1fr;}
    .ms-detail .pricing-block{position: relative;top: 0;}
}
@media(max-width:767px){
    .ms-section{padding: 40px 0;}
    .ms-section .container-fluid{padding: 0 16px;}
    .ms-hero .hero-data h1{font-size: 34px;line-height: 44px;}
    .ms-hero-panel{margin: 32px 0 0;padding: 20px;max-width: 100%;}
    .ms-grid,.ms-steps,.ms-check-list{grid-template-columns: 1fr;}
    .ms-cta-row .btn-main,.ms-cta-row .btn-outline-main{width: 100%;justify-content: center;}
    .ms-banner{padding: 24px 20px;}
    .ms-banner h2{font-size: 24px;line-height: 32px;}
    .ms-banner .btn-main{width: 100%;justify-content: center;}
    .ms-addon-table th,.ms-addon-table td{padding: 12px 16px;}
    .ms-addon-card h3{padding: 16px 16px 4px;}
    .ms-addon-card > p{padding: 0 16px 12px;}
    .ms-flow-row{flex-wrap: wrap;}
}
