/* =========================================
   LUBPOINT DESIGN SYSTEM - PREMIUM MODERN UI
   ========================================= */

:root {
    --primary-navy: #0B1F33;
    --cta-orange: #FF7A00;
    --cta-orange-hover: #E66A00;
    --dark-gray: #1E293B;
    --text-muted: #64748B;
    --bg-light: #F2F4F7;
    --white: #FFFFFF;
    --border-color: #E2E8F0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 20px rgba(11,31,51,0.06);
    --shadow-lg: 0 10px 30px rgba(255,122,0,0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--dark-gray);
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ================= HEADER ================= */
.main-header {
    width: 100%;
}

.top-header {
    background-color: var(--primary-navy);
    padding: 20px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.top-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--white);
    text-decoration: none;
    flex-shrink: 0;
}

.logo .dot {
    color: var(--cta-orange);
}

/* Modern Search Bar */
.search-bar {
    display: flex;
    flex-grow: 1;
    max-width: 650px;
    background: var(--white);
    border-radius: 6px;
    overflow: visible;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 14px 20px;
    border: none;
    outline: none;
    font-size: 15px;
    color: var(--dark-gray);
    border-radius: 6px 0 0 6px;
}

.search-bar button {
    background-color: var(--cta-orange);
    color: var(--white);
    border: none;
    padding: 0 28px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 0 6px 6px 0;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-shrink: 0;
}

.header-actions .text-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
}

.header-actions .text-link i {
    font-size: 18px;
    color: #94A3B8;
    transition: color 0.3s;
}

.header-actions .text-link:hover,
.header-actions .text-link:hover i {
    color: var(--cta-orange);
}

/* Bottom Nav */
.bottom-nav {
    background-color: var(--dark-gray);
    padding: 14px 0;
}

.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-menu a {
    color: #CBD5E1;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-menu a:hover {
    color: var(--white);
}

/* ================= BUTTONS ================= */
.btn-primary {
    background-color: var(--cta-orange);
    color: var(--white) !important;
    padding: 12px 28px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: var(--cta-orange-hover);
    box-shadow: var(--shadow-lg);
    transform: translateY(-1px);
}

.btn-outline {
    background-color: transparent;
    color: var(--white) !important;
    border: 2px solid rgba(255,255,255,0.3);
    padding: 12px 28px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s;
}

.btn-outline:hover {
    border-color: var(--white);
    background-color: rgba(255,255,255,0.05);
}

/* ================= DİNAMİK HERO SLIDER ================= */
.hero-slider-section {
    position: relative;
    height: 80vh;
    min-height: 500px;
    overflow: hidden;
    background: var(--primary-navy);
}
.slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    z-index: 1;
}
.slide.active {
    opacity: 1;
    z-index: 2;
}
.slide-content {
    max-width: 800px;
    padding: 40px;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s ease-in-out 0.3s;
}
.slide.active .slide-content {
    transform: translateY(0);
    opacity: 1;
}

.hero-badge {
    background: rgba(255, 122, 0, 0.15);
    color: var(--cta-orange);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 24px;
    display: inline-block;
    border: 1px solid rgba(255, 122, 0, 0.3);
}

.slide-content h1 {
    font-size: 3.5rem;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 800;
}
.slide-content p {
    font-size: 1.1rem;
    color: #cbd5e1;
    margin-bottom: 30px;
    line-height: 1.6;
}
.slider-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}
.dot-indicator {
    width: 12px; height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: 0.3s;
}
.dot-indicator.active {
    background: var(--cta-orange);
    width: 30px;
    border-radius: 10px;
}
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(11, 31, 51, 0.6);
    color: var(--white);
    border: none;
    width: 50px; height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.slider-arrow:hover { background: var(--cta-orange); }
.prev-arrow { left: 20px; }
.next-arrow { right: 20px; }

/* ================= MODERN DİNAMİK PROMO BANNERLƏR (3-LÜ) ================= */
.promo-section {
    padding: 60px 0;
    background: var(--bg-light);
}
.promo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.promo-card {
    border-radius: 16px;
    color: var(--white);
    position: relative;
    overflow: hidden;
    min-height: 340px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-decoration: none;
    box-shadow: var(--shadow-md);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}
.promo-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(11,31,51,0.15);
}

.promo-bg {
    position: absolute;
    top: 0; left: 0; 
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
    z-index: 1;
}
.promo-card:hover .promo-bg {
    transform: scale(1.1);
}

.promo-overlay {
    position: absolute;
    top: 0; left: 0; 
    width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(11,31,51,0.95) 0%, rgba(11,31,51,0.4) 50%, rgba(11,31,51,0.1) 100%);
    z-index: 2;
    transition: background 0.4s ease;
}
.promo-card:hover .promo-overlay {
    background: linear-gradient(to top, rgba(11,31,51,0.98) 0%, rgba(11,31,51,0.6) 60%, rgba(11,31,51,0.2) 100%);
}

.promo-content { 
    position: relative; 
    z-index: 3; 
    padding: 30px;
    transform: translateY(15px);
    transition: transform 0.4s ease;
}
.promo-card:hover .promo-content {
    transform: translateY(0);
}

.promo-icon {
    width: 54px;
    height: 54px;
    background: rgba(255,122,0,0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,122,0,0.3);
    color: var(--cta-orange);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
    transition: all 0.4s ease;
}
.promo-card:hover .promo-icon {
    background: var(--cta-orange);
    color: var(--white);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 20px rgba(255,122,0,0.3);
}

.promo-content h3 { 
    font-size: 24px; 
    margin-bottom: 10px; 
    line-height: 1.3; 
    font-weight: 700;
}
.promo-content p { 
    font-size: 14px; 
    color: #cbd5e1; 
    margin-bottom: 20px; 
    line-height: 1.6; 
    opacity: 0.8;
    transition: opacity 0.4s ease;
}
.promo-card:hover .promo-content p {
    opacity: 1;
}

.promo-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--cta-orange);
    font-weight: 600;
    font-size: 15px;
}
.promo-link i {
    transition: transform 0.3s ease;
}
.promo-card:hover .promo-link i {
    transform: translateX(6px);
}


/* ================= CATEGORIES SECTION ================= */
.categories-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 32px;
    color: var(--primary-navy);
    font-weight: 800;
    letter-spacing: -0.5px;
}

.view-all {
    color: var(--cta-orange);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s;
}

.view-all:hover {
    color: var(--cta-orange-hover);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.category-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    text-decoration: none;
    color: var(--dark-gray);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.card-icon {
    font-size: 44px;
    color: var(--primary-navy);
    transition: color 0.3s, transform 0.3s;
}

.category-card h3 {
    font-size: 18px;
    font-weight: 700;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: rgba(255, 122, 0, 0.3);
}

.category-card:hover .card-icon {
    color: var(--cta-orange);
    transform: scale(1.1);
}

/* ================= CATALOG PAGE ================= */
.page-title-section {
    background-color: var(--white);
    padding: 30px 0;
    border-bottom: 1px solid var(--border-color);
}
.page-title-section h1 {
    font-size: 28px;
    color: var(--primary-navy);
    margin-bottom: 5px;
}
.page-title-section p {
    color: var(--text-muted);
    font-size: 14px;
}

.catalog-section {
    padding: 50px 0;
}
.catalog-layout {
    display: flex;
    gap: 30px;
}

.sidebar-filters {
    width: 260px;
    flex-shrink: 0;
}
.filter-box {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}
.filter-box h3 {
    font-size: 16px;
    color: var(--primary-navy);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}
.filter-list {
    list-style: none;
}
.filter-list li {
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--dark-gray);
    display: flex;
    align-items: center;
    gap: 10px;
}

.products-grid {
    flex-grow: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.product-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    position: relative;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(255,122,0,0.3);
}

.stock-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 5px;
}
.in-stock { background: #E6F4EA; color: #137333; }
.limited { background: #FEF7E0; color: #B06000; }
.rfq-only { background: #E8F0FE; color: #1A73E8; }

.product-img {
    height: 200px;
    border-bottom: 1px solid var(--border-color);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.product-brand {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 5px;
}
.product-title {
    font-size: 16px;
    color: var(--primary-navy);
    margin-bottom: 10px;
    line-height: 1.4;
}
.oem-code {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.product-action {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}
.product-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-navy);
}
.btn-view {
    background: var(--bg-light);
    color: var(--primary-navy);
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: 0.3s;
}
.btn-view:hover {
    background: var(--cta-orange);
    color: var(--white);
}

/* ================= LIVE SEARCH RESULTS ================= */
#live-search-results {
    position: absolute;
    top: 100%; 
    left: 0;
    width: 100%;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    z-index: 1000;
    display: none; 
    max-height: 400px;
    overflow-y: auto;
}
.ajax-result-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    text-decoration: none;
    color: var(--primary-navy);
    border-bottom: 1px solid #f8fafc;
    transition: background 0.2s;
}
.ajax-result-item:hover {
    background: #f1f5f9;
}
.ajax-result-item img {
    border-radius: 4px;
    margin-right: 12px;
    object-fit: cover;
}
.ajax-result-info {
    display: flex;
    flex-direction: column;
}
.ajax-result-info strong {
    font-size: 14px;
    margin-bottom: 2px;
}
.ajax-result-info span {
    font-size: 12px;
    color: var(--text-muted);
}
.ajax-result-empty {
    padding: 15px;
    color: var(--text-muted);
    font-size: 14px;
    text-align: center;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1024px) {
    .category-grid { grid-template-columns: repeat(3, 1fr); }
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .promo-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .top-header .container { flex-direction: column; gap: 20px; }
    .search-bar { width: 100%; max-width: 100%; order: 3; }
    .header-actions { width: 100%; justify-content: center; gap: 20px; }
    .nav-menu { flex-wrap: wrap; justify-content: center; gap: 15px; }
    
    .hero-slider-section { height: 60vh; }
    .slide-content h1 { font-size: 2.2rem; }
    
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .section-header { flex-direction: column; align-items: flex-start; gap: 15px; }
    
    .promo-grid { grid-template-columns: 1fr; }
    
    .catalog-layout { flex-direction: column; }
    .sidebar-filters { width: 100%; }
}

@media (max-width: 480px) {
    .category-grid { grid-template-columns: 1fr; }
    .products-grid { grid-template-columns: 1fr; }
}
/* 1 və ya az məhsul olanda kartın şaquli uzanmasının qarşısını almaq üçün */
.products-grid {
    align-items: flex-start !important; 
}

.product-card {
    height: max-content !important;
}