/**
 * Archive Style - Electric Motors Design
 * Charte: #5ecc0f (Primary Green), Montserrat + Open Sans
 */

 /* ============================================
    VARIABLES
    ============================================ */
 :root {
     --em-primary: #5ecc0f;
     --em-primary-dark: #00c866;
     --em-secondary: #1e293b;
     --em-text: #334155;
     --em-text-light: #64748b;
     --em-bg-light: #f8fafc;
     --em-border: #e2e8f0;
     --em-radius: 16px;
     --em-radius-large: 20px;
     --em-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
     --em-shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.15);
     --em-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
 }
 
 /* ============================================
    BASE STYLES
    ============================================ */
 .em-archive * {

     font-family: 'Open Sans', sans-serif;
     box-sizing: border-box;
 } 
 .em-archive  {

  width: 100%;
 }
 
 .em-archive h1,
 .em-archive h2,
 .em-archive h3,
 .em-archive h4,
 .em-archive .card-title,
 .em-archive .filter-label {
     font-family: 'Montserrat', sans-serif;
 }
 
 .container {
     max-width: 1200px;
     margin: 0 auto;
     padding: 0 20px;
 }
 
 /* ============================================
    HERO SECTION
    ============================================ */
 .em-archive-hero {
     background: linear-gradient(135deg, var(--em-secondary) 0%, #0f172a 100%);
     padding: 100px 0 80px;
     position: relative;
     overflow: hidden;
 }
 
 .hero-pattern {
     position: absolute;

     top: 0;
     left: 0;
     right: 0;
     bottom: 0;
     background-image: 
         radial-gradient(circle at 20% 50%, var(--em-primary) 0%, transparent 50%),
         radial-gradient(circle at 80% 80%, var(--em-primary) 0%, transparent 50%);
     opacity: 0.3;
 }
 
 .hero-content {
     position: relative;
     z-index: 1;
     text-align: center;
     color: white;
 }
 
 /* Breadcrumbs */
 .breadcrumbs {
     margin-bottom: 25px;
     font-size: 14px;
     font-weight: 600;
     opacity: 0.9;
 }
 
 .breadcrumbs a {
     color: var(--em-primary);
     text-decoration: none;
     transition: opacity 0.3s ease;
 }
 
 .breadcrumbs a:hover {
     opacity: 0.8;
 }
 
 .breadcrumbs .separator {
     margin: 0 10px;
     opacity: 0.5;
 }
 
 .breadcrumbs .current {
     color: white;
 }
 
 /* Archive Title */
 .archive-title {
    color: white;
     font-size: 56px;
     font-weight: 800;
     margin: 0 0 20px 0;
     letter-spacing: -1px;
     line-height: 1.1;
 }
 
 /* Description */
 .archive-description {
     max-width: 700px;
     margin: 0 auto 30px;
     font-size: 18px;
     line-height: 1.7;
     opacity: 0.95;
 }
 
 .archive-description p {
     margin: 0;
 }
 
 /* Count Badge */
 .count-badge {
     display: inline-flex;
     align-items: center;
     gap: 12px;
     background: var(--em-primary);
     color: var(--em-secondary);
     padding: 12px 28px;
     border-radius: 50px;
     font-weight: 700;
     font-size: 16px;
     box-shadow: 0 8px 24px rgba(0, 230, 118, 0.3);
 }
 
 .count-badge .icon {
     font-size: 20px;
 }
 
 /* ============================================
    FILTER BAR
    ============================================ */
    .em-filter-bar {
        background: #fff;
        box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
        border-bottom: 3px solid var(--em-primary);
        padding: 20px;
        position: relative;
        top: 0;
    }
 .filters-wrapper {
     display: flex;
     align-items: flex-end;
     gap: 20px;
     flex-wrap: wrap;
 }
 
 .filter-group {
     flex: 1;
     min-width: 200px;
 }
 
 .filter-label {
     display: flex;
     align-items: center;
     gap: 8px;
     font-size: 13px;
     font-weight: 700;
     color: var(--em-secondary);
     margin-bottom: 8px;
     text-transform: uppercase;
     letter-spacing: 0.5px;
 }
 
 .filter-label .icon {
     font-size: 16px;
 }
 
 .filter-select {
     width: 100%;
     padding: 14px 18px;
     border: 2px solid var(--em-border);
     border-radius: 10px;
     font-size: 15px;
     font-weight: 600;
     font-family: 'Montserrat', sans-serif;
     background: white;
     color: var(--em-secondary);
     cursor: pointer;
     transition: var(--em-transition);
 }
 
 .filter-select:hover {
     border-color: var(--em-primary);
 }
 
 .filter-select:focus {
     outline: none;
     border-color: var(--em-primary);
     box-shadow: 0 0 0 3px rgba(0, 230, 118, 0.1);
 }
 
 /* View Toggle */
 .view-toggle {
     display: flex;
     gap: 8px;
 }
 
 .view-btn {
     display: flex;
     align-items: center;
     gap: 8px;
     padding: 14px 24px;
     border: 2px solid var(--em-border);
     background: white;
     color: var(--em-text);
     border-radius: 10px;
     font-weight: 700;
     font-family: 'Montserrat', sans-serif;
     font-size: 14px;
     cursor: pointer;
     transition: var(--em-transition);
 }
 
 .view-btn:hover {
     border-color: var(--em-primary);
     color: var(--em-primary);
 }
 
 .view-btn.active {
     background: var(--em-primary);
     color: var(--em-secondary);
     border-color: var(--em-primary);
 }
 
 .view-btn .icon {
     font-size: 18px;
 }
 
 /* ============================================
    POSTS GRID
    ============================================ */
 .em-archive-content {
     padding: 60px 0;
     background: var(--em-bg-light);
 }
 
 .posts-grid {
     display: grid;
     grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
     gap: 30px;
     margin-bottom: 60px;
 }
 
 /* List View */
 .posts-grid.list-view {
     grid-template-columns: 1fr;
 }
 
 .list-view .post-card {
     display: grid;
     grid-template-columns: 320px 1fr;
     gap: 30px;
 }
 
 .list-view .card-image {
     height: 100%;
     min-height: 280px;
 }
 
 .list-view .card-content {
     display: flex;
     flex-direction: column;
     justify-content: space-between;
 }
 
 /* ============================================
    POST CARD
    ============================================ */
 .post-card {
     background: white;
     border-radius: var(--em-radius);
     overflow: hidden;
     box-shadow: var(--em-shadow);
     transition: var(--em-transition);
     border: 2px solid transparent;
 }
 
 .post-card:hover {
     transform: translateY(-8px);
     box-shadow: var(--em-shadow-hover);
     border-color: var(--em-primary);
 }
 
 /* Card Image */
 .card-image {
     height: 240px;
     background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
     position: relative;
     overflow: hidden;
 }
 
 .card-image a {
     display: block;
     width: 100%;
     height: 100%;
 }
 
 .card-image img {
     width: 100%;
     height: 100%;
     object-fit: cover;
     transition: transform 0.6s ease;
 }
 
 .post-card:hover .card-image img {
     transform: scale(1.08);
 }
 
 .image-placeholder {
     display: flex;
     align-items: center;
     justify-content: center;
     width: 100%;
     height: 100%;
     background: linear-gradient(135deg, var(--em-primary) 0%, var(--em-primary-dark) 100%);
     color: white;
     font-size: 64px;
 }
 
 /* Badges */
 .badges {
     position: absolute;
     top: 15px;
     right: 15px;
     display: flex;
     flex-direction: column;
     gap: 8px;
     z-index: 2;
 }
 
 .badge {
     padding: 6px 14px;
     border-radius: 20px;
     font-size: 11px;
     font-weight: 700;
     font-family: 'Montserrat', sans-serif;
     text-transform: uppercase;
     letter-spacing: 0.5px;
 }
 
 .badge-featured {
     background: var(--em-primary);
     color: var(   --em-bg-light);
     box-shadow: 0 4px 12px rgba(0, 230, 118, 0.4);
 }
 
 .badge-available {
     background: var(--em-primary);
     color: white;
 }
 
 /* Card Overlay */
 .card-overlay {
     position: absolute;
     bottom: 0;
     left: 0;
     right: 0;
     height: 0;
     background: linear-gradient(to top, var(--em-primary) 0%, transparent 100%);
     opacity: 0;
     transition: var(--em-transition);
 }
 
 .post-card:hover .card-overlay {
     height: 100%;
     opacity: 0.15;
 }
 
 /* Card Content */
 .card-content {
     padding: 24px;
 }
 
 .card-category {
     margin-bottom: 12px;
 }
 
 .card-category a {
     display: inline-block;
     padding: 4px 12px;
     background: rgba(0, 230, 118, 0.1);
     color: var(--em-primary);
     border-radius: 12px;
     font-size: 12px;
     font-weight: 700;
     text-decoration: none;
     text-transform: uppercase;
     letter-spacing: 0.5px;
     transition: var(--em-transition);
 }
 
 .card-category a:hover {
     background: var(--em-primary);
     color: white;
 }
 
 .card-title {
     margin: 0 0 12px 0;
     font-size: 20px;
     font-weight: 700;
     color: var(--em-secondary);
     line-height: 1.3;
 }
 
 .card-title a {
     color: inherit;
     text-decoration: none;
     transition: color 0.3s ease;
 }
 
 .card-title a:hover {
     color: var(--em-primary);
 }
 
 .card-excerpt {
     color: var(--em-text-light);
     font-size: 14px;
     line-height: 1.6;
     margin: 0 0 20px 0;
     display: -webkit-box;
     -webkit-line-clamp: 2;
     -webkit-box-orient: vertical;
     overflow: hidden;
 }
 
 /* Card Specs */
 .card-specs {
     display: flex;
     gap: 20px;
     padding: 15px 0;
     border-top: 2px solid var(--em-bg-light);
     border-bottom: 2px solid var(--em-bg-light);
     margin-bottom: 20px;
 }
 
 .spec-item {
     display: flex;
     align-items: center;
     gap: 6px;
     font-size: 13px;
     color: var(--em-text);
     font-weight: 600;
 }
 
 .spec-icon {
     color: var(--em-primary);
     font-size: 18px;
 }
 
 /* Card Footer */
 .card-footer {
     display: flex;
     align-items: center;
     justify-content: space-between;
     gap: 15px;
 }
 
 .card-price {
     font-size: 28px;
     font-weight: 800;
     font-family: 'Montserrat', sans-serif;
     color: var(--em-primary);
 }
 
 .card-cta {
     display: flex;
     align-items: center;
     gap: 8px;
     padding: 12px 24px;
     background: var(--em-secondary);
     color: white;
     text-decoration: none;
     border-radius: 25px;
     font-size: 14px;
     font-weight: 700;
     font-family: 'Montserrat', sans-serif;
     transition: var(--em-transition);
     white-space: nowrap;
 }
 
 .card-cta:hover {
     background: var(--em-primary);
     color: var(--em-secondary);
 }
 
 .card-cta .arrow {
     transition: transform 0.3s ease;
 }
 
 .card-cta:hover .arrow {
     transform: translateX(4px);
 }
 
 /* ============================================
    PAGINATION
    ============================================ */
 .em-pagination {
     display: flex;
     justify-content: center;
     gap: 8px;
     flex-wrap: wrap;
 }
 
 .em-pagination a,
 .em-pagination span {
     display: inline-flex;
     align-items: center;
     gap: 8px;
     padding: 12px 18px;
     background: white;
     border: 2px solid var(--em-border);
     border-radius: 10px;
     color: var(--em-text);
     text-decoration: none;
     font-weight: 700;
     font-family: 'Montserrat', sans-serif;
     transition: var(--em-transition);
 }
 
 .em-pagination a:hover,
 .em-pagination span.current {
     border-color: var(--em-primary);
     background: var(--em-primary);
     color: white;
 }
 
 .em-pagination .arrow {
     font-size: 14px;
 }
 
 /* ============================================
    NO RESULTS
    ============================================ */
 .no-results {
     text-align: center;
     padding: 100px 20px;
     background: white;
     border-radius: var(--em-radius-large);
     box-shadow: var(--em-shadow);
 }
 
 .no-results-icon {
     font-size: 80px;
     margin-bottom: 20px;
     opacity: 0.3;
 }
 
 .no-results-title {
     font-size: 32px;
     font-weight: 700;
     color: var(--em-secondary);
     margin: 0 0 15px 0;
     font-family: 'Montserrat', sans-serif;
 }
 
 .no-results-text {
     font-size: 16px;
     color: var(--em-text-light);
     margin: 0 0 30px 0;
 }
 
 .no-results-btn {
     display: inline-block;
     padding: 16px 40px;
     background: var(--em-primary);
     color: var(--em-secondary);
     text-decoration: none;
     border-radius: 30px;
     font-weight: 700;
     font-family: 'Montserrat', sans-serif;
     box-shadow: 0 8px 24px rgba(0, 230, 118, 0.3);
     transition: var(--em-transition);
 }
 
 .no-results-btn:hover {
     transform: translateY(-2px);
     box-shadow: 0 12px 32px rgba(0, 230, 118, 0.4);
 }
 
 /* ============================================
    RESPONSIVE
    ============================================ */
 @media (max-width: 1024px) {
     .posts-grid {
         grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
         gap: 25px;
     }
 }
 
 @media (max-width: 768px) {
    .em-filter-bar {
        display:none;
        }
     .archive-title {
         font-size: 36px;
     }
     
     .filters-wrapper {
         flex-direction: column;
         align-items: stretch;
     }
     
     .filter-group {
         width: 100%;
     }
     
     .view-toggle {
         width: 100%;
     }
     
     .view-btn {
         flex: 1;
         justify-content: center;
     }
     
     .posts-grid,
     .posts-grid.list-view {
         grid-template-columns: 1fr;
     }
     
     .list-view .post-card {
         grid-template-columns: 1fr;
     }
     
     .list-view .card-image {
         height: 240px;
         min-height: auto;
     }
 }
 
 @media (max-width: 480px) {
     .archive-title {
         font-size: 28px;
     }
     
     .card-footer {
         flex-direction: column;
         align-items: flex-start;
     }
     
     .card-cta {
         width: 100%;
         justify-content: center;
     }
 }