/* Lux Flash Sale strip — discounted products with a countdown under the picture */
.lux-fs { position: relative; width: 100%; --fs-red: #d0021b; --fs-ink: #14213d; --fs-muted: #5b6478; --fs-line: #e4e7ee; }
.lux-fs-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 14px) / 4); column-gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px 2px 10px; outline: none; -webkit-overflow-scrolling: touch;
}
.lux-fs-track::-webkit-scrollbar { display: none; }
.lux-fs-track:focus-visible { box-shadow: 0 0 0 3px rgba(208, 2, 27, .35); border-radius: 14px; }
.lux-fs-c[hidden] { display: none !important; }
.lux-fs-c {
  scroll-snap-align: start; display: flex; flex-direction: column; min-width: 0; background: #fff; border: 1px solid var(--fs-line);
  border-radius: 14px; overflow: hidden; box-shadow: 0 6px 18px rgba(15, 30, 50, .08); transition: transform .18s ease, box-shadow .18s ease;
}
.lux-fs-c:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(15, 30, 50, .14); }
.lux-fs-img { position: relative; display: block; height: 0; padding-top: 100%; overflow: hidden; background: #fff; border-bottom: 1px solid var(--fs-line); }
.lux-fs-img img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-width: none !important; object-fit: contain; display: block; padding: 10px; box-sizing: border-box; border-radius: 0 !important; box-shadow: none !important; }
.lux-fs-pct { position: absolute; top: 8px; left: 8px; background: var(--fs-red); color: #fff; font-weight: 800; font-size: 13px; padding: 3px 8px; border-radius: 999px; }
.lux-fs-c .lux-fs-cd {
  display: flex; align-items: center; justify-content: center; gap: 5px; padding: 6px 8px;
  background: linear-gradient(90deg, #d0021b, #ff5a1f); color: #fff; font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.lux-fs-cd-l { opacity: .9; font-weight: 600; }
.lux-fs-c .lux-fs-cd.urgent { animation: luxFsPulse 1s ease-in-out infinite alternate; }
@keyframes luxFsPulse { to { filter: brightness(1.18); } }
@media (prefers-reduced-motion: reduce) { .lux-fs-c .lux-fs-cd.urgent { animation: none; } .lux-fs-c { transition: none; } }
.lux-fs-b { padding: 9px 11px 12px; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.lux-fs-b h3 { margin: 0; font-size: 14px; line-height: 1.35; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.lux-fs-b h3 a { color: var(--fs-ink) !important; text-decoration: none !important; }
.lux-fs-b h3 a:hover { color: var(--fs-red) !important; }
.lux-fs-pr { font-size: 15px; font-weight: 800; color: var(--fs-red); line-height: 1.3; }
.lux-fs-pr del { color: #8a92a3; font-weight: 500; font-size: 12.5px; margin-right: 4px; }
.lux-fs-pr ins { text-decoration: none; }
.lux-fs-pr ins, .lux-fs-pr ins .amount, .lux-fs-pr > .amount { color: var(--fs-red) !important; }
.lux-fs-pr .lux-off { display: none !important; }
.lux-fs-track { align-items: start; }
.lux-fs-pr .screen-reader-text { position: absolute !important; clip: rect(1px, 1px, 1px, 1px); width: 1px; height: 1px; overflow: hidden; }
.lux-fs-ask { color: var(--fs-muted); font-weight: 600; font-size: 13px; }
.lux-fs-nav {
  position: absolute; top: calc(50% - 44px); width: 38px; height: 38px; border-radius: 50%; border: 0; padding: 0; z-index: 2; cursor: pointer;
  background: rgba(255, 255, 255, .96) !important; color: var(--fs-ink) !important; font-size: 26px; line-height: 36px; box-shadow: 0 4px 14px rgba(15, 30, 50, .2);
}
.lux-fs-prev { left: -8px; } .lux-fs-next { right: -8px; }
.lux-fs.single .lux-fs-nav { display: none; }
.lux-fs-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.lux-fs-dots { display: flex; gap: 6px; flex-wrap: wrap; }
.lux-fs-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 99px; background: #cdd3dc !important; cursor: pointer; transition: width .2s ease; }
.lux-fs-dots button.on { width: 24px; background: var(--fs-red) !important; }
.lux-fs-all {
  margin-left: auto; display: inline-flex; align-items: center; padding: 10px 18px; border-radius: 999px; background: var(--fs-red);
  color: #fff !important; font-weight: 700; font-size: 14.5px; text-decoration: none !important; box-shadow: 0 8px 18px rgba(208, 2, 27, .25); white-space: nowrap;
}
.lux-fs-all:hover { background: #a80016; }
@media (max-width: 899px) { .lux-fs-track { grid-auto-columns: calc((100% - 14px) / 2); } .lux-fs-nav { display: none; } }
@media (max-width: 420px) { .lux-fs-all { width: 100%; justify-content: center; } }

/* product page pill */
.lux-fs-pill { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 2px 0 12px; padding: 6px 12px; border-radius: 999px; background: linear-gradient(90deg, #d0021b, #ff5a1f); color: #fff; font-size: 14px; }
.lux-fs-pill .lux-fs-cd { font-weight: 800; font-variant-numeric: tabular-nums; }
.lux-fs.single .lux-fs-dots { visibility: hidden; }
.lux-fs-h { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; font-size: clamp(20px, 2vw, 26px); font-weight: 800; color: var(--fs-ink); line-height: 1.2; }
.lux-fs-h svg { color: #ff7a00; flex: none; }
.lux-fs-nav { top: calc(50% - 30px); }

/* homepage layout: cut banner (red part only) on the left, cards slide in from behind its slanted edge */
.elementor-85 .elementor-element-ba15334 .elementor-element-49bac71 img { box-shadow: none !important; border-radius: 14px 0 0 14px !important; filter: drop-shadow(0 10px 18px rgba(120, 0, 10, .18)); }
@media (min-width: 900px) {
  .elementor-85 .elementor-element-ba15334 > .e-con-inner { align-items: flex-end !important; gap: 0 !important; }
  .elementor-85 .elementor-element-ba15334 > .e-con-inner > .elementor-widget-image.elementor-element-49bac71 { flex: 0 0 25% !important; width: 25% !important; max-width: 25% !important; position: relative; z-index: 3; align-self: flex-end; margin-bottom: 52px; }
  .elementor-85 .elementor-element-ba15334 > .e-con-inner > .elementor-widget.elementor-element-bb0454a { flex: 1 1 auto !important; min-width: 0 !important; margin-left: -7% !important; position: relative; z-index: 1; }
  .elementor-85 .elementor-element-bb0454a .lux-fs-track { padding-left: 9%; scroll-padding-left: 9%; }
  .elementor-85 .elementor-element-bb0454a .lux-fs-h, .elementor-85 .elementor-element-bb0454a .lux-fs-foot { padding-left: 9%; }
  .elementor-85 .elementor-element-bb0454a .lux-fs-prev { left: calc(9% - 18px); }
}
@media (max-width: 899px) { .lux-fs-track { grid-auto-columns: calc((100% - 14px) / 2); } }
/* heading: centred, big flashing bolt */
.lux-fs .lux-fs-h { justify-content: center; text-align: center; gap: 10px; font-size: clamp(22px, 2.3vw, 30px); margin-bottom: 12px; }
.lux-fs-bolt { display: inline-flex; width: 60px; height: 60px; align-items: center; justify-content: center; filter: drop-shadow(0 0 6px rgba(255, 196, 0, .75)); animation: luxGlow 1.6s ease-in-out infinite; transform-origin: 50% 60%; }
.lux-fs-bolt svg { width: 60px; height: 60px; overflow: visible; }
.lux-fs-bolt .lx-st { animation: lxTw 2.4s ease-in-out infinite; } .lux-fs-bolt .lx-st.s2 { animation-delay: .8s; } .lux-fs-bolt .lx-st.s3 { animation-delay: 1.6s; }
@keyframes lxTw { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
.lux-fs-bolt .lx-neb { transform-origin: 32px 32px; animation: lxSpin 14s linear infinite; }
@keyframes lxSpin { to { transform: rotate(360deg); } }
.lux-fs-bolt .lx-arc path { stroke-dasharray: 22; stroke-dashoffset: 22; animation: lxArc 1.6s steps(1, end) infinite; }
.lux-fs-bolt .lx-arc .a2 { animation-delay: .35s; } .lux-fs-bolt .lx-arc .a3 { animation-delay: .9s; }
@keyframes lxArc { 0% { stroke-dashoffset: 22; } 10% { stroke-dashoffset: 0; opacity: 1; } 22% { opacity: 0; } 100% { opacity: 0; } }
.lux-fs-bolt .lx-bolt { transform-origin: 32px 32px; animation: luxBolt 1.6s steps(1, end) infinite; }
@keyframes luxBolt { 0%, 18%, 24%, 52%, 100% { opacity: 1; } 20%, 50% { opacity: .35; } 22% { opacity: .85; } }
@keyframes luxGlow { 0%, 100% { filter: drop-shadow(0 0 4px rgba(255, 196, 0, .6)); transform: scale(1) rotate(-4deg); } 21% { filter: drop-shadow(0 0 14px rgba(255, 170, 0, 1)) drop-shadow(0 0 26px rgba(255, 90, 0, .65)); transform: scale(1.14) rotate(4deg); } 60% { filter: drop-shadow(0 0 8px rgba(255, 196, 0, .85)); transform: scale(1.04) rotate(-2deg); } }
@media (prefers-reduced-motion: reduce) { .lux-fs-bolt, .lux-fs-bolt * { animation: none !important; } .lux-fs-bolt .lx-arc path { stroke-dashoffset: 0; } }
@media (min-width: 900px) {
  .elementor-85 .elementor-element-bb0454a .lux-fs-h { padding-left: 0; margin-left: -21.95%; width: 121.95%; }
}

/* promotion items (e.g. "ซื้อ 10 แถม 2") in the Flash Sale strip */
.lux-fs-promo { position: absolute; left: 8px; bottom: 8px; max-width: calc(100% - 16px); background: #fff; color: var(--fs-red); border: 1.5px solid var(--fs-red); font-weight: 800; font-size: 12px; padding: 2px 8px; border-radius: 999px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lux-fs-c .lux-fs-cd.lux-fs-cd-promo { background: linear-gradient(90deg, #7a0019, #d0021b); letter-spacing: .1px; }
.lux-fs-cd-promo span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
