/* ==========================================================================
   Seller Detail Page Styles
   Plugin: Nop.Plugin.Misc.CustomCode
   ========================================================================== */

/* -- Hero Section -- */
.seller-detail-hero {
    position: relative;
    width: 100%;
    min-height: 420px;
    background-image: url('../img/seller-detail/hero-bg.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.seller-detail-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0, 30, 50, 0.85) 0%, rgba(0, 30, 50, 0.6) 50%, rgba(0, 30, 50, 0.2) 100%);
    z-index: 1;
}

.seller-detail-hero .hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    padding: 60px 40px 60px 60px;
    color: #fff;
}

.seller-detail-hero .hero-content h1 {
    font-family: var(--title-font, 'Montserrat'), sans-serif;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 16px 0;
    color: #fff;
}

.seller-detail-hero .hero-content p {
    font-family: var(--font-family, 'Roboto'), sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 28px 0;
}

.seller-detail-hero .hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.seller-detail-hero .btn-start-selling {
    display: inline-flex;
    align-items: center;
    padding: 12px 28px;
    background-color: #E8594F;
    color: #fff;
    font-family: var(--font-family, 'Roboto'), sans-serif;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s;
}

.seller-detail-hero .btn-start-selling:hover {
    background-color: #d04a42;
}

.seller-detail-hero .btn-view-journey {
    display: inline-flex;
    align-items: center;
    padding: 12px 28px;
    background-color: transparent;
    color: #fff;
    font-family: var(--font-family, 'Roboto'), sans-serif;
    font-size: 15px;
    font-weight: 600;
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: border-color 0.2s, background-color 0.2s;
}

.seller-detail-hero .btn-view-journey:hover {
    border-color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

/* -- Trade Simplified Section -- */
.seller-trade-simplified {
    text-align: center;
    padding: 60px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.seller-trade-simplified h2 {
    font-family: var(--title-font, 'Montserrat'), sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #1a2332;
    margin: 0 0 40px 0;
}

.seller-trade-simplified .trade-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.seller-trade-simplified .trade-column h3 {
    font-family: var(--title-font, 'Montserrat'), sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #E8594F;
    margin: 0 0 10px 0;
}

.seller-trade-simplified .trade-column p {
    font-family: var(--font-family, 'Roboto'), sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #1a2332;
    line-height: 1.5;
    margin: 0;
}

/* -- Feature Cards Section -- */
.seller-features {
    padding: 0 40px 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.seller-features .features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.seller-features .feature-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 32px 28px;
    background: #F8F9FA;
    border: none;
    border-radius: 12px;
    transition: box-shadow 0.2s, background-color 0.2s;
}

.seller-features .feature-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.seller-features .feature-card .feature-icon {
    flex-shrink: 0;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.seller-features .feature-card .feature-icon img {
    height: 36px;
    width: auto;
}

.seller-features .feature-card .feature-icon.circle-bg {
    width: 64px;
    height: 64px;
}

.seller-features .feature-card .feature-icon.circle-bg img {
    width: 64px;
    height: 64px;
}

.seller-features .feature-card .feature-text h4 {
    font-family: var(--font-family, 'Roboto'), sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #1a2332;
    margin: 0 0 6px 0;
}

.seller-features .feature-card .feature-text p {
    font-family: var(--font-family, 'Roboto'), sans-serif;
    font-size: 13px;
    color: #5a6a7a;
    line-height: 1.5;
    margin: 0;
}

/* -- How It Works Section -- */
.seller-how-it-works {
    background: linear-gradient(264.42deg, #F9FAFA 0%, #ECEFF2 98.78%);
    padding: 58px 40px 58px;
}

.seller-how-it-works .how-it-works-inner {
    max-width: 1501px;
    margin: 0 auto;
}

.seller-how-it-works .section-header {
    text-align: center;
    margin-bottom: 53px;
    background: transparent !important;
    padding: 0 !important;
    color: inherit !important;
}

.seller-how-it-works .section-header h2 {
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 32px;
    line-height: 130%;
    text-align: center;
    letter-spacing: -0.05em;
    color: #14181F;
    margin: 0 0 10px 0;
}

.seller-how-it-works .section-header p {
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 130%;
    text-align: center;
    letter-spacing: -0.02em;
    color: #14181F;
    margin: 0;
}

.seller-how-it-works .steps-grid {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 28px;
    justify-content: center;
}

.seller-how-it-works .step-item {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 18px 26px 26px;
    text-align: left;
    width: 320px;
    min-height: 250px;
    flex: none;
    position: relative;
    box-sizing: border-box;
}

.seller-how-it-works .step-number {
    width: 38px;
    height: 38px;
    background: #FF4735;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 800;
    font-size: 20px;
    line-height: 130%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 20px 0;
}

.seller-how-it-works .step-item h4 {
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 18px;
    line-height: 28px;
    color: #14181F;
    margin: 0 0 12px 0;
}

.seller-how-it-works .step-item p {
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 30px;
    letter-spacing: -0.2px;
    color: #14181F;
    margin: 0;
}

/* -- Featured Categories Section -- */
.seller-featured-categories {
    background-color: #fff;
    padding: 60px 40px;
}

.seller-featured-categories .featured-categories-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.seller-featured-categories .section-header {
    margin-bottom: 32px;
    background: transparent !important;
    padding: 0 !important;
    color: inherit !important;
}

.seller-featured-categories .section-header h2 {
    font-family: var(--title-font, 'Montserrat'), sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #1a2332;
    margin: 0 0 8px 0;
}

.seller-featured-categories .section-header p {
    font-family: var(--font-family, 'Roboto'), sans-serif;
    font-size: 14px;
    color: #5a6a7a;
    margin: 0;
}

.seller-featured-categories .view-more-link {
    display: block;
    text-align: right;
    margin-top: 16px;
    font-family: var(--font-family, 'Roboto'), sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--primery-blue, #006F9E);
    text-decoration: none;
}

.seller-featured-categories .view-more-link:hover {
    text-decoration: underline;
}

/* Custom Static Categories Grid */
.custom-categories-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: space-between;
}

.custom-category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    flex: 1 1 calc(11% - 16px);
    min-width: 100px;
    cursor: pointer;
}

.custom-category-icon {
    width: 120px;
    height: 120px;
    background-color: #EAF2F6;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.custom-category-item:hover .custom-category-icon {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.custom-category-icon img {
    max-width: 80%;
    max-height: 80%;
    width: auto;
    height: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.custom-category-item span {
    font-family: var(--font-family, 'Roboto'), sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #102B3F;
    line-height: 1.4;
}

/* -- Seller Dashboard Section -- */
/* Zero out ALL margins on the dashboard section and its neighbors */
.seller-topic-page .page-body>.seller-dashboard-section,
.seller-topic-page .page-body>section.seller-dashboard-section {
    margin: 0 !important;
}

/* Remove bottom margin of preceding section so no gap above dashboard */
.seller-topic-page .page-body>.seller-featured-categories {
    margin-bottom: 0 !important;
}

/* Remove top margin of following section (benefits) */
.seller-topic-page .page-body>.seller-benefits {
    margin-top: 0 !important;
}

.seller-dashboard-section {
    position: relative;
    background-color: #f0f3f6;
    padding: 80px 0;
    overflow: hidden;
    /* Break out of any container — removes white gaps on left, right, top and bottom */
    width: 100vw;
    margin-left: calc(50% - 50vw) !important;
    box-sizing: border-box;
}

.seller-dashboard-section .dashboard-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: left center;
    background-repeat: no-repeat;
    z-index: 1;
}

.seller-dashboard-section .dashboard-inner {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-end;
    /* push content to the right */
}

.seller-dashboard-section .dashboard-content {
    width: 55%;
    padding: 0 60px 0 48px;
    position: relative;
    z-index: 5;
}

.seller-dashboard-section .dashboard-content h2 {
    font-family: var(--title-font, 'Montserrat'), sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #1a2332;
    margin: 0 0 14px 0;
    line-height: 1.3;
}

.seller-dashboard-section .dashboard-content>p {
    font-family: var(--font-family, 'Roboto'), sans-serif;
    font-size: 15px;
    color: #4B5563;
    line-height: 1.6;
    margin: 0 0 40px 0;
}

.seller-dashboard-section .dashboard-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.seller-dashboard-section .dashboard-feature-block {
    background: #fff;
    border-radius: 14px;
    padding: 28px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.seller-dashboard-section .dashboard-feature-block .feature-block-text {
    flex: 1;
}

.seller-dashboard-section .dashboard-feature-block .feature-block-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.seller-dashboard-section .dashboard-feature-block .feature-block-icon img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
}

.seller-dashboard-section .dashboard-feature-block h4 {
    font-family: var(--font-family, 'Roboto'), sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #1a2332;
    margin: 0 0 12px 0;
}

.seller-dashboard-section .dashboard-feature-block ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.seller-dashboard-section .dashboard-feature-block ul li {
    font-family: var(--font-family, 'Roboto'), sans-serif;
    font-size: 14px;
    color: #5a6a7a;
    line-height: 1.5;
    padding-left: 18px;
    position: relative;
}

.seller-dashboard-section .dashboard-feature-block ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background-color: #1a2332;
    border-radius: 50%;
}

/* -- Benefits Section -- */
.seller-benefits {
    padding: 60px 40px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.seller-benefits .section-header {
    margin-bottom: 40px;
    background: transparent !important;
    padding: 0 !important;
    color: inherit !important;
}

.seller-benefits .section-header h2 {
    font-family: var(--title-font, 'Montserrat'), sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #1a2332;
    margin: 0 0 12px 0;
}

.seller-benefits .section-header p {
    font-family: var(--font-family, 'Roboto'), sans-serif;
    font-size: 14px;
    color: #5a6a7a;
    line-height: 1.5;
    margin: 0 auto;
    max-width: 700px;
}

.seller-benefits .benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    text-align: center;
}

.seller-benefits .benefit-card {
    padding: 32px 24px;
}

.seller-benefits .benefit-card .benefit-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.seller-benefits .benefit-card .benefit-icon img {
    width: 80px;
    height: 80px;
}

.seller-benefits .benefit-card h4 {
    font-family: var(--font-family, 'Roboto'), sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #1a2332;
    margin: 0 0 8px 0;
}

.seller-benefits .benefit-card p {
    font-family: var(--font-family, 'Roboto'), sans-serif;
    font-size: 13px;
    color: #5a6a7a;
    line-height: 1.5;
    margin: 0;
}

/* -- FAQ Section -- */
.seller-faq-section {
    padding: 60px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.seller-faq-section .section-header {
    margin-bottom: 32px;
    background: transparent !important;
    padding: 0 !important;
    color: inherit !important;
}

.seller-faq-section .section-header h2 {
    font-family: var(--title-font, 'Montserrat'), sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #1a2332;
    margin: 0 0 8px 0;
}

.seller-faq-section .section-header p {
    font-family: var(--font-family, 'Roboto'), sans-serif;
    font-size: 14px;
    color: #5a6a7a;
    margin: 0;
}

.seller-faq-section .faq-layout {
    display: grid;
    grid-template-columns: 1fr 480px;
    /* Widened the banner side to match Figma proportion */
    gap: 40px;
    align-items: start;
}

.seller-faq-section .faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    /* Gap between FAQ items */
}

.seller-faq-section .faq-item {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    /* Match floating card style */
    padding: 0 24px;
}

.seller-faq-section .faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    cursor: pointer;
    font-family: var(--font-family, 'Roboto'), sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #1a2332;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
}

.seller-faq-section .faq-question::after {
    content: '+';
    font-size: 20px;
    font-weight: 400;
    color: #5a6a7a;
    flex-shrink: 0;
    margin-left: 12px;
    transition: transform 0.2s;
}

.seller-faq-section .faq-item.active .faq-question::after {
    content: '-';
}

.seller-faq-section .faq-answer {
    display: none;
    padding: 0 0 24px 0;
    font-family: var(--font-family, 'Roboto'), sans-serif;
    font-size: 14px;
    color: #5a6a7a;
    line-height: 1.6;
}

.seller-faq-section .faq-item.active .faq-answer {
    display: block;
}

.seller-faq-section .faq-cta {
    background: linear-gradient(80.1deg, #ECEFF2 18.54%, #E7EEF8 48.76%, #E3EEFB 79.23%, #6C97AF 146.08%, #004A69 165.44%);
    border-radius: 20px;
    padding: 40px 180px 40px 40px;
    position: relative;
    overflow: hidden;
}

/* Background circle for icon */
.seller-faq-section .faq-cta::after {
    content: '';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 120px;
    height: 120px;
    background: rgba(245, 247, 250, 0.35);
    border-radius: 50%;
    z-index: 0;
    display: block;
}

/* Chat support icon on top of circle */
.seller-faq-section .faq-cta::before {
    content: '';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 120px;
    height: 120px;
    background-image: url('../img/seller-detail/icon-chat-support.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 48px 48px;
    z-index: 1;
    display: block;
}

.seller-faq-section .faq-cta h3 {
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 24px;
    line-height: 130%;
    letter-spacing: -0.02em;
    color: #002D40;
    margin: 0 0 16px 0;
    position: relative;
    z-index: 1;
}

.seller-faq-section .faq-cta p {
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 30px;
    letter-spacing: -0.2px;
    color: #002D40;
    margin: 0 0 32px 0;
    position: relative;
    z-index: 1;
}

.seller-faq-section .btn-book-call {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 8px 20px;
    gap: 10px;
    width: fit-content;
    height: 42px;
    background: #FF4735;
    border-radius: 8px;

    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 16px;
    line-height: 130%;
    color: #FFFFFF;
    text-decoration: none;
    transition: background-color 0.2s;
    position: relative;
    z-index: 1;
}

.seller-faq-section .btn-book-call:hover {
    background-color: #e03625;
}

/* -- Responsive -- */
@media (max-width: 1400px) {
    .seller-how-it-works .steps-grid {
        flex-wrap: wrap;
    }
}

@media (max-width: 1024px) {
    .seller-detail-hero .hero-content h1 {
        font-size: 32px;
    }

    .seller-trade-simplified .trade-columns {
        gap: 24px;
    }

    .seller-features .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .seller-how-it-works .steps-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .seller-dashboard-section .dashboard-inner {
        display: grid;
        grid-template-columns: 1fr;
    }

    .seller-dashboard-section .dashboard-content {
        width: 60%;
        padding: 40px 32px;
    }

    .seller-dashboard-section .dashboard-feature-block {
        padding: 20px 20px;
    }

    .seller-faq-section .faq-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .seller-detail-hero {
        min-height: 360px;
    }

    .seller-detail-hero .hero-content {
        padding: 40px 24px;
    }

    .seller-detail-hero .hero-content h1 {
        font-size: 28px;
    }

    .seller-trade-simplified {
        padding: 40px 24px;
    }

    .seller-trade-simplified .trade-columns {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .seller-features {
        padding: 0 24px 40px;
    }

    .seller-features .features-grid {
        grid-template-columns: 1fr;
    }

    .seller-how-it-works {
        padding: 40px 24px;
    }

    .seller-how-it-works .steps-grid {
        flex-direction: column;
        align-items: stretch;
    }

    .seller-how-it-works .step-item {
        width: 100%;
        min-height: unset;
    }

    .seller-featured-categories {
        padding: 40px 24px;
    }

    /* Categories: 3 per row on mobile */
    .custom-categories-grid {
        gap: 12px;
        justify-content: flex-start;
    }

    .custom-category-item {
        flex: 0 0 calc(33.33% - 8px);
        min-width: unset;
    }

    .custom-category-icon {
        width: 88px;
        height: 88px;
        border-radius: 16px;
    }

    .seller-dashboard-section {
        padding: 40px 0;
        width: 100vw;
        margin-left: calc(50% - 50vw) !important;
    }

    /* Hide the left background photo on mobile */
    .seller-dashboard-section .dashboard-image {
        display: none;
    }

    .seller-dashboard-section .dashboard-content {
        width: 100%;
        padding: 32px 20px;
    }

    .seller-dashboard-section .dashboard-features {
        gap: 16px;
    }

    .seller-dashboard-section .dashboard-feature-block {
        padding: 20px 16px;
        gap: 12px;
    }

    .seller-dashboard-section .dashboard-feature-block .feature-block-icon img {
        width: 60px;
        height: 60px;
    }

    .seller-benefits {
        padding: 40px 24px;
    }

    .seller-benefits .benefits-grid {
        grid-template-columns: 1fr;
    }

    .seller-faq-section {
        padding: 40px 24px;
    }
}

@media (max-width: 480px) {
    .seller-detail-hero .hero-content h1 {
        font-size: 24px;
    }

    /* Categories: 2 per row on small mobile */
    .custom-category-item {
        flex: 0 0 calc(50% - 6px);
    }

    .custom-category-icon {
        width: 72px;
        height: 72px;
    }

    .seller-detail-hero .hero-buttons {
        flex-direction: column;
    }

    .seller-detail-hero .hero-buttons a {
        text-align: center;
    }
}