/* ================================
   SALE CAROUSEL (Shortcode widget)
   Clean + reliable layout
==================================*/

/* Reset just inside widget */
.sale-carousel,
.sale-carousel * {
  box-sizing: border-box;
}

.sale-carousel{
  --sale-primary:   #333;
  --sale-secondary: var(--e-global-color-secondary, #e2498a);
  --sale-text:      var(--e-global-color-text, #6D8989);
  --sale-accent:    var(--e-global-color-accent, var(--sale-primary));
  --sale-muted:     var(--e-global-color-text, #777);
  --sale-border:    rgba(0,0,0,.06);
}

/* Track handles layout (more stable than display:contents) */
.sale-carousel__track{
  display:flex;
  flex-wrap:wrap;
  gap:22px;
  align-items:stretch;
}

/* 3 across desktop */
.sale-carousel__track .sale-carousel__col{
  flex:0 0 calc((100% - (22px * 2)) / 3);
  max-width:calc((100% - (22px * 2)) / 3);
  display:flex;
  width:auto !important;
}

/* 1 across mobile */
@media (max-width:767px){
  .sale-carousel__track .sale-carousel__col{
    flex-basis:100%;
    max-width:100%;
  }
}

/* ================================
   Card + content
==================================*/
.sale-carousel .sale-product.sale-product--classic{
  display:flex !important;
  flex-direction:column !important;
  justify-content:center;
  padding:45px 40px !important;
  border-radius:8px !important;
  background:#dae6e6 !important;
  box-shadow:0 0 16px 4px rgba(0,0,0,0.10);
}

.sale-carousel .sale-product__img{
  position:relative;
  text-align:center;
  transition:all .35s ease !important;
}

.sale-carousel .sale-product:hover .sale-product__img{
  transform:translateY(-4px);
}

.sale-carousel .sale-product__feature-img img{
  width:100% !important;
  height:auto !important;
  object-fit:cover;
  aspect-ratio:1/1;
  max-height:300px;

  border-radius:4px !important;
  border:1px dotted #00000005;
  box-shadow:0 0 10px 4px rgba(0,0,0,0.10);
  transition:all .35s ease !important;
}

/* Title + clamp */
.sale-carousel .sale-product__title{
  font-size:1rem !important;
  font-weight:600;
}

.sale-carousel .sale-product__title > a{
  color:var(--sale-text) !important;
  text-decoration:none;

  overflow:hidden;
  text-overflow:ellipsis;
  display:-webkit-box;
  -webkit-line-clamp:1;
  -webkit-box-orient:vertical;
}

.sale-carousel .sale-product__title > a:hover{
  color:#130F0F !important;
}

/* Category */
.sale-carousel .sale-product__category{
  padding-top:15px;
  font-size:.75rem;
  font-weight:400;
}

.sale-carousel .sale-product__category a{
  color:var(--sale-muted) !important;
  text-decoration:none;
}

.sale-carousel .sale-product__category a:hover{
  color:var(--sale-primary) !important;
}

/* Button */
.sale-carousel .sale-product__atc-btn{
  top:-12px !important;
}

.sale-carousel .sale-product__atc-btn a.button{
  border:2px solid var(--sale-border) !important;
  background:#fff !important;
  color:var(--sale-text) !important;
  border-radius:3px !important;
  box-shadow:none !important;
  transition:all .3s ease !important;
}

.sale-carousel .sale-product__atc-btn a.button:hover{
  border-color:var(--sale-primary) !important;
  background:var(--sale-primary) !important;
  color:#fff !important;
}

.sale-carousel .sale-product__atc-btn a.button i{
  color:inherit !important;
}

/* ================================
   Badges (stacked)
==================================*/
.sale-carousel .sale-badges{
  position:absolute;
  top:12px;
  left:12px;
  right:auto;

  display:flex;
  flex-direction:column;
  gap:8px;
  align-items:flex-start;

  pointer-events:none;
  z-index:5;
}

.sale-carousel .sale-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  padding:8px 12px;
  border-radius:4px;

  font-weight:700;
  letter-spacing:.04em;
  text-transform:uppercase;
  font-size:.7rem;
  line-height:1;

  color:#fff;
  background:#d61010cc; /* sale default */
  box-shadow:0 2px 8px rgba(50,50,50,.35);
  white-space:nowrap;
}

.sale-carousel .sale-badge--giclee{
  background:#14a8c8 !important;
  font-size:.63rem;
}

.sale-carousel .sale-badge--sale{
  background:#d60000 !important;
}

/* ================================
   Responsive tweaks
==================================*/
@media (max-width:1100px){
  .sale-carousel .sale-product.sale-product--classic{ padding:25px 25px !important; }

  .sale-carousel .sale-product__atc-btn{ top:-18px !important; }
}

@media (max-width:1024px){
  .sale-carousel .sale-product__category,
  .sale-carousel .sale-product__title{
    display:block;
    text-align:left;
    padding:0;
    margin:0;
    transform:translateX(0);
  }

  .sale-carousel .sale-product__category{ padding-top:8px; }

  .sale-carousel .sale-product__price{
    display:flex;
    padding:8px 0;
    justify-content:center;
  }

  .sale-carousel .sale-product__atc-btn a.button{
    text-wrap:nowrap;
    letter-spacing:-.15px;
  }

  .sale-carousel .sale-product.sale-product--classic{
    padding:22px 22px 10px !important;
    border-radius:6px !important;
    box-shadow:0 0 10px 4px rgba(0,0,0,0.08);
  }

  .sale-carousel .sale-product:hover .sale-product__feature-img img{ transform:translateY(-3px); }

  .sale-carousel .sale-badges{
    top:8px;
    left:8px;
    gap:4px;
  }

  .sale-carousel .sale-badge{
    padding:6px 8px;
    font-weight:600;
    font-size:.65rem;
  }
}

.sale-product__atc-btn .button i {
  margin-right: 6px;
  font-size: 0.9em;
}

@media (max-width:767px){
  .sale-carousel .sale-product.sale-product--classic{
    padding:28px 30px 16px !important;
    box-shadow:0 0 8px 4px rgba(0,0,0,0.06);
  }


  .sale-carousel .sale-product__category,
  .sale-carousel .sale-product__title,
  .sale-carousel .sale-product__price{
    display:flex;
    justify-content:center;
    align-items:center;
    text-align:center;
    padding:0;
    margin:0;
    transform:translateX(0);
  }

  .sale-carousel .sale-product__category{ padding-top:8px; }
  .sale-carousel .sale-product__price{ padding:8px 0; }

  .sale-carousel .sale-badges{ gap:3px; }
}



.sale-carousel .sale-product__img{ position:relative; }

.sale-carousel .sale-badges{
  position:absolute;
  top:12px;
  left:12px;
  right:12px;
  display:flex;
  flex-direction: column;
  gap:8px;
  text-align: center;
  align-items:flex-start;
  pointer-events:none;
  z-index:5;
}

.sale-carousel .sale-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 12px;
  border-radius:4px;
  font-weight:700;
  letter-spacing:.04em;
  text-transform:uppercase;
  font-size:.7rem;
  line-height:1;
  color:#fff;
  background:#d61010CC!important;
  box-shadow:0 2px 8px rgba(50,50,50,.35);
  white-space:nowrap;
}

.sale-carousel .sale-badge--giclee{ background:#14a8c8!important; font-size:.63rem; }
.sale-carousel .sale-badge--sale{ background:#d60000!important; }

/* --- SALE CAROUSEL: mobile-first horizontal swipe --- */
.sale-carousel {
  width: 100%;
  overflow: hidden; /* hides any accidental overflow */
}

.sale-carousel__track {
  display: flex !important;
  flex-wrap: nowrap !important;   /* prevents stacking */
  gap: 16px;

  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;

  scroll-snap-type: x mandatory;
  scroll-padding-left: 16px;

  padding: 0 16px 12px; /* a little breathing room + space for scrollbar */
}


/* Each slide */
.sale-carousel__col {
  flex: 0 0 calc(100% - 32px) !important; /* 1 full card on mobile */
  max-width: calc(100% - 32px) !important;
  width: clamp(220px, 25vw, 320px); /* optional responsive sizing */
  scroll-snap-align: start;
}

/* Elementor containers sometimes inject min-width / stretching */
.sale-carousel__col.e-con {
  min-width: 0 !important;
}

/* Optional: hide scrollbar (still scrollable) */
.sale-carousel__track::-webkit-scrollbar { height: 0; }
.sale-carousel__track { scrollbar-width: none; }

/* --- Tablet: 2 cards --- */
@media (min-width: 768px) {
  .sale-carousel__col {
    flex-basis: calc(50% - 16px) !important;
    max-width: calc(50% - 16px) !important;
  }
}

/* --- Desktop: 3 cards (adjust if you want 4) --- */
@media (min-width: 1024px) {
  .sale-carousel__col {
    flex-basis: calc(33.333% - 16px) !important;
    max-width: calc(33.333% - 16px) !important;
  }
}
.sale-product__img {
  aspect-ratio: inherit;
}
.sale-product__img img {
  aspect-ratio: 1/1;
  object-fit: cover;
}



.sale-carousel.is-loading .sale-carousel__track {
  opacity: 0;
  pointer-events: none;
}

.sale-carousel.is-ready .sale-carousel__track {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 240ms ease;
}
.sale-carousel.is-loading { min-height: 220px; } /* tweak */





/* --- Allow card shadows to render outside without being clipped --- */
/* Let shadows show */
.sale-carousel {
  overflow: visible !important; /* was hidden */
}

/* Track should scroll horizontally, but not clip vertically */
.sale-carousel__track {
  overflow-x: auto !important;
  overflow-y: visible !important; /* key */
  padding: 24px 24px 16px !important; /* more breathing room for shadow */
}

/* Each slide also must not clip its contents */
.sale-carousel__col,
.sale-carousel__col.e-con,
.sale-carousel__col.e-child {
  overflow: visible !important;
}

/* The card itself: give it a little margin so shadow isn't tight */
.sale-carousel .sale-product.sale-product--classic {
  margin: 6px 0 !important;
}

/* Intentional loading state: shows curated sale placeholders instead of an empty carousel. */
.sale-carousel {
  position: relative;
}

.sale-carousel__loading {
  display: none;
  padding: 24px;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255,255,255,.78), rgba(218,230,230,.42));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}

.sale-carousel.is-loading .sale-carousel__loading {
  display: block;
  animation: saleCarouselLoaderIn 260ms ease both;
}

.sale-carousel.is-ready .sale-carousel__loading {
  display: none;
}

.sale-carousel__loading-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 14px;
}

.sale-carousel__loading-header span {
  color: var(--sale-muted, #777);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.sale-carousel__loading-header strong {
  color: var(--sale-primary, #333);
  font-size: .95rem;
  font-weight: 700;
}

.sale-carousel__loading-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.sale-carousel__loading-card {
  position: relative;
  min-height: 290px;
  padding: 24px 22px 18px;
  border-radius: 8px;
  background: rgba(218,230,230,.92);
  box-shadow: 0 0 14px 3px rgba(0,0,0,.08);
  overflow: hidden;
}

.sale-carousel__loading-card::after,
.sale-carousel__loading-badge,
.sale-carousel__loading-art,
.sale-carousel__loading-line,
.sale-carousel__loading-button {
  background: linear-gradient(90deg, rgba(255,255,255,.32) 0%, rgba(255,255,255,.76) 45%, rgba(255,255,255,.32) 100%);
  background-size: 220% 100%;
  animation: saleCarouselShimmer 1300ms ease-in-out infinite;
}

.sale-carousel__loading-badge {
  display: block;
  width: 78px;
  height: 24px;
  margin-bottom: 14px;
  border-radius: 4px;
}

.sale-carousel__loading-art {
  display: block;
  width: min(190px, 78%);
  aspect-ratio: 1 / 1;
  margin: 0 auto 18px;
  border-radius: 4px;
  box-shadow: 0 0 10px 3px rgba(0,0,0,.06);
}

.sale-carousel__loading-line {
  display: block;
  height: 12px;
  margin: 8px auto 0;
  border-radius: 999px;
}

.sale-carousel__loading-line--short {
  width: 45%;
}

.sale-carousel__loading-line:not(.sale-carousel__loading-line--short) {
  width: 70%;
}

.sale-carousel__loading-button {
  display: block;
  width: 82px;
  height: 34px;
  margin: 18px auto 0;
  border-radius: 4px;
}

.sale-product__image-placeholder {
  aspect-ratio: 1 / 1;
  width: 100%;
  max-height: 300px;
  border-radius: 4px;
  background: #f3f3f3;
}

@keyframes saleCarouselShimmer {
  0% { background-position: 160% 0; }
  100% { background-position: -60% 0; }
}

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

@media (max-width: 1023px) {
  .sale-carousel__loading-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sale-carousel__loading-card:nth-child(3) {
    display: none;
  }
}

@media (max-width: 767px) {
  .sale-carousel__loading {
    padding: 18px 16px;
  }
  .sale-carousel__loading-header {
    display: block;
  }
  .sale-carousel__loading-header strong {
    display: block;
    margin-top: 4px;
  }
  .sale-carousel__loading-grid {
    display: flex;
    overflow: hidden;
  }
  .sale-carousel__loading-card {
    flex: 0 0 calc(100% - 32px);
    min-height: 270px;
  }
  .sale-carousel__loading-card:nth-child(n+2) {
    opacity: .42;
    transform: translateX(-10px) scale(.98);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sale-carousel__loading-card::after,
  .sale-carousel__loading-badge,
  .sale-carousel__loading-art,
  .sale-carousel__loading-line,
  .sale-carousel__loading-button {
    animation: none;
  }
}


/* ==========================================================
   RCGSM v0.2.2 Sale Carousel Gallery Card Refresh
   A refined gallery-card treatment for the loaded cards and
   matching loader state. This intentionally overrides earlier
   card rules without changing the shortcode markup contract.
========================================================== */
.sale-carousel {
  --sale-gallery-ink: #171313;
  --sale-gallery-copy: #435858;
  --sale-gallery-muted: #6d8989;
  --sale-gallery-paper: #fbf8f0;
  --sale-gallery-wash: #e8f0ef;
  --sale-gallery-line: rgba(23, 19, 19, .12);
  --sale-gallery-gold: #b68a47;
  --sale-gallery-sale: #9f221d;
  --sale-gallery-cyan: #3b8995;
  --sale-gallery-shadow: 0 18px 42px rgba(23, 19, 19, .12);
  --sale-gallery-shadow-hover: 0 24px 56px rgba(23, 19, 19, .18);
}

.sale-carousel__track {
  gap: 20px !important;
  padding: 28px 20px 22px !important;
  scroll-padding-left: 20px !important;
}

.sale-carousel .sale-product.sale-product--classic {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 100%;
  justify-content: space-between !important;
  gap: 16px;
  padding: clamp(18px, 2vw, 28px) !important;
  border: 1px solid var(--sale-gallery-line) !important;
  border-radius: 18px !important;
  background:
    radial-gradient(circle at 24% 0%, rgba(182, 138, 71, .14), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, .94), rgba(232, 240, 239, .86)) !important;
  box-shadow: var(--sale-gallery-shadow) !important;
  overflow: hidden !important;
  transform: translateZ(0);
  transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease, background 260ms ease;
}

.sale-carousel .sale-product.sale-product--classic::before {
  content: "";
  position: absolute;
  inset: 10px;
  z-index: -1;
  border: 1px solid rgba(182, 138, 71, .22);
  border-radius: 14px;
  pointer-events: none;
}

.sale-carousel .sale-product.sale-product--classic::after {
  content: "";
  position: absolute;
  top: -35%;
  right: -30%;
  z-index: -2;
  width: 80%;
  aspect-ratio: 1;
  border-radius: 999px;
  background: rgba(109, 137, 137, .16);
  filter: blur(4px);
  pointer-events: none;
}

.sale-carousel .sale-product.sale-product--classic:hover,
.sale-carousel .sale-product.sale-product--classic:focus-within {
  transform: translateY(-6px);
  border-color: rgba(182, 138, 71, .42) !important;
  box-shadow: var(--sale-gallery-shadow-hover) !important;
}

.sale-carousel .sale-product__img {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
  padding: clamp(14px, 1.6vw, 20px);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.92), rgba(251,248,240,.82)),
    repeating-linear-gradient(90deg, rgba(23,19,19,.025) 0 1px, transparent 1px 7px);
  box-shadow: inset 0 0 0 1px rgba(23, 19, 19, .07);
}

.sale-carousel .sale-product:hover .sale-product__img {
  transform: none;
}

.sale-carousel .sale-product__feature-img {
  position: relative;
  display: block;
  width: min(100%, 320px);
  margin: 0 auto;
  border-radius: 9px;
  text-decoration: none !important;
}

.sale-carousel .sale-product__feature-img::before {
  content: "";
  position: absolute;
  inset: -9px;
  z-index: -1;
  border-radius: 12px;
  background: rgba(255,255,255,.62);
  box-shadow: 0 10px 24px rgba(23, 19, 19, .10);
}

.sale-carousel .sale-product__feature-img img,
.sale-carousel .sale-product__image-placeholder {
  display: block;
  width: 100% !important;
  aspect-ratio: 1 / 1;
  height: auto !important;
  max-height: 300px;
  border: 1px solid rgba(23, 19, 19, .09) !important;
  border-radius: 8px !important;
  background: #fff;
  box-shadow: none !important;
  object-fit: cover;
  transition: transform 300ms ease, filter 300ms ease;
}

.sale-carousel .sale-product.sale-product--classic:hover .sale-product__feature-img img,
.sale-carousel .sale-product.sale-product--classic:focus-within .sale-product__feature-img img {
  transform: scale(1.018);
  filter: saturate(1.04) contrast(1.02);
}

.sale-carousel .sale-badges {
  top: 16px !important;
  left: 16px !important;
  right: auto !important;
  gap: 7px !important;
  align-items: flex-start !important;
}

.sale-carousel .sale-badge {
  min-height: 28px;
  padding: 8px 11px !important;
  border: 1px solid rgba(255,255,255,.54);
  border-radius: 999px !important;
  color: #fff !important;
  font-family: inherit;
  font-size: .61rem !important;
  font-weight: 800 !important;
  letter-spacing: .08em !important;
  line-height: 1 !important;
  box-shadow: 0 8px 18px rgba(23, 19, 19, .18) !important;
  backdrop-filter: blur(7px);
}

.sale-carousel .sale-badge--sale {
  background: linear-gradient(135deg, #b52922, var(--sale-gallery-sale)) !important;
}

.sale-carousel .sale-badge--giclee {
  background: linear-gradient(135deg, #4d9aa3, var(--sale-gallery-cyan)) !important;
}

.sale-carousel .sale-product__content {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 7px;
  padding: 0 4px 2px;
  text-align: left;
}

.sale-carousel .sale-product__category {
  order: 1;
  padding-top: 0 !important;
  font-size: .68rem !important;
  font-weight: 800;
  letter-spacing: .11em;
  line-height: 1.35;
  text-transform: uppercase;
}

.sale-carousel .sale-product__category a {
  color: var(--sale-gallery-muted) !important;
  text-decoration: none !important;
}

.sale-carousel .sale-product__category a:hover,
.sale-carousel .sale-product__category a:focus-visible {
  color: var(--sale-gallery-ink) !important;
}

.sale-carousel .sale-product__title {
  order: 2;
  margin: 0 !important;
  padding: 0 !important;
  font-family: inherit;
  font-size: clamp(1.05rem, 1.4vw, 1.24rem) !important;
  font-weight: 650 !important;
  line-height: 1.22 !important;
  letter-spacing: -.015em;
}

.sale-carousel .sale-product__title > a {
  min-height: 2.46em;
  color: var(--sale-gallery-ink) !important;
  -webkit-line-clamp: 2 !important;
}

.sale-carousel .sale-product__title > a:hover,
.sale-carousel .sale-product__title > a:focus-visible {
  color: var(--sale-gallery-muted) !important;
}

.sale-carousel .sale-product__price {
  order: 3;
  display: block !important;
  padding: 9px 0 0 !important;
}

.sale-carousel .sale-product__atc-btn {
  top: auto !important;
  width: 100%;
}

.sale-carousel .sale-product__atc-btn a.button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  padding: 11px 16px !important;
  border: 1px solid rgba(23, 19, 19, .16) !important;
  border-radius: 999px !important;
  background: var(--sale-gallery-ink) !important;
  color: #fff !important;
  font-size: .78rem !important;
  font-weight: 800 !important;
  letter-spacing: .08em !important;
  line-height: 1 !important;
  text-transform: uppercase;
  box-shadow: none !important;
}

.sale-carousel .sale-product__atc-btn a.button:hover,
.sale-carousel .sale-product__atc-btn a.button:focus-visible {
  border-color: var(--sale-gallery-ink) !important;
  background: var(--sale-gallery-paper) !important;
  color: var(--sale-gallery-ink) !important;
  transform: translateY(-1px);
}

.sale-carousel .sale-product__atc-btn a.button i {
  margin-right: 0 !important;
  font-size: .9em;
}

.sale-carousel.is-ready .sale-carousel__col {
  animation: saleCarouselCardIn 420ms ease both;
}

.sale-carousel.is-ready .sale-carousel__col:nth-child(2) { animation-delay: 55ms; }
.sale-carousel.is-ready .sale-carousel__col:nth-child(3) { animation-delay: 110ms; }
.sale-carousel.is-ready .sale-carousel__col:nth-child(4) { animation-delay: 165ms; }

.sale-carousel__loading {
  border-color: rgba(182, 138, 71, .22) !important;
  border-radius: 18px !important;
  background:
    radial-gradient(circle at 20% 0%, rgba(182, 138, 71, .14), transparent 32%),
    linear-gradient(145deg, rgba(251,248,240,.94), rgba(232,240,239,.72)) !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.58), 0 16px 36px rgba(23,19,19,.08) !important;
}

.sale-carousel__loading-header span {
  color: var(--sale-gallery-muted) !important;
  letter-spacing: .12em !important;
}

.sale-carousel__loading-header strong {
  color: var(--sale-gallery-ink) !important;
}

.sale-carousel__loading-card {
  border: 1px solid rgba(23,19,19,.10);
  border-radius: 16px !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.78), rgba(232,240,239,.86)) !important;
  box-shadow: 0 14px 32px rgba(23,19,19,.08) !important;
}

.sale-carousel__loading-badge {
  width: 92px !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, rgba(159,34,29,.38), rgba(182,138,71,.32), rgba(159,34,29,.38)) !important;
}

.sale-carousel__loading-art {
  border: 10px solid rgba(255,255,255,.52);
  border-radius: 12px !important;
}

.sale-carousel__loading-button {
  width: 128px !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, rgba(23,19,19,.20), rgba(23,19,19,.10), rgba(23,19,19,.20)) !important;
}

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

@media (min-width: 1024px) {
  .sale-carousel__col {
    flex-basis: calc(33.333% - 14px) !important;
    max-width: calc(33.333% - 14px) !important;
  }
}

@media (max-width: 1023px) {
  .sale-carousel .sale-product.sale-product--classic {
    padding: 20px !important;
  }
}

@media (max-width: 767px) {
  .sale-carousel__track {
    padding: 22px 18px 18px !important;
    scroll-padding-left: 18px !important;
  }

  .sale-carousel__col {
    flex-basis: calc(88% - 8px) !important;
    max-width: calc(88% - 8px) !important;
  }

  .sale-carousel .sale-product.sale-product--classic {
    padding: 18px !important;
    border-radius: 16px !important;
  }

  .sale-carousel .sale-product.sale-product--classic::before {
    inset: 8px;
    border-radius: 12px;
  }

  .sale-carousel .sale-product__img {
    padding: 13px;
  }

  .sale-carousel .sale-badges {
    top: 12px !important;
    left: 12px !important;
    gap: 5px !important;
  }

  .sale-carousel .sale-badge {
    min-height: 24px;
    padding: 7px 9px !important;
    font-size: .56rem !important;
  }

  .sale-carousel .sale-product__content,
  .sale-carousel .sale-product__category,
  .sale-carousel .sale-product__title,
  .sale-carousel .sale-product__price {
    display: block !important;
    text-align: left !important;
  }

  .sale-carousel .sale-product__title > a {
    min-height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sale-carousel.is-ready .sale-carousel__col,
  .sale-carousel .sale-product.sale-product--classic,
  .sale-carousel .sale-product__feature-img img,
  .sale-carousel .sale-product__atc-btn a.button {
    animation: none !important;
    transition: none !important;
  }
}


/* ==========================================================
   RCGSM v0.2.5 Sale Carousel Restraint + Global Red CTA
   Keeps the curated-card direction but reduces visual noise
   and aligns links with the site's red button language.
========================================================== */
.sale-carousel {
  --sale-global-red: #C74235;
  --sale-global-red-hover: #a93229;
  --sale-gallery-ink: #171313;
  --sale-gallery-copy: #435858;
  --sale-gallery-muted: #6d8989;
  --sale-gallery-paper: #fbf8f0;
  --sale-gallery-wash: #edf3f2;
  --sale-gallery-line: rgba(23, 19, 19, .10);
  --sale-gallery-shadow: 0 10px 26px rgba(23, 19, 19, .09);
  --sale-gallery-shadow-hover: 0 14px 34px rgba(23, 19, 19, .13);
}

.sale-carousel__track {
  gap: 18px !important;
  padding: 22px 18px 18px !important;
  scroll-padding-left: 18px !important;
}

.sale-carousel .sale-product.sale-product--classic {
  gap: 14px;
  padding: clamp(16px, 1.7vw, 24px) !important;
  border-color: var(--sale-gallery-line) !important;
  border-radius: 14px !important;
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(237,243,242,.82)) !important;
  box-shadow: var(--sale-gallery-shadow) !important;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.sale-carousel .sale-product.sale-product--classic::before {
  inset: 0;
  border: 0;
  border-radius: inherit;
  background: none;
}

.sale-carousel .sale-product.sale-product--classic::after {
  display: none !important;
}

.sale-carousel .sale-product.sale-product--classic:hover,
.sale-carousel .sale-product.sale-product--classic:focus-within {
  transform: translateY(-3px);
  border-color: rgba(199, 66, 53, .24) !important;
  box-shadow: var(--sale-gallery-shadow-hover) !important;
}

.sale-carousel .sale-product__img {
  padding: clamp(10px, 1.3vw, 16px);
  border-radius: 12px;
  background: rgba(255,255,255,.78) !important;
  box-shadow: inset 0 0 0 1px rgba(23, 19, 19, .06) !important;
}

.sale-carousel .sale-product__feature-img {
  width: min(100%, 300px);
  border-radius: 7px;
}

.sale-carousel .sale-product__feature-img::before {
  inset: -5px;
  border-radius: 10px;
  background: rgba(255,255,255,.72);
  box-shadow: 0 5px 16px rgba(23, 19, 19, .07);
}

.sale-carousel .sale-product__feature-img img,
.sale-carousel .sale-product__image-placeholder {
  border-radius: 6px !important;
  border-color: rgba(23, 19, 19, .08) !important;
  transition: transform 220ms ease;
}

.sale-carousel .sale-product.sale-product--classic:hover .sale-product__feature-img img,
.sale-carousel .sale-product.sale-product--classic:focus-within .sale-product__feature-img img {
  transform: scale(1.008);
  filter: none;
}

.sale-carousel .sale-badges {
  top: 12px !important;
  left: 12px !important;
  gap: 5px !important;
}

.sale-carousel .sale-badge {
  min-height: 24px;
  padding: 6px 9px !important;
  border: 0 !important;
  border-radius: 4px !important;
  font-size: .56rem !important;
  letter-spacing: .07em !important;
  box-shadow: 0 4px 10px rgba(23, 19, 19, .14) !important;
  backdrop-filter: none !important;
}

.sale-carousel .sale-badge--sale {
  background: var(--sale-global-red) !important;
}

.sale-carousel .sale-badge--giclee {
  background: #3b8995 !important;
}

.sale-carousel .sale-product__content {
  gap: 6px;
  padding: 0 2px;
}

.sale-carousel .sale-product__category {
  font-size: .65rem !important;
  letter-spacing: .09em;
}

.sale-carousel .sale-product__title {
  font-size: clamp(1rem, 1.25vw, 1.16rem) !important;
  font-weight: 650 !important;
}

.sale-carousel .sale-product__title > a:hover,
.sale-carousel .sale-product__title > a:focus-visible {
  color: var(--sale-global-red) !important;
}

.sale-carousel .sale-product__atc-btn a.button {
  min-height: 43px;
  border: 1px solid var(--sale-global-red) !important;
  border-radius: 4px !important;
  background: var(--sale-global-red) !important;
  color: #fff !important;
  box-shadow: none !important;
  letter-spacing: .055em !important;
}

.sale-carousel .sale-product__atc-btn a.button:hover,
.sale-carousel .sale-product__atc-btn a.button:focus-visible {
  border-color: var(--sale-global-red-hover) !important;
  background: var(--sale-global-red-hover) !important;
  color: #fff !important;
  transform: translateY(-1px);
}

.sale-carousel__loading {
  border-radius: 14px !important;
  background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(237,243,242,.78)) !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.56), 0 10px 26px rgba(23,19,19,.06) !important;
}

.sale-carousel__loading-card {
  border-radius: 14px !important;
  box-shadow: 0 10px 24px rgba(23,19,19,.06) !important;
}

.sale-carousel__loading-badge {
  border-radius: 4px !important;
  background: linear-gradient(90deg, rgba(199,66,53,.34), rgba(199,66,53,.16), rgba(199,66,53,.34)) !important;
}

.sale-carousel__loading-button {
  border-radius: 4px !important;
  background: linear-gradient(90deg, rgba(199,66,53,.38), rgba(199,66,53,.20), rgba(199,66,53,.38)) !important;
}

@media (max-width: 767px) {
  .sale-carousel .sale-product.sale-product--classic {
    padding: 16px !important;
    border-radius: 13px !important;
  }

  .sale-carousel .sale-product__img {
    padding: 10px;
  }
}


/* ==========================================================
   RCGSM v0.2.8 Sale Carousel Shadow Bleed Guard
   Adds enough internal runway for card shadows in the horizontal
   scroll viewport and further softens the outer elevation so the
   card treatment does not appear clipped at the carousel bounds.
========================================================== */
.sale-carousel {
  overflow: visible !important;
  padding-block: 4px 10px;
}

.sale-carousel__track {
  overflow-x: auto !important;
  overflow-y: hidden !important;
  padding: 34px 28px 54px !important;
  margin: -12px -10px -22px !important;
  scroll-padding-left: 28px !important;
}

.sale-carousel__track .sale-carousel__col,
.sale-carousel__col.e-con,
.sale-carousel__col.e-child {
  overflow: visible !important;
  padding-block: 4px 12px;
}

.sale-carousel .sale-product.sale-product--classic {
  overflow: visible !important;
  box-shadow: 0 8px 18px rgba(23, 19, 19, .075) !important;
}

.sale-carousel .sale-product.sale-product--classic:hover,
.sale-carousel .sale-product.sale-product--classic:focus-within {
  box-shadow: 0 10px 22px rgba(23, 19, 19, .105) !important;
}

.sale-carousel .sale-product__feature-img::before {
  box-shadow: 0 4px 12px rgba(23, 19, 19, .055) !important;
}

.sale-carousel .sale-badge {
  box-shadow: 0 3px 8px rgba(23, 19, 19, .12) !important;
}

@media (max-width: 767px) {
  .sale-carousel__track {
    padding: 28px 22px 46px !important;
    margin: -10px -8px -18px !important;
    scroll-padding-left: 22px !important;
  }
}
