.gs-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100000;
  border-bottom: none;
  background: var(--shallow);
  backdrop-filter: none;
  pointer-events: auto;
}

.gs-header-container {
  max-width: 80%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.desktopversion img{
  padding: 10px;
}

.gs-brand {
  display: inline-flex;
  align-items: center;
  /* gap: 8px; */
  flex: 0 0 auto;
  color: var(--foreground);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  font-family: var(--font-display);
}

.gs-brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--primary);
}

.gs-brand-muted {
  font-weight: 700;
  font-family: var(--font-display);
  font-style: italic;
}

.gs-header-end {
  display: none;
  align-items: center;
  justify-content: flex-end;
  flex: 1 1 auto;
  min-width: 0;
  margin-left: auto;
  gap: 16px 24px;
  flex-wrap: wrap;
}

.gs-nav-desktop {
  display: none;
  align-items: center;
  gap: clamp(16px, 1.8vw, 60px);
  flex-shrink: 0;
  left: -4%;
}

.mainNavMenuAlt .gs-nav-desktop a {
  color: var(--muted-foreground) !important;
}

.gs-nav-desktop a {
  color: var(--muted-foreground);
  font-size: 17px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.gs-nav-desktop a:hover,
.gs-nav-desktop a.active {
  color: var(--foreground);
}

.gs-actions-desktop {
  display: none;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  pointer-events: auto;
}

/* Icon-only header controls (cart, admin): always visible surface */
.gs-header-icon-btn {
  position: relative;
  box-sizing: border-box;
  display: inline-flex;
  height: 40px;
  width: 40px;
  flex: 0 0 40px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--muted) 55%, var(--background));
  color: var(--foreground);
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.gs-header-icon-btn-shell {
  color: var(--foreground) !important;
}

.gs-header-icon-btn:hover {
  background: var(--muted);
  color: var(--foreground);
  border-color: color-mix(in oklab, var(--foreground) 18%, var(--border));
}

.gs-header-icon-btn:visited {
  color: var(--foreground);
}

@keyframes gs-cart-shake {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  20% {
    transform: translate3d(-2px, 0, 0) rotate(-2deg);
  }
  40% {
    transform: translate3d(2px, 0, 0) rotate(2deg);
  }
  60% {
    transform: translate3d(-2px, 0, 0) rotate(-1.5deg);
  }
  80% {
    transform: translate3d(2px, 0, 0) rotate(1.5deg);
  }
}

/* Cart: always use “hover” surface + gentle shake (admin keeps default icon style) */
.gs-cart-link.gs-header-icon-btn {
  background: var(--muted);
  color: var(--foreground);
  border-color: color-mix(in oklab, var(--foreground) 18%, var(--border));
  animation: gs-cart-shake 2.8s ease-in-out infinite;
  will-change: transform;
}

.gs-cart-link.gs-header-icon-btn:hover {
  animation-play-state: paused;
  background: color-mix(in oklab, var(--muted) 88%, var(--foreground));
  border-color: color-mix(in oklab, var(--foreground) 28%, var(--border));
}

@media (prefers-reduced-motion: reduce) {
  .gs-cart-link.gs-header-icon-btn {
    animation: none;
  }
}

.gs-cart-link {
  position: relative;
  text-decoration: none;
}

.gs-header-icon-btn .material-symbols-outlined,
.gs-cart-link .material-symbols-outlined {
  font-size: 22px;
}

.gs-cart-badge {
  position: absolute;
  right: -4px;
  top: -4px;
  display: inline-flex;
  min-width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--primary);
  padding: 0 4px;
  color: var(--primary-foreground);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.gs-account-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 120px;
  color: var(--muted-foreground);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
  position: relative;
  z-index: 3;
  pointer-events: auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gs-account-link:hover {
  color: var(--foreground);
}

.gs-offer-link {
  display: inline-flex;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--primary);
  padding: 0 16px;
  color: var(--primary-foreground);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.gs-offer-link:hover {
  opacity: 0.9;
}

.gs-mobile-toggle {
  border: 0;
  background: transparent;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  /* color: var(--foreground); */
}

.gs-cart-link-mobile.gs-header-icon-btn {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
}

.gs-cart-badge-mobile {
  right: -2px;
  top: -2px;
  min-width: 16px;
  height: 16px;
  font-size: 9px;
}

.gs-mobile-toggle .gs-icon-close {
  display: none;
}

.gs-mobile-toggle.is-open .gs-icon-menu {
  display: none;
}

.gs-mobile-toggle.is-open .gs-icon-close {
  display: inline-block;
}

.gs-mobile-menu {
  border-top: 1px solid var(--border);
  background: var(--background);
  position: relative;
  z-index: 3;
}

.gs-mobile-links {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.gs-mobile-link,
.gs-mobile-offer {
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 50px;
  font-weight: 500;
  text-decoration: none;
}

.gs-mobile-link {
  color: var(--foreground);
  position: relative;
  z-index: 3;
  pointer-events: auto;
}

.gs-mobile-link:hover {
  background: var(--muted);
}

.gs-mobile-offer {
  margin-top: 8px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 40px;
  background: var(--primary);
  color: var(--primary-foreground) !important;
  font-weight: 600;
}

.gs-mobile-admin {
  margin-top: 4px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 40px;
  border: 1px solid var(--border);
  color: var(--muted-foreground);
  font-weight: 600;
}

.gs-mobile-admin:hover {
  background: var(--muted);
  color: var(--foreground);
}

.gs-mobile-close {
  display: none;
}

/* Keep desktop tabs off cramped widths to prevent overlap with logo. */
@media (min-width: 1100px) {
  .gs-header-end {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
  }

  .gs-nav-desktop,
  .gs-actions-desktop {
    display: flex;
  }

  .gs-mobile-actions {
    display: none;
  }

  .gs-mobile-toggle,
  .gs-mobile-menu {
    display: none !important;
  }
}

@media (max-width: 1280px) {
  .gs-nav-desktop{
    width: 90% !important;
    left: 1%;
  }
}

/* —— Cart drawer (Garden Proiect) —— */
.cartMenu.gs-cart-drawer {
  top: 80px;
  right: 0;
  width: 100% !important;
  /* max-width: 100vw; */
  height: calc(100vh - 64px);
  z-index: 100050;
  display: none;
  flex-direction: column;
  padding: 0;
  margin: 0;
  border-left: 1px solid var(--border);
  background: color-mix(in oklab, var(--background) 96%, transparent);
  backdrop-filter: blur(10px);
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.08);
  animation: none;
}

.gs-cart-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.gs-cart-drawer-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--foreground);
}

.cartMenu.gs-cart-drawer .closeButton,
.cartMenu.gs-cart-drawer .gs-cart-drawer-close {
  margin: 0 !important;
  padding: 0;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--muted);
  font-size: 22px !important;
  line-height: 1;
  font-weight: 600;
  color: var(--foreground);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.cartMenu.gs-cart-drawer .closeButton:hover,
.cartMenu.gs-cart-drawer .gs-cart-drawer-close:hover {
  background: color-mix(in oklab, var(--foreground) 8%, var(--muted));
  color: var(--foreground);
}

.cartMenu.gs-cart-drawer .itemWrapper.gs-cart-items {
  flex: 1;
  min-height: 0;
  margin: 0 !important;
  padding: 8px 18px 20px;
  gap: 0;
  overflow-y: auto;
}

.cartMenu.gs-cart-drawer .itemWrapper h1 {
  color: inherit;
  font-weight: inherit;
}

.cartProduct.gs-cart-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px 12px;
  width: 100% !important;
  margin: 0;
  padding: 14px 0;
  border-bottom: 1px solid var(--border) !important;
  background: transparent;
}

.cartProduct.gs-cart-row:last-child {
  border-bottom: none !important;
}

.gs-cart-row-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  text-decoration: none;
  color: inherit;
}

.gs-cart-thumb-wrap {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--muted);
}

.gs-cart-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gs-cart-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.gs-cart-name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--foreground);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gs-cart-unit {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted-foreground);
}

.gs-cart-qty {
  display: inline-flex;
  align-items: center;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  overflow: hidden;
}

.gs-cart-qty-btn {
  margin: 0 !important;
  padding: 8px 12px !important;
  border: none !important;
  background: transparent;
  font-size: 16px !important;
  font-weight: 600;
  line-height: 1;
  color: var(--foreground);
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.gs-cart-qty-btn:hover:not(.gs-cart-qty-btn-muted) {
  background: var(--muted);
}

.gs-cart-qty-btn-muted {
  opacity: 0.35;
  cursor: default;
}

.gs-cart-qty-val {
  min-width: 28px;
  padding: 0 4px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--foreground);
}

.gs-cart-remove {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  color: var(--muted-foreground);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.gs-cart-remove:hover {
  background: color-mix(in oklab, var(--primary) 12%, var(--card));
  border-color: color-mix(in oklab, var(--primary) 35%, var(--border));
  color: var(--primary);
}

.gs-cart-remove .material-symbols-outlined {
  font-size: 20px !important;
}

.cartMenu.gs-cart-drawer .ctaSectionFlex.gs-cart-footer {
  flex-shrink: 0;
  margin: 0 !important;
  padding: 16px 18px 22px;
  border-top: 1px solid var(--border);
  background: color-mix(in oklab, var(--muted) 45%, var(--background));
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.cartMenu.gs-cart-drawer .gs-cart-footer .mainButton,
.cartMenu.gs-cart-drawer .gs-cart-footer .tertiaryButton,
.cartMenu.gs-cart-drawer .gs-cart-footer .gs-cart-checkout,
.cartMenu.gs-cart-drawer .gs-cart-footer .gs-cart-clear {
  width: 100%;
  margin: 0 !important;
  justify-content: center;
}

.gs-cart-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 24px 48px !important;
  gap: 8px;
}

.gs-cart-empty-icon {
  display: flex;
  width: 56px;
  height: 56px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--muted);
  color: var(--muted-foreground);
}

.gs-cart-empty-icon .material-symbols-outlined {
  font-size: 28px;
}

.gs-cart-empty-title {
  margin: 12px 0 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--foreground);
}

.gs-cart-empty-text {
  margin: 0;
  max-width: 260px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted-foreground);
}

/* Placed orders in cart (coș) */
.gs-cos-placed {
  padding: 12px 18px 0;
  border-bottom: 1px solid var(--border);
}

.gs-cos-placed--compact {
  max-height: 42vh;
  overflow-y: auto;
}

.gs-cos-placed-title {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.gs-cos-order-card {
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
}

.gs-cos-order-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.gs-cos-order-head-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.gs-order-cancel-form--cos {
  margin: 0;
}

.gs-order-cancel-form--cos .gs-order-cancel-btn {
  padding: 5px 10px;
  font-size: 11px;
}

.gs-cos-order-id {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--foreground);
}

.gs-cos-order-date {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--muted-foreground);
}

.gs-cos-order-status-edit {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  min-width: 130px;
}

.gs-cos-order-status-label {
  font-size: 11px;
  color: var(--muted-foreground);
}

.gs-cos-status-select {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  background: var(--background);
  color: var(--foreground);
}

.gs-cos-order-lines {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gs-cos-order-line-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.gs-cos-order-line img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.gs-cos-order-line-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.gs-cos-order-line-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

.gs-cos-order-line-qty {
  font-size: 12px;
  color: var(--muted-foreground);
}

.gs-cos-order-total {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--muted-foreground);
}

.gs-cos-order-total strong {
  color: var(--foreground);
}

.gs-cos-current-title {
  margin: 20px 0 12px;
  font-size: 18px;
  font-weight: 700;
}

.gs-cos-add-more {
  margin-top: 16px;
  font-size: 15px;
}

.gs-cos-add-more a {
  color: var(--primary);
  font-weight: 600;
}

.gs-cos-account-link {
  display: block;
  margin: 4px 0 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}

.gs-cos-account-link:hover {
  text-decoration: underline;
}

.gs-cart-empty-cta {
  margin-top: 16px;
  display: inline-flex;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--primary);
  padding: 0 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-foreground);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.gs-cart-empty-cta:hover {
  opacity: 0.92;
}

@media (max-width: 767px) {
  .cartMenu.gs-cart-drawer {
    top: 56px;
    width: 100% !important;
    height: calc(100vh - 56px);
  }
}

/* Mobile header: layout + overrides for legacy mobile.css */
@media (max-width: 1099px) {
  .gs-header-container {
    padding: 0 12px 0 14px;
    gap: 10px;
  }

  .gs-brand {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 18px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .gs-header-end {
    display: none !important;
  }

  .gs-mobile-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 6px;
    margin-left: 4px;
    justify-content: space-between;
    width: 100%;
  }

  .gs-header #mobileMenuIcon.gs-mobile-toggle {
    display: inline-flex !important;
    flex: 0 0 40px;
    width: 120px;
    height: 170px;
    margin: 0;
    padding: 0;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: color-mix(in oklab, var(--muted) 55%, var(--background));
    /* color: var(--foreground); */
  }

  .gs-header #mobileMenuIcon.gs-mobile-toggle .material-symbols-outlined {
    font-size: 90px !important;
    /* color: var(--foreground) !important; */
  }

  .gs-header .shoppingCartIconAlt.gs-header-icon-btn,
  .gs-header .gs-cart-link-mobile.gs-header-icon-btn {
    flex: 0 0 40px;
    width: 120px;
    height: 170px;
    margin: 0;
  }

  .gs-header .shoppingCartIconAlt .material-symbols-outlined,
  .gs-header .gs-cart-link-mobile .material-symbols-outlined {
    font-size: 90px !important;
    /* color: var(--foreground) !important; */
  }

  .gs-cart-link-mobile.gs-header-icon-btn {
    animation: none;
  }
}

@media (max-width: 1650px) {
  .gs-header-container{
    max-width: 95% !important;
  }

  .gs-nav-desktop{
    gap: clamp(16px, 1.5vw, 60px);
  }

  .heroRightSideAlt{
    top: 60%;
  }

  .serviceLeft .serviceDescWrap{
    justify-content: center !important;
  }

  .serviceDescImgGrid img{
    width: 250px;
  }
}
