/* =========================================================
   NKTOYS Theme — landing UI matching brand mockup
   ========================================================= */

:root {
  --nk-navy: #0b2f7a;
  --nk-navy-deep: #071f52;
  --nk-navy-mid: #1340a0;
  --nk-yellow: #f5c518;
  --nk-yellow-soft: #ffe566;
  --nk-red: #e53935;
  --nk-sky: #e8f3fc;
  --nk-sky-2: #f3f8fd;
  --nk-text: #1a2b4a;
  --nk-muted: #6b7a90;
  --nk-border: #e6ecf4;
  --nk-radius: 16px;
  --nk-radius-sm: 12px;
  --nk-radius-pill: 999px;
  --nk-shadow: 0 10px 28px rgba(11, 47, 122, 0.08);
  --nk-font: "Nunito", "Segoe UI", sans-serif;
  --nk-display: "Fredoka", "Nunito", sans-serif;
}

body {
  font-family: var(--nk-font);
  color: var(--nk-text);
  background: #fff;
}

/* Hide legacy topbar */
#topbar {
  display: none !important;
}

/* ---------- Header ---------- */
#header.nk-header {
  height: auto;
  min-height: 78px;
  padding: 12px 0;
  background: #fff;
  box-shadow: 0 4px 18px rgba(11, 47, 122, 0.06);
  border-bottom: 1px solid var(--nk-border);
}

#header.nk-header > .conwidth {
  gap: 18px;
  align-items: center;
}

#header.nk-header #logo img {
  height: 56px;
  max-height: 56px;
  max-width: 180px;
}

.nk-header .header-nav-wrap {
  gap: 14px;
}

.nk-header .nav-menu {
  gap: 2px;
  flex-wrap: nowrap;
}

.nk-header .nav-menu > li {
  margin-left: 0;
}

.nk-header .nav-menu > li > a {
  font-family: var(--nk-font);
  font-weight: 700;
  font-size: 14px;
  color: var(--nk-navy);
  padding: 8px 10px;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nk-header .nav-menu > li > a:hover,
.nk-header .nav-menu > li.menu-active > a,
.nk-header .nav-menu > li:hover > a {
  color: var(--nk-navy-mid);
  background: var(--nk-sky);
}

.nk-header .nav-menu > li.menu-active > a {
  position: relative;
}

.nk-header .nav-menu > li.menu-active > a::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 2px;
  height: 3px;
  border-radius: 3px;
  background: var(--nk-yellow);
}

.nk-header .nav-menu ul {
  border-radius: 12px;
  padding: 8px;
  border: 1px solid var(--nk-border);
  box-shadow: var(--nk-shadow);
}

.nk-header .nav-menu ul li a {
  border-radius: 8px;
  font-weight: 600;
}

.nk-header .nav-menu ul li a:hover {
  color: var(--nk-navy) !important;
  background: var(--nk-sky);
}

/* Search */
.nk-header .agileits_search.nk-search-item,
.nk-header li.nk-search-item {
  margin-left: 8px;
  margin-right: 4px;
  list-style: none;
}

.nk-header .nk-search-form,
.nk-header .agileits_search form.nk-search-form,
.nk-header .agileits_search form {
  display: flex !important;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0;
  width: 240px;
  min-width: 200px;
  max-width: 280px;
  height: 42px;
  margin: 0;
  padding: 0 6px 0 16px;
  background: #f1f4f8 !important;
  border: 1px solid transparent;
  border-radius: 999px !important;
  box-shadow: none !important;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nk-header .nk-search-form:focus-within,
.nk-header .agileits_search form:focus-within {
  border-color: rgba(11, 47, 122, 0.25);
  box-shadow: 0 0 0 3px rgba(11, 47, 122, 0.08) !important;
  background: #fff !important;
}

.nk-header .nk-search-input,
.nk-header .agileits_search input[type="search"],
.nk-header .agileits_search .form-control,
.nk-header .agileits_search .nk-search-input {
  flex: 1 1 auto !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 40px !important;
  margin: 0 !important;
  padding: 0 8px 0 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  font-family: var(--nk-font);
  font-size: 13.5px !important;
  font-weight: 600;
  color: var(--nk-text) !important;
  line-height: 40px;
  -webkit-appearance: none;
  appearance: none;
}

.nk-header .nk-search-input::placeholder,
.nk-header .agileits_search input[type="search"]::placeholder {
  color: #93a0b4;
  opacity: 1;
  font-weight: 600;
}

.nk-header .nk-search-input::-webkit-search-decoration,
.nk-header .nk-search-input::-webkit-search-cancel-button,
.nk-header .agileits_search input[type="search"]::-webkit-search-decoration,
.nk-header .agileits_search input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.nk-header .nk-search-btn,
.nk-header .agileits_search button,
.nk-header .agileits_search .btn,
.nk-header .agileits_search .nk-search-btn {
  flex: 0 0 34px !important;
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: transparent !important;
  color: var(--nk-navy) !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  box-shadow: none !important;
  cursor: pointer;
  line-height: 1;
}

.nk-header .nk-search-btn:hover,
.nk-header .agileits_search button:hover {
  background: rgba(11, 47, 122, 0.08) !important;
  color: var(--nk-navy-mid) !important;
}

.nk-header .nk-search-btn i {
  font-size: 14px;
  line-height: 1;
}

/* Header actions */
.nk-header .nk-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nk-header .nk-icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--nk-navy);
  background: transparent;
  border: 0;
  text-decoration: none;
  position: relative;
  transition: background 0.2s ease;
}

.nk-header .nk-icon-btn:hover {
  background: var(--nk-sky);
  color: var(--nk-navy);
  text-decoration: none;
}

.nk-header .nk-icon-btn .badge,
.nk-header .cart-count-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--nk-red) !important;
  color: #fff !important;
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.nk-header .w3view-cart {
  background: transparent !important;
  border: 0 !important;
  color: var(--nk-navy) !important;
  padding: 0;
  box-shadow: none !important;
}

.nk-header .btn-nk-login {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--nk-navy);
  color: #fff !important;
  border-radius: var(--nk-radius-pill);
  padding: 10px 18px !important;
  font-weight: 700;
  font-size: 13.5px;
  border: 0;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.nk-header .btn-nk-login:hover {
  background: var(--nk-navy-mid);
  color: #fff !important;
  transform: translateY(-1px);
}

.nk-header .nav-menu > li.nk-action-item > a {
  padding: 0;
}

.nk-header .cart.box_1 {
  position: relative;
  right: 0 !important;
  top: 0 !important;
}

/* ---------- Hero ---------- */
.nk-hero {
  position: relative;
  background:
    radial-gradient(ellipse 70% 60% at 85% 40%, rgba(245, 197, 24, 0.22), transparent 55%),
    radial-gradient(ellipse 50% 50% at 10% 80%, rgba(77, 142, 240, 0.18), transparent 50%),
    radial-gradient(ellipse 40% 35% at 50% 0%, rgba(11, 47, 122, 0.06), transparent 60%),
    linear-gradient(115deg, #dceefb 0%, #eaf4fc 40%, #f7fbff 70%, #e8f3fc 100%);
  overflow: hidden;
  min-height: 420px;
}

.nk-hero .carousel-item {
  min-height: 420px;
}

.nk-hero .nk-hero-slide {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
  align-items: center;
  min-height: 420px;
  padding: 36px 0 48px;
}

.nk-hero-copy h1 {
  font-family: var(--nk-display);
  font-size: clamp(1.85rem, 3.2vw, 2.75rem);
  font-weight: 650;
  color: var(--nk-navy);
  line-height: 1.2;
  margin-bottom: 14px;
  max-width: 16ch;
}

.nk-hero-copy p {
  color: var(--nk-muted);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 42ch;
  margin-bottom: 22px;
}

.nk-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-nk-primary,
.btn-nk-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: var(--nk-radius-pill);
  padding: 12px 22px;
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-nk-primary {
  background: var(--nk-navy);
  color: #fff !important;
  border: 2px solid var(--nk-navy);
  box-shadow: 0 10px 22px rgba(11, 47, 122, 0.22);
}

.btn-nk-primary:hover {
  background: var(--nk-navy-mid);
  border-color: var(--nk-navy-mid);
  color: #fff !important;
  transform: translateY(-2px);
  text-decoration: none;
}

.btn-nk-outline {
  background: #fff;
  color: var(--nk-navy) !important;
  border: 2px solid var(--nk-navy);
}

.btn-nk-outline:hover {
  background: var(--nk-sky);
  color: var(--nk-navy) !important;
  transform: translateY(-2px);
  text-decoration: none;
}

.nk-hero-visual {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nk-hero-visual img {
  max-width: 100%;
  max-height: 360px;
  object-fit: contain;
  filter: drop-shadow(0 18px 30px rgba(11, 47, 122, 0.18));
  animation: nk-float 4.5s ease-in-out infinite;
}

@keyframes nk-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.nk-hero-features {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 2;
}

.nk-hero-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 8px 20px rgba(11, 47, 122, 0.1);
  border-radius: 14px;
  padding: 10px 14px;
  min-width: 190px;
  animation: nk-fade-up 0.6s ease both;
}

.nk-hero-feature:nth-child(2) { animation-delay: 0.08s; }
.nk-hero-feature:nth-child(3) { animation-delay: 0.16s; }
.nk-hero-feature:nth-child(4) { animation-delay: 0.24s; }

@keyframes nk-fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.nk-hero-feature i {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--nk-sky);
  color: var(--nk-navy);
  font-size: 13px;
  flex-shrink: 0;
}

.nk-hero-feature span {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--nk-navy);
  line-height: 1.25;
}

.nk-hero .carousel-control-prev,
.nk-hero .carousel-control-next {
  width: 48px;
  height: 48px;
  top: 50%;
  transform: translateY(-50%);
  bottom: auto;
  background: #fff;
  border-radius: 50%;
  opacity: 1;
  box-shadow: 0 8px 18px rgba(11, 47, 122, 0.12);
  margin: 0 12px;
}

.nk-hero .carousel-control-prev-icon,
.nk-hero .carousel-control-next-icon {
  filter: invert(1) grayscale(1) brightness(0.3);
  width: 18px;
  height: 18px;
}

.nk-hero .carousel-indicators {
  bottom: 14px;
}

.nk-hero .carousel-indicators li {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #c5d0e0;
  border: 0;
  opacity: 1;
}

.nk-hero .carousel-indicators li.active {
  background: var(--nk-navy);
  width: 22px;
  border-radius: 999px;
}

/* ---------- Sections shared ---------- */
.nk-section {
  padding: 36px 0;
}

.nk-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}

.nk-section-title h2 {
  font-family: var(--nk-display);
  font-size: 1.45rem;
  font-weight: 650;
  color: var(--nk-navy);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nk-section-title h2 .nk-star {
  color: var(--nk-yellow);
}

.nk-link-all {
  color: var(--nk-navy);
  font-weight: 800;
  font-size: 0.92rem;
  text-decoration: none;
}

.nk-link-all:hover {
  color: var(--nk-navy-mid);
  text-decoration: none;
}

/* ---------- Category icons ---------- */
.nk-cats {
  padding: 28px 0 8px;
  background: #fff;
}

.nk-cats-row {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 14px;
}

.nk-cat-item {
  text-align: center;
  text-decoration: none;
  color: var(--nk-text);
  transition: transform 0.25s ease;
}

.nk-cat-item:hover {
  transform: translateY(-4px);
  text-decoration: none;
  color: var(--nk-navy);
}

.nk-cat-icon {
  width: 74px;
  height: 74px;
  margin: 0 auto 10px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 2.5px solid;
  box-shadow: 0 8px 18px rgba(11, 47, 122, 0.06);
}

.nk-cat-icon i {
  font-size: 1.45rem;
}

.nk-cat-item span {
  display: block;
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--nk-navy);
}

.nk-cat-item:nth-child(1) .nk-cat-icon { border-color: #5b8def; color: #5b8def; }
.nk-cat-item:nth-child(2) .nk-cat-icon { border-color: #ef6b6b; color: #ef6b6b; }
.nk-cat-item:nth-child(3) .nk-cat-icon { border-color: #f0a020; color: #f0a020; }
.nk-cat-item:nth-child(4) .nk-cat-icon { border-color: #2bb673; color: #2bb673; }
.nk-cat-item:nth-child(5) .nk-cat-icon { border-color: #9b6bde; color: #9b6bde; }
.nk-cat-item:nth-child(6) .nk-cat-icon { border-color: #e85d9c; color: #e85d9c; }
.nk-cat-item:nth-child(7) .nk-cat-icon { border-color: #3db8c5; color: #3db8c5; }
.nk-cat-item:nth-child(8) .nk-cat-icon { border-color: var(--nk-navy); color: var(--nk-navy); }

/* ---------- Trust bar ---------- */
.nk-trust {
  background: #fff;
  border-top: 1px solid var(--nk-border);
  border-bottom: 1px solid var(--nk-border);
  padding: 16px 0;
  margin: 12px 0 8px;
}

.nk-trust-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.nk-trust-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--nk-navy);
  font-size: 12.5px;
  font-weight: 800;
  white-space: nowrap;
}

.nk-trust-item i {
  color: var(--nk-navy-mid);
  font-size: 16px;
}

/* ---------- Featured + promo ---------- */
.nk-featured-wrap {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 18px;
  align-items: start;
}

.nk-product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.nk-product-card {
  background: #fff;
  border: 1px solid var(--nk-border);
  border-radius: 18px;
  padding: 14px;
  box-shadow: var(--nk-shadow);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}

.nk-product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 32px rgba(11, 47, 122, 0.12);
}

.nk-product-wish {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--nk-border);
  color: #b0b9c8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  text-decoration: none;
}

.nk-product-wish:hover {
  color: var(--nk-red);
  text-decoration: none;
}

.nk-product-thumb {
  background: #f7f9fc;
  border-radius: 14px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  overflow: hidden;
}

.nk-product-thumb img {
  max-width: 88%;
  max-height: 140px;
  object-fit: contain;
}

.nk-product-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--nk-text);
  line-height: 1.35;
  min-height: 2.7em;
  margin-bottom: 6px;
}

.nk-product-name a {
  color: inherit;
  text-decoration: none;
}

.nk-product-name a:hover {
  color: var(--nk-navy);
}

.nk-rating {
  color: #f5b400;
  font-size: 12px;
  margin-bottom: 6px;
}

.nk-rating span {
  color: var(--nk-muted);
  font-weight: 700;
  margin-left: 4px;
}

.nk-price {
  color: var(--nk-navy);
  font-weight: 900;
  font-size: 1.05rem;
  margin-bottom: 12px;
}

.nk-price del {
  color: #9aa5b1;
  font-size: 0.82rem;
  font-weight: 600;
  margin-left: 6px;
}

.btn-nk-detail {
  margin-top: auto;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--nk-navy);
  color: #fff !important;
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 800;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.2s ease;
}

.btn-nk-detail:hover {
  background: var(--nk-navy-mid);
  color: #fff !important;
  text-decoration: none;
}

.nk-promo {
  background: transparent;
  border-radius: 20px;
  padding: 0;
  display: block;
  min-height: 0;
  height: auto;
  overflow: hidden;
  position: relative;
  box-shadow: none;
  align-self: start;
}

.nk-promo img {
  width: auto;
  max-width: 100%;
  height: auto;
  display: block;
}

.nk-promo h3 {
  font-family: var(--nk-display);
  font-size: 1.35rem;
  font-weight: 650;
  color: var(--nk-navy-deep);
  margin: 0 0 6px;
  line-height: 1.25;
}

.nk-promo p {
  font-weight: 800;
  color: var(--nk-navy);
  margin-bottom: 14px;
}

.btn-nk-promo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--nk-red);
  color: #fff !important;
  border-radius: var(--nk-radius-pill);
  padding: 10px 18px;
  font-weight: 800;
  font-size: 0.9rem;
  text-decoration: none;
  width: fit-content;
  box-shadow: 0 8px 16px rgba(229, 57, 53, 0.28);
}

.btn-nk-promo:hover {
  color: #fff !important;
  filter: brightness(1.05);
  text-decoration: none;
}

.nk-promo-art {
  margin-top: 18px;
  text-align: center;
}

.nk-promo-art img {
  max-width: 100%;
  max-height: 160px;
  object-fit: contain;
}

/* ---------- Age browse ---------- */
.nk-age-section {
  overflow: visible;
}

.nk-age-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 18px;
  padding-bottom: 36px;
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.nk-age-card {
  position: relative;
  flex: 0 0 calc((100% - 54px) / 4);
  min-width: 240px;
  display: block;
  text-decoration: none;
  color: #fff;
  overflow: visible;
  padding-bottom: 18px;
  scroll-snap-align: start;
  transition: transform 0.25s ease;
}

.nk-age-card:hover {
  transform: translateY(-4px);
  color: #fff;
  text-decoration: none;
}

.nk-age-card__body {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  min-height: 140px;
  border-radius: 22px;
  overflow: visible;
  padding: 18px 14px 18px 20px;
  box-shadow: 0 12px 28px rgba(11, 47, 122, 0.12);
}

.nk-age-card__text {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-right: 8px;
  min-width: 0;
}

.nk-age-card__text small {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.92);
}

.nk-age-card__text span {
  font-family: var(--nk-display);
  font-weight: 700;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.15;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  word-break: break-word;
}

.nk-age-card__media {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  align-self: stretch;
  margin: -28px -8px -34px 0;
  min-height: 150px;
  overflow: visible;
  pointer-events: none;
}

.nk-age-card__img {
  display: block;
  width: auto;
  max-width: 118%;
  height: 165px;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.18));
}

.nk-age-card.age-a .nk-age-card__body { background: #43c463; }
.nk-age-card.age-b .nk-age-card__body { background: #f5c518; }
.nk-age-card.age-c .nk-age-card__body { background: #4d8ef0; }
.nk-age-card.age-d .nk-age-card__body { background: #9b6bde; }

/* ---------- Dual lists ---------- */
.nk-dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.nk-mini-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.nk-mini-item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 14px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid var(--nk-border);
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  position: relative;
}

.nk-mini-item:hover {
  box-shadow: var(--nk-shadow);
  transform: translateY(-2px);
  text-decoration: none;
  color: inherit;
}

.nk-mini-thumb {
  width: 88px;
  height: 88px;
  border-radius: 12px;
  background: #f7f9fc;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.nk-mini-thumb img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}

.nk-mini-meta h4 {
  font-size: 0.95rem;
  font-weight: 800;
  margin: 0 0 4px;
  color: var(--nk-text);
}

.nk-rank {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
  color: #fff;
  z-index: 2;
}

.nk-rank.r1 { background: #d4a017; }
.nk-rank.r2 { background: #9aa0a6; }
.nk-rank.r3 { background: #cd7f32; }

/* ---------- Catalog / search listing ---------- */
.nk-catalog {
  padding: 20px 0 48px;
  background: var(--nk-sky-2);
}

.nk-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--nk-muted);
}

.nk-breadcrumb a {
  color: var(--nk-navy);
  text-decoration: none;
}

.nk-breadcrumb a:hover {
  color: var(--nk-navy-mid);
  text-decoration: none;
}

.nk-breadcrumb em {
  font-style: normal;
  color: var(--nk-text);
}

.nk-catalog .home-hero {
  background: #fff;
  border: 1px solid var(--nk-border);
  border-radius: 18px;
  box-shadow: var(--nk-shadow);
  padding: 22px 24px;
  margin-bottom: 22px;
}

.nk-catalog .home-hero h2 {
  font-family: var(--nk-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--nk-navy);
  margin: 0 0 6px;
}

.nk-catalog .home-hero p {
  margin: 0;
  color: var(--nk-muted);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.5;
}

.nk-catalog .home-empty {
  width: 100%;
  padding: 36px 20px;
  text-align: center;
  background: #fff;
  border: 1px dashed var(--nk-border);
  border-radius: 16px;
  color: var(--nk-muted);
  font-weight: 700;
}

.nk-catalog .home-discount-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  background: var(--nk-red);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 999px;
  line-height: 1.2;
}

.nk-catalog .nk-product-thumb {
  position: relative;
}

.nk-catalog .home-product-card {
  border-radius: 18px;
  border-color: var(--nk-border);
}

.nk-catalog .home-price {
  color: var(--nk-navy);
}

.nk-catalog .tittle-w3l {
  font-family: var(--nk-display);
  color: var(--nk-navy);
}

.nk-catalog .product-sec1 {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* ---------- Catalog sidebar ---------- */
.nk-sidebar {
  background: #fff;
  border: 1px solid var(--nk-border);
  border-radius: 18px;
  box-shadow: var(--nk-shadow);
  padding: 16px;
  position: sticky;
  top: 90px;
}

.nk-side-block {
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--nk-border);
}

.nk-side-block--last {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}

.nk-side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.nk-side-head .nk-side-title {
  margin-bottom: 0;
}

.nk-side-head a {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--nk-navy);
  text-decoration: none;
}

.nk-side-head a:hover {
  color: var(--nk-navy-mid);
  text-decoration: none;
}

.nk-side-title {
  font-family: var(--nk-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--nk-navy);
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nk-side-title i {
  color: var(--nk-yellow);
  font-size: 0.95rem;
}

.nk-side-search {
  display: flex;
  align-items: center;
  gap: 0;
  height: 42px;
  padding: 0 6px 0 14px;
  background: #f1f4f8;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nk-side-search:focus-within {
  background: #fff;
  border-color: rgba(11, 47, 122, 0.25);
  box-shadow: 0 0 0 3px rgba(11, 47, 122, 0.08);
}

.nk-side-search input {
  flex: 1;
  min-width: 0;
  height: 40px;
  border: 0;
  background: transparent;
  outline: none;
  font-family: var(--nk-font);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--nk-text);
}

.nk-side-search input::placeholder {
  color: #93a0b4;
}

.nk-side-search button {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: var(--nk-navy);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nk-side-search button:hover {
  background: var(--nk-navy-mid);
}

.nk-side-best {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nk-side-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 10px;
  align-items: center;
  position: relative;
  padding: 8px;
  border: 1px solid var(--nk-border);
  border-radius: 12px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.nk-side-item:hover {
  box-shadow: var(--nk-shadow);
  transform: translateY(-1px);
  text-decoration: none;
  color: inherit;
}

.nk-side-item .nk-rank {
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  font-size: 11px;
}

.nk-side-thumb {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  background: #f7f9fc;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.nk-side-thumb img {
  max-width: 85%;
  max-height: 85%;
  object-fit: contain;
}

.nk-side-meta h4 {
  font-size: 0.82rem;
  font-weight: 800;
  margin: 0 0 4px;
  color: var(--nk-text);
  line-height: 1.3;
}

.nk-side-meta .nk-price {
  margin: 0;
  font-size: 0.9rem;
}

.nk-side-empty {
  padding: 14px;
  text-align: center;
  color: var(--nk-muted);
  font-weight: 700;
  font-size: 0.85rem;
  background: var(--nk-sky-2);
  border-radius: 12px;
}

.nk-side-cats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nk-side-cats a {
  display: block;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--nk-text);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.nk-side-cats a:hover {
  background: var(--nk-sky);
  color: var(--nk-navy);
  text-decoration: none;
}

.nk-side-cats a.is-active {
  background: var(--nk-navy);
  color: #fff;
}

.nk-side-details {
  border: 0;
}

.nk-side-details summary {
  list-style: none;
  cursor: pointer;
  font-family: var(--nk-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--nk-navy);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  user-select: none;
}

.nk-side-details summary::-webkit-details-marker {
  display: none;
}

.nk-side-details summary::after {
  content: "▾";
  margin-left: auto;
  color: var(--nk-muted);
  font-size: 0.85rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.nk-side-details[open] summary::after {
  transform: rotate(180deg);
}

.nk-side-details summary i {
  color: var(--nk-yellow);
  font-size: 0.95rem;
}

.nk-side-brands {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nk-side-brands a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border: 1px solid var(--nk-border);
  border-radius: 12px;
  background: #f7f9fc;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.nk-side-brands a:hover {
  box-shadow: var(--nk-shadow);
  transform: translateY(-1px);
}

.nk-side-brands img {
  max-width: 100%;
  max-height: 40px;
  width: auto;
  object-fit: contain;
}

@media (max-width: 991px) {
  .nk-sidebar {
    position: static;
    margin-top: 8px;
  }
}

/* ---------- Footer ---------- */
.site-footer.nk-footer {
  background: var(--nk-navy-deep);
  color: rgba(255, 255, 255, 0.78);
}

.site-footer.nk-footer::before {
  display: none;
}

.nk-footer .footer-highlight {
  display: none;
}

.nk-footer .footer-main-wrap {
  padding: 48px 0 28px;
}

.nk-footer-brand-logo {
  max-height: 52px;
  width: auto;
  margin-bottom: 14px;
}

.nk-footer .footer-heading {
  font-family: var(--nk-display);
  font-size: 1.05rem;
  margin-bottom: 1.1rem;
  padding-bottom: 0;
}

.nk-footer .footer-heading::after {
  display: none;
}

.nk-footer .footer-about-text,
.nk-footer .footer-pay-text,
.nk-footer .footer-contact li,
.nk-footer .footer-contact a,
.nk-footer .footer-links a {
  color: rgba(255, 255, 255, 0.72);
}

.nk-footer .footer-links a:hover,
.nk-footer .footer-contact a:hover {
  color: var(--nk-yellow);
  padding-left: 0;
}

.nk-footer-social {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.nk-footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  font-size: 15px;
}

.nk-footer-social .ig {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.nk-footer-social .shopee {
  background: #ee4d2d;
}

.nk-footer-social .tokped {
  background: #42b549;
}

.nk-footer-social .yt {
  background: #ff0000;
}

.copy-right {
  background: #05163d;
  color: rgba(255, 255, 255, 0.65);
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.copy-right a {
  color: var(--nk-yellow);
}

/* Mobile bottom nav accent */
.mobile-bottom-nav .mobile-bottom-item.is-active {
  color: var(--nk-navy) !important;
}

/* Hide search/actions duplicated awkwardly on very small desktop header */
@media (max-width: 1199.98px) and (min-width: 992px) {
  .nk-header .nav-menu > li.nk-action-item:has(.nk-icon-btn[title="Wishlist"]) {
    display: none;
  }
}

/* Ensure conwidth used by header stays usable */
.nk-header .conwidth {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 15px;
  padding-right: 15px;
}

.nk-hero .conwidth,
.nk-cats .conwidth,
.nk-trust .conwidth,
.nk-section .conwidth {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 15px;
  padding-right: 15px;
}

.nk-age-section .conwidth {
  overflow: visible;
}

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
  .nk-header .nav-menu > li > a {
    padding: 8px 7px;
    font-size: 13px;
  }

  .nk-header .nk-search-form,
  .nk-header .agileits_search form {
    width: 180px;
    min-width: 160px;
    max-width: 200px;
  }

  .nk-featured-wrap {
    grid-template-columns: 1fr 220px;
  }

  .nk-product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 991.98px) {
  .nk-hero {
    min-height: 0;
    overflow: hidden;
  }

  .nk-hero .carousel-item {
    min-height: 0;
  }

  .nk-hero .conwidth {
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .nk-hero-slide {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
    min-height: auto;
    padding: 0 0 28px;
    text-align: center;
    gap: 0;
  }

  .nk-hero-copy {
    order: 2;
    padding: 20px 16px 0;
  }

  .nk-hero-copy h1,
  .nk-hero-copy p {
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }

  .nk-hero-cta {
    justify-content: center;
  }

  .nk-hero-features {
    position: static;
    transform: none;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    margin: 14px 15px 0;
  }

  .nk-hero-feature {
    min-width: auto;
  }

  .nk-hero-visual {
    order: 1;
    position: relative;
    min-height: 0;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    display: block;
    line-height: 0;
  }

  .nk-hero-visual img {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    object-fit: contain;
    object-position: center;
    filter: none;
    animation: none;
    border-radius: 0;
  }

  .nk-hero .carousel-control-prev,
  .nk-hero .carousel-control-next {
    width: 36px;
    height: 36px;
    margin: 0 8px;
    top: 28%;
  }

  .nk-cats-row {
    grid-template-columns: repeat(4, 1fr);
  }

  .nk-trust-row {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 12px;
  }

  .nk-featured-wrap {
    grid-template-columns: 1fr;
  }

  .nk-product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nk-age-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 14px;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 8px 4px 36px;
    margin: 0 -4px;
  }

  .nk-age-card {
    flex: 0 0 min(86%, 320px);
    scroll-snap-align: start;
    padding-bottom: 12px;
  }

  .nk-age-card__body {
    min-height: 130px;
    padding: 16px 12px 16px 18px;
  }

  .nk-age-card__text span {
    font-size: 1.35rem;
  }

  .nk-age-card__media {
    margin: -24px -6px -30px 0;
    min-height: 140px;
  }

  .nk-age-card__img {
    height: 150px;
    max-width: 130%;
  }

  .nk-dual {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .nk-hero-copy {
    padding: 16px 14px 0;
  }

  .nk-cats-row {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }

  .nk-cat-icon {
    width: 58px;
    height: 58px;
  }

  .nk-cat-item span {
    font-size: 11px;
  }

  .nk-trust-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .nk-trust-item {
    font-size: 11.5px;
    white-space: normal;
    text-align: left;
    justify-content: flex-start;
  }

  .nk-product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .nk-product-thumb {
    height: 120px;
  }

  .nk-hero-copy h1 {
    font-size: 1.55rem;
  }

  .nk-section-title h2 {
    font-size: 1.2rem;
  }
}
