/* A dark, gold-lit book display. The surrounding site still follows its selected theme. */
.catalog-site .discounts-section .flash-sale {
  position: relative; isolation: isolate; overflow: hidden;
  color: #fff5df; background: #11131a;
  border: 1px solid #c39b554d; border-radius: 22px;
  box-shadow: inset 0 1px 0 #ffe6aa16, 0 16px 45px #0002;
}
.flash-sale::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse at 50% 65%, #c58a233b, transparent 60%),
    radial-gradient(ellipse at 50% -20%, #edc17b45, transparent 65%),
    linear-gradient(90deg, #070c14de, #10141c66 50%, #070c14de);
}
.flash-sale::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(circle at 8% 21%, #ffda8d 0 1px, transparent 3px),radial-gradient(circle at 83% 13%, #ffe5b3aa 0 1px, transparent 3px),radial-gradient(circle at 31% 47%, #ffe3a477 0 1px, transparent 3px),radial-gradient(circle at 93% 72%, #ffc76677 0 2px, transparent 4px),radial-gradient(circle at 63% 26%, #ffdd9277 0 1px, transparent 3px);
}
.sale-library { position: absolute; inset: 65px -10% 80px; z-index: -2; display: grid; grid-template-columns: repeat(6,1fr); gap: 20px; transform: perspective(900px) rotateX(4deg) scale(1.12); filter: blur(5px); opacity: .32; }
.sale-library span { background-size: cover; background-position: center; border: 3px solid #86663a; box-shadow: 0 10px 0 #17110d, 0 12px 0 #ae824b; }
.sale-rays { position: absolute; inset: 0; z-index: -1; background: conic-gradient(from 160deg at 30% -15%, transparent 0deg, #f8d99b12 8deg, transparent 18deg),conic-gradient(from 175deg at 75% -10%, transparent 0deg, #f8d99b14 8deg, transparent 20deg); pointer-events: none; }
.sale-heading { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 30px 42px 0; }
.sale-eyebrow { color: #d4c1a0; font-size:14px; letter-spacing: .08em; }
.sale-heading h3 { display: flex; gap: 10px; align-items: center; margin: 4px 0 0; font: 800 clamp(26px,3vw,40px)/1.2 Arial,sans-serif; letter-spacing: .045em; color: #fff3d3; }
.sale-heading h3>span { color: #efbd63; }
.sale-heading h3>svg { width: 28px; height: 34px; color: #ffce78; filter: drop-shadow(0 0 10px #e9a33c55); }
.sale-offer { display: grid; grid-template-columns: auto auto; align-items: center; column-gap: 14px; margin: 0; color: #e4ceb0; font-size:14px; }
.sale-offer strong { grid-row: span 2; font: 700 48px/1 Arial,sans-serif; color: #ffd991; text-shadow: 0 0 25px #e5a43c30; }
.sale-offer small { color: inherit; font-size: 24px; }
.sale-offer>span { font-size:12px; color: #b4a48b; }
.sale-coming { color: #e4ceb0; font-size:16px; margin: 0; text-align: right; }
.sale-coming span { color: #a99b84; font-size:13px; }
.sale-stage { position: relative; max-width: 1120px; margin: 0 auto; }
.sale-track { position: relative; display: flex; gap: 5%; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 40px 5% 0; }
.sale-track::-webkit-scrollbar { display: none; }
.sale-card { position: relative; flex: 0 0 30%; min-width: 0; scroll-snap-align: center; text-align: center; }
.sale-track:has(.sale-card:only-child) { justify-content: center; }
.sale-book-space { display: flex; align-items: flex-end; justify-content: center; height: 340px; padding: 0 18px 0 4px; perspective: 1200px; }
.sale-book { display: block; position: relative; width: min(100%,224px); aspect-ratio: 3/4; transform: rotateY(-14deg) rotateZ(-2deg); transform-style: preserve-3d; transition: transform .25s ease; filter: drop-shadow(12px 15px 12px #0009); outline-offset: 10px; }
.sale-card:nth-child(3n) .sale-book { transform: rotateY(-19deg) rotateZ(2deg); }
.sale-card-featured .sale-book { width: min(100%,252px); transform: rotateY(-9deg); }
.sale-book::before { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: 2px; background: linear-gradient(90deg,#0007 0,#fff3 2%,#0004 4%,transparent 7%,transparent 94%,#ffe6b122); pointer-events: none; border: 1px solid #ffe3b16b; }
.sale-book::after { content: ""; position: absolute; left: 7%; right: -8%; bottom: -14px; height: 18px; background: #000a; filter: blur(10px); border-radius: 50%; z-index: -1; }
.sale-pages { position: absolute; top: 5px; right: -13px; bottom: -3px; width: 17px; transform: skewY(20deg); transform-origin: left top; background: repeating-linear-gradient(90deg,#ddccb0 0 1px,#fff0d3 1px 3px,#cabda3 3px 4px); border-top: 3px solid #ab7840; border-right: 3px solid #724e27; border-bottom: 3px solid #a97d3d; box-shadow: inset -4px 0 6px #73522250; }
.flash-sale .sale-front.cover { position: relative; display: block; width: 100%; height: 100%; aspect-ratio: 3/4; background-size: cover; background-position: center; border-radius: 2px; box-shadow: none; overflow: hidden; }
.sale-front .cover-placeholder { height: 100%; background: linear-gradient(135deg,#18232d,#45321c); color: #f3d599; padding: 16px; }
.sale-discount { position: absolute; z-index: 4; top: 12px; left: -10px; background: linear-gradient(120deg,#fff0bf,#e9b951); border: 1px solid #ffe5a4; color: #38250d; padding: 5px 10px; border-radius: 3px 9px 9px 3px; font: 800 21px/1.2 Arial,sans-serif; box-shadow: 2px 3px 8px #0005; }
.sale-discount small { color: inherit; font-size:14px; }
.sale-podium { position: absolute; left: 2%; right: 2%; bottom: 155px; height: 62px; border-radius: 50%; background: linear-gradient(180deg,#3b342d,#151518 45%,#080a0d 80%); border: 1px solid #ffe0a26b; box-shadow: 0 12px 0 -1px #111116,0 14px 0 -1px #e8b453,0 18px 22px #e9a83b38,0 27px 40px #0009,inset 0 2px 18px #ffd99025; }
.sale-copy { height: 170px; padding: 38px 10px 10px; position: relative; }
.sale-copy h4 { font-size:16px; font-weight: 600; line-height: 1.6; margin: 0 auto 3px; color: #f5ecd9; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sale-author { color: #b8aa94; font-size:13px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sale-card-actions { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 10px; }
.sale-read { display: inline-flex; gap: 9px; align-items: center; color: #f7ce82; font-size:14px; }
.sale-read .icon { width: 16px; height: 16px; }
.flash-sale .sale-save { width: 32px; height: 32px; display: grid; place-items: center; padding: 7px; border-radius: 50%; border: 1px solid #c5ab7444; background: #15161988; color: #e8cf9e; }
.sale-save .icon { width: 16px; height: 16px; }
.sale-navigation { position: absolute; left: 10px; right: 10px; top: 45%; display: flex; justify-content: space-between; pointer-events: none; }
.sale-navigation[hidden] { display: none; }
.sale-navigation button { display: grid; place-items: center; width: 38px; height: 38px; padding: 10px; border-radius: 50%; background: #15191cdd; color: #f3d99c; border: 1px solid #e3bd6d66; pointer-events: auto; backdrop-filter: blur(8px); }
.sale-navigation button:first-child .icon { transform: rotate(180deg); }
.sale-navigation button:disabled { opacity: .3; cursor: default; }
.sale-footnote { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; border-top: 1px solid #e3bd6d1c; padding: 14px 20px; color: #c5b291; font-size:13px; text-align: center; background: #090c1070; }
.sale-footnote .icon { width: 14px; height: 14px; flex-shrink: 0; color: #ecc575; }
.sale-empty-scene { position: relative; width: min(520px,90%); margin: 20px auto 0; }
.sale-empty-books { position: relative; z-index: 1; display: flex; justify-content: center; align-items: flex-end; gap: 22px; padding: 18px 12px 30px; }
.sale-empty-books>span { display: grid; place-items: center; width: 95px; height: 132px; color: #b2945c; border: 1px solid #c4a16555; background: linear-gradient(100deg,#ad824833,#0d141d 10%,#20252b); border-radius: 2px; box-shadow: 7px 4px 0 -1px #b19a70,12px 12px 18px #0009; transform: rotate(-7deg); }
.sale-empty-books>span:nth-child(2) { width: 112px; height: 160px; transform: none; background: linear-gradient(110deg,#ad824844,#28201a 12%,#151a22); }
.sale-empty-books>span:last-child { transform: rotate(7deg); }
.sale-empty-books .icon { width: 26px; height: 26px; }
.sale-empty-scene .sale-podium { bottom: 15px; height: 45px; }
.sale-empty-copy { position: relative; text-align: center; padding: 18px 20px 24px; }
.sale-empty-copy h4 { color: #f5dfb4; font-size:22px; margin: 0 0 5px; }
.sale-empty-copy p { color: #b9aa93; font-size:15px; margin-bottom: 12px; }
.sale-empty-copy>a { display: inline-flex; gap: 8px; align-items: center; font-size:14px; color: #f5cf87; }
.sale-empty-copy .icon { width: 16px; height: 16px; }
@media(hover:hover) { .sale-book:hover { transform: rotateY(-4deg) translateY(-7px); } .sale-read:hover,.sale-author:hover { color: #fff0c7; } }
@media(min-width:1600px) { .sale-stage { max-width: 1280px; } .sale-book-space { height: 390px; } .sale-book { width: 260px; } .sale-card-featured .sale-book { width: 290px; } }
@media(max-width:760px) {
  .catalog-site .discounts-section .flash-sale { border-radius: 16px; }
  .sale-heading { padding: 22px 20px 0; gap: 12px; }
  .sale-eyebrow { font-size:11px; }
  .sale-heading h3 { font-size: 24px; gap: 5px; }
  .sale-heading h3>svg { width: 18px; height: 25px; }
  .sale-offer { display: block; text-align: right; font-size:11px; }
  .sale-offer strong { display: block; font-size: 34px; margin: 4px 0; }
  .sale-offer small { font-size:18px; }
  .sale-offer>span { font-size:10px; }
  .sale-coming { font-size:13px; }
  .sale-coming span { font-size:11px; }
  .sale-track { gap: 24px; padding: 22px 32px 0; }
  .sale-card { flex-basis: 66%; }
  .sale-book-space { height: 260px; padding: 0 14px 0 0; }
  .sale-book,.sale-card-featured .sale-book { width: min(100%,180px); }
  .sale-copy { padding: 30px 0 10px; height: 165px; }
  .sale-copy h4 { font-size:14px; }
  .sale-podium { left: -16%; right: -16%; bottom: 150px; height: 50px; }
  .sale-navigation { left: 4px; right: 4px; top: 36%; }
  .sale-navigation button { width: 32px; height: 32px; padding: 8px; }
  .sale-footnote { font-size:11px; padding: 12px; }
  .sale-empty-books { gap: 14px; }
  .sale-empty-books>span { width: 65px; height: 98px; }
  .sale-empty-books>span:nth-child(2) { width: 80px; height: 120px; }
  .sale-empty-scene .sale-podium { left: 0; right: 0; }
  .sale-empty-copy h4 { font-size:19px; }
}
@media(prefers-reduced-motion:reduce) { .sale-book { transition: none; } .sale-book:hover { transform: rotateY(-14deg); } }

/* Larger coverflow: first and last books can both reach the center. */
.flash-sale .sale-stage { --sale-card-width: clamp(220px, 22vw, 340px); max-width: none; width: 100%; }
.flash-sale .sale-track {
  gap: clamp(22px, 3vw, 56px);
  padding: 44px calc((100% - var(--sale-card-width)) / 2) 0;
  scroll-padding-inline: calc((100% - var(--sale-card-width)) / 2);
  overflow-y: hidden;
  mask-image: linear-gradient(90deg,transparent 0%,#000 12%,#000 88%,transparent 100%);
  -webkit-mask-image: linear-gradient(90deg,transparent 0%,#000 12%,#000 88%,transparent 100%);
  cursor: grab;
}
.flash-sale .sale-track:has(.sale-card:only-child) { justify-content: flex-start; }
.flash-sale .sale-track.is-dragging { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.flash-sale .sale-card { flex: 0 0 var(--sale-card-width); }
.flash-sale .sale-book-space {
  height: clamp(340px, 30vw, 470px);
  padding: 0 20px 0 6px;
  transform: translateY(var(--sale-lift,0px)) scale(var(--sale-scale,1));
  transform-origin: center bottom;
  opacity: var(--sale-opacity,1);
  transition: transform .12s linear, opacity .12s linear;
}
.flash-sale .sale-card .sale-book {
  width: 100%; max-width: 320px;
  transform: rotateY(var(--sale-turn,-8deg));
  transition: transform .12s linear;
}
.flash-sale .sale-pages { width: 21px; right: -17px; }
.flash-sale .sale-copy { opacity: var(--sale-opacity,1); transition: opacity .12s linear; height: 170px; }
.flash-sale .sale-card-active .sale-copy h4 { color: #ffe7b1; }
.flash-sale .sale-podium { left: 3%; right: 3%; height: 88px; bottom: 151px; box-shadow: 0 16px 0 -1px #111116,0 19px 0 -1px #e8b453,0 25px 30px #e9a83b48,0 35px 50px #0009,inset 0 2px 25px #ffd99030; }
.flash-sale .sale-navigation { left: 20px; right: 20px; top: 42%; z-index: 5; }
.flash-sale .sale-navigation button { width: 46px; height: 46px; }
.flash-sale .sale-empty-scene { width: min(900px,94%); margin-top: 30px; }
.flash-sale .sale-empty-books { gap: 40px; padding: 28px 12px 45px; }
.flash-sale .sale-empty-books>span { width: 160px; height: 224px; }
.flash-sale .sale-empty-books>span:nth-child(2) { width: 190px; height: 270px; }
.flash-sale .sale-empty-books .icon { width: 40px; height: 40px; }
.flash-sale .sale-empty-scene .sale-podium { bottom: 22px; height: 74px; }
.promotion-listing-status { display: grid; gap: 5px; border: 1px solid #bc92544d; border-radius: 12px; padding: 16px; margin: 12px 0; background: #9b6c1612; }
.promotion-listing-status strong { font-size:16px; }
.promotion-listing-status p { margin: 0; color: var(--muted); font-size:15px; }
.promotion-listing-status[data-state="ready"] { border-color: #61bb8855; background: #61bb8810; }
.promotion-listing-status[data-state="disabled"] { border-color: var(--line); background: var(--soft); }
.promotion-listing-actions { display: flex; flex-wrap: wrap; gap: 18px; margin: 12px 0 20px; font-size:15px; color: var(--purple); }
.promotion-save-status { margin-top: 12px; }
@media(hover:hover) { .flash-sale .sale-card .sale-book:hover { transform: rotateY(var(--sale-turn,-8deg)) translateY(-6px); } }
@media(max-width:760px) {
  .flash-sale .sale-stage { --sale-card-width: clamp(200px, 66vw, 290px); }
  .flash-sale .sale-track { gap: 18px; padding-top: 42px; mask-image: linear-gradient(90deg,transparent,#000 9%,#000 91%,transparent); -webkit-mask-image: linear-gradient(90deg,transparent,#000 9%,#000 91%,transparent); }
  .flash-sale .sale-book-space { height: 340px; }
  .flash-sale .sale-copy { height: 165px; padding-top: 30px; }
  .flash-sale .sale-podium { left: -5%; right: -5%; bottom: 148px; height: 65px; }
  .flash-sale .sale-navigation { left: 5px; right: 5px; top: 40%; }
  .flash-sale .sale-navigation button { width: 34px; height: 34px; padding: 8px; }
  .flash-sale .sale-empty-books { gap: 18px; padding-bottom: 40px; }
  .flash-sale .sale-empty-books>span { width: 80px; height: 120px; }
  .flash-sale .sale-empty-books>span:nth-child(2) { width: 100px; height: 154px; }
  .flash-sale .sale-empty-books .icon { width: 27px; height: 27px; }
  .flash-sale .sale-empty-scene .sale-podium { height: 50px; }
}
@media(prefers-reduced-motion:reduce) {
  .flash-sale .sale-book-space,.flash-sale .sale-card .sale-book,.flash-sale .sale-copy { transition: none; }
  .flash-sale .sale-card .sale-book:hover { transform: rotateY(var(--sale-turn,-8deg)); }
}

/* Compact display band: the centered cover rises above its top edge. */
.catalog-site .discounts-section .flash-sale:not(.sale-is-empty) {
  overflow: visible; background: transparent; border: 0; box-shadow: none;
}
.flash-sale:not(.sale-is-empty)::before {
  inset: 125px 0 36px;
  border: 1px solid #c39b554d; border-radius: 20px;
  background: radial-gradient(ellipse at 50% 65%,#c58a232b,transparent 65%),linear-gradient(90deg,#0b1019ed,#1b1a1bd4 50%,#0b1019ed);
  box-shadow: inset 0 1px 0 #ffe6aa16;
}
.flash-sale:not(.sale-is-empty)::after { inset: 125px 0 36px; border-radius: 20px; }
.flash-sale:not(.sale-is-empty) .sale-library {
  inset: 125px 0 36px; transform: none; overflow: hidden; border-radius: 20px;
}
.flash-sale:not(.sale-is-empty) .sale-rays { inset: 125px 0 36px; border-radius: 20px; }
.flash-sale .sale-heading { padding: 16px 32px 0; }
.flash-sale .sale-heading h3 { font-size: clamp(25px,2.5vw,36px); }
.flash-sale .sale-stage { --sale-card-width: clamp(220px,20vw,300px); }
.flash-sale .sale-track { padding-top: 36px; }
.flash-sale .sale-book-space { height: calc((var(--sale-card-width) - 26px) * 4 / 3); }
.flash-sale .sale-copy { height: 144px; padding: 36px 8px 6px; }
.flash-sale .sale-copy h4 { font-size:14px; line-height: 1.5; }
.flash-sale .sale-card-actions { margin-top: 6px; }
.flash-sale .sale-podium { bottom: 133px; height: 66px; }
.flash-sale .sale-pages {
  top: 3px; bottom: 3px;
  transform: skewY(-20deg); transform-origin: left top;
}
.flash-sale .sale-footnote { padding: 10px 18px; font-size:12px; }
.flash-sale:not(.sale-is-empty) .sale-footnote { background: transparent; border-top: 0; }
@media(max-width:760px) {
  .flash-sale .sale-heading { padding: 16px 18px 0; }
  .flash-sale .sale-heading h3 { font-size: 24px; }
  .flash-sale .sale-stage { --sale-card-width: clamp(200px,66vw,270px); }
  .flash-sale .sale-track { padding-top: 30px; }
  .flash-sale .sale-copy { height: 148px; padding-top: 34px; }
  .flash-sale .sale-podium { bottom: 136px; height: 52px; }
  .flash-sale:not(.sale-is-empty)::before,
  .flash-sale:not(.sale-is-empty)::after,
  .flash-sale:not(.sale-is-empty) .sale-library,
  .flash-sale:not(.sale-is-empty) .sale-rays { top: 120px; bottom: 36px; }
  .flash-sale .sale-footnote { font-size:11px; padding: 10px 12px; }
}

/* Paper head edge and clear cover rendering. Keep fading at the carousel ends. */
.flash-sale .sale-book-space { opacity: 1; }
.flash-sale .sale-card .sale-book { filter: none; }
.flash-sale .sale-front.cover { overflow: visible; }
.flash-sale .sale-front.cover::before {
  content: ""; position: absolute; pointer-events: none;
  left: 0; top: -6px; width: calc(100% + 17px); height: 7px;
  clip-path: polygon(0 100%,17px 0,100% 0,calc(100% - 17px) 100%);
  background: repeating-linear-gradient(0deg,#c4b18f 0 1px,#f5ead2 1px 2px,#ded0b3 2px 3px);
  box-shadow: inset 0 1px #987343, inset 0 -1px #fff2d1;
}
.flash-sale .sale-book::before {
  background: linear-gradient(90deg,#0005 0,#fff2 1%,#0002 3%,transparent 5%,transparent 98%,#ffe6b110);
}
@media(max-width:760px) { .flash-sale .sale-track { padding-top: 34px; } }

/* Left-hand fan of physical books with selected story on the right. */
.flash-sale .sale-layout { display:grid; grid-template-columns:minmax(0, 1.55fr) minmax(280px, 1fr); gap:32px; align-items:center; padding:0 42px 20px 16px; position:relative; }
.flash-sale .sale-stage { --sale-card-width:clamp(200px,19vw,290px); min-width:0; }
.flash-sale .sale-track { display:block; position:relative; height:calc(var(--sale-card-width) * 4 / 3 + 120px); padding:0; overflow:hidden; scroll-snap-type:none; touch-action:pan-y; mask-image:linear-gradient(90deg,transparent,#000 4%,#000 96%,transparent); -webkit-mask-image:linear-gradient(90deg,transparent,#000 4%,#000 96%,transparent); }
.flash-sale .sale-card { position:absolute; left:46%; top:35px; width:var(--sale-card-width); transform:translateX(calc(-50% + var(--fan-x,0px))) translateY(var(--fan-y,0px)) scale(var(--fan-scale,1)) rotate(var(--fan-lean,0deg)); transform-origin:center bottom; transition:transform .48s cubic-bezier(.22,.7,.24,1); }
.flash-sale .sale-book-space { height:auto; padding:0 20px 0 6px; transform:none; opacity:1; }
.flash-sale .sale-card .sale-book { transform:rotateY(var(--sale-turn,-8deg)); transition:transform .48s ease; }
.flash-sale .sale-card .sale-copy { display:none; }
.flash-sale .sale-podium { bottom:60px; left:3%; right:3%; height:48px; opacity:.85; }
.flash-sale .sale-navigation { left:2px; right:2px; top:44%; z-index:15; }
.flash-sale .sale-navigation button { width:34px; height:34px; padding:8px; }
.flash-sale .sale-details { min-width:0; position:relative; padding:36px 0 0; max-width:500px; }
.flash-sale .sale-detail[hidden] { display:none; }
.flash-sale .sale-detail-label { display:block; font-size:14px; color:#eac67e; margin-bottom:14px; }
.flash-sale .sale-detail h4 { font-size:clamp(20px,1.65vw,28px); line-height:1.5; margin:0 0 14px; color:#fff4dc; }
.flash-sale .sale-detail .sale-author { font-size:15px; margin-bottom:16px; }
.flash-sale .sale-description { color:#c8c5be; font-size:16px; line-height:1.9; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:4; overflow:hidden; margin:0 0 20px; }
.flash-sale .sale-detail .sale-card-actions { justify-content:flex-start; gap:14px; }
.flash-sale .sale-detail .sale-read { background:linear-gradient(120deg,#ffe6a6,#d6a449); padding:11px 20px; border-radius:8px; color:#2c210e; font-size:16px; font-weight:600; }
.flash-sale .sale-detail .sale-save { width:42px; height:42px; }
.flash-sale .sale-fan-controls { position:relative; display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:14px; padding:12px 0 0; color:#cab58b; font-size:13px; }
.flash-sale .sale-fan-controls[hidden] { display:none; }
.flash-sale .sale-fan-dots { display:flex; flex-wrap:wrap; justify-content:center; gap:10px; }
.flash-sale .sale-fan-dots button { border:0; background:transparent; padding:10px 2px; }
.flash-sale .sale-fan-dots button::before { content:""; display:block; height:4px; width:8px; border-radius:3px; background:#b4a88b55; transition:width .2s,background .2s; }
.flash-sale .sale-fan-dots button.selected::before { width:24px; background:#eac16d; }
@media(hover:hover) { .flash-sale .sale-card .sale-book:hover { transform:rotateY(var(--sale-turn,-8deg)) translateY(-3px); } }
@media(max-width:900px) {
 .flash-sale .sale-layout { grid-template-columns:minmax(0,1.3fr) minmax(230px,1fr); gap:18px; padding-right:24px; }
 .flash-sale .sale-stage { --sale-card-width:220px; }
}
@media(max-width:650px) {
 .flash-sale .sale-layout { grid-template-columns:minmax(0,1fr); gap:0; padding:0 10px 24px; }
 .flash-sale .sale-stage { --sale-card-width:clamp(170px,52vw,240px); }
 .flash-sale .sale-track { height:calc(var(--sale-card-width) * 4 / 3 + 110px); }
 .flash-sale .sale-card { left:46%; top:32px; }
 .flash-sale .sale-podium { bottom:62px; height:34px; }
 .flash-sale .sale-details { padding:14px 16px 0; max-width:none; }
 .flash-sale .sale-detail h4 { font-size:22px; }
 .flash-sale .sale-description { -webkit-line-clamp:3; font-size:15px; margin-bottom:14px; }
 .flash-sale .sale-detail-label { margin-bottom:8px; }
 .flash-sale .sale-fan-controls { padding-top:0; }
}
@media(prefers-reduced-motion:reduce) {
 .flash-sale .sale-card,.flash-sale .sale-card .sale-book,.flash-sale .sale-fan-dots button::before { transition:none; }
}

/* Joined paper edges and directional shadows for the physical book fan. */
.flash-sale .sale-pages {
  top:0; bottom:0; right:-17px; width:18px;
  border-top:1px solid #c2a575; border-right:2px solid #806039;
  border-bottom:2px solid #9d7744;
  transform:skewY(-20deg);
  box-shadow:inset -3px 0 4px #65452266;
}
.flash-sale .sale-front.cover::before {
  top:-6.55px; height:7.55px; width:calc(100% + 17px);
  clip-path:polygon(0 100%,17px 0,100% 0,calc(100% - 17px) 100%);
  background:repeating-linear-gradient(0deg,#c4b18f 0 1px,#f5ead2 1px 2px,#ded0b3 2px 3px);
  box-shadow:inset 0 1px #aa8956,inset 0 -1px #f4dfb5;
}
.flash-sale .sale-card .sale-book {
  box-shadow:10px 18px 24px #0009,-10px 12px 18px #0006,2px 3px 5px #0008;
}
.flash-sale .sale-card-active .sale-book {
  box-shadow:12px 22px 26px #000a,-16px 16px 22px #0009,2px 4px 6px #000a;
}
.flash-sale .sale-book::after {
  left:-5%; right:-13%; bottom:-26px; height:28px;
  background:radial-gradient(ellipse,#000b 0%,#0007 36%,transparent 73%);
  filter:blur(6px); opacity:.9; pointer-events:none;
}
.flash-sale .sale-stage>.sale-podium { opacity:1; }
.flash-sale .sale-stage>.sale-podium::before {
  content:""; position:absolute; left:14%; right:12%; top:0; bottom:4px;
  background:radial-gradient(ellipse at 48% 50%,#000e 0%,#000b 28%,#0005 53%,transparent 73%);
  filter:blur(5px); pointer-events:none;
}
.flash-sale .sale-stage>.sale-podium::after {
  content:""; position:absolute; left:27%; right:24%; top:20%; height:42%;
  background:radial-gradient(ellipse,#000d 0%,#0008 40%,transparent 74%);
  filter:blur(3px); pointer-events:none;
}
