/* =======================================================
   ALPHA THEME DESIGN - COMMON STYLES (HOMEPAGE)
   Version: 4.0 (Final Master)
   Scope: Hero, Brand Grid, Product Cards, Moto Specifics
   ======================================================= */

/* --- 1. GLOBAL LAYOUT --- */
.alpha-section {
    padding: 60px 20px;
    background: #ffffff;
    position: relative;
}
.alpha-section:nth-child(even) {
    background: #f8f9fa; /* অল্টারনেট সেকশন কালার */
}

.alpha-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    position: relative;
}

/* --- 2. HERO SECTION (DARK MODERN) --- */
.alpha-hero-section {
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    padding: 80px 20px 100px;
    text-align: center;
    color: white;
    position: relative;
    overflow: visible; /* সার্চ রেজাল্ট ড্রপডাউন যাতে কেটে না যায় */
    z-index: 10;
}

.hero-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.2;
    color: #fff;
}
.hero-title .highlight { color: #4facfe; }

.hero-subtitle {
    font-size: 18px;
    color: #e0e0e0;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Search Bar */
.hero-search-wrapper {
    max-width: 700px;
    margin: 0 auto 30px;
    position: relative;
    z-index: 100;
}

.search-input-group {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 50px;
    padding: 5px 5px 5px 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: transform 0.3s;
}
.search-input-group:focus-within {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

.search-icon {
    font-size: 20px;
    color: #888;
    margin-right: 10px;
}

.hero-search-input {
    border: none;
    outline: none;
    background: transparent;
    width: 100%;
    font-size: 16px;
    color: #333;
    padding: 12px 0;
}

.hero-search-btn {
    background: #d63638;
    color: white;
    border: none;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
}
.hero-search-btn:hover { background: #b52b2d; }

/* Ajax Search Results Box (Hero) */
.hero-results-box {
    position: absolute;
    top: 100%;
    left: 15px;
    right: 15px;
    background: white;
    border-radius: 12px;
    margin-top: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    z-index: 200;
    text-align: left;
    overflow: hidden;
    display: none; /* JS will toggle */
}

/* Trending Tags */
.hero-tags { font-size: 14px; color: #ccc; margin-top: 20px; }
.hero-tags span { font-weight: bold; color: #fff; margin-right: 10px; }
.hero-tags a {
    color: #4facfe;
    text-decoration: none;
    margin-right: 10px;
    background: rgba(255,255,255,0.1);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 13px;
    display: inline-block;
    margin-bottom: 5px;
}
.hero-tags a:hover { background: rgba(255,255,255,0.2); color: white; }


/* --- 3. SECTION HEADERS --- */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #eee;
    padding-bottom: 12px;
}
.section-title {
    font-size: 26px;
    font-weight: 700;
    color: #333;
    margin: 0;
}
.section-title .highlight { color: #d63638; }

.view-all-btn {
    color: #666;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: flex; align-items: center; gap: 5px;
    transition: 0.3s;
}
.view-all-btn:hover { color: #d63638; }


/* --- 4. BRAND GRID (Universal) --- */
.brand-grid-wrapper {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    overflow-x: auto;
    padding: 10px 5px 20px 5px;
    
    /* Hide Scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.brand-grid-wrapper::-webkit-scrollbar { display: none; }

.brand-item {
    min-width: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: white;
    padding: 15px 10px;
    border-radius: 12px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}
.brand-item:hover {
    transform: translateY(-5px);
    border-color: #d63638;
    box-shadow: 0 8px 15px rgba(214, 54, 56, 0.15);
}

.brand-logo-box {
    width: 50px;
    height: 50px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    overflow: hidden;
    border: 1px solid #f5f5f5;
    padding: 4px; /* Padding for logo inside circle */
}
.actual-brand-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.brand-icon {
    font-size: 22px;
    font-weight: bold;
    color: #555;
}
.brand-name {
    font-size: 13px;
    font-weight: 600;
    color: #444;
    text-align: center;
}


/* --- 5. PRODUCT CARDS (Mobile & Moto) --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 20px;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    position: relative;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.12);
    border-color: #eee;
}

/* Thumbnail Area */
.product-thumb {
    position: relative;
    height: 230px;
    background: #fff;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.thumb-link {
    display: block;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-thumb img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}
.product-card:hover .product-thumb img {
    transform: scale(1.08);
}

/* Compare Button (Absolute & High Z-Index) */
.card-cmp-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 50; /* Ensure clickable over image link */
    background: rgba(255,255,255,0.95);
    border: 1px solid #d63638;
    color: #d63638;
    padding: 6px 12px;
    font-size: 11px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    
    /* Animation */
    opacity: 0; 
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.card-cmp-btn:hover {
    background: #d63638;
    color: white;
    box-shadow: 0 4px 12px rgba(214, 54, 56, 0.3);
}
.product-card:hover .card-cmp-btn {
    opacity: 1;
    transform: translateY(0);
}

/* Info Area */
.product-info {
    padding: 15px;
    border-top: 1px solid #f9f9f9;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.product-title {
    font-size: 15px;
    margin: 0 0 8px 0;
    line-height: 1.4;
    font-weight: 600;
    /* Limit to 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 42px; 
}
.product-title a { color: #333; text-decoration: none; transition: 0.2s; }
.product-title a:hover { color: #d63638; }

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}
.price {
    font-weight: 800;
    color: #d63638;
    font-size: 16px;
}

/* Status Badges */
.status-badge {
    font-size: 10px;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
}
.status-badge.official { background: #e6fffa; color: #006c5f; }
.status-badge.unofficial { background: #fff5f5; color: #c53030; }
.status-badge.rumored { background: #fffaf0; color: #9c4221; }


/* --- 6. MOTO SPECIFIC STYLES --- */
.moto-section {
    background: #f0f4f8; /* Distinct background for bikes */
}

/* EMI Badge */
.emi-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #27ae60;
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    z-index: 5;
}

/* Moto Card Hover (Blue tint) */
.moto-section .product-card:hover {
    border-color: #4facfe;
    box-shadow: 0 10px 25px rgba(79, 172, 254, 0.15);
}


/* --- 7. RESPONSIVE DESIGN --- */
@media (max-width: 768px) {
    .alpha-section { padding: 40px 15px; }
    
    .hero-title { font-size: 30px; }
    .hero-search-btn { padding: 12px 20px; }
    
    .product-grid {
        grid-template-columns: 1fr 1fr; /* 2 columns on mobile */
        gap: 10px;
    }
    
    .product-thumb { height: 160px; padding: 10px; }
    .product-title { font-size: 13px; height: 36px; }
    .price { font-size: 14px; }
    
    /* Always show Compare button on Mobile */
    .card-cmp-btn {
        opacity: 1;
        transform: translateY(0);
        padding: 5px 8px;
        font-size: 10px;
        bottom: 8px; right: 8px;
        background: rgba(255,255,255,0.9);
        border-color: #ddd;
        color: #555;
    }
    
    /* Moto Badge smaller */
    .emi-badge { font-size: 9px; padding: 2px 6px; }
}

