/* ==========================================================================
   VOCLIFE CUSTOM HOMEPAGE & HEADER/FOOTER STYLESHEET
   File: assets/front_end/modern/css/custom-home.css
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. HEADER & NAVIGATION ENHANCEMENTS
   -------------------------------------------------------------------------- */
/* Reduce top and bottom extra whitespace in header */
.top-nav {
    padding: 4px 0 !important;
}

.top-nav .navbar {
    padding-top: 2px !important;
    padding-bottom: 2px !important;
}

/* Enlarge and properly proportion company logo */
.company-logo {
    height: 75px !important;
    width: auto !important;
    max-width: 220px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    margin-right: 15px;
}

.company-logo img,
img.brand-logo-link {
    max-height: 72px !important;
    width: auto !important;
    object-fit: contain !important;
    transition: transform 0.25s ease;
}

.company-logo:hover img {
    transform: scale(1.03);
}

/* Header category navigation whitespace reduction */
.search-nav .nav-outer {
    padding: 8px 0 !important;
}

.top-nav .searchcontainer.mx-5 {
    margin-left: 1.25rem !important;
    margin-right: 1.25rem !important;
}

/* Search placeholder styling */
.select2-container--adwitt .select2-selection--single .select2-selection__placeholder,
.select2-container--default .select2-selection--single .select2-selection__placeholder,
.select2-selection__placeholder,
.searchbar::placeholder,
.searchcontainer input::placeholder {
    color: #8b95a5 !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 24px !important;
}

/* Mobile Header */
@media (max-width: 991px) {
    .company-logo {
        height: 48px !important;
        max-width: 150px !important;
    }
    .company-logo img,
    img.brand-logo-link {
        max-height: 46px !important;
    }
    .top-nav {
        padding: 4px 0 !important;
    }
}

/* --------------------------------------------------------------------------
   2. POPULAR CATEGORIES SECTION
   -------------------------------------------------------------------------- */
.swiperForCategories {
    padding: 10px 0 20px 0 !important;
}

/* Center categories when there are only 3-4 items */
.swiperForCategories .swiper-wrapper {
    justify-content: center !important;
    align-items: stretch !important;
    display: flex !important;
}

.swiperForCategories .swiper-slide {
    width: auto !important;
    min-width: 170px !important;
    max-width: 220px !important;
    flex: 0 0 auto !important;
    margin: 0 15px !important;
}

.categories-card {
    border-radius: 16px !important;
    padding: 16px 12px !important;
    background: #ffffff !important;
    border: 1px solid #f1f3f5 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    height: 100%;
}

.categories-card:hover {
    transform: translateY(-6px) !important;
    border-color: #e5e7eb !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08) !important;
}

/* Bigger, modern circular category icon */
.categories-image {
    height: 140px !important;
    width: 140px !important;
    margin: 0 auto !important;
    border-radius: 50% !important;
    background: #f8fafc !important;
    border: 2px solid #eef2f6 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 15px !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
}

.categories-image img {
    max-height: 100% !important;
    max-width: 100% !important;
    object-fit: contain !important;
    border-radius: 50% !important;
    transition: transform 0.3s ease !important;
}

.categories-card:hover .categories-image {
    transform: scale(1.06) !important;
    border-color: #cbd5e1 !important;
    background: #ffffff !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06) !important;
}

.categories-card-text h4 {
    font-size: 14px !important;
    font-weight: 600 !important;
    margin-top: 14px !important;
    margin-bottom: 2px !important;
    color: #1f2937 !important;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    line-height: 1.3;
}

@media (max-width: 768px) {
    .swiperForCategories .swiper-wrapper {
        justify-content: flex-start !important;
        flex-wrap: nowrap !important;
    }
    .swiperForCategories .swiper-slide {
        min-width: 130px !important;
        max-width: 145px !important;
        margin: 0 6px !important;
    }
    .categories-image {
        height: 100px !important;
        width: 100px !important;
        padding: 10px !important;
    }
    .categories-card-text h4 {
        font-size: 12px !important;
    }
}

/* --------------------------------------------------------------------------
   3. POPULAR PRODUCTS (STYLE 2)
   -------------------------------------------------------------------------- */
/* Left big product banner alignment */
.product-banner-container {
    height: 100% !important;
    min-height: 390px !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 24px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03) !important;
    transition: box-shadow 0.3s ease !important;
}

.product-banner-container:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06) !important;
}

.product-banner {
    max-height: 330px !important;
    width: 100% !important;
    object-fit: contain !important;
    transition: transform 0.35s ease !important;
}

.product-banner-container:hover .product-banner {
    transform: scale(1.05) !important;
}

/* Product Cards in Style 2: 2-line title clamp with ellipsis */
.card-temp.product-card .card-title,
.product-card .card-title {
    font-size: 14px !important;
    line-height: 1.4 !important;
    height: 2.8em !important;
    min-height: 2.8em !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: normal !important;
    margin-bottom: 6px !important;
    color: #1f2937 !important;
    font-weight: 500 !important;
}

.card-temp.product-card {
    border: 1px solid #edf0f4 !important;
    border-radius: 12px !important;
    transition: all 0.25s ease !important;
    overflow: hidden;
    background: #ffffff !important;
}

.card-temp.product-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.06) !important;
    border-color: #cbd5e1 !important;
}

.card-temp.product-card .product-image-1 {
    background: #fafbfc;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    height: 180px;
}

.card-temp.product-card .product-image-1 img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

/* Card price styling */
.card-temp .card-price,
.product-card .card-price {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #0d6efd !important;
}

.card-temp .card-price .price,
.product-card .card-price .price {
    color: #0f172a !important;
    font-weight: 700 !important;
    font-size: 15px !important;
}

/* --------------------------------------------------------------------------
   4. FEATURES STRIP ABOVE FOOTER (Free Shipping, Free Returns, etc.)
   -------------------------------------------------------------------------- */
.freedel-sec {
    background: #f8fafc !important;
    border-top: 1px solid #eef2f6 !important;
    border-bottom: 1px solid #eef2f6 !important;
    padding: 24px 0 !important;
}

.freedel-sec .info-box {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 15px;
    border-radius: 10px;
    transition: transform 0.2s ease;
}

.freedel-sec .info-box:hover {
    transform: translateY(-2px);
}

.freedel-sec .info-box-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(13, 110, 253, 0.08);
    flex-shrink: 0;
}

.freedel-sec .info-box-icon svg {
    width: 28px !important;
    height: 28px !important;
    fill: #0d6efd !important;
}

.freedel-sec .info-box-content h5.info-title {
    font-size: 15px !important;
    font-weight: 600 !important;
    margin-bottom: 3px !important;
    color: #1e293b !important;
}

.freedel-sec .info-box-inner p {
    font-size: 13px !important;
    margin: 0 !important;
    color: #64748b !important;
}

/* --------------------------------------------------------------------------
   5. FOOTER POLISH
   -------------------------------------------------------------------------- */
footer .footer-logo img {
    max-height: 60px !important;
    width: auto !important;
    object-fit: contain !important;
}

footer .social-media-icon {
    font-size: 22px !important;
    margin: 0 6px 0 0 !important;
    padding: 8px !important;
    border-radius: 50% !important;
    background: #f1f5f9 !important;
    color: #475569 !important;
    transition: all 0.2s ease !important;
}

footer .social-media-icon:hover {
    background: #0d6efd !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
}

/* --------------------------------------------------------------------------
   6. CATEGORIES LISTING PAGE (/home/categories)
   -------------------------------------------------------------------------- */
.categorises-container {
    background-color: #f1f5f9 !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.categorises-container:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08) !important;
}

.categorises-banner-img {
    background: #f8fafc;
}

.categorises-banner-img img {
    object-fit: cover !important;
    background-color: #f8fafc;
}

