@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800&display=swap');

/**
 * LIFE General Services – visual identity matching the approved design.
 * Palette: ivory background, sage primary, beige cards, gold accent.
 */
:root {
  --lf-bg: #FEFEFB;
  --lf-sage: #8A9A8F;
  --lf-sage-dark: #6B7D70;
  --lf-sage-soft: #E8EDE9;
  --lf-beige: #F5F1E8;
  --lf-beige-line: #EEE9DF;
  --lf-gold: #C9B896;
  --lf-gold-soft: #F3EEDF;
  --lf-ink: #2B2B2B;
  --lf-muted: #7A7A72;
  --lf-whatsapp: #25D366;
  --lf-radius: 22px;
  --font-main: 'Tajawal';
}

body.theme-raed {
  background: var(--lf-bg);
  color: var(--lf-ink);
  font-family: 'Tajawal', sans-serif;
}

.lf-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Pills & buttons ---------- */
.lf-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  line-height: 1.4;
}
.lf-pill--glass { background: rgba(255, 255, 255, .22); color: #fff; }
.lf-pill--gold { background: var(--lf-gold); color: var(--lf-ink); }
.lf-pill--soft { background: #EFEDE6; color: var(--lf-muted); font-weight: 500; }
.lf-pill--line { background: #fff; border: 1px solid var(--lf-beige-line); color: var(--lf-ink); }
.lf-pill--beige { background: var(--lf-gold-soft); color: var(--lf-ink); }

.lf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 700;
  transition: background .18s, transform .18s, box-shadow .18s;
  cursor: pointer;
}
.lf-btn:hover { transform: translateY(-1px); }
.lf-btn--whatsapp { background: var(--lf-whatsapp); color: #fff; padding: 10px 22px; font-size: 13px; }
.lf-btn--whatsapp:hover { background: #1fbd5a; }
.lf-btn--sage { background: var(--lf-sage); color: #fff; padding: 12px 26px; font-size: 14px; }
.lf-btn--sage:hover { background: var(--lf-sage-dark); }
.lf-btn--dark { background: var(--lf-ink); color: #fff; padding: 11px 20px; font-size: 13px; }
.lf-btn--dark:hover { background: #000; }

.lf-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--lf-beige-line);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--lf-ink);
}

/* ---------- Header ---------- */
.lf-topbar {
  background: var(--lf-sage);
  color: #fff;
  font-size: 12px;
}
.lf-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
  flex-wrap: wrap;
  padding-top: 6px;
  padding-bottom: 6px;
}
.lf-topbar__contacts,
.lf-topbar__badges { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.lf-topbar__badges { gap: 8px; }
.lf-topbar a { color: #fff; font-weight: 700; direction: ltr; }

.lf-header {
  background: #fff;
  border-bottom: 1px solid #F0EDE6;
}
#mainnav.lf-mainnav { box-shadow: none; background: #fff; }
#mainnav.lf-mainnav.fixed-pinned .inner { box-shadow: 0 4px 20px rgba(0, 0, 0, .05); }
.lf-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}
.lf-brand { display: flex; align-items: center; gap: 12px; }
.lf-brand__mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--lf-sage);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.lf-brand__mark img { width: 100%; height: 100%; object-fit: cover; }
.lf-brand__name { font-size: 18px; font-weight: 800; color: var(--lf-ink); line-height: 1.2; }
.lf-brand__tag { font-size: 11px; color: var(--lf-muted); }
.lf-header__actions { display: flex; align-items: center; gap: 10px; }
.lf-header__actions salla-cart-summary { display: inline-flex; }

/* ---------- Hero ---------- */
.lf-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  padding-top: 56px;
  padding-bottom: 32px;
}
.lf-hero__title {
  font-size: 54px;
  line-height: 1.25;
  font-weight: 800;
  margin: 22px 0 18px;
  color: var(--lf-ink);
}
.lf-hero__title .is-sage { color: var(--lf-sage); }
.lf-hero__title .is-gold {
  color: var(--lf-gold);
  background: linear-gradient(transparent 55%, var(--lf-gold-soft) 55%);
}
.lf-hero__lead { font-size: 16px; line-height: 1.9; color: var(--lf-muted); max-width: 560px; }
.lf-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lf-sage); display: inline-block; }

.lf-trust-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

.lf-search {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--lf-beige-line);
  border-radius: 999px;
  padding: 6px 18px 6px 6px;
  max-width: 560px;
}
.lf-search input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 14px;
  padding: 8px 0;
  box-shadow: none !important;
}
.lf-pay-note { margin-top: 18px; display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--lf-muted); flex-wrap: wrap; }

/* WhatsApp order card */
.lf-order-card {
  background: var(--lf-beige);
  border: 1px solid var(--lf-beige-line);
  border-radius: 28px;
  padding: 24px;
}
.lf-order-card__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.lf-order-card__head h2 { font-size: 17px; font-weight: 800; }
.lf-order-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border-radius: 18px;
  padding: 14px 16px;
  margin-bottom: 12px;
}
.lf-order-row__icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--lf-beige);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.lf-order-row small { display: block; font-size: 11px; color: var(--lf-muted); }
.lf-order-row b { font-size: 14px; direction: ltr; display: inline-block; }
.lf-tag-green { display: inline-block; margin-top: 6px; font-size: 10px; background: #E6F4EA; color: #2E7D32; border-radius: 999px; padding: 2px 10px; }
.lf-order-card .lf-btn--whatsapp { width: 100%; padding: 15px; font-size: 15px; margin-top: 4px; }
.lf-order-card__foot { text-align: center; font-size: 11px; color: var(--lf-muted); margin-top: 10px; }

/* ---------- Services ---------- */
.lf-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.lf-chip {
  border: 1px solid var(--lf-beige-line);
  background: #fff;
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--lf-ink);
  transition: background .18s, color .18s;
}
.lf-chip.is-active { background: var(--lf-sage); border-color: var(--lf-sage); color: #fff; font-weight: 700; }
.lf-count { font-size: 12px; color: var(--lf-muted); margin: 18px 0; }

.lf-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.lf-card {
  background: #fff;
  border: 1px solid var(--lf-beige-line);
  border-radius: var(--lf-radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: box-shadow .18s, transform .18s;
}
.lf-card:hover { box-shadow: 0 8px 32px rgba(138, 154, 143, .14); transform: translateY(-2px); }
.lf-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.lf-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--lf-beige);
  overflow: hidden;
  display: block;
  flex-shrink: 0;
}
.lf-card__icon img { width: 100%; height: 100%; object-fit: cover; }
.lf-card__tags { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.lf-card__cat { background: #F2EEE6; color: var(--lf-muted); font-size: 11px; border-radius: 999px; padding: 4px 10px; }
.lf-card__hot { background: var(--lf-sage); color: #fff; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 4px 10px; }
.lf-card__title { font-size: 17px; font-weight: 800; margin: 16px 0 6px; }
.lf-card__title a { color: inherit; }
.lf-card__desc { font-size: 13px; line-height: 1.8; color: var(--lf-muted); flex: 1; }
.lf-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 18px; }
.lf-card__price b { display: block; font-size: 17px; font-weight: 800; color: var(--lf-sage-dark); }
.lf-card__price small { font-size: 10px; color: var(--lf-muted); }
.lf-card salla-add-product-button .s-button-element {
  background: var(--lf-ink) !important;
  border-color: var(--lf-ink) !important;
  color: #fff !important;
  border-radius: 999px !important;
  font-weight: 700;
  font-size: 13px;
  padding: 10px 18px;
  height: auto;
}

/* ---------- Payments & features ---------- */
.lf-panel {
  background: #fff;
  border: 1px solid var(--lf-beige-line);
  border-radius: 28px;
  padding: 32px;
  margin-top: 56px;
}
.lf-panel__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.lf-panel__head h2 { font-size: 22px; font-weight: 800; }
.lf-panel__head p { font-size: 13px; color: var(--lf-muted); margin-top: 6px; }
.lf-pay-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; margin-top: 24px; }
.lf-pay {
  background: var(--lf-beige);
  border: 1px solid var(--lf-beige-line);
  border-radius: 14px;
  padding: 14px 8px;
  text-align: center;
}
.lf-pay.is-bnpl { background: var(--lf-gold-soft); border-color: var(--lf-gold); }
.lf-pay__icon { font-size: 18px; height: 24px; display: flex; align-items: center; justify-content: center; }
.lf-pay b { display: block; font-size: 12px; margin-top: 6px; }
.lf-pay small { font-size: 10px; color: var(--lf-muted); }
.lf-bnpl {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #FCFBF6;
  border: 1px solid var(--lf-beige-line);
  border-radius: 16px;
  padding: 16px;
  flex-wrap: wrap;
}
.lf-bnpl__lead { display: flex; align-items: center; gap: 12px; }
.lf-bnpl__pct { width: 38px; height: 38px; border-radius: 50%; background: var(--lf-sage); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.lf-bnpl b { font-size: 14px; }
.lf-bnpl small { display: block; font-size: 11px; color: var(--lf-muted); }
.lf-brand-tag { border-radius: 999px; padding: 4px 12px; font-size: 11px; font-weight: 700; background: #fff; }
.lf-brand-tag--tabby { border: 1px solid #C9B6F2; color: #7B4FD6; }
.lf-brand-tag--tamara { border: 1px solid #F5C99A; color: #E8892B; }

.lf-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 32px; margin-bottom: 56px; }
.lf-feature {
  background: #fff;
  border: 1px solid var(--lf-beige-line);
  border-radius: var(--lf-radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.lf-feature__icon { width: 42px; height: 42px; border-radius: 50%; background: #F2F2EF; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.lf-feature b { display: block; font-size: 15px; }
.lf-feature small { font-size: 12px; color: var(--lf-muted); }

/* ---------- Footer ---------- */
.lf-footer { background: #FCFBF6; border-top: 1px solid #F0EDE6; padding-top: 44px; }
.lf-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap: 36px; }
.lf-footer h3 { font-size: 16px; font-weight: 800; margin-bottom: 16px; }
.lf-footer p { font-size: 13px; line-height: 1.9; color: var(--lf-muted); }
.lf-footer ul { display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.lf-footer ul a:hover { color: var(--lf-sage-dark); }
.lf-footer__socials { display: flex; gap: 10px; margin-top: 18px; }
.lf-footer__socials a { width: 38px; height: 38px; border-radius: 50%; background: var(--lf-beige); display: flex; align-items: center; justify-content: center; }
.lf-footer__trust { display: flex; flex-wrap: wrap; gap: 8px; }
.lf-footer__bottom {
  margin-top: 40px;
  border-top: 1px solid #F0EDE6;
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  color: var(--lf-muted);
  flex-wrap: wrap;
}
.lf-new { background: #E6F4EA; color: #2E7D32; font-size: 10px; border-radius: 999px; padding: 1px 8px; margin-inline-start: 6px; }

.lf-whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 40;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--lf-whatsapp);
  color: #fff;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, .35);
}

/* Product cards on category / search pages follow the same look */
.s-product-card-entry.lf-product-card {
  border: 1px solid var(--lf-beige-line);
  border-radius: var(--lf-radius);
  box-shadow: none;
  background: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .lf-btn, .lf-card, .lf-chip { transition: none; }
  .lf-btn:hover, .lf-card:hover { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .lf-hero { grid-template-columns: 1fr; gap: 32px; padding-top: 32px; }
  .lf-hero__title { font-size: 40px; }
  .lf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lf-pay-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lf-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .lf-container { padding: 0 16px; }
  .lf-topbar__badges { display: none; }
  .lf-hero__title { font-size: 32px; }
  .lf-grid, .lf-features, .lf-footer__grid { grid-template-columns: 1fr; }
  .lf-pay-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lf-header__actions .lf-btn--whatsapp span { display: none; }
  .lf-panel { padding: 22px; }
}

/* ---------- Take over Raed chrome once the custom layout is mounted ---------- */
body.lf-active .store-header,
body.lf-active .store-footer:not(.lf-footer) { display: none !important; }
body.lf-active, body.lf-active * { font-family: 'Tajawal', sans-serif; }
body.lf-active [class^="sicon-"], body.lf-active [class*=" sicon-"] { font-family: 'sallaicons' !important; }
body.lf-home #main-content > :not(.lf-home-root) { display: none !important; }
.lf-sticky { position: sticky; top: 0; z-index: 30; }
.lf-cart { display: inline-flex; align-items: center; }
.lf-cart .s-cart-summary-wrapper { border: 1px solid var(--lf-beige-line); border-radius: 999px; padding: 4px 10px; background: #fff; }

/* ---------- Brand colour for Salla components (buttons, links) ---------- */
html:root {
  --color-primary: #8A9A8F !important;
  --color-primary-dark: #6B7D70 !important;
  --color-primary-light: #E8EDE9 !important;
  --color-primary-reverse: #FFFFFF !important;
}

/* ---------- Footer: keep design colours over Raed's footer theme ---------- */
.lf-footer, .lf-footer h3, .lf-footer li, .lf-footer a, .lf-footer b, .lf-footer span { color: var(--lf-ink) !important; }
.lf-footer p, .lf-footer__bottom, .lf-footer__bottom span { color: var(--lf-muted) !important; }
.lf-footer .lf-new { color: #2E7D32 !important; }
.lf-footer a.lf-whatsapp-float { color: #fff !important; }

/* ---------- Product page ---------- */
.container--product-details .main-content h1 { font-weight: 800; color: var(--lf-ink); }
.container--product-details .total-price { color: var(--lf-sage-dark) !important; font-weight: 800; }

/* Description: lead line + ✨ / 📋 / ⏱️ blocks */
.container--product-details .product__description {
  background: var(--lf-beige);
  border: 1px solid var(--lf-beige-line);
  border-radius: 18px;
  padding: 18px 20px !important;
  margin: 8px 0 16px;
  width: 100%;
  font-size: 14px;
  line-height: 2;
  color: var(--lf-ink);
}
.container--product-details .product__description p { margin: 0; }
.container--product-details .product__description p:first-child { font-weight: 700; margin-bottom: 8px; }

/* Share + wishlist: one tidy row of round icons */
.container--product-details .main-content > div.flex:has(salla-social-share) {
  display: flex !important;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
}
.container--product-details .main-content > div.flex:has(salla-social-share) > * { margin: 0 !important; }
.container--product-details salla-social-share { margin-bottom: 0 !important; }
.container--product-details .s-social-share-btn,
.container--product-details button.btn--wishlist {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px;
  border-radius: 50% !important;
  border: 1px solid var(--lf-beige-line) !important;
  background: #fff !important;
  color: var(--lf-sage-dark) !important;
  box-shadow: none !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}
.container--product-details .s-social-share-btn:hover,
.container--product-details button.btn--wishlist:hover { background: var(--lf-beige) !important; }

/* Form panels (attachments, price, quantity) */
.product-form section.bg-white,
.container--product-details section.sticky-product-bar {
  background: #fff !important;
  border: 1px solid var(--lf-beige-line);
  border-radius: 22px !important;
  box-shadow: none !important;
}
.product-form label.form-label { font-weight: 700; color: var(--lf-ink); }
.product-form .btn--collapse,
.product-form .collapse-trigger,
.product-form salla-file-upload .product-option-uploader-placholder {
  background: var(--lf-beige) !important;
  border: 1px dashed var(--lf-gold) !important;
  border-radius: 14px !important;
  color: var(--lf-ink) !important;
}
.product-form textarea.form-input { border-radius: 14px; border-color: var(--lf-beige-line); }

/* Buy buttons: dark pill like the design, secondary outlined in sage */
.sticky-product-bar__btn .s-button-solid,
.container--product-details salla-add-product-button .s-button-solid {
  background: var(--lf-ink) !important;
  border-color: var(--lf-ink) !important;
  color: #fff !important;
  border-radius: 999px !important;
  font-weight: 700;
}
.container--product-details .s-button-outline:not(.s-social-share-btn):not(.btn--wishlist) {
  border-color: var(--lf-sage) !important;
  color: var(--lf-sage-dark) !important;
  border-radius: 999px !important;
}
.container--product-details .swiper,
.container--product-details .s-slider-container { border-radius: 22px; overflow: hidden; }

/* Footer payment logos in one row; footer menu links readable */
.lf-footer__bottom { align-items: center; }
.lf-footer__bottom salla-payments,
.lf-footer__bottom salla-payments > *,
.lf-footer__bottom salla-payments ul {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 !important;
}
.lf-footer__bottom salla-payments li { margin: 0 !important; }
.lf-footer salla-menu a, .lf-footer salla-menu li { color: var(--lf-ink) !important; font-size: 13px; }

/* Logo mark */
.lf-brand__mark { background: transparent; border-radius: 12px; }
.lf-brand__mark svg { width: 100%; height: 100%; display: block; }