@property --fx-ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
html [data-aos="zoom-in"][data-aos] { transform: translateY(18px) scale(.98); }
html [data-aos="zoom-in"][data-aos].aos-animate { transform: none; }
.stat-card:hover .stat-bg-icon { animation: fxFloat 3s ease-in-out infinite; }
@keyframes fxFloat { 0%,100% { translate: 0 0; rotate: 0deg; } 50% { translate: -4px -8px; rotate: -6deg; } }
.stat-card .stat-icon-box { transition: transform .35s cubic-bezier(.34,1.56,.64,1); }
.stat-card:hover .stat-icon-box { transform: scale(1.12) rotate(-6deg); }
.stat-value.fx-pop { animation: fxNum .5s ease; }
@keyframes fxNum { 0% { opacity: .4; transform: translateY(6px); } 100% { opacity: 1; transform: none; } }
.btn-get-started { position: relative; overflow: hidden; }
.btn-get-started::after { content: ""; position: absolute; top: 0; bottom: 0; width: 38%; left: 0; background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent); transform: translateX(-160%) skewX(-20deg); animation: fxShine 4s ease-in-out infinite; will-change: transform; }
@keyframes fxGlow { 0%,100% { box-shadow: 0 4px 15px rgba(var(--accent-rgb,255,26,85), .3); } 50% { box-shadow: 0 4px 26px rgba(var(--accent-rgb,255,26,85), .6); } }
@keyframes fxShine { 0%,60% { transform: translateX(-160%) skewX(-20deg); } 100% { transform: translateX(380%) skewX(-20deg); } }
@keyframes fxKen { from { transform: scale(1); } to { transform: scale(1.06); } }
.custom-product-card { transition: transform .18s ease-out, border-color .3s, box-shadow .3s; }
.custom-product-card:hover { transform: perspective(800px) translateY(-6px) rotateX(var(--fx-rx, 0deg)) rotateY(var(--fx-ry, 0deg)); box-shadow: 0 14px 34px rgba(0,0,0,.45), 0 0 24px rgba(var(--accent-rgb,255,26,85), .12); }
.custom-card-img-wrap { overflow: hidden; }
.custom-card-img-wrap img { transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.custom-product-card:hover .custom-card-img-wrap img { transform: scale(1.06); }
.custom-card-price { transition: transform .3s cubic-bezier(.34,1.56,.64,1); transform-origin: left center; }
.custom-product-card:hover .custom-card-price { transform: scale(1.1); }
.wm .sp-card { transition: transform .25s ease, border-color .25s, box-shadow .25s; }
.wm .sp-card:hover { transform: translateY(-5px); box-shadow: 0 14px 34px rgba(0,0,0,.4), 0 0 24px rgba(var(--accent-rgb,255,26,85), .12); }
.wm .sp-img img { transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.wm .sp-card:hover .sp-img img { transform: scale(1.07); }
.cat-card { position: relative; }
.cat-card::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; background: conic-gradient(from var(--fx-ang), transparent 0 60%, var(--accent, #ff1a55) 80%, transparent 100%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); opacity: 0; transition: opacity .3s; pointer-events: none; }
.cat-card:hover::before { opacity: 1; animation: fxSpin 2.4s linear infinite; }
@keyframes fxSpin { to { --fx-ang: 360deg; } }
.cat-card-img img { transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.cat-card:hover .cat-card-img img { transform: scale(1.06); }
.custom-card-img-wrap img, .cat-card-img img, .wm .sp-img img { background: #0b0b0b; }
html.nx-light .custom-card-img-wrap img, html.nx-light .cat-card-img img, html.nx-light .wm .sp-img img { background: #e6e8ef; }
.btn-buy-gradient { overflow: hidden; }
.btn-buy-gradient:not(.disabled)::after { content: ""; position: absolute; top: 0; bottom: 0; width: 35%; left: 0; background: linear-gradient(100deg, transparent, rgba(255,255,255,.3), transparent); transform: translateX(-160%) skewX(-20deg); animation: fxShine 3.6s ease-in-out infinite; pointer-events: none; }
.btn-buy-gradient:active { transform: scale(.98); }
.btn-buy-gradient .chevron-icon { transition: transform .25s ease; }
.btn-buy-gradient:hover .chevron-icon { transform: translateX(5px); }
.status-dot { position: relative; display: inline-block; flex: none; }
.status-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: fxPing 1.8s ease-out infinite; }
@keyframes fxPing { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(3.2); opacity: 0; } }
.nm-qty button { transition: transform .2s cubic-bezier(.34,1.56,.64,1), background .2s; }
.nm-qty button:active { transform: scale(.82); }
#qty.fx-bump { animation: fxBump .3s ease; }
@keyframes fxBump { 0% { transform: scale(1); } 45% { transform: scale(1.35); color: var(--accent, #ff1a55); } 100% { transform: scale(1); } }
.fx-flash { animation: fxFlash .5s ease; }
@keyframes fxFlash { 0% { opacity: .35; transform: translateY(4px); } 100% { opacity: 1; transform: none; } }
.opt-card { transition: border-color .15s, background .15s, transform .2s cubic-bezier(.34,1.56,.64,1); }
.opt-card:active:not(:disabled) { transform: scale(.98); }
#nxThemeBtn .nx-i-moon, #nxThemeBtn .nx-i-sun { animation: nxSpinIn .5s cubic-bezier(.34,1.56,.64,1); }
.nx-brand img { transition: transform .4s cubic-bezier(.34,1.56,.64,1); }
.nx-brand:hover img { transform: rotate(-10deg) scale(1.1); }
.ft-fab { animation: fxSway 5s ease-in-out infinite; }
.ft-fab::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 2px solid rgba(var(--accent-rgb,255,26,85), .55); animation: fxRing 2.6s ease-out infinite; pointer-events: none; }
.ft-fab:hover { animation-play-state: paused; }
@keyframes fxSway { 0%,80%,100% { rotate: 0deg; } 84% { rotate: -14deg; } 88% { rotate: 12deg; } 92% { rotate: -8deg; } 96% { rotate: 4deg; } }
@keyframes fxRing { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.55); opacity: 0; } }
.ft-col a { position: relative; }
.ft-col a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 7px; height: 1px; background: currentColor; opacity: .6; transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.ft-col a:hover::after { transform: scaleX(1); }
.ft-col a svg, .ft-col a .nx-i { transition: transform .3s cubic-bezier(.34,1.56,.64,1); }
.ft-col a:hover svg, .ft-col a:hover .nx-i { transform: translateX(3px) scale(1.12); }
@media (prefers-reduced-motion: reduce) {
  .stat-bg-icon, .btn-get-started, .btn-get-started::after, #carouselExampleControls .carousel-item.active img,
  .cat-card:hover::before, .custom-card-img-wrap, .cat-card-img, .wm .sp-img, .wm .cg-img,
  .btn-buy-gradient::after, .status-dot::after, .ft-fab, .ft-fab::after, #nxThemeBtn .nx-i-moon, #nxThemeBtn .nx-i-sun { animation: none !important; }
  .custom-product-card, .custom-card-img-wrap img, .cat-card-img img, .wm .sp-img img { transition: none !important; transform: none !important; }
}
#carouselExampleControls::after, .custom-card-img-wrap::after, .wm .sp-img::after { animation: none !important; background-position: 100% 0; transition: background-position .9s ease; }
.custom-product-card:hover .custom-card-img-wrap::after, .wm .sp-card:hover .sp-img::after { background-position: 0 0; }
@media (hover: none), (max-width: 991px) {
  body { background-attachment: scroll !important; }
  .bg-glass { -webkit-backdrop-filter: blur(10px) !important; backdrop-filter: blur(10px) !important; }
  .nx-wrap::before { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; background: rgba(0,0,0,.6); }
}
@media (hover: none) and (pointer: coarse) {
  .container-sm { max-width: 100% !important; padding-left: 16px !important; padding-right: 16px !important; }
  .pd-media, .pd-media + div { flex: 0 0 100%; width: 100%; max-width: 100%; }
  .pd-media .custom-product-card { position: static; max-width: 240px; margin: 0 auto 4px; padding: 10px; border-radius: 20px; }
  .cat-grid, .wm .cg-grid, .wm .sp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cat-grid.cs-on { grid-template-columns: repeat(1, minmax(0, 1fr)); }
}
.swal2-popup { border-radius: 22px !important; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 24px 70px rgba(0,0,0,.55); padding: 1.6em 1.4em 1.4em; animation: fxPopIn .35s cubic-bezier(.34,1.4,.64,1); }
@keyframes fxPopIn { from { opacity: 0; transform: translateY(14px) scale(.94); } to { opacity: 1; transform: none; } }
.swal2-title { font-size: 1.35rem; font-weight: 600; }
.swal2-html-container { font-size: .98rem; line-height: 1.55; opacity: .9; }
.swal2-actions .swal2-styled { border-radius: 12px !important; padding: 10px 22px; font-weight: 500; box-shadow: none !important; transition: transform .15s, filter .15s; }
.swal2-actions .swal2-styled:hover { filter: brightness(1.1); transform: translateY(-1px); }
.swal2-icon.swal2-question, .swal2-icon.swal2-info { border-color: rgba(var(--accent-rgb,255,26,85), .55) !important; color: var(--accent, #ff1a55) !important; }
.swal2-icon.swal2-question .swal2-icon-content, .swal2-icon.swal2-info .swal2-icon-content { color: var(--accent, #ff1a55) !important; }
html.nx-light .swal2-popup { background: #ffffff !important; color: #111827 !important; border-color: #e5e7eb; box-shadow: 0 24px 60px rgba(17,24,39,.2); }
html.nx-light .swal2-title, html.nx-light .swal2-html-container { color: #111827 !important; }
html.nx-light .swal2-actions .swal2-cancel { background: #eef0f5 !important; color: #374151 !important; }
html.nx-light .swal2-success-fix, html.nx-light [class^="swal2-success-circular-line"] { background-color: #ffffff !important; }
html.nx-light .swal2-container.swal2-backdrop-show { background: rgba(17,24,39,.45) !important; }
html.swal2-shown .ft-fab::after { animation: none !important; }
html.swal2-shown .cs-ov,
html.swal2-shown .nx-wrap::before { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.nm-dlg-ov { position: fixed; inset: 0; z-index: 9000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0,0,0,.65); }
.nm-dlg { width: 100%; max-width: 360px; background: #111; color: #fff; border: 1px solid rgba(255,255,255,.12); border-radius: 22px; padding: 26px 22px 20px; text-align: center; box-shadow: 0 24px 70px rgba(0,0,0,.55); font-family: 'Kanit', sans-serif; }
.nm-dlg-ic { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; border: 2px solid rgba(var(--accent-rgb,255,26,85),.6); color: var(--accent,#ff1a55); font-size: 30px; line-height: 60px; font-weight: 600; }
.nm-dlg-t { margin: 0 0 8px; font-size: 1.25rem; font-weight: 600; }
.nm-dlg-p { font-size: .98rem; line-height: 1.55; opacity: .9; }
.nm-dlg-act { display: flex; gap: 10px; justify-content: center; margin-top: 18px; }
.nm-dlg-act button { flex: 1; min-height: 44px; border: 0; border-radius: 12px; font: inherit; font-weight: 500; cursor: pointer; padding: 10px 14px; }
.nm-dlg-yes { background: var(--accent,#ff1a55); color: #fff; }
.nm-dlg-no { background: #262626; color: #e5e5e5; }
html.nm-lock { overflow: hidden; }
html.nx-light .nm-dlg { background: #fff; color: #111827; border-color: #e5e7eb; }
html.nx-light .nm-dlg-no { background: #eef0f5; color: #374151; }
.pc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (min-width: 900px) { .pc-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pc-card { display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 1px solid rgba(255,255,255,.12); border-radius: 26px; background: #111; color: #f5f5f5; text-decoration: none; height: 100%; box-sizing: border-box; }
.pc-img { position: relative; display: block; border-radius: 18px; overflow: hidden; aspect-ratio: 1 / 1; background: #0a0a0a; }
.pc-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pc-card.out .pc-img img { opacity: .55; }
.pc-sold { position: absolute; left: 8px; bottom: 8px; font-size: 12px; padding: 3px 9px; border-radius: 999px; background: rgba(0,0,0,.6); color: #fff; }
.pc-name { font-size: 16px; font-weight: 500; color: inherit; text-decoration: none; padding: 0 4px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pc-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 8px; padding: 0 4px; min-width: 0; }
.pc-price { font-size: 18px; font-weight: 700; color: var(--accent, #ff4d57); min-width: 0; overflow-wrap: anywhere; }
.pc-price .rsl-tag { font-size: 11px; font-weight: 500; color: #9ca3af; }
.pc-st { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 3px 9px; max-width: 100%; border-radius: 999px; border: 1px solid; white-space: nowrap; }
.pc-st i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; }
.pc-st.ok { color: #22c55e; border-color: rgba(34,197,94,.35); background: rgba(34,197,94,.08); }
.pc-st.bad { color: #ff4d57; border-color: rgba(255,77,87,.35); background: rgba(255,77,87,.08); }
.pc-buy { display: flex; align-items: center; justify-content: center; height: 46px; border-radius: 14px; background: #1d6fe0; color: #fff; font-size: 16px; font-weight: 500; text-decoration: none; }
.pc-buy.off { background: #2a2a2a; color: #8a8a8a; }
.pc-left { text-align: center; font-size: 13px; color: #9ca3af; }
html.nx-light .pc-card { background: #fff; color: #111827; border-color: #e5e7eb; box-shadow: 0 6px 24px rgba(17,24,39,.06); }
html.nx-light .pc-img { background: #f3f4f6; }
html.nx-light .pc-name { color: #111827; }
html.nx-light .pc-left { color: #6b7280; }
@media (hover: none) and (pointer: coarse) {
  .pd-media .custom-product-card { max-width: 100% !important; width: 100% !important; box-sizing: border-box !important; }
  .pd-media .custom-card-img-wrap img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
}
@media (max-width: 575px) {
  .pc-grid { gap: 10px; }
  .pc-card { padding: 9px; gap: 7px; border-radius: 20px; }
  .pc-img { aspect-ratio: 5 / 4; border-radius: 14px; }
  .pc-sold { left: 6px; bottom: 6px; font-size: 11px; padding: 2px 8px; }
  .pc-name { font-size: 14px; }
  .pc-price { font-size: 15px; }
  .pc-st { font-size: 11px; padding: 2px 7px; gap: 5px; }
  .pc-st i { width: 6px; height: 6px; }
  .pc-buy { height: 38px; border-radius: 11px; font-size: 14px; }
  .pc-left { font-size: 12px; }
  .cs-body { padding: 14px 16px; gap: 6px; }
  .cs-name { font-size: 17px; }
  .cs-count { font-size: 12px; }
  .cs-price { font-size: 12px; padding: 4px 11px; }
  .cs-go { font-size: 12px; padding: 6px 13px; }
  .cat-head { margin-bottom: 12px; }
  .cat-head-ico { width: 36px; height: 36px; border-radius: 12px; }
  .cat-head-ico svg { width: 18px; height: 18px; }
  .cat-head-th { font-size: 15px; }
  .cat-head-en { font-size: 11px; }
  .cat-head-more, .btn-view-more { font-size: 12px; padding: 5px 12px; }
  .section-title { font-size: 15px; }
  .section-title i { font-size: 17px; }
}
.nm-dlg-ov[data-nm-alert] { z-index: 9500; }
.nm-dlg-ic.ok { border-color: rgba(34,197,94,.6); color: #22c55e; }
.nm-dlg-ic.bad { border-color: rgba(240,96,96,.65); color: #f06060; }
.nm-toast { position: fixed; top: calc(14px + env(safe-area-inset-top, 0px)); left: 50%; transform: translateX(-50%); z-index: 9600; display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 16px; background: #111; color: #fff; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 14px 40px rgba(0,0,0,.45); font-family: 'Kanit', sans-serif; font-size: .98rem; animation: nmToastIn .25s ease-out; transition: opacity .35s, transform .35s; pointer-events: none; }
.nm-toast.out { opacity: 0; transform: translate(-50%, -8px); }
.nm-toast-i { flex: none; width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(34,197,94,.18); color: #22c55e; font-size: 14px; }
@keyframes nmToastIn { from { opacity: 0; transform: translate(-50%, -10px); } to { opacity: 1; transform: translate(-50%, 0); } }
html.nx-light .nm-toast { background: #fff; color: #111827; border-color: #e5e7eb; box-shadow: 0 14px 40px rgba(17,24,39,.18); }
