/* Qiyas Shared Styles & Multilingual System */

/* ============================================================
   Brand fonts
   Arabic  -> "Janna LT"
   English -> "Leelawadee"
   Uses locally installed copies first, then font files that can be
   dropped into assets/fonts/ (woff2 preferred, ttf fallback). If a file
   is absent and the font isn't installed, it degrades to the fallbacks
   in each font-family stack below.
   ============================================================ */
@font-face {
  font-family: "Janna LT";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local("Janna LT"), local("Janna LT Regular"),
    url("../fonts/JannaLT-Regular.woff2") format("woff2"),
    url("../fonts/JannaLT-Regular.ttf") format("truetype");
}
@font-face {
  font-family: "Janna LT";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: local("Janna LT Bold"),
    url("../fonts/JannaLT-Bold.woff2") format("woff2"),
    url("../fonts/JannaLT-Bold.ttf") format("truetype");
}
@font-face {
  font-family: "Leelawadee";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local("Leelawadee UI"), local("Leelawadee"),
    url("../fonts/Leelawadee-Regular.woff2") format("woff2"),
    url("../fonts/Leelawadee-Regular.ttf") format("truetype");
}
@font-face {
  font-family: "Leelawadee";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: local("Leelawadee UI Bold"), local("Leelawadee Bold"),
    url("../fonts/Leelawadee-Bold.woff2") format("woff2"),
    url("../fonts/Leelawadee-Bold.ttf") format("truetype");
}

/* Language Toggle Logic */
html.lang-ar {
  --tp-ff-body: "Janna LT", "Tahoma", sans-serif !important;
  --tp-ff-heading: "Janna LT", "Tahoma", sans-serif !important;
  --tp-ff-p: "Janna LT", "Tahoma", sans-serif !important;
  --tp-ff-dmsans: "Janna LT", "Tahoma", sans-serif !important;
  --tp-ff-didone: "Janna LT", "Tahoma", sans-serif !important;
  --tp-ff-didoneWideMedium: "Janna LT", "Tahoma", sans-serif !important;
  --tp-ff-didoneCompackDark: "Janna LT", "Tahoma", sans-serif !important;
  --tp-ff-didoneright: "Janna LT", "Tahoma", sans-serif !important;
  --tp-ff-abril: "Janna LT", "Tahoma", sans-serif !important;
  --tp-ff-garamond: "Janna LT", "Tahoma", sans-serif !important;
  --tp-ff-kufam: "Janna LT", "Tahoma", sans-serif !important;
  --tp-ff-playfair: "Janna LT", "Tahoma", sans-serif !important;
  --tp-ff-poppins: "Janna LT", "Tahoma", sans-serif !important;
}

html.lang-en {
  --tp-ff-body: "Leelawadee", "Segoe UI", sans-serif !important;
  --tp-ff-heading: "Leelawadee", "Segoe UI", sans-serif !important;
  --tp-ff-p: "Leelawadee", "Segoe UI", sans-serif !important;
  --tp-ff-dmsans: "Leelawadee", "Segoe UI", sans-serif !important;
  --tp-ff-didone: "Leelawadee", "Segoe UI", sans-serif !important;
  --tp-ff-didoneWideMedium: "Leelawadee", "Segoe UI", sans-serif !important;
  --tp-ff-didoneCompackDark: "Leelawadee", "Segoe UI", sans-serif !important;
  --tp-ff-didoneright: "Leelawadee", "Segoe UI", sans-serif !important;
  --tp-ff-abril: "Leelawadee", "Segoe UI", sans-serif !important;
  --tp-ff-garamond: "Leelawadee", "Segoe UI", sans-serif !important;
  --tp-ff-kufam: "Leelawadee", "Segoe UI", sans-serif !important;
  --tp-ff-playfair: "Leelawadee", "Segoe UI", sans-serif !important;
  --tp-ff-poppins: "Leelawadee", "Segoe UI", sans-serif !important;
}

html.lang-ar [data-lang="en"] {
  display: none !important;
}

html.lang-en [data-lang="ar"] {
  display: none !important;
}

/* Collapse any wrapper left holding ONLY the inactive language so it leaves no
   empty line or padding gap. Covers GSAP SplitText line wrappers
   (.tp-split-line) and block elements that wrap a single language while its
   translation lives in a separate sibling block. A container that holds BOTH
   languages (e.g. a split heading) is never hidden. */
html.lang-ar
  :is(.tp-split-line, p, h1, h2, h3, h4, h5, h6, li):has([data-lang="en"]):not(:has([data-lang="ar"])),
html.lang-en
  :is(.tp-split-line, p, h1, h2, h3, h4, h5, h6, li):has([data-lang="ar"]):not(:has([data-lang="en"])) {
  display: none !important;
}

/* Language Toggle Button Style */
.qiyas-lang-toggle {
  background: none;
  border: 1px solid currentColor;
  border-radius: 50px;
  color: inherit;
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  margin-left: 15px;
  margin-right: 15px;
  transition: opacity 0.3s ease;
  font-family: inherit;
}

.qiyas-lang-toggle:hover {
  opacity: 0.7;
}

/* Extracted from index.html */
.tp-why-list ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.tp-why-list li {
  position: relative;
  padding: 0 26px 22px 0;
  margin-bottom: 22px;
  border-bottom: 1px solid rgba(128, 128, 128, 0.18);
}
.tp-why-list li:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}
.tp-why-list li::before {
  content: "";
  position: absolute;
  top: 8px;
  right: 4px;
  width: 8px;
  height: 8px;
  transform: rotate(45deg);
  border: 1.5px solid currentColor;
  opacity: 0.6;
}
html.lang-en .tp-why-list li {
  padding: 0 0 22px 26px;
}
html.lang-en .tp-why-list li::before {
  right: auto;
  left: 4px;
}
.tp-why-list li span[data-lang="ar"],
.tp-why-list li span[data-lang="en"] {
  display: block;
  margin-top: 6px;
  opacity: 0.7;
  font-size: 0.95em;
}

.tp-stores-area {
  padding-top: 40px;
  padding-bottom: 60px;
}
.tp-stores-head {
  margin-bottom: 55px;
}
.tp-stores-head .tp-port-2-subtitle {
  display: inline-block;
  margin-bottom: 14px;
}
.tp-store-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 36px 34px;
  border: 1px solid rgba(128, 128, 128, 0.24);
  border-radius: 4px;
  transition: transform 0.35s ease, border-color 0.35s ease;
}
.tp-store-card:hover {
  transform: translateY(-6px);
  border-color: currentColor;
}
.tp-store-card .store-city {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
  margin: 0;
}
.tp-store-card .store-city span[data-lang="ar"],
.tp-store-card .store-city span[data-lang="en"] {
  display: block;
  font-size: 16px;
  opacity: 0.72;
  margin-top: 4px;
}
.tp-store-card .store-addr {
  margin: 0;
  opacity: 0.78;
  line-height: 1.7;
  flex: 1 1 auto;
}
.tp-store-card .store-tel {
  display: inline-block;
  opacity: 0.85;
  letter-spacing: 0.03em;
}
.tp-store-card .store-tel:hover {
  text-decoration: underline;
}
.tp-store-directions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 11px 22px;
  margin-top: 4px;
  border: 1px solid currentColor;
  border-radius: 50px;
  font-size: 14px;
  letter-spacing: 0.04em;
  transition: opacity 0.3s ease;
}
.tp-store-directions:hover {
  opacity: 0.65;
}
.tp-store-directions svg {
  width: 14px;
  height: 14px;
}
.tp-store-card .store-ar-dir {
  opacity: 0.7;
}

.tp-join-area {
  padding: 30px 0 90px;
  text-align: center;
}
.tp-join-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.tp-join-inner p {
  margin: 0;
  opacity: 0.78;
  font-size: 18px;
  line-height: 1.8;
}
.tp-join-inner p[data-lang="ar"],
.tp-join-inner p[data-lang="en"] {
  opacity: 0.7;
}
.tp-join-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 34px;
  border: 1px solid currentColor;
  border-radius: 50px;
  font-size: 16px;
  letter-spacing: 0.04em;
  transition: opacity 0.3s ease;
}
.tp-join-btn:hover {
  opacity: 0.65;
}

/* Fix missing icons spacing */
.tp-header-3__right-action {
  gap: 24px;
}

.tp-main-menu-content ul li {
  margin-right: 20px;
  margin-left: 20px;
}

html.lang-ar .tp-main-menu-content ul li {
  margin-left: 20px;
  margin-right: 20px;
}

/* Fix Vision / Mission / Brand Promise section styling */
.tp-port-2-info {
  align-items: flex-start !important; 
}
.tp-port-2-info-item {
  padding-right: 30px !important;
  flex: 1;
}
html.lang-ar .tp-port-2-info-item {
  padding-right: 0 !important;
  padding-left: 30px !important;
}
.tp-port-2-info-item > span,
.tp-port-2-info-item > span span {
  text-transform: none !important;
  font-size: 16px !important;
  line-height: 1.7 !important;
  font-family: inherit !important;
  opacity: 0.9;
}
.tp-port-2-info-item > span span[data-lang="ar"] {
  font-size: 17px !important;
  line-height: 1.9 !important;
}
.tp-port-2-info-title {
  margin-bottom: 15px;
}

/* Light mode overrides for stores and join us sections */
html[tp-theme="tp-theme-light"] .tp-stores-area,
html[tp-theme="tp-theme-light"] .tp-join-area {
  background-color: #f3f1ea !important;
  color: var(--tp-common-black-8) !important;
}

html[tp-theme="tp-theme-light"] .tp-stores-area *,
html[tp-theme="tp-theme-light"] .tp-join-area * {
  color: var(--tp-common-black-8) !important;
}

html[tp-theme="tp-theme-light"] .tp-store-card {
  border-color: rgba(0, 0, 0, 0.15) !important;
  background-color: transparent !important;
}

html[tp-theme="tp-theme-light"] .tp-store-card:hover {
  border-color: var(--tp-common-black-8) !important;
}

html[tp-theme="tp-theme-light"] .tp-store-directions,
html[tp-theme="tp-theme-light"] .tp-join-btn {
  border-color: var(--tp-common-black-8) !important;
  background-color: transparent !important;
}

html[tp-theme="tp-theme-light"] .tp-store-directions:hover,
html[tp-theme="tp-theme-light"] .tp-join-btn:hover {
  background-color: var(--tp-common-black-8) !important;
  color: var(--tp-common-white) !important;
}

html[tp-theme="tp-theme-light"] .tp-store-directions:hover *,
html[tp-theme="tp-theme-light"] .tp-join-btn:hover * {
  color: var(--tp-white) !important;
}

/* Light mode loading screen */
html[tp-theme="tp-theme-light"] #loading {
  background-color: #f3f1ea !important;
}
html[tp-theme="tp-theme-light"] .preloader__loading {
  color: rgba(0, 0, 0, 0.7) !important;
}
html[tp-theme="tp-theme-light"] #tp-loading-number {
  color: var(--tp-common-black-8) !important;
}
html[tp-theme="tp-theme-light"] .preloader__bar {
  background-color: rgba(0, 0, 0, 0.1) !important;
}
html[tp-theme="tp-theme-light"] .preloader__bar-inner {
  background: var(--tp-common-black-8) !important;
}

/* Responsive stack for Vision, Mission, and Brand Promise */
@media (max-width: 767px) {
  .tp-port-2-info {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 35px !important;
  }
  .tp-port-2-info-item {
    padding-right: 0 !important;
    padding-left: 0 !important;
    width: 100% !important;
  }
}


/* Qiyas Accordion (FAQ-style) */
.qiyas-accordion .accordion-item {
  background-color: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}
html[tp-theme="tp-theme-light"] .qiyas-accordion .accordion-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
}

.qiyas-accordion .accordion-button {
  background-color: transparent !important;
  padding: 24px 0 !important;
  font-size: 18px !important;
  font-weight: 500 !important;
  color: var(--tp-common-white) !important;
  border: 0 !important;
  box-shadow: none !important;
  position: relative;
  text-align: left;
  font-family: var(--tp-ff-poppins), sans-serif !important;
  width: 100% !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
}
html[tp-theme="tp-theme-light"] .qiyas-accordion .accordion-button {
  color: var(--tp-common-black-8) !important;
}

html.lang-ar .qiyas-accordion .accordion-button {
  text-align: right;
  padding-right: 0 !important;
  padding-left: 0 !important;
}

/* Position and color overrides for the chevron arrow */
.qiyas-accordion .accordion-button::after {
  color: var(--tp-cream-2) !important;
  position: relative !important;
  top: auto !important;
  right: auto !important;
  left: auto !important;
  margin: 0 !important;
  display: inline-block !important;
  transform: none !important;
  transition: transform 0.3s ease-out !important;
}
html[tp-theme="tp-theme-light"] .qiyas-accordion .accordion-button::after {
  color: var(--tp-common-black-8) !important;
}

.qiyas-accordion .accordion-button:not(.collapsed) {
  color: var(--tp-cream-2) !important;
}
html[tp-theme="tp-theme-light"] .qiyas-accordion .accordion-button:not(.collapsed) {
  color: var(--tp-common-black-8) !important;
}

.qiyas-accordion .accordion-button:not(.collapsed)::after {
  transform: rotate(-180deg) !important;
}

.qiyas-accordion .accordion-button .tp-accordion-plus {
  right: 0;
}
html.lang-ar .qiyas-accordion .accordion-button .tp-accordion-plus {
  right: auto;
  left: 0;
}

.qiyas-accordion .accordion-button .tp-accordion-plus::after,
.qiyas-accordion .accordion-button .tp-accordion-plus::before {
  background-color: currentColor !important;
}

.qiyas-accordion .accordion-body {
  padding: 0 0 24px 0 !important;
  background-color: transparent !important;
}

.qiyas-accordion .accordion-body p {
  font-size: 15px !important;
  line-height: 1.7 !important;
  color: rgba(255, 255, 255, 0.7) !important;
  margin: 0;
  font-family: var(--tp-ff-poppins), sans-serif !important;
}
html[tp-theme="tp-theme-light"] .qiyas-accordion .accordion-body p {
  color: rgba(0, 0, 0, 0.7) !important;
}

.qiyas-accordion .accordion-collapse {
  border: 0 !important;
}

/* Dark mode overrides for stores and join us sections */
html[tp-theme="tp-theme-dark"] .tp-stores-area,
html[tp-theme="tp-theme-dark"] .tp-join-area {
  background-color: var(--tp-coffe-1) !important;
  color: var(--tp-cream-2) !important;
}

html[tp-theme="tp-theme-dark"] .tp-stores-area *,
html[tp-theme="tp-theme-dark"] .tp-join-area * {
  color: var(--tp-cream-2) !important;
}

html[tp-theme="tp-theme-dark"] .tp-store-card {
  border-color: rgba(255, 255, 255, 0.15) !important;
  background-color: transparent !important;
}

html[tp-theme="tp-theme-dark"] .tp-store-card:hover {
  border-color: var(--tp-cream-2) !important;
}

html[tp-theme="tp-theme-dark"] .tp-store-directions,
html[tp-theme="tp-theme-dark"] .tp-join-btn {
  border-color: var(--tp-cream-2) !important;
  background-color: transparent !important;
}

html[tp-theme="tp-theme-dark"] .tp-store-directions:hover,
html[tp-theme="tp-theme-dark"] .tp-join-btn:hover {
  background-color: var(--tp-cream-2) !important;
  color: var(--tp-coffe-1) !important;
}

html[tp-theme="tp-theme-dark"] .tp-store-directions:hover *,
html[tp-theme="tp-theme-dark"] .tp-join-btn:hover * {
  color: var(--tp-coffe-1) !important;
}

/* Fix contact page inline heading image size to match theme standards */
.contact-inner__title span img {
  width: 140px !important;
  height: 80px !important;
  object-fit: cover !important;
  border-radius: 100px !important;
  display: inline-block !important;
}

@media (max-width: 767px) {
  .contact-inner__title span img {
    width: 90px !important;
    height: 50px !important;
  }
}

/* Contact page theme matching */
html[tp-theme="tp-theme-light"] .contact-inner__area {
  background-color: #f3f1ea !important;
}
html[tp-theme="tp-theme-light"] .contact-inner__area *,
html[tp-theme="tp-theme-light"] .postbox__comment-form * {
  color: var(--tp-common-black-8) !important;
}
html[tp-theme="tp-theme-light"] .contact-inner__subtitle {
  color: var(--tp-common-black-8) !important;
}
html[tp-theme="tp-theme-light"] .contact-inner__title {
  color: var(--tp-common-black-8) !important;
}
html[tp-theme="tp-theme-light"] .contact-inner__form-title {
  color: var(--tp-common-black-8) !important;
}
html[tp-theme="tp-theme-light"] .postbox__comment-input input,
html[tp-theme="tp-theme-light"] .postbox__comment-input textarea {
  border-bottom: 1px solid rgba(0, 0, 0, 0.15) !important;
  color: var(--tp-common-black-8) !important;
}
html[tp-theme="tp-theme-light"] .postbox__comment-input .floating-label,
html[tp-theme="tp-theme-light"] .postbox__comment-input .floating-label-2 {
  color: rgba(0, 0, 0, 0.5) !important;
}

html[tp-theme="tp-theme-dark"] .contact-inner__area {
  background-color: var(--tp-coffe-1) !important;
}
html[tp-theme="tp-theme-dark"] .contact-inner__area *,
html[tp-theme="tp-theme-dark"] .postbox__comment-form * {
  color: var(--tp-cream-2) !important;
}
html[tp-theme="tp-theme-dark"] .contact-inner__subtitle {
  color: var(--tp-cream-2) !important;
}
html[tp-theme="tp-theme-dark"] .contact-inner__title {
  color: var(--tp-common-white) !important;
}
html[tp-theme="tp-theme-dark"] .contact-inner__form-title {
  color: var(--tp-common-white) !important;
}
html[tp-theme="tp-theme-dark"] .postbox__comment-input input,
html[tp-theme="tp-theme-dark"] .postbox__comment-input textarea {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: var(--tp-common-white) !important;
}
html[tp-theme="tp-theme-dark"] .postbox__comment-input .floating-label,
html[tp-theme="tp-theme-dark"] .postbox__comment-input .floating-label-2 {
  color: rgba(255, 255, 255, 0.5) !important;
}
html[tp-theme="tp-theme-dark"] .postbox__comment-btn .tp-btn-grey-lg {
  background-color: var(--tp-cream-2) !important;
  color: var(--tp-coffe-1) !important;
}
html[tp-theme="tp-theme-dark"] .postbox__comment-btn .tp-btn-grey-lg * {
  color: var(--tp-coffe-1) !important;
}

/* Fix header Let's Talk button text readability on gold background in dark mode */
html[tp-theme="tp-theme-dark"] .tp-btn-white,
html[tp-theme="tp-theme-dark"] .tp-btn-white * {
  color: var(--tp-coffe-1) !important;
}
html[tp-theme="tp-theme-dark"] .tp-btn-white:hover {
  background-color: var(--tp-common-white) !important;
}
html[tp-theme="tp-theme-dark"] .tp-btn-white:hover * {
  color: var(--tp-coffe-1) !important;
}

/* Fix header Let's Talk button text readability on dark background in light mode */
html[tp-theme="tp-theme-light"] .tp-btn-white,
html[tp-theme="tp-theme-light"] .tp-btn-white * {
  color: var(--tp-common-white) !important;
}
html[tp-theme="tp-theme-light"] .tp-btn-white:hover {
  background-color: var(--tp-common-black-8) !important;
}
html[tp-theme="tp-theme-light"] .tp-btn-white:hover * {
  color: var(--tp-cream-2) !important;
}

/* Light mode form button */
html[tp-theme="tp-theme-light"] .postbox__comment-btn .tp-btn-grey-lg,
html[tp-theme="tp-theme-light"] .postbox__comment-btn .tp-btn-grey-lg * {
  color: var(--tp-common-white) !important;
  background-color: var(--tp-common-black-8) !important;
}

/* Subtitle decorative line RTL margin and colors */
.contact-inner__subtitle::after {
  background-color: var(--tp-cream-2) !important;
}
html[tp-theme="tp-theme-light"] .contact-inner__subtitle::after {
  background-color: var(--tp-common-black-8) !important;
}

html.lang-ar .contact-inner__subtitle::after {
  margin-left: 0 !important;
  margin-right: 10px !important;
}

/* Fix contact page email link color to avoid generic template pink/purple */
.contact-inner__mail-info a {
  color: var(--tp-cream-2) !important;
  text-decoration: underline;
}
html[tp-theme="tp-theme-light"] .contact-inner__mail-info a {
  color: var(--tp-common-black-8) !important;
  text-decoration: underline;
}

/* Arabic heading typography adjustments for contact page to avoid awkward line wrapping */
html.lang-ar .contact-inner__title {
  font-size: 80px !important;
  line-height: 1.15 !important;
}
@media (max-width: 767px) {
  html.lang-ar .contact-inner__title {
    font-size: 48px !important;
    line-height: 1.25 !important;
  }
}

/* Vertical centering overrides for Send Message button */
.tp-btn-grey-lg {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
.tp-btn-grey-lg div,
.tp-btn-grey-lg div span,
.tp-btn-grey-lg div span * {
  display: inline !important;
  line-height: 1 !important;
  margin: 0 !important;
  padding: 0 !important;
  height: auto !important;
  transform: none !important;
  overflow: visible !important;
  text-shadow: none !important;
}
.tp-btn-grey-lg:hover div span {
  transform: none !important;
}

/* Fix footer text truncation due to bilingual span tag collision */
.tp-footer-6-social a span[data-lang="en"],
.tp-footer-6-social a span[data-lang="ar"] {
  width: auto !important;
  height: auto !important;
  overflow: visible !important;
  display: inline-block !important;
}

/* Footer CTA label: keep it in normal document flow, centered above the big
   headline, so it never overlaps the title in either language. (The template
   positioned it absolutely for a decorative overlay, which collides with the
   centred bilingual heading.) */
html .tp-footer-6-cta-wrap .tp-about-5-subtitle {
  position: static !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  display: block !important;
  margin-bottom: 22px !important;
  line-height: 1.5 !important;
}

/* Offcanvas orange section background image and overlay integration */
.tp-offcanvas-right {
  background-image: url("../img/logo/offcanvas-bg.png") !important;
  background-size: cover !important;
  background-position: center !important;
  position: relative !important;
}
.tp-offcanvas-right::before {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background-color: rgba(114, 62, 32, 0.85) !important; /* premium transparent overlay */
  z-index: 1 !important;
}
.tp-offcanvas-right-inner {
  position: relative !important;
  z-index: 2 !important;
}

/* Fix mobile menu counters in RTL mode (e.g. 01 instead of 10) */
html.lang-ar .tp-main-menu-mobile > nav > ul > li > a::after,
html.lang-ar .tp-main-menu-mobile > nav > ul > li > a::before {
  direction: ltr !important;
  unicode-bidi: bidi-override !important;
}

/* Fix phone numbers in RTL mode (e.g. 920 033 768 instead of 768 033 920) */
html.lang-ar a[href^="tel:"] {
  direction: ltr !important;
  unicode-bidi: isolate !important;
  display: inline-block !important;
}

/* Fix header spacing on mobile in RTL (prevents overlapping logo) */
html.lang-ar .tp-header-3__right-action {
  gap: 15px !important;
}

html.lang-ar .tp-header-3__hamburger.ml-50,
html.lang-ar .qiyas-lang-toggle {
  margin: 0 !important;
}

/* Fix SplitText injecting block elements which breaks RTL natural flow */
html.lang-ar .tp-split-text > div {
  display: inline-block !important;
}
html.lang-ar .tp-split-text > div::after {
  content: " ";
  white-space: pre;
}

/* ============================================================
   Offcanvas menu fixes
   ============================================================ */

/* 1. Consistent menu panels — the left (menu) panel shipped with the
   template's dark-blue colour while the right panel is coffee. Match both
   to the Qiyas coffee tone so the whole menu reads as one surface. */
.tp-offcanvas-bg.is-left,
.tp-offcanvas-bg.is-right {
  background-color: #723e20 !important;
}

/* 2. Close button was hidden behind the coffee overlay (::before, z-index:1)
   because it sits outside .tp-offcanvas-right-inner. Lift it above so it is
   both visible and clickable. */
.tp-offcanvas-right .tp-offcanvas-close,
.tp-offcanvas-left .tp-offcanvas-close {
  position: relative !important;
  z-index: 3 !important;
}

/* 3. Lock the page (and its image sections) from scrolling behind the open
   menu. ScrollSmoother is paused from JS; this pins the offcanvas full-screen. */
body.offcanvas-opened {
  overflow: hidden !important;
}
.tp-offcanvas-area {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1110;
  visibility: hidden;
  pointer-events: none;
}
.tp-offcanvas-area.opened {
  visibility: visible;
  pointer-events: auto;
}

/* ============================================================
   Portrait gallery thumbs (thobe detail + storefront)
   Give both portrait images an equal, balanced crop so the two
   side-by-side columns line up regardless of source aspect ratio.
   ============================================================ */
.tp-port-2-thumb--portrait {
  overflow: hidden;
}
.tp-port-2-thumb--portrait img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
  display: block;
}
@media (max-width: 767px) {
  .tp-port-2-thumb--portrait img {
    aspect-ratio: 3 / 4;
  }
}
