/* Professional homepage polish for Elementor + LahGum chrome */
body.home {
  background: #f7fafc;
}

body.home .elementor {
  overflow: visible;
}

body.home .elementor-element.e-con {
  min-width: 0;
}

body.home .e-con.e-child {
  overflow: hidden;
  min-width: 0;
}

body.home .elementor-widget-image,
body.home .elementor-widget-image .elementor-widget-container {
  overflow: hidden !important;
  max-width: 100%;
}

body.home .elementor-widget-heading,
body.home .elementor-widget-text-editor,
body.home .elementor-widget-icon-list,
body.home .elementor-widget-button {
  position: relative;
  z-index: 2;
}

body.home .elementor-heading-title {
  letter-spacing: -0.03em;
  line-height: 1.18;
}

body.home h1.elementor-heading-title {
  font-size: clamp(2rem, 4.2vw, 3.15rem) !important;
  font-weight: 800 !important;
  max-width: 16ch;
}

body.home h2.elementor-heading-title {
  font-size: clamp(1.55rem, 2.8vw, 2.15rem) !important;
  font-weight: 800 !important;
}

body.home h6.elementor-heading-title {
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
}

body.home .elementor-widget-text-editor p {
  font-size: 1.02rem;
  line-height: 1.65;
  color: #4b5563;
  max-width: 42rem;
}

body.home .lahgum-hero-copy .elementor-widget-button {
  display: inline-block;
  margin-right: 10px;
  margin-top: 4px;
}

body.home .elementor-button {
  min-height: 46px;
  padding: 12px 22px !important;
  font-weight: 700 !important;
  border-radius: 10px !important;
  letter-spacing: 0.01em;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

body.home .elementor-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(15, 93, 115, 0.18);
}

body.home .lahgum-hero-banner .elementor-image-carousel-wrapper,
body.home .lahgum-hero-banner .swiper,
body.home .lahgum-hero-banner .elementor-widget-image {
  background: #fff;
  border: 1px solid #dce5ec;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(11, 31, 51, 0.1);
}

body.home .lahgum-hero-banner img {
  width: 100% !important;
  height: 100% !important;
  max-height: none;
  object-fit: cover !important;
}

/* Product / use-case cards */
body.home .elementor-widget-image-box .elementor-image-box-wrapper,
body.home .elementor-widget-icon-box .elementor-icon-box-wrapper {
  height: 100%;
  background: #fff;
  border: 1px solid #dce5ec;
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(11, 31, 51, 0.06);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

body.home .elementor-widget-image-box:hover .elementor-image-box-wrapper,
body.home .elementor-widget-icon-box:hover .elementor-icon-box-wrapper {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(11, 31, 51, 0.1);
  border-color: #c5d5df;
}

body.home .elementor-image-box-img {
  margin: 0 !important;
  background: #fff;
}

body.home .elementor-image-box-img img {
  width: 100% !important;
  height: 210px !important;
  object-fit: contain !important;
  padding: 18px 18px 8px;
  background: linear-gradient(180deg, #f8fbfc 0%, #fff 100%);
}

body.home .elementor-image-box-content,
body.home .elementor-icon-box-content {
  padding: 14px 18px 20px;
}

body.home .elementor-image-box-title,
body.home .elementor-icon-box-title {
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  margin: 0 0 0.35rem !important;
  color: #0b1f33 !important;
}

body.home .elementor-image-box-description,
body.home .elementor-icon-box-description {
  font-size: 0.9rem !important;
  line-height: 1.5 !important;
  color: #5b6573 !important;
  margin: 0 !important;
}

body.home .elementor-icon-box-icon {
  margin: 18px 18px 0 !important;
}

body.home .elementor-icon-box-icon .elementor-icon {
  color: #00a6a6 !important;
  font-size: 26px !important;
}

body.home .elementor-widget-counter .elementor-counter-number-wrapper {
  font-weight: 800;
  letter-spacing: -0.03em;
}

body.home .elementor-widget-counter .elementor-counter-title {
  opacity: 0.9;
  font-weight: 600;
}

body.home .elementor-icon-list-item {
  font-weight: 600;
}

body.home .elementor-widget-image img {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: 420px;
  object-fit: contain !important;
  object-position: center;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(11, 31, 51, 0.1);
}

.lahgum-about-photo,
.lahgum-about-photo .elementor-widget-image,
.lahgum-about-photo .elementor-widget-container {
  overflow: hidden !important;
  max-width: 100%;
}

.lahgum-about-copy {
  position: relative;
  z-index: 3;
}

body.home .lahgum-hero-banner .elementor-widget-image img,
body.home .lahgum-hero-banner img {
  height: 100% !important;
  max-height: none !important;
  object-fit: cover !important;
}

/* Listed products — 4 per row, then the next row of 4 */
.lahgum-listed {
  width: 100%;
}
.lahgum-listed__head {
  margin-bottom: 1.75rem;
  max-width: 40rem;
}
.lahgum-listed__kicker {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #0f5d73;
  margin: 0 0 0.4rem;
}
.lahgum-listed h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.15rem);
  font-weight: 800;
  color: #0b1f33;
  margin: 0 0 0.45rem;
  letter-spacing: -0.03em;
}
.lahgum-listed__head p,
.lahgum-listed__empty {
  color: #4b5563;
  margin: 0;
}
.lahgum-listed__empty {
  padding: 1.5rem 0;
}
.lahgum-listed__grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 1.1rem;
  width: 100%;
}
.lahgum-listed__card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #fff;
  border: 1px solid #dce5ec;
  border-radius: 16px;
  padding: 0.9rem;
  box-shadow: 0 10px 24px rgba(11, 31, 51, 0.06);
}
.lahgum-listed__media {
  display: block;
  background: #f8fbfc;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1;
}
.lahgum-listed__media img,
.lahgum-listed__img {
  width: 100%;
  height: 100%;
  max-height: 210px;
  object-fit: contain;
  background: #fff;
}
.lahgum-listed__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding-top: 0.8rem;
}
.lahgum-listed__body h3 {
  margin: 0 0 0.35rem;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.lahgum-listed__body h3 a {
  color: #0b1f33;
  text-decoration: none;
}
.lahgum-listed__price {
  font-size: 1rem;
  font-weight: 800;
  color: #0f5d73;
  margin-bottom: 0.55rem;
}
.lahgum-listed__body p {
  display: none;
}
.lahgum-listed__actions {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: auto;
}
.lahgum-listed__actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 40px;
  padding: 0.55rem 0.8rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
}
.lahgum-listed__actions .btn-primary {
  background: #00a6a6;
  color: #fff;
}
.lahgum-listed__actions .btn-secondary {
  background: #fff;
  color: #0f5d73;
  border: 1.5px solid #0f5d73;
}

@media (max-width: 1100px) {
  .lahgum-listed__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  .lahgum-listed__grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 1024px) {
  body.home .elementor-image-box-img img {
    height: 180px !important;
  }
}

@media (max-width: 760px) {
  body.home h1.elementor-heading-title {
    max-width: none;
  }
  body.home .elementor-image-box-img img {
    height: 160px !important;
  }
}

/* Homepage navy CTA: one-row buttons, height follows content */
body.home .elementor-element-f0c877c,
body.home .lahgum-cta-band,
body.home .elementor-top-section:has(h2.elementor-heading-title):has(a[href*="/shop/"]):has(a[href$="/cart/"]) {
  padding-top: 20px !important;
  padding-bottom: 20px !important;
  min-height: 0 !important;
  height: auto !important;
}

body.home .elementor-element-f0c877c .elementor-col-40 > .elementor-widget-wrap,
body.home .lahgum-cta-band .elementor-col-40 > .elementor-widget-wrap,
body.home .elementor-top-section:has(h2.elementor-heading-title):has(a[href*="/shop/"]):has(a[href$="/cart/"]) .elementor-col-40 > .elementor-widget-wrap {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 0.7rem !important;
}

body.home .elementor-element-f0c877c .elementor-widget-heading,
body.home .elementor-element-f0c877c .elementor-widget-text-editor,
body.home .lahgum-cta-band .elementor-widget-heading,
body.home .lahgum-cta-band .elementor-widget-text-editor {
  margin: 0 !important;
}

body.home .elementor-element-f0c877c .elementor-widget-heading,
body.home .lahgum-cta-band .elementor-widget-heading {
  margin-bottom: 0.3rem !important;
}

body.home .elementor-element-f0c877c .elementor-widget-button,
body.home .lahgum-cta-band .elementor-widget-button,
body.home .elementor-top-section:has(h2.elementor-heading-title):has(a[href*="/shop/"]):has(a[href$="/cart/"]) .elementor-widget-button {
  width: auto !important;
  margin: 0 !important;
  flex: 0 0 auto;
}

body.home .elementor-element-f0c877c .elementor-button,
body.home .lahgum-cta-band .elementor-button,
body.home .elementor-top-section:has(h2.elementor-heading-title):has(a[href*="/shop/"]):has(a[href$="/cart/"]) .elementor-button {
  width: auto !important;
  min-height: 42px;
  padding: 8px 18px !important;
}

@media (max-width: 760px) {
  body.home .elementor-element-f0c877c .elementor-col-40 > .elementor-widget-wrap,
  body.home .lahgum-cta-band .elementor-col-40 > .elementor-widget-wrap,
  body.home .elementor-top-section:has(h2.elementor-heading-title):has(a[href*="/shop/"]):has(a[href$="/cart/"]) .elementor-col-40 > .elementor-widget-wrap {
    justify-content: flex-start !important;
    flex-wrap: wrap !important;
  }
}
