/* =============================================
   CUSTOM CSS - Styles that require CSS classes
   (animations, pseudo-elements, complex selectors)
   All utility styles handled by Tailwind CDN
   ============================================= */

/* === GLOBAL RESET === */
html, body {
  min-height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 1 auto;
  min-height: 0;
}

/* img {
  width: 100%;
  height: auto;
  object-fit: cover;
} */
.d-none { display: none !important; }

/* === DISABLED BUTTON STATE === */
.is-disabled {
  opacity: 0.5;
  pointer-events: none;
  cursor: not-allowed;
}

/* === TOAST NOTIFICATIONS === */
#toast-container {
  position: fixed;
  right: 24px;
  top: 24px;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 420px;
  min-width: 340px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  animation: toastSlideIn 0.35s cubic-bezier(0.21, 1.02, 0.73, 1) forwards;
}
.toast.toast--removing {
  animation: toastSlideOut 0.3s cubic-bezier(0.06, 0.71, 0.55, 1) forwards;
}
/* --- Type colors --- */
.toast--success { background: rgba(240, 253, 244, 0.95); border-color: rgba(22, 163, 74, 0.2); }
.toast--success .toast__icon { color: #16a34a; background: rgba(22, 163, 74, 0.1); }
.toast--success .toast__progress-bar { background: #16a34a; }

.toast--info { background: rgba(239, 246, 255, 0.95); border-color: rgba(37, 99, 235, 0.2); }
.toast--info .toast__icon { color: #2563eb; background: rgba(37, 99, 235, 0.1); }
.toast--info .toast__progress-bar { background: #2563eb; }

.toast--warning { background: rgba(254, 252, 232, 0.95); border-color: rgba(234, 179, 8, 0.25); }
.toast--warning .toast__icon { color: #b45309; background: rgba(234, 179, 8, 0.12); }
.toast--warning .toast__progress-bar { background: #eab308; }

.toast--error { background: rgba(254, 242, 242, 0.95); border-color: rgba(239, 68, 68, 0.2); }
.toast--error .toast__icon { color: #dc2626; background: rgba(239, 68, 68, 0.1); }
.toast--error .toast__progress-bar { background: #ef4444; }
/* --- Icon --- */
.toast__icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
/* --- Body --- */
.toast__body { flex: 1; min-width: 0; padding-top: 2px; }
.toast__title { color: #1e293b; font-size: 14px; font-weight: 700; margin: 0; line-height: 1.3; }
.toast__msg { color: #64748b; font-size: 13px; line-height: 1.45; margin-top: 3px; word-break: break-word; }
/* --- Close --- */
.toast__close {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #94a3b8;
  font-size: 13px;
  transition: background 0.15s, color 0.15s;
  margin-top: -2px;
}
.toast__close:hover { background: rgba(0,0,0,0.06); color: #475569; }
/* --- Progress bar --- */
.toast__progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(0,0,0,0.04);
  border-radius: 0 0 14px 14px;
  overflow: hidden;
}
.toast__progress-bar {
  height: 100%;
  width: 100%;
  transform-origin: left;
  border-radius: 0 0 14px 14px;
}
/* --- Animations --- */
@keyframes toastSlideIn {
  0% { opacity: 0; transform: translateX(100%) scale(0.95); }
  100% { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes toastSlideOut {
  0% { opacity: 1; transform: translateX(0) scale(1); }
  100% { opacity: 0; transform: translateX(100%) scale(0.95); }
}
@keyframes toastProgress {
  0% { transform: scaleX(1); }
  100% { transform: scaleX(0); }
}
@media (max-width: 576px) {
  #toast-container { right: 12px; left: 12px; top: 12px; }
  .toast { min-width: 0; max-width: 100%; }
}

/* === HEADER === */
header {
  position: fixed;
  top: 0;
  z-index: 999;
  width: 100%;
  background: linear-gradient(135deg, #ffffff 0%, #f5f7fb 100%);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: box-shadow 0.3s, background-color 0.3s, backdrop-filter 0.3s;
}
header.sticky-header {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.1);
}
header .container { position: relative; }
.header-inner { min-height: 64px; }
@media (min-width: 768px) {
  .header-inner { min-height: 80px; }
}
@media (max-width: 767px) {
  .header-inner { min-height: 56px; }
  header .container { padding-inline: 12px; }
  header img.h-10 { height: 42px; }
}

/* Offset content for fixed header */
body.home-page { padding-top: 64px; }
@media (min-width: 768px) {
  body.home-page { padding-top: 80px; }
}
@media (max-width: 767px) {
  body.home-page { padding-top: 60px; }
}

/* === AVATAR UPLOAD (PROFILE) === */
.avatar-upload { width: 100%; }
.avatar-file-input { display: none !important; }
.avatar-dropzone {
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  padding: 16px;
  background: #f8fafc;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
  position: relative;
}
.avatar-dropzone:hover { border-color: #3b82f6; background: #f0f9ff; }
.avatar-placeholder { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.avatar-preview-wrapper { position: relative; display: inline-flex; justify-content: center; }
.avatar-preview {
  width: 100%; 
  border-radius: 12px; object-fit: cover;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
.avatar-remove {
  position: absolute; top: 6px; right: 6px;
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid #e2e8f0; background: white;
  color: #475569; display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1); cursor: pointer;
}
.avatar-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; border: 2px solid #3b82f6; color: #3b82f6;
  background: white; border-radius: 10px; font-weight: 600; font-size: 13px;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.avatar-btn:hover { background: #f0f9ff; }

/* Profile tab buttons */
.tab-btn.active {
  border-color: #3b82f6;
  color: #3b82f6;
  background: #eff6ff;
}
.nav-link {
  position: relative;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  text-transform: none;
  letter-spacing: 0.01em;
  transition: color 0.2s, transform 0.2s;
  text-decoration: none;
  white-space: nowrap;
}
.nav-link:active {
  color: #1a73e8;
  transform: translateY(-1px);
} 

.nav-link:hover {
  color: #1a73e8;
  transform: translateY(-1px);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 12px;
  right: 12px;
  height: 2px;
  background: #1a73e8;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-link:hover::after {
  transform: scaleX(1);
}
.nav-link.active {
  color: #1a73e8;
}
.nav-link.active::after {
  transform: scaleX(1);
}

.mobile-nav-link:hover {
  color: #d8d8d8;
  background-color: #155dfc;
  transform: translateY(-1px);
}
.mobile-nav-link.active {
  color: #ffffff;
  background-color: #155dfc;
  transform: translateY(-1px);
}
@media (max-width: 1200px) {
  .nav-link { padding: 8px 10px; font-size: 14px; }
}

@media (min-width: 768px) and (max-width: 1100px) {
  .desktop-nav {
    gap: 0;
  }

  .desktop-nav .nav-link {
    font-size: 13px;
    padding: 7px 8px;
    letter-spacing: 0;
  }

  .desktop-nav .nav-link::after {
    left: 8px;
    right: 8px;
  }
}

/* === USER DROPDOWN (HEADER) === */
.user-menu { position: relative; }
.user-dropdown {
  top: calc(100% + 20px);
  right: -0px;
  width: min(200px, 88vw);
  max-width: 320px;
  min-width: 200px;
  border-radius: 14px;
  padding: 6px 0;
  max-height: calc(100vh - 96px);
  overflow-y: auto;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}
.user-dropdown a {
  gap: 10px;
  font-size: 14px;
  padding: 11px 14px;
  line-height: 1.35;
  margin: 2px 6px;
  border-radius: 10px;
  transition: background-color 0.15s, color 0.15s;
}
.user-dropdown i { width: 16px; text-align: center; }
.user-dropdown a:hover {
  background: #f1f5f9;
  color: #0f172a;
}

/* === MOBILE MENU === */
.nav-icon { width: 22px; cursor: pointer; }
.nav-icon div { margin: 5px 0; }
.nav-icon div, .nav-icon:after, .nav-icon:before { content: ""; background: #334155; height: 2px; display: block; border-radius: 2px; transition: 0.3s; }
.nav-icon.active div { opacity: 0; }
.nav-icon.active:before { transform: rotate(45deg) translate(5px, 5px); }
.nav-icon.active:after { transform: rotate(-45deg) translate(5px, -5px); }

.wrap-menu {
  position: fixed; top: 0; left: 100%; width: 100vw; height: 100vh;
  overflow-y: auto; background: rgba(0,0,0,0.4); z-index: 999999; transition: 0.35s ease;
}
.wrap-menu.active { left: 0; }
.wrap-menu .menu {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  min-height: 100vh; width: 75%; max-width: 320px; margin-left: auto;
  padding-top: 84px;
}
@media (min-width: 768px) {
  .wrap-menu { display: none !important; }
}

/* === HOTLINE ANIMATION === */
.coccoc-alo-ph-circle, .coccoc-alo-phone { background-color: #fff0; width: 120px; height: 120px; left: 0; }
.coccoc-alo-ph-circle { top: 0; position: absolute; border-radius: 100%; border: 2px solid rgb(30 30 30 / 0.4); opacity: 0.1; animation: 1.2s ease-in-out infinite coccoc-alo-circle-anim; transition: 0.5s; }
.coccoc-alo-phone { position: fixed; cursor: pointer; z-index: 200000 !important; -webkit-backface-visibility: hidden; transition: visibility 0.5s; bottom: 0; }
.coccoc-alo-phone.coccoc-alo-green .coccoc-alo-ph-circle-fill { background-color: rgb(0 0 0 / 0.5); opacity: 0.75 !important; }
.coccoc-alo-ph-circle-fill { width: 80px; height: 80px; top: 20px; left: 20px; position: absolute; background-color: red; border-radius: 100%; border: 2px solid #fff0; opacity: 0.1; animation: 2.3s ease-in-out infinite coccoc-alo-circle-fill-anim; transition: 0.5s; }
.coccoc-alo-ph-img-circle { width: 40px; height: 40px; top: 40px; left: 40px; position: absolute; background: url(../imgs/phone.webp) center center no-repeat rgb(15 15 15 / 0.1); background-size: 30px; border-radius: 100%; border: 2px solid #fff0; opacity: 0.7; animation: 1s ease-in-out infinite coccoc-alo-circle-img-anim; }
.hotline { background-color: #004ecc; height: 40px; color: #fff; padding: 0 15px 0 50px; border-radius: 40px; margin-top: 40px; margin-left: 40px; font-weight: 700; z-index: 99999; display: inline-table; white-space: nowrap; line-height: 40px; }
.coccoc-alo-phone.coccoc-alo-green .coccoc-alo-ph-img-circle { background-color: #004ecce6; }
.coccoc-alo-phone.coccoc-alo-green .coccoc-alo-ph-circle { border-color: #004ecc; opacity: 0.5; }
.coccoc-alo-show { bottom: 0px; }
@keyframes coccoc-alo-circle-anim { 0% { transform: rotate(0) scale(0.5) skew(1deg); opacity: 0.1; } 30% { transform: rotate(0) scale(0.7) skew(1deg); opacity: 0.5; } 100% { transform: rotate(0) scale(1) skew(1deg); opacity: 0.1; } }
@keyframes coccoc-alo-circle-fill-anim { 0%, 100% { transform: rotate(0) scale(0.7) skew(1deg); opacity: 0.2; } 50% { transform: rotate(0) scale(1) skew(1deg); opacity: 0.2; } }
@keyframes coccoc-alo-circle-img-anim { 0%, 100%, 50% { transform: rotate(0) scale(1) skew(1deg); } 10%, 30% { transform: rotate(-25deg) scale(1) skew(1deg); } 20%, 40% { transform: rotate(25deg) scale(1) skew(1deg); } }
@media (max-width: 767px) { .hotline { display: none; } }

/* === FIXED RIGHT NAVIGATION === */
.fixed-right {
  position: fixed; right: 20px; bottom: 24px; z-index: 1200;
  width: 96px; padding: 12px 8px; border-radius: 20px;
  background: rgba(255,255,255,0.95); border: 1px solid #e7edf7;
  box-shadow: 0 12px 30px rgba(25,48,88,0.18); backdrop-filter: blur(6px);
}
.fixed-right .item { margin-bottom: 10px; }
.fixed-right .item:last-child { margin-bottom: 0; }
.fr-link { display: flex; flex-direction: column; align-items: center; text-decoration: none; }
.fr-icon-wrap { position: relative; display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; margin-bottom: 6px; }
.fr-icon-wrap > img, .fr-icon-wrap > .icon-cart, .fr-avatar-img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.fr-cart-img { object-fit: contain !important; object-position: center; }
.fr-label { max-width: 86px; color: #8e8e8e; font-size: 13px; line-height: 1.2; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.back-to-top-floating { position: fixed; right: 34px; bottom: 520px; z-index: 1202; display: none; }
.back-to-top-floating .fr-label { display: none; }
.back-to-top-floating .fr-icon-wrap { width: 62px; height: 62px; margin-bottom: 0; border-radius: 50%; box-shadow: 0 10px 24px rgba(32,124,214,0.28); }
.back-to-top-floating .fr-icon-wrap > img { width: 62px; height: 62px; border-radius: 50%; }
@media (max-width: 767px) {
  .fixed-right { left: 0; right: 0; bottom: 0; width: 100%; border-radius: 0; padding: 6px 4px 4px; display: flex; align-items: flex-start; justify-content: space-between; box-shadow: 0 -6px 18px rgba(0,0,0,0.18); }
  .fixed-right .item { flex: 1 1 0; max-width: calc(100% / 5); min-width: 0; margin: 0; text-align: center; }
  .fr-icon-wrap { width: 48px; height: 48px; margin-bottom: 4px; }
  .fr-icon-wrap > img, .fr-icon-wrap > .icon-cart, .fr-avatar-img { width: 44px; height: 44px; }
  .fr-label { max-width: 76px; font-size: 11px; }
  .fixed-right .cart-item { order: 1; }
  .fixed-right .phone-item { order: 2; }
  .fixed-right .zalo-item { order: 3; }
  .fixed-right .manage-item { order: 4; }
  .fixed-right .fb-item { order: 5; }
  .fixed-right .user-item { order: 6; }
  .back-to-top-floating { right: 10px; bottom: 84px; }
}

/* === SWIPER BANNER === */
.swip-banner {
  position: relative;
  background: linear-gradient(135deg, #082f49 0%, #0f4c81 45%, #0ea5e9 100%);
  overflow: hidden;
}
.swip-banner .swiper-slide {
  position: relative; height: 100vh; display: flex; flex-wrap: wrap;
  align-items: center; overflow: hidden; justify-content: center;
  background: linear-gradient(135deg, #082f49 0%, #0f4c81 45%, #0ea5e9 100%);
}
.swip-banner .swiper-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.12) 0%, rgba(2, 6, 23, 0.2) 100%);
  pointer-events: none;
}
.swip-banner .swiper-slide > img, .swip-banner .swiper-slide > picture {
  position: absolute; z-index: 2; width: 100%; height: 100%; left: 0; top: 0;
}
.swip-banner .swiper-slide > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.01);
}
.swip-banner .main-inner { position: relative; z-index: 3; color: #000; padding-top: 100px; }
.swip-banner .swip-banner-next,
.swip-banner .swip-banner-prev {
  position: absolute;
  z-index: 4;
  bottom: 18px;
  width: 52px;
  height: 52px;
  margin: 0;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.32);
  backdrop-filter: blur(8px);
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.swip-banner .swip-banner-next:hover,
.swip-banner .swip-banner-prev:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.28);
  border-color: rgba(255,255,255,0.48);
}
.swip-banner .swip-banner-next { right: calc(50% - 68px); }
.swip-banner .swip-banner-prev { left: calc(50% - 68px); }
.swip-banner .swip-banner-next svg,
.swip-banner .swip-banner-prev svg {
  width: 22px;
  height: 22px;
}
.swip-banner .swip-banner-next svg path,
.swip-banner .swip-banner-prev svg path {
  fill: #fff;
}
@media (max-width: 767px) {
  .swip-banner .swiper-slide {
    height: 54vw;
    min-height: 240px;
    max-height: 420px;
  }
  .swip-banner .swip-banner-next,
  .swip-banner .swip-banner-prev {
    width: 42px;
    height: 42px;
    bottom: 12px;
  }
  .swip-banner .swip-banner-next { right: calc(50% - 56px); }
  .swip-banner .swip-banner-prev { left: calc(50% - 56px); }
}
@media (min-width: 992px) {
  .swip-banner .main-inner { padding-top: 0; }
}

/* === HOME PAGE: PRODUCT SECTION === */
.home-section { position: relative; }
.home-section-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  padding: 0.45rem 0.95rem;
  border-radius: 9999px;
  background: rgba(37, 99, 235, 0.09);
  color: #1d4ed8;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.home-section-eyebrow--muted {
  background: rgba(59, 130, 246, 0.09);
  color: #2563eb;
}
.home-section-eyebrow--light {
  background: rgba(255, 255, 255, 0.92);
  color: #475569;
  border: 1px solid #e2e8f0;
}
.home-section-title {
  margin: 0 0 0.9rem;
  font-size: clamp(1.9rem, 3.5vw, 3.2rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #0f172a;
}
.home-section-title--primary {
  max-width: 15ch;
  margin-left: auto;
  margin-right: auto;
}
.home-section-title--compact {
  font-size: clamp(1.8rem, 2.5vw, 2.45rem);
}
.home-section-desc {
  color: #64748b;
  font-size: 1rem;
  line-height: 1.85;
}
.wrap-product {
  background:
    radial-gradient(circle at top right, rgba(125, 211, 252, 0.22), transparent 34%),
    linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
}
.swiper-product-lg { display: block; }

/* Desktop product card layout */
.product-desktop-card {
  display: flex; align-items: stretch;
  background: rgba(255,255,255,0.94); border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.16); overflow: hidden;
  box-shadow: 0 18px 48px rgba(15,23,42,0.08);
  min-height: 400px;
  gap: 0;
}
.product-desktop-info {
  width: 45%; flex-shrink: 0;
  padding: 32px; display: flex; flex-direction: column; justify-content: center;
  overflow: hidden; position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(248,250,252,0.95) 100%);
}
/* Force fade effect on info swiper - hide non-active slides */
.product-desktop-info .p-data {
  width: 100%; position: relative; overflow: hidden;
}
.product-desktop-info .p-data .swiper-wrapper {
  position: relative !important;
  transform: none !important;
}
.product-desktop-info .p-data .swiper-slide {
  position: absolute !important;
  top: 0; left: 0; width: 100% !important;
  opacity: 0 !important;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  pointer-events: none;
}
.product-desktop-info .p-data .swiper-slide-active {
  position: relative !important;
  opacity: 1 !important;
  visibility: visible;
  pointer-events: auto;
}
.product-desktop-image {
  width: 55%; flex-shrink: 0;
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, #dbeafe 0%, #eff6ff 48%, #f8fafc 100%);
  display: flex; align-items: center; justify-content: center;
}

/* Product info text */
.active-product-info { display: flex; flex-direction: column; justify-content: center; }
.active-product-info .size {
  font-size: clamp(1.9rem, 2.8vw, 3rem);
  font-weight: 800;
  margin-bottom: 10px;
  color: #0f172a;
  line-height: 1.06;
  letter-spacing: -0.04em;
}
.active-product-info .pro-props__price {
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  font-weight: 700;
  color: #dc2626;
  margin: 6px 0 0;
}
.active-product-info .text { font-size: 0.96rem; color: #475569; line-height: 1.8; }
.active-product-info .text p {
  margin-bottom: 4px;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.active-product-info hr {
  border: none;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  margin: 18px 0 14px;
}

/* Product image swiper */
.swiper-product { width: 100%; height: 100%; }
.swiper-product .swiper-slide {
  display: flex; align-items: center; justify-content: center;
  padding: 24px; overflow: hidden;
}
.swiper-product .swiper-slide img {
  max-height: 340px; max-width: 100%; width: auto;
  object-fit: contain; display: block;
}
.swiper-product .swiper-button-next,
.swiper-product .swiper-button-prev {
  width: 42px; height: 42px; background: rgba(255,255,255,0.88); border-radius: 50%;
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 8px 24px rgba(15,23,42,0.10);
}
.swiper-product .swiper-button-next::after,
.swiper-product .swiper-button-prev::after { font-size: 14px; color: #334155; }

/* Product action buttons in desktop slider */
.product-actions { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.home-product-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.8rem 1.2rem;
  border-radius: 9999px;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
}
.home-product-btn--primary {
  background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
  color: #fff;
  border: 1px solid rgba(37, 99, 235, 0.85);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.22);
}
.home-product-btn--primary:hover {
  transform: translateY(-1px);
  color: #fff;
  background: linear-gradient(135deg, #1d4ed8 0%, #0284c7 100%);
}
.home-product-btn--secondary {
  background: rgba(239, 246, 255, 0.85);
  color: #1d4ed8;
}
.home-product-btn--secondary:hover {
  background: #dbeafe;
  color: #3366f7;
}

@media (max-width: 991px) {
  .product-desktop-card {
    flex-direction: column;
    min-height: 0;
  }
  .product-desktop-info,
  .product-desktop-image {
    width: 100%;
  }
  .product-desktop-info {
    padding: 18px 16px;
  }
  .product-desktop-image {
    min-height: 240px;
  }
  .swiper-product .swiper-slide {
    padding: 12px;
  }
  .swiper-product .swiper-slide img {
    max-height: 220px;
  }
  .active-product-info .size,
  .active-product-info .pro-props__price {
    font-size: 18px;
  }
  .product-actions a,
  .product-actions button {
    flex: 1 1 100%;
  }
}

/* === HOME PAGE: CAMPAIGN SECTION === */
.campaign-section {
  background: linear-gradient(180deg, #ffffff 0%, #f2f8ff 100%);
  position: relative;
}
.campaign-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(148,163,184,0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(191,219,254,0.16) 0%, transparent 50%);
  pointer-events: none;
}

/* Campaign cards */
.campaign-cards-list { display: flex; flex-direction: column; gap: 24px; }
.campaign-card {
  display: flex; flex-direction: column;
  background: rgba(255,255,255,0.92);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(226,232,240,0.9);
  box-shadow: 0 10px 30px rgba(15,23,42,0.06);
  transition: box-shadow 0.3s, transform 0.3s, border-color 0.3s;
}
.campaign-card:hover {
  box-shadow: 0 18px 44px rgba(15,23,42,0.08);
  transform: translateY(-2px);
  border-color: rgba(191,219,254,0.95);
}
.campaign-card-img { overflow: hidden; }
.campaign-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s; }
.campaign-card:hover .campaign-card-img img { transform: scale(1.03); }
.campaign-card-body { padding: 24px; display: flex; flex-direction: column; justify-content: center; }
.campaign-card-number {
  font-size: 32px; font-weight: 800; line-height: 1;
  background: linear-gradient(135deg, #60a5fa, #0ea5e9);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; margin-bottom: 12px; opacity: 0.7;
}
.campaign-card-title { font-size: 22px; font-weight: 700; color: #0f172a; margin-bottom: 12px; line-height: 1.25; letter-spacing: -0.02em; }
.campaign-btn {
  margin-top: calc(var(--spacing) * 4);
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 20px; border-radius: 9999px; font-weight: 700; font-size: 14px;
  background: #eff6ff; color: #1d4ed8;
  border: 1px solid #bfdbfe;
  text-decoration: none; transition: all 0.3s; width: fit-content;
}
.campaign-btn:hover { background: #dbeafe; box-shadow: none; color: #1d4ed8; text-decoration: none; }

@media (min-width: 768px) {
  .campaign-card { flex-direction: row; }
  .campaign-card-img { width: 42%; flex-shrink: 0; min-height: 320px; }
  .campaign-card-body { width: 58%; padding: 32px 36px; }
  .campaign-card-reverse { flex-direction: row-reverse; }
  .campaign-card-title { font-size: 24px; }
}

.home-mineral-panel {
  border-radius: 28px;
  border: 1px solid rgba(226,232,240,0.9);
  box-shadow: 0 18px 48px rgba(15,23,42,0.08);
  background: #fff;
}
.home-mineral-panel__head {
  background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
}
.home-panel-kicker {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.85rem;
  padding: 0.38rem 0.8rem;
  border-radius: 9999px;
  background: rgba(255,255,255,0.16);
  color: rgba(255,255,255,0.82);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* Mineral table */
.mineral-table { width: 100%; border-collapse: collapse; }
.mineral-table thead th {
  background: #f1f5f9; color: #475569; font-weight: 600; font-size: 13px; text-transform: uppercase;
  letter-spacing: 0.05em; padding: 12px 16px; text-align: left; border-bottom: 2px solid #e2e8f0;
}
.mineral-table tbody td { padding: 10px 16px; border-bottom: 1px solid #f1f5f9; color: #334155; font-size: 14px; }
.mineral-table tbody tr:hover { background: #f8fafc; }
.mineral-table tbody tr:last-child td { border-bottom: none; }
.mineral-symbol {
  display: inline-block; padding: 2px 8px; background: #eff6ff; color: #3b82f6;
  border-radius: 6px; font-weight: 600; font-size: 13px; font-family: monospace;
}

/* Benefit cards */
.benefit-card {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px; border-radius: 16px; border: 1px solid #e2e8f0;
  background: #f8fafc; transition: all 0.2s;
}
.benefit-card:hover { border-color: #cbd5e1; background: #fff; }
.benefit-icon {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 14px;
}

/* === HOME PAGE: GRID ITEMS (mobile products) === */
.grid-item-inner {
  height: 100%; display: flex; flex-direction: column;
  position: relative; background: #fff; border-radius: 20px;
  border: 1px solid rgba(226,232,240,0.9); overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.grid-item-inner:hover { box-shadow: 0 14px 28px rgba(15,23,42,0.08); transform: translateY(-2px); border-color: #cbd5e1; }
.grid-item-inner .grid-item-top { position: relative; padding: 16px; background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%); display: flex; align-items: center; justify-content: center; }
.grid-item-inner .grid-item-top img { border-radius: 8px; max-height: 160px; width: auto; object-fit: contain; }
.grid-item-inner .grid-item-bottom { padding: 12px 14px 16px; text-align: center; flex: 1; display: flex; flex-direction: column; }
.grid-item-inner .grid-item-bottom .price { color: #ef4444; font-weight: 700; margin-bottom: 10px; display: block; font-size: 15px; }
.grid-item-inner .grid-item-bottom .product-name-out { flex: 1; }
.grid-item-inner .grid-item-bottom .product-name-out a { color: #1e293b; font-weight: 600; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; margin-bottom: 8px; font-size: 13px; line-height: 1.4; text-decoration: none; }

.home-section--posts {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}
.home-post-card {
  display: block;
  background: rgba(255,255,255,0.92);
  border-radius: 24px;
  border: 1px solid rgba(226,232,240,0.88);
  box-shadow: 0 8px 28px rgba(15,23,42,0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.home-post-card:hover {
  transform: translateY(-3px);
  border-color: #cbd5e1;
  box-shadow: 0 16px 40px rgba(15,23,42,0.08);
}
.home-post-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.55rem;
  border-radius: 9999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.75rem;
  font-weight: 600;
}

/* === LINEAR CONTENT (legacy) === */
.linear-content { background: linear-gradient(0deg, #5e9fd2, #d2f4ff); }
.linear-content .post-content { background-color: #fff; padding: 15px; }

/* === POST CONTENT TYPOGRAPHY === */
.post-content { text-align: justify; margin-bottom: 20px; width: 100%; overflow: auto; }
.post-content h1 { font-size: 24px; font-weight: 700; margin-bottom: 15px; }
.post-content h2 { font-size: 20px; font-weight: 600; }
.post-content h3 { font-size: 17px; font-weight: 600; }
.post-content table { width: 100%; border-collapse: collapse; margin: 15px 0; }
.post-content table td { padding: 8px 12px; border-bottom: 1px solid #eee; }
.post-content ul { padding-left: 20px; margin-bottom: 15px; }
.post-content ul li { margin-bottom: 5px; }

/* === BUTTONS === */
.btn-style1, .btn-style1:hover { background-color: #5aabff; border-color: #5aabff; color: #fff; }
.btn-style1 { padding: 10px; display: block; text-align: center; border-radius: 4px; text-decoration: none; font-weight: 600; margin-bottom: 10px; }
.btn-style2 { border: 1px solid #5aabff; color: #fff; padding: 10px 20px; background: #5aabff; display: inline-block; text-decoration: none; border-radius: 4px; font-weight: 600; }
.btn-style2:hover { background: #5aabff; border-color: #5aabff; color: #fff; text-decoration: none; }
.btn-style3 { background-color: transparent; border: 2px solid #5aabff; color: #007bff; padding: 10px; display: block; text-align: center; border-radius: 4px; text-decoration: none; font-weight: 600; cursor: pointer; }
.btn-style3:hover { background: #5aabff; color: #fff; }
.btn-block { display: block; width: 100%; }

/* === DETAIL PAGE === */
.pro-detail-img { padding: 20px; display: flex; align-items: center; justify-content: center; }
.product-name { font-size: 24px; font-weight: 700; margin-bottom: 15px; }
.pro-props__price { font-size: 20px; font-weight: 700; color: #ef4444; margin: 10px 0; }
.pro-desc { margin: 15px 0; }
.nutri-list ul { list-style: none; padding: 0; }
.nutri-list ul li { display: flex; justify-content: space-between; padding: 8px 12px; border-bottom: 1px solid #e2e8f0; font-size: 14px; }
.nutri-list ul.light-blue { background: #f0f9ff; border-radius: 10px; overflow: hidden; }
.nutri-list ul.light-blue li span { font-weight: 600; color: #2563eb; }
.btn-primary, .btn.btn-primary { color: #fff; background: #5aabff; border-color: #5aabff; padding: 12px 25px; border-radius: 4px; font-weight: 600; display: inline-block; text-decoration: none; cursor: pointer; border: none; }
.btn-primary:hover { color: #fff; background: #00458e; border-color: #00458e; }
.btn-primary span { display: block; font-size: 12px; font-weight: 400; margin-top: 4px; }
.details-page table { width: 100%; border-collapse: collapse; }

/* === ADMIN CARDS (posts/products reuse) === */
.ap-product-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  overflow: hidden;
  min-height: 220px;
}
.ap-product-image-container {
  position: relative;
  background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
  padding: 0.75rem;
  min-height: 160px;
}
.ap-product-image {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 0.75rem;
}
.ap-product-body {
  padding: 1rem;
  display: grid;
  gap: 0.35rem;
  overflow: hidden;
}
.ap-product-name {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1f2937;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ap-product-price {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #ef4444;
  overflow-wrap: anywhere;
}
.ap-product-type {
  display: inline-block;
  padding: 0.35rem 0.55rem;
  background: #f1f5f9;
  color: #475569;
  border-radius: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.details-page table td { padding: 8px 12px; border-bottom: 1px solid #eee; }
.policy-product { background: #f8fafc; border-radius: 12px; padding: 15px; }

/* === LAYOUT HELPERS === */
.nxPaddingPage { margin: 100px 0; }
.nxPadding { padding: 60px 0; }
.nxMargin { margin: 60px 0; }
.page-title { display: block; text-transform: uppercase; margin: 5px 0; font-weight: 700; font-size: 30px; line-height: 1.5em; }

@media (max-width: 991px) {
  .nxMargin { margin: 30px 0; }
  .nxPadding { padding: 30px 0; }
}

/* === FOOTER === */
.logo-footer { width: 100px; }

/* === CUSTOM SELECT (Detail Order) === */
.do-badge { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.25rem 0.75rem; border-radius: 9999px; font-size: 0.75rem; font-weight: 600; }
.do-badge-waiting { background: #fef3c7; color: #b45309; }
.do-badge-processing { background: #dbeafe; color: #1d4ed8; }
.do-badge-shipping { background: #d1fae5; color: #047857; }
.do-badge-completed { background: #dcfce7; color: #15803d; }
.do-badge-cancelled { background: #fee2e2; color: #b91c1c; }

.do-custom-select { flex: 1; position: relative; min-width: 0; }
.do-custom-select-trigger { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.8rem 1rem; border: 2px solid #e2e8f0; border-radius: 0.75rem; background: white; cursor: pointer; transition: all 0.3s ease; min-height: 48px; }
.do-custom-select-trigger:hover { border-color: #94a3b8; }
.do-custom-select.open .do-custom-select-trigger { border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,0.1); border-radius: 0.75rem 0.75rem 0 0; }
.do-custom-select-value { display: flex; align-items: center; gap: 0.5rem; font-size: 0.95rem; font-weight: 500; color: #1e293b; }
.do-custom-select-value i { font-size: 0.8rem; }
.do-custom-select-arrow { color: #94a3b8; font-size: 0.75rem; transition: transform 0.3s ease; flex-shrink: 0; }
.do-custom-select.open .do-custom-select-arrow { transform: rotate(180deg); }
.do-custom-select-options { display: none; position: absolute; top: 100%; left: 0; right: 0; background: white; border: 2px solid #3b82f6; border-top: 1px solid #e2e8f0; border-radius: 0 0 0.75rem 0.75rem; z-index: 100; box-shadow: 0 8px 24px rgba(0,0,0,0.12); overflow: hidden; }
.do-custom-select.open .do-custom-select-options { display: block; }
.do-custom-option { display: flex; align-items: center; gap: 0.625rem; padding: 0.75rem 1rem; cursor: pointer; font-size: 0.9rem; font-weight: 500; color: #334155; transition: all 0.15s ease; border-bottom: 1px solid #f1f5f9; }
.do-custom-option:last-child { border-bottom: none; }
.do-custom-option:hover { background: #f0f9ff; }
.do-custom-option.selected { background: #eff6ff; color: #1e40af; font-weight: 600; }
.do-custom-select.is-disabled .do-custom-select-trigger {
  border-color: #e2e8f0;
  background: #f1f5f9;
  color: #94a3b8;
  cursor: not-allowed;
}
.do-custom-select.is-disabled .do-custom-select-arrow { color: #cbd5e1; }
.payment-bank-select .do-custom-select-trigger {
  min-height: 40px;
  padding: 0.5rem 0.75rem;
  border-width: 1px;
  border-color: #cbd5e1;
}
.payment-bank-select.open .do-custom-select-trigger {
  border-width: 1px;
}
.payment-bank-select .do-custom-select-value {
  font-size: 0.875rem;
  font-weight: 400;
}
.payment-bank-select .do-custom-select-options {
  max-height: 260px;
  overflow-y: auto;
  overflow-x: hidden;
}
.do-opt-icon { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; flex-shrink: 0; }
.do-opt-icon.opt-waiting { background: #fef3c7; color: #f59e0b; }
.do-opt-icon.opt-processing { background: #dbeafe; color: #3b82f6; }
.do-opt-icon.opt-shipping { background: #d1fae5; color: #10b981; }
.do-opt-icon.opt-completed { background: #dcfce7; color: #16a34a; }
.do-opt-icon.opt-cancelled { background: #fee2e2; color: #dc2626; }

/* === AUTH PAGE === */
body.auth-page {
  background: #f7f8fe;
  overflow-x: hidden;
  padding-top: 64px;
}
body.auth-page main {
  min-height: 0;
  display: flex;
  flex: 1 0 auto;
}
body.auth-page main > div {
  width: 100%;
  display: flex;
  flex: 1 0 auto;
}
.auth-shell {
  flex: 1 0 auto;
  width: 100%;
  min-height: 100%;
  display: flex;
  align-items: center;
}
.auth-shell__grid {
  width: 100%;
}
.auth-shell__copy {
  position: relative;
}
.auth-shell__copy::after {
  content: "";
  position: absolute;
  right: 8%;
  top: 1.5rem;
  width: 11rem;
  height: 11rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.14) 0%, rgba(59, 130, 246, 0) 72%);
  filter: blur(6px);
  z-index: -1;
}
.auth-card {
  position: relative;
  z-index: 1;
  box-shadow: 0 28px 78px rgba(121, 141, 184, 0.18);
}
.auth-panel:not([hidden]) {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.auth-panel:not([hidden]) .auth-form {
  flex: 1;
}
.auth-card::before {
  content: "";
  position: absolute;
  inset: auto 12% -28px;
  height: 2.75rem;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.14);
  filter: blur(24px);
  z-index: -1;
}
.auth-field.is-invalid .auth-field__control {
  border-color: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.08);
}
.auth-password-toggle__icon--hide {
  display: none;
}
.auth-password-toggle.is-visible .auth-password-toggle__icon--show {
  display: none;
}
.auth-password-toggle.is-visible .auth-password-toggle__icon--hide {
  display: block;
}

@media (max-width: 767px) {
  body.auth-page {
    padding-top: 60px;
  }
  .auth-shell {
    align-items: flex-start;
  }
  .auth-shell__copy::after,
  .auth-card::before {
    display: none;
  }
}

@media (min-width: 768px) {
  body.auth-page {
    padding-top: 80px;
  }
}

/* === FORM VALIDATION ANIMATION === */
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
.form-error { color: #e74c3c; font-size: 13px; margin-top: 4px; display: block; animation: slideDown 0.3s ease-out; }
.form-error.hidden { display: none; }

/* === SPINNER === */
@keyframes spin { to { transform: rotate(360deg); } }

/* === ORDER SUCCESS BOUNCE === */
@keyframes osBounce { 0% { transform: scale(0); opacity: 0; } 60% { transform: scale(1.2); } 100% { transform: scale(1); opacity: 1; } }
