.product-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 223px 0 64px;
}
.product-top .h1 {
  text-align: center;
}

.breadcrumbs-list {
  display: flex;
  align-items: center;
  gap: 10px;
}

.breadcrumbs-list {
  list-style-type: none;
}
.breadcrumbs-list li a {
  color: rgba(29, 29, 29, 0.5);
  transition: ease 0.3s;
}
.breadcrumbs-list li a:visited {
  color: rgba(29, 29, 29, 0.5);
}
.breadcrumbs-list li a:hover {
  color: #1D1D1D;
}

.bredcrumb-icon {
  fill: rgba(29, 29, 29, 0.5);
  width: 7px;
  height: 12px;
}

.filters-row {
  max-width: 1384px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  gap: 48px;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 48px;
}

.filters-btns {
  display: flex;
  gap: 24px;
}

.filter-btn {
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  text-transform: uppercase;
  background-color: #F4F4F4;
  transition: ease 0.3s;
  border-radius: 50px;
  color: #1D1D1D;
  line-height: 1;
}
.filter-btn span {
  color: rgba(0, 0, 0, 0.5);
  transition: ease 0.3s;
}
.filter-btn svg {
  fill: #1D1D1D;
  transition: ease 0.3s;
}
.filter-btn:hover {
  background-color: #1D1D1D;
  color: white;
}
.filter-btn:hover span {
  color: white;
}
.filter-btn:hover svg {
  fill: white;
}

.modal-content {
  height: 100vh;
  overflow: visible;
  overflow-y: visible;
}

.modal-top {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding: 16px 56px 16px 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-main {
  padding: 32px 52px 156px 64px;
  overflow-y: auto;
  height: calc(100vh - 135px);
  scrollbar-width: none;
  ms-overflow-style: -ms-autohiding-scrollbar;
}
.modal-main::-webkit-scrollbar {
  display: none;
}

.modal-bottom {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding: 16px 56px 16px 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background-color: white;
}
.modal-bottom .btn-black {
  font-size: 14px;
  padding: 12px 24px;
}

.sorting {
  height: 44px;
  border: 1px solid rgba(29, 29, 29, 0.5);
  border-radius: 8px;
  background: white;
  font-size: 16px;
  color: #1D1D1D;
  cursor: pointer;
  outline: none;
}

.custom-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  padding: 4px 0;
  color: #1D1D1D;
  font-size: 18px;
  transition: color 0.12s;
}

.custom-checkbox:hover {
  color: #000;
}

.custom-checkbox input[type=checkbox] {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  overflow: hidden;
}

.custom-checkbox .checkmark {
  position: relative;
  display: inline-block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  background: #ffffff;
  border: 1px solid #D9D9D9;
  border-radius: 4px;
  transition: all 0.18s ease;
}

.custom-checkbox input:checked + .checkmark {
  background: #000000;
  border-color: #000000;
}

.custom-checkbox .checkmark::after {
  content: "";
  position: absolute;
  display: none;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}

.custom-checkbox input:checked + .checkmark::after {
  display: block;
}

.custom-checkbox input:focus-visible + .checkmark {
  outline: 3px solid #3b82f6;
  outline-offset: 2px;
}

.custom-checkbox:active .checkmark {
  transform: scale(0.92);
}

@media (max-width: 768px) {
  .product-top {
    gap: 10px;
    padding: 121px 16px 20px;
    margin: 0 0 24px;
  }
  .product-top nav {
    display: none;
  }
  .product-top .h1 {
    margin: 0;
  }
  .filters-row {
    padding: 0 16px;
    margin-bottom: 12px;
    gap: 16px;
  }
  .filters-btns {
    gap: 16px;
  }
  .modal-top {
    padding: 16px;
  }
  .modal-main {
    padding: 24px 16px;
    height: calc(100vh - 135px);
  }
  .modal-bottom {
    padding: 16px;
  }
  .modal-content {
    max-width: 90%;
  }
  .custom-checkbox {
    font-size: 14px;
  }
}
@media (max-width: 420px) {
  .filters-btns {
    width: 100%;
  }
  .filter-btn {
    width: 100%;
  }
  .sorting {
    width: 100%;
  }
}
.grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px 20px;
  width: 100%;
  max-width: 1384px;
  margin: 0 auto;
  padding: 0 32px;
}

.card {
  position: relative;
  overflow: visible;
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
}

.card img {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-6x {
  grid-column: span 6;
  aspect-ratio: 1300/500;
}

.card-4x {
  grid-column: span 4;
  grid-row: span 2;
  aspect-ratio: 1;
}

.card-3x {
  grid-column: span 3;
  aspect-ratio: 1;
}

.card-2x {
  grid-column: span 2;
  aspect-ratio: 1;
}

.card-img {
  position: relative;
  height: 100%;
  overflow: hidden;
}
.card-img a {
  display: block;
  width: 100%;
  height: 100%;
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Keep product swiper slides visually stable and always filled */
.card-img .product-swiper,
.card-img .product-swiper .swiper-wrapper,
.card-img .product-swiper .product-slide {
  width: 100%;
  height: 100%;
}

.card-img .product-slide {
  display: block;
  overflow: hidden;
}

.card-img .product-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.card-info {
  position: relative;
  background-color: white;
  width: 100%;
  padding: 10px 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

/* Product cards - hover animation on image only */
.card {
  cursor: pointer;
}
.card-img img {
  transition: transform 0.4s ease;
}
.card:hover .card-img img {
  transform: scale(1.05);
}
.card:hover .card-title {
  text-decoration: underline;
}

.card-description {
  margin: 0;
  margin-left: auto;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  align-self: center;
  transform: translateY(-5px);
}

.card-title-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.card-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-4x .card-info {
  padding-top: 19px;
}

.rating {
  display: inline-flex;
  align-items: center;
  font-size: 16px;
  line-height: 1;
  direction: rtl;
  unicode-bidi: bidi-override;
}
.rating input {
  display: none;
}
.rating label {
  cursor: pointer;
  transition: color 0.1s;
}

.rating label:hover, .rating label:hover ~ label {
  color: rgba(29, 29, 29, 0.5);
}

.rating input:checked ~ label {
  color: rgba(29, 29, 29, 0.5);
}

.rating:hover input:checked ~ label {
  color: rgba(29, 29, 29, 0.5);
}

.rating-num {
  font-size: 12px;
  line-height: 2;
}

/* Filter modals */
.cl-modal .modal-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 24px 16px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.cl-modal .modal-main {
  padding: 24px;
  max-height: 60vh;
  overflow-y: auto;
}
.cl-modal .modal-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px 24px;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.product-info {
  position: relative;
}
.product-info button {
  padding: 8px 0;
  background-color: transparent;
}

.product-info-block {
  position: absolute;
  bottom: 28px;
  right: 0;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background-color: white;
  padding: 16px 32px;
  width: fit-content;
  min-width: min(380px, 30vw);
  display: none;
}

.product-info:hover .product-info-block {
  display: block;
}

.card:hover .product-nav {
  opacity: 1;
}
.card:hover .favourites {
  opacity: 1;
}
.card:hover .labels {
  opacity: 1;
}

.product-slide {
  height: 100%;
}

.product-nav {
  position: absolute;
  top: 45%;
  width: 36px;
  height: 36px;
  background-color: white;
  border: 1px solid rgba(29, 29, 29, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  transition: ease 0.6s;
  opacity: 0;
}
.product-nav svg {
  width: 20px;
  height: 20px;
  transition: ease 0.6s;
}
.product-nav:hover {
  cursor: pointer;
  background-color: #1D1D1D;
}
.product-nav:hover svg {
  fill: white;
}

.card .product-nav.swiper-button-disabled {
  opacity: 0;
  cursor: default;
}

.product-nav-prev {
  left: 16px;
}
.product-nav-prev svg {
  transform: rotate(180deg);
}

.product-nav-next {
  right: 16px;
}

.favourites {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  border: none;
  padding: 0;
  background: transparent;
  cursor: pointer;
  transition: ease 0.3s;
}
.favourites svg {
  fill: transparent;
  stroke: #fff;
  color: #fff;
  cursor: pointer;
  transition: ease 0.3s;
  width: 60px;
  height: 60px;
}
.favourites:hover svg {
  fill: white;
  stroke: #fff;
}

/* Article dans la wishlist — pastille rouge plus petite, cœur inchangé (60px) */
.favourites.is-favorite {
  opacity: 1;
  background-color: transparent;
}
.favourites.is-favorite::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 0;
  width: 48px;
  height: 48px;
  transform: translate(-50%, -50%);
  background-color: #f00041;
  border-radius: 50%;
}
.favourites.is-favorite svg {
  position: relative;
  z-index: 1;
  fill: #fff;
  stroke: #fff;
}
.favourites.is-favorite:hover::before {
  background-color: #1d1d1d;
}
.favourites.is-favorite:hover svg {
  fill: #fff;
  stroke: #fff;
}

.labels {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 2;
  display: flex;
  gap: 8px;
  transition: ease 0.3s;
  opacity: 0;
}

.product-label {
  padding: 7px 12px;
  background-color: white;
  border-radius: 50px;
  color: #1D1D1D;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  transition: ease 0.3s;
}
.product-label.dark {
  background-color: #1D1D1D;
  color: white;
}

.rating-label {
  position: absolute;
  bottom: 16px;
  left: 16px;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card-img > .rating-label {
  bottom: 16px;
}

.card:hover .card-img > .rating-label {
  opacity: 1;
  bottom: 16px;
}

.filter-item {
  border-radius: 4px;
  margin-bottom: 10px;
  overflow: hidden;
}
.filter-item.active .filter-title svg {
  transform: rotate(90deg);
}
.filter-item.active .filter-body {
  max-height: 400px;
  padding: 6px 0;
}
.filter-item .filter-title {
  padding: 6px 0;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.filter-item .filter-title svg {
  width: 20px;
  height: 20px;
  transition: ease 0.3s;
}
.filter-item .filter-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0;
}

@media (max-width: 1200px) {
  .product-info-block {
    padding: 8px;
  }
}
@media (max-width: 768px) {
  .grid {
    gap: 24px;
    padding: 0 16px;
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }
  .grid .card {
    min-width: 0;
    max-width: 100%;
  }
  .card {
    grid-column: span 6 !important;
  }
  .card-4x .card-info {
    padding-top: 8px;
  }
  .card-info {
    padding-top: 8px;
  }
  .card-info {
    margin-bottom: unset;
  }
  .card-description {
    margin: 0 0 0 auto;
    align-self: center;
    transform: translateY(-5px);
  }
  .product-info {
    margin-left: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    text-align: right;
  }
  .product-info button {
    padding: 0;
    margin-left: auto;
    line-height: 1.2;
  }
  .card-img {
    height: 90%;
  }
  .product-info-block {
    right: 0;
    left: auto;
    min-width: min(320px, calc(100vw - 32px));
    max-width: calc(100vw - 32px);
    width: max-content;
    bottom: 28px;
    z-index: 25;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  }
  .product-info.is-open .product-info-block,
  .product-info:focus-within .product-info-block {
    display: block;
  }
  .product-nav {
    opacity: 1;
    top: 40%;
  }
  .favourites {
    opacity: 1;
  }
  .labels {
    opacity: 1;
  }
  .card-img > .rating-label {
    opacity: 1;
    bottom: 16px;
  }
}
.faq {
  display: flex;
  gap: 48px;
  justify-content: space-between;
  padding: 100px 32px 100px;
}

.faq-body {
  max-width: 880px;
  width: 100%;
}

.faq-item {
  margin-bottom: 16px;
  overflow: hidden;
  border-bottom: 1px solid rgba(29, 29, 29, 0.1);
}
.faq-item.active .faq-question svg {
  transform: rotate(90deg);
}
.faq-item.active .faq-answer {
  max-height: 400px;
  padding: 8px 32px 8px 0;
}
.faq-item .faq-question {
  padding: 9px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.faq-item .faq-question svg {
  width: 24px;
  min-width: 24px;
  height: 24px;
  transition: ease 0.3s;
}
.faq-item .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 32px 0 0;
}

.faq-description {
  margin-bottom: 48px;
}

@media (max-width: 1200px) {
  .faq {
    flex-direction: column;
    gap: 32px;
    padding: 50px 16px;
  }
  .faq-description {
    margin-bottom: 32px;
  }
}
.block {
  max-width: 1384px;
  margin: 0 auto;
  padding: 100px 32px 150px;
  display: flex;
  justify-content: space-between;
  gap: 48px;
}

.block-left {
  position: relative;
  max-width: 520px;
  width: 100%;
  display: flex;
}

.block-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.block-inner {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: center;
  width: 100%;
  max-width: 450px;
  padding: 0 16px;
}
.block-inner .block-header {
  font-size: 32px;
  font-family: Medium;
}
.block-inner .text {
  margin: 16px auto 24px;
}
.block-inner .btn-white {
  margin: 0 auto;
}

.block-right {
  max-width: 740px;
  width: 100%;
}
.block-right .h2, .block-right .h3 {
  margin: 32px 0 16px;
  font-size: 34px;
}
.block-right .text {
  margin: 16px 0;
}

.block-right > :first-child {
  margin-top: 0;
}

@media (max-width: 900px) {
  .block {
    flex-direction: column;
  }
}
@media (max-width: 768px) {
  .block {
    padding: 50px 16px;
    gap: 16px;
  }
  .block-left {
    aspect-ratio: 340/390;
  }
  .block-inner a {
    font-size: 14px;
  }
  .block-right .h2, .block-right .h3 {
    margin: 24px 0 16px;
    font-size: 18px;
  }
}

/* Cartes catégories: bouton "Détails" masqué */
#items-grid-p .card-info .product-info > button {
  display: none !important;
}
#items-grid-p .card-info {
  align-items: center;
}
#items-grid-p .card-info .card-description {
  display: flex;
  align-items: center;
  align-self: center;
  transform: none;
}
#items-grid-p .card-info .product-info {
  display: flex;
  align-items: center;
}

/* Page accessoires : 4 articles par ligne */
.page-accessoires #items-grid-p {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}
.page-accessoires #items-grid-p .card,
.page-accessoires #items-grid-p .card-2x,
.page-accessoires #items-grid-p .card-3x,
.page-accessoires #items-grid-p .card-4x {
  grid-column: span 1 !important;
  grid-row: span 1 !important;
  aspect-ratio: 1;
}
.page-accessoires #items-grid-p .card-4x .card-info {
  padding-top: 10px;
}

@media (max-width: 768px) {
  .page-accessoires #items-grid-p {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    padding-inline: 16px;
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }
  .page-accessoires #items-grid-p .card,
  .page-accessoires #items-grid-p .card-2x,
  .page-accessoires #items-grid-p .card-3x,
  .page-accessoires #items-grid-p .card-4x {
    grid-column: span 1 !important;
    min-width: 0;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .page-accessoires #items-grid-p {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* Pages marque : 4 articles par ligne */
.page-brand #items-grid-p {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}
.page-brand #items-grid-p .card,
.page-brand #items-grid-p .card-2x,
.page-brand #items-grid-p .card-3x,
.page-brand #items-grid-p .card-4x {
  grid-column: span 1 !important;
  grid-row: span 1 !important;
  aspect-ratio: 1;
}
.page-brand #items-grid-p .card-4x .card-info {
  padding-top: 10px;
}

@media (max-width: 768px) {
  .page-brand #items-grid-p {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    padding-inline: 16px;
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }
  .page-brand #items-grid-p .card,
  .page-brand #items-grid-p .card-2x,
  .page-brand #items-grid-p .card-3x,
  .page-brand #items-grid-p .card-4x {
    grid-column: span 1 !important;
    min-width: 0;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .page-brand #items-grid-p {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}