.wc-utility-bar {
  background: var(--w-soft);
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 11.5px;
  border-bottom: 1px solid var(--w-border-2);
  padding: 7px 24px;
}

.wc-utility-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wc-utility-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.wc-utility-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.wc-utility-disabled {
  color: var(--w-text-3);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: default;
  /* opacity: 0.5; */
}

.wc-utility-bar a {
  color: var(--w-text-2);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.wc-utility-sep {
  color: var(--w-border-2);
}

.wc-utility-strong {
  color: var(--w-text);
  font-weight: 600;
}

.wc-utility-icon {
  font-size: 12px;
  opacity: 0.65;
}

.wc-utility-cart {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 11px;
}

.wc-header {
  background: var(--w-surface);
  border-bottom: 1px solid var(--w-border);
  width: 100%;
}

.wc-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wc-logo-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
}

.wc-logo-image {
  width: 70px;
  height: 44px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.wc-logo-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.wc-logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 4px;
  background: var(--w-text);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "IBM Plex Mono", monospace;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.5px;
}

.wc-logo-text {
  line-height: 1.1;
}

.wc-logo-name {
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--w-text);
}

.wc-tagline {
  font-family: "IBM Plex Mono", monospace;
  font-size: 9.5px;
  color: var(--w-text-3);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

.wc-header-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.wc-search-wrap {
  position: relative;
}

/* Input field — AWS and WooCommerce default */
.wc-search-wrap .aws-container .aws-search-field,
.wc-search-wrap .woocommerce-product-search .search-field {
  border: 1px solid var(--w-border) !important;
  border-radius: 3px !important;
  padding: 6px 14px 6px 36px !important;
  font-size: 13px !important;
  width: 240px !important;
  color: var(--w-text) !important;
  font-family: inherit !important;
  background: var(--w-bg) !important;
  height: auto !important;
  transition: all 0.2s ease;
}

.wc-search-wrap .aws-container .aws-search-field:focus,
.wc-search-wrap .woocommerce-product-search .search-field:focus {
  outline: none !important;
  border-color: var(--w-text) !important;
  background: #fff !important;
}

/* Search icon — AWS uses its own SVG button; WooCommerce gets a ::before on the form */
.wc-search-wrap .aws-search-btn {
  position: absolute !important;
  left: 11px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  background: transparent !important;
  border: none !important;
  width: auto !important;
  height: auto !important;
  z-index: 2;
  pointer-events: none;
}

.wc-search-wrap .aws-search-btn_icon svg {
  fill: var(--w-text-3) !important;
  width: 14px !important;
  height: 24px !important;
}

.wc-search-wrap .aws-form-btn {
  padding: 0 !important;
}

.wc-search-wrap .woocommerce-product-search {
  position: relative;
}

.wc-search-wrap .woocommerce-product-search::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%236a655d' d='M15.5 14h-.79l-.28-.27A6.47 6.47 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
  z-index: 2;
}

.wc-search-wrap .woocommerce-product-search button[type="submit"] {
  display: none !important;
}

.wc-icon-btn {
  text-decoration: none;
  color: var(--w-text);
  font-size: 22px;
  display: flex;
  align-items: center;
  position: relative;
}

.wc-icon-btn:hover {
  color: var(--w-text);
}

.wc-action-buttons {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
}

.wc-account-btn {
  background: none;
  border: 1px solid var(--w-border);
  border-radius: 3px;
  padding: 8px 14px;
  font-size: 13px;
  cursor: pointer;
  color: var(--w-text);
  font-family: inherit;
  font-weight: 500;
}

.wc-account-btn:hover {
  background: var(--w-soft);
}

.wc-account-btn a {
  text-decoration: none;
  font-size: 13px;
  cursor: pointer;
  color: var(--w-text);
  font-family: inherit;
  font-weight: 500;
}

.wc-cart-count {
  position: absolute;
  top: -8px;
  right: -12px;
  background: var(--w-accent);
  color: #ffffff;
  font-size: 10px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 50px;
  min-width: 12px;
  text-align: center;
  font-family: sans-serif;
}

.wc-nav {
  background: var(--w-text);
}

.wc-nav-inner {
  max-width: 1200px;
  gap: 24px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
}

.wc-nav a {
  color: var(--w-border-2);
  text-decoration: none;
  padding: 13px 6px;
  font-size: 13px;
  font-weight: 600;
  display: block;
  letter-spacing: 0.2px;
  font-family: "IBM Plex Sans", sans-serif;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}

.wc-nav a:hover {
  color: #fff;
}

.wc-nav a.active {
  color: #fff;
  border-bottom-color: var(--w-accent);
}

.wc-nav-item-wrap {
  position: relative;
}

.wc-nav-item-wrap > a {
  display: flex;
  align-items: center;
  gap: 5px;
}

.wc-nav-chevron {
  font-size: 9px;
  opacity: 0.6;
}

.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: max-content;
  min-width: 350px;
  max-width: calc(100vw - 48px);
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--w-border-2);
  border-top: 3px solid var(--w-accent);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
  padding: 24px 28px;
  z-index: 30;
  display: none;
  flex-direction: row;
  gap: 32px;
}

.mega-col {
  width: 100%;
  flex-shrink: 0;
}

.mega-feature {
  width: 260px;
  flex-shrink: 0;
  background: var(--w-soft);
  padding: 16px;
  border: 1px solid var(--w-border);
}

@media (min-width: 993px) {
  .wc-nav-item-wrap:hover .mega-menu {
    display: grid;
  }
}

.wc-nav .mega-menu a,
.wc-nav .mega-menu a.active {
  padding: 0;
  border-bottom: none;
  margin-bottom: 0;
  font-weight: 600;
  letter-spacing: normal;
  color: var(--w-text-2);
}

.wc-nav .mega-menu a:hover {
  background: transparent;
  color: var(--w-text);
}

.mega-col h4 {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--w-text);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--w-text);
}

.mega-col ul {
  list-style: none;
  margin: 0;
}

.mega-col li {
  padding: 5px 0;
}

.mega-col a {
  font-size: 13px;
  color: var(--w-text-2);
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  gap: 15px;
}

.mega-col a:hover {
  color: var(--w-text);
}

.mega-col .mm-count {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px;
  color: var(--w-text-3);
  flex-shrink: 0;
  margin-left: auto;
}

.mega-feature h5 {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--w-text);
}

.mega-feature p {
  font-size: 12px;
  color: var(--w-text-2);
  margin-bottom: 12px;
  line-height: 1.5;
}

.mega-feature .feature-link {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--w-text);
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
}

.mega-feature .feature-link:hover {
  color: var(--w-text);
}

.wc-nav-item-wrap .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid var(--w-border-2);
  border-top: 3px solid var(--w-accent);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
  padding: 10px 0;
  z-index: 30;
  display: none;
  min-width: 220px;
  list-style: none;
}

@media (min-width: 993px) {
  .wc-nav-item-wrap:hover .sub-menu {
    display: block;
  }
}

.wc-nav-item-wrap .sub-menu li a {
  padding: 8px 20px;
  color: var(--w-text-2);
  font-size: 13px;
  border: none;
  margin: 0;
  display: block;
  font-weight: normal;
  letter-spacing: normal;
}

.wc-nav-item-wrap .sub-menu li a:hover {
  background: var(--w-soft);
  color: var(--w-text);
}

.breadcrumb-bar {
  width: 100%;
}

.breadcrumb {
  padding: 12px 24px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--w-text-3);
  text-align: left;
}

.breadcrumb a {
  color: var(--w-text-2);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: var(--w-text);
}

.breadcrumb span {
  margin: 0 10px;
  color: var(--w-border-2);
}

@media (max-width: 992px) {
  html,
  body {
    overflow-x: visible !important;
  }

  #page {
    overflow-x: hidden !important;
    position: relative;
  }

  .wc-header {
    position: sticky;
    top: 0;
    z-index: 11000;
    background: var(--w-surface) !important;
    border-bottom: 1px solid var(--w-border);
  }

  .wc-header-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 16px 20px;
  }

  .wc-logo-wrap {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .wc-header-actions {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
  }

  .wc-search-wrap {
    flex: 1;
  }

  .wc-search-wrap .aws-container .aws-search-field,
  .wc-search-wrap .woocommerce-product-search .search-field {
    width: 100% !important;
    max-width: none !important;
  }

  .wc-search-wrap .woocommerce-product-search {
    width: 100%;
  }

  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--w-text) !important;
    border: none !important;
    border-radius: 4px;
    padding: 8px;
    cursor: pointer;
    color: #fff !important;
    z-index: 100;
    outline: none !important;
  }

  .mobile-menu-toggle:hover,
  .mobile-menu-toggle:focus,
  .mobile-menu-toggle:active,
  .mobile-menu-toggle.is-active {
    background: var(--w-text) !important;
    color: #fff !important;
  }

  .wc-nav {
    display: block !important;
    position: fixed;
    top: var(--mobile-nav-top, 135px);
    left: 0;
    right: 0;
    width: 100%;
    background: var(--w-text) !important;
    z-index: 10999;

    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition:
      max-height 0.35s ease,
      opacity 0.25s ease,
      visibility 0s 0.35s;
  }

  .wc-nav.is-active {
    max-height: var(--mobile-nav-height, calc(100vh - 135px));
    height: var(--mobile-nav-height, calc(100vh - 135px));
    padding-bottom: 24px;
    opacity: 1 !important;
    visibility: visible !important;
    overflow-y: auto;
    transition:
      max-height 0.35s ease,
      opacity 0.25s ease,
      visibility 0s 0s;
  }

  .wc-nav-inner {
    flex-direction: column;
    padding: 20px 24px 50px;
    align-items: stretch;
    text-align: left;
  }

  .wc-nav a {
    color: #fff;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: "IBM Plex Mono", monospace;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .wc-nav-item-wrap,
  .menu-item-has-children {
    width: 100%;
    position: relative;
    display: block;
  }

  .mega-menu,
  .sub-menu {
    display: block !important;
    position: relative !important;
    width: 100vw !important;
    max-width: none !important;
    left: 50% !important;
    transform: translateX(-50%) translateY(-10px) !important;

    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    background: rgba(0, 0, 0, 0.45) !important;
    list-style: none !important;
    padding: 0 24px !important;
    text-align: left;
    border: none !important;
    box-shadow: none !important;
  }

  .is-open > .mega-menu,
  .is-open > .sub-menu {
    max-height: 3000px !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(-50%) translateY(0) !important;
    padding: 25px 24px 35px !important;
  }

  .is-open > a {
    color: var(--w-accent) !important;
  }

  .wc-nav-chevron {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "IBM Plex Mono", monospace;
    font-size: 18px;
    transition: transform 0.3s ease;
  }

  .is-open .wc-nav-chevron {
    transform: rotate(180deg);
    color: var(--w-accent);
  }

  .mega-col {
    margin-bottom: 25px;
    width: 100% !important;
  }

  .mega-col h4 {
    font-size: 10px !important;
    color: var(--w-accent) !important;
    text-transform: uppercase;
    letter-spacing: 2px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    margin-bottom: 15px !important;
    padding-bottom: 8px !important;
    font-family: "IBM Plex Mono", monospace;
    font-weight: 600;
  }

  .mega-col ul {
    padding-left: 10px !important;
    margin: 0 !important;
    list-style: none !important;
  }

  .mega-col a {
    padding: 12px 0 !important;
    font-size: 14px !important;
    text-transform: none !important;
    font-weight: 400 !important;
    color: #cbd5e0 !important;
    border-bottom: none !important;
    display: flex !important;
    justify-content: space-between !important;
    font-family: "IBM Plex Sans", sans-serif !important;
  }

  .mega-col a:hover {
    color: #fff !important;
  }

  .mega-feature {
    display: none !important;
  }

  .wc-utility-bar {
    display: none !important;
  }

  .mobile-utility-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding-top: 20px;
    margin-top: 10px;
    width: 100%;
  }

  .mobile-utility-links a {
    font-size: 11px;
    color: #a8a39a;
    padding: 12px 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
    font-family: "IBM Plex Mono", monospace;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
  }

  .mobile-utility-links a:active,
  .mobile-utility-links a:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
  }
}

@media (max-width: 480px) {
  .wc-logo-name {
    font-size: 20px;
  }

  .wc-account-btn {
    display: none;
  }

  .wc-promo-inner {
    flex-wrap: wrap;
    text-align: center;
    padding: 10px 20px;
  }
}

.wc-promo-bar {
  background: var(--w-surface);
  border-bottom: 1px solid var(--w-border);
}

.wc-promo-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 7px 24px;
}

.wc-promo-brand {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
}

.wc-promo-brand img {
  width: 100%;
  height: 18px;
}

.wc-promo-icon {
  flex-shrink: 0;
  color: #269374;
}

.wc-promo-brand-text {
  font-family: inherit;
}

.wc-promo-backd {
  color: #1f1b16;
}

.wc-promo-payments {
  color: #269374;
}

.wc-promo-text {
  font-size: 13px;
  color: rgb(31, 27, 22);
}

.wc-promo-link {
  font-size: 13px;
  color: rgb(38, 147, 116);
  text-decoration: none;
}

.wc-promo-link:hover {
  text-decoration: underline;
}
