/* Home 5 - Complete E-commerce Marketplace Style */

:root {
    --h5-navy: #0A2540;
    --h5-orange: #D35400;
    --h5-orange-soft: rgba(211, 84, 0, 0.1);
    --h5-white: #FFFFFF;
    --h5-gray-light: #F8F9FA;
    --h5-gray: #6C757D;
    --h5-border: #EEEEEE;
    --h5-success: #27AE60;
}

/* 2-Tier Header System */
.h5-header-top {
    background: var(--h5-navy);
    padding: 8px 0;
    color: rgba(255,255,255,0.7);
    font-size: 13px;
}

.h5-header-top a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.h5-header-top a:hover {
    color: white;
}

.h5-header-main {
    background: var(--h5-white);
    padding: 12px 0;
    border-bottom: 1px solid var(--h5-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.h5-logo img {
    max-height: 45px;
}

.h5-search-box {
    display: flex;
    align-items: center;
    background: var(--h5-gray-light);
    border: 2px solid var(--h5-border);
    border-radius: 8px;
    padding: 2px;
    width: 100%;
    max-width: 700px;
    transition: all 0.3s;
}

.h5-search-box:focus-within {
    border-color: var(--h5-orange);
    background: white;
    box-shadow: 0 0 0 4px var(--h5-orange-soft);
}

.h5-search-box select {
    border: none;
    background: transparent;
    padding: 10px 15px;
    font-weight: 600;
    color: var(--h5-navy);
    border-right: 1px solid var(--h5-border);
    outline: none;
    cursor: pointer;
}

.h5-search-box input {
    border: none;
    background: transparent;
    flex: 1;
    padding: 10px 20px;
    outline: none;
}

.h5-search-box .btn-search {
    background: var(--h5-orange);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 6px;
    font-weight: 700;
    transition: opacity 0.3s;
}

.h5-header-actions {
    display: flex;
    align-items: center;
    gap: 25px;
}

.h5-action-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--h5-navy);
}

.h5-action-item i {
    font-size: 22px;
    margin-bottom: 4px;
}

.h5-action-item .badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background: var(--h5-orange);
    color: white;
    font-size: 10px;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 2px solid white;
}

.h5-action-item span {
    font-size: 12px;
    font-weight: 600;
}

/* Hero & Sidebar Layout */
.h5-hero-section {
    padding: 30px 0;
}

.h5-sidebar-menu {
    background: white;
    border: 1px solid var(--h5-border);
    border-radius: 12px;
    padding: 15px 0;
    height: 100%;
}

.h5-sidebar-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.h5-sidebar-menu li a {
    display: flex;
    align-items: center;
    padding: 8px 25px;
    color: var(--h5-navy);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.h5-sidebar-menu li a:hover {
    background: var(--h5-gray-light);
    color: var(--h5-orange);
    border-left-color: var(--h5-orange);
    padding-left: 30px;
}

.h5-sidebar-menu li a i {
    width: 25px;
    font-size: 16px;
    margin-right: 15px;
    color: var(--h5-orange);
}

.h5-hero-slider {
    border-radius: 15px;
    overflow: hidden;
    height: 100%;
}

.h5-slide {
    background-size: cover;
    background-position: center;
    padding: 30px 40px;
    color: var(--h5-navy);
    min-height: 320px;
    display: flex;
    align-items: center;
}

.h5-slide h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.2;
}

.h5-hero-split-img {
    max-height: 280px;
    width: auto;
    object-fit: contain;
}

.h5-slide .btn-shop {
    background: var(--h5-orange);
    color: white;
    padding: 15px 40px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    transition: transform 0.3s;
}

/* Flash Sale */
.h5-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--h5-border);
    padding-bottom: 15px;
}

.h5-section-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--h5-navy);
    position: relative;
}

.h5-section-title::after {
    content: '';
    position: absolute;
    bottom: -17px;
    left: 0;
    width: 80px;
    height: 2px;
    background: var(--h5-orange);
}

/* Recommended Services Filter UI Update */
.h5-grid-nav {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.h5-filter-btn {
    padding: 8px 20px;
    border-radius: 50px;
    background: var(--h5-gray-light);
    color: var(--h5-navy);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid var(--h5-border);
}

.h5-filter-btn:hover, .h5-filter-btn.active {
    background: var(--h5-orange);
    color: white;
    border-color: var(--h5-orange);
}

.h5-flash-sale {
    background: #FFEDD5;
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 50px;
}

.h5-timer {
    display: flex;
    gap: 10px;
    align-items: center;
}

@media (max-width: 768px) {
    .h5-timer {
        margin-top: 10px;
    }
}

.h5-timer-unit {
    background: var(--h5-orange);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 800;
    min-width: 45px;
    text-align: center;
}

/* Marketplace Card */
.h5-p-card {
    background: white;
    border: 1px solid var(--h5-border);
    border-radius: 12px;
    padding: 15px;
    transition: all 0.3s;
    height: 100%;
}

.h5-p-card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border-color: var(--h5-orange);
}

.h5-p-img {
    position: relative;
    height: 180px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
}

.h5-p-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.h5-p-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--h5-orange);
    color: white;
    padding: 2px 10px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
}

.h5-p-cat {
    font-size: 12px;
    color: var(--h5-gray);
    margin-bottom: 5px;
}

.h5-p-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--h5-navy);
    margin-bottom: 10px;
    height: 44px;
    overflow: hidden;
    display: block;
    text-decoration: none;
}

.h5-p-title:hover {
    color: var(--h5-orange);
}

.h5-rating {
    color: #FACC15;
    font-size: 13px;
    margin-bottom: 15px;
}

.h5-p-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.h5-p-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--h5-navy);
}

.h5-btn-add {
    background: var(--h5-orange-soft);
    color: var(--h5-orange);
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.h5-btn-add:hover {
    background: var(--h5-orange);
    color: white;
}

/* Progress Bar for Sale */
.h5-progress-box {
    margin-top: 15px;
}

.h5-progress-text {
    font-size: 12px;
    color: var(--h5-gray);
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
}

.h5-progress {
    height: 6px;
    background: #E5E7EB;
    border-radius: 10px;
    overflow: hidden;
}

.h5-progress-bar {
    height: 100%;
    background: var(--h5-orange);
    border-radius: 10px;
}

/* Top Providers / Experts */
.h5-provider-card {
    background: white;
    border: 1px solid var(--h5-border);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s;
}

.h5-provider-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
}

.h5-provider-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 20px;
    border: 4px solid var(--h5-orange-soft);
    padding: 5px;
}

.h5-provider-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.h5-provider-card h4 {
    margin-bottom: 5px;
    font-weight: 700;
}

.h5-provider-card .expertise {
    font-size: 13px;
    color: var(--h5-orange);
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}

/* Footer / Misc */
/* Dots Fix */
.h5-dots-container .slick-dots {
    position: relative;
    bottom: 0;
    margin-top: 30px;
    display: flex !important;
    justify-content: center;
    list-style: none;
    padding: 0;
    gap: 8px;
}

.h5-dots-container .slick-dots li {
    margin: 0;
    padding: 0;
    display: block;
}

.h5-dots-container .slick-dots li button {
    width: 10px;
    height: 10px;
    background: #D1D5DB;
    border-radius: 50%;
    border: none;
    font-size: 0;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s;
}

.h5-dots-container .slick-dots li.slick-active button {
    background: var(--h5-orange);
    width: 25px;
    border-radius: 10px;
}

/* Responsive Grid Overrides */
.col-h5-5 {
    width: 20%;
    padding: 0 10px;
}

@media (max-width: 1400px) {
    .col-h5-5 { width: 25%; }
}
@media (max-width: 991px) {
    .col-h5-5 { width: 33.33%; }
    .h5-header-top { display: none; }
    .h5-sidebar-column { display: none; }
    .col-lg-9 { width: 100%; }
    .h5-slide {
        text-align: center;
        padding: 30px 20px;
    }
    .h5-hero-split-img {
        max-height: 200px;
        margin-bottom: 20px;
    }
    .h5-slide h2 {
        font-size: 28px;
    }
}
@media (max-width: 768px) {
    .col-h5-5 { width: 50%; }
    .h5-section-title {
        font-size: 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .h5-flash-sale {
        padding: 20px;
    }
    .h5-timer {
        margin-bottom: 15px;
    }
}
@media (max-width: 575px) {
    .col-h5-5 { width: 100%; }
    .h5-logo img {
        max-height: 35px;
    }
}
