/* E-GreenLife Main — UI Stabilization
   Architectural Biophilic Editorial
   Requires: eg-tokens.css
   Namespace: .eg-*  |  Scope: body.eg-redesign
*/

/* --------------------------------------------------------------------------
   Global box model
   -------------------------------------------------------------------------- */
html {
  box-sizing: border-box;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

body.eg-redesign {
  margin: 0;
  overflow-x: hidden;
  background-color: var(--eg-color-background);
  color: var(--eg-color-text);
  font-family: var(--eg-font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.eg-redesign .eg-site,
body.eg-redesign .website-wrapper.eg-site {
  overflow-x: clip;
  min-width: 0;
  width: 100%;
}

body.eg-redesign img {
  max-width: 100%;
  height: auto;
  display: block;
}

body.eg-redesign a {
  color: var(--eg-color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

body.eg-redesign a:hover {
  color: var(--eg-color-primary-dark);
}

body.eg-redesign h1,
body.eg-redesign h2,
body.eg-redesign h3,
body.eg-redesign h4 {
  font-family: var(--eg-font-display);
  font-weight: 500;
  line-height: 1.2;
  color: var(--eg-color-text);
  margin: 0 0 var(--eg-space-4);
}

body.eg-redesign p {
  margin: 0 0 var(--eg-space-4);
  color: var(--eg-color-muted);
  font-family: var(--eg-font-body);
}

/* --------------------------------------------------------------------------
   Hide Basel chrome
   -------------------------------------------------------------------------- */
body.eg-redesign .topbar-wrapp,
body.eg-redesign header.main-header,
body.eg-redesign .mobile-nav,
body.eg-redesign .mobile-nav-icon,
body.eg-redesign .basel-toolbar,
body.eg-redesign .basel-search-full-screen,
body.eg-redesign.home .basel-page-title,
body.eg-redesign.home .page-title,
body.eg-redesign.front-page .basel-page-title,
body.eg-redesign.front-page .page-title,
body.eg-redesign.home footer.footer-container,
body.eg-redesign.front-page footer.footer-container {
  display: none !important;
}

/* --------------------------------------------------------------------------
   Container — single axis
   -------------------------------------------------------------------------- */
body.eg-redesign .eg-container {
  width: min(100% - 48px, 1200px);
  max-width: 1200px;
  margin-inline: auto;
  padding-left: 0;
  padding-right: 0;
  box-sizing: border-box;
}

@media (max-width: 767px) {
  body.eg-redesign .eg-container {
    width: calc(100% - 32px);
  }
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
body.eg-redesign .eg-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  min-height: var(--eg-header-h);
  height: auto;
  background-color: var(--eg-color-surface);
  border-bottom: 1px solid var(--eg-color-border);
  overflow: visible;
}

body.admin-bar.eg-redesign .eg-header {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar.eg-redesign .eg-header {
    top: 46px;
  }
}

body.eg-redesign .eg-header__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--eg-space-5);
  min-height: var(--eg-header-h);
  width: min(100% - 48px, 1200px);
  max-width: 1200px;
  margin-inline: auto;
  padding: 0;
  box-sizing: border-box;
}

@media (max-width: 767px) {
  body.eg-redesign .eg-header__inner {
    width: calc(100% - 32px);
    grid-template-columns: auto 1fr auto;
    gap: var(--eg-space-3);
  }
}

/* Logo — must beat body.eg-redesign img { height:auto } */
body.eg-redesign .eg-header__logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  max-width: 200px;
  min-width: 0;
  overflow: hidden;
}

body.eg-redesign .eg-header__logo img,
body.eg-redesign a.eg-header__logo img {
  display: block !important;
  width: auto !important;
  max-width: 200px !important;
  height: 44px !important;
  max-height: 44px !important;
  object-fit: contain !important;
  object-position: left center;
}

/* Nav */
body.eg-redesign nav.eg-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  overflow: visible;
}

body.eg-redesign .eg-nav__list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap;
  align-items: center;
  gap: clamp(12px, 1.5vw, 28px);
  width: auto !important;
  float: none !important;
}

body.eg-redesign .eg-nav__list > li,
body.eg-redesign .eg-nav__item {
  position: relative;
  display: block !important;
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  white-space: nowrap;
}

body.eg-redesign .eg-nav__list > li > a,
body.eg-redesign .eg-nav__item > a {
  display: inline-flex;
  align-items: center;
  font-family: var(--eg-font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--eg-color-text) !important;
  text-transform: none;
  letter-spacing: 0;
  padding: var(--eg-space-2) 0;
  white-space: nowrap;
  line-height: 1.3;
}

body.eg-redesign .eg-nav__list > li > a:hover,
body.eg-redesign .eg-nav__item > a:hover {
  color: var(--eg-color-primary) !important;
}

/* Submenu — hidden until hover (was causing vertical column blowout) */
body.eg-redesign .eg-nav__sub {
  display: none !important;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1200;
  min-width: 220px;
  margin: 0;
  padding: var(--eg-space-3) 0;
  list-style: none;
  background: var(--eg-color-surface);
  border: 1px solid var(--eg-color-border);
  border-radius: var(--eg-radius-sm);
  box-shadow: var(--eg-shadow-md);
}

body.eg-redesign .eg-nav__item--has:hover > .eg-nav__sub,
body.eg-redesign .eg-nav__item--has:focus-within > .eg-nav__sub {
  display: block !important;
}

body.eg-redesign .eg-nav__sub li {
  display: block !important;
  width: 100%;
  margin: 0;
  float: none !important;
}

body.eg-redesign .eg-nav__sub a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: var(--eg-color-text) !important;
  white-space: nowrap;
}

body.eg-redesign .eg-nav__sub a:hover {
  color: var(--eg-color-primary) !important;
  background: var(--eg-color-surface-muted);
}

/* Actions */
body.eg-redesign .eg-header__actions {
  display: flex;
  align-items: center;
  gap: var(--eg-space-3);
  flex-shrink: 0;
}

body.eg-redesign .eg-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--eg-color-text);
  border: none;
  background: transparent;
  position: relative;
}

body.eg-redesign .eg-icon-btn:hover {
  color: var(--eg-color-primary);
}

body.eg-redesign .eg-cart-count {
  position: absolute;
  top: 4px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--eg-color-primary);
  color: #fff;
  font-size: 10px;
  line-height: 16px;
  text-align: center;
}

body.eg-redesign .eg-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: none;
  background: transparent;
  cursor: pointer;
}

body.eg-redesign .eg-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--eg-color-text);
}

/* Buttons */
body.eg-redesign .eg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--eg-space-2);
  min-height: 44px;
  padding: 0.75rem 1.35rem;
  font-family: var(--eg-font-body);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  border-radius: var(--eg-radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

body.eg-redesign .eg-btn--primary {
  background-color: var(--eg-color-primary);
  color: #fff !important;
  border-color: var(--eg-color-primary);
}

body.eg-redesign .eg-btn--primary:hover {
  background-color: var(--eg-color-primary-dark);
  border-color: var(--eg-color-primary-dark);
  color: #fff !important;
}

body.eg-redesign .eg-btn--outline {
  background-color: transparent;
  color: var(--eg-color-primary) !important;
  border-color: var(--eg-color-primary);
}

body.eg-redesign .eg-btn--outline:hover {
  background-color: var(--eg-color-primary);
  color: #fff !important;
}

/* --------------------------------------------------------------------------
   Mobile drawer
   -------------------------------------------------------------------------- */
body.eg-redesign .eg-drawer {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(26, 31, 28, 0.45);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

body.eg-redesign .eg-drawer:not([hidden]),
body.eg-redesign .eg-drawer.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

body.eg-redesign .eg-drawer[hidden] {
  display: none !important;
}

body.eg-redesign .eg-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(320px, 88vw);
  height: 100%;
  max-height: 100dvh;
  background: var(--eg-color-surface);
  padding: var(--eg-space-7) var(--eg-space-5);
  overflow-x: hidden;
  overflow-y: auto;
  box-shadow: var(--eg-shadow-md);
  transform: translateX(0);
}

body.eg-redesign .eg-drawer__close {
  position: absolute;
  top: var(--eg-space-4);
  right: var(--eg-space-4);
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--eg-color-text);
  cursor: pointer;
}

body.eg-redesign .eg-drawer__paths {
  display: flex;
  flex-direction: column;
  gap: var(--eg-space-3);
  margin-top: var(--eg-space-6);
}

body.eg-redesign .eg-drawer__nav {
  list-style: none;
  margin: var(--eg-space-6) 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

body.eg-redesign .eg-drawer__nav a {
  display: block;
  padding: var(--eg-space-3) 0;
  font-size: 1.0625rem;
  color: var(--eg-color-text) !important;
  border-bottom: 1px solid var(--eg-color-border);
}

body.eg-redesign .eg-drawer__phone {
  margin-top: var(--eg-space-6);
  font-size: 1.125rem;
  font-weight: 600;
}

body.eg-redesign .eg-drawer__phone a {
  color: var(--eg-color-primary) !important;
}

html.eg-drawer-open,
html.eg-drawer-open body {
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   Section system
   -------------------------------------------------------------------------- */
body.eg-redesign .eg-section {
  padding-block: clamp(56px, 8vw, 112px);
  width: 100%;
}

body.eg-redesign .eg-section__header {
  max-width: 40rem;
  margin-bottom: var(--eg-space-7);
}

body.eg-redesign .eg-section__eyebrow {
  display: block;
  font-family: var(--eg-font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--eg-color-primary-soft);
  letter-spacing: 0.04em;
  margin-bottom: var(--eg-space-3);
  text-transform: none;
}

body.eg-redesign .eg-section__title {
  font-family: var(--eg-font-display);
  font-size: clamp(1.625rem, 2vw + 0.85rem, 2.5rem);
  font-weight: 500;
  color: var(--eg-color-text);
  margin: 0 0 var(--eg-space-4);
  line-height: 1.15;
}

body.eg-redesign .eg-section__lead {
  font-size: 1.0625rem;
  color: var(--eg-color-muted);
  margin: 0;
  max-width: 36rem;
}

body.eg-redesign .eg-section--muted {
  background-color: var(--eg-color-surface-muted);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
body.eg-redesign .eg-hero {
  position: relative;
  min-height: min(78vh, 720px);
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  background-color: var(--eg-color-primary-dark);
  background-image: var(--eg-hero-image, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  overflow: hidden;
  width: 100%;
}

body.eg-redesign .eg-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(26, 31, 28, 0.35) 0%,
    rgba(26, 31, 28, 0.62) 55%,
    rgba(26, 31, 28, 0.78) 100%
  );
  z-index: 1;
}

body.eg-redesign .eg-hero__content {
  position: relative;
  z-index: 2;
  width: min(100% - 48px, 1200px);
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--eg-space-8) 0 var(--eg-space-9);
  box-sizing: border-box;
}

@media (max-width: 767px) {
  body.eg-redesign .eg-hero__content {
    width: calc(100% - 32px);
    padding: var(--eg-space-7) 0 var(--eg-space-7);
  }
}

body.eg-redesign .eg-hero__inner {
  max-width: 600px;
}

body.eg-redesign .eg-hero__eyebrow {
  font-family: var(--eg-font-body);
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--eg-color-accent-soft) !important;
  margin-bottom: var(--eg-space-4);
}

body.eg-redesign .eg-hero__title,
body.eg-redesign h1.eg-hero__title {
  font-family: var(--eg-font-display);
  font-size: clamp(2rem, 4.2vw + 0.6rem, 3.75rem);
  font-weight: 500;
  line-height: 1.1;
  color: #ffffff !important;
  margin: 0 0 var(--eg-space-5);
  max-width: 16ch;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

body.eg-redesign .eg-hero__text {
  font-family: var(--eg-font-body);
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.9) !important;
  max-width: 32rem;
  margin: 0 0 var(--eg-space-6);
  line-height: 1.6;
}

body.eg-redesign .eg-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--eg-space-3);
}

body.eg-redesign .eg-hero .eg-btn--primary {
  background-color: var(--eg-color-accent);
  border-color: var(--eg-color-accent);
  color: var(--eg-color-text) !important;
}

body.eg-redesign .eg-hero .eg-btn--primary:hover {
  background-color: var(--eg-color-accent-soft);
  border-color: var(--eg-color-accent-soft);
  color: var(--eg-color-text) !important;
}

body.eg-redesign .eg-hero .eg-btn--outline {
  border-color: rgba(255, 255, 255, 0.75);
  color: #fff !important;
}

body.eg-redesign .eg-hero .eg-btn--outline:hover {
  background-color: #fff;
  border-color: #fff;
  color: var(--eg-color-primary-dark) !important;
}

/* --------------------------------------------------------------------------
   Intro
   -------------------------------------------------------------------------- */
body.eg-redesign .eg-intro {
  background: var(--eg-color-surface);
}

body.eg-redesign .eg-intro__body {
  max-width: 40rem;
  margin-inline: auto;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Projects
   -------------------------------------------------------------------------- */
body.eg-redesign .eg-projects__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: var(--eg-space-5);
  align-items: stretch;
}

body.eg-redesign .eg-projects__featured {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  min-height: 0;
  overflow: hidden;
  border-radius: var(--eg-radius-md);
  background: var(--eg-color-surface-muted);
}

body.eg-redesign .eg-projects__featured img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

body.eg-redesign .eg-projects__featured-meta,
body.eg-redesign .eg-projects__card-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: var(--eg-space-5);
  background: linear-gradient(transparent, rgba(26, 31, 28, 0.7));
}

body.eg-redesign .eg-projects__featured-meta h3,
body.eg-redesign .eg-projects__card-meta h3 {
  font-family: var(--eg-font-display);
  color: #fff !important;
  margin: 0;
  font-size: 1.35rem;
}

body.eg-redesign .eg-projects__side {
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-rows: 1fr;
  gap: var(--eg-space-5);
  min-height: 0;
}

body.eg-redesign .eg-projects__card {
  position: relative;
  display: block;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  border-radius: var(--eg-radius-md);
  background: var(--eg-color-surface-muted);
  min-height: 0;
}

body.eg-redesign .eg-projects__card img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

body.eg-redesign .eg-projects__side .eg-projects__card:nth-child(n + 3) {
  display: none;
}

/* --------------------------------------------------------------------------
   Services
   -------------------------------------------------------------------------- */
body.eg-redesign .eg-services__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--eg-space-6);
}

body.eg-redesign .eg-services__item {
  display: block;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  color: inherit;
}

body.eg-redesign .eg-services__item h3 {
  font-family: var(--eg-font-display);
  font-size: 1.35rem;
  margin-bottom: var(--eg-space-3);
  color: var(--eg-color-text);
}

body.eg-redesign .eg-services__item p {
  font-size: 0.9375rem;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Styles chips
   -------------------------------------------------------------------------- */
body.eg-redesign .eg-styles__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* --------------------------------------------------------------------------
   Shop / product grid — override Basel floats
   -------------------------------------------------------------------------- */
body.eg-redesign .eg-shop ul.products,
body.eg-redesign .eg-shop .products,
body.eg-redesign ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--eg-space-5);
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  float: none !important;
}

body.eg-redesign .eg-shop ul.products::before,
body.eg-redesign .eg-shop ul.products::after,
body.eg-redesign ul.products::before,
body.eg-redesign ul.products::after {
  display: none !important;
  content: none !important;
}

body.eg-redesign .eg-shop ul.products li.product,
body.eg-redesign ul.products li.product,
body.eg-redesign .eg-shop .product {
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  float: none !important;
  clear: none !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  text-align: left;
  min-width: 0;
}

body.eg-redesign .eg-shop .product-element-top,
body.eg-redesign .eg-shop .product-image-link {
  display: block;
  overflow: hidden;
  border-radius: var(--eg-radius-sm);
  background: var(--eg-color-surface-muted);
  aspect-ratio: 4 / 5;
}

body.eg-redesign .eg-shop .product img,
body.eg-redesign .eg-shop .product-element-top img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  aspect-ratio: 4 / 5;
}

body.eg-redesign .eg-shop .product-title,
body.eg-redesign .eg-shop .woocommerce-loop-product__title,
body.eg-redesign .eg-shop .product .wd-entities-title {
  font-family: var(--eg-font-body) !important;
  font-size: 0.9375rem !important;
  font-weight: 500;
  color: var(--eg-color-text) !important;
  margin: var(--eg-space-3) 0 var(--eg-space-2);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.eg-redesign .eg-shop .price {
  font-family: var(--eg-font-body);
  font-size: 0.875rem;
  color: var(--eg-color-primary) !important;
  font-weight: 500;
}

body.eg-redesign .eg-shop .star-rating,
body.eg-redesign .eg-shop .basel-buttons,
body.eg-redesign .eg-shop .quick-view,
body.eg-redesign .eg-shop .compare-btn,
body.eg-redesign .eg-shop .yith-wcwl-add-to-wishlist,
body.eg-redesign .eg-shop .hover-img {
  display: none !important;
}

body.eg-redesign .eg-shop .onsale,
body.eg-redesign .eg-shop .product-labels {
  position: absolute;
  z-index: 2;
  top: 8px;
  left: 8px;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Process
   -------------------------------------------------------------------------- */
body.eg-redesign .eg-process__steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--eg-space-5);
}

body.eg-redesign .eg-process__step h3 {
  font-size: 1.15rem;
  margin-bottom: var(--eg-space-2);
}

body.eg-redesign .eg-process__step p {
  font-size: 0.9375rem;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Blog
   -------------------------------------------------------------------------- */
body.eg-redesign .eg-blog__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--eg-space-6);
}

body.eg-redesign .eg-blog__card {
  background: transparent;
  border: none;
  box-shadow: none;
  min-width: 0;
}

body.eg-redesign .eg-blog__card-media {
  display: block;
  overflow: hidden;
  border-radius: var(--eg-radius-md);
  margin-bottom: var(--eg-space-4);
  background: var(--eg-color-surface-muted);
  aspect-ratio: 16 / 10;
}

body.eg-redesign .eg-blog__card-media img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
}

body.eg-redesign .eg-blog__card h3 {
  font-family: var(--eg-font-display);
  font-size: 1.25rem;
  margin-bottom: 0;
}

body.eg-redesign .eg-blog__card h3 a {
  color: var(--eg-color-text) !important;
}

/* --------------------------------------------------------------------------
   Final CTA
   -------------------------------------------------------------------------- */
body.eg-redesign .eg-final-cta {
  background: var(--eg-color-primary);
  color: #fff;
  text-align: center;
}

body.eg-redesign .eg-final-cta .eg-section__title {
  color: #fff !important;
  max-width: 22ch;
  margin-left: auto;
  margin-right: auto;
}

body.eg-redesign .eg-final-cta .eg-section__lead,
body.eg-redesign .eg-final-cta p {
  color: rgba(255, 255, 255, 0.85) !important;
}

body.eg-redesign .eg-final-cta .eg-btn--primary {
  background: var(--eg-color-accent);
  border-color: var(--eg-color-accent);
  color: var(--eg-color-text) !important;
}

body.eg-redesign .eg-final-cta a {
  color: var(--eg-color-accent-soft);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
body.eg-redesign .eg-footer {
  width: 100%;
  background: var(--eg-color-text);
  color: rgba(247, 245, 240, 0.75);
  padding: var(--eg-space-8) 0 var(--eg-space-6);
}

body.eg-redesign .eg-footer a {
  color: rgba(247, 245, 240, 0.85) !important;
}

body.eg-redesign .eg-footer a:hover {
  color: var(--eg-color-accent-soft) !important;
}

body.eg-redesign .eg-footer__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--eg-space-6);
  margin-bottom: var(--eg-space-7);
  width: 100%;
}

body.eg-redesign .eg-footer__brand {
  font-family: var(--eg-font-display);
  font-size: 1.5rem;
  color: #fff !important;
  margin-bottom: var(--eg-space-4);
}

body.eg-redesign .eg-footer__logo {
  display: block;
  max-width: 180px;
  margin-bottom: var(--eg-space-4);
}

body.eg-redesign .eg-footer__logo img {
  width: auto !important;
  max-width: 180px !important;
  height: 44px !important;
  object-fit: contain !important;
  filter: brightness(0) invert(1);
}

body.eg-redesign .eg-footer__col h4 {
  font-family: var(--eg-font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff !important;
  margin-bottom: var(--eg-space-4);
  text-transform: none;
  letter-spacing: 0.02em;
}

body.eg-redesign .eg-footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

body.eg-redesign .eg-footer__col li {
  margin-bottom: var(--eg-space-2);
}

body.eg-redesign .eg-footer__col a {
  font-size: 0.875rem;
}

body.eg-redesign .eg-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: var(--eg-space-5);
  font-size: 0.8125rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--eg-space-3);
}

/* Floating phone */
body.eg-redesign .eg-float-phone {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 900;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--eg-color-primary);
  color: #fff !important;
  font-family: var(--eg-font-body);
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: var(--eg-shadow-md);
}

body.eg-redesign .eg-float-phone:hover {
  background: var(--eg-color-primary-dark);
  color: #fff !important;
}

/* --------------------------------------------------------------------------
   Responsive — tablet
   -------------------------------------------------------------------------- */
@media (max-width: 1023px) {
  body.eg-redesign nav.eg-nav {
    display: none !important;
  }

  body.eg-redesign .eg-burger {
    display: inline-flex !important;
  }

  body.eg-redesign .eg-header__cta {
    display: none !important;
  }

  body.eg-redesign .eg-projects__layout {
    grid-template-columns: 1fr;
  }

  body.eg-redesign .eg-projects__featured {
    aspect-ratio: 16 / 10;
  }

  body.eg-redesign .eg-projects__side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.eg-redesign .eg-projects__side .eg-projects__card:nth-child(n + 3) {
    display: block;
  }

  body.eg-redesign .eg-services__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.eg-redesign .eg-process__steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.eg-redesign .eg-blog__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.eg-redesign .eg-shop ul.products,
  body.eg-redesign ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.eg-redesign .eg-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* --------------------------------------------------------------------------
   Responsive — mobile
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  body.eg-redesign .eg-header__logo img,
  body.eg-redesign a.eg-header__logo img {
    max-width: 140px !important;
    height: 36px !important;
    max-height: 36px !important;
  }

  body.eg-redesign .eg-hero {
    min-height: min(72vh, 640px);
  }

  body.eg-redesign .eg-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  body.eg-redesign .eg-hero__actions .eg-btn {
    width: 100%;
  }

  body.eg-redesign .eg-projects__side {
    grid-template-columns: 1fr;
  }

  body.eg-redesign .eg-services__grid {
    grid-template-columns: 1fr;
  }

  body.eg-redesign .eg-process__steps {
    grid-template-columns: 1fr 1fr;
  }

  body.eg-redesign .eg-blog__grid {
    grid-template-columns: 1fr;
  }

  body.eg-redesign .eg-shop ul.products,
  body.eg-redesign ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--eg-space-4);
  }

  body.eg-redesign .eg-footer__grid {
    grid-template-columns: 1fr;
  }

  body.eg-redesign .eg-search-toggle {
    display: none;
  }
}

@media (max-width: 430px) {
  body.eg-redesign .eg-process__steps {
    grid-template-columns: 1fr;
  }

  body.eg-redesign .eg-shop ul.products,
  body.eg-redesign ul.products {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   WooCommerce polish (non-home)
   -------------------------------------------------------------------------- */
body.eg-redesign .product-grid-item,
body.eg-redesign .products .product {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

body.eg-redesign .button,
body.eg-redesign .woocommerce a.button,
body.eg-redesign .woocommerce button.button,
body.eg-redesign .single_add_to_cart_button {
  background-color: var(--eg-color-primary) !important;
  border-color: var(--eg-color-primary) !important;
  color: #fff !important;
  border-radius: var(--eg-radius-sm) !important;
  box-shadow: none !important;
  font-family: var(--eg-font-body);
  font-weight: 500;
  text-transform: none !important;
  min-height: 44px;
}

body.eg-redesign.single-product .sidebar-container,
body.eg-redesign.single-product aside.sidebar-container {
  display: none !important;
}

body.eg-redesign.single-product .content-area,
body.eg-redesign.single-product .site-content {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  body.eg-redesign *,
  body.eg-redesign *::before,
  body.eg-redesign *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}


/* Clean EG product grid (homepage) */
body.eg-redesign .eg-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--eg-space-5);
  width: 100%;
}
body.eg-redesign .eg-product-card {
  min-width: 0;
}
body.eg-redesign .eg-product-card__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--eg-radius-sm);
  background: var(--eg-color-surface-muted);
  margin-bottom: var(--eg-space-3);
}
body.eg-redesign .eg-product-card__media img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
}
body.eg-redesign .eg-product-card__badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  background: var(--eg-color-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
}
body.eg-redesign .eg-product-card__title {
  font-family: var(--eg-font-body) !important;
  font-size: 0.9375rem !important;
  font-weight: 500;
  margin: 0 0 var(--eg-space-2);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
body.eg-redesign .eg-product-card__title a {
  color: var(--eg-color-text) !important;
}
body.eg-redesign .eg-product-card__price {
  font-size: 0.875rem;
  color: var(--eg-color-primary);
  font-weight: 500;
}
body.eg-redesign .eg-product-card__price del {
  color: var(--eg-color-muted);
  margin-right: 6px;
  font-weight: 400;
}
@media (max-width: 1023px) {
  body.eg-redesign .eg-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  body.eg-redesign .eg-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 430px) {
  body.eg-redesign .eg-product-grid { grid-template-columns: 1fr; }
}

/* Basel products fallback (shop archive / shortcode) */
body.eg-redesign .eg-shop .products.elements-grid,
body.eg-redesign .eg-shop .products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 24px !important;
}
body.eg-redesign .eg-shop .clear,
body.eg-redesign .eg-shop .clearfix {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.eg-redesign .eg-shop .product-grid-item {
  width: auto !important;
  float: none !important;
  margin: 0 !important;
  clear: none !important;
}
