/*
 * Custom code goes here.
 * A template should always ship with an empty custom.css
 */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css');

:root {
 --primary: #6c5ce7;
}

#ynp-submit, #ynp-close {
 background: #6c5ce7 !important;
}

#ynp-submit:hover, #ynp-close:hover {
 background: #74b9ff !important;
}

/* Pour renforcer sur certains éléments */
.btn-primary {
 background-color: #6c5ce7 !important;
 color: #fff !important;
}

a.btn {
 color: #fff !important;
}

#search_widget form i {
 position: absolute;
 left: 10px;
 top: 7px;
}

.product-images > li.thumb-container .thumb.selected, .product-images > li.thumb-container .thumb:hover {
 border: #6c5ce7 3px solid;
}

.product-flags li.product-flag {
 background-color: #6c5ce7;
}


#contact-infos > a:nth-child(4) {
 color: #6c5ce7 !important;
}

p.text-sm-center > a:nth-child(1) {
 color: #6c5ce7 !important;
}

.block-social ul li:hover {
 background-color: #6c5ce7;
}

a:hover {
 color: #6c5ce7 !important;
}

#header .header-nav .cart-preview.active {
 background: #6c5ce7;
}

.header > a:nth-child(1) {
 color: #ffffff !important;
}

#blockcart-modal .product-name {
 font-size: 1.125rem;
 color: #6c5ce7;
}

.product-price {
 color: #6c5ce7
}

.tabs .nav-tabs .nav-link.active {
 color: #6c5ce7;
}

.tabs .nav-tabs .nav-link.active, .tabs .nav-tabs .nav-link:hover {
 border-bottom: #6c5ce7 3px solid;
}

.read_more {
 background-color: #74b9ff !important;
}

@media (min-width: 1200px) {
 .container {
  width: 1440px !important;
  margin: 0 auto; /* centrer le container si nécessaire */
 }
}

/* Conteneur principal */
.ybc_block_latest {
 max-width: 1440px;
 margin: 0 auto;
 padding: 3rem 1rem;
 font-family: 'Segoe UI', sans-serif;
}

/* Titre principal */
.ybc_block_latest .title_blog {
 font-size: 2rem;
 text-align: center;
 margin-bottom: 2.5rem;
 color: #111;
 font-weight: bold;
}

/* Grille de cartes */
.ybc_block_latest .block_content {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
 gap: 2rem;
 list-style: none;
 padding: 0;
 margin: 0;
}

/* Carte individuelle */
.ybc_block_latest .block_content li {
 background: #fff;
 border-radius: 12px;
 overflow: hidden;
 box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
 transition: transform 0.3s ease, box-shadow 0.3s ease;
 display: flex;
 flex-direction: column;
}

.ybc_block_latest .block_content li:hover {
 transform: translateY(-6px);
 box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Image */
.ybc_item_img img {
 width: 100%;
 height: 200px;
 object-fit: cover;
 display: block;
}

/* Contenu */
.ybc-blog-latest-post-content {
 padding: 1.5rem;
 display: flex;
 flex-direction: column;
 gap: 1rem;
 flex: 1;
}

/* Titre de l'article */
.ybc_title_block {
 font-size: 1.25rem;
 font-weight: 600;
 color: #0077cc;
 text-decoration: none;
 transition: color 0.3s ease;
}

.ybc_title_block:hover {
 color: #005fa3;
}

/* Métadonnées */
.ybc-blog-sidear-post-meta {
 font-size: 0.85rem;
 color: #666;
 display: flex;
 justify-content: space-between;
 flex-wrap: wrap;
 gap: 0.5rem;
}

.ybc-blog-categories a {
 color: #444;
 text-decoration: underline;
 font-weight: 500;
}

/* Description */
.blog_description p {
 font-size: 0.95rem;
 color: #444;
 margin: 0;
 line-height: 1.5;
}

/* Barre outils (views, comments, likes) */
.ybc-blog-latest-toolbar {
 display: flex;
 gap: 1rem;
 font-size: 0.85rem;
 color: #888;
 flex-wrap: wrap;
}

/* Read More */
.read_more {
 margin-top: auto;
 align-self: flex-start;
 font-size: 0.9rem;
 color: #0077cc;
 text-decoration: none;
 font-weight: 500;
 position: relative;
}

.read_more::after {
 content: ' →';
 transition: transform 0.3s ease;
}

.read_more:hover::after {
 transform: translateX(4px);
}

.page_home.ybc_block_default ul li {
 padding: 0;
}

#header .header-top {
 padding: 0;
}

#header .logo {
 max-width: 100%;
 height: 130px;
}

.ybc_block_latest {
 max-width: 100vw;
 margin: 0 auto;
 padding: 3rem 1rem;
 font-family: 'Segoe UI', sans-serif;
}


.products-grid {
 display: grid;
 grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
 gap: 25px;
 margin-top: 40px;
}

/* Product card container */
.product {
 padding: 15px;
 transition: transform 0.3s ease;
}

.product-miniature {
 background: white;
 border-radius: 12px;
 box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
 transition: all 0.3s ease;
 display: flex;
 flex-direction: column;
 position: relative;
}

.product-miniature:hover {
 transform: translateY(-5px);
 box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Thumbnail container */
.thumbnail-container {
 height: 100%;
 display: flex;
 flex-direction: column;
}

.thumbnail-top {
 position: relative;
 overflow: hidden;
}

/* Product image */
.product-thumbnail {
 display: block;
 position: relative;
 overflow: hidden;
}

.product-thumbnail img {
 width: 100%;
 height: auto;
 object-fit: contain;
 transition: transform 0.5s ease;
 border-radius: 8px 8px 0 0;
 image-rendering: auto;
}

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

/* Quick view button */
.highlighted-informations {
 position: absolute;
 bottom: 0;
 left: 0;
 right: 0;
 background: rgba(255, 255, 255, 0.9);
 padding: 10px;
 opacity: 0;
 transform: translateY(100%);
 transition: all 0.3s ease;
 display: flex;
 justify-content: center;
}

.thumbnail-top:hover .highlighted-informations {
 opacity: 1;
 transform: translateY(0);
}

.quick-view {
 display: inline-flex;
 align-items: center;
 color: #6c5ce7;
 font-weight: 500;
 text-decoration: none;
 padding: 15px 15px;
 border-radius: 6px;
 background: rgba(108, 92, 231, 0.1);
 transition: all 0.2s ease;
}

.quick-view:hover {
 background: rgba(108, 92, 231, 0.2);
}

.material-icons {
 font-size: 18px;
}

/* Product description */
.product-description {
 padding: 20px;
 flex-grow: 1;
 display: flex;
 flex-direction: column;
}

.product-title {
 margin-bottom: 10px;
 font-size: 16px;
 font-weight: 600;
}

.product-title a {
 color: #333;
 text-decoration: none;
 transition: color 0.2s ease;
}

.product-title a:hover {
 color: #6c5ce7;
}

/* Price styling */
.product-price-and-shipping {
 margin: 15px 0;
}

.price {
 font-size: 18px;
 font-weight: 700;
 color: #6c5ce7;
}

/* Product flags */
.product-flags {
 position: absolute;
 top: 10px;
 left: 10px;
 list-style: none;
 z-index: 2;
}

.product-flag {
 display: inline-block;
 padding: 5px 10px;
 margin-bottom: 5px;
 font-size: 12px;
 font-weight: 600;
 color: white;
 background-color: #6c5ce7;
 border-radius: 4px;
 box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.product-flag.new {
 background: linear-gradient(135deg, #6c5ce7, #a29bfe);
}

/* Wishlist button */
.wishlist-button-add {
 position: absolute;
 top: 10px;
 right: 10px;
 background: white;
 border: none;
 width: 36px;
 height: 36px;
 border-radius: 50%;
 display: flex;
 align-items: center;
 justify-content: center;
 cursor: pointer;
 box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
 z-index: 2;
 transition: all 0.2s ease;
 overflow: hidden;
}

.wishlist-button-add:hover {
 background: #f8f8f8;
 transform: scale(1.1);
}

.wishlist-button-add:active {
 transform: scale(0.95);
}

.wishlist-button-add i {
 color: #ff7675;
 font-size: 18px;
 transition: all 0.3s ease;
}

.wishlist-button-add:hover i {
 animation: heartbeat 1.2s infinite;
}

@keyframes heartbeat {
 0% {
  transform: scale(1);
 }
 25% {
  transform: scale(1.2);
 }
 50% {
  transform: scale(1);
 }
 75% {
  transform: scale(1.2);
 }
 100% {
  transform: scale(1);
 }
}

/* Reviews section */
.product-list-reviews {
 margin-top: auto;
 font-size: 14px;
 display: flex;
 align-items: center;
 gap: 5px;
}

.grade-stars {
 display: inline-flex;
 height: 16px;
 position: relative;
}

/* Add star rating display */
.grade-stars.small-stars::before {
 content: '★★★★★';
 color: #e0e0e0; /* Empty star color */
 position: relative;
 letter-spacing: 2px;
 font-size: 16px;
}

.grade-stars.small-stars::after {
 content: '★★★★★';
 color: #ffc107; /* Filled star color */
 position: absolute;
 top: 0;
 left: 0;
 width: 80%; /* This represents a 4/5 rating */
 overflow: hidden;
 letter-spacing: 2px;
 font-size: 16px;
}

.comments-nb::before {
 content: '(12)';
 color: #777;
 font-size: 12px;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
 .container {
  max-width: 960px;
 }

 .products-grid {
  gap: 20px;
 }
}

@media (max-width: 992px) {
 .container {
  max-width: 720px;
 }

 .page-title {
  font-size: 28px;
 }

 .products-grid {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
 }
}

@media (max-width: 767px) {
 .container {
  padding: 0 15px;
 }

 .page-title {
  font-size: 24px;
  margin-bottom: 20px;
 }

 .products-grid {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 25px;
 }

 .product {
  padding: 10px;
 }

 .product-description {
  padding: 15px;
 }

 .product-title {
  font-size: 14px;
 }

 .price {
  font-size: 16px;
 }
}

@media (max-width: 480px) {
 .page-title {
  font-size: 20px;
 }

 .products-grid {
  grid-template-columns: 1fr;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
 }

 .product-miniature {
  max-width: 100%;
 }
}



/* Container */
.ets-blog-latest-post-content {
 background-color: #fff;
 border-radius: 12px;
 padding: 16px;
 box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
 transition: transform 0.3s ease, box-shadow 0.3s ease;
 display: flex;
 flex-direction: column;
 justify-content: space-between;
 height: 100%;
}

/* Card wrapper (li element) */
li.col-xs-12.col-sm-4.col-lg-3 {
 list-style: none;
 padding: 1rem;
 box-sizing: border-box;
}

/* Image */
.ets_item_img img {
 width: 100%;
 border-radius: 12px 12px 0 0;
 object-fit: cover;
 transition: transform 0.3s ease;
}

/* Hover effect */
li.col-xs-12.col-sm-4.col-lg-3:hover .ets-blog-latest-post-content {
 transform: translateY(-6px);
 box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

li.col-xs-12.col-sm-4.col-lg-3:hover .ets_item_img img {
 transform: scale(1.02);
}

/* Title */
.ets_title_block {
 font-size: 1.2rem;
 font-weight: 600;
 color: #222;
 margin: 12px 0 6px;
 text-decoration: none;
 transition: color 0.3s ease;
}

.ets_title_block:hover {
 color: #007bff;
}

/* Meta (date) */
.ets-blog-sidear-post-meta {
 font-size: 0.85rem;
 color: #888;
 margin-bottom: 10px;
}

/* Description */
.blog_description p {
 font-size: 0.95rem;
 color: #555;
 line-height: 1.5;
 margin: 0 0 1rem;
}

/* Read more link */
.read_more {
 align-self: flex-start;
 background-color: #007bff;
 color: white;
 padding: 8px 14px;
 border-radius: 8px;
 font-size: 0.9rem;
 text-decoration: none;
 transition: background-color 0.3s ease;
}

.read_more:hover {
 background-color: #0056b3;
}

@media screen and (max-width: 768px) {
 li.col-xs-12.col-sm-4.col-lg-3 {
  width: 100% !important;
 }
}


/* Modern and stylish CSS for social media icons with primary color #6c5ce7 */

.social-icons {
 display: flex;
 justify-content: center;
 align-items: center;
 list-style: none;
 padding: 0;
 margin: 2rem 0;
}

.social-icons li {
 margin: 0 15px;
}

.social-icons a {
 display: flex;
 justify-content: center;
 align-items: center;
 width: 60px;
 height: 60px;
 background-color: #6c5ce7;
 border-radius: 50%;
 color: white;
 text-decoration: none;
 font-size: 24px;
 transition: all 0.3s ease;
 box-shadow: 0 5px 15px rgba(108, 92, 231, 0.4);
}

.social-icons a:hover {
 transform: translateY(-5px);
 box-shadow: 0 10px 20px rgba(108, 92, 231, 0.6);
 background-color: #5344c7;
}

/* Add a subtle pulse animation on hover */
@keyframes pulse {
 0% {
  transform: scale(1);
 }
 50% {
  transform: scale(1.1);
 }
 100% {
  transform: scale(1);
 }
}

.social-icons a:hover i {
 animation: pulse 1s infinite;
}

/* Responsive adjustments */
@media (max-width: 768px) {
 .social-icons a {
  width: 50px;
  height: 50px;
  font-size: 20px;
 }

 .social-icons li {
  margin: 0 10px;
 }
}