.card {
  display: block;
  overflow: hidden;
  text-decoration: none;
}

.card + .card-information {
  margin-top: 1.3rem;
}

@media screen and (min-width: 750px) {
  .card + .card-information {
    margin-top: 1.7rem;
  }
}

.card.card--soft {
  background-color: rgba(var(--color-foreground), 0.04);
  color: rgb(var(--color-foreground));
}

.card .icon-wrap {
  margin-left: 0.8rem;
  white-space: nowrap;
  transition: transform var(--duration-short) ease;
  overflow: hidden;
}

.card .h1 .icon-arrow,
.card .h2 .icon-arrow {
  padding-bottom: 0.3rem;
  padding-top: 0.3rem;
}

.card--media {
  display: block;
  text-decoration: none;
}

.card--text-only {
  display: flex;
  justify-content: center;
}

.card--text-only::before {
  content: '';
  display: block;
  padding-bottom: 100%;
}

.card--product {
  position: relative;
}

.product-card-wrapper{
  border-radius: 1.2rem;
}

.product-card-wrapper .card--product .media > img{
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: calc(100% - 2rem);
  height: calc(100% - 2rem);
  border-radius: 8px;
}

.product-card-wrapper .card-information{
  margin-top: 0;
  padding: 0 1rem 1rem;
}

.card--stretch {
  height: 100%;
}

.card--outline:not(.card--soft) {
  border: 0.1rem solid rgba(var(--color-foreground), 0.04);
}

.card--light-border {
  border: 0.1rem solid rgba(var(--color-foreground), 0.04);
}

.card--light-border:hover {
  border: 0.1rem solid rgba(var(--color-foreground), 0.3);
  box-shadow: none;
}

.card__text-spacing {
  padding: 3rem;
}

.card-colored.color-background-1 {
  background-color: rgba(var(--color-foreground), 0.04);
}

.card--media .card__text-spacing {
  padding: 2rem;
}

@media screen and (min-width: 750px) {
  .card--media .card__text-spacing {
    padding-left: 3rem;
    padding-right: 3rem;
  }

  .product-card-wrapper .card--product .media > img{
    top: 2rem;
    left: 2rem;
    width: calc(100% - 4rem);
    height: calc(100% - 4rem);
  }
  
  .product-card-wrapper .card-information{
    margin-top: 0;
    padding: 0 2rem 2rem;
  }

  .badge.addToClassList:not(.transparent){
    display: none;
  }

  .product-card-wrapper:hover .badge.addToClassList{
    display: flex;
  }
}

.card-information > * + * {
  margin-top: 0.5rem;
}

.card--text-only .card__inner {
  display: grid;
  grid-template-rows: 1fr auto 1fr;
  width: 100%;
}

.card__content {
  margin-left: 2.5rem;
  margin-right: 2.5rem;
}

.card__content > * {
  margin: 0;
}

.card--text-only .card__content {
  grid-row: 2;
  justify-self: flex-start;
  margin-bottom: 6rem;
  margin-top: 5rem;
}

.card--text-only .card__badge {
  align-self: flex-end;
  grid-row: 3;
}

.card--search .card__badge > *,
.card--text-only .card__badge > * {
  margin: 0 1.2rem 1.2rem;
}

.card--search .card__badge,
.card--text-only .card__badge {
  position: initial;
}

.card--text-only .card__content + .card__badge {
  margin-top: -5rem;
}

.media + .card__content {
  margin-top: 2rem;
  margin-bottom: 1.5rem;
}

@media screen and (min-width: 750px) {
  .card--text-only .card__content {
    margin-top: 7rem;
    margin-bottom: 7rem;
  }

  .card--text-only .card__content + .card__badge {
    margin-top: -7rem;
  }
}

.card__text-spacing > * {
  margin: 0;
}

.card__text-spacing > *:not(.overlay-card) + * {
  margin-top: 1.5rem;
}

.card__text {
  margin: 0;
  word-break: break-word;
}

.card-information__text {
  font-weight: bold;
  display: block;
  padding-right: 1.2rem;
}

.card-information__wrapper {
  width: 100%;
}

.card-information__wrapper > * {
  line-height: 1.4;
  color: rgb(var(--color-foreground));
}

.card-information__wrapper > .price {
  color: rgb(var(--color-foreground));
}

.card-information__wrapper > .rating {
  margin-top: 0.4rem;
}

.card-information__wrapper
  > *:not(.visually-hidden:first-child)
  + *:not(.rating) {
  margin-top: 0.7rem;
}

.card-information__wrapper .caption {
  letter-spacing: 0.07rem;
}

.card-wrapper {
  color: inherit;
  display: block;
  position: relative;
  text-decoration: none;
  height: 100%;
}

.card-wrapper:focus-within .card {
  box-shadow: none;
}

.card__media-spacer {
  padding: 2rem 2rem 0;
}

@media screen and (min-width: 750px) {
  .card__media-spacer {
    padding: 3rem 3rem 0;
  }
}

.card__media-full-spacer {
  padding: 2rem;
}

.card-article-info {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
}

.card__badge {
  bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  left: 1rem;
  position: absolute;
  z-index: 1;
}

.card__badge.card__badge-bottom-right {
  left: initial;
  right: 1rem;
}

.card__badge.card__badge-top-right {
  left: initial;
  bottom: initial;
  top: 0;
  right: 1rem;
}

.card__badge.card__badge-top-left {
  left: 1em;
  bottom: initial;
  top: 0;
}

.card__badge.card__badge-top-right.card__badge-float-edge {
  right: 0;
  margin: -0.6em;
}

.card__badge.card__badge-top-left.card__badge-float-edge {
  left: 0;
  margin: -0.6em;
}

.card__badge > .badge--bottom-right,
.card__badge .loading-overlay {
  margin: 0;
}

.badge.addToClassList .icon{
  width: 1.2em;
  height: 1.2em;
}

.overlay-card {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  background: transparent;
  transition: background-color var(--duration-long) ease;
}

.card:hover .card-colored .overlay-card {
  background-color: rgba(var(--color-card-hover), 0.06);
}

@media screen and (min-width: 990px) {
  .card .media.media--hover-effect > img:only-child,
  .card-wrapper .media.media--hover-effect > img:only-child {
    transition: transform var(--duration-long) ease;
  }

  .card:hover .media.media--hover-effect > img:first-child:only-child,
  .card-wrapper:hover .media.media--hover-effect > img:first-child:only-child {
    transform: scale(1.03);
  }

  .card-wrapper:hover
    .media.media--hover-effect
    > img:first-child:not(:only-child) {
    opacity: 0;
  }

  .card-wrapper:hover .media.media--hover-effect > img + img {
    opacity: 1;
    transition: transform var(--duration-long) ease;
    transform: scale(1.03);
  }

  .card-wrapper:hover .card-information__text {
    text-decoration: underline;
    text-underline-offset: 0.3rem;
  }

  .card--search img {
    transition: transform var(--duration-default) ease;
  }

  .card-wrapper:hover .card--search img {
    transform: scale(1.05);
  }

  .card-wrapper:hover .card__text {
    text-decoration: underline;
    text-underline-offset: 0.3rem;
  }

  .card-wrapper:hover .card--soft {
    background-color: rgba(var(--color-card-hover), 0.06);
    transition: background-color var(--duration-long) ease;
  }

  .card__badge.card__badge-top-right.card__badge-float-edge {
    margin: -1em;
  }

  .card__badge.card__badge-top-left.card__badge-float-edge {
    margin: -1em;
  }

}

.custom-product-card {
  height: 100%;
}

.custom-product-card__link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.custom-product-card__box {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
  position: relative;
}

.custom-product-card__box:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.10);
}

.custom-product-card__inner {
  padding: 14px 14px 0;
  position: relative;
}

.custom-product-card__media {
  border-radius: 12px;
  overflow: hidden;
}

.custom-product-card__media img {
  width: 100%;
  height: auto;
  display: block;
}

.custom-product-card__info {
  padding: 10px 14px 18px;
  text-align: center;
}

.custom-product-card__info-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.custom-product-card__title {
  display: block;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 500;
  color: #111;
  text-align: center;
  margin: 8px 0 10px;
  min-height: 66px;
}

.custom-product-card__price {
  display: flex;
  justify-content: center;
  align-items: center;
}

.custom-product-card__price .price,
.custom-product-card__price .price-item,
.custom-product-card__price .money {
  font-size: 24px;
  font-weight: 700;
  color: #111;
}

.custom-product-card__soldout {
  background: #f5b400 !important;
  color: #fff !important;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  text-transform: uppercase;
}

.custom-product-card .card__badge-top-left {
  top: 10px;
  left: 10px;
}

.custom-product-card .card__badge-top-right {
  top: 10px;
  right: 10px;
}

/* FIX SOLD OUT BADGE OVERLAP */
.custom-product-card .card__badge {
  z-index: 10 !important;
}

.custom-product-card .card__badge-sold_out {
  top: 10px !important;
  left: 10px !important;
  bottom: auto !important;
}

.custom-product-card .card__badge-sold_out .badge {
  background: #f5b400 !important;
  color: #fff !important;
  padding: 6px 4px !important;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;

  /* vertical style */
  writing-mode: vertical-rl;
  text-orientation: mixed;

  /* REMOVE ALL OLD STYLES */
  border-radius: 0 !important;
  box-shadow: none !important;
  border: none !important;
}

/* KILL ribbon triangles / shadows */
.custom-product-card .badge::before,
.custom-product-card .badge::after {
  display: none !important;
  content: none !important;
}

/* =========================
   FINAL PRODUCT CARD STYLE
   ========================= */

/* Card spacing + center layout */
.custom-product-card__info {
  padding: 12px 14px 18px;
  text-align: center;
}

.custom-product-card__title {
  display: block;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 500;
  color: #111;
  text-align: center;
  margin: 10px 0 8px;
  min-height: 68px;
  text-decoration: none !important;
}

/* Bigger bold price */
.custom-product-card__price .price,
.custom-product-card__price .price-item,
.custom-product-card__price .money {
  font-size: 22px;
  font-weight: 700;
  color: #111;
}

/* Remove underline on hover */
.custom-product-card:hover .card-information__text,
.custom-product-card .card-information__text:hover {
  text-decoration: none !important;
}

/* Fix image spacing (clean centered card look) */
.custom-product-card .card--product .media > img {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: calc(100% - 2rem);
  height: calc(100% - 2rem);
  object-fit: contain;
  border-radius: 10px;
}

@media screen and (min-width: 750px) {
  .custom-product-card .card--product .media > img {
    top: 1.2rem;
    left: 1.2rem;
    width: calc(100% - 2.4rem);
    height: calc(100% - 2.4rem);
  }
}

/* Clean border like reference */
.custom-product-card__box {
  border: 1px solid rgba(0,0,0,0.05);
}

.custom-product-card__rating {
  margin-bottom: 6px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 13px;
}

.custom-product-card__rating .jdgm-prev-badge {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.custom-product-card__rating .jdgm-star {
  color: #0bbbbb !important;
}

.custom-product-card__rating .jdgm-prev-badge__text {
  font-size: 12px;
  color: #555;
}

/* Remove grey placeholder background */
.custom-product-card__media,
.custom-product-card .media,
.custom-product-card .media--transparent {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

/* Remove any fake ratio layer / placeholder layer */
.custom-product-card__media::before,
.custom-product-card__media::after,
.custom-product-card .media::before,
.custom-product-card .media::after {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

/* Optional: if you want tighter clean image area */
.custom-product-card__inner {
  padding: 10px 10px 0;
}

/* FINAL FIX - REMOVE IMAGE INSET */
.product-card-wrapper .card--product .media > img {
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 12px !important;
}

/* =================================
   TOTALCARDS-STYLE PRODUCT CARD
   no review row version
   ================================= */

.custom-product-card {
  height: 100%;
}

.custom-product-card__link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.custom-product-card__box {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
  position: relative;
}

.custom-product-card__box {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.custom-product-card__box:hover {
  transform: translateY(-6px);
  box-shadow: 
    0 4px 10px rgba(0,0,0,0.06),
    0 12px 28px rgba(0,0,0,0.12);
}

.custom-product-card__inner {
  padding: 14px 14px 0;
  position: relative;
  background: #fff;
}

.custom-product-card__media,
.custom-product-card .media,
.custom-product-card .media--transparent,
.custom-product-card .media--square {
  background: #fff !important;
  background-color: #fff !important;
  box-shadow: none !important;
  border-radius: 12px;
  overflow: hidden;
}

.custom-product-card__media::before,
.custom-product-card__media::after,
.custom-product-card .media::before,
.custom-product-card .media::after,
.custom-product-card .media--square::before,
.custom-product-card .media--square::after,
.custom-product-card .media--transparent::before,
.custom-product-card .media--transparent::after {
  background: #fff !important;
  background-color: #fff !important;
  box-shadow: none !important;
  border: none !important;
}

.custom-product-card .card--product .media > img {
  position: absolute;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  border-radius: 12px !important;
}

.custom-product-card__info {
  padding: 12px 14px 18px;
  text-align: center;
}

.custom-product-card__info-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.custom-product-card__title {
  display: block;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 500;
  color: #111 !important;
  text-align: center;
  margin: 8px 0 8px;
  min-height: 66px;
  text-decoration: none !important;
}

.custom-product-card:hover .card-information__text,
.custom-product-card .card-information__text:hover {
  text-decoration: none !important;
}

.custom-product-card__price {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 2px;
}

.custom-product-card__price .price,
.custom-product-card__price .price-item,
.custom-product-card__price .money {
  font-size: 18px;
  font-weight: 700;
  color: #111 !important;
}

.custom-product-card__price .price__sale {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.custom-product-card__price .price__compare .price-item,
.custom-product-card__price s.price-item {
  font-size: 15px;
  color: #666 !important;
  font-weight: 500;
}

.custom-product-card .card__badge {
  z-index: 10 !important;
}

.custom-product-card .card__badge-top-left {
  top: 8px !important;
  left: 8px !important;
  bottom: auto !important;
}

.custom-product-card .card__badge-top-right {
  display: none !important;
}

/* sold out ribbon like reference */
.custom-product-card .card__badge-sold_out .badge {
  background: #e0a800 !important;
  color: #fff !important;
  padding: 6px 4px !important;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  border-radius: 0 !important;
  box-shadow: 0 4px 10px rgba(0,0,0,.10) !important;
  border: none !important;
}

.custom-product-card .badge::before,
.custom-product-card .badge::after {
  display: none !important;
  content: none !important;
}

/* sale badge cleaner */
.custom-product-card .card__badge-on_sale .badge {
  background: #111 !important;
  color: #fff !important;
  padding: 6px 4px !important;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  border-radius: 0 !important;
  box-shadow: 0 4px 10px rgba(0,0,0,.10) !important;
  border: none !important;
}

/* remove old theme underlines / weird spacing */
.product-card-wrapper .card-information {
  margin-top: 0 !important;
}

.card-information__text {
  padding-right: 0 !important;
}

/* desktop spacing similar to reference */
@media screen and (min-width: 750px) {
  .custom-product-card__inner {
    padding: 14px 14px 0;
  }

  .custom-product-card__info {
    padding: 12px 16px 18px;
  }

  .custom-product-card__title {
    font-size: 15px;
    min-height: 68px;
  }

  .custom-product-card__price .price,
  .custom-product-card__price .price-item,
  .custom-product-card__price .money {
    font-size: 18px;
  }
}


/* Hide wrong duplicate price blocks */
.price:not(.price--on-sale) .price__sale {
  display: none !important;
}

.price.price--on-sale .price__regular {
  display: none !important;
}

.price .price__compare:empty,
.price .price__compare .price-item:empty {
  display: none !important;
}

.custom-product-card__demand-bar-wrap {
  width: 100%;
  margin-top: 10px;
}

.custom-product-card__demand-label {
  font-size: 11px;
  font-weight: 700;
  color: #c0392b;
  text-align: center;
  margin-bottom: 6px;
  letter-spacing: 0.2px;
  text-transform: uppercase;
}

.custom-product-card__demand-bar {
  width: 100%;
  height: 8px;
  background: #ececec;
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.custom-product-card__demand-fill {
  display: block;
  height: 100%;
  width: 78%;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff7a00 0%, #ff3d00 100%);
  position: relative;
  animation: demandPulse 1.8s ease-in-out infinite;
}

.custom-product-card__demand-fill::after {
  content: "";
  position: absolute;
  top: 0;
  right: -18px;
  width: 36px;
  height: 100%;
  background: rgba(255,255,255,0.35);
  transform: skewX(-20deg);
  animation: demandShine 1.8s linear infinite;
}

@keyframes demandPulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.12); }
}

@keyframes demandShine {
  0% { right: -36px; }
  100% { right: 100%; }
}

/* PRE-ORDER BAR (GREEN) */
.custom-product-card__preorder-bar-wrap {
  width: 100%;
  margin-top: 10px;
}

.custom-product-card__preorder-label {
  font-size: 11px;
  font-weight: 700;
  color: #1e7e34;
  text-align: center;
  margin-bottom: 6px;
  letter-spacing: 0.2px;
  text-transform: uppercase;
}

.custom-product-card__preorder-bar {
  width: 100%;
  height: 8px;
  background: #e8f5e9;
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.custom-product-card__preorder-fill {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #4caf50 0%, #2e7d32 100%);
  position: relative;
  animation: preorderPulse 2s ease-in-out infinite;
}

.custom-product-card__preorder-fill::after {
  content: "";
  position: absolute;
  top: 0;
  right: -20px;
  width: 40px;
  height: 100%;
  background: rgba(255,255,255,0.3);
  transform: skewX(-20deg);
  animation: preorderShine 2s linear infinite;
}

@keyframes preorderPulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.08); }
}

@keyframes preorderShine {
  0% { right: -40px; }
  100% { right: 100%; }
}

.custom-product-card__demand-fill {
  transition: width 0.3s ease;
  box-shadow: 0 0 8px rgba(255, 80, 0, 0.25);
}


.custom-product-card__box {
  animation: cardFade 0.4s ease;
}

@keyframes cardFade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-page-small-tag .main-image img,
.product-page-small-tag .product__media-list img,
.product-page-small-tag .product__media-item img {
  width: 60% !important;
  max-width: 60% !important;
  height: auto !important;
  margin: 0 auto !important;
  display: block !important;
}