/* ═══════════════════════════════════════════════════════════════════
   SERVE THEME — Hamro Sewa
   All rules scoped to .aiz-serve  (mirrors thecore.css structure)
═══════════════════════════════════════════════════════════════════ */

/* ── Image box utility ── */
.aiz-serve .serve-square-box {
    width: 100%;
    border-radius: 0.5rem;
}
.aiz-serve .serve-square-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* ════════════════════════════════════════
   CATEGORY NAV
════════════════════════════════════════ */
.aiz-serve .serve-cat-nav {
    background: #1a1a2e;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.aiz-serve .serve-cat-nav::-webkit-scrollbar { display: none; }

.aiz-serve .serve-cat-nav-link {
    color: #ccc;
    padding: 11px 18px;
    font-size: 13px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 3px solid transparent;
    transition: all .2s;
    text-decoration: none;
    flex-shrink: 0;
}
.aiz-serve .serve-cat-nav-link:hover,
.aiz-serve .serve-cat-nav-link.active {
    color: #fff;
    border-bottom-color: var(--primary);
    background: rgba(255,255,255,.05);
    text-decoration: none;
}
.aiz-serve .serve-cat-nav-flash { color: var(--primary) !important; }
.aiz-serve .serve-cat-nav-flash:hover { color: var(--hov-primary) !important; }

/* ════════════════════════════════════════
   HERO
════════════════════════════════════════ */
.aiz-serve .serve-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 60%, #0f3460 100%);
    min-height: 340px;
    padding: 48px 0 40px;
}
.aiz-serve .serve-hero-badge {
    display: inline-block;
    background: rgba(230,57,70,.2);
    color: #ff6b7a;
    border: 1px solid rgba(230,57,70,.4);
    border-radius: 20px;
    padding: 4px 14px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.aiz-serve .serve-hero h1 {
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 10px;
}
.aiz-serve .serve-hero h1 span { color: var(--primary); }
.aiz-serve .serve-hero-sub {
    color: #a0aec0;
    font-size: 15px;
    margin-bottom: 24px;
}
.aiz-serve .serve-hero-search {
    display: flex;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,.3);
    max-width: 520px;
}
.aiz-serve .serve-hero-search input {
    flex: 1;
    border: none;
    padding: 14px 18px;
    font-size: 15px;
    outline: none;
    color: #333;
    min-width: 0;
}
.aiz-serve .serve-hero-search button {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 0 24px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: .3px;
    white-space: nowrap;
    transition: background .2s;
}
.aiz-serve .serve-hero-search button:hover { background: var(--hov-primary); }

.aiz-serve .serve-hero-tags {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.aiz-serve .serve-hero-tags .lbl { font-size: 12px; color: #718096; }
.aiz-serve .serve-hero-tags a {
    background: rgba(255,255,255,.12);
    color: #e2e8f0;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 12px;
    border: 1px solid rgba(255,255,255,.15);
    text-decoration: none;
    transition: all .2s;
}
.aiz-serve .serve-hero-tags a:hover {
    background: rgba(230,57,70,.3);
    border-color: var(--primary);
    text-decoration: none;
}
.aiz-serve .serve-hero-stats {
    display: flex;
    gap: 28px;
    margin-top: 28px;
}
.aiz-serve .serve-hero-stat .num {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}
.aiz-serve .serve-hero-stat .lbl {
    font-size: 11px;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-top: 2px;
}
.aiz-serve .serve-hero-image {
    height: 260px;
    background: linear-gradient(145deg, rgba(230,57,70,.15), rgba(15,52,96,.4));
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.aiz-serve .serve-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

@media (max-width: 767px) {
    .aiz-serve .serve-hero { padding: 32px 0 28px; min-height: auto; }
    .aiz-serve .serve-hero h1 { font-size: 24px; }
    .aiz-serve .serve-hero-search { max-width: 100%; }
    .aiz-serve .serve-hero-stats { gap: 16px; }
    .aiz-serve .serve-hero-stat .num { font-size: 16px; }
}

/* ════════════════════════════════════════
   CATEGORY GRID (sajilosewa-style tiles)
════════════════════════════════════════ */
.aiz-serve .serve-cat-grid {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 12px;
}
.aiz-serve .serve-cat-tile {
    background: #fff;
    border-radius: 12px;
    padding: 18px 8px 14px;
    text-align: center;
    transition: all .2s;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    border: 1.5px solid transparent;
    text-decoration: none;
    display: block;
}
.aiz-serve .serve-cat-tile:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(230,57,70,.12);
    text-decoration: none;
}
.aiz-serve .serve-cat-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-size: 22px;
}
.aiz-serve .serve-cat-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.aiz-serve .serve-cat-tile p {
    font-size: 11px;
    font-weight: 600;
    color: #444;
    line-height: 1.3;
    margin: 0;
}

@media (max-width: 991px) {
    .aiz-serve .serve-cat-grid { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 575px) {
    .aiz-serve .serve-cat-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
    .aiz-serve .serve-cat-tile { padding: 12px 6px 10px; }
    .aiz-serve .serve-cat-icon { width: 40px; height: 40px; }
}

/* ════════════════════════════════════════
   FLASH DEAL BANNER
════════════════════════════════════════ */
.aiz-serve .serve-flash-banner {
    background: linear-gradient(90deg, var(--primary), #c1121f);
    border-radius: 14px;
    padding: 20px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
    gap: 16px;
}
.aiz-serve .serve-flash-banner .flash-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 4px;
}
.aiz-serve .serve-flash-banner .flash-sub {
    font-size: 13px;
    opacity: .85;
    margin: 0;
}
.aiz-serve .serve-countdown {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}
.aiz-serve .serve-cd-box {
    background: rgba(0,0,0,.25);
    border-radius: 8px;
    padding: 8px 14px;
    text-align: center;
    min-width: 54px;
}
.aiz-serve .serve-cd-box .num {
    font-size: 22px;
    font-weight: 800;
    display: block;
    line-height: 1;
}
.aiz-serve .serve-cd-box .lbl {
    font-size: 10px;
    opacity: .75;
    text-transform: uppercase;
}
.aiz-serve .serve-cd-sep {
    font-size: 22px;
    font-weight: 800;
    opacity: .6;
}
.aiz-serve .serve-flash-btn {
    background: #fff;
    color: var(--primary);
    border-radius: 8px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    text-decoration: none;
    flex-shrink: 0;
    transition: opacity .2s;
}
.aiz-serve .serve-flash-btn:hover {
    opacity: .9;
    color: var(--primary);
    text-decoration: none;
}

@media (max-width: 767px) {
    .aiz-serve .serve-flash-banner {
        flex-wrap: wrap;
        padding: 16px 20px;
        border-radius: 10px;
        gap: 12px;
    }
    .aiz-serve .serve-flash-banner .flash-title { font-size: 16px; }
    .aiz-serve .serve-cd-box { min-width: 44px; padding: 6px 10px; }
    .aiz-serve .serve-cd-box .num { font-size: 16px; }
}

/* ════════════════════════════════════════
   SERVICE CARDS
════════════════════════════════════════ */
.aiz-serve .serve-service-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,.07);
    border: 1.5px solid transparent;
    transition: all .2s;
}
.aiz-serve .serve-service-card:hover {
    border-color: var(--primary);
    box-shadow: 0 6px 18px rgba(230,57,70,.12);
    transform: translateY(-2px);
}
.aiz-serve .serve-svc-img {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}
.aiz-serve .serve-svc-name {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a2e;
}
.aiz-serve .serve-svc-provider {
    font-size: 12px;
    color: #888;
    margin-top: 3px;
}
.aiz-serve .serve-svc-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
}
.aiz-serve .serve-svc-price {
    font-size: 14px;
    font-weight: 800;
    color: var(--primary);
}
.aiz-serve .serve-svc-rating { font-size: 12px; color: #f59e0b; }
.aiz-serve .serve-svc-rating span { color: #888; }

/* ════════════════════════════════════════
   SECTION HEADER UTILITY
════════════════════════════════════════ */
.aiz-serve .serve-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 16px;
}
.aiz-serve .serve-section-head h2 span { color: var(--primary); }
.aiz-serve .serve-view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary) !important;
    text-decoration: none;
    white-space: nowrap;
}
.aiz-serve .serve-view-all-btn:hover { text-decoration: underline; color: var(--hov-primary) !important; }

/* ════════════════════════════════════════
   BEST SELLING + TODAY'S DEAL
   (AJAX fills #section_best_selling and #todays_deal)
════════════════════════════════════════ */
.aiz-serve #section_best_selling .best-salling-section {
    background: #fff !important;
    border-radius: 14px;
    height: 100%;
}
/* todays_deal partial wraps in .border.border-2.border-dark */
.aiz-serve #todays_deal > div {
    background: #fff;
    border-radius: 14px !important;
    border-color: #1a1a2e !important;
    height: 100%;
}

/* ════════════════════════════════════════
   TRUST BAR
════════════════════════════════════════ */
.aiz-serve .serve-trust-bar { background: #1a1a2e; }

.aiz-serve .serve-trust-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
    flex-shrink: 0;
}
.aiz-serve .serve-trust-item h4 {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}
.aiz-serve .serve-trust-item p {
    font-size: 12px;
    color: rgba(255,255,255,.55);
    line-height: 1.5;
    margin: 0;
}

/* ════════════════════════════════════════
   TESTIMONIALS
════════════════════════════════════════ */
.aiz-serve .serve-testi-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,.07);
    border-left: 4px solid var(--primary) !important;
    height: 100%;
}
.aiz-serve .serve-testi-card .quote {
    font-size: 13px;
    color: #555;
    line-height: 1.6;
    font-style: italic;
}
.aiz-serve .serve-testi-card .person-name {
    font-size: 13px;
    font-weight: 700;
}
.aiz-serve .serve-testi-card .person-loc { font-size: 11px; color: #888; }
.aiz-serve .serve-testi-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 20px;
    overflow: hidden;
    line-height: 1;
}

/* ════════════════════════════════════════
   APP DOWNLOAD CTA
════════════════════════════════════════ */
.aiz-serve .serve-app-cta {
    background: linear-gradient(135deg, var(--primary), #c1121f);
}
.aiz-serve .serve-app-badge {
    border: 2px solid rgba(255,255,255,.5);
    border-radius: 8px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    color: #fff !important;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: border-color .2s, background .2s;
}
.aiz-serve .serve-app-badge:hover {
    border-color: #fff;
    background: rgba(255,255,255,.1);
    text-decoration: none;
}
.aiz-serve .serve-app-stat-pill {
    background: rgba(255,255,255,.15);
    border-radius: 10px;
    padding: 12px 16px;
    min-width: 120px;
    text-align: center;
    margin-bottom: 8px;
}
.aiz-serve .serve-app-stat-pill .stat-num {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}
.aiz-serve .serve-app-stat-pill .stat-lbl {
    font-size: 11px;
    color: rgba(255,255,255,.75);
    margin-top: 2px;
}

/* ════════════════════════════════════════
   CAROUSEL OVERRIDES
════════════════════════════════════════ */
.aiz-serve .featured-categories .aiz-carousel .slick-next { right: -15px !important; }
.aiz-serve .featured-categories .aiz-carousel .slick-prev { left: -15px !important; }
.aiz-serve .featured-categories .slick-list { margin-left: 2rem; margin-right: 2rem; }

@media (max-width: 576px) {
    .aiz-serve .featured-categories .slick-list { margin-left: 0 !important; margin-right: 0 !important; }
    .aiz-serve .featured-categories .aiz-carousel .slick-next,
    .aiz-serve .featured-categories .aiz-carousel .slick-prev { display: none !important; }
}

.aiz-serve .aiz-carousel .slick-arrow {
    width: 24px !important;
    height: 64px !important;
    background: transparent;
}
.aiz-serve .aiz-carousel .slick-arrow:hover { background: #fff; }

/* ════════════════════════════════════════
   PRODUCT CARD HOVER (serve variant)
════════════════════════════════════════ */
.aiz-serve .hov-animate-outline-2 {
    position: relative;
    border-radius: 0.25rem;
    overflow: hidden;
}
.aiz-serve .hov-animate-outline-2::before,
.aiz-serve .hov-animate-outline-2::after {
    content: "";
    position: absolute;
    border: 2px solid transparent;
    width: 0;
    height: 0;
    top: 0;
    left: 0;
    border-radius: inherit;
    pointer-events: none;
}
.aiz-serve .hov-animate-outline-2:hover::before {
    border-top-color: var(--primary);
    border-right-color: var(--primary);
    width: 100%;
    height: 100%;
    transition: width 0.3s ease-out, height 0.3s ease-out 0.3s;
}
.aiz-serve .hov-animate-outline-2:hover::after {
    border-bottom-color: var(--primary);
    border-left-color: var(--primary);
    width: 100%;
    height: 100%;
    transition: height 0.3s ease-out, width 0.3s ease-out 0.3s;
}

/* ════════════════════════════════════════
   MISC RESPONSIVE / COMPATIBILITY
════════════════════════════════════════ */
@media (max-width: 767px) {
    .aiz-serve #flash_deal .flash-deals-baner { height: 203px !important; }
}
