/* EcoShea Product Carousel v1.4.1 Stripe clean — image-led luxury product showcase */

.ecoshea-product-carousel {
/* Core colours */
--eso-product-cream: rgba(255, 250, 241, 0.94);
--eso-product-ink: #24311e;
--eso-product-shadow: rgba(0, 0, 0, 0.18);

/* Luxury gold palette */
--eso-gold-title: #b88a3c;
--eso-gold-text: #765820;
--eso-gold-price: #c49a4a;
--eso-gold-cta: #a77a30;
--eso-gold-line: rgba(196, 154, 74, 0.42);
--eso-gold-soft: rgba(244, 214, 160, 0.46);

/* Easy visual controls */
--eso-card-width: clamp(460px, 44vw, 700px);
--eso-card-height: clamp(780px, 72vw, 980px);

--eso-card-title-size: clamp(24px, 2vw, 34px);
--eso-card-title-weight: 500;

--eso-card-image-min-height: clamp(500px, 49vw, 720px);
--eso-card-image-scale: 1.18;
--eso-card-image-padding: 0px;

--eso-card-text-size: clamp(11px, 0.78vw, 13px);
--eso-card-text-weight: 400;
--eso-card-text-line-height: 1.36;

--eso-card-price-size: clamp(24px, 2vw, 34px);
--eso-card-cta-size: 10.5px;

position: relative;
isolation: isolate;
width: min(1500px, calc(100vw - 32px));
margin: clamp(18px, 3vw, 52px) auto;
padding: clamp(8px, 2vw, 26px) 0;
color: var(--eso-gold-title);
outline: none;
touch-action: pan-y;
user-select: none;
}

.ecoshea-product-carousel,
.ecoshea-product-carousel * {
box-sizing: border-box;
}

.ecoshea-product-carousel__stage {
position: relative;
min-height: clamp(820px, 76vw, 1080px);
perspective: 1700px;
transform-style: preserve-3d;
overflow: visible;
cursor: grab;
}

.ecoshea-product-carousel.is-dragging .ecoshea-product-carousel__stage {
cursor: grabbing;
}

.ecoshea-product-card {
position: absolute;
top: 50%;
left: 50%;
width: var(--eso-card-width);
height: var(--eso-card-height);

opacity: var(--eso-opacity, 1);
z-index: var(--eso-z-index, 1);
pointer-events: auto;

transform:
translate(-50%, -50%)
translateX(var(--eso-x, 0%))
translateZ(var(--eso-z, 0px))
rotateY(var(--eso-rotate, 0deg))
scale(var(--eso-scale, 1));

transform-style: preserve-3d;
transition:
transform 980ms cubic-bezier(0.19, 1, 0.22, 1),
opacity 720ms ease,
filter 820ms ease;
filter: saturate(var(--eso-saturation, 0.92)) blur(var(--eso-blur, 0px));
will-change: transform, opacity, filter;
}

.ecoshea-product-card__link {
position: relative;
display: grid;
grid-template-rows: auto minmax(var(--eso-card-image-min-height), 1fr) auto;
height: 100%;
overflow: hidden;
text-decoration: none;
color: var(--eso-product-ink);
cursor: pointer;

background:
linear-gradient(150deg, rgba(255, 255, 255, 0.94), rgba(255, 246, 231, 0.70)),
var(--eso-product-cream);
border: 1px solid var(--eso-gold-soft);
border-radius: 44px;
box-shadow:
0 38px 96px var(--eso-product-shadow),
inset 0 1px 0 rgba(255, 255, 255, 0.82);
backdrop-filter: blur(16px);
-webkit-backdrop-filter: blur(16px);

transition:
border-color 360ms ease,
box-shadow 420ms ease,
background 420ms ease;
}

.ecoshea-product-card.is-active .ecoshea-product-card__link:hover,
.ecoshea-product-card.is-active .ecoshea-product-card__link:focus-visible {
border-color: rgba(196, 154, 74, 0.72);
box-shadow:
0 44px 110px rgba(0, 0, 0, 0.26),
0 0 0 1px rgba(244, 214, 160, 0.24),
inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

/* Shared content wrapper */
.ecoshea-product-card__content {
position: relative;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
}

/* Title above image */
.ecoshea-product-card__content--header {
min-height: auto;
padding: clamp(22px, 2.2vw, 32px) clamp(28px, 3vw, 42px) clamp(8px, 1vw, 14px);
}

.ecoshea-product-card__content--header::before {
display: none;
}

.ecoshea-product-card__title {
margin: 0;
max-width: 13em;
font-family: "Cormorant Garamond", Georgia, serif;
font-size: var(--eso-card-title-size);
line-height: 1.02;
font-weight: var(--eso-card-title-weight);
letter-spacing: -0.018em;
color: var(--eso-gold-title);
text-align: center;
text-rendering: geometricPrecision;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}

/* Image-led card area */
.ecoshea-product-card__image-wrap {
position: relative;
height: 100%;
min-height: var(--eso-card-image-min-height);
margin: 0 clamp(14px, 1.8vw, 28px) clamp(6px, 0.8vw, 12px);
overflow: hidden;
border-radius: 34px;
background:
radial-gradient(circle at 50% 35%, rgba(244, 214, 160, 0.20), transparent 48%),
rgba(255, 255, 255, 0.34);
display: flex;
align-items: center;
justify-content: center;
}

.ecoshea-product-card__image-wrap img {
width: 100%;
height: 100%;
object-fit: contain;
display: block;
padding: var(--eso-card-image-padding);
transform: scale(var(--eso-card-image-scale));
transform-origin: center center;
}

/* Supporting text below image */
.ecoshea-product-card__content--footer {
gap: 6px;
min-height: auto;
padding: clamp(8px, 1vw, 14px) clamp(32px, 3.4vw, 52px) clamp(22px, 2.5vw, 32px);
}

.ecoshea-product-card__content--footer::before {
content: "";
position: absolute;
top: 0;
left: 32%;
right: 32%;
height: 1px;
background: linear-gradient(90deg, transparent, var(--eso-gold-line), transparent);
}

.ecoshea-product-card__text {
margin: 0 auto 2px !important;
max-width: 25em !important;
font-family: "Nunito Sans", Arial, sans-serif !important;
font-size: var(--eso-card-text-size) !important;
line-height: var(--eso-card-text-line-height) !important;
font-weight: var(--eso-card-text-weight) !important;
letter-spacing: 0.01em !important;
color: var(--eso-gold-text) !important;
text-align: center !important;
text-shadow: none !important;
text-rendering: geometricPrecision;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}

.ecoshea-product-card__price {
position: relative;
display: flex;
align-items: center;
justify-content: center;
min-height: auto;
padding: 0;
margin: 2px 0 0;

font-family: "Cormorant Garamond", Georgia, serif;
font-size: var(--eso-card-price-size);
line-height: 1;
font-weight: 400;
letter-spacing: -0.015em;
color: var(--eso-gold-price);
text-align: center;
}

.ecoshea-product-card__price::before {
display: none;
}

.ecoshea-product-card__price del {
opacity: 0.42;
margin-right: 8px;
font-size: 0.72em;
}

.ecoshea-product-card__price ins {
text-decoration: none;
}

.ecoshea-product-card__cta {
display: inline-flex;
align-items: center;
justify-content: center;
margin-top: 6px;
padding: 8px 16px;
border: 1px solid rgba(167, 122, 48, 0.42);
border-radius: 999px;
font-family: "Nunito Sans", Arial, sans-serif;
font-size: var(--eso-card-cta-size);
line-height: 1;
font-weight: 800;
letter-spacing: 0.13em;
text-transform: uppercase;
color: var(--eso-gold-cta);
background: transparent;
transition:
background 260ms ease,
border-color 260ms ease,
transform 260ms ease;
}

.ecoshea-product-card.is-active .ecoshea-product-card__link:hover .ecoshea-product-card__cta {
background: rgba(244, 214, 160, 0.12);
border-color: rgba(167, 122, 48, 0.72);
transform: translateY(-1px);
}

.ecoshea-product-card__sr-only {
position: absolute !important;
width: 1px !important;
height: 1px !important;
padding: 0 !important;
margin: -1px !important;
overflow: hidden !important;
clip: rect(0, 0, 0, 0) !important;
white-space: nowrap !important;
border: 0 !important;
}

.ecoshea-product-carousel-notice {
width: min(900px, calc(100vw - 40px));
margin: 48px auto;
padding: 24px;
border-radius: 24px;
background: rgba(255, 250, 241, 0.8);
color: #24311e;
text-align: center;
}

@media (max-width: 900px) {
.ecoshea-product-carousel {
width: min(100%, calc(100vw - 20px));
margin-top: 24px;

--eso-card-width: min(88vw, 500px);
--eso-card-height: min(760px, 144vw);
--eso-card-title-size: clamp(23px, 5.8vw, 31px);
--eso-card-image-min-height: clamp(350px, 78vw, 470px);
--eso-card-image-scale: 1.08;
--eso-card-text-size: 12px;
--eso-card-price-size: 25px;

}

.ecoshea-product-carousel__stage {
min-height: 720px;
}

.ecoshea-product-card__content--header {
padding: 24px 24px 10px;
}

.ecoshea-product-card__content--footer {
padding: 10px 26px 26px;
}
}

@media (max-width: 520px) {
.ecoshea-product-carousel {
--eso-card-width: min(90vw, 390px);
--eso-card-height: 640px;
--eso-card-title-size: clamp(21px, 6vw, 27px);
--eso-card-image-min-height: 330px;
--eso-card-image-scale: 1.06;
--eso-card-text-size: 11.5px;
--eso-card-price-size: 23px;
}

.ecoshea-product-carousel__stage {
min-height: 650px;
}

.ecoshea-product-card__content--header {
padding: 22px 22px 9px;
}

.ecoshea-product-card__image-wrap {
margin-left: 12px;
margin-right: 12px;
border-radius: 30px;
}

.ecoshea-product-card__content--footer {
gap: 5px;
padding: 9px 22px 24px;
}

.ecoshea-product-card__cta {
font-size: 10px;
padding: 8px 14px;
}
}

@media (prefers-reduced-motion: reduce) {
.ecoshea-product-card,
.ecoshea-product-card__link,
.ecoshea-product-card__cta {
transition: none !important;
}
}


/* Stripe-ready purchase controls: native luxury layer, no header rebuild */
.ecoshea-product-carousel__purchase-bar {
  position: relative;
  z-index: 130;
  width: min(760px, calc(100vw - 44px));
  margin: 0 auto clamp(10px, 1.8vw, 20px);
  padding: clamp(10px, 1.4vw, 14px) clamp(14px, 2vw, 22px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(12px, 2.2vw, 24px);
  border: 1px solid rgba(196, 154, 74, 0.28);
  border-radius: 999px;
  background:
    linear-gradient(145deg, rgba(255, 253, 248, 0.82), rgba(255, 246, 231, 0.58));
  box-shadow:
    0 18px 48px rgba(23, 19, 13, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-family: "Nunito Sans", Arial, sans-serif;
  user-select: none;
}

.ecoshea-product-carousel__region,
.ecoshea-product-carousel__quantity {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #765820;
}

.ecoshea-product-carousel__control-label,
.ecoshea-product-carousel__shipping-note {
  margin: 0;
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(118, 88, 32, 0.78);
}

.ecoshea-product-carousel__shipping-note {
  flex-basis: 100%;
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: rgba(118, 88, 32, 0.58);
}

.ecoshea-product-carousel__region-option,
.ecoshea-product-carousel__qty-btn {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  color: #a77a30;
  font: inherit;
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.11em;
  padding: 7px 7px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 220ms ease, background 220ms ease, transform 220ms ease;
}

.ecoshea-product-carousel__region-option.is-active {
  color: #24311e;
  background: rgba(244, 214, 160, 0.22);
}

.ecoshea-product-carousel__region-option:hover,
.ecoshea-product-carousel__qty-btn:hover {
  background: rgba(244, 214, 160, 0.16);
  transform: translateY(-1px);
}

.ecoshea-product-carousel__region-separator,
.ecoshea-product-carousel__qty-value {
  color: rgba(167, 122, 48, 0.58);
  font-size: 12px;
  font-weight: 800;
  min-width: 16px;
  text-align: center;
}

.ecoshea-product-carousel__qty-btn {
  min-width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(167, 122, 48, 0.24);
}

.ecoshea-product-carousel__qty-value {
  color: #24311e;
}

@media (max-width: 900px) {
  .ecoshea-product-carousel__purchase-bar {
    width: min(92vw, 520px);
    border-radius: 28px;
    margin-bottom: 6px;
    gap: 12px 18px;
  }

  .ecoshea-product-carousel__shipping-note {
    font-size: 9.5px;
    line-height: 1.35;
  }
}


/* v1.4.1: quieter Stripe handoff. Region/quantity now live on Secure Checkout page. */
.ecoshea-product-carousel__purchase-bar,
.ecoshea-product-carousel__region,
.ecoshea-product-carousel__quantity,
.ecoshea-product-carousel__region-option,
.ecoshea-product-carousel__qty-btn,
.ecoshea-product-carousel__qty-value {
  display: none !important;
}

.ecoshea-product-carousel__shipping-ribbon {
  position: relative;
  z-index: 130;
  width: fit-content;
  max-width: min(390px, calc(100vw - 56px));
  margin: 0 auto clamp(8px, 1.4vw, 14px);
  padding: 7px 16px 6px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background:
    linear-gradient(145deg, rgba(255, 253, 248, 0.18), rgba(255, 246, 231, 0.08));
  box-shadow:
    0 10px 26px rgba(23, 19, 13, 0.055),
    inset 0 1px 0 rgba(255, 255, 255, 0.40);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  user-select: none;
}

.ecoshea-product-carousel__shipping-ribbon .ecoshea-product-carousel__shipping-note {
  margin: 0 !important;
  padding: 0 !important;
  font-family: "Nunito Sans", Arial, sans-serif !important;
  font-size: 9.5px !important;
  line-height: 1 !important;
  font-weight: 800 !important;
  letter-spacing: 0.13em !important;
  text-transform: uppercase !important;
  color: rgba(255, 253, 248, 0.78) !important;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.18) !important;
  white-space: nowrap;
}

.ecoshea-product-carousel .ecoshea-product-card__title,
body .ecoshea-product-carousel .ecoshea-product-card__title {
  font-family: "Cormorant Garamond", Georgia, serif !important;
  font-size: var(--eso-card-title-size) !important;
  line-height: 0.98 !important;
  font-weight: 400 !important;
  letter-spacing: -0.04em !important;
  color: var(--eso-gold-title) !important;
  text-shadow: none !important;
}

@media (max-width: 900px) {
  .ecoshea-product-carousel__shipping-ribbon {
    max-width: min(340px, calc(100vw - 48px));
    padding: 7px 14px 6px;
    margin-bottom: 6px;
  }

  .ecoshea-product-carousel__shipping-ribbon .ecoshea-product-carousel__shipping-note {
    font-size: 8.5px !important;
    letter-spacing: 0.10em !important;
  }
}
