html, body,
main, .page-wrapper, #app {
  background:
    radial-gradient(circle at 7% 20%, rgba(217,198,171,.45), transparent 18%),
    radial-gradient(circle at 92% 34%, rgba(139,146,119,.25), transparent 20%),
    linear-gradient(180deg, #fffaf3 0%, #f8f1e8 100%) !important;
}

body {
  overflow-x: hidden !important;
}

.pb-custom-home {
  direction: rtl;
  font-family: inherit;
  color: #344233;
  padding: 42px 28px 70px;
  position: relative;
  overflow: hidden;
  background: transparent !important;
  width: 100vw !important;
  max-width: 100vw !important;
  margin-right: calc(50% - 50vw) !important;
  margin-left: calc(50% - 50vw) !important;
}

.pb-custom-home::before,
.pb-custom-home::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.pb-custom-home::before {
  width: 430px;
  height: 430px;
  background: #eadcc9;
  left: -135px;
  top: 40px;
  border-radius: 50%;
  opacity: .65;
}

.pb-custom-home::after {
  width: 430px;
  height: 330px;
  right: -135px;
  top: 250px;
  background: linear-gradient(135deg, #eadcc9 55%, #6b7359 55%);
  border-radius: 60% 40% 38% 62%;
  opacity: .75;
}

.pb-hero,
.pb-categories {
  position: relative;
  z-index: 2;
}

.pb-hero {
  width: min(1320px, calc(100vw - 70px)) !important;
  max-width: 1320px !important;
  min-height: 430px;
  margin: 0 auto 36px !important;
  padding: 32px 42px;
  border-radius: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 82%, #eadcc9 0 13%, transparent 14%),
    radial-gradient(circle at 86% 18%, #e6d5bd 0 15%, transparent 16%),
    linear-gradient(135deg, #fffaf3, #f5eadc);
  box-shadow: 0 18px 45px rgba(52,66,51,.10);
}

.pb-hero-text {
  text-align: center;
  position: relative;
  z-index: 3;
}

.pb-hero h1 {
  font-size: 58px;
  line-height: 1.18;
  margin: 0;
  font-weight: 800;
  color: #20251f;
}

.pb-hero h1 span {
  color: #5f6c4d;
}

.pb-hero p {
  font-size: 20px;
  line-height: 1.8;
  margin: 22px auto;
  max-width: 520px;
  color: #344233;
}

.pb-btn {
  display: inline-block;
  background: linear-gradient(180deg, #6b7359, #344233);
  color: #fff !important;
  padding: 12px 34px;
  border-radius: 999px;
  text-decoration: none !important;
  font-size: 17px;
  box-shadow: 0 14px 28px rgba(52,66,51,.22);
}

/* الصورة المتحركة */
.pb-animated-work {
  position: relative;
  width: 100%;
  height: 350px;
}

.pb-laptop {
  position: absolute;
  width: 360px;
  height: 230px;
  right: 70px;
  top: 65px;
  background: #252525;
  border-radius: 18px 18px 8px 8px;
  padding: 14px;
  box-shadow: 0 28px 45px rgba(0,0,0,.2);
  animation: pbFloat 4s ease-in-out infinite;
}

.pb-laptop::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 18px;
  right: -30px;
  bottom: -17px;
  background: linear-gradient(#c7c2b9, #8c8982);
  border-radius: 0 0 40px 40px;
}

.pb-screen {
  background: #fffaf3;
  height: 100%;
  border-radius: 10px;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.pb-screen span {
  display: block;
  height: 10px;
  background: #d8c7ad;
  margin-bottom: 14px;
  border-radius: 999px;
}

.pb-screen span:nth-child(1) { width: 55%; }
.pb-screen span:nth-child(2) { width: 75%; }
.pb-screen span:nth-child(3) { width: 45%; }
.pb-screen span:nth-child(4) { width: 65%; }

.pb-code {
  position: absolute;
  left: 28px;
  bottom: 24px;
  font-size: 42px;
  color: #5f6c4d;
  font-weight: 800;
  direction: ltr;
}

.pb-book,
.pb-paper,
.pb-pencil,
.pb-orbit {
  position: absolute;
}

.pb-book {
  width: 105px;
  height: 145px;
  background: #fffaf3;
  border-right: 12px solid #6b7359;
  border-radius: 10px;
  box-shadow: 0 16px 30px rgba(52,66,51,.12);
  animation: pbFloat 5s ease-in-out infinite;
}

.book-1 {
  right: 20px;
  top: 40px;
  transform: rotate(-12deg);
}

.book-2 {
  right: 445px;
  top: 165px;
  transform: rotate(10deg);
  border-right-color: #d9c6ab;
}

.pb-paper {
  width: 95px;
  height: 125px;
  background: #fff;
  border-radius: 8px;
  opacity: .92;
  box-shadow: 0 16px 30px rgba(52,66,51,.12);
  animation: pbPaper 5s ease-in-out infinite;
}

.paper-1 {
  right: 420px;
  top: 35px;
}

.paper-2 {
  right: 25px;
  top: 220px;
}

.pb-paper::before {
  content: "";
  position: absolute;
  width: 65%;
  height: 6px;
  top: 28px;
  right: 16px;
  background: #d9c6ab;
  border-radius: 999px;
  box-shadow: 0 18px #d9c6ab, 0 36px #d9c6ab;
}

.pb-pencil {
  width: 145px;
  height: 14px;
  background: linear-gradient(90deg, #6b7359 0 70%, #d9c6ab 70%);
  border-radius: 999px;
  right: 410px;
  top: 285px;
  transform: rotate(-25deg);
  box-shadow: 0 16px 30px rgba(52,66,51,.12);
  animation: pbFloat 4.5s ease-in-out infinite;
}

.pb-orbit {
  width: 210px;
  height: 210px;
  right: 160px;
  top: 55px;
  border: 2px dashed rgba(95,108,77,.25);
  border-radius: 50%;
  animation: pbRotate 18s linear infinite;
}

/* الكروت */
.pb-categories {
  width: min(1320px, calc(100vw - 70px)) !important;
  max-width: 1320px !important;
  margin: 0 auto !important;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}

.pb-card {
  min-height: 245px;
  background: rgba(255,250,243,.9);
  border: 1px solid rgba(217,198,171,.75);
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(52,66,51,.12);
  text-decoration: none !important;
  color: #344233 !important;
  padding: 30px 16px 22px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.pb-card::before {
  content: "";
  position: absolute;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: #efe2d1;
  top: 35px;
  left: 50%;
  transform: translateX(-50%);
}

.pb-card::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 55px;
  bottom: -18px;
  right: -18px;
  background: linear-gradient(135deg, #8b9277, #eadcc9);
  border-radius: 60% 40% 0 0;
  opacity: .75;
}

.pb-icon {
  position: relative;
  z-index: 1;
  font-size: 48px;
  line-height: 1;
  margin-bottom: 26px;
  filter: grayscale(1);
}

.pb-card h3 {
  position: relative;
  z-index: 1;
  font-size: 23px;
  line-height: 1.35;
  margin: 0;
  font-weight: 800;
  color: #344233 !important;
}

.pb-card span {
  position: relative;
  z-index: 1;
  display: block;
  width: 34px;
  height: 2px;
  background: #5f6c4d;
  margin: 14px auto;
}

.pb-card button {
  position: relative;
  z-index: 1;
  border: 1px solid #b9a17d;
  background: transparent;
  color: #344233;
  padding: 7px 22px;
  border-radius: 999px;
  font-family: inherit;
  cursor: pointer;
}

/* الفوتر بدون تخريب */
footer.store-footer,
.store-footer {
  background: transparent !important;
  color: #344233 !important;
  border-top: 1px solid rgba(217,198,171,.45) !important;
}

.store-footer h3,
.store-footer h4,
.store-footer p,
.store-footer a,
.store-footer li,
.store-footer span {
  color: #344233 !important;
}

/* الحركة */
@keyframes pbFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

@keyframes pbPaper {
  0%, 100% { transform: translateY(0) rotate(4deg); }
  50% { transform: translateY(-16px) rotate(-4deg); }
}

@keyframes pbRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* الجوال */
@media (max-width: 1024px) {
  .pb-hero {
    grid-template-columns: 1fr;
  }

  .pb-categories {
    grid-template-columns: repeat(3, 1fr);
  }

  .pb-hero h1 {
    font-size: 42px;
  }
}

@media (max-width: 600px) {
  .pb-custom-home {
    padding: 28px 14px;
  }

  .pb-hero,
  .pb-categories {
    width: calc(100vw - 28px) !important;
  }

  .pb-categories {
    grid-template-columns: 1fr;
  }

  .pb-hero {
    padding: 24px;
  }

  .pb-animated-work {
    transform: scale(.72);
    height: 280px;
  }

  .pb-hero h1 {
    font-size: 34px;
  }
}