/* Homepage amazing offers and popular category banners — Bambogilda 0.8.0 */
.zg-home-amazing,
.zg-home-popular-categories { background: var(--zg-white); }

/* Amazing offers */
.zg-home-amazing { padding: 18px 0 58px; }
.zg-amazing-shell {
  position: relative;
  display: grid;
  grid-template-columns: clamp(225px, 19vw, 255px) minmax(0, 1fr);
  min-height: 438px;
  overflow: hidden;
  direction: rtl;
  border-radius: 30px;
  background: var(--zg-primary-light);
  box-shadow: 0 8px 16px -2px rgba(130,194,110,.12);
}
.zg-amazing-panel {
  position: relative;
  z-index: 3;
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 40px 25px 25px;
  overflow: hidden;
  color: #fff;
}
.zg-amazing-heading-copy { display: flex; align-items: flex-start; gap: 10px; }
.zg-amazing-heading-icon { display: grid; width: 37px; height: 37px; flex: 0 0 37px; place-items: center; color: var(--zg-primary); border-radius: 50%; background: #fff; transform: rotate(-9deg); }
.zg-amazing-heading-icon svg { width: 22px; height: 22px; }
.zg-amazing-heading-copy h2 { margin: 0; color: #fff; font-size: clamp(20px, 1.65vw, 25px); font-weight: 700; line-height: 1.45; }
.zg-amazing-timer { display: flex; align-items: flex-start; justify-content: center; gap: 7px; margin-top: 28px; direction: ltr; }
.zg-amazing-timer > b { padding-top: 8px; color: rgba(255,255,255,.75); font-size: 16px; }
.zg-amazing-timer-unit { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.zg-amazing-timer-unit > div { display: flex; gap: 3px; direction: ltr; }
.zg-amazing-timer-unit span { display: grid; width: 25px; height: 34px; place-items: center; color: var(--zg-dark-700); border-radius: 9px; background: #fff; font-size: 15px; font-weight: 700; box-shadow: 0 5px 10px rgba(23,32,24,.06); }
.zg-amazing-timer-unit small { color: #fff; font-size: 10px; font-weight: 600; }
.zg-amazing-view-all { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; margin-top: 35px; color: #fff; font-size: 13px; font-weight: 700; }
.zg-amazing-view-all:hover { color: #fff; }
.zg-amazing-view-all i { display: grid; width: 30px; height: 26px; place-items: center; color: var(--zg-primary); border-radius: 6px; background: #fff; box-shadow: 0 8px 16px -2px rgba(255,255,255,.18); }
.zg-amazing-decoration { position: absolute; right: -10px; bottom: -12px; width: 255px; height: auto; color: #fff; pointer-events: none; }
.zg-amazing-carousel { position: relative; z-index: 2; min-width: 0; overflow: hidden; }
.zg-amazing-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(235px, 20vw, 265px);
  align-items: center;
  gap: 12px;
  height: 100%;
  padding: 38px 18px 38px 26px;
  overflow-x: auto;
  overflow-y: hidden;
  cursor: grab;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
  user-select: none;
  -webkit-user-select: none;
}
.zg-amazing-track::-webkit-scrollbar { display: none; }
.zg-amazing-track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.zg-amazing-track .zg-product-card { height: 362px; min-height: 362px; scroll-snap-align: start; }
.zg-amazing-track .zg-product-card-image { height: 176px; }
.zg-amazing-track .zg-product-card-title h3 { min-height: 54px; }
.zg-amazing-track .zg-product-card-discount { left: -14px; right: auto; }

/* Popular categories */
.zg-home-popular-categories { padding: 14px 0 76px; }
.zg-popular-heading { display: flex; align-items: center; gap: 22px; margin-bottom: 34px; direction: rtl; }
.zg-popular-heading h2 { flex: 0 0 auto; margin: 0; color: var(--zg-gray-300); font-size: clamp(20px, 1.8vw, 27px); font-weight: 700; }
.zg-popular-line { height: 1px; flex: 1; background: #eef5e8; }
.zg-popular-view-all { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 9px; color: var(--zg-dark-600); font-size: 13px; font-weight: 600; }
.zg-popular-view-all i { display: grid; width: 29px; height: 29px; place-items: center; color: #fff; border-radius: 6px 0 0 6px; background: var(--zg-primary-light); box-shadow: var(--zg-red-shadow); }
.zg-popular-carousel { min-width: 0; }
.zg-popular-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 54px) / 4);
  align-items: stretch;
  gap: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 2px 18px;
  cursor: grab;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
  user-select: none;
  -webkit-user-select: none;
}
.zg-popular-track::-webkit-scrollbar { display: none; }
.zg-popular-track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.zg-popular-card {
  position: relative;
  display: flex;
  min-width: 0;
  height: 290px;
  flex-direction: column;
  overflow: hidden;
  color: var(--zg-gray-50);
  border-radius: 29px;
  background: #fff;
  box-shadow: 0 8px 16px -2px rgba(68,82,71,.17);
  scroll-snap-align: start;
  transition: transform .25s ease, box-shadow .25s ease;
}
.zg-popular-card:hover { color: var(--zg-primary); transform: translateY(-4px); box-shadow: var(--zg-gray-shadow); }
.zg-popular-card-media { display: grid; width: 100%; height: 195px; flex: 0 0 195px; place-items: center; overflow: hidden; background: var(--zg-popular-bg, #f8fbf4); }
.zg-popular-card-media img { display: block; width: 100%; height: 100%; padding: 13px 22px; object-fit: contain; mix-blend-mode: multiply; transition: transform .3s ease; }
.zg-popular-card:hover .zg-popular-card-media img { transform: scale(1.04); }
.zg-popular-card-notch {
  position: absolute;
  top: 173px;
  left: 50%;
  display: grid;
  width: 45px;
  height: 45px;
  place-items: center;
  color: rgba(255,255,255,.92);
  border: 6px solid #fff;
  border-radius: 50%;
  background: var(--zg-popular-bg, #f8fbf4);
  background: color-mix(in srgb, var(--zg-popular-bg, #f8fbf4) 82%, #fff 18%);
  transform: translateX(-50%);
  transition: transform .25s ease;
}
.zg-popular-card:hover .zg-popular-card-notch { transform: translateX(-50%) translateY(3px); }
.zg-popular-card > strong { display: grid; min-height: 95px; flex: 1; place-items: center; padding: 23px 16px 12px; color: inherit; font-size: 16px; font-weight: 400; text-align: center; }
.zg-popular-nav { display: none; align-items: center; justify-content: center; gap: 13px; margin-top: 22px; direction: ltr; }
.zg-popular-nav button { display: grid; width: 50px; height: 50px; padding: 0; place-items: center; color: var(--zg-gray-50); border: 1.5px solid #eef5e8; border-radius: 50%; background: #fff; transition: color .2s ease, border-color .2s ease, opacity .2s ease; }
.zg-popular-nav button:hover { color: var(--zg-navy); border-color: var(--zg-navy); }
.zg-popular-nav button:disabled { color: #eef5e8; border-color: #f8fbf4; opacity: .6; cursor: not-allowed; }
.zg-home-popular-categories.is-static .zg-popular-track { cursor: default; }
.zg-home-popular-categories.is-static .zg-popular-nav { display: none !important; }

@media (max-width: 1180px) {
  .zg-amazing-shell { grid-template-columns: 220px minmax(0,1fr); }
  .zg-amazing-panel { padding-inline: 20px; }
  .zg-amazing-track { grid-auto-columns: 230px; }
  .zg-popular-card { height: 270px; }
  .zg-popular-card-media { height: 180px; flex-basis: 180px; }
  .zg-popular-card-notch { top: 158px; }
}

@media (max-width: 960px) {
  .zg-home-amazing { padding: 12px 0 48px; }
  .zg-amazing-shell { display: block; min-height: 0; border-radius: 26px; }
  .zg-amazing-panel { min-height: 116px; padding: 16px 16px 12px; overflow: visible; }
  .zg-amazing-heading-copy { position: absolute; top: 15px; right: 15px; align-items: center; }
  .zg-amazing-heading-icon { width: 30px; height: 30px; flex-basis: 30px; }
  .zg-amazing-heading-icon svg { width: 18px; height: 18px; }
  .zg-amazing-heading-copy h2 { max-width: 155px; font-size: 16px; line-height: 1.3; }
  .zg-amazing-timer { position: absolute; top: 14px; left: 14px; margin: 0; gap: 4px; }
  .zg-amazing-timer > b { padding-top: 5px; font-size: 12px; }
  .zg-amazing-timer-unit { gap: 3px; }
  .zg-amazing-timer-unit > div { gap: 2px; }
  .zg-amazing-timer-unit span { width: 20px; height: 28px; border-radius: 7px; font-size: 12px; }
  .zg-amazing-timer-unit small { font-size: 8px; }
  .zg-amazing-view-all { position: absolute; right: 50%; bottom: 13px; margin: 0; transform: translateX(50%); font-size: 11px; }
  .zg-amazing-view-all i { width: 26px; height: 23px; }
  .zg-amazing-decoration { display: none; }
  .zg-amazing-carousel { padding: 0 8px 9px; }
  .zg-amazing-track { grid-auto-columns: calc((100% - 8px) / 2); gap: 8px; height: auto; padding: 1px 0 2px; cursor: auto; }
  .zg-amazing-track .zg-product-card { height: auto; min-height: 286px; border-radius: 17px; padding: 8px 8px 10px; }
  .zg-amazing-track .zg-product-card-image { height: clamp(105px, 31vw, 150px); }
  .zg-amazing-track .zg-product-card-title { margin-top: 4px; }
  .zg-amazing-track .zg-product-card-title h3 { min-height: 49px; font-size: 11px; line-height: 1.9; }
  .zg-amazing-track .zg-product-card-bottom { grid-template-columns: minmax(0,1fr) 40px; gap: 5px; min-height: 52px; }
  .zg-amazing-track .zg-product-card-cart { width: 40px; height: 40px; border-radius: 11px; }
  .zg-amazing-track .zg-product-card-price > strong { font-size: 11px; }
  .zg-amazing-track .zg-product-card-price small,
  .zg-amazing-track .zg-product-card-price del { font-size: 8px; }
  .zg-amazing-track .zg-product-card-discount { left: -8px; bottom: 25px; min-width: 42px; height: 23px; padding-inline: 7px; font-size: 9px; }

  .zg-home-popular-categories { padding: 8px 0 55px; }
  .zg-popular-heading { gap: 10px; margin-bottom: 24px; }
  .zg-popular-heading h2 { max-width: 54%; font-size: 19px; }
  .zg-popular-line { display: none; }
  .zg-popular-view-all { margin-right: auto; font-size: 11px; }
  .zg-popular-view-all i { width: 25px; height: 25px; }
  .zg-popular-track { grid-auto-columns: calc((100% - 10px) / 2); gap: 10px; padding-bottom: 8px; cursor: auto; }
  .zg-popular-card { height: 218px; border-radius: 18px; }
  .zg-popular-card-media { height: 145px; flex-basis: 145px; }
  .zg-popular-card-media img { padding: 8px 12px; }
  .zg-popular-card-notch { top: 128px; width: 36px; height: 36px; border-width: 5px; }
  .zg-popular-card-notch svg { width: 16px; height: 16px; }
  .zg-popular-card > strong { min-height: 73px; padding: 20px 8px 8px; font-size: 13px; }
  .zg-popular-nav { display: flex; }
}

@media (max-width: 420px) {
  .zg-amazing-heading-copy h2 { max-width: 130px; font-size: 14px; }
  .zg-amazing-timer { left: 10px; }
  .zg-amazing-timer-unit span { width: 18px; height: 26px; font-size: 11px; }
  .zg-amazing-track .zg-product-card { min-height: 268px; }
  .zg-amazing-track .zg-product-card-image { height: 102px; }
  .zg-popular-heading h2 { font-size: 17px; }
  .zg-popular-card { height: 194px; }
  .zg-popular-card-media { height: 128px; flex-basis: 128px; }
  .zg-popular-card-notch { top: 112px; width: 34px; height: 34px; }
  .zg-popular-card > strong { min-height: 66px; font-size: 12px; }
}

/* Homepage blog carousel — Bambogilda 0.10.0 */
.zg-home-blog { padding: 24px 0 72px; background: var(--zg-white); }
.zg-blog-heading { display: flex; align-items: center; gap: 22px; margin-bottom: 34px; direction: rtl; }
.zg-blog-heading h2 { flex: 0 0 auto; margin: 0; color: var(--zg-gray-300); font-size: clamp(22px, 1.85vw, 29px); font-weight: 700; }
.zg-blog-heading-line { height: 1px; flex: 1; background: #eef5e8; }
.zg-blog-view-all { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 9px; color: var(--zg-dark-600); font-size: 13px; font-weight: 600; }
.zg-blog-view-all i { display: grid; width: 29px; height: 29px; place-items: center; color: #fff; border-radius: 6px 0 0 6px; background: var(--zg-primary-light); box-shadow: var(--zg-red-shadow); }
.zg-blog-carousel { min-width: 0; }
.zg-blog-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 54px) / 4);
  align-items: stretch;
  gap: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 2px 18px;
  cursor: grab;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
  user-select: none;
  -webkit-user-select: none;
}
.zg-blog-track::-webkit-scrollbar { display: none; }
.zg-blog-track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.zg-blog-card {
  display: flex;
  min-width: 0;
  height: 326px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #f8fbf4;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 8px 16px -2px rgba(68,82,71,.14);
  scroll-snap-align: start;
  transition: transform .25s ease, box-shadow .25s ease;
}
.zg-blog-card:hover { transform: translateY(-4px); box-shadow: var(--zg-gray-shadow); }
.zg-blog-card-media { position: relative; display: block; width: 100%; height: 194px; flex: 0 0 194px; overflow: hidden; background: #eef5e8; }
.zg-blog-card-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.zg-blog-card:hover .zg-blog-card-media img { transform: scale(1.035); }
.zg-blog-category { position: absolute; top: 18px; right: 20px; display: inline-flex; align-items: center; justify-content: center; min-width: 75px; height: 29px; padding: 0 15px; border-radius: 999px; background: rgba(255,255,255,.95); color: var(--zg-gray-100); font-size: 12px; line-height: 1; box-shadow: 0 3px 12px rgba(37,49,41,.06); }
.zg-blog-card-body { display: flex; min-height: 0; flex: 1; flex-direction: column; padding: 15px 18px 14px; }
.zg-blog-card h3 { display: -webkit-box; min-height: 55px; margin: 0; overflow: hidden; color: var(--zg-dark-700); font-size: 16px; font-weight: 600; line-height: 1.8; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.zg-blog-card h3 a { color: inherit; }
.zg-blog-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 11px; }
.zg-blog-card-meta time { display: inline-flex; align-items: center; gap: 7px; color: var(--zg-gray-50); font-size: 11px; white-space: nowrap; }
.zg-blog-card-meta time svg { flex: 0 0 auto; }
.zg-blog-read-more { display: inline-flex; align-items: center; gap: 5px; color: var(--zg-primary-light); font-size: 13px; font-weight: 600; white-space: nowrap; }
.zg-blog-read-more svg { width: 17px; height: 17px; }
.zg-blog-nav { display: none; align-items: center; justify-content: center; gap: 14px; margin-top: 20px; direction: ltr; }
.zg-blog-nav button { display: grid; width: 50px; height: 50px; padding: 0; place-items: center; color: var(--zg-gray-50); border: 1.5px solid #eef5e8; border-radius: 50%; background: #fff; transition: color .2s ease, border-color .2s ease, opacity .2s ease; }
.zg-blog-nav button:hover { color: var(--zg-navy); border-color: var(--zg-navy); }
.zg-blog-nav button:disabled { color: #eef5e8; border-color: #f8fbf4; opacity: .62; cursor: not-allowed; }
.zg-home-blog.is-static .zg-blog-track { cursor: default; }
.zg-home-blog.is-static .zg-blog-nav { display: none !important; }

@media (max-width: 1100px) {
  .zg-blog-track { grid-auto-columns: calc((100% - 36px) / 3); }
}

@media (max-width: 960px) {
  .zg-home-blog { padding: 14px 0 50px; }
  .zg-blog-heading { gap: 10px; margin-bottom: 22px; }
  .zg-blog-heading h2 { font-size: 20px; }
  .zg-blog-heading-line { display: none; }
  .zg-blog-view-all { margin-right: auto; font-size: 11px; }
  .zg-blog-view-all i { width: 25px; height: 25px; }
  .zg-blog-track { grid-auto-columns: calc((100% - 12px) / 1.5); gap: 12px; padding: 2px 2px 8px; cursor: auto; }
  .zg-blog-card { height: 305px; border-radius: 18px; }
  .zg-blog-card-media { height: 185px; flex-basis: 185px; }
  .zg-blog-category { top: 12px; right: 12px; min-width: 64px; height: 26px; padding-inline: 13px; font-size: 10px; }
  .zg-blog-card-body { padding: 11px 13px 12px; }
  .zg-blog-card h3 { min-height: 49px; font-size: 14px; line-height: 1.75; }
  .zg-blog-card-meta { padding-top: 8px; }
  .zg-blog-card-meta time { font-size: 10px; }
  .zg-blog-read-more { font-size: 11px; }
  .zg-blog-nav { display: flex; }
}

@media (max-width: 420px) {
  .zg-blog-card { height: 292px; }
  .zg-blog-card-media { height: 174px; flex-basis: 174px; }
  .zg-blog-heading h2 { font-size: 18px; }
  .zg-blog-nav button { width: 46px; height: 46px; }
}

/* Keep the sale ribbon attached to the left edge and above the cart button. */
.zg-amazing-track .zg-product-card-discount { left: 0 !important; right: auto !important; bottom: 73px !important; }
@media (max-width: 560px) { .zg-amazing-track .zg-product-card-discount { left: 0 !important; bottom: 62px !important; } }

/* Configurable category product carousels — Bambogilda 0.17.0 */
.zg-home-category-products { padding: 18px 0 68px; background: var(--zg-white); }
.zg-category-products-heading { display: flex; align-items: center; gap: 22px; margin-bottom: 32px; direction: rtl; }
.zg-category-products-heading h2 { flex: 0 0 auto; margin: 0; color: var(--zg-gray-300); font-size: clamp(22px,1.8vw,28px); font-weight: 700; }
.zg-category-products-heading > span { height: 1px; flex: 1; background: #eef5e8; }
.zg-category-products-heading > a { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 9px; color: var(--zg-dark-600); font-size: 13px; font-weight: 600; }
.zg-category-products-heading > a i { display: grid; width: 29px; height: 29px; place-items: center; color: #fff; border-radius: 6px 0 0 6px; background: var(--zg-primary-light); box-shadow: var(--zg-red-shadow); }
.zg-category-products-layout { display: flex; min-width: 0; align-items: stretch; gap: 18px; direction: rtl; }
.zg-category-products-banner { position: relative; display: flex; width: 245px; min-width: 245px; height: 360px; flex-direction: column; overflow: hidden; border-radius: 24px; background: var(--zg-category-banner-bg,#82c26e); color: #fff; box-shadow: var(--zg-red-shadow); }
.zg-category-products-banner::before { content:""; position:absolute; inset:0; background: repeating-linear-gradient(0deg,transparent 0 34px,rgba(255,255,255,.13) 34px 36px), radial-gradient(circle at 70% 20%,rgba(255,255,255,.18) 0 64px,transparent 65px); pointer-events:none; }
.zg-category-products-banner-media { position: relative; z-index: 1; display: grid; min-height: 0; flex: 1; place-items: center; padding: 22px 18px 0; }
.zg-category-products-banner-media img { display: block; width: 100%; height: 100%; max-height: 245px; object-fit: contain; filter: drop-shadow(0 14px 18px rgba(37,49,41,.22)); transition: transform .3s ease; }
.zg-category-products-banner:hover .zg-category-products-banner-media img { transform: translateY(-4px) scale(1.025); }
.zg-category-products-banner-footer { position: relative; z-index: 1; display: flex; min-height: 88px; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 20px 18px; }
.zg-category-products-banner-footer strong { color:#fff; font-size: 24px; font-weight:700; }
.zg-category-products-banner-footer i { display:grid; width:38px; height:38px; place-items:center; flex:0 0 38px; border-radius:50%; background:#fff; color:var(--zg-navy); box-shadow:0 7px 18px rgba(37,49,41,.18); }
.zg-category-products-carousel { min-width: 0; flex: 1; }
.zg-category-products-track { display:grid; grid-auto-flow:column; grid-auto-columns:calc((100% - 48px) / 4); align-items:stretch; gap:16px; height:360px; overflow-x:auto; overflow-y:hidden; padding:0 1px 14px; cursor:grab; scroll-snap-type:x mandatory; scrollbar-width:none; overscroll-behavior-inline:contain; user-select:none; -webkit-user-select:none; direction:rtl; }
.zg-category-products-track::-webkit-scrollbar { display:none; }
.zg-category-products-track.is-dragging { cursor:grabbing; scroll-snap-type:none; }
.zg-category-products-track .zg-product-card { height:346px; min-height:346px; scroll-snap-align:start; }
.zg-category-products-track .zg-product-card-image { height:166px; }
.zg-category-products-track .zg-product-card-title h3 { min-height:54px; }
.zg-category-products-nav { display:none; align-items:center; justify-content:center; gap:14px; margin-top:22px; direction:ltr; }
.zg-category-products-nav button { display:grid; width:50px; height:50px; padding:0; place-items:center; color:var(--zg-gray-50); border:1.5px solid #eef5e8; border-radius:50%; background:#fff; transition:color .2s ease,border-color .2s ease,opacity .2s ease; }
.zg-category-products-nav button:hover { color:var(--zg-navy); border-color:var(--zg-navy); }
.zg-category-products-nav button:disabled { color:#eef5e8; border-color:#f8fbf4; opacity:.62; cursor:not-allowed; }

@media (max-width: 1180px) {
  .zg-category-products-banner { width:220px; min-width:220px; }
  .zg-category-products-track { grid-auto-columns:calc((100% - 48px) / 4); }
}

@media (max-width: 960px) {
  .zg-home-category-products { padding:8px 0 52px; }
  .zg-category-products-heading { gap:10px; margin-bottom:22px; }
  .zg-category-products-heading h2 { font-size:19px; }
  .zg-category-products-heading > span { display:none; }
  .zg-category-products-heading > a { margin-right:auto; font-size:11px; }
  .zg-category-products-heading > a i { width:25px; height:25px; }
  .zg-category-products-banner { display:none; }
  .zg-category-products-layout { display:block; }
  .zg-category-products-track { grid-auto-columns:calc((100% - 10px) / 2); gap:10px; height:auto; padding-bottom:8px; cursor:auto; }
  .zg-category-products-track .zg-product-card { height:auto; min-height:300px; }
  .zg-category-products-track .zg-product-card-image { height:128px; }
  .zg-category-products-nav { display:flex; }
}

@media (max-width: 420px) {
  .zg-category-products-heading h2 { font-size:17px; }
  .zg-category-products-track .zg-product-card { min-height:286px; }
  .zg-category-products-track .zg-product-card-image { height:116px; }
}


/* Three advertising banners below category product carousels. */
.zg-home-ad-banners { padding: 4px 0 72px; background: var(--zg-white); }
.zg-home-ad-banners-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 36px; direction: rtl; }
.zg-home-ad-banner { position: relative; display: block; min-width: 0; overflow: hidden; aspect-ratio: 2.32 / 1; border-radius: 22px; background: #f8fbf4; box-shadow: 0 8px 18px -5px rgba(68,82,71,.16); isolation: isolate; }
.zg-home-ad-banner::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(37,49,41,.05); border-radius: inherit; pointer-events: none; }
.zg-home-ad-banner img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .35s ease, filter .35s ease; }
a.zg-home-ad-banner:hover img { transform: scale(1.025); filter: saturate(1.03); }

@media (max-width: 1024px) {
  .zg-home-ad-banners-grid { gap: 18px; }
  .zg-home-ad-banner { border-radius: 18px; }
}

@media (max-width: 767px) {
  .zg-home-ad-banners { padding: 2px 0 48px; }
  .zg-home-ad-banners-grid { grid-template-columns: 1fr; gap: 12px; }
  .zg-home-ad-banner { aspect-ratio: 2.28 / 1; border-radius: 17px; }
}

/* Product brands carousel below the three advertising banners — Bambogilda 0.19.0 */
.zg-home-brands { padding: 4px 0 74px; background: var(--zg-white); }
.zg-brands-heading { display: flex; align-items: center; gap: 22px; margin-bottom: 34px; direction: rtl; }
.zg-brands-heading h2 { flex: 0 0 auto; margin: 0; color: var(--zg-gray-300); font-size: clamp(22px,1.8vw,29px); font-weight: 700; }
.zg-brands-heading-line { height: 1px; flex: 1; background: #eef5e8; }
.zg-brands-view-all { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 9px; color: var(--zg-dark-600); font-size: 13px; font-weight: 600; }
.zg-brands-view-all i { display: grid; width: 29px; height: 29px; place-items: center; color: #fff; border-radius: 6px 0 0 6px; background: var(--zg-primary-light); box-shadow: var(--zg-red-shadow); }
.zg-brands-carousel { min-width: 0; }
.zg-brands-track { display: flex; gap: 24px; overflow-x: auto; overflow-y: hidden; padding: 2px 2px 16px; cursor: grab; direction: rtl; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-inline: contain; user-select: none; -webkit-user-select: none; }
.zg-brands-track::-webkit-scrollbar { display: none; }
.zg-brands-track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.zg-brand-card { display: flex; min-width: 0; flex: 0 0 calc((100% - 72px) / 4); height: 134px; flex-direction: column; justify-content: space-between; padding: 20px 24px 17px; overflow: hidden; border: 1px solid #f8fbf4; border-radius: 21px; background: #fff; box-shadow: 0 9px 17px -5px rgba(68,82,71,.20); scroll-snap-align: start; transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease; }
.zg-brand-card:hover { transform: translateY(-3px); border-color: rgba(130,194,110,.24); box-shadow: 0 14px 24px -8px rgba(68,82,71,.28); }
.zg-brand-card-top { display: flex; align-items: center; gap: 16px; min-width: 0; direction: rtl; }
.zg-brand-card-top img { display: block; width: 60px; height: 48px; flex: 0 0 60px; object-fit: contain; object-position: center; }
.zg-brand-card-fallback { display: grid; width: 52px; height: 52px; flex: 0 0 52px; place-items: center; border-radius: 15px; background: rgba(130,194,110,.08); color: var(--zg-primary); font-size: 24px; font-weight: 700; }
.zg-brand-card-top strong { overflow: hidden; color: var(--zg-dark-700); font-size: 17px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.zg-brand-card-bottom { display: flex; align-items: center; gap: 12px; min-width: 0; direction: ltr; }
.zg-brand-card-bottom i { display: grid; width: 29px; height: 29px; flex: 0 0 29px; place-items: center; border-radius: 7px 0 0 7px; background: var(--zg-navy); color: #fff; box-shadow: 0 6px 13px rgba(37,49,41,.22); }
.zg-brand-card-line { min-width: 20px; flex: 1; border-top: 1px dashed #5cb270; }
.zg-brand-card-count { display: none; flex: 0 0 auto; color: var(--zg-navy); font-size: 13px; font-weight: 700; white-space: nowrap; direction: rtl; }
.zg-brands-nav { display: none; align-items: center; justify-content: center; gap: 14px; margin-top: 20px; direction: ltr; }
.zg-brands-nav button { display: grid; width: 50px; height: 50px; padding: 0; place-items: center; border: 1.5px solid #eef5e8; border-radius: 50%; background: #fff; color: var(--zg-gray-50); transition: color .2s ease, border-color .2s ease, opacity .2s ease; }
.zg-brands-nav button:hover { color: var(--zg-navy); border-color: var(--zg-navy); }
.zg-brands-nav button:disabled { color: #eef5e8; border-color: #f8fbf4; opacity: .62; cursor: not-allowed; }
.zg-home-brands.is-static .zg-brands-track { cursor: default; }
.zg-home-brands.is-static .zg-brands-nav { display: none !important; }

@media (max-width: 1100px) {
  .zg-brand-card { flex-basis: calc((100% - 48px) / 3); }
}

@media (max-width: 767px) {
  .zg-home-brands { padding: 2px 0 50px; }
  .zg-brands-heading { gap: 10px; margin-bottom: 22px; }
  .zg-brands-heading h2 { font-size: 20px; }
  .zg-brands-heading-line { display: none; }
  .zg-brands-view-all { margin-right: auto; font-size: 12px; }
  .zg-brands-view-all i { width: 29px; height: 29px; }
  .zg-brands-track { gap: 12px; padding: 2px 2px 10px; cursor: auto; }
  .zg-brand-card { flex-basis: calc((100% - 12px) / 2); height: 164px; padding: 20px 16px 18px; border-radius: 20px; }
  .zg-brand-card-top { gap: 10px; }
  .zg-brand-card-top img { width: 58px; height: 58px; flex-basis: 58px; }
  .zg-brand-card-top strong { font-size: 18px; }
  .zg-brand-card-bottom { gap: 10px; }
  .zg-brand-card-bottom i { width: 38px; height: 38px; flex-basis: 38px; border-radius: 9px 0 0 9px; }
  .zg-brand-card-count { display: inline-block; font-size: 17px; }
  .zg-brands-nav { display: flex; }
}

@media (max-width: 420px) {
  .zg-brands-heading h2 { font-size: 18px; }
  .zg-brand-card { height: 152px; padding: 17px 13px 15px; }
  .zg-brand-card-top img { width: 50px; height: 50px; flex-basis: 50px; }
  .zg-brand-card-top strong { font-size: 15px; }
  .zg-brand-card-count { font-size: 14px; }
  .zg-brands-nav button { width: 46px; height: 46px; }
}


/* HTML/CSS technology banner below product brands — Bambogilda 0.20.0 */
.zg-home-tech-banner { padding: 2px 0 76px; background: var(--zg-white); }
.zg-tech-banner-card { display: grid; grid-template-columns: 1.12fr .88fr; min-height: 242px; overflow: hidden; border-radius: 25px; background: #eef5e8; box-shadow: 0 9px 22px -8px rgba(68,82,71,.18); direction: rtl; isolation: isolate; }
.zg-tech-banner-copy { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; justify-content: center; padding: 34px 58px 34px 42px; color: var(--zg-dark-700); }
.zg-tech-banner-copy > strong { display: block; margin-bottom: 8px; color: var(--zg-dark-700); font-size: clamp(24px,2.2vw,36px); font-weight: 700; line-height: 1.45; }
.zg-tech-banner-copy > span { display: block; max-width: 620px; margin-bottom: 24px; color: var(--zg-gray-100); font-size: 15px; line-height: 1.9; }
.zg-tech-banner-button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 9px; padding: 0 20px; border-radius: 999px; background: var(--zg-primary-light); color: #fff; font-style: normal; box-shadow: var(--zg-red-shadow); transition: transform .2s ease, background .2s ease; }
.zg-tech-banner-button b { color: inherit; font-size: 14px; font-weight: 700; }
.zg-tech-banner-card:hover .zg-tech-banner-button { transform: translateY(-2px); background: var(--zg-primary); }
.zg-tech-banner-media { position: relative; display: grid; min-width: 0; place-items: center; overflow: hidden; padding: 15px 26px 0; background: linear-gradient(135deg,#82c26e 0%,#82c26e 48%,#82c26e 100%); }
.zg-tech-banner-media::before { content:""; position:absolute; inset:0; background: repeating-linear-gradient(90deg,rgba(255,255,255,.13) 0 2px,transparent 2px 56px), radial-gradient(circle at 68% 23%,rgba(255,255,255,.24) 0 80px,transparent 81px), radial-gradient(circle at 30% 78%,rgba(255,255,255,.14) 0 100px,transparent 101px); opacity:.75; }
.zg-tech-banner-media::after { content:""; position:absolute; width:230px; height:230px; right:-100px; bottom:-120px; border:42px solid rgba(255,255,255,.09); border-radius:50%; }
.zg-tech-banner-media img { position: relative; z-index: 2; display: block; width: min(100%,430px); height: 220px; object-fit: contain; object-position: center bottom; filter: drop-shadow(0 18px 24px rgba(37,49,41,.23)); transition: transform .3s ease; }
.zg-tech-banner-card:hover .zg-tech-banner-media img { transform: translateY(-4px) scale(1.02); }
.zg-tech-banner-arrow { position:absolute; z-index:3; top:50%; right:-21px; display:grid; width:42px; height:42px; place-items:center; border-radius:50%; background:#fff; color:var(--zg-navy); box-shadow:0 7px 17px rgba(37,49,41,.16); transform:translateY(-50%); }
.zg-tech-banner-decoration { position:absolute; inset:auto 16px 16px auto; width:70px; height:70px; border:13px solid rgba(255,255,255,.10); border-radius:50%; }

@media (max-width: 900px) {
  .zg-tech-banner-card { grid-template-columns: 1fr 1fr; }
  .zg-tech-banner-copy { padding: 30px 34px; }
  .zg-tech-banner-media img { height: 195px; }
}
@media (max-width: 767px) {
  .zg-home-tech-banner { padding: 0 0 50px; }
  .zg-tech-banner-card { grid-template-columns: 1fr; min-height: 0; border-radius: 23px; }
  .zg-tech-banner-copy { min-height: 205px; align-items:center; padding: 28px 24px 38px; text-align:center; }
  .zg-tech-banner-copy > strong { margin-bottom: 7px; font-size: 22px; }
  .zg-tech-banner-copy > span { max-width: 300px; margin-bottom: 18px; font-size: 14px; line-height: 1.85; }
  .zg-tech-banner-button { min-height: 46px; padding-inline:18px; }
  .zg-tech-banner-media { min-height: 206px; padding: 24px 14px 0; }
  .zg-tech-banner-media img { width:min(100%,320px); height:180px; }
  .zg-tech-banner-arrow { top:-19px; right:50%; width:40px; height:40px; transform:translateX(50%); }
  .zg-tech-banner-arrow svg { transform:rotate(-90deg); }
}

.zg-tech-banner-arrow { z-index: 30; }
