/* =========================================
   SOUKPRO HOME PAGE SECTIONS
   ========================================= */

/* --- Shared section scaffold --- */
.sp-section {
    padding: var(--sp-space-3xl) 0;
}

.sp-section__header {
    text-align: center;
    margin-bottom: var(--sp-space-2xl);
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.sp-section__title {
    font-family: var(--sp-font-heading);
    font-size: var(--sp-text-3xl);
    font-weight: var(--sp-font-weight-bold);
    color: var(--sp-color-text);
    margin-bottom: var(--sp-space-xs);
}

.sp-section__subtitle {
    font-size: var(--sp-text-base);
    color: var(--sp-color-text-light);
}

/* Alternate background for sections */
.sp-section:nth-child(even) .sp-container {
    position: relative;
}

.sp-blog,
.sp-suppliers,
.sp-trust {
    background: var(--sp-color-bg-alt);
}

/* =========================================
   HERO
   ========================================= */
.sp-hero {
    position: relative;
    background: linear-gradient(135deg, var(--sp-color-primary) 0%, var(--sp-color-primary-dark) 100%);
    color: var(--sp-color-white);
    padding: var(--sp-space-3xl) 0;
    overflow: hidden;
}

.sp-hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.sp-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
}

.sp-hero__inner {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

.sp-hero__title {
    font-family: var(--sp-font-heading);
    font-size: var(--sp-text-4xl);
    font-weight: var(--sp-font-weight-bold);
    color: var(--sp-color-white);
    margin-bottom: var(--sp-space-md);
    line-height: 1.3;
}

.sp-hero__subtitle {
    font-size: var(--sp-text-lg);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--sp-space-xl);
}

.sp-hero__search {
    max-width: 560px;
    margin: 0 auto var(--sp-space-xl);
}

.sp-hero__search-wrap {
    position: relative;
}

.sp-hero__search-input {
    width: 100%;
    padding: var(--sp-space-md) var(--sp-space-3xl) var(--sp-space-md) var(--sp-space-3xl);
    border: none;
    border-radius: var(--sp-radius-full);
    font-family: var(--sp-font-body);
    font-size: var(--sp-text-base);
    color: var(--sp-color-text);
    box-shadow: var(--sp-shadow-lg);
    outline: none;
}

.sp-hero__search-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: var(--sp-space-sm);
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: var(--sp-color-primary);
    color: var(--sp-color-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--sp-transition-fast);
}

.sp-hero__search-btn:hover {
    background: var(--sp-color-primary-dark);
}

.sp-hero__actions {
    display: flex;
    justify-content: center;
    gap: var(--sp-space-md);
    flex-wrap: wrap;
    margin-bottom: var(--sp-space-2xl);
}

.sp-btn--hero-outline {
    border-color: rgba(255, 255, 255, 0.6);
    color: var(--sp-color-white);
}

.sp-btn--hero-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--sp-color-white);
    color: var(--sp-color-white);
}

.sp-hero__stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-space-xl);
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--sp-radius-xl);
    padding: var(--sp-space-lg);
    backdrop-filter: blur(4px);
}

.sp-hero__stat {
    text-align: center;
}

.sp-hero__stat-number {
    display: block;
    font-size: var(--sp-text-2xl);
    font-weight: var(--sp-font-weight-bold);
    color: var(--sp-color-white);
}

.sp-hero__stat-label {
    font-size: var(--sp-text-sm);
    color: rgba(255, 255, 255, 0.85);
}

.sp-hero__stat-divider {
    width: 1px;
    height: 36px;
    background: rgba(255, 255, 255, 0.25);
}

/* =========================================
   CATEGORIES
   ========================================= */
.sp-categories {
    background: var(--sp-color-white);
}

.sp-categories__grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: var(--sp-space-md);
}

.sp-category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-space-sm);
    min-width: 0;
    padding: var(--sp-space-lg) var(--sp-space-md);
    background: var(--sp-color-white);
    border: 1px solid var(--sp-color-border-light);
    border-radius: var(--sp-radius-xl);
    text-align: center;
    text-decoration: none;
    transition: all var(--sp-transition-fast);
}

.sp-category-card:hover {
    border-color: var(--sp-color-primary);
    box-shadow: var(--sp-shadow-md);
    transform: translateY(-2px);
}

.sp-category-card__icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--sp-color-primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.sp-category-card__icon .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
    color: var(--sp-color-primary);
}

.sp-category-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sp-category-card__name {
    font-weight: var(--sp-font-weight-semibold);
    color: var(--sp-color-text);
    font-size: var(--sp-text-sm);
    overflow-wrap: anywhere;
    line-height: 1.4;
}

.sp-category-card__count {
    font-size: var(--sp-text-xs);
    color: var(--sp-color-text-muted);
}

.sp-categories__footer {
    text-align: center;
    margin-top: var(--sp-space-xl);
}

/* =========================================
   PRODUCTS
   ========================================= */
.sp-products {
    background: var(--sp-color-bg-alt);
}

.sp-section__header--with-action {
    text-align: right;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 100%;
}

.sp-products .sp-section__header {
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: right;
    margin-bottom: var(--sp-space-xl);
}

.sp-products .sp-section__header .sp-btn {
    white-space: nowrap;
}

.sp-products__grid {
    display: grid;
    grid-template-columns: repeat(var(--sp-products-cols-desktop, 4), minmax(0, 1fr));
    gap: var(--sp-space-lg);
}

/* The YW path nests a second grid (<ul class="products">) inside this one;
   promoting the ul to display:contents makes its cards direct grid items,
   so they fill all columns instead of collapsing into the first track. */
.sp-products__grid > ul.products {
    display: contents;
}

.sp-product-card {
    background: var(--sp-color-white);
    border: 1px solid var(--sp-color-border-light);
    border-radius: var(--sp-radius-xl);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow var(--sp-transition-fast), transform var(--sp-transition-fast);
}

.sp-product-card:hover {
    box-shadow: var(--sp-shadow-lg);
    transform: translateY(-2px);
}

.sp-product-card__thumb-link {
    display: block;
    aspect-ratio: 1/1;
    overflow: hidden;
    background: var(--sp-color-bg-alt);
}

.sp-product-card__thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--sp-transition-base);
}

.sp-product-card:hover .sp-product-card__thumb {
    transform: scale(1.04);
}

.sp-product-card__body {
    padding: var(--sp-space-md);
    display: flex;
    flex-direction: column;
    gap: var(--sp-space-xs);
    flex: 1;
}

.sp-product-card__title {
    font-family: var(--sp-font-heading);
    font-size: var(--sp-text-base);
    font-weight: var(--sp-font-weight-semibold);
    margin: 0;
}

.sp-product-card__title a {
    color: var(--sp-color-text);
}

.sp-product-card__title a:hover {
    color: var(--sp-color-primary);
}

.sp-product-card__supplier {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: var(--sp-text-xs);
    color: var(--sp-color-text-muted);
}

.sp-product-card__supplier .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.sp-product-card__rating {
    display: flex;
    align-items: center;
    gap: var(--sp-space-xs);
}

.sp-product-card__rating-count {
    font-size: var(--sp-text-xs);
    color: var(--sp-color-text-muted);
}

.sp-product-card__price {
    font-size: var(--sp-text-lg);
    font-weight: var(--sp-font-weight-bold);
    color: var(--sp-color-primary);
}

.sp-product-card__min-qty {
    font-size: var(--sp-text-xs);
    color: var(--sp-color-text-muted);
}

.sp-product-card__actions {
    margin-top: auto;
    padding-top: var(--sp-space-sm);
    display: flex;
    flex-direction: column;
    gap: var(--sp-space-xs);
}

/* =========================================
   SUPPLIERS (homepage grid)
   ========================================= */
.sp-suppliers {
    background: var(--sp-color-bg-alt);
}

.sp-suppliers .sp-section__header {
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: right;
}

.sp-suppliers__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sp-space-lg);
}

.sp-supplier-card {
    background: var(--sp-color-white);
    border: 1px solid var(--sp-color-border-light);
    border-radius: var(--sp-radius-xl);
    overflow: hidden;
    transition: box-shadow var(--sp-transition-fast), transform var(--sp-transition-fast);
}

.sp-supplier-card:hover {
    box-shadow: var(--sp-shadow-lg);
    transform: translateY(-2px);
}

.sp-supplier-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: var(--sp-color-text);
}

.sp-supplier-card__avatar {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--sp-color-bg-alt);
}

.sp-supplier-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sp-supplier-card__verified {
    position: absolute;
    top: var(--sp-space-sm);
    left: var(--sp-space-sm);
}

.sp-supplier-card__body {
    padding: var(--sp-space-md);
    display: flex;
    flex-direction: column;
    gap: var(--sp-space-xs);
    flex: 1;
}

.sp-supplier-card__name {
    font-family: var(--sp-font-heading);
    font-size: var(--sp-text-lg);
    font-weight: var(--sp-font-weight-bold);
    margin: 0;
}

.sp-supplier-card__rating {
    display: flex;
    align-items: center;
    gap: var(--sp-space-xs);
}

.sp-supplier-card__rating-count {
    font-size: var(--sp-text-xs);
    color: var(--sp-color-text-muted);
}

.sp-supplier-card__meta {
    display: flex;
    gap: var(--sp-space-sm);
    font-size: var(--sp-text-xs);
    color: var(--sp-color-text-muted);
    flex-wrap: wrap;
}

.sp-supplier-card__view {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: var(--sp-space-sm) var(--sp-space-md);
    border-top: 1px solid var(--sp-color-border-light);
    font-size: var(--sp-text-sm);
    font-weight: var(--sp-font-weight-semibold);
    color: var(--sp-color-primary);
}

/* =========================================
   HOW IT WORKS
   ========================================= */
.sp-how-it-works {
    background: var(--sp-color-white);
}

.sp-how-it-works__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sp-space-xl);
}

.sp-how-it-works__step {
    text-align: center;
    position: relative;
    padding: var(--sp-space-xl) var(--sp-space-md);
}

.sp-how-it-works__num {
    position: absolute;
    top: 0;
    right: 50%;
    transform: translateX(50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--sp-color-primary);
    color: var(--sp-color-white);
    font-weight: var(--sp-font-weight-bold);
    font-size: var(--sp-text-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sp-how-it-works__icon {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: var(--sp-color-primary-bg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--sp-space-md);
}

.sp-how-it-works__icon .dashicons {
    font-size: 36px;
    width: 36px;
    height: 36px;
    color: var(--sp-color-primary);
}

.sp-how-it-works__title {
    font-family: var(--sp-font-heading);
    font-size: var(--sp-text-lg);
    font-weight: var(--sp-font-weight-bold);
    margin-bottom: var(--sp-space-xs);
}

.sp-how-it-works__desc {
    font-size: var(--sp-text-sm);
    color: var(--sp-color-text-light);
    line-height: 1.6;
}

.sp-how-it-works__footer {
    text-align: center;
    margin-top: var(--sp-space-xl);
}

/* =========================================
   TRUST
   ========================================= */
.sp-trust {
    background: var(--sp-color-bg-alt);
}

.sp-trust__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sp-space-lg);
}

.sp-trust__card {
    background: var(--sp-color-white);
    border: 1px solid var(--sp-color-border-light);
    border-radius: var(--sp-radius-xl);
    padding: var(--sp-space-xl);
    text-align: center;
    transition: box-shadow var(--sp-transition-fast);
}

.sp-trust__card:hover {
    box-shadow: var(--sp-shadow-md);
}

.sp-trust__icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--sp-color-primary-bg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--sp-space-md);
}

.sp-trust__icon .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
    color: var(--sp-color-primary);
}

.sp-trust__title {
    font-family: var(--sp-font-heading);
    font-size: var(--sp-text-lg);
    font-weight: var(--sp-font-weight-bold);
    margin-bottom: var(--sp-space-xs);
}

.sp-trust__desc {
    font-size: var(--sp-text-sm);
    color: var(--sp-color-text-light);
}

/* =========================================
   FAQ
   Accordion item styles moved to pages/faq.css (3.6 unification,
   shared with the standalone FAQ page).
   ========================================= */

/* =========================================
   RFQ CTA
   ========================================= */
.sp-rfq-cta {
    background: linear-gradient(135deg, var(--sp-color-primary) 0%, var(--sp-color-primary-dark) 100%);
}

.sp-rfq-cta__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-space-2xl);
    flex-wrap: wrap;
}

.sp-rfq-cta__content {
    flex: 1;
    min-width: 280px;
}

.sp-rfq-cta__title {
    font-family: var(--sp-font-heading);
    font-size: var(--sp-text-3xl);
    font-weight: var(--sp-font-weight-bold);
    color: var(--sp-color-white);
    margin-bottom: var(--sp-space-sm);
}

.sp-rfq-cta__subtitle {
    font-size: var(--sp-text-base);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--sp-space-lg);
}

.sp-rfq-cta__perks {
    display: flex;
    gap: var(--sp-space-lg);
    flex-wrap: wrap;
}

.sp-rfq-cta__perk {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-space-xs);
    color: var(--sp-color-white);
    font-size: var(--sp-text-sm);
}

.sp-rfq-cta__perk .dashicons {
    color: #A7F3D0;
}

.sp-rfq-cta__form-wrap {
    flex-shrink: 0;
}

/* =========================================
   BANNER
   ========================================= */
.sp-banner {
    background: var(--sp-color-text);
    color: var(--sp-color-white);
    text-align: center;
}

.sp-banner--has-bg {
    background: var(--banner-bg);
}

.sp-banner__title {
    font-family: var(--sp-font-heading);
    font-size: var(--sp-text-3xl);
    font-weight: var(--sp-font-weight-bold);
    color: var(--sp-color-white);
    margin-bottom: var(--sp-space-sm);
}

.sp-banner__desc {
    font-size: var(--sp-text-base);
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto var(--sp-space-xl);
}

/* =========================================
   INFO CARDS
   ========================================= */
.sp-info-cards {
    background: var(--sp-color-white);
}

.sp-info-cards__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-space-lg);
}

.sp-info-card {
    background: var(--sp-color-bg-alt);
    border-radius: var(--sp-radius-xl);
    padding: var(--sp-space-xl);
    text-align: center;
}

.sp-info-card__icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--sp-color-primary-bg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--sp-space-md);
}

.sp-info-card__icon .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
    color: var(--sp-color-primary);
}

.sp-info-card__title {
    font-family: var(--sp-font-heading);
    font-size: var(--sp-text-lg);
    font-weight: var(--sp-font-weight-bold);
    margin-bottom: var(--sp-space-xs);
}

.sp-info-card__desc {
    font-size: var(--sp-text-sm);
    color: var(--sp-color-text-light);
    margin-bottom: var(--sp-space-md);
}

.sp-info-card__link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: var(--sp-font-weight-semibold);
    font-size: var(--sp-text-sm);
    color: var(--sp-color-primary);
}

/* =========================================
   TESTIMONIALS
   ========================================= */
.sp-testimonials {
    background: var(--sp-color-bg-alt);
}

.sp-testimonials__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-space-lg);
}

.sp-testimonial-card {
    background: var(--sp-color-white);
    border: 1px solid var(--sp-color-border-light);
    border-radius: var(--sp-radius-xl);
    padding: var(--sp-space-xl);
    margin: 0;
    display: flex;
    flex-direction: column;
}

.sp-testimonial-card__quote {
    margin: 0 0 var(--sp-space-lg);
}

.sp-testimonial-card__quote p {
    font-size: var(--sp-text-base);
    line-height: 1.7;
    color: var(--sp-color-text);
    font-style: italic;
}

.sp-testimonial-card__author {
    display: flex;
    align-items: center;
    gap: var(--sp-space-sm);
    margin-top: auto;
}

.sp-testimonial-card__info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.sp-testimonial-card__name {
    font-weight: var(--sp-font-weight-semibold);
    color: var(--sp-color-text);
    font-size: var(--sp-text-sm);
}

.sp-testimonial-card__role {
    font-size: var(--sp-text-xs);
    color: var(--sp-color-text-muted);
}

/* =========================================
   BLOG
   ========================================= */
.sp-blog {
    background: var(--sp-color-white);
}

.sp-blog .sp-section__header {
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: right;
}

.sp-blog__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-space-lg);
}

.sp-blog-card {
    background: var(--sp-color-white);
    border: 1px solid var(--sp-color-border-light);
    border-radius: var(--sp-radius-xl);
    overflow: hidden;
    transition: box-shadow var(--sp-transition-fast);
}

.sp-blog-card:hover {
    box-shadow: var(--sp-shadow-md);
}

.sp-blog-card__thumb-link {
    display: block;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.sp-blog-card__thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sp-blog-card__body {
    padding: var(--sp-space-lg);
}

.sp-blog-card__date {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: var(--sp-text-xs);
    color: var(--sp-color-text-muted);
    margin-bottom: var(--sp-space-xs);
}

.sp-blog-card__date .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.sp-blog-card__title {
    font-family: var(--sp-font-heading);
    font-size: var(--sp-text-lg);
    font-weight: var(--sp-font-weight-bold);
    margin-bottom: var(--sp-space-xs);
}

.sp-blog-card__title a {
    color: var(--sp-color-text);
}

.sp-blog-card__title a:hover {
    color: var(--sp-color-primary);
}

.sp-blog-card__excerpt {
    font-size: var(--sp-text-sm);
    color: var(--sp-color-text-light);
    line-height: 1.6;
    margin-bottom: var(--sp-space-md);
}

.sp-blog-card__link {
    font-weight: var(--sp-font-weight-semibold);
    font-size: var(--sp-text-sm);
    color: var(--sp-color-primary);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* --- Placeholder image for suppliers --- */
.sp-supplier-card__img--placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sp-color-primary-bg);
    color: var(--sp-color-primary);
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
    .sp-categories__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .sp-products__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .sp-trust__grid,
    .sp-testimonials__grid,
    .sp-blog__grid,
    .sp-info-cards__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sp-how-it-works__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .sp-section {
        padding: var(--sp-space-2xl) 0;
    }

    .sp-products__grid,
    .sp-suppliers__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sp-rfq-cta__inner {
        flex-direction: column;
        text-align: center;
    }

    .sp-rfq-cta__perks {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .sp-categories__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--sp-space-sm);
    }

    .sp-products__grid,
    .sp-suppliers__grid,
    .sp-trust__grid,
    .sp-testimonials__grid,
    .sp-blog__grid,
    .sp-info-cards__grid,
    .sp-how-it-works__grid {
        grid-template-columns: 1fr;
    }

    .sp-hero__stats {
        gap: var(--sp-space-md);
    }

    .sp-hero__stat-divider {
        display: none;
    }
}

/* ============ SP-SLIDER ============ */
.sp-slider {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    height: var(--sp-slider-height, 480px);
    /* ltr keeps the slide-track transform math consistent in RTL sites */
    direction: ltr;
}

.sp-slider--boxed {
    max-width: var(--sp-container-max);
    margin-inline: auto;
    border-radius: var(--sp-radius-md);
}

.sp-slider__track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform var(--sp-slider-speed, 0.6s) ease;
    will-change: transform;
}

.sp-slider__slide {
    flex: 0 0 100%;
    min-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    position: relative;
}

.sp-slider__slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.55), rgba(0,0,0,0.25));
}

.sp-slider__overlay {
    display: none;
}

.sp-slider__content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 720px;
    padding: var(--sp-space-2xl) var(--sp-container-padding);
    direction: rtl;
    text-align: start;
}

.sp-slider__title {
    color: var(--sp-color-white);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: var(--sp-font-weight-bold);
    margin-bottom: var(--sp-space-md);
    text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.sp-slider__subtitle {
    color: rgba(255,255,255,0.9);
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: var(--sp-space-lg);
    text-shadow: 0 1px 8px rgba(0,0,0,0.3);
}

.sp-slider__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    color: var(--sp-color-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--sp-shadow-md);
    transition: background 0.2s, transform 0.2s;
}

.sp-slider__arrow:hover {
    background: var(--sp-color-primary);
    color: var(--sp-color-white);
}

.sp-slider__arrow--prev {
    right: var(--sp-space-md);
}

.sp-slider__arrow--next {
    left: var(--sp-space-md);
}

.sp-slider__dots {
    position: absolute;
    bottom: var(--sp-space-md);
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 8px;
}

.sp-slider__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
}

.sp-slider__dot.is-active {
    background: var(--sp-color-primary);
    transform: scale(1.3);
}

/* Fade effect: slides stack absolutely and crossfade on fixed height. */
.sp-slider--fade .sp-slider__track {
    display: block;
    transition: none;
}

.sp-slider--fade .sp-slider__slide {
    position: absolute;
    inset: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--sp-slider-speed, 0.6s) ease, visibility var(--sp-slider-speed, 0.6s) ease;
}

.sp-slider--fade .sp-slider__slide.is-active {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    .sp-slider {
        height: var(--sp-slider-height-mobile, 340px);
    }
.sp-slider__arrow {
		width: 40px;
		height: 40px;
	}
}

/* ============ SP-STATS ============ */
.sp-stats__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--sp-space-lg);
    text-align: center;
}

.sp-stats__number {
    display: block;
    font-size: var(--sp-font-size-xxl, 2.25rem);
    font-weight: 700;
    color: var(--sp-color-primary, #0f766e);
    font-variant-numeric: tabular-nums;
}

.sp-stats__label {
    display: block;
    margin-top: var(--sp-space-xs);
    font-size: var(--sp-font-size-sm);
    color: var(--sp-color-muted, #64748b);
}

@media (max-width: 780px) {
    .sp-stats__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--sp-space-md);
    }
}

/* ============ SP-SUPPLIERS-MARQUEE ============ */
.sp-marquee {
    max-width: 100%;
    overflow: hidden;
    padding-block: var(--sp-space-md);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.sp-marquee__viewport {
    overflow: hidden;
}

.sp-marquee__track {
    display: inline-flex;
    align-items: center;
    direction: ltr;
}

.sp-marquee__group {
    display: flex;
    align-items: center;
    gap: var(--sp-space-lg);
    padding: 0;
    margin: 0;
    padding-inline-end: var(--sp-space-lg);
    flex: 0 0 auto;
    list-style: none;
    direction: rtl;
}

.sp-marquee__item {
    list-style: none;
    flex: 0 0 auto;
}

.sp-marquee__link {
    display: flex;
    align-items: center;
    gap: var(--sp-space-sm);
    padding: var(--sp-space-sm) var(--sp-space-md);
    border: 1px solid var(--sp-color-border, #e2e8f0);
    border-radius: var(--sp-radius-md, 12px);
    background: var(--sp-color-surface, #fff);
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sp-marquee__link:hover {
    border-color: var(--sp-color-primary, #0f766e);
    box-shadow: 0 4px 14px rgba(15, 118, 110, 0.12);
}

.sp-marquee__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex: 0 0 40px;
    display: grid;
    place-items: center;
    background: #f1f5f9;
}

.sp-marquee__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sp-marquee__img--placeholder .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    color: #94a3b8;
}

.sp-marquee__body {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.sp-marquee__name {
    font-weight: 600;
    color: var(--sp-color-text, #1e293b);
    font-size: 0.95rem;
}

.sp-marquee__meta {
    font-size: 0.8rem;
    color: var(--sp-color-muted, #64748b);
}

@media (max-width: 640px) {
    .sp-marquee__group {
        gap: var(--sp-space-sm);
        padding-inline-end: var(--sp-space-sm);
    }
}