/* ============================================================
   Landing Page Custom Styles — RKT Project
   ============================================================ */

/* --- Hero Section Container --- */
.hero-section {
    padding: 20px 0 30px;
    background: #fff;
}

.hero-section .row {
    align-items: stretch;
}

/* --- Search Window (Left Column) --- */
.hero-search-window {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color-onhover) 100%);
    border-radius: 16px;
    padding: 30px 28px 25px;
    color: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    position: relative;
    overflow: hidden;
}

.hero-search-window::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.hero-search-window::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -30px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.hero-search-window>* {
    position: relative;
    z-index: 1;
}

.hero-search-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.3;
    color: #fff;
}

.hero-search-subtitle {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 20px;
    font-weight: 400;
}

/* --- Search Tab Buttons --- */
.hero-search-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.hero-search-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid #fff;
    background: transparent;
    color: #080808;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.hero-search-tab-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.hero-search-tab-btn.active {
    background: #fff;
    color: #080808;
    border-color: #dc3545;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hero-search-tab-btn i {
    font-size: 0.9rem;
}

/* --- Search Input Row --- */
.hero-search-input-wrap {
    display: flex;
    gap: 0;
    align-items: stretch;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.hero-search-input-wrap input {
    flex: 1;
    border: none;
    padding: 12px 16px;
    font-size: 0.95rem;
    color: #333;
    outline: none;
    background: #fff;
    min-width: 0;
}

.hero-search-input-wrap input::placeholder {
    color: #aaa;
}

.hero-search-input-wrap .hero-search-btn {
    border: none;
    background: var(--primary-color);
    color: #fff;
    padding: 12px 24px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

.hero-search-input-wrap .hero-search-btn:hover {
    opacity: 0.9;
    filter: brightness(1.1);
}

/* --- Marketing Carousel (Right Column) --- */
.hero-marketing-carousel {
    height: 100%;
    min-height: 280px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    background: #f5f5f5;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.hero-marketing-carousel .swiper-container {
    height: 100%;
    width: 100%;
}

.hero-marketing-carousel .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f8f8 0%, #e8e8e8 100%);
}

.hero-marketing-carousel .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-marketing-carousel .marketing-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    color: #bbb;
    font-size: 1rem;
    text-align: center;
    padding: 20px;
}

.hero-marketing-carousel .marketing-placeholder i {
    font-size: 3rem;
    margin-bottom: 12px;
    opacity: 0.5;
}

.hero-marketing-carousel .swiper-pagination-bullet {
    background: var(--primary-color);
    opacity: 0.4;
}

.hero-marketing-carousel .swiper-pagination-bullet-active {
    opacity: 1;
}

/* --- Section Title Shared --- */
.landing-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.landing-section-title h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #333;
    margin: 0;
    position: relative;
}

.landing-section-title h3::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.landing-section-title .view-all-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
}

.landing-section-title .view-all-link:hover {
    opacity: 0.8;
    text-decoration: none;
    gap: 8px;
}

/* --- Categories Grid --- */
.categories-grid-section {
    padding: 30px 0;
    background: #fff;
}

.categories-grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.category-grid-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eee;
    overflow: hidden;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.category-grid-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
    text-decoration: none;
    color: inherit;
}

.category-grid-card .cat-card-img {
    width: 100%;
    height: 140px;
    object-fit: contain;
    padding: 16px;
    background: #fafafa;
}

.category-grid-card .cat-card-name {
    padding: 10px 12px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- Products Grid Section --- */
.products-grid-section {
    padding: 30px 0;
    background: #fff;
}

.products-grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

/* --- Responsive --- */
@media (max-width: 991px) {
    .hero-search-title {
        font-size: 1.3rem;
    }

    .hero-marketing-carousel {
        min-height: 220px;
        margin-top: 16px;
    }

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

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

@media (max-width: 767px) {
    .hero-search-window {
        border-radius: 12px;
        padding: 20px 18px;
    }

    .hero-search-title {
        font-size: 1.15rem;
    }

    .hero-search-tab-btn {
        padding: 7px 14px;
        font-size: 0.8rem;
    }

    .hero-marketing-carousel {
        min-height: 180px;
        margin-top: 16px;
        border-radius: 12px;
    }

    .categories-grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .products-grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .category-grid-card .cat-card-img {
        height: 100px;
        padding: 10px;
    }

    .category-grid-card .cat-card-name {
        font-size: 0.8rem;
        padding: 8px 10px;
    }
}

@media (max-width: 480px) {
    .hero-search-tabs {
        gap: 6px;
    }

    .hero-search-tab-btn {
        padding: 6px 12px;
        font-size: 0.75rem;
    }

    .hero-search-input-wrap .hero-search-btn {
        padding: 10px 16px;
        font-size: 0.8rem;
    }
}

/* --- Navigation Bar Background Override --- */
.bg-nav {
    background-color: var(--primary-color) !important;
}

.active-nav {
    background-color: var(--bs-black);
    color: var(--bs-black);
}

/* .nav-category a:hover {
    color: var(--primary-color);
    text-decoration: none;

} */

.nav-category:hover {
    color: var(--bs-black);
}

.nav-category a {
    color: white;
}

.nav-category:hover {
    background-color: var(--bs-black);
}