/* HAWK public commerce: readable, responsive, and app-friendly. */
.hawk-shop-shell {
  display: grid;
  grid-template-columns: minmax(190px, 235px) minmax(0, 1fr);
  align-items: start;
  gap: 26px;
  padding-top: 28px;
  padding-bottom: 42px;
}

.hawk-shop-sidebar {
  position: sticky;
  top: 18px;
  border: 1px solid #e0e8ed;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}

.hawk-shop-sidebar-mobile > summary { display: none; }
.hawk-shop-sidebar-inner { display: flex; flex-direction: column; padding: 18px; gap: 10px; }
.hawk-shop-sidebar-inner h2 { font-size: 17px; color: #173b57; margin: 0 0 8px; }
.hawk-shop-sidebar-inner a { color: #1764a2; text-decoration: none; padding: 7px 0; }
.hawk-shop-sidebar-inner a:hover { text-decoration: underline; }

.hawk-commerce { min-width: 0; color: #173b57; }
.hawk-commerce h1 { margin: 0 0 20px; }
.hawk-commerce-panel {
  background: #fff;
  border: 1px solid #e0e8ed;
  border-radius: 14px;
  padding: 20px;
  margin: 14px 0;
  box-shadow: 0 5px 20px #173b570d;
}
.hawk-commerce-line {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e0e8ed;
  padding: 14px 0;
}
.hawk-commerce-line strong { flex: 1; }
.hawk-commerce button,
.hawk-commerce .hawk-commerce-btn {
  background: #173b57;
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 10px 17px;
  min-height: 42px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.hawk-commerce button:disabled { opacity: .5; cursor: not-allowed; }
.hawk-commerce input,
.hawk-commerce select,
.hawk-commerce textarea {
  border: 1px solid #cbd5df;
  border-radius: 7px;
  padding: 10px;
  max-width: 100%;
}
.hawk-commerce label { display: block; margin: 12px 0; }
.hawk-commerce label input,
.hawk-commerce label select,
.hawk-commerce label textarea { display: block; width: 100%; margin-top: 5px; }
.hawk-commerce textarea { min-height: 90px; }
.hawk-commerce-table { width: 100%; border-collapse: collapse; }
.hawk-commerce-table td,
.hawk-commerce-table th { padding: 12px; border-bottom: 1px solid #e5edf1; text-align: left; }
.hawk-commerce-table input[type="number"] { width: 75px; }
.hawk-commerce-actions { display: flex; gap: 7px; align-items: center; }
.hawk-commerce-actions button { padding: 7px 12px; }
.hawk-commerce-summary { text-align: right; font-size: 22px; font-weight: 700; margin: 20px 0; }
.hawk-commerce a { color: #1764a2; }
.hawk-cart-thumb { width: 76px; height: 76px; object-fit: cover; border-radius: 8px; border: 1px solid #e0e8ed; flex-shrink: 0; }
.hawk-cart-info { flex: 1; display: flex; flex-direction: column; gap: 5px; min-width: 140px; }
.hawk-cart-info small { color: #667887; }
.hawk-cart-info span { font-weight: 600; }
.hawk-wholesale-table-wrap { overflow-x: auto; }

@media (max-width: 800px) {
  .hawk-shop-shell { grid-template-columns: 1fr; gap: 14px; padding: 14px; }
  .hawk-shop-sidebar { position: static; }
  .hawk-shop-sidebar-mobile > summary {
    display: block;
    cursor: pointer;
    padding: 14px 18px;
    color: #173b57;
    font-weight: 700;
  }
  .hawk-shop-sidebar-mobile:not([open]) .hawk-shop-sidebar-inner { display: none; }
  .hawk-commerce-panel { padding: 15px; }
}
@media (max-width: 700px) {
  .hawk-commerce-table { font-size: 12px; min-width: 590px; }
  .hawk-commerce-table td, .hawk-commerce-table th { padding: 6px; }
  .hawk-commerce-line { flex-wrap: wrap; }
  .hawk-cart-info { min-width: 170px; }
}

/* Wholesale catalog: list view, collection filters, and order summary. */
.hawk-wholesale-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.hawk-wholesale-heading h2 { margin: 0; font-size: 21px; }
.hawk-wholesale-heading input { width: min(100%, 300px); }
.hawk-wholesale-filter { background: transparent !important; color: #173b57 !important; border: 0 !important; text-align: left; padding: 10px 12px !important; min-height: 38px !important; }
.hawk-wholesale-filter.is-active { background: #e8f2f7 !important; font-weight: 700; }
.hawk-wholesale-filter-note { color: #697e8e; font-size: 13px; }
.hawk-wholesale-table-wrap .hawk-commerce-table td:first-child { min-width: 220px; }
.hawk-wholesale-table-wrap .hawk-commerce-table td:first-child img { width: 62px; height: 62px; object-fit: contain; vertical-align: middle; margin-right: 10px; border-radius: 8px; }
.hawk-wholesale-product-info { display: inline-flex; flex-direction: column; gap: 5px; vertical-align: middle; }
.hawk-wholesale-table-wrap tr[hidden] { display: none; }
.hawk-wholesale-table-wrap [data-add-to-order] { white-space: nowrap; }
.hawk-wholesale-order-line { display: flex; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid #e0e8ed; }
.hawk-wholesale-order-line span { flex: 1; }
.hawk-commerce .hawk-wholesale-remove { background: #f2f5f7; color: #173b57; padding: 7px 12px; }
@media (max-width: 700px) { .hawk-wholesale-heading { align-items: stretch; flex-direction: column; } .hawk-wholesale-heading input { width: 100%; } .hawk-wholesale-order-line { flex-wrap: wrap; } }


/* Collection thumbnail navigation on wholesale order page. */
.hawk-wholesale-filter-with-image {
  display: flex !important;
  align-items: center;
  gap: 11px;
  width: 100%;
}

.hawk-wholesale-collection-thumb {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  object-fit: contain;
  border: 1px solid #e0e8ed;
  border-radius: 9px;
  background: #fff;
}

.hawk-wholesale-collection-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e8f2f7;
  color: #173b57;
  font-weight: 800;
}

/* Signed-in customer navigation and profile menu. */
.site-header .header-inner { gap: 18px; }
.site-header .main-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.hawk-account-menu { position: relative; }
.hawk-account-menu > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
.hawk-avatar {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #173b57;
  color: #fff;
}
.hawk-account-dropdown {
  position: absolute;
  z-index: 50;
  top: calc(100% + 12px);
  right: 0;
  width: 190px;
  padding: 9px;
  border: 1px solid #dce7ee;
  border-radius: 12px;
  background: white;
  box-shadow: 0 12px 25px #173b5726;
}
.hawk-account-dropdown a { display: block; padding: 9px; color: #173b57; }
.hawk-portal { max-width: 1050px; margin: 32px auto; padding: 20px; color: #173b57; }
.hawk-portal-card { padding: 24px; background: white; border: 1px solid #e0e8ed; border-radius: 14px; }
.hawk-portal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.hawk-portal label { display: block; margin: 12px 0; }
.hawk-portal input { display: block; width: 100%; padding: 11px; border: 1px solid #cbd5df; border-radius: 7px; }
.hawk-portal button { background: #173b57; color: white; border: 0; border-radius: 8px; padding: 12px 20px; cursor: pointer; }
.hawk-portal-table { width: 100%; border-collapse: collapse; }
.hawk-portal-table th, .hawk-portal-table td { padding: 12px; text-align: left; border-bottom: 1px solid #e0e8ed; }
@media (max-width: 800px) {
  .hawk-portal-grid { grid-template-columns: 1fr; }
  .hawk-portal-card { overflow-x: auto; }
  .site-header .main-nav { gap: 10px; }
}


/* Customer portal: unified navigation, account menu and responsive surfaces. */
.hawk-portal-header .header-inner { gap: 24px; }
.hawk-portal-header .main-nav { margin-left: auto; gap: 22px; }
.hawk-portal-header .hawk-account-menu > summary {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px;
  border-radius: 30px;
}
.hawk-portal-header .hawk-account-menu > summary:hover { background: #edf4f8; }
.hawk-portal-header .hawk-avatar {
  width: 42px;
  height: 42px;
  font-size: 14px;
  letter-spacing: .4px;
}
.hawk-account-chevron { color: #173b57; font-size: 20px; }
.hawk-account-dropdown { width: 240px; }
.hawk-account-dropdown-name {
  margin: 4px 8px 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e0e8ed;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.hawk-account-dropdown .hawk-logout-link { color: #a33333; border-top: 1px solid #e0e8ed; }
.hawk-portal-shell {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  align-items: start;
  gap: 26px;
  padding-top: 30px;
  padding-bottom: 60px;
}
.hawk-portal-sidebar {
  position: sticky;
  top: 20px;
  background: #fff;
  border: 1px solid #dfe8ef;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 28px #173b5708;
}
.hawk-portal-sidebar-collapse > summary { display: none; }
.hawk-portal-sidebar-inner { display: flex; flex-direction: column; padding: 17px 12px; gap: 3px; }
.hawk-portal-nav-heading {
  margin: 8px 12px;
  color: #73899a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
}
.hawk-portal-sidebar-inner a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 9px;
  text-decoration: none;
  font-size: 13px;
  color: #173b57;
}
.hawk-portal-sidebar-inner a:hover { background: #f1f6f9; }
.hawk-portal-sidebar-inner a.is-current {
  background: #e8f1f7;
  font-weight: 700;
  color: #173b57;
}
.hawk-portal-nav-divider { height: 1px; background: #e6edf2; margin: 12px 8px; }
.hawk-portal-main { min-width: 0; max-width: none; margin: 0; padding: 0; }
.hawk-portal-main h1 { font-size: clamp(25px, 3vw, 34px); margin: 3px 0 22px; }
.hawk-portal-main .hawk-portal-card {
  border-radius: 16px;
  border-color: #e0e8ed;
  box-shadow: 0 8px 30px #173b570b;
}
.hawk-portal-main .hawk-portal-table { min-width: 520px; }
.hawk-portal-main .hawk-portal-table thead { background: #f5f9fc; }
.hawk-portal-main .hawk-portal-table th { color: #173b57; font-size: 13px; }
.hawk-portal-main .hawk-portal-table tbody tr:hover { background: #f8fbfd; }
.hawk-wholesale-sidebar-stack { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.hawk-wholesale-sidebar-stack .hawk-portal-sidebar,
.hawk-wholesale-sidebar-stack .hawk-shop-sidebar { position: static; width: 100%; }
@media (max-width: 850px) {
  .hawk-portal-shell { grid-template-columns: 1fr; padding: 18px 14px 40px; gap: 16px; }
  .hawk-portal-sidebar { position: static; }
  .hawk-portal-sidebar-collapse > summary {
    display: block;
    padding: 14px 18px;
    cursor: pointer;
    font-weight: 700;
    color: #173b57;
  }
  .hawk-portal-sidebar-collapse:not([open]) .hawk-portal-sidebar-inner { display: none; }
  .hawk-portal-header .main-nav { gap: 10px; }
  .hawk-portal-header .main-nav > a { font-size: 12px; }
}
.hawk-order-status { display: inline-block; padding: 6px 10px; border-radius: 20px; background: #e9f3f8; color: #174d69; font-weight: 700; font-size: 12px; }


/* Customer portal compact headings, consistent with the wholesale storefront. */
.hawk-portal-main h1,
.hawk-shop-shell .hawk-commerce > h1 {
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.22;
  margin: 0 0 9px;
  letter-spacing: -0.02em;
}
.hawk-portal-main h1 + p,
.hawk-shop-shell .hawk-commerce > h1 + p {
  margin-top: 0;
  margin-bottom: 14px;
}
.hawk-portal-shell { padding-top: 22px; }
.hawk-portal-main .hawk-portal-card { margin-top: 10px; }
.hawk-portal-sidebar-inner .hawk-nav-primary,
.hawk-portal-sidebar-inner .hawk-nav-browse {
  background: #173b57;
  color: white;
  font-weight: 700;
  margin-bottom: 7px;
}
.hawk-portal-sidebar-inner .hawk-nav-primary:hover,
.hawk-portal-sidebar-inner .hawk-nav-browse:hover,
.hawk-portal-sidebar-inner .hawk-nav-primary.is-current {
  background: #245879;
  color: white;
}
.hawk-nav-settings > summary {
  display: flex;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 9px;
  color: #173b57;
  cursor: pointer;
  font-size: 13px;
  list-style-position: inside;
}
.hawk-nav-settings > summary:hover { background: #f1f6f9; }
.hawk-nav-settings-items { padding-left: 15px; }
.hawk-nav-settings-items a { font-size: 12px; }
.hawk-dashboard-intro { color: #647c8e; }
.hawk-dashboard-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0;
}
.hawk-dashboard-card {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 20px;
  border: 1px solid #e0e8ed;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 5px 18px #173b5708;
}
.hawk-dashboard-icon { font-size: 19px; color: #64859b; }
.hawk-dashboard-card strong { font-size: 25px; line-height: 1.2; color: #173b57; }
.hawk-dashboard-card small { color: #657d8e; }
.hawk-dashboard-recent { padding: 20px; }
.hawk-dashboard-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hawk-dashboard-section-heading h2 { font-size: 18px; margin: 0 0 10px; }
.hawk-dashboard-order { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid #e0e8ed; text-decoration: none; color: #173b57; }
.hawk-dashboard-order:last-child { border-bottom: none; }
.hawk-dashboard-order small { display: block; margin-top: 5px; color: #607789; }
.hawk-dashboard-quick-link { display: inline-block; margin-top: 16px; padding: 12px 17px; background: #173b57; border-radius: 9px; color: white; font-weight: 700; text-decoration: none; }
@media (max-width: 550px) {
  .hawk-dashboard-cards { gap: 9px; }
  .hawk-dashboard-card { padding: 14px; }
  .hawk-dashboard-card strong { font-size: 20px; }
}


/* Wholesale collections landing and horizontal sub-collection navigation. */
.hawk-wholesale-collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: 17px;
  margin-top: 14px;
}
.hawk-wholesale-collection-card {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 12px;
  border: 1px solid #e0e8ed;
  border-radius: 16px;
  background: #fff;
  text-align: center;
  text-decoration: none;
  color: #173b57;
  box-shadow: 0 6px 18px #173b570b;
  transition: transform .15s, border-color .15s;
}
.hawk-wholesale-collection-card:hover { transform: translateY(-3px); border-color: #91b2c8; }
.hawk-wholesale-collection-image {
  display: grid;
  place-items: center;
  aspect-ratio: 1.25;
  border-radius: 11px;
  overflow: hidden;
  background: #f6f9fc;
  color: #173b57;
  font-size: 34px;
  font-weight: 800;
}
.hawk-wholesale-collection-image img { width: 100%; height: 100%; object-fit: contain; }
.hawk-wholesale-collection-action { color: #1764a2; font-size: 12px; }
.hawk-wholesale-collection-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px;
  border-radius: 9px;
  color: #173b57;
  text-decoration: none;
}
.hawk-wholesale-collection-nav img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 7px;
  background: #f3f7fa;
}
.hawk-wholesale-collection-nav.is-active { background: #e4f1f8; font-weight: 700; }
.hawk-wholesale-selected-collection {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 5px 0 12px;
  font-size: 14px;
}
.hawk-wholesale-subcollections {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 5px 2px 15px;
  margin-bottom: 5px;
  scrollbar-width: thin;
}
.hawk-commerce .hawk-wholesale-subcard {
  flex: 0 0 126px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 10px;
  background: #fff;
  color: #173b57;
  border: 2px solid #e0e8ed;
  border-radius: 12px;
  font-size: 12px;
  text-align: center;
  min-height: 118px;
}
.hawk-commerce .hawk-wholesale-subcard img,
.hawk-wholesale-subcard-image {
  width: 65px;
  height: 65px;
  object-fit: contain;
  border-radius: 8px;
  background: #f2f6fa;
}
.hawk-wholesale-subcard-image { display: grid; place-items: center; font-size: 24px; }
.hawk-commerce .hawk-wholesale-subcard.is-active {
  border-color: #168464;
  background: #eaf8f2;
  box-shadow: 0 0 0 2px #1684641a;
}
.hawk-commerce button.hawk-wholesale-submit {
  background: #14835e;
  color: #fff;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 6px 16px #14835e30;
}
.hawk-commerce button.hawk-wholesale-submit:hover { background: #106c4e; }
@media (max-width: 650px) {
  .hawk-wholesale-collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .hawk-wholesale-collection-card { padding: 9px; }
  .hawk-commerce .hawk-wholesale-subcard { flex-basis: 110px; }
}

.hawk-portal-sidebar-inner .hawk-nav-quick-order {
  border: 1px solid #b7d3c9;
  background: #eaf7f1;
  color: #126648;
  font-weight: 700;
}
.hawk-portal-sidebar-inner .hawk-nav-quick-order:hover { background: #d7f0e4; }
