/* ==========================================================================
   DİZAYN MIKNATIS - GLOBAL INDUSTRIAL DESIGN SYSTEM (B2B & ENGINEERING)
   ========================================================================== */

:root {
    /* Core Industrial Brand Palette */
    --primary-color: #0284c7;       /* Precision Brand Blue */
    --accent-color: #0369a1;        /* Darker Blue for hover/active */
    --secondary-color: #0b1526;     /* Deep Industrial Navy */
    --dark-color: #0f172a;          /* Dark Graphite */
    --slate-color: #1e293b;         /* Industrial Slate */
    
    --success-color: #16a34a;       /* Clean Green / WhatsApp */
    --danger-color: #dc2626;        /* Controlled Technical Red Accent */
    --warning-color: #d97706;       /* Industrial Amber Warning */
    --info-color: #0284c7;          /* Tech Info Blue */
    
    /* Backgrounds & Neutrals */
    --light-color: #f8fafc;         /* Light Industrial Gray */
    --bg-subtle: #f1f5f9;           /* Secondary Neutral Surface */
    --bg-card: #ffffff;             /* Crisp Card Surface */
    --text-color: #1e293b;          /* Primary Body Text (Slate-800) */
    --text-muted: #64748b;          /* Secondary Muted Text */
    --text-light: #94a3b8;          /* Light Slate Metadata */
    --border-color: #e2e8f0;        /* Crisp 1px Surface Border */
    --border-dark: rgba(255, 255, 255, 0.08);

    /* Industrial Border Radii (4px - 8px, No Bubble Pills) */
    --radius-xs: 3px;
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;

    /* Restrained Engineering Box Shadows */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.03);
    --shadow-hover: 0 8px 20px rgba(0, 0, 0, 0.08);

    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --font-mono: 'Consolas', 'Menlo', 'Monaco', monospace;

    /* Global Max Container */
    --dm-container-max: 1280px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    font-size: 15.5px;
    line-height: 1.65;
    color: var(--text-color);
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: var(--dm-container-max) !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--dark-color);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

/* ====================
   Global Page Hero Banner (Industrial Dark)
   ==================== */
.dm-page-hero {
    background-color: #0b121e;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 36px 36px;
    padding: 55px 0 45px;
    color: #ffffff;
    border-bottom: 1px solid #1e293b;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.dm-page-hero h1 {
    font-size: 2.35rem;
    font-weight: 800;
    color: #ffffff !important;
    letter-spacing: -0.025em;
    margin-bottom: 12px;
}

.dm-page-hero p {
    color: #94a3b8;
    font-size: 1.05rem;
    max-width: 780px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ====================
   Industrial Cards & Containers
   ==================== */
.card, .dm-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md) !important;
    background-color: #ffffff;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    overflow: hidden;
}

.card:hover, .dm-card:hover {
    border-color: #cbd5e1 !important;
    box-shadow: var(--shadow-hover) !important;
    transform: translateY(-2px);
}

.card-header {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 1.25rem;
    font-weight: 700;
}

.card-footer {
    background-color: #ffffff;
    border-top: 1px solid var(--border-color);
    padding: 1rem 1.25rem;
}

/* ====================
   Industrial Buttons
   ==================== */
.btn {
    padding: 0.625rem 1.35rem;
    border-radius: var(--radius-sm) !important;
    font-weight: 600;
    font-family: var(--font-heading);
    font-size: 0.92rem;
    letter-spacing: 0.2px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #ffffff !important;
}

.btn-primary:hover {
    background-color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn-outline-primary {
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    background-color: transparent !important;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

.btn-success {
    background-color: var(--success-color) !important;
    border-color: var(--success-color) !important;
    color: #ffffff !important;
}

.btn-success:hover {
    background-color: #15803d !important;
    border-color: #15803d !important;
}

.btn-outline-secondary {
    color: #334155 !important;
    border-color: #cbd5e1 !important;
    background-color: transparent !important;
}

.btn-outline-secondary:hover {
    background-color: #f1f5f9 !important;
    border-color: #94a3b8 !important;
    color: #0f172a !important;
}

/* ====================
   Technical Badges & Spec Tags
   ==================== */
.badge, .dm-badge {
    border-radius: var(--radius-xs) !important;
    font-weight: 600;
    font-size: 0.78rem;
    padding: 4px 8px;
    letter-spacing: 0.3px;
}

.dm-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background-color: var(--light-color);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: var(--radius-xs);
}

/* ====================
   Sections & Layout Spacing
   ==================== */
section {
    padding: 4.5rem 0;
}

.section-heading-block {
    margin-bottom: 2.75rem;
}

.section-heading-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark-color);
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.section-heading-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 680px;
    line-height: 1.6;
}

/* ====================
   Buttons
   ==================== */

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    /* Slightly more square */
    font-weight: 600;
    font-family: var(--font-heading);
    transition: all 0.2s ease;
    letter-spacing: 0.025em;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(185, 28, 28, 0.3);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(185, 28, 28, 0.3);
}

/* ====================
   Sections
   ==================== */

section {
    padding: 4rem 0;
}

section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
}

/* ====================
   Footer
   ==================== */

footer {
    background-color: var(--dark-color);
}

footer h5,
footer h6 {
    color: #fff;
    margin-bottom: 1rem;
}

footer a {
    color: #adb5bd;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #fff;
    text-decoration: none;
}

footer .social-links a {
    display: inline-block;
    margin-right: 1rem;
    transition: transform 0.3s ease;
}

footer .social-links a:hover {
    transform: scale(1.1);
}

/* ====================
   Breadcrumb
   ==================== */

.breadcrumb {
    background-color: var(--light-color);
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--secondary-color);
}

/* ====================
   Product Grid
   ==================== */

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    position: relative;
}

.product-card .card-img-top {
    object-fit: contain !important;
    padding: 1rem;
    background-color: #fff;
    height: 250px !important;
    /* Ensure height persists */
    width: 100%;
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--danger-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
}

/* ====================
   Image Gallery
   ==================== */

.product-gallery {
    position: relative;
}

.product-gallery img {
    border-radius: 0.5rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.product-gallery img:hover {
    transform: scale(1.05);
}

.gallery-thumbnails {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.gallery-thumbnails img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 0.25rem;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.gallery-thumbnails img:hover,
.gallery-thumbnails img.active {
    opacity: 1;
}

/* ====================
   Pagination
   ==================== */

.pagination {
    margin-top: 2rem;
}

.page-link {
    color: var(--primary-color);
    border-color: #dee2e6;
    padding: 0.5rem 0.75rem;
}

.page-link:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* ====================
   Loading Animation
   ==================== */

.loading {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ====================
   Responsive
   ==================== */

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    section h2 {
        font-size: 2rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .card-img-top {
        height: 200px;
    }
}

/* ====================
   Utilities
   ==================== */

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.shadow {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.shadow-lg {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

.sticky-top {
    position: sticky;
    top: 0;
    z-index: 1020;
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

.text-justify {
    text-align: justify;
}

/* SEO image optimization */
/* ====================
   New Homepage Layout
   ==================== */

/* Category Sidebar */
.category-sidebar .list-group-header {
    background-color: var(--secondary-color);
    color: white;
    padding: 1rem 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    border-radius: 6px 6px 0 0;
}

.category-sidebar .list-group {
    border-radius: 0 0 6px 6px;
    overflow: hidden;
}

.category-sidebar .list-group-item {
    border: none;
    border-bottom: 1px solid #edf2f7;
    padding: 0.85rem 1.25rem;
    font-size: 0.95rem;
    color: var(--text-color);
    transition: all 0.2s ease;
    background-color: white;
}

.category-sidebar .list-group-item:last-child {
    border-bottom: none;
}

.category-sidebar .list-group-item:hover {
    background-color: #f8fafc;
    color: var(--primary-color);
    padding-left: 1.5rem;
    border-left: 3px solid var(--primary-color);
}

/* Feature Boxes (Center Top) */
.feature-box {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.feature-box:hover {
    background-color: white;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.feature-box a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 600;
    font-size: 0.9rem;
    display: block;
}

.feature-box i {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.feature-box:hover i {
    color: var(--primary-color);
}

/* Detailed Content Area */
.content-area h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.5rem;
}

.content-area p {
    color: #6c757d;
    text-align: justify;
}

/* Announcement Sidebar (Right) */
.announcement-box {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1.5rem;
}

.announcement-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #adb5bd;
    margin-bottom: 1.5rem;
    border-bottom: 1px dashed #dee2e6;
    padding-bottom: 0.5rem;
}

.announcement-item {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed #e9ecef;
}

.announcement-item:last-child {
    border-bottom: none;
}

.announcement-item a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    transition: color 0.2s ease;
}

.announcement-item a:hover {
    color: var(--dark-color);
    text-decoration: underline;
}

/* Markalar / Search Box (Left Top) */
.sidebar-box {
    background-color: #e9ecef;
    padding: 1rem;
    border-radius: 0.25rem;
    margin-bottom: 1.5rem;
}

.sidebar-box h5 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.sidebar-box p {
    font-size: 0.8rem;
    color: #6c757d;
}

/* ====================
   DataTables & Technical Tables Custom Styles
   ==================== */

/* ====================
   DataTables & Technical Tables Custom Styles
   ==================== */

.table-container {
    background: #ffffff;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.04);
    margin-bottom: 2rem;
    border: 1px solid #cbd5e1;
    width: 100%;
}

.post-content .table-responsive {
    margin: 1.5rem 0;
}

table.datatable {
    border-collapse: collapse !important;
    width: 100% !important;
    margin-bottom: 1rem !important;
    font-size: 0.9rem;
    border: 1px solid #cbd5e1 !important;
}

table.datatable thead th,
.table-dark th {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%) !important;
    color: #ffffff !important;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.825rem;
    letter-spacing: 0.5px;
    padding: 12px 14px !important;
    border-bottom: 3px solid #0284C7 !important;
    border-top: none !important;
    border-left: 1px solid #334155 !important;
    border-right: 1px solid #334155 !important;
    vertical-align: middle;
}

table.datatable tbody td {
    padding: 10px 14px !important;
    vertical-align: middle;
    border-bottom: 1px solid #e2e8f0 !important;
    border-right: 1px solid #f1f5f9 !important;
    color: #1e293b;
}

table.datatable.table-striped tbody tr:nth-of-type(odd) {
    background-color: #f8fafc;
}

table.datatable tbody tr:hover {
    background-color: #f1f5f9 !important;
}

.dataTables_wrapper {
    font-size: 0.9rem;
    color: #475569;
}

.dataTables_wrapper .dataTables_filter input {
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 6px 12px;
    margin-left: 8px;
    outline: none;
    transition: all 0.2s ease;
}

.dataTables_wrapper .dataTables_filter input:focus {
    border-color: #0284C7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.page-item.active .page-link {
    background-color: #0F172A !important;
    border-color: #0F172A !important;
}

.page-link {
    color: #0F172A;
    border-radius: 6px;
    margin: 0 2px;
}

.dataTables_info {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 12px;
}

/* DataTables Enhancements */
.column-filter {
    font-size: 0.75rem !important;
    padding: 4px 8px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 4px;
    width: 100%;
    margin-top: 5px;
    background: #ffffff;
    color: #1e293b;
}

.column-filter:focus {
    background: #ffffff;
    border-color: #0284C7 !important;
    outline: none;
}

.filters th {
    padding: 6px 10px !important;
    background: #ffffff !important;
    border-top: 1px solid #d0e3f4 !important;
    border-bottom: 1px solid #d0e3f4 !important;
}

/* Fixed Column Styling */
.DTFC_LeftBodyLiner {
    overflow-x: hidden !important;
}

.DTFC_LeftWrapper, 
.DTFC_LeftBodyWrapper,
.DTFC_LeftHeadWrapper {
    box-shadow: 5px 0 10px rgba(0,0,0,0.05);
    z-index: 10;
    background: #fff !important;
}

table.dataTable thead tr.filters th input::placeholder {
    color: #94a3b8;
    font-weight: normal;
    font-style: italic;
}

/* Adjust table responsive wrapper for mobile sticky headers/columns */
.dataTables_scroll {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #cbd5e1;
}

/* ==========================================
   Header Advanced Search & Autocomplete (Compact & Sleek)
   ========================================== */

/* ==========================================
   Header & Navigation (Industrial Precision System)
   ========================================== */

.top-info-bar {
    background: #0b121e;
    color: #94a3b8;
    font-size: 0.815rem;
    border-bottom: 1px solid #1e293b;
    letter-spacing: 0.2px;
}

.dm-topbar-tagline {
    font-weight: 500;
    color: #cbd5e1;
}

.dm-topbar-link {
    color: #cbd5e1 !important;
    text-decoration: none !important;
    transition: color 0.15s ease;
    font-weight: 500;
}

.dm-topbar-link:hover {
    color: #ffffff !important;
}

.dm-topbar-whatsapp {
    color: #86efac !important;
}

.dm-topbar-whatsapp:hover {
    color: #4ade80 !important;
}

.navbar-industrial {
    background: #ffffff;
    border-bottom: 1px solid var(--border-color, #e2e8f0);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.navbar-brand-logo {
    height: 48px !important;
    width: auto;
    object-fit: contain;
    transition: opacity 0.2s ease;
}

.navbar-nav .nav-link {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.915rem;
    font-weight: 600;
    color: #1e293b;
    padding: 0.6rem 0.85rem;
    transition: color 0.15s ease;
    border-radius: 4px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--dm-accent, #0284c7);
}

.navbar-nav .nav-link.active {
    font-weight: 700;
}

/* Technical Product Catalog Dropdown */
.catalog-dropdown-menu {
    min-width: 560px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.catalog-dropdown-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    padding: 12px;
    background: #ffffff;
}

.catalog-item-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 4px;
    text-decoration: none !important;
    color: #1e293b !important;
    font-size: 0.88rem;
    font-weight: 600;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.catalog-item-link:hover {
    background-color: #f1f5f9;
    color: var(--dm-accent, #0284c7) !important;
}

.catalog-item-bullet {
    width: 6px;
    height: 6px;
    border-radius: 1px;
    background-color: var(--dm-accent, #0284c7);
    flex-shrink: 0;
}

.catalog-dropdown-footer {
    background: #f8fafc;
    padding: 10px 16px;
    border-top: 1px solid #f1f5f9;
}

/* Sectors Dropdown */
.sector-nav-dropdown {
    min-width: 290px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 6px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.sector-nav-dropdown .dropdown-item {
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #1e293b;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.sector-nav-dropdown .dropdown-item:hover {
    background-color: #f1f5f9;
    color: var(--dm-accent, #0284c7);
}

/* Header Quote CTA Button */
.btn-header-quote {
    background: var(--dm-accent, #0284c7);
    color: #ffffff !important;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.86rem;
    padding: 7px 15px;
    border-radius: 4px;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none !important;
    transition: background-color 0.15s ease;
    white-space: nowrap;
}

.btn-header-quote:hover {
    background: #0369a1;
    color: #ffffff !important;
}

/* ==========================================
   Header Advanced Search & Autocomplete
   ========================================== */

.header-search-nav-item {
    position: relative;
    display: flex;
    align-items: center;
}

.header-search-wrapper {
    position: relative;
    width: 175px;
    transition: width 0.2s ease;
}

.header-search-wrapper:focus-within {
    width: 220px;
}

.header-search-form {
    margin: 0;
    width: 100%;
}

.search-input-group {
    height: 34px;
    border: 1px solid #cbd5e1;
    border-radius: 4px !important;
    background-color: #f8fafc;
    padding: 2px 4px 2px 2px;
    transition: border-color 0.15s ease, background-color 0.15s ease;
    display: flex;
    align-items: center;
}

.search-input-group:focus-within {
    border-color: var(--dm-accent, #0284c7);
    background-color: #ffffff;
    box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.15);
}

.search-icon-addon {
    background: transparent !important;
    border: none !important;
    padding: 0 4px 0 8px !important;
    color: #64748b;
    font-size: 11.5px;
    display: flex;
    align-items: center;
}

.search-input-group:focus-within .search-icon-addon {
    color: var(--dm-accent, #0284c7);
}

.search-input {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    font-size: 12.5px !important;
    padding: 0 4px !important;
    height: 28px !important;
    color: #0f172a !important;
    font-weight: 500;
}

.search-input:focus,
.search-input:focus-visible,
.search-input:active {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

.search-input::placeholder {
    color: #94a3b8;
    font-size: 12px;
    font-weight: 400;
}

.search-clear-btn {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    color: #94a3b8 !important;
    padding: 0 5px !important;
    font-size: 11px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.15s ease;
}

.search-clear-btn:hover {
    color: #0f172a !important;
}

.search-submit-btn {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background-color: var(--dm-accent, #0284c7) !important;
    color: #ffffff !important;
    border-radius: 3px !important;
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    padding: 0 !important;
    font-size: 10px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s ease !important;
}

.search-submit-btn:hover {
    background-color: #0369a1 !important;
}

/* Dropdown Results Box */
.search-autocomplete-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    width: 380px;
    max-width: 92vw;
    background: #ffffff;
    border-radius: 4px;
    border: 1px solid #cbd5e1;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    z-index: 1060;
    overflow: hidden;
}

.search-dropdown-header {
    padding: 8px 12px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.search-header-title {
    font-size: 11px;
    font-weight: 700;
    color: #334155;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.search-count-badge {
    font-size: 10.5px;
    background: #e2e8f0;
    color: #334155;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 3px;
}

.search-results-list {
    max-height: 340px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.search-results-list::-webkit-scrollbar {
    width: 4px;
}
.search-results-list::-webkit-scrollbar-track {
    background: #f8fafc;
}
.search-results-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 2px;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    text-decoration: none !important;
    color: inherit !important;
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.15s ease;
    gap: 10px;
    border-left: 3px solid transparent;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover,
.search-result-item.active {
    background-color: #f8fafc;
    border-left-color: var(--dm-accent, #0284c7);
}

.search-item-thumb {
    width: 40px;
    height: 40px;
    border-radius: 3px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.search-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 2px;
}

.search-item-content {
    min-width: 0;
}

.search-item-title {
    font-size: 12.5px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 1px;
    line-height: 1.25;
}

.search-result-item:hover .search-item-title,
.search-result-item.active .search-item-title {
    color: var(--dm-accent, #0284c7);
}

.search-item-category {
    font-size: 10px;
    padding: 1px 5px;
    border-radius: 2px;
    font-weight: 500;
    background: #f1f5f9;
    color: #475569;
}

.search-match-tag {
    font-size: 9px;
    padding: 1px 4px;
    border-radius: 2px;
    font-weight: 600;
    text-transform: uppercase;
}

.search-item-snippet {
    font-size: 11px;
    color: #64748b;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.search-highlight {
    background: #fef08a;
    color: #854d0e;
    font-weight: 700;
    padding: 0 2px;
    border-radius: 2px;
}

.search-arrow-icon {
    font-size: 11px;
    color: #94a3b8;
    transition: transform 0.2s ease, color 0.2s ease;
}

.search-result-item:hover .search-arrow-icon,
.search-result-item.active .search-arrow-icon {
    transform: translateX(2px);
    color: var(--dm-accent, #0284c7);
}

.search-dropdown-footer {
    padding: 8px 12px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.search-view-all-btn {
    font-weight: 600;
    border-radius: 3px !important;
    background-color: var(--dm-accent, #0284c7) !important;
    border-color: var(--dm-accent, #0284c7) !important;
    padding: 5px 12px !important;
    font-size: 11.5px !important;
    transition: background-color 0.15s ease !important;
}

.search-view-all-btn:hover {
    background-color: #0369a1 !important;
}

/* Mobile responsive styles */
@media (max-width: 991.98px) {
    .header-search-nav-item {
        margin-top: 8px !important;
        margin-bottom: 8px !important;
        width: 100%;
    }
    
    .header-search-wrapper {
        width: 100% !important;
        max-width: 100% !important;
    }

    .header-search-wrapper:focus-within {
        width: 100% !important;
    }

    .search-autocomplete-dropdown {
        position: static;
        width: 100%;
        max-width: 100%;
        margin-top: 6px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }
    
    .catalog-dropdown-menu {
        min-width: 100%;
    }
    
    .catalog-dropdown-grid {
        grid-template-columns: 1fr;
    }
}