html[lang="ar"] body,
html[lang="ar"] button,
html[lang="ar"] input,
html[lang="ar"] select,
html[lang="ar"] textarea {
  font-family: Tahoma, Arial, sans-serif;
}

html[dir="rtl"] body {
  direction: rtl;
  text-align: start;
}

.cc-language-toggle {
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(217, 31, 106, 0.35);
  border-radius: 999px;
  color: #111;
  cursor: pointer;
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  justify-content: center;
  line-height: 1;
  min-height: 36px;
  min-width: 78px;
  padding-block: 8px;
  padding-inline: 14px;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.cc-language-toggle:hover,
.cc-language-toggle:focus-visible {
  background: #df1f6a;
  border-color: #df1f6a;
  color: #fff;
  outline: none;
}

.cc-language-toggle:focus-visible {
  box-shadow: 0 0 0 3px rgba(223, 31, 106, 0.2);
}

.cc-mobile-language-row {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  margin-block-start: 8px;
  padding-block-start: 16px;
}

.cc-language-toggle--mobile-bar {
  min-width: 0;
  min-height: 44px;
  padding: 0.35rem 0.2rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-size: 0.75rem;
  font-weight: 600;
}

.cc-language-toggle--mobile {
  width: 100%;
}

.cc-login-page > .cc-language-toggle--admin {
  inset-block-start: 24px;
  inset-inline-end: 24px;
  position: fixed;
  z-index: 20;
}

html[dir="rtl"] input[type="email"],
html[dir="rtl"] input[type="tel"],
html[dir="rtl"] input[inputmode="email"],
html[dir="rtl"] input[inputmode="tel"],
html[dir="rtl"] .cc-ltr-value {
  direction: ltr;
  text-align: start;
}

html[dir="rtl"] input:not([type="email"]):not([type="tel"]),
html[dir="rtl"] textarea,
html[dir="rtl"] select {
  text-align: start;
}

html[dir="rtl"] .form-search .ph-magnifying-glass {
  inset-inline-end: auto;
  inset-inline-start: 12px;
  left: auto;
  right: auto;
}

html[dir="rtl"] .form-search input {
  padding-inline-end: 1rem;
  padding-inline-start: 2.25rem;
}

html[dir="rtl"] .cc-admin-sidebar {
  border-inline-end: 1px solid rgba(217, 31, 106, 0.18);
  border-left: 1px solid rgba(217, 31, 106, 0.18);
  border-right: 0;
}

html[dir="rtl"] .cc-admin-header,
html[dir="rtl"] .cc-admin-panel-head,
html[dir="rtl"] .cc-admin-order-tools,
html[dir="rtl"] .cc-order-item-title,
html[dir="rtl"] .cc-admin-notice-head,
html[dir="rtl"] .curly-main-nav,
html[dir="rtl"] #footer .list-nav,
html[dir="rtl"] .product-main,
html[dir="rtl"] .checkout-block,
html[dir="rtl"] .cart-block,
html[dir="rtl"] .wishlist-block {
  direction: rtl;
  text-align: start;
}

html[dir="rtl"] .swiper,
html[dir="rtl"] .swiper-wrapper {
  direction: ltr;
}

html[dir="rtl"] .swiper-slide > * {
  direction: rtl;
}

.cc-faq-old {
  display: none !important;
}

html[dir="rtl"] .cc-directional-icon {
  transform: scaleX(-1);
}

html[dir="rtl"] .product-main img,
html[dir="rtl"] .curly-logo img,
html[dir="rtl"] .payment-img img {
  transform: none;
}

html[dir="rtl"] .breadcrumb-block .link,
html[dir="rtl"] .breadcrumb-product .left,
html[dir="rtl"] .breadcrumb-product .right {
  direction: rtl;
}

html[dir="rtl"] .breadcrumb-block .ph-caret-right,
html[dir="rtl"] .breadcrumb-product .left > .ph-caret-right {
  transform: scaleX(-1);
}

.add-wishlist-btn {
  appearance: none;
}

.add-wishlist-btn.active {
  background: #df1f6a;
  border-color: #df1f6a;
  color: #fff;
}

.cc-stock-status {
  margin-inline-start: auto;
}

@media (max-width: 1023px) {
  .cc-language-toggle--desktop {
    display: none;
  }
}

@media (max-width: 639px) {
  .product-item .list-action-right {
    display: block !important;
  }

  .product-item .add-wishlist-btn,
  .product-detail .add-wishlist-btn {
    min-height: 44px;
    min-width: 44px;
  }

  .product-detail .choose-quantity .add-cart-btn {
    min-height: 44px;
  }

  .breadcrumb-product .container {
    align-items: flex-start;
  }

  .breadcrumb-product .left {
    flex-wrap: wrap;
    max-width: 100%;
  }

  .breadcrumb-product .right {
    display: none;
  }

  .menu_bar {
    display: block !important;
    position: fixed !important;
    inset-inline: 0 !important;
    bottom: 0 !important;
    height: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: rgba(255, 250, 252, 0.98) !important;
    border-top: 1px solid rgba(238, 47, 125, 0.16);
    box-shadow: 0 -8px 24px rgba(72, 41, 55, 0.1) !important;
    box-sizing: border-box;
    z-index: 101 !important;
  }

  .menu_bar .menu_bar-inner {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    height: 72px !important;
    padding: 7px 6px 6px;
    box-sizing: border-box;
  }

  .menu_bar .menu_bar-link {
    align-items: center;
    color: #151116;
    display: flex;
    flex-direction: column;
    gap: 3px !important;
    height: 100%;
    justify-content: center;
    min-width: 0;
    padding: 0 2px;
    text-align: center;
  }

  .menu_bar .menu_bar-link > .ph-bold,
  .menu_bar .menu_bar-link .cart-icon > .ph-bold {
    font-size: 23px !important;
    line-height: 1 !important;
  }

  .menu_bar .menu_bar-title,
  .menu_bar .cc-language-toggle--mobile-bar {
    font-size: 11px !important;
    line-height: 1.15 !important;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .menu_bar .cc-language-toggle--mobile-bar {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  body {
    padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

@media (min-width: 1024px) {
  .cc-language-toggle--mobile {
    display: none;
  }
}
