/* Hera Equipment Catalog Styles */

/* Grid Layout */
.hec-category-grid,
.hec-equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* Card Style */
.hec-card {
    background-color: #ffffff;
    /* Pure white */
    border: 1px solid #eaeaea;
    /* Subtle border for separation */
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    /* Softer shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
    color: inherit !important;
    height: 100%;
}

.hec-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    border-color: #FFD700;
    /* Yellow border on hover */
}

/* Card Image */
.hec-card-image-wrapper {
    width: 100%;
    height: 200px;
    /* Kept fixed height for alignment */
    background-color: #fff;
    /* Changed to white for clean look with contain */
    position: relative;
    overflow: hidden;
    padding: 10px;
    /* Add padding so image doesn't touch edges */
    box-sizing: border-box;
}

.hec-card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Changed from cover to see full image */
    display: block;
}

.hec-placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 1rem;
    background: #f8f9fa;
}

/* Card Content */
.hec-card-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Increased specificity to override theme defaults */
.hec-card .hec-card-title {
    font-size: 20px !important;
    font-weight: 600;
    margin: 0 0 10px;
    color: #111;
    line-height: 1.3;
}

.hec-card-count {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 12px;
    display: block;
}

/* Button "Savoir plus" */
.hec-btn-wrapper {
    margin-top: auto;
    display: flex;
    justify-content: flex-start;
}

.hec-btn-yellow {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    background-color: #FFD700;
    /* Yellow */
    color: #000;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background-color 0.2s ease;
    gap: 10px;
}

.hec-btn-yellow:hover {
    background-color: #ffcc00;
}

.hec-btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 14px;
    font-weight: bold;
    color: #000;
}

/* Hide Theme Page Title for Equipment & Produit Pages */
.single-equipment #sub-header,
.post-type-archive-equipment #sub-header,
.tax-equipment_category #sub-header,
.single-produit #sub-header,
.post-type-archive-produit #sub-header,
.tax-produit_category #sub-header {
    display: none !important;
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 50px;
    margin-bottom: 30px;
}

.pagination .page-numbers {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    color: #333;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    background-color: #fff;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background-color: #FFD700;
    border-color: #FFD700;
    color: #000;
}

.pagination .page-numbers.next,
.pagination .page-numbers.prev {
    width: auto;
    padding: 0 20px;
    border-radius: 50px;
}

.pagination .page-numbers.dots {
    border: none;
    background: transparent;
}/ *   B r a n d   G r i d   s p e c i f i c   s t y l e s   * /  
 . h e c - b r a n d - g r i d   . h e c - c a r d   {  
         j u s t i f y - c o n t e n t :   c e n t e r ;  
         a l i g n - i t e m s :   c e n t e r ;  
         m i n - h e i g h t :   2 0 0 p x ;  
         / *   F i x e d   h e i g h t   f o r   c o n s i s t e n c y   * /  
 }  
  
 . h e c - b r a n d - g r i d   . h e c - c a r d - i m a g e - w r a p p e r   {  
         h e i g h t :   1 0 0 % ;  
         / *   T a k e   f u l l   h e i g h t   * /  
         p a d d i n g :   3 0 p x ;  
         / *   M o r e   p a d d i n g   f o r   l o g o s   * /  
         d i s p l a y :   f l e x ;  
         a l i g n - i t e m s :   c e n t e r ;  
         j u s t i f y - c o n t e n t :   c e n t e r ;  
 }  
  
 . h e c - b r a n d - g r i d   i m g   {  
         m a x - h e i g h t :   1 0 0 % ;  
         w i d t h :   a u t o ;  
         / *   M a i n t a i n   a s p e c t   r a t i o   * /  
 }  
 