/* ============================================================
   san-pham-acrylic.css — Trang Acrylic No Line tiêu chuẩn
   Bổ sung: Cửa hàng theo ỨNG DỤNG + header lọc + CTA cuối trang.
   Chỉ dùng brand tokens có sẵn. Tiền tố .spa-
   KHÔNG sửa common/home/inner.css.
   ============================================================ */

/* ---- Tiêu đề section dùng chung trong trang ---- */
.spa-sec-head {
  max-width: 760px;
  margin: 0 0 36px;
}
.spa-sec-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-red);
  margin-bottom: 14px;
}
.spa-sec-kicker::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--c-red);
}
.spa-sec-title {
  font-family: var(--ff-display);
  font-size: clamp(1.7rem, 4.4vw, 2.6rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--c-ink);
  margin: 0 0 12px;
}
.spa-sec-title em { font-style: normal; color: var(--c-red); }
.spa-sec-lead {
  font-family: var(--ff-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--c-mute);
  margin: 0;
}

/* ============================================================
   1) CỬA HÀNG THEO ỨNG DỤNG — shop by application
   ============================================================ */
.spa-apps { display: grid; gap: 16px; }
@media (min-width: 640px)  { .spa-apps { grid-template-columns: repeat(2, 1fr); gap: 18px; } }
@media (min-width: 980px)  { .spa-apps { grid-template-columns: repeat(3, 1fr); gap: 22px; } }

.spa-app {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 300px;
  padding: 22px;
  border: 1px solid var(--c-line);
  border-radius: 4px;
  overflow: hidden;
  background: var(--c-ink);
  color: #fff;
  text-decoration: none;
  isolation: isolate;
  transition: transform .45s cubic-bezier(.22,.61,.36,1),
              box-shadow .45s ease, border-color .35s ease;
}
.spa-app:hover {
  transform: translateY(-5px);
  border-color: var(--c-ink);
  box-shadow: 0 22px 44px -22px rgba(10,10,10,.55);
}

/* Cho card lớn chiếm 2 cột ở desktop (ứng dụng chủ lực) */
@media (min-width: 980px) {
  .spa-app--wide { grid-column: span 2; min-height: 340px; }
}

.spa-app__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.spa-app__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s cubic-bezier(.22,.61,.36,1);
}
.spa-app:hover .spa-app__media img { transform: scale(1.07); }
.spa-app__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg,
    rgba(10,10,10,.10) 0%,
    rgba(10,10,10,.42) 48%,
    rgba(10,10,10,.86) 100%);
}

.spa-app__num {
  position: absolute;
  top: 18px;
  left: 20px;
  font-family: var(--ff-display);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,.72);
  z-index: 1;
}

.spa-app__body { position: relative; z-index: 1; }
.spa-app__name {
  font-family: var(--ff-display);
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  line-height: 1.12;
  margin: 0 0 6px;
  color: #fff;
}
.spa-app__desc {
  font-family: var(--ff-body);
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(255,255,255,.82);
  margin: 0 0 12px;
  max-width: 42ch;
}
.spa-app__cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--ff-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #fff;
}
.spa-app__cta svg { transition: transform .35s ease; }
.spa-app:hover .spa-app__cta { color: #fff; }
.spa-app:hover .spa-app__cta svg { transform: translateX(4px); }

/* ============================================================
   2) Header bộ lọc bảng màu (đứng trên filter-bar có sẵn)
   ============================================================ */
.spa-filter-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 18px;
}
.spa-filter-head__title {
  font-family: var(--ff-display);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  line-height: 1.1;
  color: var(--c-ink);
  margin: 0;
}
.spa-filter-head__title em { font-style: normal; color: var(--c-red); }
.spa-filter-count {
  font-family: var(--ff-body);
  font-size: 0.85rem;
  color: var(--c-mute);
}
.spa-filter-count strong { color: var(--c-ink); font-weight: 700; }

/* Khoảng cách filter-bar -> grid khi đứng dưới header mới */
.spa-color-shop .filter-bar { margin-top: 4px; }

/* ============================================================
   3) CTA cuối trang — nhận swatch box / hotline / liên hệ
   ============================================================ */
.spa-cta {
  position: relative;
  overflow: hidden;
  background: var(--c-ink);
  color: #fff;
  border-radius: 6px;
  padding: clamp(34px, 6vw, 64px);
}
.spa-cta::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 60%;
  height: 180%;
  background: radial-gradient(circle at center,
    rgba(218,33,40,.22) 0%, rgba(218,33,40,0) 65%);
  pointer-events: none;
}
.spa-cta__inner {
  position: relative;
  display: grid;
  gap: 26px;
  align-items: center;
}
@media (min-width: 900px) {
  .spa-cta__inner { grid-template-columns: 1.3fr auto; gap: 40px; }
}
.spa-cta__kicker {
  display: inline-block;
  font-family: var(--ff-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-red);
  margin-bottom: 14px;
}
.spa-cta__title {
  font-family: var(--ff-display);
  font-size: clamp(1.7rem, 4.4vw, 2.7rem);
  line-height: 1.08;
  margin: 0 0 12px;
  color: #fff;
}
.spa-cta__title em { font-style: normal; color: var(--c-red); }
.spa-cta__text {
  font-family: var(--ff-body);
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255,255,255,.8);
  margin: 0;
  max-width: 54ch;
}
.spa-cta__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
@media (min-width: 480px) and (max-width: 899px) {
  .spa-cta__actions { flex-direction: row; flex-wrap: wrap; }
}
.spa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  font-family: var(--ff-body);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: 4px;
  border: 1px solid transparent;
  transition: transform .3s ease, background .3s ease, color .3s ease, border-color .3s ease;
  white-space: nowrap;
}
.spa-btn svg { flex: 0 0 auto; }
.spa-btn--primary {
  background: var(--c-red);
  color: #fff;
}
.spa-btn--primary:hover { transform: translateY(-2px); background: #ef2730; }
.spa-btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.32);
}
.spa-btn--ghost:hover {
  border-color: #fff;
  transform: translateY(-2px);
}

/* ============================================================
   Responsive nhỏ
   ============================================================ */
@media (max-width: 639px) {
  .spa-app { min-height: 260px; }
  .spa-filter-head { align-items: flex-start; }
}
