#page-home .home-admin-banner {
  width: calc(100% - 24px);
  max-width: 720px;
  margin: 10px 12px 0;
  overflow: hidden;
  border: 1px solid #fed7aa;
  border-radius: 16px;
  background: #fffaf5;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.1);
  line-height: 0;
}

#page-home .home-admin-banner[hidden] {
  display: none;
}

#page-home .home-admin-banner img {
  display: block;
  width: 100%;
  max-height: min(42vw, 260px);
  object-fit: contain;
  background: #fff;
}

#page-home .search-section-wrapper {
  padding: 10px 16px 14px;
  direction: rtl;
}

#page-home .search-container {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(100%, 720px);
  margin: 0 auto;
  padding: 8px 10px;
  border: 1px solid #fed7aa;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.08);
}

#page-home .search-input-main {
  min-width: 0;
  flex: 1 1 auto;
  border: 0;
  outline: 0;
  background: transparent;
  color: #1f2937;
  font: 700 13px/1.5 Cairo, sans-serif;
}

#page-home .home-search-submit {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 9px;
  background: #ea580c;
  color: #fff;
  cursor: pointer;
  font: 800 12px/1 Cairo, sans-serif;
}

#page-home .home-search-submit:active {
  transform: translateY(1px);
}

#page-home .home-search-results[hidden] {
  display: none !important;
}

#page-home .home-search-results {
  padding: 8px 16px 16px;
}

#page-home .home-search-empty {
  padding: 24px 12px;
  color: #64748b;
  text-align: center;
  font: 800 13px/1.6 Cairo, sans-serif;
}

#page-home .home-brands-scroll {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 1px 8px;
  direction: rtl;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

#page-home .home-brands-scroll::-webkit-scrollbar {
  display: none;
}

#page-home .home-brand-card {
  flex: 0 0 clamp(66px, 18vw, 78px);
  min-width: 0;
  min-height: 78px;
  padding: 7px 5px 6px;
  border: 1px solid #f1d7c2;
  border-radius: 12px;
  background: #fff;
  color: #374151;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.07);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  scroll-snap-align: start;
  font: 800 10px/1.2 Cairo, sans-serif;
}

#page-home .home-brand-card:active {
  transform: translateY(1px);
}

#page-home .home-brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
}

#page-home .home-brand-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#page-home .home-brand-name {
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}

#page-home .home-promo-slider {
  display: flex;
  grid-template-columns: none;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}

#page-home .home-promo-slider::-webkit-scrollbar {
  display: none;
}

#page-home .home-promo-slider > .product-card {
  flex: 0 0 min(78vw, 230px);
  scroll-snap-align: start;
}

#page-home .home-mini-products {
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

#page-home .home-mini-products::-webkit-scrollbar {
  display: none;
}

#page-home .home-mini-card {
  position: relative;
  flex: 0 0 clamp(105px, 29vw, 125px);
  min-width: 0;
  scroll-snap-align: start;
}

#page-home .home-mini-card-main {
  display: flex;
  width: 100%;
  min-height: 166px;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  padding: 6px;
  border: 1px solid #f1d7c2;
  border-radius: 10px;
  background: #fff;
  color: #374151;
  text-align: right;
  cursor: pointer;
  font: inherit;
}

#page-home .home-mini-image {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
  background: #fff7ed;
}

#page-home .home-mini-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#page-home .home-mini-name {
  display: -webkit-box;
  min-height: 29px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: #374151;
  font: 800 10px/1.35 Cairo, sans-serif;
}

#page-home .home-mini-price-row {
  display: flex;
  align-items: baseline;
  gap: 3px;
  min-width: 0;
  flex-wrap: wrap;
}

#page-home .home-mini-price {
  color: #ea580c;
  font: 900 11px/1.2 Cairo, sans-serif;
}

#page-home .home-mini-old-price {
  color: #9ca3af;
  font: 700 9px/1.2 Cairo, sans-serif;
}

#page-home .home-mini-discount {
  align-self: flex-start;
  color: #dc2626;
  font: 800 9px/1.2 Cairo, sans-serif;
}

#page-home .home-mini-add {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #ea580c;
  color: #fff;
  cursor: pointer;
  font: 900 16px/24px Cairo, sans-serif;
}

#page-home #offers-section,
#page-home #recommended-section,
#page-home #branch-all-products-section {
  max-width: 100%;
  overflow: hidden;
}

/* Compact countdown for the Home exclusive-offer card only. */
#page-home #flashdeal-home .fd-countdown-live {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 4px;
  width: max-content;
  max-width: 100%;
  margin: 0 0 10px;
  direction: rtl;
}

#page-home #flashdeal-home .fd-time-box {
  position: relative;
  flex: 0 0 clamp(30px, 8.5vw, 36px);
  min-width: clamp(30px, 8.5vw, 36px);
  width: clamp(30px, 8.5vw, 36px);
  height: clamp(30px, 8.5vw, 36px);
  box-sizing: border-box;
  padding: 3px 1px 2px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 1px 3px rgba(20, 10, 45, 0.1);
  color: #54208a;
  text-align: center;
}

#page-home #flashdeal-home .fd-time-box:not(:last-child)::after {
  content: ':';
  position: absolute;
  top: 50%;
  inset-inline-start: calc(100% + 2px);
  transform: translateY(-58%);
  color: rgba(255, 255, 255, 0.9);
  font: 900 14px/1 Cairo, sans-serif;
}

#page-home #flashdeal-home .fd-time-num {
  display: block;
  font: 900 13px/1.05 Cairo, sans-serif;
  font-variant-numeric: tabular-nums;
}

#page-home #flashdeal-home .fd-time-label {
  display: block;
  margin-top: 1px;
  color: #6b4a83;
  font: 700 6.5px/1 Cairo, sans-serif;
  opacity: 0.85;
}

/* Keep the Home exclusive-offer pagination compact; these are slide controls, not timer units. */
#page-home #flashdeal-home .fd-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: max-content;
  max-width: 90px;
  min-width: 0;
  margin: 7px auto 0;
  padding: 0;
}

#page-home #flashdeal-home .fd-dot-indicator,
#page-home #flashdeal-home .fd-dot-indicator.active {
  flex: 0 0 auto;
  min-width: 0;
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  box-shadow: none;
  transform: none;
}

#page-home #flashdeal-home .fd-dot-indicator.active {
  width: 16px;
  border-radius: 999px;
  background: #fff;
}

/* Home branch cards: premium compact two-column cards. */
#page-home .branch-picker {
  margin-block: 10px 12px;
  padding: 10px;
}

#page-home .branch-picker-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
  align-items: stretch;
}

#page-home .branch-choice {
  position: relative;
  min-height: 0;
  height: 160px;
  padding: 10px 8px 8px;
  box-sizing: border-box;
  overflow: hidden;
  border: 1px solid #f1d7c2;
  border-radius: 16px;
  background: #fff;
  color: #1f2937;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(15, 23, 42, .055);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

#page-home .branch-choice:hover {
  transform: translateY(-2px);
  border-color: #fdba74;
  box-shadow: 0 7px 16px rgba(234, 88, 12, .11);
}

#page-home .branch-choice.active {
  border: 2px solid #ea580c;
  background: #fff;
  color: #1f2937;
  box-shadow: 0 6px 16px rgba(234, 88, 12, .16);
}

#page-home .branch-choice-visual {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 70px;
  width: 70px;
  height: 70px;
  margin: 0 auto;
  border: 1px solid rgba(234, 88, 12, .18);
  border-radius: 50%;
  background: #fffaf5;
  overflow: visible;
}

#page-home .branch-choice-image {
  display: block;
  width: 56px;
  height: 56px;
  object-fit: contain;
  border: 0;
  border-radius: 50%;
  box-shadow: none;
}

#page-home .branch-choice-check {
  position: absolute;
  z-index: 2;
  top: -3px;
  right: -3px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #ea580c;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(234, 88, 12, .22);
}

#page-home .branch-choice-info {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  height: auto;
  padding: 0;
  box-sizing: border-box;
  gap: 5px;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
}

#page-home .branch-choice-title {
  width: 100%;
  min-height: 34px;
  max-height: 34px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: #111827;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
}

#page-home .branch-choice-meta {
  width: 100%;
  min-height: 31px;
  max-height: 31px;
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
  overflow: hidden;
  color: #6b7280;
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.45;
  text-align: center;
}

#page-home .branch-choice-meta span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  text-align: center;
}

#page-home .branch-choice-meta svg {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  color: #ea580c;
}

@media (max-width: 430px) {
  #page-home .branch-picker { padding: 9px; }
  #page-home .branch-choice { height: 160px; }
}

@media (max-width: 360px) {
  #page-home .branch-picker-list { gap: 8px; }
  #page-home .branch-choice { height: 156px; padding-inline: 6px; }
  #page-home .branch-choice-visual { flex-basis: 66px; width: 66px; height: 66px; }
  #page-home .branch-choice-image { width: 54px; height: 54px; }
  #page-home .branch-choice-title { font-size: 12.5px; }
  #page-home .branch-choice-meta { font-size: 10px; }
}

@media (max-width: 360px) {
  #page-home #flashdeal-home .fd-countdown-live { gap: 4px; }
  #page-home #flashdeal-home .fd-time-box {
    flex-basis: 30px;
    min-width: 30px;
    width: 30px;
    height: 32px;
  }
  #page-home #flashdeal-home .fd-time-num { font-size: 12px; }
  #page-home #flashdeal-home .fd-time-label { font-size: 6px; }
}
@media (max-width: 360px) {
  #page-home .home-promotional-banner {
    width: calc(100% - 20px);
    margin-inline: 10px;
    min-height: 148px;
    height: 46vw;
    border-radius: 14px;
  }

  #page-home .search-container {
    gap: 6px;
    padding-inline: 8px;
  }

  #page-home .home-search-submit {
    padding-inline: 11px;
  }
}
#page-home .home-promotional-banner {
  width: calc(100% - 24px);
  min-height: 164px;
  height: clamp(164px, 42vw, 248px);
  margin: 12px 12px 0;
  border-radius: 18px;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  isolation: isolate;
}

#page-home .home-promotional-banner .hero-location-pill {
  z-index: 1;
}

#page-home #hero-slider-home {
  max-width: 100%;
  overflow: hidden;
  touch-action: pan-y;
}


/* Release Home refinements */
#page-home #home-content { display: block !important; }
#page-home .home-brands-scroll {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  gap: 8px;
  padding: 2px 2px 8px;
  direction: rtl;
}
#page-home .home-brands-scroll::-webkit-scrollbar { display: none; }
#page-home .home-brand-card {
  flex: 0 0 68px;
  width: 68px;
  min-height: 76px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 7px 4px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  color: #374151;
  font: inherit;
  cursor: pointer;
  scroll-snap-align: start;
}
#page-home .home-brand-logo { width: 36px; height: 36px; object-fit: contain; }
#page-home .home-brand-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; font-weight: 800; }
#page-home .home-mini-products { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 8px; scrollbar-width: none; }
#page-home .home-mini-products::-webkit-scrollbar { display: none; }
#page-home .home-mini-products > .product-card { flex: 0 0 118px; width: 118px; min-width: 118px; }
#page-home #hero-slider-home .hs-progress-row {
  width: max-content;
  max-width: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-inline: auto;
}
#page-home #hero-slider-home .hs-progress-track {
  flex: 0 0 18px;
  width: 18px;
  min-width: 18px;
  height: 4px;
  min-height: 4px;
  max-height: 4px;
  border-radius: 999px;
  overflow: hidden;
}
#page-home #hero-slider-home .hs-progress-fill { height: 100%; min-height: 0; max-height: 100%; flex: 0 0 auto; border-radius: inherit; }
#page-home .branch-picker-list { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px; }
#page-home .branch-choice { height: 160px; min-width: 0; padding: 12px 8px; background: #fff !important; color: #1f2937 !important; border: 1px solid #e5e7eb !important; }
#page-home .branch-choice.active { background: #fff !important; color: #1f2937 !important; border: 2px solid #ea580c !important; box-shadow: 0 0 0 3px rgba(234,88,12,.12); }
#page-home .branch-choice-visual { width: 66px; height: 66px; flex: 0 0 66px; background: #fff; border: 1px solid #f1f5f9; }
#page-home .branch-choice-image { width: 56px; height: 56px; object-fit: contain; }
#page-home .branch-choice-selected, #page-home .branch-choice-action, #page-home .branch-choice-visual-orb, #page-home .branch-choice-store-icon { display: none !important; }
#page-home .home-search-form { display: block; }
#page-home .home-search-form .search-container { display: flex; gap: 8px; }
#page-home .home-search-form #searchInput-main { flex: 1; min-width: 0; }
@media (max-width: 360px) {
  #page-home .home-admin-banner {
    width: calc(100% - 20px);
    margin-inline: 10px;
    border-radius: 14px;
  }

  #page-home .home-brand-card { flex-basis: 64px; width: 64px; }
  #page-home .home-brands-scroll { gap: 6px; }
  #page-home .branch-choice { height: 156px; }
}
