/* ── Header styles ───────────────────────────────────────── */
/* Source: competitor coupon.css — class names kept as-is    */

/* ── Fonts ───────────────────────────────────────────────── */
@font-face {
  font-family: 'EuclidCircularB';
  src: url('../fonts/EuclidCircularB-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'EuclidCircularB';
  src: url('../fonts/EuclidCircularB-Medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'EuclidCircularB';
  src: url('../fonts/EuclidCircularB-SemiBold.woff2') format('woff2');
  font-weight: 600 700; font-style: normal; font-display: swap;
}

/* ── Reset (scoped safe) ─────────────────────────────────── */
html, body { margin: 0; padding: 0; }
.header *, .header *::before, .header *::after { box-sizing: border-box; }
.header a { text-decoration: none; color: inherit; cursor: pointer; }
.header a:hover, .header a:active, .header a:visited { color: inherit; outline: 0; }
.header, .new-navfix {
  font-family: 'EuclidCircularB', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Anti-elementor reset ────────────────────────────────── */
/* hello-elementor sets aggressive global styles on buttons, inputs,
   headings, and links. This block neutralises them within .header
   so cloned CSS works exactly like the competitor's. */
.header button,
.header [type=button],
.header [type=submit] {
  border: none;
  border-radius: 0;
  padding: 0;
  color: inherit;
  background-color: transparent;
  font-size: inherit;
  font-weight: inherit;
  cursor: pointer;
}

.header input,
.header input[type=search],
.header input[type=text] {
  border: none;
  border-radius: 0;
  padding: 0;
  width: auto;
  transition: none;
}

.header h1, .header h2, .header h3,
.header h4, .header h5, .header h6 {
  margin: 0;
  padding: 0;
  font-weight: inherit;
  font-size: inherit;
  line-height: inherit;
}

.header p, .header ol, .header ul, .header li {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ── Wrapper ─────────────────────────────────────────────── */
.header .wrapper {
  position: relative;
  margin: 0 auto;
  padding-right: 20px;
  padding-left: 20px;
}

/* ── Header bar ──────────────────────────────────────────── */
.header {
  background-color: #d33c3c;
  color: #fff;
}

/* Tương đương .homeheader .header của competitor — bỏ border-bottom ở trang chủ */
body.home .header {
  border-bottom-width: 0;
}

/* ── Checkbox triggers (hidden) ──────────────────────────── */
#searchmenu,
#topmenu {
  display: none;
}

/* ── Overlays ────────────────────────────────────────────── */
.opacityblack,
.opacitywhite {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  display: none;
}

.opacityblack {
  z-index: 1006;
  top: 0;
  transition: all ease 0.25s;
  background-color: rgba(0, 0, 0, 0.55);
}

.opacitywhite {
  z-index: 999;
  top: 48px;
  background-color: transparent;
}

/* ── Search position ─────────────────────────────────────── */
.search-pos {
  position: absolute;
  top: 50%;
  right: 20px;
  margin-top: -9px;
}

.search-pos .search-icon {
  border-color: #c23838;
}

.search-pos .search-icon::after {
  background-color: #c23838;
}

/* ── Checkbox toggle states ──────────────────────────────── */
#searchmenu:checked~.opacitywhite {
  display: block;
}

#searchmenu:checked~.search {
  width: calc(100vw - 66px);
}

#topmenu:checked~.opacityblack {
  display: block;
}

/* ── Hamburger button ────────────────────────────────────── */
.topmenu-box {
  position: absolute;
  z-index: 1007;
  top: 20px;
  left: 20px;
  width: 20px;
  height: 16px;
  cursor: pointer;
}

.menu-icon,
.menu-icon::after,
.menu-icon::before {
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background-color: #fff;
}

.menu-icon {
  position: relative;
  z-index: 1000;
  display: block;
  width: 14px;
}

.menu-icon::after,
.menu-icon::before {
  position: absolute;
  top: 7px;
  left: 0;
  width: 20px;
  content: "";
  transition: all ease 0.25s;
}

.menu-icon::after {
  top: 14px;
  width: 10px;
}

#topmenu:checked~.topmenu-box .menu-icon {
  background: 0 0;
}

#topmenu:checked~.topmenu-box .menu-icon::before {
  transform: rotate(45deg);
}

#topmenu:checked~.topmenu-box .menu-icon::after {
  width: 20px;
  transform: rotate(-45deg);
  transform-origin: 1px -2px;
}

/* ── Search icon button ──────────────────────────────────── */
.search-icon-wp {
  position: absolute;
  z-index: 1004;
  top: 19px;
  right: 17px;
  width: 24px;
  height: 20px;
  cursor: pointer;
}

.search-icon-wp .search-icon {
  border-color: #fff;
}

.search-icon-wp .search-icon::after {
  background-color: #fff;
}

/* ── Mobile slide-in drawer ──────────────────────────────── */
.new-navfix {
  position: absolute;
  z-index: 1006;
  top: 0;
  bottom: 0;
  left: 0;
  width: 300px;
  height: 100vh;
  overflow-y: scroll;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  transform: translateX(-100%);
  border-right-width: 0;
  background-color: #fff;
}

#topmenu:checked~.new-navfix {
  transform: translateX(0);
}

.navlogowp {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 56px;
  text-align: center;
  background-color: #d33c3c;
}

.navlogo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 56px;
  color: #fff;
  text-decoration: none;
}
.navlogo img { 
  display: block;
  width: 100%; 
  height: auto;
  object-fit: contain; }
.cs-navlogo-text { font-size: 18px; font-weight: 700; color: #fff; }

.navfix-ls {
  overflow: auto;
  height: calc(100vh - 45px);
  padding-top: 10px;
  padding-bottom: 100px;
}

.navfix-item {
  transition: all 0.3s ease 0.05s;
  transform: translateX(-100%);
  opacity: 0;
}

#topmenu:checked~.new-navfix .navfix-item {
  transform: translateX(0);
  opacity: 1;
}

#topmenu:checked~.new-navfix .navfix-item:nth-child(1) {
  transition-delay: 0.05s;
}

#topmenu:checked~.new-navfix .navfix-item:nth-child(2) {
  transition-delay: 0.1s;
}

#topmenu:checked~.new-navfix .navfix-item:nth-child(3) {
  transition-delay: 0.15s;
}

#topmenu:checked~.new-navfix .navfix-item:nth-child(4) {
  transition-delay: 0.20s;
}

#topmenu:checked~.new-navfix .navfix-item:nth-child(5) {
  transition-delay: 0.25s;
}

.header a.navfix-link,
.header a.navfix-link:visited,
.header a.navfix-link:active {
  line-height: 45px;
  display: flex;
  align-items: center;
  font-weight: 500;
  padding: 0 16px;
  text-align: left;
  color: #333;
  text-decoration: none;
}

.header a.navfix-link:hover {
  color: #d33c3c;
}

.icon-nav {
  width: 20px;
  height: 20px;
  fill: #d33c3c;
  margin-right: 10px;
  flex-shrink: 0;
}

/* ── Desktop nav bar ─────────────────────────────────────── */
.navfix {
  position: absolute;
  z-index: 1003;
  top: 0;
  bottom: 0;
  left: 0;
  width: 100%;
}

.menunav {
  overflow: hidden;
  max-height: 0;
  padding-right: 20px;
  padding-left: 20px;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  text-align: left;
  background-color: #c23838;
}

.menunav-link {
  font-size: 16px;
  line-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
}

.menunav-link:hover {
  opacity: 0.85;
  color: inherit;
}

.icon-menunav {
  width: 20px;
  height: 20px;
  margin-right: 10px;
  fill: #fff;
  flex-shrink: 0;
}

.menunav-top {
  margin-bottom: 20px;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* ── Logo ────────────────────────────────────────────────── */
.logo {
  position: relative;
  z-index: 1005;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 56px;
  margin: 0 auto;
  text-align: center;
  color: #fff;
  text-decoration: none;
}
.logo img,
.logo-img { 
  display: block; 
  width: 100%; 
  height: auto;
  object-fit: contain;
}
.cs-logo-text { display: block; font-size: 18px; font-weight: 700; color: #fff; padding-top: 16px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── Search icon shape ───────────────────────────────────── */
.search-icon {
  position: relative;
  display: block;
  width: 20px;
  height: 20px;
  padding-right: 5px;
  transform: rotate(-45deg);
  border: 2px solid #fff;
  border-radius: 100%;
}

.header .search-icon {
  width: 16px;
  height: 16px;
}

.search-icon::after {
  position: absolute;
  top: 16px;
  left: 50%;
  display: block;
  width: 2px;
  height: 8px;
  content: "";
  background-color: #fff;
}

.header .search-icon::after {
  top: 12px;
}

/* ── Search input box ────────────────────────────────────── */
.search {
  position: absolute;
  z-index: 1005;
  top: 10px;
  right: 20px;
  overflow: hidden;
  width: 0;
  height: 36px;
  transition: all ease 0.25s;
  border-radius: 36px;
  background-color: #fff;
  -ms-border-radius: 36px;
  -o-border-radius: 36px;
}

.search-form {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 224px;
  height: 100%;
}

.header .search-form {
  padding-left: 16px;
}

.header .sea-text {
  font-size: 14px;
  flex: 1;
  height: 100%;
  border: none;
  border-radius: 0;
  padding: 0;
  width: auto;
  outline: none;
  background: transparent;
}

.sea-btn {
  position: absolute;
  right: 0;
  flex: 0 0 48px;
  width: 48px;
  height: 100%;
  background: none;
  border: none;
  cursor: pointer;
}

/* ── 768px ───────────────────────────────────────────────── */
@media screen and (min-width: 768px) {
  .logo { width: 160px; height: 56px; }
}

/* ── 1200px ──────────────────────────────────────────────── */
@media screen and (min-width: 1200px) {
  .new-navfix {
    display: none;
  }

  .header {
    position: relative;
  }

  .header-con,
  .menunav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 63px;
  }

  .navfix {
    position: static;
  }

  .menunav {
    min-height: 64px;
    max-height: none;
    overflow: visible;
    padding-right: 0;
    padding-left: 0;
    background: 0 0;
  }

  .logo {
    height: 63px;
    flex: 0 0 200px;
    width: 200px;
  }
  .logo img,
  .logo-img { width: 100%; 
    height: auto;
  }

  .menunav-link {
    font-size: 14px;
    font-weight: 700;
    line-height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 20px;
    color: #fff;
    white-space: nowrap;
  }

  .menunav-link:hover {
    position: relative;
    opacity: 0.85;
  }

  .icon-menunav {
    fill: #fff;
  }

  .menunav-top {
    display: flex;
    margin-bottom: 0;
    padding-bottom: 0;
    border-width: 0;
    border-bottom: none;
  }

  .menunav-active {
    position: relative;
    color: #c23838;
  }

  .menunav-active::before {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 6px;
    content: "";
    background-color: #c23838;
  }

  .header .wrapper {
    max-width: 1136px;
    margin: 0 auto;
  }

  .mb-store-txt,
  .search-icon-wp,
  .select-label,
  .topmenu-box {
    display: none;
  }

  .search {
    position: relative;
    top: 0;
    right: 0;
    width: 420px;
    margin-left: 32px;
    border: 1px solid #eee;
    overflow: visible;
  }

  /* search-pos = magnifying glass icon inside box */
  .search-pos {
    display: block;
    position: absolute;
    top: 50%;
    right: 12px;
    margin-top: -9px;
  }
  .search-pos .search-icon { border-color: #c23838; }
  .search-pos .search-icon::after { background-color: #c23838; }
}
