:root {
    --primary-color: #0b6b46;
    --secondary-color: #ffcf4d;
    --background-color: #f7faf6;
    --header-color: #ffffff;
    --title-color: #0b4b34;
    --price-color: #0b7a4d;
    --button-color: #0b6b46;
    --discount-color: #e92424;
    --install-icon-color: #0b6b46;
    --share-icon-color: #173d31;
    --location-icon-color: #214d85;
  }

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: Tahoma, Arial, sans-serif;
  background: radial-gradient(
      circle at top right,
      rgba(0, 95, 65, 0.16),
      transparent 32%
    ),
    linear-gradient(180deg, #f7faf6 0%, #fff 45%, #f3f7f5 100%);
  color: #16231f;
}
.app {
  max-width: 520px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 14px;
  overflow-x: hidden;
}
.top-header {
  display: grid;
  grid-template-columns: 56px 1fr 76px;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(0, 80, 55, 0.1);
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(11, 78, 52, 0.08);
  top: 10px;
  z-index: 10;
  backdrop-filter: blur(12px);
}
.logo-circle {
  width: 45px;
  height: 45px;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  border-radius: 0 !important;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.logo-circle img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.title-box {
  text-align: center;
}
.title-box p {
  margin: 3px 0 0;
  font-size: 11px;
  color: #6b7d75;
}
.update-box {
  text-align: center;
  background: var(--header-color) !important;
  color: #00eaff;
  border: 1px solid rgba(0, 234, 255, 0.9);
  border-radius: 8px;
  padding: 3px 4px;
  min-width: 48px;
  box-shadow:
    0 0 6px rgba(0, 234, 255, 0.45),
    /*0 0 12px rgba(0, 234, 255, 0.25);*/
}
.update-box span,
.update-box strong {
  color: #00eaff !important;
}

.update-box span {
  display: block;
  font-size: 8px;
  line-height: 1.1;
}

.update-box strong {
  display: block;
  font-size: 11px;
  margin-top: 1px;
  font-weight: 700;
}
.hero-slider {
  margin-top: 16px;
  height: 205px;

  width: calc(100% + 28px);
  margin-right: -14px;
  margin-left: -14px;

  border-radius: 28px;
  overflow: hidden;
  background: #e9f0ed;
  box-shadow: 0 18px 35px rgba(8, 76, 51, 0.12);
  border: 1px solid rgba(0, 80, 55, 0.1);
}

.media-placeholder {
  height: 100%;
  display: grid;
  place-items: center;
  color: #789088;
  font-size: 14px;
  background: linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.45),
      rgba(255, 255, 255, 0.05)
    ),
    repeating-linear-gradient(
      45deg,
      #edf4f1 0,
      #edf4f1 12px,
      #e3ece8 12px,
      #e3ece8 24px
    );
}
.media-placeholder span {
  background: rgba(255, 255, 255, 0.75);
  border: 1px dashed rgba(0, 80, 55, 0.22);
  padding: 10px 14px;
  border-radius: 999px;
}
.section {
  margin-top: 22px;
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 12px;
  padding: 0 4px;
}
.section-title h2 {
  font-family: "Cairo", sans-serif;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.3px;
}

.section-title span {
  font-size: 12px;
  color: #83928c;
}
.offers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.offer-card {
  position: relative;
  background: white;
  border-radius: 14px;
  padding: 8px;
  text-align: center;
  min-height: 190px;
  box-shadow: 0 10px 24px rgba(30, 62, 50, 0.08);
  border: 1px solid rgba(11, 75, 52, 0.08);
  overflow: hidden;
}
.offer-card.big {
  min-height: 250px;
  border: 1px solid rgba(255, 199, 71, 0.7);
}
.discount-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--discount-color);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 9px;
  border-radius: 999px;
  z-index: 2;
}
.product-img {
  height: 95px !important;
  margin-bottom: 8px !important;
  border-radius: 10px !important;
}



.offer-card h3 {
  font-size: 13px;
  line-height: 1.2;
  margin: 6px 0;
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.price-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  direction: ltr;
}

.new-price {
  font-size: 22px;
  font-weight: 900;
}

.currency {
  margin: -3px 0 0;
  color: var(--primary-color);
  font-weight: 700;
  font-size: 13px;
}
.empty-message {
  display: none;
  text-align: center;
  color: #83928c;
  background: white;
  border-radius: 18px;
  padding: 14px;
  margin: 0;
  border: 1px dashed rgba(11, 107, 70, 0.2);
}
.moving-banner {
  margin-top: 22px;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(90deg, var(--secondary-color), #fff2bd, var(--secondary-color));
  border: 1px solid rgba(151, 102, 0, 0.14);
  box-shadow: 0 10px 22px rgba(151, 102, 0, 0.12);
}
.banner-content {
  white-space: nowrap;
  padding: 14px 0;
  font-size: 15px;
  font-weight: 800;
  color: #553600;
  animation: moveText 16s linear infinite;
}
@keyframes moveText {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(100%);
  }
}
.floating-actions {
  position: fixed;
  left: 4px !important;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9999;
  display: grid;
  gap: 7px;
  pointer-events: auto;
}

.float-item {
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 3px;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
}
.float-item small {
  font-size: 9px;
  font-weight: 800;
  color: #24483b;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(11, 107, 70, 0.1);
  border-radius: 999px;
  padding: 2px 5px;
  line-height: 1;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.08);
}
.float-btn {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.14);
}
.install {
  background: linear-gradient(145deg, var(--primary-color), #12a36a);
}
.share {
  background: #173d31;
}
.site {
  background: #214d85;
}
.google {
  background: #1f2328 !important;
  color: #ffffff !important;
}
.install-hint {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 10px;
  max-width: 420px;
  margin: 0 auto;
  z-index: 70;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(11, 107, 70, 0.14);
  border-radius: 17px;
  padding: 10px 36px 10px 12px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.16);
  display: none;
}
.install-hint.show {
  display: block;
}
.install-hint strong {
  display: block;
  font-size: 13px;
  color: var(--primary-color);
}
.install-hint p {
  margin: 3px 0 0;
  font-size: 11px;
  color: #60726b;
}
.hint-close {
  position: absolute;
  top: 7px;
  right: 8px;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: #eef5f2;
  color: #315347;
}
.page-end {
  margin: 28px 0 18px;
  padding-bottom: 95px;
  text-align: center;
  font-size: 12px;
  color: #8a9b94;
}
@media (max-width: 420px) {
  .app {
  padding: 10px;
  overflow-x: hidden;
}
  .top-header {
    grid-template-columns: 50px 1fr 55px;
  }
  .offers-grid {
    gap: 10px;
  }
  .offer-card {
    padding: 10px;
  }
  .new-price {
    font-size: 26px;
  }
  .floating-actions {
  left: 3px !important;
  gap: 6px;
}
  .float-btn {
    width: 32px;
    height: 32px;
  }
  .float-item small {
    font-size: 12px;
    padding: 2px 4px;
  }
}

.slider-media {
  width: 100%;
  height: 100%;
  object-fit: contain;
background: var(--header-color);}

  .event-banner-card {
    border-radius: 22px;
    overflow: hidden;
    background: white;
  }
  
  .event-banner-img {
    width: 100%;
    height: 150px;
    object-fit: contain;
    display: block;
    background: var(--background-color);
  }
  
  .event-marquee {
    overflow: hidden;
    background: linear-gradient(90deg, var(--secondary-color), #fff2bd, var(--secondary-color));
    padding: 10px 0;
  }
  
  .event-marquee-text {
    white-space: nowrap;
    font-size: 15px;
    font-weight: 800;
    color: #553600;
    animation: moveText 16s linear infinite;
  }
  
  .event-banner-title {
    padding: 10px;
    text-align: center;
    font-size: 15px;
    font-weight: bold;
  }

  body {
    background: var(--background-color) !important;
  }
  
  .top-header {
    background: var(--header-color) !important;
  }
  
  /*.title-box h1,
  .section-title h2 {
    color: var(--title-color) !important;
  }*/
  
  .new-price,
  .currency {
    color: var(--price-color) !important;
  }
  
  .float-btn.install,
  .float-btn.share,
  .float-btn.site,
  .footer-actions button,
  .footer-btn {
    background: var(--button-color) !important;
  }
  
  .discount-tag {
    background: var(--discount-color) !important;
  }
  
  .moving-banner {
    background: var(--secondary-color) !important;
  }
  
  .event-marquee {
    background: var(--secondary-color) !important;
  }

  .float-btn.install {
  background: var(--install-icon-color) !important;
  background-color: var(--install-icon-color) !important;
}

.float-btn.share {
  background: var(--share-icon-color) !important;
  background-color: var(--share-icon-color) !important;
}

.float-btn.site {
  background: var(--location-icon-color) !important;
  background-color: var(--location-icon-color) !important;
}

.hero-header {
  background: var(--header-color);
  margin: -16px -16px 0;
  padding: 16px;
}

.top-header {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.hero-slider {
  margin-top: 10px;
  border: none !important;
  height: 125px !important;
}

.moving-banner {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  overflow: visible !important;
}

.event-banner-card {
  position: relative;
  width: 100%;
  height: 170px;
  overflow: hidden;
  border-radius: 0;
  background: transparent;
}

.event-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.event-end-date {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 3;
  background: rgba(0, 0, 0, 0.65);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 8px;
  border-radius: 6px;
}

.moving-banner {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  overflow: hidden !important;
}

.events-slider {
  width: 100%;
  height: 170px;
  overflow: hidden;
  position: relative;
  touch-action: pan-y;
}

.events-track {
  display: flex;
  width: 100%;
  height: 170px;
  transform: translateX(-100%);
}

.moving-banner {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  overflow: visible !important;
}

.events-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 2px 2px 8px;
  -webkit-overflow-scrolling: touch;
}

.events-row::-webkit-scrollbar {
  display: none;
}

.event-card-small {
  flex: 0 0 44%;
  scroll-snap-align: start;
  background: transparent;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  min-height: 170px;
}

.event-card-image {
  position: relative;
  height: 170px;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
  background: #f3f3f3;
  border: 1px solid rgba(0, 0, 0, 0.35);
}

.event-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-card-title {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  padding: 7px 8px 6px;
  color: white;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(9px) saturate(1.4);
  -webkit-backdrop-filter: blur(9px) saturate(1.4);
}

.event-title-main {
  text-align: center;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.3;
}

.event-date-mini {
  margin-top: 3px;
  text-align: left;
  font-size: 9px;
  font-weight: 700;
  opacity: 0.95;
}
@keyframes eventSlideIn {
  from {
    transform: translateX(-100%);
    opacity: 0.8;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.event-zoom-btn {
  position: absolute;
  top: 6px;
  right: 6px;

  width: 28px;
  height: 28px;

  border: none;
  border-radius: 6px;

  background: rgba(0, 0, 0, 0.55);
  color: white;

  font-size: 16px;
  font-weight: bold;

  cursor: pointer;
  z-index: 10;

  display: grid;
  place-items: center;

  backdrop-filter: blur(6px);
}

.event-modal {
  position: fixed;
  inset: 0;

  background: rgba(0, 0, 0, 0.92);

  display: none;

  justify-content: center;
  align-items: center;

  z-index: 9999;
}

.event-modal.show {
  display: flex;
}

.event-modal img {
  max-width: 95%;
  max-height: 90%;
  object-fit: contain;
}

.event-modal-close {
  position: absolute;

  top: 20px;
  left: 20px;

  width: 42px;
  height: 42px;

  border: none;
  border-radius: 50%;

  background: rgba(255,255,255,.2);

  color: white;

  font-size: 20px;

  cursor: pointer;
}

.price-row .old-price,
.old-price {
  color: var(--old-price-color) !important;
}

.old-price {
  font-size: 11px;
}

.currency {
  font-size: 10px;
}

.title-box h1 {
  color: var(--magazine-title-color) !important;
}

.section-title h2 {
  color: var(--title-color) !important;
}

.offer-card h3 {
  color: var(--product-title-color) !important;
}

.title-box h1 {
  font-family: "Cairo", sans-serif;
  color: var(--magazine-title-color) !important;
  font-size: 17px;
  font-weight: 900;
  /*text-shadow:
    0 3px 8px rgb(255, 255, 255);*/
}

.offer-card.featured-card {
  background: var(--featured-card-color) !important;
}

.offer-card.daily-card {
  background: var(--daily-card-color) !important;
}

.offers-grid {
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 8px !important;
}

.offer-card {
  min-height: 185px !important;
  padding: 7px !important;
  border-radius: 12px !important;
}

.offer-card.big {
  min-height: 185px !important;
}

.product-img {
  height: 78px !important;
  margin-bottom: 5px !important;
  border-radius: 10px !important;
}

.offer-card h3 {
  font-size: 11px !important;
  line-height: 1.2 !important;
  margin: 5px 0 4px !important;
}

.price-row {
  gap: 4px !important;
}

.new-price {
  font-size: 20px !important;
  line-height: 1 !important;
}

.old-price {
  font-size: 10px !important;
}

.currency {
  font-size: 9px !important;
  margin-top: 0 !important;
}

.discount-tag {
  font-size: 9px !important;
  padding: 4px 6px !important;
  top: 6px !important;
  right: 6px !important;
}

.offer-card.big.featured-card {
  background: var(--featured-card-color) !important;
}

.offer-card.daily-card {
  background: var(--daily-card-color) !important;
}

.offer-card h3 {
  text-align: right !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  margin-top: 8px !important;
  margin-bottom: 6px !important;
  padding-right: 4px;
}

.price-row {
  justify-content: flex-start !important;
  direction: rtl !important;
  gap: 6px !important;
  padding-right: 4px;
  margin-top: 2px !important;
}

.currency {
  text-align: right !important;
  padding-right: 4px;
}

.old-price {
  text-decoration: line-through !important;
  text-decoration-thickness: 2px !important;
}

.offer-card,
.offer-card.big {
  min-height: 205px !important;
}

/* كروت العروض بشكل 3 أعمدة مثل التصميم */
.offers-grid {
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 8px !important;
}

.offer-card,
.offer-card.big {
  min-height: 220px !important;
  padding: 7px !important;
  border-radius: 14px !important;
  display: flex !important;
  flex-direction: column !important;
}

.product-img {
  height: 105px !important;
  margin-bottom: 8px !important;
  border-radius: 12px !important;
  background: #eeeeee !important;
}

.product-img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

/* يخلي معلومات العرض تحت الكرت */
.offer-card h3 {
  text-align: right !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  line-height: 1.1 !important;
  margin: 25px 3px 4px !important;

  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

.price-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  direction: ltr !important;
  margin: 0 3px !important;
}

.new-price {
  font-size: 22px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

.old-price {
  font-size: 12px !important;
  text-decoration: line-through !important;
  text-decoration-color: red !important;
  text-decoration-thickness: 1.5px !important;
}

.currency {
  display: inline !important;
  text-align: right !important;
  font-size: 10px !important;
  margin: 0 !important;
  padding-right: 3px !important;
}

.discount-tag {
  font-size: 10px !important;
  padding: 5px 8px !important;
  border-radius: 12px !important;
  top: 10px !important;
  right: 10px !important;
}

.new-price .currency {
  font-size: 12px !important;
  margin-right: 3px !important;
  font-weight: 700 !important;
}

.offers-grid {
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 8px !important;
}

.offer-card,
.offer-card.big {
  height: 235px !important;
  min-height: 235px !important;
  padding: 0 !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  background: white !important;
  border: 1px solid rgba(238, 196, 70, 0.75) !important;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06) !important;
}

.product-img {
  height: 155px !important;
  margin: 0 !important;
  border-radius: 14px 14px 0 0 !important;
  background: #eeeeee !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.product-img img {
  width: 88% !important;
  height: 88% !important;
  object-fit: contain !important;
}

.discount-tag {
  top: 8px !important;
  right: 8px !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  padding: 5px 9px !important;
  border-radius: 12px !important;
}

.offer-card h3 {
  margin: 11px 8px 5px !important;
  text-align: right !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  line-height: 1.1 !important;
  white-space: nowrap !important;
}

.price-row {
  margin: 0 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  direction: ltr !important;
}

.old-price {
  font-size: 12px !important;
  font-weight: 500 !important;
  text-decoration: line-through !important;
  text-decoration-color: red !important;
  text-decoration-thickness: 1.5px !important;
}

.new-price {
  font-size: 22px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

html,
body {
  overflow-x: hidden;
}

.app {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.offers-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

.offer-card {
  min-width: 0 !important;
}

.offer-card h3,
.new-price,
.old-price {
  max-width: 100% !important;
}

.offer-card,
.offer-card.big {
  background: #ffffff !important;
  border: 1px solid #dfe7e2 !important;
}

.install-hint {
  max-width: 390px !important;
  padding: 8px 28px 8px 10px !important;
  border-radius: 14px !important;
}

.install-hint strong {
  font-size: 12px !important;
}

.install-hint p {
  font-size: 10px !important;
}

.float-btn {
  width: 30px !important;
  height: 30px !important;
  font-size: 13px !important;
}

.float-item small {
  font-size: 8px !important;
  padding: 2px 4px !important;
}

.floating-actions {
  gap: 5px !important;
}

.welcome-notice{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}

.welcome-notice.show{
  display: flex;
}

.welcome-card{
  width: 90%;
  max-width: 340px;
  background: #fff;
  border-radius: 18px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0,0,0,.2);
}

.welcome-card h3{
  margin-bottom: 12px;
}

.welcome-card p{
  line-height: 1.8;
  font-size: 14px;
}

.welcome-card button{
  margin-top: 12px;
  border: none;
  border-radius: 10px;
  padding: 10px 18px;
  cursor: pointer;
  background: var(--button-color);
  color: white;
}

