/* ==========================================================
   LOT 269 — TYPOGRAPHIE KHMER CANONIQUE GLOBALE
   ----------------------------------------------------------
   css/style.css est la feuille réellement chargée globalement par
   frontend-assets.php. Le Lot 268 avait placé la variable surtout dans
   le style.css racine du thème (métadonnées WordPress), qui n'est pas la
   feuille `main-style` du front : le +2 px restait donc à 0 sur le site.

   FR / EN : +0 px
   KM : +2 px, que la langue soit exposée en km, km-KH, data-nt-ad-lang,
   data-active-lang ou via un fragment data-nt-script.
========================================================== */
:root{--nt-km-font-boost:0px;}
html[lang^="km"],
html[data-nt-language-switching^="km"],
[lang^="km"],
[data-nt-script="km"],
[data-nt-ad-lang="km"],
[data-active-lang="km"],
[data-nt-language="km"]{--nt-km-font-boost:2px;}

html[lang^="km"] body,
[lang^="km"],
[data-nt-script="km"],
[data-nt-ad-lang="km"]{
  font-family:"Noto Sans Khmer",system-ui,sans-serif;
  font-synthesis:none;
}

/* Les pictogrammes / polices d'icônes ne reçoivent jamais le bonus. */
html[lang^="km"] .dashicons,
html[lang^="km"] .home-icon,
html[lang^="km"] .search-stars,
html[lang^="km"] .single-stars,
html[lang^="km"] .nt-category-browser-icon,
html[lang^="km"] .nt-client-bottom-nav-icon-h145{--nt-km-font-boost:0px;}


/* Lot 15 — même police pour tout fragment en écriture khmère, quelle que soit
   la langue générale de la page. */
[data-nt-script="km"] {
  font-family: "Noto Sans Khmer", sans-serif !important;
  font-synthesis: none;
}

/* ====================================
   SEVACAM UI SYSTEM
   VERSION: V3
   DATE: 2026-04-05
==================================== */

/* ======================================================
   RESET ASTRA
====================================================== */
.ast-container,
.ast-container-fluid,
.ast-row,
.ast-builder-grid-row {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.site-content > .ast-container {
  max-width: 100% !important;
  padding: 0 !important;
}

/* ======================================================
   BASE
====================================================== */
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Noto Sans Khmer", sans-serif;
  background: #f7f7f7;
  color: #111;
  -webkit-font-smoothing: antialiased;
}

@media (max-width: 768px) {
  body {
    padding-bottom: 88px;
  }
}

/* ======================================================
   APP LAYOUT
====================================================== */
.mobile-app {
  margin: 0;
  padding: 0;
}

.mobile-app .ast-container,
.mobile-app .entry-content {
  padding: 0;
  max-width: 100%;
}

.desktop-site {
  display: none;
}

@media (min-width: 1024px) {
  .mobile-app { display: none !important; }

  .desktop-site {
    display: block;
    max-width: 1100px;
    margin: auto;
    padding: 40px 20px;
  }
}

/* ======================================================
   HERO
====================================================== */
.seva-hero-simple {
  background: rgba(255,255,255,0.95);
  padding: 10px 0 16px;
  position: sticky;
  top: 0;
  z-index: 999;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #eee;
}

/* ======================================================
   CATEGORIES
====================================================== */
.categories-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
}

.categories-scroll::-webkit-scrollbar { display: none; }

.cat {
  min-width: 80px;
  text-align: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInUp 0.4s ease forwards;
}

.cat span {
  font-size: calc(14px + var(--nt-km-font-boost, 0px));
  color: #555;
}

.cat.active span {
  color: #ff3b5c;
  font-weight: 700;
}

@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ======================================================
   SEARCH
====================================================== */
.search-bar { padding: 0 16px; }

.search-wrapper input {
  width: 100%;
  padding: 14px 16px 14px 44px;
  border-radius: 999px;
  border: none;
  background: #f5f5f5;
}

/* ======================================================
   GRID
====================================================== */
.seva-grid {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 0 16px;
}

.seva-grid::-webkit-scrollbar { display: none; }

/* ======================================================
   CARD AVANCÉE
====================================================== */
.card {
  flex: 0 0 45%;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 22px rgba(0,0,0,0.08);
  transition: all 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
}

.card:active {
  transform: scale(0.97);
}

/* IMAGE */
.card-image-wrap {
  position: relative;
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

/* OVERLAY */
.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
}

/* BADGE OFFRE */
.badge-pro\6d o {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #ff385c;
  color: #fff;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: calc(12px + var(--nt-km-font-boost, 0px));
}

/* STATUS */
.status-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  font-size: calc(12px + var(--nt-km-font-boost, 0px));
  padding: 4px 10px;
  border-radius: 999px;
  color: #fff;
}

.status-badge.open { background: #00c853; }
.status-badge.closed { background: rgba(0,0,0,0.7); }

/* CONTENT */
.card-content {
  padding: 10px;
}

.card-content h3 {
  font-size: calc(14px + var(--nt-km-font-boost, 0px));
  margin: 0;
}

/* META */
.card-meta {
  display: flex;
  justify-content: space-between;
  font-size: calc(12px + var(--nt-km-font-boost, 0px));
  color: #666;
  margin-top: 6px;
}

/* STATS */
.card-stats {
  display: flex;
  justify-content: space-between;
  font-size: calc(11px + var(--nt-km-font-boost, 0px));
  margin-top: 8px;
  color: #888;
}

/* ======================================================
   CTA
====================================================== */
.seva-cta-pro { padding: 20px; }

.cta-btn {
  background: #ff385c;
  color: #fff;
  padding: 12px 22px;
  border-radius: 30px;
}

/* ======================================================
   SINGLE PAGE
====================================================== */
.listing-hero-slider {
  height: 320px;
  overflow: hidden;
}

/* SLIDER */
.slider-track {
  display: flex;
  transition: transform 0.6s ease;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* COUNTER */
.slider-counter {
  position: absolute;
  bottom: 70px;
  right: 12px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 6px 10px;
  border-radius: 12px;
}

/* ======================================================
   STATUS LINE
====================================================== */
.open-status {
  padding: 4px 12px;
  border-radius: 999px;
  color: #fff;
  font-size: calc(13px + var(--nt-km-font-boost, 0px));
}

.open-status.open { background: #00c853; }
.open-status.closed { background: #ff5252; }

/* ======================================================
   ACCORDION
====================================================== */
.js-offer .pro\6d o-content {
  max-height: 0;
  opacity: 0;
  transition: all 0.4s ease;
}

.js-offer.open .pro\6d o-content {
  max-height: 500px;
  opacity: 1;
}

/* ======================================================
   HOURS
====================================================== */
.hours-content {
  max-height: 0;
  opacity: 0;
  transition: 0.3s;
}

.js-hours.open .hours-content {
  max-height: 400px;
  opacity: 1;
}

/* ======================================================
   DASHBOARD
====================================================== */
.seva-dashboard {
  max-width: 800px;
  margin: auto;
  padding: 20px;
}

/* ======================================================
   SEVACAM / NOVTINIS — MASQUER LA BANDE ADMIN WORDPRESS
   Front uniquement : garde wp-admin normal.
====================================================== */

html {
  margin-top: 0 !important;
}

body.admin-bar {
  padding-top: 0 !important;
}

body.admin-bar #wpadminbar {
  display: none !important;
}


/* ======================================================
   STABLE 1.1.1 — Navigation rapide commune
   Utilisée sur compte, dashboard commerçant et abonnement.
====================================================== */
.nt-quick-app-nav {
  width: 100%;
  margin: 12px 0 16px;
  padding: 12px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(226, 232, 240, 0.92);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
  box-sizing: border-box;
}

.nt-quick-app-nav__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  padding: 0 2px;
}

.nt-quick-app-nav__head strong {
  color: #0f172a;
  font-size: calc(15px + var(--nt-km-font-boost, 0px));
  line-height: 1.1;
  font-weight: 950;
}

.nt-quick-app-nav__head span {
  color: #64748b;
  font-size: calc(11px + var(--nt-km-font-boost, 0px));
  line-height: 1.1;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nt-quick-app-nav__rail {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 1px 2px 4px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.nt-quick-app-nav__rail::-webkit-scrollbar {
  display: none;
}

.nt-quick-app-nav__item {
  flex: 0 0 auto;
  min-width: 86px;
  min-height: 62px;
  padding: 8px 10px;
  border-radius: 18px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  text-decoration: none !important;
  color: #475569 !important;
  background: #f8fafc;
  border: 1px solid rgba(226, 232, 240, 0.95);
  font-size: calc(12px + var(--nt-km-font-boost, 0px));
  font-weight: 900;
  scroll-snap-align: start;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

.nt-quick-app-nav__item:active {
  transform: scale(0.97);
}

.nt-quick-app-nav__item.is-active {
  color: #ffffff !important;
  background: linear-gradient(135deg, #ff7a00, #ff2d55);
  border-color: transparent;
  box-shadow: 0 10px 22px rgba(255, 45, 85, 0.22);
}

.nt-quick-app-nav__icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.06);
  color: inherit;
  font-size: calc(17px + var(--nt-km-font-boost, 0px));
  line-height: 1;
  font-weight: 950;
}

.nt-quick-app-nav__item.is-active .nt-quick-app-nav__icon {
  background: rgba(255, 255, 255, 0.22);
}

.nt-quick-app-nav__label {
  max-width: 82px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.merchant-header .nt-quick-app-nav,
.seva-account-shell > .nt-quick-app-nav,
.seva-subscription-shell > .nt-quick-app-nav {
  margin-top: 14px;
}

.merchant-header .nt-quick-app-nav {
  background: rgba(255, 255, 255, 0.96);
}

.seva-account-page .nt-quick-app-nav,
.seva-subscription-page .nt-quick-app-nav {
  background: rgba(255, 255, 255, 0.94);
}

@media (min-width: 768px) {
  .nt-quick-app-nav__rail {
    flex-wrap: wrap;
    overflow: visible;
  }
}

@media (max-width: 420px) {
  .nt-quick-app-nav {
    border-radius: 22px;
    padding: 11px;
  }

  .nt-quick-app-nav__item {
    min-width: 78px;
    min-height: 58px;
    border-radius: 16px;
    font-size: calc(11px + var(--nt-km-font-boost, 0px));
  }

  .nt-quick-app-nav__head strong {
    font-size: calc(14px + var(--nt-km-font-boost, 0px));
  }
}


/* Novtinis — mêmes avantages sur les photos Accueil / Recherche. */
.search-card-photo,
.nt-home-near-card-photo,
.nt-home-discovery-media,

.search-card .nt-home-photo-discount,
.search-card .nt-listing-photo-loyalty {
  position: absolute;
  z-index: 6;
  display: inline-flex;
  border-radius: 10px;
  box-shadow: 0 5px 14px rgba(15,23,42,.20);
}

.search-card .nt-home-photo-discount {
  top: 9px; right: 9px;
  flex-direction: column; align-items: flex-start; gap: 1px;
  min-height: 27px; max-width: calc(100% - 18px);
  padding: 5px 8px 4px;
  border: 1px solid rgba(255,255,255,.72);
  background: rgba(255,79,55,.96); color: #fff; line-height: 1;
}
.search-card .nt-home-photo-discount strong { color: inherit; font-size: calc(14px + var(--nt-km-font-boost, 0px)); font-weight: 950; line-height: 1; }
.search-card .nt-home-photo-discount small { color: rgba(255,255,255,.96); font-size: calc(9.5px + var(--nt-km-font-boost, 0px)); font-weight: 850; white-space: nowrap; }

.nt-listing-photo-loyalty {
  left: 9px; bottom: 9px;
  min-height: 24px; align-items: center;
  padding: 4px 8px;
  border: 1px solid rgba(255,255,255,.72);
  background: rgba(37,99,235,.96); color: #fff;
  font-size: calc(10px + var(--nt-km-font-boost, 0px)); font-weight: 900; line-height: 1;
}

/* Les critères internes de visibilité ne sont pas des badges client. */
.search-featured-corner-h52d,
.search-card .search-featured-corner-h52d,
.search-card .search-offer-corner-h60,
.search-card .search-offer-corner-h201,
.search-card .home-offer-stack-icon { display: none !important; }

.home-section-subtitle { display: none !important; }

/* LOT 7 — garde-fou desktop de la navigation basse mobile.
 * Le fichier complet nt-client-bottom-nav.css n'est actif que sous 900 px. */
@media (min-width: 900px) {
  nav.nt-client-bottom-nav-h145,
  nav.app-bottom-nav.nt-client-bottom-nav-h145 {
    display: none !important;
  }
}


/* =====================================================================
   LOT 246 — BADGES KHMER FACTORISÉS SANS FLASH
   Structure fixe serveur pour tous les badges numériques publics :
   signe / chiffres / unité séparés, afin de contrôler exactement :
   - l'espace après le signe ;
   - l'espace entre les chiffres ;
   - l'espace avant % ;
   - la hiérarchie visuelle chiffres > % en Khmer.
   ===================================================================== */
.nt-unified-discount-badge{
  display:inline-flex;
  align-items:flex-end;
  justify-content:center;
  gap:0;
  white-space:nowrap;
  line-height:1;
  letter-spacing:normal;
  font-kerning:normal;
  font-feature-settings:"kern" 0;
}

.nt-unified-discount-badge__sign,
.nt-unified-discount-badge__value,
.nt-unified-discount-badge__unit,
.nt-unified-discount-badge__text{
  display:inline-flex;
  align-items:flex-end;
  justify-content:center;
  line-height:1;
}

.nt-unified-discount-badge__sign{
  margin-right:var(--nt-badge-space-after-sign,0);
}

.nt-unified-discount-badge__digit{
  display:inline-block;
  line-height:1;
}

.nt-unified-discount-badge__digit + .nt-unified-discount-badge__digit{
  margin-left:var(--nt-badge-digit-gap,0);
}

.nt-unified-discount-badge__unit{
  margin-left:var(--nt-badge-space-before-unit,0);
}

.nt-unified-discount-badge--km,
.nt-unified-discount-badge--km *,
html[lang^="km"] .nt-unified-discount-badge[data-nt-badge-server-localized="1"],
html[lang^="km"] .nt-unified-discount-badge[data-nt-badge-server-localized="1"] *{
  letter-spacing:0 !important;
  text-transform:none !important;
  font-kerning:none !important;
  font-feature-settings:"kern" 0 !important;
}

.nt-home-photo-discount__main{
  display:inline-flex;
  align-items:flex-end;
  gap:0;
  white-space:nowrap;
  line-height:1;
}

.nt-home-photo-discount__main .nt-unified-discount-badge{
  --nt-badge-space-after-sign:0;
  --nt-badge-digit-gap:0;
  --nt-badge-space-before-unit:0;
}

.nt-home-photo-discount__main .nt-unified-discount-badge--latin{
  --nt-badge-space-before-unit:2px;
}

.nt-home-photo-discount__main .nt-unified-discount-badge__sign,
.nt-home-photo-discount__main .nt-unified-discount-badge__value,
.nt-home-photo-discount__main .nt-unified-discount-badge__text{
  font-size:calc(1em + var(--nt-km-font-boost, 0px));
  font-weight:inherit;
}

.nt-home-photo-discount__main .nt-unified-discount-badge__unit{
  font-size:calc(.74em + var(--nt-km-font-boost, 0px));
  font-weight:inherit;
  transform:translateY(-.02em);
}

.nt-home-photo-discount[data-nt-badge-lang="km"] .nt-home-photo-discount__main .nt-unified-discount-badge{
  --nt-badge-space-after-sign:1px;
  --nt-badge-digit-gap:-1px;
  --nt-badge-space-before-unit:1px;
}

.nt-home-photo-discount[data-nt-badge-lang="km"] .nt-home-photo-discount__main .nt-unified-discount-badge__value{
  font-size:calc(1.15em + var(--nt-km-font-boost, 0px));
}

.nt-home-photo-discount[data-nt-badge-lang="km"] .nt-home-photo-discount__main .nt-unified-discount-badge__unit{
  font-size:calc(.62em + var(--nt-km-font-boost, 0px));
  transform:translateY(-.08em);
}

/* Le badge promotionnel Hero possède volontairement sa géométrie propre
   dans local-ad-canonical.css. Le factoring commun conserve le HTML et la
   localisation serveur, mais aucun style de badge commerce ne doit le déplacer. */
