/* ================================
   ECOSTORE - STYLES PRINCIPAUX
   Inspiré de DataServices.fr
   Couleurs: #AF1111, #F2F2F2
   ================================ */

/* RESET ET VARIABLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Couleurs DataServices */
    --primary-color: #AF1111;
    --primary-dark: #8B0D0D;
    --primary-light: #DB4128;
    --secondary-color: #F2F2F2;
    --white: #FFFFFF;
    --black: #1A1A1A;
    --gray-dark: #333333;
    --gray-medium: #666666;
    --gray-light: #E0E0E0;
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;
    
    /* Typographie */
    --font-family: 'Roboto', 'Segoe UI', sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    --font-size-4xl: 2.5rem;
    
    /* Espacement */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    /* Autres */
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --transition: all 0.3s ease;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.2);
}

body {
    font-family: var(--font-family);
    color: var(--gray-dark);
    background-color: var(--secondary-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ================================
   HEADER ECOSTORE MODERNE
   ================================ */

.ecostore-header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--primary-color);
}

.main-header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--primary-color);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-sm) 0;
    gap: var(--spacing-lg);
}

.logo-section {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.ecostore-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    position: relative;
}

.ecostore-logo i {
    font-size: 2rem;
    color: var(--primary-color);
}

.ecostore-logo h1 {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.ecostore-logo .tagline {
    font-size: var(--font-size-xs);
    color: var(--gray-medium);
    font-weight: 400;
    position: absolute;
    bottom: -12px;
    right: 0;
}

.back-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--gray-medium);
    text-decoration: none;
    font-size: var(--font-size-sm);
    transition: var(--transition);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius);
}

.back-link:hover {
    color: var(--primary-color);
    background: var(--secondary-color);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    position: relative;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
    transform: translateY(-2px);
}

.logo i {
    font-size: 2rem;
    color: var(--primary-color);
}

.logo h1 {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.logo .tagline {
    font-size: var(--font-size-xs);
    color: var(--gray-medium);
    font-weight: 400;
    position: absolute;
    right: -85px;
    top: 60%;
    transform: translateY(-50%);
}

.main-nav ul,
.ecostore-nav ul {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
    margin: 0;
    padding: 0;
}

.nav-link,
.ecostore-nav a {
    color: var(--gray-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: var(--font-size-base);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius);
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active,
.ecostore-nav a:hover,
.ecostore-nav a.active {
    color: var(--primary-color);
    background: var(--secondary-color);
}

.nav-link.active::after,
.ecostore-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.search-btn,
.user-btn {
    background: none;
    border: none;
    color: var(--gray-dark);
    font-size: var(--font-size-lg);
    cursor: pointer;
    padding: var(--spacing-xs);
    border-radius: var(--border-radius);
    transition: var(--transition);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover,
.user-btn:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
}

.user-btn {
    text-decoration: none;
}

/* ================================
   HERO SECTION
   ================================ */

.hero-section {
    background: linear-gradient(135deg, var(--white) 0%, var(--secondary-color) 100%);
    padding: var(--spacing-2xl) 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.hero-text h2 {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    color: var(--gray-dark);
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

.hero-text .highlight {
    color: var(--primary-color);
}

.hero-description {
    font-size: var(--font-size-lg);
    color: var(--gray-medium);
    margin-bottom: var(--spacing-lg);
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: var(--font-size-sm);
    color: var(--gray-medium);
}

.hero-actions {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.cta-primary,
.cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: var(--font-size-base);
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid var(--primary-color);
}

.cta-primary {
    background: var(--primary-color);
    color: var(--white);
}

.cta-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.cta-secondary {
    background: var(--white);
    color: var(--primary-color);
}

.cta-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
}

.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-xl);
    animation: float 3s ease-in-out infinite;
}

.hero-image i {
    font-size: 10rem;
    color: var(--white);
    opacity: 0.9;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* ================================
   SECTIONS COMMUNES
   ================================ */

.featured-products,
.featured-services {
    padding: var(--spacing-2xl) 0;
}

.featured-services {
    background: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    position: relative;
}

.section-header h3 {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--gray-dark);
    margin-bottom: var(--spacing-xs);
}

.section-header p {
    font-size: var(--font-size-lg);
    color: var(--gray-medium);
    margin-bottom: var(--spacing-md);
}

.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: var(--font-size-base);
    transition: var(--transition);
}

.view-all-link:hover {
    gap: var(--spacing-sm);
}

/* ================================
   CAROUSEL
   ================================ */

.carousel-container {
    position: relative;
    padding: 0 60px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--white);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
    box-shadow: var(--shadow-md);
}

.carousel-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: 0;
}

.carousel-btn.next {
    right: 0;
}

.products-carousel,
.services-carousel {
    display: flex;
    gap: var(--spacing-md);
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: var(--spacing-sm) 0;
}

.products-carousel::-webkit-scrollbar,
.services-carousel::-webkit-scrollbar {
    display: none;
}

.carousel-loader {
    width: 100%;
    text-align: center;
    padding: var(--spacing-xl);
    color: var(--gray-medium);
}

.carousel-loader i {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--spacing-sm);
    color: var(--primary-color);
}

/* ================================
   CARDS PRODUITS/SERVICES
   ================================ */

.product-card,
.service-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    min-width: 300px;
    max-width: 300px;
    height: 420px; /* Hauteur réduite */
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.product-card:hover,
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.card-image {
    width: 100%;
    height: 220px; /* Hauteur augmentée pour mieux voir les produits */
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--gray-light);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Affiche l'image complète sans la couper */
    padding: var(--spacing-sm); /* Padding pour aérer l'image */
    background: var(--white);
}

.card-image i {
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.5;
}

.card-badge {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    background: var(--primary-color);
    color: var(--white);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius);
    font-size: var(--font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
}

.card-badge.success {
    background: var(--success);
}

.card-content {
    padding: var(--spacing-md);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--gray-dark);
    margin-bottom: var(--spacing-xs);
}

.card-description {
    font-size: var(--font-size-sm);
    color: var(--gray-medium);
    margin-bottom: var(--spacing-sm);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3; /* Maximum 3 lignes */
    line-height: 1.5;
    max-height: 4.5em; /* 3 lignes × 1.5 line-height */
}

.card-specs {
    list-style: none;
    margin-bottom: var(--spacing-sm);
}

.card-specs li {
    font-size: var(--font-size-xs);
    color: var(--gray-medium);
    margin-bottom: var(--spacing-xs);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.card-specs li i {
    color: var(--primary-color);
    font-size: 0.7rem;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-sm);
    margin-top: auto; /* Pousse le footer en bas */
    border-top: 1px solid var(--gray-light);
}

.card-price {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--primary-color);
}

.card-action {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: var(--font-size-sm);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.card-action:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

/* ================================
   SECTION AVANTAGES
   ================================ */

.advantages-section {
    padding: var(--spacing-2xl) 0;
    background: var(--secondary-color);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.advantage-card {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-lg);
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.advantage-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-md);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.advantage-icon i {
    font-size: 2.5rem;
    color: var(--white);
}

.advantage-card h4 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--gray-dark);
    margin-bottom: var(--spacing-sm);
}

.advantage-card p {
    font-size: var(--font-size-base);
    color: var(--gray-medium);
    line-height: 1.6;
}

/* ================================
   FOOTER
   ================================ */

.main-footer,
.ecostore-footer {
    background: #1A1C20;
    color: var(--white);
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: var(--spacing-xl);
    max-width: 1400px;
    margin: 0 auto var(--spacing-md);
    padding: 0 var(--spacing-xl);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.footer-logo-img {
    height: 42px;
    width: auto;
    object-fit: contain;
}

.footer-tagline {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
    line-height: 1.4;
}

.footer-links {
    display: contents;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.footer-column h4 {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--white);
    margin: 0 0 var(--spacing-sm) 0;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: var(--font-size-sm);
    transition: var(--transition);
    line-height: 1.6;
}

.footer-column a:hover {
    color: var(--primary-color);
}

.footer-column a i {
    color: var(--primary-color);
    margin-right: var(--spacing-xs);
    font-size: var(--font-size-sm);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) var(--spacing-xl) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 1400px;
    margin: 0 auto;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    font-size: var(--font-size-sm);
}

.footer-badges {
    display: flex;
    gap: var(--spacing-md);
}

.footer-badges span {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.6);
}

/* ================================
   MODAL
   ================================ */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    z-index: 2001;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    background: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
    box-shadow: var(--shadow-sm);
}

.modal-close:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: rotate(90deg);
}

.modal-body {
    padding: var(--spacing-lg);
}

/* ================================
   RESPONSIVE
   ================================ */

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-image {
        width: 300px;
        height: 300px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    
    .logo-img {
        height: 40px;
    }
    
    .hero-text h2 {
        font-size: var(--font-size-3xl);
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .carousel-container {
        padding: 0 40px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-contact p {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-text h2 {
        font-size: var(--font-size-2xl);
    }
    
    .section-header h3 {
        font-size: var(--font-size-2xl);
    }
    
    .product-card,
    .service-card {
        min-width: 250px;
        max-width: 250px;
    }
    
    .carousel-container {
        padding: 0 30px;
    }
    
    .carousel-btn {
        width: 35px;
        height: 35px;
    }
}

/* ================================
   MODAL DE RECHERCHE GLOBALE
   ================================ */

.search-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    align-items: flex-start;
    justify-content: center;
    padding-top: 100px;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.search-modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s;
}

@keyframes slideDown {
    from { 
        transform: translateY(-50px);
        opacity: 0;
    }
    to { 
        transform: translateY(0);
        opacity: 1;
    }
}

.search-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 2px solid #f0f0f0;
}

.search-modal-header h3 {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    padding: 0.5rem;
    transition: var(--transition);
    border-radius: 6px;
}

.close-modal:hover {
    background: #f5f5f5;
    color: var(--primary-color);
}

.search-modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

#globalSearchInput {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: var(--transition);
    font-family: var(--font-family);
}

#globalSearchInput:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(175, 17, 17, 0.1);
}

.search-results {
    margin-top: 1.5rem;
}

.search-hint {
    text-align: center;
    color: #999;
    padding: 2rem;
    font-style: italic;
}

.no-results {
    text-align: center;
    padding: 3rem 1rem;
    color: #999;
}

.no-results i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.search-category {
    margin-bottom: 2rem;
}

.search-category h4 {
    color: var(--primary-color);
    font-size: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-items {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.search-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.search-item:hover {
    background: #f0f0f0;
    transform: translateX(5px);
}

.search-item-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.search-page-icon {
    background: linear-gradient(135deg, #4F46E5, #3730A3);
}

.search-item-info {
    flex: 1;
    min-width: 0;
}

.search-item-info h5 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    color: var(--black);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-item-ref {
    margin: 0;
    font-size: 0.75rem;
    color: #999;
}

.search-item-description {
    margin: 0.25rem 0 0 0;
    font-size: 0.85rem;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-item-price {
    margin: 0.25rem 0 0 0;
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
}

.search-suggestion {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

.search-item > i {
    color: #ccc;
    font-size: 0.9rem;
}

.view-all-results {
    display: inline-block;
    margin-top: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.view-all-results:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .search-modal {
        padding-top: 50px;
    }
    
    .search-modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .search-item {
        padding: 0.75rem;
    }
    
    .search-item-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}
