/**
 * ======================================================
 * Banner Section
 * ======================================================
 */
.banner-section .banner-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

.banner-section .banner-card img {
    height: 100%;
    min-height: 300px;
    object-fit: cover;
}

.banner-section .banner-overlay {
    position: absolute;
    bottom: 10px;
    left: 20px;
    right: 20px;
}

.banner-section .banner-overlay h4 {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 10px;
}

.banner-section .banner-overlay p {
    font-size: 14px;
    margin: 0;
}

/* Responsive Tweaks */
@media (max-width: 767px) {
    .banner-section .banner-overlay {
        bottom: 15px;
        left: 15px;
        right: 15px;
    }

    .banner-section .banner-overlay h4 {
        font-size: 18px;
    }

    .banner-section .banner-overlay p {
        font-size: 13px;
    }
}

/**
 * ======================================================
 * Featured Card
 * ======================================================
 */
.featured-section {
    padding: 30px 0 0px 0;
    overflow: hidden;
}

.featured-section .title,
.products-section .title {
    font-size: 32px;
    font-weight: 700;
    position: relative;
    display: inline-block;
    margin-bottom: 16px;
}

.featured-section .title::after,
.products-section .title::after {
    content: "";
    display: block;
    width: 120px;
    height: 4px;
    background-color: var(--bs-blue-600);
    margin-top: 18px;
}

/**
 * ======================================================
 * Promo Card
 * ======================================================
 */
/* Card base */
.promo-grid {
    padding: 60px 0;
    overflow: hidden;
}

.promo-grid .promo-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

/* Image */
.promo-grid .promo-card img {
    width: 100%;
    height: 100%;
    object-fit: inherit;
    display: block;
}

/* Heights */
.promo-grid .promo-card.small {
    height: 180px;
}

.promo-grid .promo-card.medium {
    height: 250px;
}

.promo-grid .promo-card.large {
    height: 320px;
}

.promo-grid .promo-card.tall {
    height: 516px;
}

/* Overlay container */
.promo-grid .promo-overlay {
    position: absolute;
    left: 20px;
    right: 20px;
    z-index: 2;
}

.promo-grid .promo-overlay.top {
    top: 10px;
}

.promo-grid .promo-overlay.bottom {
    bottom: 10px;
}

/* Text styles */
.promo-grid .promo-overlay h5 {
    font-size: 16px;
    font-weight: 600;
    margin: 5px 0;
}

.promo-grid .promo-overlay p {
    font-size: 14px;
    margin: 0;
    opacity: 0.9;
}

/* Light variation */
.promo-grid .promo-card.light::after {
    background: linear-gradient(to top, rgba(255, 255, 255, 0.85), transparent);
}

.promo-grid .promo-overlay.dark {
    color: #000;
}

/* Mobile Fix */
@media (max-width: 768px) {

    .promo-grid .promo-card.small,
    .promo-grid .promo-card.medium,
    .promo-grid .promo-card.tall {
        height: 220px;
    }
}

.section-title {
    text-align: center;
}

.title-with-lines {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 10px;
}

.title-with-lines span {
    padding: 0 15px;
    white-space: pre-wrap;
}

.title-with-lines::before,
.title-with-lines::after {
    content: "";
    flex: 1;
    height: 3px;
    background: #2a7de1;
    max-width: 120px;
}

.subtext {
    font-size: 15px;
    color: #555;
    max-width: 700px;
    margin: 0 auto;
}

/**
 * ======================================================
 * Categories
 * ======================================================
 */
.home-category-section {
    background: linear-gradient(180deg, #ffffff 0%, #f0f4ff 100%);
    padding: 40px 0px 30px 0px;
    overflow: hidden;
}

.home-category-subtitle {
    font-size: 0.75rem;
    letter-spacing: 2px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--bs-blue-700);
}

.home-category-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    padding: 10px 10px;
    background: var(--bs-white);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    outline: none;
    overflow: hidden;
}

.home-category-icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    background-color: var(--bs-blue-200);
    color: var(--bs-blue-800);
    flex-shrink: 0;
    transition: 0.3s;
    z-index: 2;
}

.home-category-name {
    font-weight: 600;
    font-size: 14px;
    color: #333;
    transition: 0.3s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    z-index: 2;
    text-align: left;
}

.home-category-btn:hover {
    background: var(--bs-blue-600);
    border-color: transparent;
    transform: scale(1.08);
    box-shadow: 0 15px 30px rgba(38, 94, 226, 0.3);
    z-index: 10;
}

.home-category-btn:hover .home-category-name {
    color: #ffffff;
}

.home-category-btn:hover .home-category-icon-circle {
    background-color: #ffffff;
    color: #265EE2;
}

.home-category-btn::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: width 0.3s ease;
    z-index: 2;
}

.home-category-btn:hover::after {
    width: 20px;
}

@media (max-width: 576px) {
    .home-category-btn {
        padding: 12px 8px;
    }

    .home-category-name {
        font-size: 0.75rem;
    }

    .home-category-icon-circle {
        width: 32px;
        height: 32px;
    }
}

/**
 * ======================================================
 * Products Section
 * ======================================================
 */
.products-section {
    padding: 30px 0;
    overflow: hidden;
}

/**
 * ======================================================
 * Best Selling
 * ======================================================
 */
.best-selling {
    padding: 50px 0;
    overflow: hidden;
}

/**
 * ======================================================
 * Feature Bar
 * ======================================================
 */
.feature-bar-wrapper {
    background: var(--bs-white);
}

.feature-bar-wrapper .row {
    border-radius: 10px;
    border: 1px solid var(--bs-gray-400);
    overflow: hidden;
}

.feature-item {
    position: relative;
    padding: 20px 15px;
}

.feature-content {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
}

.feature-icon {
    width: 43px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
}

.feature-text strong {
    display: block;
    font-size: 14px;
    line-height: 1.6;
    color: var(--bs-gray-dark);
}

.feature-text small {
    display: block;
    font-size: 11px;
    color: var(--bs-gray-600);
}

@media (max-width: 575px) {
    .feature-item:not(:last-child) {
        border-bottom: 1px solid var(--bs-gray-300);
    }

    .feature-content {
        justify-content: flex-start;
        padding-left: 10%;
    }
}

@media (min-width: 576px) and (max-width: 991px) {
    .feature-item:nth-child(odd)::after {
        content: "";
        position: absolute;
        right: 0;
        top: 20%;
        height: 60%;
        width: 1px;
        background-color: var(--bs-gray-300);
    }

    .feature-item:nth-child(1),
    .feature-item:nth-child(2) {
        border-bottom: 1px solid var(--bs-gray-300);
    }
}

@media (min-width: 992px) {
    .feature-item:not(:last-child)::after {
        content: "";
        position: absolute;
        right: 0;
        top: 20%;
        height: 60%;
        width: 1px;
        background-color: var(--bs-gray-800);
    }
}

/**
 * ======================================================
 * Brand Grid
 * ======================================================
 */

.brand-section {
    padding: 40px 0;
    position: relative;
    background: var(--bs-blue-1050);
    border-bottom: 1px solid var(--bs-gray-700);
}

.brand-section .brand-line {
    width: 80px;
    border-top: 3px solid var(--bs-white) !important;
}

.brand-section .brand-card {
    transition: transform 0.2s ease-in-out;
}

.brand-section .brand-card:hover {
    transform: translateY(-3px);
}

.brand-section .brand-logo {
    max-height: 70px;
    object-fit: contain;
}

@media (max-width: 768px) {
    .brand-section .brand-container {
        padding: 2rem 1rem;
    }
}

.trust-banner {
    background: #0f172a;
    color: #fff;
}

.trust-banner img {
    border-radius: 12px;
}

.trust-content h6 {
    font-size: 14px;
    color: #fff;
}

.trust-content p {
    color: #cbd5e1;
}

/**
 * ======================================================
 * AI Products
 * ======================================================
 */
.nv-banner {
    background-image: url('../../images/bg-ai-products.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 16px;
    color: white;
    position: relative;
    overflow: hidden;
    padding: 3rem;
}

/* Overlay */
.nv-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 0;
    border-radius: 16px;
}

/* Keep content above overlay */
.nv-content,
.nv-logo-wrapper {
    z-index: 2;
}

/* Title */
.nv-title {
    line-height: 1.15;
    font-size: clamp(2rem, 4vw, 3.5rem);
}

/* Accent Line */
.nv-accent-line {
    width: 100px;
    height: 4px;
    background-color: #76b900;
    margin: 1rem 0 1.5rem;
    border-radius: 10px;
}

/* Description */
.nv-description {
    font-size: 1rem;
    line-height: 1.8;
    max-width: 700px;
    color: rgba(255, 255, 255, 0.9);
}

/* Logo */
.nv-logo {
    max-width: 350px;
    width: 100%;
    height: auto;
}

/* Tablet */
@media (max-width: 991px) {

    .nv-banner {
        padding: 2.5rem 2rem;
    }

    .nv-logo {
        max-width: 250px;
    }

    .nv-description {
        max-width: 100%;
    }
}

/* Mobile */
@media (max-width: 767px) {

    .nv-banner {
        padding: 2rem 1.2rem;
        border-radius: 14px;
    }

    .nv-title {
        font-size: 2rem;
        line-height: 1.3;
    }

    .nv-accent-line {
        width: 70px;
        margin-bottom: 1rem;
    }

    .nv-description {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .nv-logo {
        max-width: 200px;
    }

    .nv-logo-wrapper {
        text-align: center !important;
    }
}

/* Small Mobile */
@media (max-width: 480px) {

    .nv-banner {
        padding: 1.5rem 1rem;
    }

    .nv-title {
        font-size: 1.7rem;
    }

    .nv-description {
        font-size: 0.9rem;
    }

    .nv-logo {
        max-width: 150px;
    }
}