/*
 * Alibaba B2B Theme
 * Complete redesign inspired by Alibaba.com
 * Overlays on top of modern-b2b.css
 */

/* ==================== ALIBABA BRAND COLORS ==================== */
:root {
    --ali-orange:       #ff6a00;
    --ali-orange-dark:  #e85a00;
    --ali-orange-light: #ff8c33;
    --ali-red:          #e62e04;
    --ali-yellow:       #ffd700;
    --ali-dark:         #1a1a2e;
    --ali-nav-bg:       #222;
    --ali-header-bg:    #fff;
    --ali-border:       #e8e8e8;
    --ali-text:         #333;
    --ali-text-muted:   #777;
    --ali-badge-gold:   #d4a017;
    --ali-green:        #00a650;
    --ali-blue:         #0066cc;
    --ali-section-bg:   #f5f5f5;
    --ali-card-bg:      #ffffff;
    --ali-shadow:       0 2px 8px rgba(0,0,0,.10);
    --ali-shadow-hover: 0 6px 20px rgba(0,0,0,.16);
}

/* ==================== GLOBAL RESETS FOR HOMEPAGE ==================== */
body {
    background: #f5f5f5;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    font-size: 14px;
    color: var(--ali-text);
}

/* ==================== TOP UTILITY BAR ==================== */
.ali-topbar {
    background: var(--ali-dark);
    color: #ccc;
    font-size: 12px;
    height: 32px;
    display: flex;
    align-items: center;
}
.ali-topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
    width: 100%;
}
.ali-topbar a {
    color: #ccc;
    text-decoration: none;
    transition: color .2s;
}
.ali-topbar a:hover { color: var(--ali-orange); }
.ali-topbar .sep { margin: 0 8px; color: #555; }

/* ==================== MAIN HEADER ==================== */
.ali-header {
    background: var(--ali-header-bg);
    border-bottom: 2px solid var(--ali-orange);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 6px rgba(0,0,0,.08);
}
.ali-header-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Logo */
.ali-logo {
    flex: 0 0 auto;
    min-width: 140px;
}
.ali-logo a { display: block; }
.ali-logo img { height: 48px; width: auto; }

/* Search */
.ali-search {
    flex: 1;
    max-width: 620px;
}
.ali-search-form {
    display: flex;
    border: 2px solid var(--ali-orange);
    border-radius: 4px;
    overflow: hidden;
}
.ali-search-select {
    border: none;
    border-right: 1px solid #ddd;
    background: #fafafa;
    padding: 0 10px;
    font-size: 13px;
    color: #444;
    outline: none;
    cursor: pointer;
    min-width: 110px;
}
.ali-search-input {
    flex: 1;
    border: none;
    padding: 10px 14px;
    font-size: 14px;
    outline: none;
    background: #fff;
}
.ali-search-btn {
    background: var(--ali-orange);
    color: #fff;
    border: none;
    padding: 0 22px;
    font-size: 16px;
    cursor: pointer;
    font-weight: 600;
    transition: background .2s;
}
.ali-search-btn:hover { background: var(--ali-orange-dark); }

/* Header actions */
.ali-header-actions {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-left: auto;
}
.ali-header-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--ali-text);
    font-size: 12px;
    gap: 2px;
    padding: 4px 10px;
    border-radius: 4px;
    transition: background .15s;
    white-space: nowrap;
}
.ali-header-btn:hover { background: #f5f5f5; color: var(--ali-orange); }
.ali-header-btn .btn-icon { font-size: 20px; line-height: 1; }
.ali-rfq-btn {
    background: var(--ali-orange);
    color: #fff !important;
    font-weight: 600;
    font-size: 13px;
    border-radius: 4px;
    padding: 8px 16px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background .2s;
}
.ali-rfq-btn:hover { background: var(--ali-orange-dark); color: #fff !important; }

/* ==================== CATEGORY NAV BAR ==================== */
.ali-catbar {
    background: #333;
    position: relative;
    z-index: 900;
}
.ali-catbar-inner {
    display: flex;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
    gap: 0;
}
.ali-catbar a {
    color: #eee;
    text-decoration: none;
    font-size: 13px;
    padding: 10px 14px;
    display: block;
    white-space: nowrap;
    transition: background .15s, color .15s;
}
.ali-catbar a:hover,
.ali-catbar a.active { background: var(--ali-orange); color: #fff; }
.ali-catbar .ali-catbar-sell {
    background: var(--ali-orange);
    color: #fff;
    font-weight: 600;
    margin-left: auto;
    border-radius: 0;
}
.ali-catbar .ali-catbar-sell:hover { background: var(--ali-orange-dark); }

/* ==================== HERO / MAIN SECTION ==================== */
/* Using Bootstrap 5 grid now, keeping minimal custom styles */
.ali-hero-banner {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #7e22ce 100%);
    color: #fff;
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
}
.ali-hero-banner h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.ali-hero-subtitle {
    font-size: 15px;
    margin-bottom: 24px;
    opacity: 0.95;
}
.ali-hero-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: 24px 0;
}
.ali-hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}
.ali-hero-stat strong {
    font-size: 24px;
    font-weight: 700;
    color: #ffd700;
}
.ali-hero-stat span {
    font-size: 12px;
    opacity: 0.9;
    margin-top: 4px;
}
.ali-hero-btns {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}
.ali-btn-primary,
.ali-btn-outline {
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all .2s;
    display: inline-block;
}
.ali-btn-primary {
    background: var(--ali-orange);
    color: #fff;
    border: 2px solid var(--ali-orange);
}
.ali-btn-primary:hover {
    background: var(--ali-orange-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,106,0,0.3);
}
.ali-btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.4);
}
.ali-btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
    color: #fff;
}

/* Left Category Sidebar */
.ali-cat-sidebar {
    background: #fff;
    border: 1px solid var(--ali-border);
    border-radius: 4px;
    max-height: 500px;
    overflow-y: auto;
    position: sticky;
    top: 16px;
}
/* Hide scrollbar for webkit browsers but keep functionality */
.ali-cat-sidebar::-webkit-scrollbar {
    width: 6px;
}
.ali-cat-sidebar::-webkit-scrollbar-track {
    background: #f5f5f5;
}
.ali-cat-sidebar::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}
.ali-cat-sidebar::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}
.ali-cat-sidebar-title {
    background: var(--ali-orange);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 14px;
    letter-spacing: .3px;
    position: sticky;
    top: 0;
    z-index: 10;
}
.ali-cat-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.ali-cat-item {
    position: relative;
    border-bottom: 1px solid #f0f0f0;
}
.ali-cat-item:last-child { border-bottom: none; }
.ali-cat-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 12px;
    color: var(--ali-text) !important;
    font-size: 13px;
    text-decoration: none;
    transition: background .15s, color .15s;
}
.ali-cat-link:hover { background: #fff6ee; color: var(--ali-orange) !important; }
.ali-cat-arrow { font-size: 11px; color: #aaa; }

/* Subcategory flyout */
.ali-sub-menu {
    display: none;
    position: absolute;
    left: 100%;
    top: -1px;
    width: 480px;
    background: #fff;
    border: 2px solid var(--ali-orange);
    border-radius: 0 4px 4px 4px;
    padding: 16px;
    z-index: 9999;
    box-shadow: var(--ali-shadow-hover);
}
.ali-cat-item:hover .ali-sub-menu { display: block; }
.ali-sub-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--ali-orange);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}
.ali-sub-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 6px;
}
.ali-sub-link {
    font-size: 12px;
    color: #444 !important;
    text-decoration: none;
    padding: 5px 8px;
    border-radius: 3px;
    display: block;
    transition: background .15s, color .15s;
}
.ali-sub-link:hover { background: #fff6ee; color: var(--ali-orange) !important; }
.ali-cat-view-all {
    display: block;
    text-align: center;
    margin-top: 12px;
    color: var(--ali-orange) !important;
    font-size: 12px;
    font-weight: 600;
    padding: 6px;
    border-top: 1px solid #f0f0f0;
    text-decoration: none;
}
.ali-cat-view-all:hover { text-decoration: underline; }
.ali-sidebar-viewall {
    display: block;
    text-align: center;
    padding: 9px;
    color: var(--ali-orange) !important;
    font-size: 12px;
    font-weight: 600;
    border-top: 1px solid #f0f0f0;
    text-decoration: none;
}
.ali-sidebar-viewall:hover { text-decoration: underline; }

/* Center Hero Banner */
.ali-hero-banner {
    background: linear-gradient(135deg, #001f5b 0%, #003399 40%, #0055cc 100%);
    border-radius: 4px;
    padding: 36px 40px;
    color: #fff;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.ali-hero-banner::before {
    content: '';
    position: absolute;
    right: -40px;
    top: -40px;
    width: 280px;
    height: 280px;
    background: rgba(255,106,0,.15);
    border-radius: 50%;
}
.ali-hero-banner::after {
    content: '';
    position: absolute;
    right: 60px;
    bottom: -60px;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,.06);
    border-radius: 50%;
}
.ali-hero-banner h1 {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0,0,0,.2);
}
.ali-hero-subtitle {
    font-size: 15px;
    color: rgba(255,255,255,.85);
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}
.ali-hero-stats {
    display: flex;
    gap: 24px;
    margin-bottom: 28px;
    position: relative;
    z-index: 1;
}
.ali-hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.ali-hero-stat strong {
    font-size: 22px;
    font-weight: 800;
    color: var(--ali-yellow);
    line-height: 1;
}
.ali-hero-stat span {
    font-size: 11px;
    color: rgba(255,255,255,.75);
    margin-top: 3px;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.ali-hero-btns {
    display: flex;
    gap: 12px;
    position: relative;
    z-index: 1;
}
.ali-btn-primary {
    background: var(--ali-orange);
    color: #fff;
    padding: 11px 24px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 14px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background .2s, transform .15s;
}
.ali-btn-primary:hover { background: var(--ali-orange-dark); transform: translateY(-1px); color: #fff; }
.ali-btn-outline {
    background: transparent;
    color: #fff;
    padding: 10px 22px;
    border: 2px solid rgba(255,255,255,.7);
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
    transition: all .2s;
}
.ali-btn-outline:hover {
    background: rgba(255,255,255,.15);
    border-color: #fff;
    color: #fff;
}

/* Right panel */
.ali-right-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: sticky;
    top: 16px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
}
/* Scrollbar styling for right panel */
.ali-right-panel::-webkit-scrollbar {
    width: 6px;
}
.ali-right-panel::-webkit-scrollbar-track {
    background: transparent;
}
.ali-right-panel::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}
.ali-right-panel::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}
.ali-panel-card {
    background: #fff;
    border: 1px solid var(--ali-border);
    border-radius: 4px;
    padding: 14px;
}
.ali-panel-card h4 {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--ali-text);
    display: flex;
    align-items: center;
    gap: 6px;
}
.ali-panel-card h4 span { color: var(--ali-orange); font-size: 16px; }
.ali-panel-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.ali-panel-links li a {
    color: #444;
    font-size: 12.5px;
    text-decoration: none;
    transition: color .15s;
    display: flex;
    align-items: center;
    gap: 6px;
}
.ali-panel-links li a:hover { color: var(--ali-orange); }
.ali-panel-links li a::before {
    content: '›';
    color: var(--ali-orange);
    font-weight: bold;
}
.ali-login-card input[type=text],
.ali-login-card input[type=password] {
    width: 100%;
    padding: 7px 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 13px;
    margin-bottom: 8px;
    box-sizing: border-box;
    outline: none;
}
.ali-login-card input:focus { border-color: var(--ali-orange); }
.ali-login-btn {
    width: 100%;
    background: var(--ali-orange);
    color: #fff;
    border: none;
    padding: 9px;
    border-radius: 3px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: background .2s;
}
.ali-login-btn:hover { background: var(--ali-orange-dark); }
.ali-login-links {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 12px;
}
.ali-login-links a { color: var(--ali-blue); text-decoration: none; }
.ali-login-links a:hover { text-decoration: underline; }

/* ==================== TRUST / FEATURE STRIP ==================== */
.ali-trust-strip {
    background: #fff;
    border: 1px solid var(--ali-border);
    margin: 0 auto 16px;
    max-width: 1280px;
    padding: 0 16px;
}
.ali-trust-inner {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 14px 0;
}
.ali-trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    justify-content: center;
    padding: 0 12px;
    border-right: 1px solid #eee;
}
.ali-trust-item:last-child { border-right: none; }
.ali-trust-icon { font-size: 26px; flex-shrink: 0; }
.ali-trust-text strong { font-size: 13px; color: var(--ali-text); display: block; line-height: 1.3; }
.ali-trust-text span { font-size: 11px; color: var(--ali-text-muted); }

/* ==================== QUICK ACCESS CARDS ==================== */
.ali-quick-wrap {
    max-width: 1280px;
    margin: 0 auto 16px;
    padding: 0 16px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.ali-quick-card {
    background: #fff;
    border: 1px solid var(--ali-border);
    border-radius: 4px;
    padding: 18px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--ali-text);
    transition: box-shadow .2s, transform .15s;
}
.ali-quick-card:hover {
    box-shadow: var(--ali-shadow-hover);
    transform: translateY(-2px);
    color: var(--ali-text);
    border-color: var(--ali-orange);
}
.ali-quick-icon {
    font-size: 32px;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff6ee;
    border-radius: 50%;
}
.ali-quick-content h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 3px;
    color: var(--ali-text);
}
.ali-quick-content p {
    font-size: 12px;
    color: var(--ali-text-muted);
    margin: 0;
    line-height: 1.4;
}

/* ==================== SECTION HEADER ==================== */
.ali-section {
    max-width: 1280px;
    margin: 0 auto 16px;
    padding: 0 16px;
}
.ali-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--ali-orange);
}
.ali-section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--ali-text);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}
.ali-section-title .title-accent {
    color: var(--ali-orange);
}
.ali-view-all {
    font-size: 13px;
    color: var(--ali-orange);
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
    padding: 5px 12px;
    border: 1px solid var(--ali-orange);
    border-radius: 3px;
    transition: all .2s;
}
.ali-view-all:hover {
    background: var(--ali-orange);
    color: #fff;
}

/* ==================== PRODUCT CARDS GRID ==================== */
.ali-products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}
.ali-products-grid-wide {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.ali-product-card {
    background: #fff;
    border: 1px solid var(--ali-border);
    border-radius: 4px;
    overflow: hidden;
    transition: box-shadow .2s, transform .15s, border-color .2s;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.ali-product-card:hover {
    box-shadow: var(--ali-shadow-hover);
    transform: translateY(-3px);
    border-color: var(--ali-orange);
}
.ali-product-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
    transition: transform .3s;
}
.ali-product-card:hover .ali-product-img { transform: scale(1.04); }
.ali-product-img-wrap { overflow: hidden; position: relative; }
.ali-badge-gold {
    position: absolute;
    top: 6px;
    left: 6px;
    background: linear-gradient(135deg, #d4a017, #f5c842);
    color: #5a3a00;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 10px;
    letter-spacing: .5px;
    text-transform: uppercase;
}
.ali-product-info {
    padding: 12px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.ali-product-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 36px;
}
.ali-product-title a {
    color: var(--ali-text);
    text-decoration: none;
}
.ali-product-title a:hover { color: var(--ali-orange); }
.ali-product-meta {
    font-size: 11px;
    color: var(--ali-text-muted);
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: auto;
}
.ali-product-company {
    color: var(--ali-blue);
    font-weight: 600;
    font-size: 11px;
}
.ali-product-desc {
    font-size: 11.5px;
    color: #666;
    margin: 6px 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
    min-height: 34px;
}
.ali-product-actions {
    padding: 10px;
    border-top: 1px solid #f5f5f5;
    display: flex;
    gap: 6px;
}
.ali-btn-contact {
    flex: 1;
    background: var(--ali-orange);
    color: #fff;
    border: none;
    padding: 6px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
    text-align: center;
}
.ali-btn-contact:hover { background: var(--ali-orange-dark); color: #fff; }
.ali-btn-inquiry {
    background: #fff;
    color: var(--ali-orange);
    border: 1px solid var(--ali-orange);
    padding: 6px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
    text-align: center;
}
.ali-btn-inquiry:hover { background: #fff6ee; }

/* ==================== BUY OFFERS ROW ==================== */
.ali-buyoffer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.ali-buyoffer-card {
    background: #fff;
    border: 1px solid var(--ali-border);
    border-left: 4px solid var(--ali-orange);
    border-radius: 0 4px 4px 0;
    padding: 14px;
    transition: box-shadow .2s;
}
.ali-buyoffer-card:hover { box-shadow: var(--ali-shadow-hover); }
.ali-buyoffer-card h5 {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 6px;
}
.ali-buyoffer-card h5 a { color: var(--ali-text); text-decoration: none; }
.ali-buyoffer-card h5 a:hover { color: var(--ali-orange); }
.ali-buyoffer-date { font-size: 11px; color: var(--ali-text-muted); margin-bottom: 8px; }
.ali-buyoffer-qty { font-size: 12px; color: var(--ali-green); font-weight: 600; }

/* ==================== CTA BANNER ==================== */
.ali-cta-banner {
    background: linear-gradient(135deg, var(--ali-orange) 0%, var(--ali-red) 100%);
    margin: 0 auto 16px;
    max-width: 1280px;
    padding: 0 16px;
}
.ali-cta-inner {
    padding: 28px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 4px;
    gap: 24px;
}
.ali-cta-text h3 {
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 6px;
}
.ali-cta-text p { color: rgba(255,255,255,.88); font-size: 14px; margin: 0; }
.ali-cta-btns {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}
.ali-cta-btn-white {
    background: #fff;
    color: var(--ali-orange);
    padding: 11px 24px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
    border: none;
    transition: box-shadow .2s, transform .15s;
}
.ali-cta-btn-white:hover { box-shadow: 0 4px 12px rgba(0,0,0,.2); transform: translateY(-1px); color: var(--ali-orange-dark); }
.ali-cta-btn-border {
    background: transparent;
    color: #fff;
    padding: 10px 22px;
    border: 2px solid rgba(255,255,255,.8);
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
    transition: all .2s;
}
.ali-cta-btn-border:hover { background: rgba(255,255,255,.15); border-color: #fff; color: #fff; }

/* ==================== FOOTER ==================== */
.ali-footer {
    background: #2a2a2a;
    color: #ccc;
    padding: 40px 0 0;
    margin-top: 30px;
}
.ali-footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 32px;
    padding-bottom: 30px;
}
.ali-footer-brand img { height: 44px; margin-bottom: 14px; filter: brightness(0) invert(1); }
.ali-footer-brand p { font-size: 13px; color: #999; line-height: 1.7; }
.ali-footer-col h5 {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--ali-orange);
    display: inline-block;
}
.ali-footer-col ul { list-style: none; margin: 0; padding: 0; }
.ali-footer-col ul li { margin-bottom: 8px; }
.ali-footer-col ul li a { color: #999; font-size: 13px; text-decoration: none; transition: color .2s; }
.ali-footer-col ul li a:hover { color: var(--ali-orange); }
.ali-footer-bottom {
    border-top: 1px solid #3a3a3a;
    padding: 16px;
    text-align: center;
    font-size: 12px;
    color: #777;
    max-width: 1280px;
    margin: 0 auto;
}

/* ==================== MESSAGES & ALERTS ==================== */
.ali-msg-bar {
    max-width: 1280px;
    margin: 12px auto 0;
    padding: 0 16px;
}
.ali-msg {
    background: #fff8e1;
    border: 1px solid #ffd54f;
    color: #7a5c00;
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 13px;
}

/* ==================== BANNER AD STRIP ==================== */
.ali-ad-strip {
    background: #fff;
    border-top: 1px solid var(--ali-border);
    border-bottom: 1px solid var(--ali-border);
    text-align: center;
    padding: 8px 0;
}

/* ==================== RESPONSIVE ==================== */
/* Bootstrap 5 handles grid responsiveness, keeping minimal custom adjustments */
@media (max-width: 991px) {
    .ali-hero-banner h1 { font-size: 24px; }
    .ali-hero-subtitle { font-size: 14px; }
    .ali-hero-stats { gap: 15px; }
    .ali-hero-stat strong { font-size: 20px; }
    .ali-footer-inner { grid-template-columns: 1fr 1fr 1fr; }
    .ali-catbar-inner { overflow-x: auto; }
}
@media (max-width: 767px) {
    .ali-hero-banner { padding: 30px 20px; }
    .ali-hero-banner h1 { font-size: 20px; }
    .ali-hero-stats { gap: 10px; }
    .ali-hero-stat { min-width: 60px; }
    .ali-hero-stat strong { font-size: 18px; }
    .ali-hero-btns { flex-direction: column; width: 100%; }
    .ali-btn-primary, .ali-btn-outline { width: 100%; text-align: center; }
    .ali-header-inner { flex-wrap: wrap; }
    .ali-search { flex: 0 0 100%; order: 3; max-width: 100%; margin-top: 8px; }
    .ali-cta-inner { flex-direction: column; text-align: center; }
    .ali-footer-inner { grid-template-columns: 1fr 1fr; }
    .ali-trust-inner { flex-direction: column; gap: 10px; }
    .ali-trust-item { border-right: none; border-bottom: 1px solid #eee; width: 100%; padding-bottom: 10px; }
    .ali-trust-item:last-child { border-bottom: none; }
}
@media (max-width: 575px) {
    .ali-section-header { flex-direction: column; align-items: flex-start !important; }
    .ali-section-title { font-size: 18px; }
    .ali-footer-inner { grid-template-columns: 1fr; }
}


/* ==================== HIDE OLD TEMPLATE ELEMENTS ON INDEX ==================== */
body.page-index .site-header-compact,
body.page-index .main-nav-compact,
body.page-index .site-footer { display: none !important; }
body.page-index #main-layout,
body.page-index main.container { display: block !important; margin: 0 !important; padding: 0 !important; max-width: 100% !important; }

/* ==================== SCROLL BEHAVIOR ==================== */
html { scroll-behavior: smooth; }

/* ==================== UTILITY ==================== */
.ali-divider { height: 16px; }
