/* ==========================================================================
   Get Hosed Shop — Brand Theme
   Industrial / technical-schematic aesthetic
   ========================================================================== */

:root {
  --ghs-navy: #1B4F9C;
  --ghs-navy-deep: #0A2C57;
  --ghs-navy-darker: #071D3B;
  --ghs-charcoal: #2B2F33;
  --ghs-charcoal-deep: #1A1D20;
  --ghs-steel: #8B97A3;
  /* Steel dark enough to clear 4.5:1 on white; --ghs-steel only reaches 3.1:1 there
     and is meant for use on the dark navy surfaces. */
  --ghs-steel-dark: #5F6B77;
  --ghs-steel-light: #D7DEE4;
  --ghs-paper: #F4F6F8;
  --ghs-hose-blue: #3F8FE0;
  --ghs-amber: #FF7A1A;
  --ghs-amber-deep: #E2620A;

  --ghs-font-display: 'Bebas Neue', 'Arial Narrow', sans-serif;
  --ghs-font-body: 'Archivo', system-ui, sans-serif;
  --ghs-font-mono: 'JetBrains Mono', 'Courier New', monospace;

  --ghs-radius: 6px;
  --ghs-stripe: repeating-linear-gradient(
    -45deg,
    var(--ghs-navy) 0px,
    var(--ghs-navy) 14px,
    var(--ghs-steel-light) 14px,
    var(--ghs-steel-light) 28px
  );
}

body {
  font-family: var(--ghs-font-body);
  color: var(--ghs-charcoal);
  background-color: var(--ghs-paper);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ghs-font-display);
  letter-spacing: 0.02em;
}

/* ---------------------------------------------------------------------- */
/* Hazard stripe accent bar                                                 */
/* ---------------------------------------------------------------------- */
.ghs-stripe {
  height: 5px;
  background: var(--ghs-stripe);
}

/* ---------------------------------------------------------------------- */
/* Header / Navigation                                                      */
/* ---------------------------------------------------------------------- */
.ghs-topbar {
  background: var(--ghs-navy-darker);
  color: var(--ghs-steel-light);
  font-family: var(--ghs-font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}
.ghs-topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
  flex-wrap: wrap;
  gap: 0.25rem;
}
.ghs-topbar a {
  color: var(--ghs-steel-light);
  text-decoration: none;
}
.ghs-topbar a:hover {
  color: #fff;
}
.ghs-topbar .ghs-topbar-accent {
  color: var(--ghs-hose-blue);
}

.ghs-navbar {
  background: #fff;
  padding: 0.6rem 0;
  border-bottom: none;
}
.ghs-navbar .navbar-brand {
  display: flex;
  align-items: center;
  padding: 0;
}
.ghs-navbar .navbar-brand img {
  height: 46px;
  width: auto;
  display: block;
}
.ghs-navbar .nav-link {
  font-family: var(--ghs-font-body);
  font-weight: 600;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ghs-charcoal) !important;
  padding: 0.5rem 0.9rem !important;
  position: relative;
}
.ghs-navbar .nav-link::after {
  content: "";
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.1rem;
  height: 2px;
  background: var(--ghs-hose-blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.18s ease;
}
.ghs-navbar .nav-link:hover {
  color: var(--ghs-navy) !important;
}
.ghs-navbar .nav-link:hover::after {
  transform: scaleX(1);
}

.ghs-cart-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700 !important;
  color: var(--ghs-navy) !important;
}
.ghs-cart-link i {
  font-size: 1.2rem;
}

/* ---------------------------------------------------------------------- */
/* Buttons                                                                  */
/* ---------------------------------------------------------------------- */
.btn-ghs-primary {
  background: var(--ghs-navy);
  border: 2px solid var(--ghs-navy);
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  border-radius: var(--ghs-radius);
  transition: all 0.15s ease;
}
.btn-ghs-primary:hover {
  background: var(--ghs-navy-deep);
  border-color: var(--ghs-navy-deep);
  color: #fff;
}

.btn-ghs-amber {
  background: var(--ghs-amber);
  border: 2px solid var(--ghs-amber);
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  border-radius: var(--ghs-radius);
  transition: all 0.15s ease;
}
.btn-ghs-amber:hover {
  background: var(--ghs-amber-deep);
  border-color: var(--ghs-amber-deep);
  color: #fff;
}

.btn-ghs-outline {
  background: transparent;
  border: 2px solid var(--ghs-charcoal);
  color: var(--ghs-charcoal);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  border-radius: var(--ghs-radius);
  transition: all 0.15s ease;
}
.btn-ghs-outline:hover {
  background: var(--ghs-charcoal);
  border-color: var(--ghs-charcoal);
  color: #fff;
}

.btn-ghs-outline-light {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.55);
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  border-radius: var(--ghs-radius);
  transition: all 0.15s ease;
}
.btn-ghs-outline-light:hover {
  background: #fff;
  border-color: #fff;
  color: var(--ghs-navy-deep);
}

/* ---------------------------------------------------------------------- */
/* Footer                                                                   */
/* ---------------------------------------------------------------------- */
.ghs-footer {
  background: var(--ghs-paper);
  border-top: 5px solid transparent;
  border-image: var(--ghs-stripe) 5;
  padding-top: 2.5rem;
}
.ghs-footer h6 {
  font-family: var(--ghs-font-body);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  color: var(--ghs-navy);
  margin-bottom: 0.9rem;
}
.ghs-footer a {
  color: var(--ghs-charcoal);
  text-decoration: none;
}
.ghs-footer a:hover {
  color: var(--ghs-navy);
  text-decoration: underline;
}
.ghs-footer img.ghs-footer-logo {
  height: 40px;
  width: auto;
  margin-bottom: 0.75rem;
}
.ghs-footer-bottom {
  background: var(--ghs-navy-darker);
  color: var(--ghs-steel-light);
  font-family: var(--ghs-font-mono);
  font-size: 0.78rem;
  margin-top: 2rem;
  padding: 0.85rem 0;
}
.ghs-footer-bottom a {
  color: var(--ghs-hose-blue);
}

/* ---------------------------------------------------------------------- */
/* Misc shared bits                                                         */
/* ---------------------------------------------------------------------- */
.ghs-eyebrow {
  font-family: var(--ghs-font-mono);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.78rem;
  font-weight: 600;
}

.ghs-full-bleed {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

/* ---------------------------------------------------------------------- */
/* Hero                                                                     */
/* ---------------------------------------------------------------------- */
.ghs-hero {
  background: linear-gradient(160deg, var(--ghs-navy-deep) 0%, var(--ghs-navy-darker) 100%);
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0 4rem;
  color: #fff;
}
.ghs-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 48px);
  -webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000 0%, transparent 75%);
          mask-image: radial-gradient(ellipse at 30% 40%, #000 0%, transparent 75%);
  pointer-events: none;
}
.ghs-hero::after {
  content: "";
  position: absolute;
  top: -140px;
  right: -120px;
  width: 380px;
  height: 380px;
  background: var(--ghs-stripe);
  opacity: 0.10;
  transform: rotate(18deg);
  pointer-events: none;
}
.ghs-hero-inner {
  position: relative;
  z-index: 1;
}
.ghs-hero-title {
  font-size: clamp(2.75rem, 6.5vw, 5.25rem);
  line-height: 0.98;
  font-weight: 400;
  margin-bottom: 1.25rem;
}
.ghs-hero-title .text-accent {
  color: var(--ghs-hose-blue);
}
.ghs-hero-sub {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--ghs-steel-light);
  max-width: 540px;
  margin-bottom: 2rem;
}
.ghs-hero-search .form-control {
  font-family: var(--ghs-font-mono);
  font-size: 0.95rem;
  border: none;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}
.ghs-hero-search .form-control:focus {
  box-shadow: none;
}
.ghs-hero-search .input-group-text {
  background: #fff;
  border: none;
  color: var(--ghs-navy);
  padding-left: 1.1rem;
}
.ghs-hero-search .btn {
  padding-left: 1.75rem;
  padding-right: 1.75rem;
}
.ghs-hero-tags {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  font-size: 0.82rem;
  color: var(--ghs-steel-light);
}
.ghs-hero-tags .ghs-hero-tags-label {
  font-family: var(--ghs-font-mono);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.72rem;
  margin-right: 0.25rem;
}
.ghs-hero-tags a {
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  padding: 0.3rem 0.95rem;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.ghs-hero-tags a:hover {
  border-color: var(--ghs-hose-blue);
  color: var(--ghs-hose-blue);
}
.ghs-hero-art {
  width: 100%;
  max-width: 460px;
  filter: drop-shadow(0 24px 40px rgba(0,0,0,0.35));
}

/* ---------------------------------------------------------------------- */
/* Stats strip                                                              */
/* ---------------------------------------------------------------------- */
.ghs-stats {
  background: linear-gradient(135deg, var(--ghs-steel-light) 0%, #ffffff 55%, var(--ghs-steel-light) 100%);
  padding: 2.25rem 0;
  border-bottom: 1px solid rgba(10, 44, 87, 0.08);
}
.ghs-stat {
  text-align: center;
  padding: 0 0.5rem;
}
.ghs-stat i {
  font-size: 1.6rem;
  color: var(--ghs-hose-blue);
  display: block;
  margin-bottom: 0.4rem;
}
.ghs-stat .num {
  font-family: var(--ghs-font-display);
  font-size: 2.4rem;
  letter-spacing: 0.04em;
  color: var(--ghs-navy);
  line-height: 1;
}
.ghs-stat .label {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--ghs-charcoal);
  margin-top: 0.4rem;
}

/* ---------------------------------------------------------------------- */
/* Section heading                                                          */
/* ---------------------------------------------------------------------- */
.ghs-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.25rem;
}
.ghs-section-head h2 {
  font-size: clamp(2.1rem, 4vw, 2.85rem);
  line-height: 1;
  margin: 0.35rem 0 0;
  color: var(--ghs-charcoal);
  position: relative;
  padding-bottom: 0.65rem;
}
.ghs-section-head h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 5px;
  background: var(--ghs-hose-blue);
}

/* ---------------------------------------------------------------------- */
/* Category cards                                                           */
/* ---------------------------------------------------------------------- */
.ghs-cat-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid var(--ghs-steel-light);
  border-radius: var(--ghs-radius);
  padding: 1.85rem 1.6rem;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.ghs-cat-card:hover {
  border-color: var(--ghs-navy);
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(10, 44, 87, 0.12);
}
.ghs-cat-card .icon {
  display: block;
  width: 50px;
  height: 50px;
  color: var(--ghs-navy);
  margin-bottom: 1.4rem;
  transition: color 0.2s ease;
}
.ghs-cat-card:hover .icon {
  color: var(--ghs-hose-blue);
}
.ghs-cat-card h5 {
  font-family: var(--ghs-font-body);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}
.ghs-cat-card p {
  color: var(--ghs-steel);
  font-size: 0.88rem;
  margin-bottom: 1.25rem;
  min-height: 2.6rem;
}
.ghs-cat-card .browse {
  font-family: var(--ghs-font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ghs-navy);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.ghs-cat-card .browse i {
  display: inline-block;
  transition: transform 0.2s ease;
}
.ghs-cat-card:hover .browse i {
  transform: translateX(5px);
}

/* ---------------------------------------------------------------------- */
/* Product cards                                                            */
/* ---------------------------------------------------------------------- */
.ghs-product-card {
  background: #fff;
  border: 1px solid var(--ghs-steel-light);
  border-radius: var(--ghs-radius);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ghs-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(10, 44, 87, 0.10);
}
.ghs-product-card .img-wrap {
  background: #fff;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--ghs-steel-light);
}
.ghs-product-card .img-wrap img {
  max-height: 150px;
  max-width: 85%;
  object-fit: contain;
}
.ghs-product-card .body {
  padding: 1.1rem 1.2rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.ghs-product-card .cat-badge {
  align-self: flex-start;
  background: var(--ghs-navy);
  color: #fff;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  padding: 0.22rem 0.6rem;
  border-radius: 3px;
  margin-bottom: 0.6rem;
}
.ghs-product-card .name {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ghs-product-card .sku {
  font-family: var(--ghs-font-mono);
  font-size: 0.74rem;
  color: var(--ghs-steel);
  margin-bottom: 0.85rem;
}
.ghs-product-card .price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--ghs-steel-light);
}
.ghs-product-card .price {
  font-family: var(--ghs-font-display);
  font-size: 1.55rem;
  letter-spacing: 0.02em;
  color: var(--ghs-navy);
}
.ghs-product-card .price .from {
  font-family: var(--ghs-font-body);
  font-size: 0.7rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ghs-steel);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: -0.2rem;
}

/* ---------------------------------------------------------------------- */
/* CTA banner                                                               */
/* ---------------------------------------------------------------------- */
.ghs-cta {
  background: var(--ghs-charcoal-deep);
  color: #fff;
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.ghs-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ghs-stripe);
  opacity: 0.05;
}
.ghs-cta-inner {
  position: relative;
  z-index: 1;
}
.ghs-cta h2 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  margin-bottom: 1rem;
}
.ghs-cta p {
  color: var(--ghs-steel-light);
  max-width: 560px;
  margin: 0 auto 1.75rem;
  font-size: 1.05rem;
}

/* ---------------------------------------------------------------------- */
/* Product detail image carousel                                           */
/* ---------------------------------------------------------------------- */
.ghs-detail-image-wrap {
  max-width: 320px;
  margin: 0 auto;
}
.ghs-detail-image-wrap .carousel-item,
.ghs-detail-image-wrap .carousel-item img {
  height: 220px;
}
.ghs-detail-image-wrap .carousel-item {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--ghs-paper);
}
.ghs-detail-image-wrap .carousel-item img {
  width: auto;
  max-width: 100%;
  object-fit: contain;
  background-color: transparent;
}
.ghs-detail-thumb-wrap {
  max-width: 320px;
  margin: 0.75rem auto 0;
}
.ghs-detail-thumb-wrap img {
  height: 48px;
  width: 100%;
  object-fit: contain;
  background-color: var(--ghs-paper);
}
#productImageCarousel .carousel-control-prev-icon,
#productImageCarousel .carousel-control-next-icon {
  background-color: var(--ghs-navy);
  background-size: 60% 60%;
  border-radius: 50%;
}
#productImageCarousel .carousel-control-prev-icon:hover,
#productImageCarousel .carousel-control-next-icon:hover {
  background-color: var(--ghs-navy-deep);
}
#productImageCarousel .carousel-indicators [data-bs-target] {
  background-color: var(--ghs-navy);
  opacity: 0.5;
}
#productImageCarousel .carousel-indicators .active {
  background-color: var(--ghs-navy);
  opacity: 1;
}

/* ---------------------------------------------------------------------- */
/* Auth pages (Login / Register)                                           */
/* ---------------------------------------------------------------------- */
.ghs-auth-page {
  min-height: 65vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
}
.ghs-auth-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border: 1px solid var(--ghs-steel-light);
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(10, 44, 87, 0.10);
  padding: 2.5rem 2.25rem;
}
.ghs-auth-title {
  font-size: 2.1rem;
  margin-bottom: 0.35rem;
  color: var(--ghs-charcoal);
}
.ghs-auth-sub {
  color: var(--ghs-steel);
  font-size: 0.92rem;
  margin-bottom: 0;
}
.ghs-auth-divider {
  display: flex;
  align-items: center;
  color: var(--ghs-steel);
  font-family: var(--ghs-font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 1.5rem 0;
}
.ghs-auth-divider::before,
.ghs-auth-divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid var(--ghs-steel-light);
}
.ghs-auth-divider span {
  padding: 0 0.85rem;
}
.ghs-auth-link {
  font-size: 0.85rem;
  color: var(--ghs-navy);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}
.ghs-auth-link:hover {
  text-decoration: underline;
}
.ghs-auth-footer {
  font-size: 0.9rem;
  color: var(--ghs-steel);
}
.ghs-auth-footer a {
  color: var(--ghs-navy);
  font-weight: 700;
  text-decoration: none;
}
.ghs-auth-footer a:hover {
  text-decoration: underline;
}

/* Google button, per Google's sign-in branding guidelines */
.btn-google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  background: #fff;
  border: 1px solid #DADCE0;
  color: #3C4043;
  font-family: var(--ghs-font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--ghs-radius);
  padding: 0.65rem 1rem;
  transition: box-shadow 0.15s ease, background-color 0.15s ease;
}
.btn-google:hover {
  background: #F8F9FA;
  color: #3C4043;
  box-shadow: 0 1px 3px rgba(60,64,67,0.3), 0 4px 8px 3px rgba(60,64,67,0.15);
}
.btn-google svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Microsoft button, per Microsoft's sign-in branding guidelines */
.btn-microsoft {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  background: #fff;
  border: 1px solid #8C8C8C;
  color: #5E5E5E;
  font-family: var(--ghs-font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--ghs-radius);
  padding: 0.65rem 1rem;
  transition: box-shadow 0.15s ease, background-color 0.15s ease;
}
.btn-microsoft:hover {
  background: #F3F3F3;
  color: #5E5E5E;
  box-shadow: 0 1px 3px rgba(0,0,0,0.24), 0 4px 8px 3px rgba(0,0,0,0.12);
}
.btn-microsoft svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ---------------------------------------------------------------------- */
/* Legal / long-form content pages                                          */
/* ---------------------------------------------------------------------- */
.ghs-legal {
  max-width: 820px;
  margin: 0 auto;
  padding: 2.5rem 0 3rem;
}
.ghs-legal-head {
  border-bottom: 3px solid var(--ghs-navy);
  padding-bottom: 1rem;
  margin-bottom: 1.75rem;
}
.ghs-legal-head h1 {
  font-size: 2.75rem;
  color: var(--ghs-navy-deep);
  margin: 0.25rem 0 0.5rem;
}
.ghs-legal-updated {
  font-family: var(--ghs-font-mono);
  font-size: 0.8rem;
  color: var(--ghs-steel);
  margin: 0;
}
.ghs-legal-lead {
  font-size: 1.05rem;
  line-height: 1.7;
  padding: 1.1rem 1.25rem;
  background: #fff;
  border-left: 4px solid var(--ghs-amber);
  border-radius: var(--ghs-radius);
  margin-bottom: 2.25rem;
}
.ghs-legal h2 {
  font-size: 1.5rem;
  color: var(--ghs-navy-deep);
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
  scroll-margin-top: 1rem;
}
.ghs-legal p,
.ghs-legal li {
  line-height: 1.7;
  color: var(--ghs-charcoal);
}
.ghs-legal ul {
  margin-bottom: 1rem;
  padding-left: 1.25rem;
}
.ghs-legal li {
  margin-bottom: 0.4rem;
}
.ghs-legal a {
  color: var(--ghs-navy);
  text-decoration: underline;
}
.ghs-legal a:hover {
  color: var(--ghs-amber-deep);
}
.ghs-legal-alert-head {
  margin-bottom: 0.75rem;
}
.ghs-legal-alert {
  background: #FFF6EE;
  border: 1px solid var(--ghs-amber);
  border-left: 5px solid var(--ghs-amber);
  border-radius: var(--ghs-radius);
  padding: 1.1rem 1.25rem;
  margin-bottom: 1.25rem;
}
.ghs-legal-alert p {
  margin-bottom: 0.75rem;
}
.ghs-legal-contact {
  font-style: normal;
  line-height: 1.8;
  background: #fff;
  border: 1px solid var(--ghs-steel-light);
  border-radius: var(--ghs-radius);
  padding: 1.1rem 1.25rem;
}
@media (max-width: 575.98px) {
  .ghs-legal-head h1 {
    font-size: 2.1rem;
  }
  .ghs-legal {
    padding-top: 1.5rem;
  }
}

/* ---------------------------------------------------------------------- */
/* Admin shell                                                              */
/* ---------------------------------------------------------------------- */
.ghs-admin-body {
  background-color: var(--ghs-paper);
}
.ghs-admin-shell {
  min-height: 100vh;
  align-items: stretch;
}
.ghs-admin-sidebar {
  width: 240px;
  background: var(--ghs-navy-deep);
  color: #fff;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.ghs-admin-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1.2rem 1.25rem;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.ghs-admin-brand img {
  height: 28px;
}
.ghs-admin-brand span {
  font-family: var(--ghs-font-display);
  letter-spacing: 0.06em;
  font-size: 1.1rem;
}
.ghs-admin-nav {
  display: flex;
  flex-direction: column;
  padding: 0.75rem 0.6rem;
  gap: 0.15rem;
  flex: 1;
}
.ghs-admin-nav-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.85rem;
  border-radius: var(--ghs-radius);
  color: var(--ghs-steel-light);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.ghs-admin-nav-link i {
  font-size: 1rem;
  width: 1.1rem;
  text-align: center;
}
.ghs-admin-nav-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.ghs-admin-nav-link.active {
  background: var(--ghs-navy);
  color: #fff;
}
.ghs-admin-sidebar-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.ghs-admin-sidebar-footer a {
  color: var(--ghs-steel-light);
  text-decoration: none;
  font-size: 0.85rem;
}
.ghs-admin-sidebar-footer a:hover {
  color: #fff;
}
.ghs-admin-main {
  min-width: 0;
}
.ghs-admin-topbar {
  background: #fff;
  border-bottom: 1px solid var(--ghs-steel-light);
  padding: 0.85rem 1.5rem;
}
.ghs-admin-title {
  font-weight: 700;
  color: var(--ghs-navy-deep);
}
.ghs-admin-content {
  padding: 1.75rem;
}
@media (max-width: 767.98px) {
  .ghs-admin-sidebar {
    width: 72px;
  }
  .ghs-admin-brand span,
  .ghs-admin-nav-link span,
  .ghs-admin-sidebar-footer span {
    display: none;
  }
  .ghs-admin-nav-link {
    justify-content: center;
  }
}

/* ---------------------------------------------------------------------- */
/* Header part lookup                                                       */
/* ---------------------------------------------------------------------- */
/* Styled as a parts terminal rather than shop chrome: monospace input, a
   squared field, and a rule under it that lights amber on focus - the same
   signal language as the hazard stripe at the base of the header. */
.ghs-search {
  position: relative;
  flex: 0 1 27rem;
  min-width: 0;
  margin: 0;
}

.ghs-search-field {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(215, 222, 228, 0.22);
  border-radius: 3px;
  padding: 0.3rem 0.6rem;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.ghs-search-field::after {
  content: "";
  position: absolute;
  left: -1px;
  right: -1px;
  bottom: -1px;
  height: 2px;
  background: var(--ghs-amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.18s ease;
}
.ghs-search-field:hover {
  background: rgba(255, 255, 255, 0.1);
}
.ghs-search-field:focus-within {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(215, 222, 228, 0.4);
}
.ghs-search-field:focus-within::after {
  transform: scaleX(1);
}

.ghs-search-icon {
  color: var(--ghs-steel);
  font-size: 0.85rem;
  flex-shrink: 0;
}
.ghs-search-field:focus-within .ghs-search-icon {
  color: var(--ghs-amber);
}

.ghs-search-input {
  flex: 1 1 auto;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: 0;
  color: #fff;
  font-family: var(--ghs-font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  padding: 0.1rem 0;
}
.ghs-search-input::placeholder {
  color: var(--ghs-steel);
  opacity: 1;
  letter-spacing: 0.04em;
}
/* The browser's own clear affordance fights the mono/kbd alignment. */
.ghs-search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.ghs-search-key {
  flex-shrink: 0;
  font-family: var(--ghs-font-mono);
  font-size: 0.62rem;
  line-height: 1;
  color: var(--ghs-steel);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(215, 222, 228, 0.2);
  border-radius: 3px;
  padding: 0.2rem 0.36rem;
}
.ghs-search-field:focus-within .ghs-search-key {
  color: var(--ghs-steel-light);
}

/* ---- Suggestion panel ---- */
.ghs-search-panel {
  position: absolute;
  z-index: 1080;
  top: calc(100% + 0.4rem);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--ghs-steel-light);
  border-radius: var(--ghs-radius);
  box-shadow: 0 14px 34px rgba(7, 29, 59, 0.22);
  overflow: hidden;
  max-height: min(70vh, 27rem);
  overflow-y: auto;
}
.ghs-search-panel[hidden] {
  display: none;
}

.ghs-search-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "sku   price"
    "name  unit";
  gap: 0.1rem 0.75rem;
  padding: 0.5rem 0.8rem;
  border-bottom: 1px solid var(--ghs-paper);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.ghs-search-option:last-of-type {
  border-bottom: 0;
}
.ghs-search-option:hover,
.ghs-search-option.is-active {
  background: var(--ghs-paper);
}
.ghs-search-option.is-active {
  box-shadow: inset 3px 0 0 var(--ghs-amber);
}

.ghs-search-sku {
  grid-area: sku;
  font-family: var(--ghs-font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ghs-navy);
  overflow-wrap: anywhere;
}
.ghs-search-sku mark {
  background: rgba(255, 122, 26, 0.22);
  color: inherit;
  padding: 0;
  border-radius: 2px;
}
.ghs-search-name {
  grid-area: name;
  font-size: 0.76rem;
  color: var(--ghs-charcoal);
  opacity: 0.75;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ghs-search-price {
  grid-area: price;
  font-family: var(--ghs-font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ghs-charcoal);
  text-align: right;
  white-space: nowrap;
}
.ghs-search-unit {
  grid-area: unit;
  font-family: var(--ghs-font-mono);
  font-size: 0.66rem;
  color: var(--ghs-steel-dark);
  text-align: right;
  white-space: nowrap;
}

.ghs-search-all {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.8rem;
  border-top: 1px solid var(--ghs-steel-light);
  background: var(--ghs-paper);
  font-family: var(--ghs-font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ghs-navy);
  text-decoration: none;
  cursor: pointer;
}
.ghs-search-all:hover,
.ghs-search-all.is-active {
  background: var(--ghs-steel-light);
  color: var(--ghs-navy-deep);
}

.ghs-search-empty {
  padding: 0.85rem;
  font-size: 0.78rem;
  color: var(--ghs-steel-dark);
  text-align: center;
  margin: 0;
}

/* ---- Mobile row (topbar is hidden below md) ---- */
.ghs-search-row {
  background: var(--ghs-navy-darker);
  padding: 0.5rem 0;
}
.ghs-search-row .ghs-search {
  flex: 1 1 auto;
  width: 100%;
}
.ghs-search-row .ghs-search-input {
  font-size: 16px; /* below 16px iOS zooms the whole page on focus */
}

@media (max-width: 991.98px) {
  .ghs-search-key {
    display: none; /* no physical keyboard to press it with */
  }
  /* Tablet: the topbar is still shown but cannot hold both the freight line and a
     usable field without wrapping to two rows. Search is the working control here,
     and the freight promise is repeated on the home page and in the footer. */
  .ghs-topbar .container > span:first-child {
    display: none;
  }
  .ghs-topbar .ghs-search {
    flex: 1 1 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ghs-search-field,
  .ghs-search-field::after {
    transition: none;
  }
}
