/* =========================
   Luixir Hero - Clean CSS
   ========================= */

/* GLOBAL RESET: ضروري جداً عند التجربة محلياً لإزالة هوامش المتصفح الافتراضية */
html, body {
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden;
}

/* 1) Remove white gaps that often come from theme wrappers */
.lx-hero{
  width: 100vw;
  position: relative;
  left: 50%;
  margin: 0 -50vw !important;
  padding: 0 !important;
  max-width: 100vw;
  overflow-x: hidden;
  /* Force block and kill ghost whitespace */
  display: block;
  line-height: 0;
  font-size: 0;
}

/* لو القالب حاطط section داخل container بيعمل padding */
.lx-hero,
.lx-hero *{
  box-sizing: border-box;
}

/* 2) The actual hero box */
.lx-hero__inner{
  position: relative;
  width: 100%;
  overflow: hidden;

  /* اختياري: لو عايز الحواف مدورة */
  border-radius: 0;

  /* Desktop background (default) */
  background-color: #111; /* Fallback to avoid white flash */
  background-image: url("https://files.easy-orders.net/1769438816328190865.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  display: flex;
  align-items: center;

  /* Desktop height (increased ~10%) */
  min-height: clamp(554px, 60.7vw, 818px); /* Increased by 20% */
  padding: 0;

  /* Restore text defaults since we killed them in parent */
  line-height: 1.5;
  font-size: 16px;
}

/* overlay for readability */
.lx-hero__inner::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background: radial-gradient(
    circle at 70% 40%,
    rgba(0,0,0,0.28) 0%,
    rgba(0,0,0,0.10) 40%,
    rgba(0,0,0,0.00) 70%
  );
}

/* 3) Content right */
.lx-hero__content{
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin-left: auto;
  margin-right: 10vw;
  text-align: center;
  /* Move up slightly on desktop */
  transform: translateY(-40px);
}

.lx-hero__title{
  margin: 0 0 10px;
  font-size: clamp(38px, 5vw, 76px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #fff;
  font-weight: 700;
}

.lx-hero__subtitle{
  margin: 0 0 18px;
  font-size: clamp(20px, 2vw, 32px);
  color: rgba(255,255,255,0.86);
  font-weight: 500;
}

.lx-hero__btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  color: #0b1220;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(255,255,255,0.45);
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
  transition: transform .2s ease, background .2s ease;
}
.lx-hero__btn:hover{
  transform: translateY(-1px);
  background: #fff;
}

/* 4) Glass category bar */
.lx-catbar{
  position: absolute;
  left: 50%;
  bottom: clamp(14px, 2.2vw, 22px);
  transform: translateX(-50%);
  z-index: 2;

  display: flex;
  gap: 12px;

  padding: 12px 14px;
  border-radius: 18px;

  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 16px 42px rgba(0,0,0,0.28);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  max-width: min(1040px, calc(100% - 24px));
  overflow-x: auto;
  scrollbar-width: none;
}
.lx-catbar::-webkit-scrollbar{ display:none; }

.lx-cat{
  flex: 0 0 auto;
  width: 148px;
  text-decoration: none;

  padding: 10px 12px;
  border-radius: 14px;

  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.14);

  display: grid;
  justify-items: center;
  align-content: start;
  gap: 8px;

  transition: transform .18s ease, background .18s ease;
}
.lx-cat:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,0.14);
}

.lx-cat__icon{
  width: 72px;
  height: 72px;

  display: grid;
  place-items: center;
}
.lx-cat__icon img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 8px 14px rgba(0,0,0,0.18));
}

.lx-cat__name{
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.90);
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
  white-space: normal;
  /* Reserve space for 2 lines to keep alignment consistent */
  min-height: 2.4em;
}

/* =========================
   Mobile: force square + mobile image
   (more reliable than aspect-ratio)
   ========================= */
@media (max-width: 768px){
  .lx-hero__inner{
    border-radius: 0;

    /* IMPORTANT: make it square using padding trick */
    display: block;
    min-height: 0;
    height: auto;
    padding: 0; /* هنحط البادينج على content layer */
    background-image: url("https://files.easy-orders.net/1769438780951664624.webp");
    background-position: center;
  }

  /* square box */
  .lx-hero__inner::after{
    content:"";
    display:block;
    padding-top: 100%;
  }

  /* put all content above the square using absolute */
  .lx-hero__content,
  .lx-catbar{
    position: absolute;
  }

  .lx-hero__content{
    top: 20%;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: 90%;
    max-width: 100%;
    z-index: 2;
    text-align: center;
    margin: 0;
  }
  .lx-hero__title{
    font-size: 28px;
  }
  .lx-hero__subtitle{
    font-size: 14px;
  }

  .lx-catbar{
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    gap: 10px;
    padding: 10px 12px;
    border-radius: 16px;
  }

  .lx-cat{
    width: 90px;
    padding: 8px 2px;
  }
  .lx-cat__icon{
    width: 50px;
    height: 50px;
  }
  .lx-cat__icon img{
    width: 100%;
    height: 100%;
  }
  .lx-cat__name{
    font-size: 10px;
    white-space: normal;
    line-height: 1.1;
  }
}
