/* C'Betta — shared diagonal product-status badge.
   The ribbon stays anchored to the top-left image corner so it remains visible
   on cards and on the product-detail page without drifting toward the center. */
.product-status-badge{
  position:absolute;
  z-index:10;
  top:0;
  left:0;
  width:210px;
  height:210px;
  margin:0;
  padding:0;
  display:block;
  box-sizing:border-box;
  overflow:hidden;
  background:transparent;
  border:0;
  border-radius:0;
  color:#f7d77a;
  pointer-events:none;
  transform:none;
}
.product-status-badge::before{
  content:"";
  position:absolute;
  left:-48px;
  top:32px;
  width:205px;
  height:42px;
  box-sizing:border-box;
  background:linear-gradient(135deg,rgba(8,8,8,.985),rgba(23,18,10,.97));
  border-top:1px solid rgba(247,215,122,.95);
  border-bottom:1px solid rgba(247,215,122,.95);
  box-shadow:0 3px 10px rgba(0,0,0,.34);
  transform:rotate(-45deg);
  transform-origin:center center;
}
.product-status-badge-content{
  position:absolute;
  left:-48px;
  top:32px;
  width:205px;
  height:42px;
  box-sizing:border-box;
  padding:0 10px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  white-space:nowrap;
  text-align:center;
  color:inherit;
  font-size:11px;
  font-weight:800;
  letter-spacing:.45px;
  text-transform:uppercase;
  line-height:1;
  transform:rotate(-45deg);
  transform-origin:center center;
}
.product-status-badge--short,
.product-status-badge--medium,
.product-status-badge--long{
  top:0;
  left:0;
  width:210px;
  height:210px;
  min-height:210px;
  max-width:none;
  right:auto;
  padding:0;
  border:0;
  border-radius:0;
  line-height:1;
}
.product-status-badge-content>span:last-child{
  white-space:nowrap;
  max-width:none;
  line-height:1;
}
.product-status-badge--sold,
.product-status-badge--available,
.product-status-badge--reserved,
.product-status-badge--auction,
.product-status-badge--auction-won{
  color:#f7d77a;
}
.product-status-badge-icon{
  width:18px;
  height:18px;
  display:inline-grid;
  place-items:center;
  flex:0 0 18px;
  color:currentColor;
}
.product-status-badge-icon svg{
  width:18px;
  height:18px;
  display:block;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.product-status-badge--auction-won .product-status-badge-icon svg{stroke-width:1.75;}

@media(max-width:600px){
  .product-status-badge,
  .product-status-badge--short,
  .product-status-badge--medium,
  .product-status-badge--long{
    width:190px;
    height:190px;
    min-height:190px;
  }
  .product-status-badge::before,
  .product-status-badge-content{
    left:-43px;
    top:29px;
    width:185px;
    height:38px;
  }
  .product-status-badge-content{
    padding:0 9px;
    gap:5px;
    font-size:10px;
    letter-spacing:.35px;
  }
  .product-status-badge-icon{
    width:17px;
    height:17px;
    flex-basis:17px;
  }
  .product-status-badge-icon svg{
    width:17px;
    height:17px;
  }
}

/* Long status labels use a compact horizontal badge instead of the diagonal ribbon. */
.product-status-badge--long{
  top:12px;
  left:12px;
  width:auto;
  height:auto;
  min-height:0;
  max-width:calc(100% - 24px);
  display:inline-flex;
  align-items:center;
  padding:0;
  overflow:visible;
  background:transparent;
  border:0;
  border-radius:0;
  transform:none;
}
.product-status-badge--long::before{
  display:none;
}
.product-status-badge--long .product-status-badge-content{
  position:static;
  width:auto;
  height:auto;
  min-height:36px;
  max-width:100%;
  box-sizing:border-box;
  padding:7px 11px;
  display:inline-flex;
  align-items:center;
  justify-content:flex-start;
  gap:6px;
  white-space:nowrap;
  text-align:left;
  color:#f7d77a;
  background:linear-gradient(135deg,rgba(8,8,8,.97),rgba(23,18,10,.96));
  border:1px solid rgba(247,215,122,.9);
  border-radius:8px;
  box-shadow:0 3px 10px rgba(0,0,0,.34);
  font-size:10px !important;
  font-weight:800;
  letter-spacing:.15px !important;
  line-height:1.1;
  text-transform:uppercase;
  transform:none;
}
.product-status-badge--long .product-status-badge-icon{
  width:16px !important;
  height:16px !important;
  flex:0 0 16px !important;
}
.product-status-badge--long .product-status-badge-icon svg{
  width:16px !important;
  height:16px !important;
}
@media(max-width:600px){
  .product-status-badge--long{
    top:10px;
    left:10px;
    max-width:calc(100% - 20px);
  }
  .product-status-badge--long .product-status-badge-content{
    min-height:34px;
    padding:6px 9px;
    gap:5px;
    font-size:9px !important;
    letter-spacing:.05px !important;
  }
  .product-status-badge--long .product-status-badge-icon{
    width:15px !important;
    height:15px !important;
    flex-basis:15px !important;
  }
  .product-status-badge--long .product-status-badge-icon svg{
    width:15px !important;
    height:15px !important;
  }
}

/* Use a compact horizontal status badge so it never covers the gallery arrows. */
.product-status-badge,
.product-status-badge--short,
.product-status-badge--medium,
.product-status-badge--long{
  top:12px;
  left:12px;
  right:auto;
  width:auto;
  height:auto;
  min-height:0;
  max-width:calc(100% - 24px);
  display:inline-flex;
  align-items:center;
  padding:0;
  overflow:visible;
  background:transparent;
  border:0;
  border-radius:0;
  transform:none;
}
.product-status-badge::before,
.product-status-badge--short::before,
.product-status-badge--medium::before,
.product-status-badge--long::before{display:none;}
.product-status-badge-content,
.product-status-badge--short .product-status-badge-content,
.product-status-badge--medium .product-status-badge-content{
  position:static;
  width:auto;
  height:auto;
  min-height:36px;
  max-width:100%;
  box-sizing:border-box;
  padding:7px 11px;
  display:inline-flex;
  align-items:center;
  justify-content:flex-start;
  gap:6px;
  white-space:nowrap;
  text-align:left;
  color:#f7d77a;
  background:linear-gradient(135deg,rgba(8,8,8,.97),rgba(23,18,10,.96));
  border:1px solid rgba(247,215,122,.9);
  border-radius:8px;
  box-shadow:0 3px 10px rgba(0,0,0,.34);
  font-size:10px;
  letter-spacing:.15px;
  line-height:1.1;
  transform:none;
}
@media(max-width:600px){
  .product-status-badge,
  .product-status-badge--short,
  .product-status-badge--medium,
  .product-status-badge--long{
    top:10px;
    left:10px;
    max-width:calc(100% - 20px);
  }
  .product-status-badge-content,
  .product-status-badge--short .product-status-badge-content,
  .product-status-badge--medium .product-status-badge-content{
    min-height:34px;
    padding:6px 9px;
    gap:5px;
    font-size:9px;
    letter-spacing:.05px;
  }
}
