/* Product archive cards matched to the approved Decathlon reference. */
.archive-ssr-grid{
  align-items:stretch;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:14px!important;
}

.archive-product-card.product-card-reference{
  position:relative;
  display:grid;
  grid-template-rows:auto minmax(0,1fr) auto;
  min-width:0;
  height:100%;
  overflow:hidden;
  border:1px solid #e3e8e4;
  border-radius:14px;
  background:#fff;
  box-shadow:0 5px 18px rgba(15,48,28,.055);
  color:#1f2937;
  transform:none;
  transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease;
}
.archive-product-card.product-card-reference:hover{
  transform:translateY(-2px);
  border-color:#bfd8c3;
  box-shadow:0 12px 30px rgba(24,94,45,.10);
}
.archive-product-card.product-card-reference.unavailable{
  opacity:1;
}

.product-card-reference__media{
  position:relative;
  height:210px;
  min-height:210px;
  overflow:hidden;
  border-bottom:1px solid #f0f3f0;
  background:linear-gradient(180deg,#fff 0%,#fbfcfb 100%);
}
.product-card-reference__image-link{
  display:flex!important;
  align-items:center;
  justify-content:center;
  width:100%;
  height:100%!important;
  padding:18px 18px 12px;
}
.product-card-reference__media img{
  display:block;
  width:100%!important;
  height:100%!important;
  max-width:100%;
  object-fit:contain!important;
  object-position:center;
  border-radius:0!important;
  background:transparent!important;
  transform:none!important;
  transition:transform .2s ease,opacity .2s ease,filter .2s ease;
}
.product-card-reference:hover .product-card-reference__media img{
  transform:scale(1.018)!important;
}
.product-card-reference.unavailable .product-card-reference__media img{
  opacity:.58;
  filter:grayscale(.22);
}

.product-card-reference__badges{
  position:absolute;
  top:10px;
  right:10px;
  z-index:6;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:5px;
  max-width:calc(100% - 56px);
  pointer-events:none;
}
.product-card-reference .product-status-badge{
  position:static!important;
  display:inline-flex;
  align-items:center;
  gap:4px;
  min-height:25px;
  padding:4px 8px;
  border:1px solid transparent;
  border-radius:7px;
  box-shadow:0 5px 13px rgba(15,23,42,.10);
  font-size:10px;
  font-weight:900;
  line-height:1;
  white-space:nowrap;
  backdrop-filter:none;
}
.product-card-reference .product-status-badge i{font-size:10px}
.product-card-reference .product-status-badge small{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:24px;
  min-height:17px;
  padding:2px 4px;
  border-radius:5px;
  background:rgba(255,255,255,.22);
  font-size:9px;
  font-weight:950;
}
.product-card-reference .status-sale{background:#ef233c;color:#fff;border-color:#ef233c}
.product-card-reference .status-new{background:#1677ff;color:#fff;border-color:#1677ff}
.product-card-reference .status-best{background:#2ca447;color:#fff;border-color:#2ca447}
.product-card-reference .status-out{background:#a9afb5;color:#fff;border-color:#a9afb5}
.product-card-reference .status-limited{background:#f4a900;color:#fff;border-color:#f4a900}
.product-card-reference .status-featured{background:#7c3aed;color:#fff;border-color:#7c3aed}
.product-card-reference .status-backorder{background:#526273;color:#fff;border-color:#526273}
.product-card-reference .status-shipping{background:#0891b2;color:#fff;border-color:#0891b2}
.product-card-reference .status-fast-shipping{background:#0f9da8;color:#fff;border-color:#0f9da8}
.product-card-reference .status-online{background:#6d28d9;color:#fff;border-color:#6d28d9}
.product-card-reference .status-restocked{background:#0d9488;color:#fff;border-color:#0d9488}

.product-card-reference__type-icon{
  position:absolute;
  top:10px;
  left:10px;
  z-index:6;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:28px;
  height:28px;
  border:1px solid #dfe6e1;
  border-radius:9px;
  background:rgba(255,255,255,.96);
  color:#35443b;
  box-shadow:0 5px 13px rgba(15,48,28,.07);
  font-size:13px;
}
.product-card-reference__actions{
  position:absolute!important;
  top:48px!important;
  left:10px!important;
  z-index:6!important;
  display:flex!important;
  flex-direction:column!important;
  gap:6px!important;
  opacity:1!important;
}
.product-card-reference__actions .product-card-action{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:29px!important;
  height:29px!important;
  min-width:29px;
  padding:0!important;
  border:1px solid #e1e7e2!important;
  border-radius:50%!important;
  background:rgba(255,255,255,.97)!important;
  color:#52615a!important;
  box-shadow:0 4px 11px rgba(15,48,28,.07)!important;
  transition:background .15s ease,color .15s ease,border-color .15s ease,transform .15s ease!important;
}
.product-card-reference__actions .product-card-action:hover{
  border-color:#218c38!important;
  background:#218c38!important;
  color:#fff!important;
  transform:translateY(-1px)!important;
}

.product-card-reference__body{
  display:flex;
  flex-direction:column;
  min-width:0;
  padding:12px 12px 8px!important;
  color:#1f2937;
}
.product-card-reference__title-link{display:block;min-width:0}
.product-card-reference__body h3{
  display:-webkit-box;
  min-height:42px!important;
  max-height:42px;
  margin:0 0 5px!important;
  overflow:hidden;
  color:#27332c!important;
  font-size:13px!important;
  font-weight:850!important;
  line-height:1.65!important;
  text-align:center;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
}
.product-card-reference__brand{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  min-height:18px;
  margin:0 0 6px!important;
  overflow:hidden;
  color:#68746e!important;
  font-size:10.5px!important;
  line-height:1.5;
  text-align:center;
  white-space:nowrap;
  text-overflow:ellipsis;
}
.product-card-reference__brand small{
  color:#8b9690;
  font-size:9.5px;
}
.product-card-reference__brand small:before{content:"- ";}

.product-card-reference__meta-row{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:20px;
  margin-bottom:7px;
  color:#7a8680;
  font-size:10px;
}
.product-card-reference__rating{display:inline-flex;align-items:center;gap:3px}
.product-card-reference__rating i{color:#f3ac17;font-size:10px}
.product-card-reference__rating small{color:#a0a9a4}
.product-card-reference__kind{
  display:inline-flex;
  align-items:center;
  min-height:19px;
  padding:2px 7px;
  border-radius:999px;
  background:#f2f4f2;
  color:#6b766f;
  font-size:9px;
  font-weight:700;
}

.product-card-reference__options{
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap:7px;
  min-height:24px;
  margin-bottom:5px;
}
.product-card-reference__swatches{display:inline-flex;align-items:center;gap:5px}
.product-card-reference__swatches i{
  display:block;
  width:12px;
  height:12px;
  border:1px solid rgba(15,23,42,.18);
  border-radius:50%;
  background:var(--product-swatch,#d1d5db);
  box-shadow:0 0 0 2px #fff,0 0 0 3px rgba(15,23,42,.06);
}
.product-card-reference__size-summary{
  display:inline-flex;
  align-items:center;
  max-width:100%;
  min-height:19px;
  overflow:hidden;
  padding:2px 7px;
  border-radius:999px;
  background:#f2f4f2;
  color:#747f79;
  font-size:9px;
  white-space:nowrap;
  text-overflow:ellipsis;
}
.product-card-reference__stock{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  min-height:20px;
  margin-top:auto;
  color:#24813b;
  font-size:10px;
  font-weight:700;
}
.product-card-reference__stock i{font-size:6px}
.product-card-reference__stock.is-out{color:#e34a59}
.product-card-reference__stock.is-backorder{color:#d17b00}

.product-card-reference__countdown{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  min-height:27px;
  margin-top:5px;
  padding:5px 7px;
  border:1px solid #ffd8dd;
  border-radius:7px;
  background:#fff3f5;
  color:#e51f3d;
  font-size:9px;
  font-weight:800;
  white-space:nowrap;
}
.product-card-reference__countdown b{font-size:9px;font-variant-numeric:tabular-nums}
.product-card-reference__features{display:none;margin:12px 0 0!important;padding-inline-start:18px!important}

.product-card-reference__buy{
  display:grid!important;
  gap:8px!important;
  align-content:end;
  width:100%!important;
  padding:5px 10px 10px!important;
  border:0!important;
}
.product-card-reference__price{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  min-height:40px;
  margin:0!important;
  text-align:center;
}
.product-card-reference__price del{
  order:0;
  margin:0 0 2px;
  color:#8e9893!important;
  font-size:9.5px!important;
  line-height:1.2;
  text-decoration-thickness:1px;
}
.product-card-reference__price b{
  order:1;
  color:#218a38!important;
  font-size:13px!important;
  font-weight:950!important;
  line-height:1.35;
}
.product-card-reference.has-discount .product-card-reference__price b{color:#e51f3d!important}

.product-card-reference__cart-form{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:7px!important;
  width:100%!important;
}
.product-card-reference__cart-form .card-qty-control{display:none!important}
.product-card-reference__cta{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:6px!important;
  width:100%!important;
  min-height:38px!important;
  margin:0!important;
  padding:8px 10px!important;
  border:1px solid #208a38!important;
  border-radius:7px!important;
  background:#208a38!important;
  color:#fff!important;
  box-shadow:none!important;
  font-size:10.5px!important;
  font-weight:900!important;
  line-height:1.2!important;
  text-align:center!important;
  text-decoration:none!important;
  transition:background .15s ease,border-color .15s ease,transform .15s ease!important;
}
.product-card-reference__cta:hover{background:#18752e!important;border-color:#18752e!important;transform:translateY(-1px)}
.product-card-reference__cta.is-sale{background:#ef233c!important;border-color:#ef233c!important}
.product-card-reference__cta.is-sale:hover{background:#d91b32!important;border-color:#d91b32!important}
.product-card-reference__cta.is-variable{background:#fff!important;color:#218a38!important}
.product-card-reference__cta.is-variable:hover{background:#f2fbf4!important}
.product-card-reference__cta.is-unavailable{
  cursor:pointer;
  border-color:#d9ddda!important;
  background:#f2f4f2!important;
  color:#949c97!important;
}

/* List view uses the same markup and data, without a second card implementation. */
.archive-ssr-grid.list-view{
  grid-template-columns:1fr!important;
  gap:13px!important;
}
.archive-ssr-grid.list-view .archive-product-card.product-card-reference{
  display:grid!important;
  grid-template-columns:230px minmax(0,1fr) 220px!important;
  grid-template-rows:minmax(240px,auto)!important;
  align-items:stretch!important;
  gap:0!important;
}
.archive-ssr-grid.list-view .product-card-reference__media{
  height:100%!important;
  min-height:240px!important;
  border-bottom:0!important;
  border-left:1px solid #edf0ed;
}
.archive-ssr-grid.list-view .product-card-reference__image-link{padding:20px}
.archive-ssr-grid.list-view .product-card-reference__body{
  justify-content:center;
  padding:20px 22px!important;
}
.archive-ssr-grid.list-view .product-card-reference__body h3{
  min-height:0!important;
  max-height:none;
  margin-bottom:7px!important;
  font-size:16px!important;
  line-height:1.7!important;
  text-align:right;
  -webkit-line-clamp:2;
}
.archive-ssr-grid.list-view .product-card-reference__brand,
.archive-ssr-grid.list-view .product-card-reference__meta-row,
.archive-ssr-grid.list-view .product-card-reference__options,
.archive-ssr-grid.list-view .product-card-reference__stock,
.archive-ssr-grid.list-view .product-card-reference__countdown{
  justify-content:flex-start;
  text-align:right;
}
.archive-ssr-grid.list-view .product-card-reference__brand{font-size:11.5px!important}
.archive-ssr-grid.list-view .product-card-reference__meta-row{margin-bottom:10px}
.archive-ssr-grid.list-view .product-card-reference__options{margin-bottom:8px}
.archive-ssr-grid.list-view .product-card-reference__features{
  display:grid!important;
  gap:5px;
  color:#66736c!important;
  font-size:11px;
  line-height:1.75;
}
.archive-ssr-grid.list-view .product-card-reference__features li::marker{color:#2ca447}
.archive-ssr-grid.list-view .product-card-reference__buy{
  align-content:center;
  padding:20px!important;
  border-right:1px solid #edf0ed!important;
}
.archive-ssr-grid.list-view .product-card-reference__price{align-items:flex-end;text-align:right}
.archive-ssr-grid.list-view .product-card-reference__price b{font-size:15px!important}
.archive-ssr-grid.list-view .product-card-reference__cart-form{
  grid-template-columns:92px minmax(0,1fr)!important;
  align-items:stretch!important;
}
.archive-ssr-grid.list-view .product-card-reference__cart-form .card-qty-control{
  display:grid!important;
  height:38px!important;
  grid-template-columns:27px 1fr 27px!important;
  border-radius:7px!important;
}
.archive-ssr-grid.list-view .product-card-reference__cta{min-height:38px!important}

body.theme-dark .archive-product-card.product-card-reference{
  border-color:#303c36;
  background:#18221d;
  color:#e5ece8;
}
body.theme-dark .product-card-reference__media{border-color:#2b3731;background:linear-gradient(180deg,#1b2720,#17211c)}
body.theme-dark .product-card-reference__body h3{color:#eef5f0!important}
body.theme-dark .product-card-reference__brand,
body.theme-dark .product-card-reference__meta-row{color:#a8b4ad!important}
body.theme-dark .product-card-reference__kind,
body.theme-dark .product-card-reference__size-summary{background:#26332c;color:#c3cec8}
body.theme-dark .product-card-reference__type-icon,
body.theme-dark .product-card-reference__actions .product-card-action{border-color:#35443c!important;background:rgba(29,41,34,.96)!important;color:#d7e0db!important}
body.theme-dark .product-card-reference__price del{color:#89958e!important}
body.theme-dark .product-card-reference__cta.is-variable{background:#18221d!important;color:#72c680!important}
body.theme-dark .archive-ssr-grid.list-view .product-card-reference__media,
body.theme-dark .archive-ssr-grid.list-view .product-card-reference__buy{border-color:#2b3731!important}

@media(max-width:1399.98px){
  .archive-ssr-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media(max-width:1199.98px){
  .archive-ssr-grid.list-view .archive-product-card.product-card-reference{grid-template-columns:205px minmax(0,1fr) 205px!important}
}
@media(max-width:991.98px){
  .archive-ssr-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .archive-ssr-grid.list-view .archive-product-card.product-card-reference{grid-template-columns:190px minmax(0,1fr)!important;grid-template-rows:auto auto!important}
  .archive-ssr-grid.list-view .product-card-reference__buy{grid-column:1/-1;border-right:0!important;border-top:1px solid #edf0ed!important;grid-template-columns:1fr minmax(220px,340px);align-items:center!important}
  .archive-ssr-grid.list-view .product-card-reference__price{align-items:flex-start}
}
@media(max-width:767.98px){
  .product-card-reference__media{height:205px;min-height:205px}
  .archive-ssr-grid.list-view .archive-product-card.product-card-reference{grid-template-columns:145px minmax(0,1fr)!important}
  .archive-ssr-grid.list-view .product-card-reference__media{min-height:195px!important}
  .archive-ssr-grid.list-view .product-card-reference__body{padding:14px!important}
  .archive-ssr-grid.list-view .product-card-reference__body h3{font-size:13px!important}
  .archive-ssr-grid.list-view .product-card-reference__features{display:none!important}
  .archive-ssr-grid.list-view .product-card-reference__buy{grid-template-columns:1fr!important;padding:12px!important}
  .archive-ssr-grid.list-view .product-card-reference__price{align-items:center}
  .archive-ssr-grid.list-view .product-card-reference__cart-form{grid-template-columns:1fr!important}
  .archive-ssr-grid.list-view .product-card-reference__cart-form .card-qty-control{display:none!important}
}
@media(max-width:575.98px){
  .archive-ssr-grid{grid-template-columns:1fr!important;gap:12px!important}
  .product-card-reference__media{height:235px;min-height:235px}
  .product-card-reference__body h3{font-size:14px!important}
  .archive-ssr-grid.list-view .archive-product-card.product-card-reference{grid-template-columns:118px minmax(0,1fr)!important}
  .archive-ssr-grid.list-view .product-card-reference__media{min-height:170px!important}
  .archive-ssr-grid.list-view .product-card-reference__image-link{padding:12px 8px}
  .archive-ssr-grid.list-view .product-card-reference__actions{display:none!important}
  .archive-ssr-grid.list-view .product-card-reference__type-icon{width:25px;height:25px}
  .archive-ssr-grid.list-view .product-card-reference__badges{max-width:calc(100% - 42px)}
  .archive-ssr-grid.list-view .product-card-reference__body h3{-webkit-line-clamp:3}
  .archive-ssr-grid.list-view .product-card-reference__meta-row,
  .archive-ssr-grid.list-view .product-card-reference__options{display:none}
}
