/* ================= TOP BAR ================= */
.topbar {
  font-size: 0.9rem;
  font-weight: 500;
  background: #e9ecef;
}
.topbar a {
  color: inherit;
  transition: opacity 0.2s ease;
}
.topbar a:hover {
  opacity: 0.8;
}
.topbar .material-icons {
  font-size: 22px;
}

/* ================= HEADER ================= */
#header {
  box-shadow: 0px 0px 13px 0px #0000004f;
}
.header-bar {
  background: #fff;
  border-bottom: 1px solid #eee;
  position: relative;
}
.header-inner {
  max-width: 1500px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 15px 20px;
}
.logo {
  font-weight: 900;
  font-size: 22px;
  color: #1b1b1b;
  white-space: nowrap;
}
.logo a {
  display: flex;
  position: absolute;
  top: 0;
  z-index: 99;
}
.logo a .nwt-logo {
  display: flex;
  position: absolute;
  top: 10px;
  width: 124px;
}
.logo a .logo-mobile {
  display: none;
  height: 60px;
  position: absolute;
  top: 5px;
  width: auto;
}
.logo a .nwt-logo:hover {
  transform: translateY(-3px);
}
.mobile-device .logo a .logo-mobile {
  display: flex;
  height: 60px;
  position: absolute;
  top: 5px;
  width: auto;
}

/* ================= HEADER ICONS ================= */
.icons {
  display: flex;
  gap: 20px;
  font-size: 12px;
  white-space: nowrap;
}
.icons a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #444;
  text-decoration: none;
}
.icons a:hover {
  color: var(--bs-brand-primary);
}

/* ================= MOBILE HEADER ================= */
.mobile-device .header-inner {
  display: grid;
  grid-template-columns: 48px 47px 4fr 1fr;
  grid-template-areas: "logo hamburger search icons";
  gap: 15px;
  padding: 5px 15px 5px 15px;
  row-gap: 0;
  height: 70px;
}
.mobile-device .logo {
  grid-area: logo;
  font-size: 20px;
  text-align: center;
  display: n;
}
.mobile-device .nwt-logo {
  display: none !important;
}
.mobile-device .icons {
  grid-area: icons;
  gap: 15px;
  font-size: 0;
  justify-content: flex-end;
}
.mobile-device .icons a label {
  display: none;
}

/* =========================================================
   MEGAMENU
   ========================================================= */
.megamenu {
  margin: auto;
  display: flex;
  align-items: center;
  gap: 25px;
  padding: 0 20px;
  position: relative;
}

/* ================= NAV ITEM ================= */
.megamenu .nav-item {
  padding: 24px 12px;
  font-size: 14px;
  color: #333;
  position: relative;
}
.megamenu .nav-item:first-of-type {
  margin-left: 125px;
}
.mobile-device .nav-item:first-of-type {
  margin-left: 0px;
}
.megamenu .nav-item span {
  cursor: pointer;
}

.megamenu .nav-item.active {
  background: white;
  color: var(--bs-menu-primary);
  border-radius: 10px 10px 0 0;
}

/*
 * Hover
 */
.megamenu .nav-item:hover {
  background: white;
  color: var(--bs-menu-primary);
  transition: 0.2s ease-in-out;
  border-radius: 10px 10px 0 0;
}

/* =========================================================
   SEPARATE MEGA MENU LAYER
   ========================================================= */
.mega-menu-layer {
  position: fixed;
  top: 180px;
  left: 0;
  width: 100%;
  z-index: 10001;
  pointer-events: none;
}

.mega-menu-layer .mega {
  pointer-events: auto;
}

/* =========================================================
   FULL WIDTH MEGA MENU
   ========================================================= */
.mega {
  position: absolute;
  display: none;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
  padding: 20px;
  z-index: 1000;
  max-width: 100%;
  width: 1500px;
  left: 50%;
  transform: translateX(-50%);
  animation: fadeIn 0.12s ease-out;
}

/* ================= MEGA ANIMATION ================= */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* =========================================================
   LEFT SIDEBAR
   ========================================================= */
.side {
  width: 220px;
  border-right: 1px solid #eee;
  padding-right: 15px;
  flex-shrink: 0;
}
.side div {
  padding: 12px 10px;
  border-radius: 8px;
  cursor: default;
  font-size: 14px;
  color: #444;
  margin-bottom: 5px;
}
.side .active {
  background: var(--bs-menu-primary);
  color: white;
}

/* =========================================================
   RIGHT CONTENT
   ========================================================= */
.content {
  flex: 1;
  padding-left: 20px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

/* ================= GROUP BLOCKS ================= */
.group h4 {
  color: var(--bs-menu-primary);
  font-size: 14px;
  margin-bottom: 10px;
}
.group ul {
  list-style: none;
  padding-left: 0;
}
.group li {
  font-size: 13px;
  color: #444;
  cursor: pointer;
}
.group li:hover {
  color: var(--bs-menu-primary);
}

/* ================= SMALL LINK ================= */
.showall {
  margin-top: 8px;
  font-size: 12px;
  color: var(--bs-menu-primary);
  cursor: pointer;
}

/* =========================================================
   RESPONSIVE DESKTOP
   ========================================================= */
@media (max-width: 1500px) {
  .mega {
    width: 95vw;
  }
  .content {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

/* =========================================================
   LINKS
   ========================================================= */
.megamenu a {
  color: inherit;
  text-decoration: none;
  display: block;
}

.mega a {
  color: inherit;
  text-decoration: none;
  display: block;
}

/* ================= LEFT SIDE LINKS ================= */
.side a {
  display: block;
  width: 100%;
  padding: 12px 10px;
  border-radius: 8px;
  color: #444;
}
.side a:hover {
  background: #f2f2ff;
  color: var(--bs-menu-primary);
}
.side .active a {
  background: var(--bs-menu-primary);
  color: #fff;
}

/* ================= RIGHT SIDE LINKS ================= */
.group li a {
  display: block;
  font-size: 13px;
  color: #444;
  padding: 5px 0;
}
.group li a:hover {
  color: var(--bs-menu-primary);
}

/* ================= SHOW ALL ================= */
.showall a {
  font-size: 12px;
  color: var(--bs-menu-primary);
  text-decoration: none;
}
.showall a:hover {
  text-decoration: underline;
}

/* =========================================================
   MEGA HEADER
   ========================================================= */
.mega-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 18px;
  padding-left: 1rem;
  border-bottom: 1px solid #ececec;
}
.mega-title {
  font-size: 28px;
  font-weight: 700;
  color: #1b1b1b;
  line-height: 1.2;
  letter-spacing: -0.5px;
}
.viewall {
  margin-left: auto;
}
.viewall a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  background: var(--bs-menu-primary);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  transition:
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.viewall a:hover {
  background: var(--bs-menu-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px var(--bs-menu-primary-bg-subtle);
  text-decoration: underline;
  color: white;
}

/* =========================================================
   TILE GRID
   ========================================================= */ /*
.content.tiles {
  display: grid;
  grid-template-columns:
    repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
  align-items: stretch;
}
*/ /* =========================================================
   TILE CARD
   ========================================================= */
.tile {
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  background: #fff;
  border: 1px solid #eee;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}
.tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

/* ================= IMAGE ================= */
.tile img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}
.tile:hover img {
  transform: scale(1.05);
}

/* ================= LABEL ================= */
.tile span {
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 500;
  color: #333;
  text-align: center;
  background: #fff;
}

/* =========================================================
   RESPONSIVE TILES
   ========================================================= */
@media (max-width: 1000px) {
  .content.tiles {
    grid-template-columns: repeat(2, 1fr);
    max-height: calc(100vh - 350px);
    overflow-y: scroll;
  }
  .tile img {
    height: 130px;
  }
}
@media (max-width: 600px) {
  .content.tiles {
    grid-template-columns: 1fr;
  }
  .tile img {
    height: 160px;
  }
}

/* =========================================================
   MOBILE TIERED MENU
   ========================================================= */

/* ================= HAMBURGER ================= */
.hamburger {
  display: none;
  background: transparent;
  border: none;
  font-size: 16px;
  cursor: pointer;
  padding: 5px;
  color: #1b1b1b;
  grid-area: hamburger;
  text-align: left;
  align-items: center;
  gap: 10px;
}

/* =========================================================
   MOBILE DRAWER
   ========================================================= */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 340px;
  max-width: 90vw;
  height: 100vh;
  background: #fff;
  z-index: 99999;
  overflow-y: auto;
  transform: translateX(-110%);
  transition: transform 0.3s ease;
  box-shadow: 10px 0 40px rgba(0, 0, 0, 0.15);
}
.mobile-menu.open {
  transform: translateX(0);
}

/* =========================================================
   MOBILE HEADER
   ========================================================= */
.mobile-header {
  height: 64px;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 0 20px;
  border-bottom: 1px solid #eee;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 5;
}
.mobile-header .menu-header {
  font-size: 18px;
  font-weight: 700;
}

/* ================= BACK BUTTON ================= */
.mobile-back {
  border: none;
  background: none;
  padding: 0;
  color: var(--bs-menu-primary);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* =========================================================
   MOBILE MENU ITEMS
   ========================================================= */
.mobile-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 18px 20px;
  border-bottom: 1px solid #eee;
  font-size: 15px;
  color: #333;
  cursor: pointer;
  transition: background 0.15s ease;
  gap: 1rem;
}
.mobile-row:hover {
  background: #f7f5ff;
}

/* ================= ARROW ================= */
.mobile-row::after {
  content: "";
}
.mobile-row.has-children::after {
  content: "chevron_right";
  margin-left: auto;
  font-size: 22px;
  color: #999;
  font-family:
    Material Icons,
    sans-serif;
}

/* =========================================================
   MOBILE OVERLAY
   ========================================================= */
.mobile-device .hamburger {
  display: flex;
}
.mobile-device .megamenu {
  height: 0;
  padding: 0;
}
.mobile-device .megamenu > .nav-item {
  display: none;
}

.mobile-device .mega {
  display: none !important;
}

.mobile-device .mega-menu-layer {
  display: none !important;
}

/* =========================================================
   MOBILE PAGE OVERLAY
   ========================================================= */
.mobile-menu.open::before {
  content: "";
  position: fixed;
  top: 0;
  left: 340px;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.35);
}

/* =========================================================
   SMALL MOBILE
   ========================================================= */
@media (max-width: 480px) {
  .mobile-menu {
    width: 100%;
    max-width: 100%;
  }
  .mobile-menu.open::before {
    display: none;
  }
}

/* =========================================================
   MOBILE SECTION TITLE
   ========================================================= */
.mobile-section-title {
  padding: 20px 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #777;
  background: #f7f7f7;
  border-top: 1px solid #e5e5e5;
}

/* =========================================================
   MOBILE CLOSE
   ========================================================= */
.mobile-close {
  margin-left: auto;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  font-size: 28px;
  line-height: 1;
  color: #333;
  cursor: pointer;
  padding: 0;
  margin-bottom: 4px;
}
.mobile-close:hover {
  color: var(--bs-menu-primary);
}

.mega-menu-loading {
  visibility: hidden;
  pointer-events: none;
}
.mega {
  display: none;
}
.menu-colour-swatch {
  display: inline-block;
  width: 28px;
  height: 16px;
  border-radius: 4px;
  margin-right: 10px;
  border: 1px solid #ccc;
  flex-shrink: 0;
}

.group ul li a {
  display: flex;
  align-items: center;
}
