/* Market Content widget (ported from theme xx.css excerpts)
   Keep this file scoped to the widget's classnames. */

.vsw-market-content .component {
  box-sizing: border-box;
}

/* Default columns (overridable per widget instance via Elementor controls) */
.vsw-market-content {
  --vsw-mc-cols-desktop: 5;
  --vsw-mc-cols-tablet: 4;
  --vsw-mc-cols-mobile: 2;
  --vsw-mc-cols: var(--vsw-mc-cols-desktop);
  --vsw-mc-gap: 0px;
}

/* ---------- Listing cards (x5) ---------- */

@media only screen and (max-width: 991px) {
  .vsw-market-content .component-listing-gamme {
    margin: 0 15px 80px;
  }
}

.vsw-market-content .component-listing-gamme .content-listing-marche-x5 {
  display: grid;
  grid-template-columns: repeat(var(--vsw-mc-cols), minmax(0, 1fr));
  gap: var(--vsw-mc-gap);
}

.vsw-market-content .card-item-marche-x5 {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border-bottom: 4px solid #e20714;
  background-color: #000;
  text-decoration: none;
  aspect-ratio: 1 / 1;
}

.vsw-market-content .card-item-marche-x5 .background {
  position: absolute;
  display: block;
  inset: 0;
  overflow: hidden;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  transition: all .3s ease-in-out;
}

.vsw-market-content .card-item-marche-x5 .title-item-marche-x5 {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translate(-50%);
  text-align: center;
  transition: all .2s ease-in-out;
}

.vsw-market-content .card-item-marche-x5 .title-item-marche-x5 .label-item-marche-x5 {
  position: relative;
  font-size: 1.5625rem;
  line-height: 1.375rem;
  font-weight: 400;
  color: #fff;
  margin: 0;
}

.vsw-market-content .card-item-marche-x5 .title-item-marche-x5 .label-item-marche-x5:before {
  content: "";
  position: absolute;
  width: 20px;
  height: 3px;
  left: -30px;
  bottom: 3px;
  background-color: #e20714;
  transition: all .3s ease-in-out;
}

.vsw-market-content .card-item-marche-x5 .title-item-marche-x5 .label-item-marche-x5:after {
  content: "";
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  left: -35px;
  bottom: -3px;
  background-color: #0009;
  padding: 4px 5px 4px 35px;
  z-index: -1;
  box-sizing: initial;
  transition: all .3s ease-in-out;
}

.vsw-market-content .card-item-marche-x5 .btn {
  width: 70%;
  position: absolute;
  bottom: -30px;
  right: 0;
  transition: all .3s ease-in-out;
}

.vsw-market-content .card-item-marche-x5:hover .background {
  transform: scale(1.1);
}

.vsw-market-content .card-item-marche-x5:hover .title-item-marche-x5 .label-item-marche-x5:before {
  width: 20px;
  left: -24px;
}

.vsw-market-content .card-item-marche-x5:hover .btn {
  bottom: 0;
}

@media only screen and (max-width: 1199px) {
  .vsw-market-content {
    --vsw-mc-cols: var(--vsw-mc-cols-tablet);
  }
}

@media only screen and (max-width: 767px) {
  .vsw-market-content {
    --vsw-mc-cols: var(--vsw-mc-cols-mobile);
  }
  .vsw-market-content .component-listing-gamme {
    margin: 0 0 20px;
  }
  .vsw-market-content .card-item-marche-x5 {
    width: 100%;
    margin-bottom: 5px;
  }
  .vsw-market-content .card-item-marche-x5 .title-item-marche-x5 {
    bottom: 30px;
    left: 0;
    transform: none;
    margin-left: 30px;
  }
}

/* ---------- Button primitives (minimal subset) ---------- */
.vsw-market-content .btn {
  display: inline-block;
  position: relative;
  background-color: #e20714;
  color: #fff;
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all .3s ease-in-out;
  padding: 5px 30px 5px 10px;
  height: 30px;
  line-height: 20px;
  font-size: .8125rem;
}

.vsw-market-content .btn-medium:hover {
  transform: translate(3%);
}

.vsw-market-content .btn-red-square {
  width: 30px;
  height: 100%;
  position: absolute;
  top: 0;
  right: 0;
  background-color: #e20714;
  overflow: hidden;
}

.vsw-market-content .btn-red-square:before {
  content: "";
  position: absolute;
  display: block;
  width: 60px;
  height: 8px;
  left: -30%;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: all .3s ease-in-out;
  background-repeat: repeat-x;
  background-size: 35px 8px;
  /* simple inline arrow pattern */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='35' height='8' viewBox='0 0 35 8'%3E%3Cpath fill='%23fff' d='M0 3h28V1l7 3-7 3V5H0z'/%3E%3C/svg%3E");
}

.vsw-market-content .btn-medium:hover .btn-red-square:before {
  left: 0;
}

.vsw-market-content .btn-back-white {
  background-color: #fff;
  color: #000;
  border: 1px solid #000;
  font-style: normal;
  padding-right: 40px;
}