/* Custom styles for Pax Trail (root-level override, survives theme updates) */

/* Header & Navigation Dropdown */
.header .menu {
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
}

.header .menu-left {
  float: none;
  display: flex;
  align-items: center;
}

.header .menu-right {
  float: none;
  display: flex;
  align-items: center;
  gap: 24px;
}

.header .menu-right > a,
.header .menu-dropdown-toggle {
  margin-left: 0;
  line-height: 80px;
  font-size: 18px;
  font-weight: 500;
  color: #fff;
  font-family: "Montserrat", sans-serif;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.header .menu-right > a:hover,
.header .menu-dropdown-toggle:hover {
  color: #d4d4d4;
}

.menu-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.menu-caret {
  font-size: 12px;
  color: #fff;
  line-height: 1;
}

.menu-submenu {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  min-width: 210px;
  background-color: #000;
  border: 1px solid #262626;
  border-radius: 6px;
  padding: 6px 0;
  z-index: 1000;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.header .menu-submenu a {
  display: block;
  margin-left: 0;
  line-height: 1.4;
  font-size: 15px;
  font-weight: 500;
  padding: 10px 16px;
  color: #fff;
  white-space: nowrap;
}

.header .menu-submenu a:hover {
  background-color: #222;
}

.menu-dropdown:hover .menu-submenu,
.menu-dropdown:focus-within .menu-submenu {
  display: block;
}

/* Category Page */
.category-page {
  margin: 30px auto 20px;
}

.category-header {
  margin: 0 0 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #ececec;
}

.category-title {
  font-family: "Montserrat", sans-serif;
  font-size: 34px;
  font-weight: 700;
  color: #000;
  margin-bottom: 8px;
}

.category-subtitle {
  font-family: "Montserrat", sans-serif;
  color: #555;
  font-size: 15px;
  line-height: 24px;
}

.category-empty {
  margin: 28px 0;
  font-family: "Montserrat", sans-serif;
  color: #666;
  font-size: 15px;
}

/* Newsletter Subscribe Box */
.subscribe-box {
  margin: 24px 0 36px;
  padding: 24px 26px;
  background-color: #f8f8f8;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  font-family: "Montserrat", sans-serif;
}

.subscribe-title {
  font-size: 19px;
  font-weight: 700;
  color: #000;
  margin-bottom: 6px;
}

.subscribe-desc {
  font-size: 14px;
  line-height: 22px;
  color: #444;
  margin-bottom: 16px;
}

.subscribe-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.subscribe-input {
  flex: 1 1 240px;
  padding: 11px 14px;
  font-size: 14px;
  font-family: "Montserrat", sans-serif;
  border: 1px solid #ccc;
  border-radius: 5px;
  background: #fff;
  color: #000;
  outline: none;
}

.subscribe-input:focus {
  border-color: #000;
}

.subscribe-button {
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 600;
  font-family: "Montserrat", sans-serif;
  background-color: #000;
  color: #fff;
  border: 0;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.subscribe-button:hover {
  background-color: #2b2b2b;
}

.subscribe-button:disabled {
  background-color: #666;
  cursor: not-allowed;
}

.subscribe-note {
  margin-top: 10px;
  font-size: 12px;
  line-height: 18px;
  color: #777;
}

.subscribe-status {
  margin-top: 6px;
  font-size: 13px;
  line-height: 20px;
  color: #b91c1c;
  min-height: 20px;
}

.subscribe-success {
  margin-top: 8px;
  font-size: 15px;
  font-weight: 600;
  line-height: 24px;
  color: #166534;
}

/* Mobile Responsive */
@media only screen and (max-width: 767px) {
  .header .menu {
    min-height: 68px;
  }

  .header .menu-left img {
    width: 40px;
    height: 40px;
  }

  .header .menu-right {
    gap: 12px;
  }

  .header .menu-right > a,
  .header .menu-dropdown-toggle {
    line-height: 68px;
    font-size: 14px;
    white-space: nowrap;
  }

  .menu-submenu {
    min-width: 185px;
  }

  .category-title {
    font-size: 28px;
  }

  .subscribe-box {
    padding: 20px;
  }

  .subscribe-fields {
    flex-direction: column;
  }

  .subscribe-input {
    flex: 0 0 auto;
    height: 44px;
    width: 100%;
    box-sizing: border-box;
  }

  .subscribe-button {
    width: 100%;
    box-sizing: border-box;
  }
}
