/* Beautix Flash Sale storefront */
.bxfs, .bxfs-pp {
	--bxfs-accent: #E61457;
	--bxfs-accent-hover: #C10E48;
	--bxfs-ink: #231018;
	--bxfs-muted: #6f5a64;
	--bxfs-surface: #FDF3F6;
	--bxfs-line: #f1dde5;
	--bxfs-track: #f7d9e3;
	--bxfs-support: #83B738;
	color: var(--bxfs-ink);
	font-family: inherit;
}
.bxfs-mount:empty, .bxfs-wrap:has(.bxfs-mount:empty), .elementor-widget-shortcode:has(.bxfs-mount:empty) { display: none !important; }
.bxfs *, .bxfs-pp * { box-sizing: border-box; }

/* Section shell */
.bxfs--section { background: var(--bxfs-surface); border-radius: 14px; padding: 20px; margin: 0 0 8px; }
.bxfs-head { display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; }
.bxfs-title { display: flex; align-items: center; gap: 8px; min-width: 0; }
.bxfs-title h2 { margin: 0; font-size: 22px; line-height: 1.2; font-weight: 700; color: var(--bxfs-ink); letter-spacing: -.01em; }
.bxfs-bolt { width: 22px; height: 22px; color: var(--bxfs-accent); flex: none; }
.bxfs-soon { font-size: 12px; font-weight: 600; color: var(--bxfs-accent); border: 1px solid var(--bxfs-accent); border-radius: 99px; padding: 2px 10px; white-space: nowrap; }
.bxfs-sub { margin: 6px 0 0; color: var(--bxfs-muted); font-size: 14px; }
.bxfs-viewall { margin-left: auto; display: inline-flex; align-items: center; gap: 2px; color: var(--bxfs-accent) !important; font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap; }
.bxfs-viewall:hover { color: var(--bxfs-accent-hover) !important; }
.bxfs-viewall svg { width: 18px; height: 18px; }

/* Countdown */
.bxfs-timer { display: flex; align-items: center; gap: 8px; }
.bxfs-timer-label { font-size: 13px; color: var(--bxfs-muted); white-space: nowrap; }
.bxfs-clock { display: inline-flex; align-items: center; gap: 3px; font-variant-numeric: tabular-nums; }
.bxfs-u { display: inline-flex; align-items: baseline; gap: 1px; background: var(--bxfs-ink); color: #fff; border-radius: 6px; padding: 3px 6px; min-width: 30px; justify-content: center; }
.bxfs-u b { font-weight: 700; font-size: 15px; line-height: 1.2; color: #fff; }
.bxfs-u i { font-style: normal; font-size: 11px; opacity: .8; }
.bxfs-u--d { margin-right: 4px; }
.bxfs-u[hidden] { display: none; }
.bxfs-sep { font-weight: 700; color: var(--bxfs-ink); }
.bxfs--live .bxfs-u { background: var(--bxfs-accent); }

/* Body: banner + rail */
.bxfs-body { margin-top: 16px; }
.bxfs-body.has-banner { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 16px; align-items: stretch; }
.bxfs-banner { display: block; border-radius: 14px; overflow: hidden; }
.bxfs-banner picture, .bxfs-banner img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bxfs-rail-wrap { position: relative; min-width: 0; }
.bxfs-rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 4 * 16px) / 5); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.bxfs-rail::-webkit-scrollbar { display: none; }
.has-banner .bxfs-rail { grid-auto-columns: calc((100% - 3 * 16px) / 4); }
.bxfs-rail > .bxfs-card { scroll-snap-align: start; }
.bxfs-nav { position: absolute; top: 38%; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--bxfs-line); background: #fff; color: var(--bxfs-ink); display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; transition: opacity .2s; }
.bxfs-nav svg { width: 18px; height: 18px; }
.bxfs-nav:disabled { opacity: 0; pointer-events: none; }
.bxfs-nav--prev { left: -12px; }
.bxfs-nav--next { right: -12px; }
.bxfs-nav[hidden] { display: none; }

/* Card */
.bxfs-card { background: #fff; border: 1px solid var(--bxfs-line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.bxfs-card-img { position: relative; display: block; aspect-ratio: 1 / 1; background: #fff; }
.bxfs-card-img img { width: 100% !important; height: 100% !important; object-fit: contain; padding: 10px; margin: 0 !important; }
.bxfs-badge { position: absolute; top: 10px; left: 10px; background: var(--bxfs-accent); color: #fff; font-size: 12px; font-weight: 700; line-height: 1; padding: 5px 8px; border-radius: 6px; }
.bxfs-badge--soon { background: #fff; color: var(--bxfs-accent); border: 1px solid var(--bxfs-accent); }
.bxfs-card-body { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px 12px; flex: 1; }
.bxfs-card-name { color: var(--bxfs-ink) !important; font-size: 14px; line-height: 1.35; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.bxfs-card-name:hover { color: var(--bxfs-accent) !important; }
.bxfs-card-price { font-size: 15px; font-weight: 700; color: var(--bxfs-accent); line-height: 1.3; }
.bxfs-card-price del { color: var(--bxfs-muted); font-weight: 400; font-size: 13px; margin-right: 4px; opacity: 1; }
.bxfs-card-price ins { text-decoration: none; color: var(--bxfs-accent); }
.bxfs-card-price .beautix-off-pct { display: none; }
.bxfs--soon .bxfs-card-price, .bxfs--soon .bxfs-card-price ins { color: var(--bxfs-ink); }
.bxfs-stock { display: flex; flex-direction: column; gap: 4px; }
.bxfs-bar { height: 6px; border-radius: 99px; background: var(--bxfs-track); overflow: hidden; }
.bxfs-bar i { display: block; height: 100%; background: var(--bxfs-accent); border-radius: inherit; transition: width .4s ease; }
.bxfs-stock-txt { display: flex; justify-content: space-between; gap: 6px; font-size: 12px; color: var(--bxfs-muted); }
.bxfs-stock-txt b { color: var(--bxfs-ink); font-weight: 700; }
.bxfs-stock-txt--soon { display: block; }
.bxfs-btn { margin-top: auto; display: block; width: 100%; text-align: center; background: var(--bxfs-accent); color: #fff !important; border: 1px solid var(--bxfs-accent); border-radius: 6px; padding: 9px 10px; font-size: 13px; font-weight: 600; line-height: 1.2; text-decoration: none !important; text-transform: none; letter-spacing: 0; box-shadow: none; transition: background .2s; }
.bxfs-btn:hover { background: var(--bxfs-accent-hover); border-color: var(--bxfs-accent-hover); }
.bxfs-btn.loading { opacity: .6; }
.bxfs-btn--ghost { background: #fff; color: var(--bxfs-accent) !important; }
.bxfs-btn--ghost:hover { background: var(--bxfs-surface); }
.bxfs-card .added_to_cart { font-size: 12px; text-align: center; color: var(--bxfs-accent); }

/* View all page: same centred 1500px container + 10px gutter as the theme header and footer sections */
.bxfs-mount[data-mode="page"] { max-width: 1500px; margin: 20px auto 0; padding: 0 10px; box-sizing: border-box; }
.bxfs--page { margin: 0 0 40px; }
.bxfs--page .bxfs-banner { margin-bottom: 20px; }
.bxfs--page .bxfs-banner img { height: auto; max-height: 420px; object-fit: cover; }
.bxfs--page .bxfs-head { padding: 14px 18px; background: var(--bxfs-surface); border-radius: 14px; }
.bxfs--page .bxfs-sub { margin: 10px 0 0; }
.bxfs-grid { margin-top: 20px; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.bxfs-empty { text-align: center; padding: 56px 20px; background: var(--bxfs-surface); border-radius: 14px; }
.bxfs-empty .bxfs-bolt { width: 36px; height: 36px; }
.bxfs-empty h2 { margin: 8px 0; font-size: 22px; font-weight: 700; }
.bxfs-empty p { color: var(--bxfs-muted); margin: 0 0 20px; }
.bxfs-empty .bxfs-btn { display: inline-block; width: auto; padding: 11px 22px; }
.bxfs--page .bxfs-grid + .bxfs-empty, .bxfs-grid ~ .bxfs-empty { margin-top: 20px; }

/* Product page box */
.bxfs-pp { background: var(--bxfs-surface); border: 1px solid var(--bxfs-line); border-radius: 14px; padding: 12px 14px; margin: 12px 0 16px; display: flex; flex-direction: column; gap: 10px; }
.bxfs-pp-top { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.bxfs-pp-tag { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: 15px; color: var(--bxfs-ink); }
.bxfs-pp-tag .bxfs-bolt { width: 18px; height: 18px; }
.bxfs-pp-extra { background: var(--bxfs-accent); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
.bxfs-pp-note { font-size: 12px; color: var(--bxfs-muted); margin: 0; }
.bxfs-pp .bxfs-u { background: var(--bxfs-accent); }
.bxfs-pp .bxfs-card { border: 0; background: transparent; border-radius: 0; }

/* Tablet */
@media (max-width: 1024px) {
	.bxfs-rail { grid-auto-columns: calc((100% - 2 * 14px) / 3); gap: 14px; }
	.has-banner .bxfs-rail { grid-auto-columns: calc((100% - 2 * 14px) / 3); }
	.bxfs-body.has-banner { grid-template-columns: 200px minmax(0, 1fr); }
}

/* Phone */
@media (max-width: 767px) {
	.bxfs--section { padding: 16px 0 16px 16px; border-radius: 0; margin-left: -15px; margin-right: -15px; }
	.bxfs--section .bxfs-head, .bxfs--section .bxfs-sub { padding-right: 16px; }
	.bxfs-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
	.bxfs-title h2 { font-size: 18px; }
	.bxfs-timer { grid-column: 1 / -1; grid-row: 2; }
	.bxfs-viewall { grid-column: 2; grid-row: 1; }
	.bxfs-sub { font-size: 13px; }
	.bxfs-body { margin-top: 12px; }
	.bxfs-body.has-banner { display: block; }
	.bxfs--section .bxfs-banner { margin: 0 16px 12px 0; }
	.bxfs-banner img { height: auto; }
	.bxfs-rail, .has-banner .bxfs-rail { grid-auto-columns: 44%; gap: 10px; padding-right: 16px; scroll-padding-left: 0; }
	.bxfs-nav { display: none !important; }
	.bxfs-card-body { padding: 8px 10px 10px; }
	.bxfs-card-name { font-size: 13px; }
	.bxfs-card-price { font-size: 14px; }
	.bxfs-btn { padding: 8px; font-size: 12px; }
	.bxfs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.bxfs-mount[data-mode="page"] { padding: 0 15px; margin-top: 12px; }
	.bxfs--page .bxfs-banner { margin-bottom: 12px; }
	.bxfs--page .bxfs-head { padding: 12px 14px; }
	.bxfs-u { min-width: 28px; padding: 3px 5px; }
	.bxfs-u b { font-size: 14px; }
}

/* Admin preview tag */
.bxfs-preview { font-size: 11px; font-weight: 600; color: #8a5a00; background: #fff4d6; border: 1px dashed #d9a400; border-radius: 99px; padding: 2px 8px; white-space: nowrap; }

/* Notify me */
.bxfs-notify { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.bxfs-notify-btn { display: inline-flex; align-items: center; gap: 6px; background: #fff; color: var(--bxfs-accent, #E61457); border: 1px solid var(--bxfs-accent, #E61457); border-radius: 6px; padding: 6px 12px; font: inherit; font-size: 13px; font-weight: 600; line-height: 1.2; cursor: pointer; text-transform: none; letter-spacing: 0; box-shadow: none; }
.bxfs-notify-btn:hover { background: var(--bxfs-surface, #FDF3F6); }
.bxfs-notify-btn svg { width: 16px; height: 16px; }
.bxfs-notify.is-open .bxfs-notify-btn, .bxfs-notify.is-done .bxfs-notify-btn, .bxfs-notify.is-done form { display: none; }
.bxfs-notify-form { display: flex; gap: 6px; margin: 0; }
.bxfs-notify-form[hidden] { display: none; }
.bxfs-notify-form input[type=email] { height: 34px; min-width: 200px; border: 1px solid var(--bxfs-line, #f1dde5); border-radius: 6px; padding: 0 10px; font: inherit; font-size: 13px; background: #fff; color: var(--bxfs-ink, #231018); margin: 0; }
.bxfs-notify-form .bxfs-btn { width: auto; margin: 0; padding: 0 14px; height: 34px; white-space: nowrap; flex: none; }
.bxfs-notify-msg { margin: 0; font-size: 13px; color: var(--bxfs-ink, #231018); }
.bxfs-notify-msg:empty { display: none; }
.bxfs-notify.is-done .bxfs-notify-msg::before { content: '\2713'; color: var(--bxfs-support, #83B738); font-weight: 700; margin-right: 6px; }
.bxfs-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.bxfs-pp .bxfs-notify-form input[type=email] { flex: 1; min-width: 0; }
.bxfs-pp .bxfs-notify-form { flex: 1; }
.bxfs-empty .bxfs-notify { justify-content: center; margin: 0 0 16px; }

@media (max-width: 767px) {
	.bxfs-head .bxfs-notify { grid-column: 1 / -1; }
	.bxfs-notify-form { width: 100%; }
	.bxfs-notify-form input[type=email] { flex: 1; min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
	.bxfs-bar i, .bxfs-nav { transition: none; }
	.bxfs-rail { scroll-behavior: auto; }
}
