/* Logo size control */
.main-header .logo-box .logo img {
    max-height: 60px;
    width: auto;
    object-fit: contain;
}

/* Ensure header doesn't get too tall */
.main-header .header-lower {
    min-height: 80px;
}

.main-header .inner-container {
    padding: 10px 0;
}

/* Mobile logo */
.mobile-menu .nav-logo img {
    max-height: 50px;
    width: auto;
    object-fit: contain;
}

/* Fixed card dimensions */
.product-block_one {
    margin-bottom: 30px;
}

.product-block_one-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 550px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: box-shadow 0.3s ease;
}

.product-block_one-inner:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

/* Image container with dynamic height */
.product-block_one-image {
    height: auto;
    min-height: 250px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f8f8;
    position: relative;
}

.product-block_one-image img {
    width: 100%;
    height: 300px;
    object-fit: contain;
    padding: 8px;
    transition: transform 0.3s ease;
}

.product-block_one-image:hover img {
    transform: scale(1.05);
}

/* Content section */
.product-block_one-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Fixed tag height */
.product-block_one-tag {
    min-height: 30px;
    margin-bottom: 10px;
}

/* Fixed title height with ellipsis */
.product-block_one-title {
    min-height: 60px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 15px;
    line-height: 1.4;
}

.product-block_one-title a {
    font-size: 18px;
    font-weight: 600;
}

/* Price section */
.product-block_one-price {
    min-height: 30px;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 700;
    color: var(--theme-color-one);
}

/* Cart button */
.product-block_one-cart {
    margin-top: auto;
}

.categorie-title-highlight {
    font-size: 1.7rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #ff9800, #ffb74d);
    border-radius: 12px;
    padding: 18px 45px;
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.5);
    text-shadow: 0 2px 6px rgba(0,0,0,0.3);
    border: 3px solid rgba(255,255,255,0.4);
    letter-spacing: 1.5px;
    display: inline-block;
    margin-bottom: 35px;
    margin-top: 0;
    font-family: 'Outfit', 'DM Sans', Arial, sans-serif;
    text-align: center;
    min-width: 60%;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.2;
}

.categorie-title-highlight span {
    font-size: 1.5rem;
}

@media (max-width: 768px) {
  .categorie-title-highlight {
    font-size: 1.5rem;
    padding: 12px 10px;
    max-width: 100%;
  }
}

/* Centrer tous les produits par défaut avec Grid pour alignement */
.row,
.products-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    justify-content: center;
}

/* Pour les grilles Bootstrap, utiliser flexbox avec align-items: stretch */
.row.clearfix {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.row.clearfix > .product-block_one {
    display: flex;
    flex-direction: column;
}

/* Centrage de la carte produit unique */
.row:only-child > .product-block_one,
.row > .product-block_one:only-child,
.products-row:only-child > .product-block_one,
.products-row > .product-block_one:only-child {
    margin-left: auto;
    margin-right: auto;
    float: none;
    display: block;
}

/* Si le parent utilise flex, centrer l'unique enfant */
.row,
.products-row {
    display: flex;
    flex-wrap: wrap;
}
.row:only-child,
.products-row:only-child {
    justify-content: center;
}

.row > .product-block_one:only-child,
.products-row > .product-block_one:only-child {
    margin-left: 0;
    margin-right: 0;
}
