/* ================================================================
   TRADEPRINT THEME — PAGES/HOME.CSS
   Homepage-specific sections: Spotlight · Category Showcase ·
   Best Sellers · Services · How-It-Works · Samples CTA · Newsletter
   ================================================================ */

    /* ----------------------------------------------------------------
        HERO SECTION
    ---------------------------------------------------------------- */
    .hero-section {
        position: relative;
        overflow: hidden;
    }

    .carousel-item {
        height: 620px;
    }

    .carousel-item img {
        object-fit: cover;
        height: 100%;
        width: 100%;
    }

    /* Dark overlay — left heavy, fades right so image shows clearly */
    .hero-overlay {
        position: absolute;
        inset: 0;
        background: linear-gradient(
            to right,
            rgba(3, 7, 18, 0.68) 0%,
            rgba(3, 7, 18, 0.48) 38%,
            rgba(3, 7, 18, 0.16) 65%,
            rgba(3, 7, 18, 0.00) 100%
        );
        z-index: 10;
        pointer-events: none;
    }

    @media (max-width: 767px) {
        .hero-overlay {
            background: linear-gradient(
                to right,
                rgba(3, 7, 18, 0.70) 0%,
                rgba(3, 7, 18, 0.55) 50%,
                rgba(3, 7, 18, 0.25) 100%
            );
        }
    }

    @media (max-width: 575px) {
        .hero-overlay {
            background: rgba(3, 7, 18, 0.58);
        }
    }

    /* Text content sits above overlay */
    .hero-content {
        position: absolute;
        inset: 0;
        z-index: 20;
        display: flex;
        align-items: center;
    }

    .hero-text {
        max-width: 680px;
        padding: 0 0 40px;
    }

    .hero-label {
        display: inline-block;
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 2.5px;
        color: var(--tp-green-light);
        margin-bottom: 16px;
        opacity: .9;
    }

    .hero-heading {
        font-size: clamp(1.4rem, 4.5vw, 3.4rem);
        font-weight: 800;
        color: #fff;
        letter-spacing: -0.04em;
        line-height: 1.08;
        margin-bottom: 20px;
    }

    .hero-subtitle {
        font-size: clamp(0.875rem, 2vw, 1.125rem);
        color: rgba(255, 255, 255, 0.78);
        margin-bottom: 36px;
        line-height: 1.55;
        max-width: 480px;
    }

    .hero-ctas {
        display: flex;
        gap: 14px;
        flex-wrap: wrap;
    }

    .hero-btn-primary {
        background: var(--tp-green) !important;
        border-color: var(--tp-green) !important;
        padding: 13px 28px !important;
        font-size: var(--font-size-md) !important;
    }

    .hero-btn-primary:hover {
        background: var(--tp-green-dark) !important;
        border-color: var(--tp-green-dark) !important;
        box-shadow: 0 6px 20px rgba(21, 101, 192, 0.4) !important;
    }

    /* Ghost stays white on dark overlay */
    .hero-section .btn-tp-ghost {
        background: rgba(255,255,255,.12);
        color: #fff;
        border-color: rgba(255,255,255,.35);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
    }

    .hero-section .btn-tp-ghost:hover {
        background: rgba(255,255,255,.22);
        border-color: rgba(255,255,255,.6);
        color: #fff;
    }

    /* Custom Circle Controls */
    .carousel-control-prev,
    .carousel-control-next {
        width: 8%;
        opacity: 1;
        z-index: 30;
    }

    .control-circle {
        background-color: rgba(255, 255, 255, 0.15);
        border: 1.5px solid rgba(255, 255, 255, 0.3);
        width: 50px;
        height: 50px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.25s ease;
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
    }

    .control-circle i {
        color: #fff;
        font-size: 1rem;
    }

    .carousel-control-prev:hover .control-circle,
    .carousel-control-next:hover .control-circle {
        background-color: var(--tp-green);
        border-color: var(--tp-green);
        transform: scale(1.08);
    }

    .carousel-indicators [data-bs-target] {
        background-color: rgba(255, 255, 255, 0.5);
        width: 8px;
        height: 8px;
        border-radius: 50%;
        margin: 0 4px;
        border: none;
        transition: all 0.2s;
    }

    .carousel-indicators .active {
        background-color: var(--tp-green);
        width: 24px;
        border-radius: 4px;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        display: none;
    }

    /* Responsive hero */
    @media (max-width: 991px) {
        .carousel-item { height: 500px; }
        .carousel-control-prev,
        .carousel-control-next { width: 10%; }
    }

    @media (max-width: 767px) {
        .carousel-item { height: 420px; }
        .hero-subtitle { margin-bottom: 24px; }
        .hero-label { font-size: 10px; margin-bottom: 10px; }
        .control-circle { width: 38px; height: 38px; }
        .control-circle i { font-size: 0.85rem; }
        .carousel-control-prev,
        .carousel-control-next { width: 12%; }
    }

    @media (max-width: 575px) {
        .carousel-item { height: 340px; }
        .hero-text { padding-bottom: 20px; }
        .hero-subtitle { margin-bottom: 18px; }
        .hero-ctas { gap: 10px; }
        .hero-ctas .btn-tp,
        .hero-ctas .btn-tp-ghost { padding: 9px 16px; font-size: var(--font-size-xs); }
        .carousel-control-prev,
        .carousel-control-next { width: 14%; }
    }

/* ----------------------------------------------------------------
   CATEGORY SECTION
   ---------------------------------------------------------------- */
.category-section {
    background: linear-gradient(to bottom, #f8fafc, #eef3f9);
}

.category-card .card {
    border-radius: 20px;
    transition: all 0.35s ease;
    background: #fff;
}

.category-card:hover .card {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12) !important;
}

.category-img {
    overflow: hidden;
    position: relative;
    background: #f1f5f9;
}

.category-img img {
    transition: transform 0.5s ease;
}

.category-card:hover img {
    transform: scale(1.08);
}

.category-card .card-body {
    padding: 18px;
    background: #fff;
}

.category-card .card-body h6 {
    color: #111827;
    font-size: 16px;
    transition: color 0.3s ease;
}

.category-card:hover h6 {
    color: var(--tp-green);
}

/* ----------------------------------------------------------------
   SERVICES SECTION
   ---------------------------------------------------------------- */
.services-section {
    padding: 56px 0;
    background: #f8fafc;
}

.services-section .title-section {
    text-align: center;
    margin-bottom: 36px;
}

.services-section .title-section .section-title {
    color: var(--tp-dark) !important;
    margin-bottom: 10px !important;
}

.services-section .title-section .section-subtitle {
    max-width: 600px !important;
    margin: 0 auto !important;
    font-size: var(--font-size-base) !important;
    color: var(--tp-text-muted) !important;
}

.svc-card-link {
    display: block;
    text-decoration: none;
    height: 100%;
}

.svc-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--tp-border);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.25s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.svc-card-link:hover .svc-card {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
    border-color: var(--tp-green);
}

.svc-card__img {
    overflow: hidden;
    background: #f1f5f9;
    flex-shrink: 0;
}

.svc-card__img img {
    width: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.svc-card-link:hover .svc-card__img img {
    transform: scale(1.06);
}

.svc-card__body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.svc-card__badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--tp-green);
    background: var(--tp-green-pale, #E3F2FD);
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    width: fit-content;
}

.svc-card__title {
    font-size: 14px;
    font-weight: 600;
    color: var(--tp-dark);
    line-height: 1.5;
    margin: 0;
    flex: 1;
}

.svc-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 700;
    color: var(--tp-green);
    margin-top: 4px;
    transition: gap 0.15s;
}

.svc-card-link:hover .svc-card__cta { gap: 9px; }

@media (max-width: 991px) { .services-section { padding: 40px 0; } }
@media (max-width: 575px) { .services-section { padding: 28px 0; } }

/* ----------------------------------------------------------------
   BEST SELLERS
   ---------------------------------------------------------------- */
.best-sellers-section {
    padding: 56px 0;
    background: #f0f4f8;
}

.bs-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 12px;
    position: relative;
}

.bs-view-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--font-size-sm);
    font-weight: 700;
    color: var(--tp-green);
    text-decoration: none;
    white-space: nowrap;
    transition: gap .15s;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.bs-view-all:hover { gap: 10px; color: var(--tp-green-dark); }

@media (max-width: 575px) {
    .bs-view-all { position: static; transform: none; }
}

.best-sellers-section .nav-tabs-custom {
    border-bottom: none;
    justify-content: flex-start;
    gap: 6px;
    margin-bottom: 24px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
}
.best-sellers-section .nav-tabs-custom::-webkit-scrollbar { display: none; }

.best-sellers-section .nav-tabs-custom .nav-link {
    border: 1.5px solid var(--tp-border);
    border-radius: 50px;
    color: var(--tp-text-muted);
    font-weight: 600;
    font-size: 13px;
    background: #fff;
    white-space: nowrap;
    padding: 7px 20px;
    transition: all .15s;
}

.best-sellers-section .nav-tabs-custom .nav-link:hover {
    border-color: var(--tp-green);
    color: var(--tp-green);
}

.best-sellers-section .nav-tabs-custom .nav-link.active {
    background: var(--tp-green);
    border-color: var(--tp-green);
    color: #fff;
}

.best-sellers-section .slider-wrapper {
    position: relative;
    overflow: hidden;
}

.best-sellers-section .card-row {
    display: flex;
    transition: transform 0.55s cubic-bezier(0.25, 1, 0.5, 1);
}

.card-item { flex: 0 0 25%; padding: 8px; }

@media (max-width: 991px) { .card-item { flex: 0 0 50%; } }
@media (max-width: 575px) { .card-item { flex: 0 0 80%; } }

/* Product card — matches product-category design */
.bs-card {
    background: #fff;
    border: 1.5px solid var(--tp-border);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .2s, transform .2s, border-color .2s;
    position: relative;
    height: 100%;
}

.bs-card:hover {
    box-shadow: 0 10px 32px rgba(0,0,0,.11);
    transform: translateY(-4px);
    border-color: rgba(21,101,192,.3);
}

.bs-card__badge-row {
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    z-index: 2;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
}

.bs-card__img {
    height: 160px;
    position: relative;
    overflow: hidden;
    background: var(--tp-bg);
    flex-shrink: 0;
}

.bs-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}

.bs-card:hover .bs-card__img img { transform: scale(1.06); }

.bs-card__body {
    padding: 12px 12px 6px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

.bs-card__name {
    font-size: 13px;
    font-weight: 700;
    color: var(--tp-dark);
    margin: 0;
    line-height: 1.35;
}

.bs-card__stars {
    font-size: 11px;
    color: #f59e0b;
    display: flex;
    align-items: center;
    gap: 4px;
}

.bs-card__stars span {
    color: var(--tp-text-muted);
    font-size: 10px;
    font-weight: 600;
}

.bs-card__price {
    font-size: 11px;
    color: var(--tp-text-muted);
    margin-top: auto;
}

.bs-card__price strong {
    font-size: 14px;
    font-weight: 800;
    color: var(--tp-dark);
}

.bs-card__footer { padding: 8px 12px 12px; }

.bs-card__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 8px 12px;
    border-radius: 7px;
    background: var(--tp-green);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: background .15s;
    letter-spacing: .2px;
}

.bs-card__btn:hover { background: var(--tp-green-dark); color: #fff; }

.best-sellers-section .control-btn {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    z-index: 10;
    background: #fff;
    border: 1.5px solid var(--tp-border);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: background .2s, border-color .2s, opacity .2s;
    opacity: 0;
}

.best-sellers-section .control-btn i { color: var(--tp-text); font-size: 0.85rem; }
.best-sellers-section .prev-btn { left: -4px; }
.best-sellers-section .next-btn { right: -4px; }
.best-sellers-section .control-btn:hover { background: var(--tp-green); border-color: var(--tp-green); }
.best-sellers-section .control-btn:hover i { color: #fff; }
.best-sellers-section .control-btn:disabled { display: none; }

@media (min-width: 992px) {
    .best-sellers-section .slider-wrapper:hover .control-btn { opacity: 1; }
}

@media (max-width: 991px) {
    .best-sellers-section .control-btn { opacity: 1; }
    .best-sellers-section { padding: 40px 0; }
}

/* ----------------------------------------------------------------
   CTA SPLIT (Free Samples)
   ---------------------------------------------------------------- */
.cta-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 440px;
}

.cta-split__left {
    background: linear-gradient(135deg, #1565C0 0%, #0D47A1 100%);
    padding: 56px 52px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
}

.cta-split__right {
    background: #eef3f9;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.cta-img-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    width: 100%;
    max-width: 400px;
}

.cta-img-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #fff;
    box-shadow: 0 6px 24px rgba(0,0,0,.1);
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    transition: transform .3s;
}

.cta-img-item:hover { transform: translateY(-4px); }

.cta-img-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.cta-img-stat {
    background: linear-gradient(135deg, #1565C0 0%, #0D47A1 100%);
    flex-direction: column;
    text-align: center;
    gap: 2px;
    padding: 20px 14px;
}

.cta-stat-num {
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.cta-stat-label {
    font-size: 13px;
    font-weight: 700;
    color: rgba(255,255,255,.9);
}

.cta-stat-sub {
    font-size: 10px;
    color: rgba(255,255,255,.6);
    margin-top: 2px;
}

.sample-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.3);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 14px;
    border-radius: 50px;
    margin-bottom: 20px;
    width: fit-content;
}

.cta-heading {
    font-size: clamp(1.6rem, 3.5vw, 2.6rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 14px;
}

.cta-sub {
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    color: rgba(255,255,255,.78);
    line-height: 1.65;
    margin-bottom: 24px;
    max-width: 440px;
}

.cta-features {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cta-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: var(--font-size-sm);
    color: rgba(255,255,255,.85);
    font-weight: 500;
}

.cta-features li i {
    color: #4ade80;
    font-size: 14px;
    flex-shrink: 0;
}

.cta-btn {
    background: #fff !important;
    color: var(--tp-green) !important;
    border-color: #fff !important;
    width: fit-content;
}

.cta-btn:hover {
    background: rgba(255,255,255,.9) !important;
    color: var(--tp-green-dark) !important;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(0,0,0,.2) !important;
}

@media (max-width: 991px) {
    .cta-split { grid-template-columns: 1fr; }
    .cta-split__right { min-height: 280px; }
    .cta-split__left { padding: 44px 36px; }
}

@media (max-width: 575px) {
    .cta-split__left { padding: 36px 24px; }
    .cta-split__right { min-height: 220px; }
    .cta-btn { width: 100%; justify-content: center; }
}


