/**
 * SAIDAL brand CSS — paste into Theme → Custom CSS (replace).
 * Keep in sync with BRAND_CSS inside saidal-custom.js (JS injects a copy).
 *
 * Palette: Apothecary Teal / Botanical Sage / Premium Sand
 */

:root {
  --saidal-teal: #294546;
  --saidal-sage: #9CB3A8;
  --saidal-sand: #F9F8F6;
  --saidal-ink: #1a2e2f;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body,
#app {
  max-width: 100%;
}

html {
  scroll-behavior: smooth;
  -webkit-locale: "en";
  font-variant-numeric: lining-nums;
}

body {
  background-color: var(--saidal-sand) !important;
  background-image: radial-gradient(rgba(41, 69, 70, 0.06) 1px, transparent 1px) !important;
  background-size: 18px 18px !important;
  color: var(--saidal-ink);
}

.product-details,
.product-info,
.suggestions,
.similar-slider {
  max-width: 100%;
  overflow-x: clip;
}

/* Login / search / profile drawers sit inside .store-content. Do not clip them. */
salla-login-modal[open],
salla-login-modal.is-open,
salla-search[open],
salla-search.is-open,
.menu-is-open #side-panel--menu,
.menu-is-open .side-panel,
.menu-is-open .overlay-layer,
.filters-is-open .overlay-layer {
  z-index: 100050 !important;
}

.overlay-layer {
  pointer-events: none;
}

.menu-is-open .overlay-layer,
.filters-is-open .overlay-layer {
  pointer-events: auto;
}

.header-btns-list {
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .s-user-menu-dropdown,
  salla-user-menu .s-user-menu-dropdown {
    position: fixed !important;
    top: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: min(86dvh, calc(100svh - env(safe-area-inset-top, 0px))) !important;
    overflow-y: auto !important;
    transform: none !important;
    border-radius: 18px 18px 0 0 !important;
  }
}

img,
svg,
video,
iframe,
salla-slider,
salla-products-slider,
salla-installment,
salla-quick-order,
salla-add-product-button {
  max-width: 100%;
}

.sx-wrap,
.sf-wrap {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 16px;
}

/* Home: hide theme blocks we replace */
body.saidal-home .hero-area,
body.saidal-home .cats-list-wrap,
body.saidal-home #main-content,
body.saidal-home #saidal-home-hero {
  display: none !important;
}

/* Ticker */
.saidal-ticker {
  background: var(--saidal-teal);
  color: var(--saidal-sand);
  overflow: hidden;
  max-width: 100%;
  white-space: nowrap;
  font-size: 13px;
  letter-spacing: 0.04em;
  direction: ltr;
}

.saidal-ticker__track {
  display: inline-flex;
  gap: 48px;
  padding: 10px 0;
  animation: saidal-marquee 28s linear infinite;
}

.saidal-ticker__track span {
  opacity: 0.95;
}

.saidal-ticker__track span::before {
  content: "·";
  margin-inline-end: 48px;
  opacity: 0.45;
}

@keyframes saidal-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Chrome */
.store-header {
  background: rgba(249, 248, 246, 0.96) !important;
  border-bottom: 1px solid rgba(41, 69, 70, 0.08) !important;
  max-width: 100%;
}

.saidal-header-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  margin-inline-end: 10px;
  line-height: 0;
}

.saidal-header-logo img {
  display: block;
  width: auto;
  height: 36px;
  max-width: 148px;
  object-fit: contain;
}

@media (max-width: 767px) {
  .saidal-header-logo img {
    height: 28px;
    max-width: 96px;
  }
}

@media (min-width: 1024px) {
  .saidal-header-logo img {
    height: 44px;
    max-width: 168px;
  }
}

.hero-area img[alt*="Logo"],
.hero-area img[alt*="صيدل"],
.footer-logo img,
.store-footer img[alt*="Logo"] {
  object-fit: contain !important;
}

.btn-primary,
.add-to-cart-btn,
salla-add-product-button button {
  background: var(--saidal-teal) !important;
  border-color: var(--saidal-teal) !important;
  color: var(--saidal-sand) !important;
  border-radius: 999px !important;
}

.share-rate-area .s-button-element,
.share-rate-area .s-button-element:hover,
.btn--wishlist.s-button-element,
.btn--wishlist .s-button-element,
.s-social-share-btn.s-button-element,
.s-social-share-btn .s-button-element,
.product-entry .btn--wishlist.s-button-element,
.product-entry .btn--wishlist .s-button-element {
  background: #fff !important;
  border: 1px solid rgba(41, 69, 70, 0.14) !important;
  color: var(--saidal-teal) !important;
  box-shadow: 0 6px 16px rgba(41, 69, 70, 0.08) !important;
}

.share-rate-area .s-button-element:hover,
.btn--wishlist.s-button-element:hover,
.s-social-share-btn.s-button-element:hover {
  background: var(--saidal-sand) !important;
  border-color: var(--saidal-sage) !important;
}

.is-active .btn--wishlist.s-button-element,
.is-active .btn--wishlist .s-button-element {
  background: var(--saidal-teal) !important;
  border-color: var(--saidal-teal) !important;
  color: var(--saidal-sand) !important;
}

.product-price,
.price,
.price-before,
.price-wrapper,
.product-entry__content .price,
.product-single__price {
  color: var(--saidal-teal) !important;
  font-weight: 700;
}

.product-entry,
.s-product-card,
.s-products-list-vertical-cards > * {
  border-radius: 18px !important;
  overflow: hidden;
  background: #fff !important;
  box-shadow: 0 10px 30px rgba(41, 69, 70, 0.06) !important;
  border: 1px solid rgba(41, 69, 70, 0.06) !important;
}

.store-header .search-input,
.s-search-input-wrapper input {
  border-radius: 999px !important;
  border-color: rgba(41, 69, 70, 0.12) !important;
  background: #fff !important;
}

/* Footer */
.store-footer,
.footer-wrapper {
  background: var(--saidal-teal) !important;
  color: var(--saidal-sand) !important;
  border: 0 !important;
  padding: 0 !important;
  max-width: 100%;
  overflow: hidden;
}

.store-footer__inner,
.store-footer__info-bar,
.footer-wrapper .footer-logo,
.footer-wrapper salla-contacts,
.footer-wrapper salla-menu,
.footer-wrapper salla-apps-icons,
.footer-wrapper salla-social,
.footer-wrapper salla-trust-badges {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
}

#saidal-footer {
  display: block !important;
  visibility: visible !important;
  height: auto !important;
  max-height: none !important;
  overflow: hidden;
  direction: rtl;
  color: var(--saidal-sand);
}

#saidal-footer a {
  color: inherit;
  text-decoration: none;
}

.sf-main {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 36px;
  padding: 48px 0 36px;
  align-items: start;
}

@media (max-width: 860px) {
  .sf-main {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding: 36px 0 24px;
  }
}

.sf-brand img {
  display: block;
  height: 44px;
  width: auto;
  max-width: 168px;
  object-fit: contain;
  margin-bottom: 14px;
}

.sf-brand p {
  margin: 0;
  line-height: 1.85;
  opacity: 0.82;
  max-width: 28ch;
}

.sf-brand span {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--saidal-sage);
  font-weight: 700;
}

.sf-col h3 {
  margin: 0 0 14px;
  font-size: 15px;
  color: var(--saidal-sage);
  letter-spacing: 0.08em;
}

.sf-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.sf-col a { opacity: 0.88; }
.sf-col a:hover { opacity: 1; color: #fff; }

.sf-contact a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.sf-contact svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
  opacity: 0.85;
}

.sf-bar {
  border-top: 1px solid rgba(249, 248, 246, 0.12);
  padding: 16px 0 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.sf-bar p {
  margin: 0;
  font-size: 13px;
  opacity: 0.6;
}

.sf-pay {
  display: flex;
  align-items: center;
  min-height: 28px;
  max-width: 100%;
  overflow: hidden;
}

.sf-pay salla-payments { filter: brightness(1.15); }

/* Home experience */
#saidal-experience {
  direction: rtl;
  color: var(--saidal-ink);
  max-width: 100%;
  overflow-x: clip;
}

#saidal-experience a { text-decoration: none; }

.sx-eyebrow {
  color: var(--saidal-sage);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  margin: 0 0 12px;
}

.sx-h {
  font-size: clamp(26px, 4.6vw, 46px);
  line-height: 1.3;
  margin: 0 0 14px;
  color: var(--saidal-teal);
  overflow-wrap: anywhere;
}

.sx-p {
  margin: 0;
  line-height: 1.9;
  opacity: 0.82;
  max-width: 36rem;
}

.sx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700;
  max-width: 100%;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.sx-btn:hover { transform: translateY(-2px); }
.sx-btn-teal { background: var(--saidal-teal); color: var(--saidal-sand); }
.sx-btn-sage { background: var(--saidal-sage); color: var(--saidal-teal); }
.sx-btn-ghost {
  background: transparent;
  color: var(--saidal-sand);
  border: 1px solid rgba(249, 248, 246, 0.45);
}

.sx-btn .sx-was {
  opacity: 0.7;
  text-decoration: line-through;
  font-weight: 600;
  font-size: 0.92em;
  margin-inline: 4px;
}

.sx-btn .sx-now { font-weight: 800; }

.sx-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}

.sx-price__now {
  font-size: 20px;
  font-weight: 800;
  color: var(--saidal-teal);
}

.sx-price__was {
  font-size: 15px;
  opacity: 0.55;
  text-decoration: line-through;
}

.sx-badge {
  position: absolute;
  top: 14px;
  inset-inline-start: 14px;
  z-index: 2;
  background: var(--saidal-teal);
  color: var(--saidal-sand);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
}

.sx-pack {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 0;
  background: #fff;
  border: 1px solid rgba(41, 69, 70, 0.1);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 22px 50px rgba(41, 69, 70, 0.1);
  text-decoration: none;
  color: inherit;
  max-width: 100%;
}

@media (max-width: 800px) {
  .sx-pack { grid-template-columns: minmax(0, 1fr); }
}

.sx-pack__media {
  min-height: 220px;
  background: #eef2f0;
  position: relative;
}

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

.sx-pack__body {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
  background: linear-gradient(160deg, #fff 0%, #f3f7f5 100%);
  min-width: 0;
}

.sx-pack__tag {
  align-self: flex-start;
  background: var(--saidal-sage);
  color: var(--saidal-teal);
  font-size: 12px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 999px;
}

.sx-pack__name {
  margin: 0;
  font-size: clamp(22px, 3vw, 32px);
  color: var(--saidal-teal);
}

.sx-hero {
  position: relative;
  min-height: min(78vh, 720px);
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--saidal-teal);
  max-width: 100%;
}

.sx-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  animation: sx-ken 18s ease-in-out infinite alternate;
  opacity: 0.38;
}

.sx-hero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(41, 69, 70, 0.92) 18%, rgba(41, 69, 70, 0.55) 58%, rgba(156, 179, 168, 0.35) 100%);
}

.sx-hero__dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(249, 248, 246, 0.12) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.55;
  pointer-events: none;
}

@keyframes sx-ken {
  from { transform: scale(1.05); }
  to { transform: scale(1.14); }
}

.sx-hero__inner {
  position: relative;
  z-index: 2;
  padding: 72px 0 64px;
  text-align: center;
  color: var(--saidal-sand);
  max-width: 100%;
}

.sx-hero .sx-eyebrow { color: var(--saidal-sage); }
.sx-hero .sx-h {
  color: var(--saidal-sand);
  max-width: 16ch;
  margin-inline: auto;
}
.sx-hero .sx-p {
  color: rgba(249, 248, 246, 0.88);
  margin: 0 auto 28px;
}

.sx-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.sx-hero__ctas .sx-btn { flex: 1 1 auto; }

.sx-brand {
  display: block;
  font-size: clamp(42px, 8vw, 72px);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 0 0 8px;
  line-height: 1;
}

.sx-section {
  padding: 56px 0;
  max-width: 100%;
}

.sx-section--sand { background: transparent; }
.sx-section--panel {
  background: rgba(255, 255, 255, 0.72);
  border-block: 1px solid rgba(41, 69, 70, 0.06);
}

.sx-section__head {
  text-align: center;
  margin-bottom: 36px;
}

.sx-section__head .sx-p { margin: 0 auto; }

.sx-products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

@media (max-width: 760px) {
  .sx-products { grid-template-columns: minmax(0, 1fr); }
}

.sx-product {
  display: grid;
  grid-template-rows: auto 1fr;
  background: #fff;
  border: 1px solid rgba(41, 69, 70, 0.08);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(41, 69, 70, 0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-width: 0;
}

.sx-product:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px rgba(41, 69, 70, 0.12);
}

.sx-product__media {
  aspect-ratio: 1 / 1.05;
  background: #eef2f0;
  overflow: hidden;
  position: relative;
}

.sx-product__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.sx-product:hover .sx-product__media img { transform: scale(1.04); }

.sx-product__body {
  padding: 22px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.sx-product__name {
  font-size: 22px;
  font-weight: 700;
  color: var(--saidal-teal);
  margin: 0;
}

.sx-product__blurb {
  margin: 0;
  line-height: 1.8;
  opacity: 0.78;
  flex: 1;
}

.sx-product .sx-btn {
  align-self: flex-start;
  margin-top: 8px;
}

.sx-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 760px) {
  .sx-steps { grid-template-columns: minmax(0, 1fr); }
}

.sx-step {
  padding: 26px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(41, 69, 70, 0.07);
  min-width: 0;
}

.sx-step__n {
  display: inline-flex;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: var(--saidal-teal);
  color: var(--saidal-sand);
  font-weight: 700;
  margin-bottom: 14px;
}

.sx-step h3 {
  margin: 0 0 8px;
  font-size: 18px;
  color: var(--saidal-teal);
}

.sx-step p {
  margin: 0;
  line-height: 1.8;
  opacity: 0.78;
}

.sx-trust {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 900px) {
  .sx-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.sx-trust__item {
  padding: 22px 16px;
  text-align: center;
  border-radius: 16px;
  background: var(--saidal-teal);
  color: var(--saidal-sand);
  min-width: 0;
}

.sx-trust__item h3 { margin: 0 0 8px; font-size: 16px; }
.sx-trust__item p { margin: 0; font-size: 13px; line-height: 1.7; opacity: 0.85; }

.sx-quotes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 860px) {
  .sx-quotes { grid-template-columns: minmax(0, 1fr); }
}

.sx-quote {
  background: #fff;
  border: 1px solid rgba(41, 69, 70, 0.08);
  border-radius: 18px;
  padding: 22px 20px;
  display: grid;
  gap: 10px;
  box-shadow: 0 10px 28px rgba(41, 69, 70, 0.06);
  margin: 0;
}

.sx-quote__stars {
  color: #c4a35a;
  letter-spacing: 0.12em;
  font-size: 14px;
}

.sx-quote p {
  margin: 0;
  line-height: 1.8;
  color: var(--saidal-ink);
}

.sx-quote span {
  font-size: 12px;
  font-weight: 700;
  color: var(--saidal-teal);
  opacity: 0.8;
}

.sx-ing {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.sx-chip {
  padding: 10px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(41, 69, 70, 0.1);
  color: var(--saidal-teal);
  font-weight: 600;
  font-size: 14px;
}

.sx-faq {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 10px;
}

.sx-faq details {
  background: #fff;
  border: 1px solid rgba(41, 69, 70, 0.08);
  border-radius: 14px;
  padding: 16px 18px;
}

.sx-faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--saidal-teal);
  list-style: none;
}

.sx-faq summary::-webkit-details-marker { display: none; }
.sx-faq details[open] summary { margin-bottom: 10px; }
.sx-faq p { margin: 0; line-height: 1.85; opacity: 0.8; }

.sx-contact {
  background: linear-gradient(135deg, var(--saidal-teal), #3a5d5e);
  color: var(--saidal-sand);
  border-radius: 24px;
  padding: 36px 20px;
  text-align: center;
  display: grid;
  gap: 16px;
  justify-items: center;
  max-width: 100%;
}

.sx-contact h2 {
  margin: 0;
  font-size: clamp(22px, 3vw, 34px);
}

.sx-contact p {
  margin: 0;
  opacity: 0.88;
  line-height: 1.8;
}

.saidal-wa {
  position: fixed;
  inset-inline-start: 18px;
  bottom: 18px;
  z-index: 10010;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #25d366;
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  font-weight: 700;
  font-size: 13px;
}

.saidal-wa:hover { transform: translateY(-2px); }

@media (max-width: 767px) {
  html:has(salla-login-modal[open]) .saidal-wa,
  html:has(salla-login-modal.is-open) .saidal-wa {
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

.sx-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.sx-reveal.is-in {
  opacity: 1;
  transform: none;
}

/* PDP */
.saidal-pdp-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin: 4px 0 14px;
  max-width: 100%;
}

.saidal-pdp-actions .share-rate-area {
  position: static !important;
  inset: auto !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  z-index: 1;
}

.saidal-pdp-actions .heart-icon {
  border: 0 !important;
  background: transparent !important;
  width: auto !important;
  height: auto !important;
}

.saidal-pdp-actions .btn--wishlist,
.saidal-pdp-actions .s-social-share-btn,
.saidal-pdp-actions .s-button-wrap {
  width: 42px !important;
  height: 42px !important;
}

.product-details .main-content .product-name { margin-bottom: 6px; }

body.saidal-pdp .product-info,
body.saidal-pdp .main-content,
body.saidal-pdp .product-slider,
body.saidal-pdp .details-slider-wrapper {
  min-width: 0;
  max-width: 100%;
}

body.saidal-pdp .product-slider,
body.saidal-pdp salla-slider.details-slider {
  overflow: hidden;
}

body.saidal-pdp .product__sold-quantity,
body.saidal-pdp .s-block--bundle-out-of-stock-alternative,
#product-card-details-popup {
  display: none !important;
}

body.saidal-pdp .product-rating-stars,
body.saidal-pdp salla-rating-stars {
  display: flex !important;
  visibility: visible !important;
  align-items: center;
  gap: 6px;
  margin: 8px 0 12px;
  color: #c4a35a;
}

body.saidal-pdp #tabs-container {
  display: block !important;
  visibility: visible !important;
  background: #fff;
  border: 1px solid rgba(41, 69, 70, 0.08);
  border-radius: 18px;
  padding: 8px 8px 16px;
  margin: 16px 0;
}

body.saidal-pdp #product-tabs,
body.saidal-pdp .s-comments,
body.saidal-pdp .comment {
  color: var(--saidal-ink);
}

body.saidal-pdp .flex.whitespace-nowrap,
body.saidal-pdp .price_is_on_sale {
  flex-wrap: wrap !important;
  white-space: normal !important;
  max-width: 100%;
  align-items: center;
  gap: 8px;
}

.saidal-save {
  display: inline-flex;
  align-items: center;
  background: var(--saidal-sage);
  color: var(--saidal-teal);
  font-size: 12px;
  font-weight: 800;
  padding: 5px 11px;
  border-radius: 999px;
}

.saidal-pdp-trust,
.saidal-pdp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 12px;
  max-width: 100%;
}

.saidal-pdp-trust span {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(41, 69, 70, 0.1);
  color: var(--saidal-teal);
  font-size: 12px;
  font-weight: 600;
}

body.saidal-pdp #single-product-form,
body.saidal-pdp .installment-wrap,
body.saidal-pdp salla-quick-order {
  max-width: 100%;
  min-width: 0;
}

body.saidal-pdp #single-product-form {
  background: #fff;
  border: 1px solid rgba(41, 69, 70, 0.08);
  border-radius: 18px;
  padding: 16px;
  margin: 10px 0 8px;
}

body.saidal-pdp .product__description,
body.saidal-pdp #more-content {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

body.saidal-pdp .product__description {
  background: #fff;
  border: 1px solid rgba(41, 69, 70, 0.08);
  border-radius: 18px;
  padding: 18px 16px 10px;
  margin-top: 16px;
}

body.saidal-pdp .product__description h3,
body.saidal-pdp .product__description h4 {
  color: var(--saidal-teal);
}

body.saidal-pdp .details-list {
  opacity: 0.72;
  font-size: 13px;
  max-width: 100%;
}

body.saidal-pdp .installment-wrap { margin: 4px 0 8px; }

.saidal-pdp-extra,
#saidal-pdp-pair {
  max-width: 100%;
  overflow-x: clip;
}

.saidal-pdp-extra .sx-section { padding: 28px 0; }
.saidal-pdp-extra .sx-h,
#saidal-pdp-pair .sx-h {
  font-size: clamp(22px, 3vw, 32px);
}

#saidal-pdp-pair { padding: 28px 0 8px; }

.saidal-pair-list {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 720px) {
  .saidal-pair-list.is-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.saidal-pair {
  display: flex;
  gap: 14px;
  align-items: center;
  background: #fff;
  border: 1px solid rgba(41, 69, 70, 0.1);
  border-radius: 18px;
  padding: 14px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 10px 28px rgba(41, 69, 70, 0.06);
  max-width: 100%;
  min-width: 0;
}

.saidal-pair img {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 14px;
  flex-shrink: 0;
  background: #eef2f0;
}

.saidal-pair__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.saidal-pair__tag {
  align-self: flex-start;
  background: var(--saidal-sage);
  color: var(--saidal-teal);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
}

.saidal-pair strong {
  color: var(--saidal-teal);
  font-size: 17px;
}

.saidal-pair p {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  opacity: 0.75;
}

#similar-slider,
.similar-slider,
#similar-slider salla-products-slider {
  max-width: 100%;
  overflow: hidden;
}

.saidal-sticky-atc {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10020;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(41, 69, 70, 0.1);
  padding: 10px 16px;
  padding-bottom: max(10px, env(safe-area-inset-bottom));
  box-shadow: 0 -8px 24px rgba(41, 69, 70, 0.08);
  max-width: 100%;
  box-sizing: border-box;
  pointer-events: auto;
}

.saidal-sticky-atc.is-on { display: flex; }

.saidal-sticky-atc__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.saidal-sticky-atc__meta strong {
  color: var(--saidal-teal);
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.saidal-sticky-atc__meta span {
  font-size: 13px;
  font-weight: 700;
  color: var(--saidal-teal);
}

.saidal-sticky-atc__btn {
  flex-shrink: 0;
  padding: 12px 18px;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
  pointer-events: auto;
  position: relative;
  z-index: 1;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

body.saidal-sticky-on .saidal-wa { bottom: 86px; }

#similar-slider custom-salla-product-card a { cursor: pointer; }

/* Click blog — listing + single. Salla owns the HTML; SAIDAL only brands. */
body.blog-index,
body.blog-single {
  background: var(--saidal-sand) !important;
}

body.blog-index #filters-menu.saidal-blog-cats-empty,
body.blog-index .dropdown-toggler.cat-filter {
  display: none !important;
}

body.blog-index .page-container .grid {
  grid-template-columns: 1fr !important;
}

body.blog-index .post-entry,
body.blog-index .article-card,
body.blog-index .article-item {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(41, 69, 70, 0.06);
  border-color: rgba(41, 69, 70, 0.08) !important;
}

body.blog-index .post-entry__image {
  background: linear-gradient(135deg, #294546, #3a5d5e) !important;
  height: 132px;
}

body.blog-index .post-entry__image img {
  display: none;
}

body.blog-index .post-entry__title a {
  color: var(--saidal-teal) !important;
}

body.blog-index .blog-slider__slide.no-thumb {
  min-height: 240px;
  background: linear-gradient(135deg, #294546, #3a5d5e) !important;
}

body.blog-index .blog-slider__slide.no-thumb > img {
  display: none;
}

body.blog-single .main-content.blog-category {
  max-width: 720px;
  margin-inline: auto;
  padding: 28px 24px 36px;
  border-color: rgba(41, 69, 70, 0.08) !important;
}

body.blog-single .main-content h1 {
  color: var(--saidal-teal) !important;
  font-size: clamp(22px, 5vw, 32px) !important;
  line-height: 1.45 !important;
}

body.blog-single .main-content h2,
body.blog-single article h2 {
  color: var(--saidal-teal) !important;
  font-size: 20px !important;
  margin: 28px 0 10px !important;
}

body.blog-single article {
  font-size: 16px;
  line-height: 1.9;
  color: var(--saidal-ink);
  overflow-wrap: anywhere;
}

body.blog-single article ol,
body.blog-single article ul {
  padding-inline-start: 1.2em;
}

body.blog-single article img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
}

body.blog-single aside.saidal-blog-aside-empty {
  display: none !important;
}

@media (max-width: 767px) {
  body.blog-index .blog-slider {
    display: none !important;
  }

  body.blog-index .page-container {
    padding-inline: 14px;
  }

  body.blog-index .post-entry__image {
    height: 100px;
  }

  body.blog-index .mb-2\.5.rounded.inline-flex,
  body.blog-single .mb-2\.5.rounded.inline-flex {
    flex-wrap: wrap;
    gap: 8px 12px;
  }

  body.blog-single .main-content.blog-category {
    padding: 20px 16px 28px;
    margin-bottom: 20px !important;
    border-radius: 16px;
  }

  body.blog-single .main-content h1 {
    font-size: 22px !important;
  }

  body.blog-single article h2 {
    font-size: 17px !important;
    margin: 22px 0 8px !important;
  }

  body.blog-single article p[style*="text-align"] {
    font-size: 12px !important;
    overflow-x: auto;
    white-space: normal;
    line-height: 1.6;
  }

  body.blog-single salla-comments {
    max-width: 100%;
    overflow: hidden;
  }
}