/* backend/public/css/header.css */

:root {
  --zh-footer-background: #2c2c2c;
  --background-color: #fff;
  --zh-white: #fff;
  --zh-blue: #0d6efd;
  --zh-indigo: rgb(3, 65, 127);
  --zh-lighindigo: #6610f2;
  --zh-lightindigo: #ede2ff;
  --zh-purple: #6f42c1;
  --zh-pink: #d63384;
  --zh-thistle: #BDA6CE;
  --zh-red: #dc3545;
  --zh-orange: #fd7e14;
  --zh-orange-light: #4a3b31;
  --zh-goldenrod: #daa520;
  --zh-gold: #ffc107;
  --zh-yellow: #ffff00;
  --zh-green: #198754;
  --zh-green-dark: #016B61;
  --zh-blue-light: #9ECFD4;
  --zh-blue-white: #016bfa1c;
  --zh-teal: #e8ffeb;
  --zh-cyan: #0dcaf0;
  --zh-black: #000;
  --zh-light: #f8f9fa;
  --zh-light-color: #f7f5f2;
  --zh-text-color-dark: #333;
  --zh-text-color-1: #f8f9fa;
  --zh-text-color-2: #e9ecef;
  --zh-text-color-3: #dee2e6;
  --zh-text-color-4: #ced4da;
  --zh-text-color-5: #adb5bd;
  --zh-text-color-6: #6c757d;
  --zh-text-color-7: #495057;
  --zh-text-color-8: #343a40;
  --zh-text-color-9: #212529;
  --zh-primary-rgb: 13, 110, 253;
  --zh-secondary-rgb: 108, 117, 125;
  --zh-success-rgb: 25, 135, 84;
  --zh-info-rgb: 13, 202, 240;
  --zh-warning-rgb: 255, 193, 7;
  --zh-danger-rgb: 220, 53, 69;
  --zh-light-rgb: 248, 249, 250;
  --zh-dark-rgb: 33, 37, 41;
  --zh-primary-text-emphasis: #052c65;
  --zh-secondary-text-emphasis: #2b2f32;
  --zh-success-text-emphasis: #0a3622;
  --zh-info-text-emphasis: #055160;
  --zh-warning-text-emphasis: #664d03;
  --zh-danger-text-emphasis: #58151c;
  --zh-light-text-emphasis: #495057;
  --zh-dark-text-emphasis: #495057;
  --zh-primary-bg-subtle: #cfe2ff;
  --zh-secondary-bg-subtle: #e2e3e5;
  --zh-success-bg-subtle: #d1e7dd;
  --zh-info-bg-subtle: #cff4fc;
  --zh-warning-bg-subtle: #fff3cd;
  --zh-danger-bg-subtle: #f8d7da;
  --zh-light-bg-subtle: #fcfcfd;
  --zh-dark-bg-subtle: #ced4da;
  --zh-primary-border-subtle: #9ec5fe;
  --zh-secondary-border-subtle: #c4c8cb;
  --zh-success-border-subtle: #a3cfbb;
  --zh-info-border-subtle: #9eeaf9;
  --zh-warning-border-subtle: #ffe69c;
  --zh-danger-border-subtle: #f1aeb5;
  --zh-light-border-subtle: #e9ecef;
  --zh-dark-border-subtle: #adb5bd;
  --zh-white-rgb: 255, 255, 255;
  --zh-black-rgb: 0, 0, 0;
  --zh-font-family-ar: "Cairo", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  /* خط عربي */
  --zh-font-sans-serif: system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --zh-font-monospace: SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  --zh-gradient: linear-gradient(180deg,
      rgba(255, 255, 255, 0.15),
      rgba(255, 255, 255, 0));
  --zh-font-size: 0.5rem;
  --zh-font-size-s: 0.65rem;
  --zh-font-size-sm: 0.725rem;
  --zh-font-size-lg: 0.85rem;
  --zh-font-size-xl: 1rem;
  --zh-font-size-xxl: 1.2rem;
  --zh-font-size-xxxl: 1.5rem;
  --zh-font-size-2xl: 2rem;
  --zh-font-weight-sm: 400;
  --zh-font-weight-lg: 500;
  --zh-font-weight-xl: 600;
  --zh-font-weight-xxl: 700;
  --zh-font-weight-3xl: 800;
  --zh-body-line-height: 1.5;
  --zh-body-color: #212529;
  --zh-body-color-rgb: 33, 37, 41;
  --zh-body-bg: #fff;
  --zh-body-bg-rgb: 255, 255, 255;
  --zh-emphasis-color: #000;
  --zh-emphasis-color-rgb: 0, 0, 0;
  --zh-secondary-color: rgba(33, 37, 41, 0.75);
  --zh-secondary-color-rgb: 33, 37, 41;
  --zh-secondary-bg: #e9ecef;
  --zh-secondary-bg-rgb: 233, 236, 239;
  --zh-tertiary-color: rgba(33, 37, 41, 0.5);
  --zh-tertiary-color-rgb: 33, 37, 41;
  --zh-tertiary-bg: #f8f9fa;
  --zh-tertiary-bg-rgb: 248, 249, 250;
  --zh-link-color: #0d6efd;
  --zh-link-color-rgb: 13, 110, 253;
  --zh-link-decoration: underline;
  --zh-link-hover-color: #0a58ca;
  --zh-link-hover-color-rgb: 10, 88, 202;
  --zh-code-color: #d63384;
  --zh-highlight-bg: #fff3cd;
  --zh-border: 1px solid #333;
  --zh-border-width: 1px;
  --zh-border-style: solid;
  --zh-border-color: #dee2e6;
  --zh-border-color-translucent: rgba(0, 0, 0, 0.175);
  --zh-border-radius: 0.375rem;
  --zh-border-radius-sm: 0.25rem;
  --zh-border-radius-lg: 0.5rem;
  --zh-border-radius-xl: 1rem;
  --zh-border-radius-xxl: 2rem;
  --zh-border-radius-2xl: var(--zh-border-radius-xxl);
  --zh-border-radius-r: 50vmax;
  --zh-box-shadow: 0 1px 5px 0px rgb(0 0 0 / 30%);
  --zh-box-shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  --zh-box-shadow-lg: 0 0px 10px 0px rgb(0 0 0 / 41%);
  --zh-box-shadow-inset: inset 0 1px 2px rgba(0, 0, 0, 0.075);
  --zh-focus-ring-width: 0.25rem;
  --zh-focus-ring-opacity: 0.25;
  --zh-focus-ring-color: rgba(13, 110, 253, 0.25);
  --zh-form-valid-color: #198754;
  --zh-form-valid-border-color: #198754;
  --zh-form-invalid-color: #dc3545;
  --zh-form-invalid-border-color: #dc3545;
  --zh-height: 60;
  --zh-width: 1920;
  --zh-ratio: calc(100% * var(--zh-height) / var(--zh-width));
  --color-bg: #fff;
  /* Icon Colors - يمكن تخصيصها من لوحة التحكم */
  --icon-header-color: var(--zh-gold);          /* أيقونات البحث والسلة */
  --icon-header-hover-color: var(--zh-cyan);    /* أيقونات البحث والسلة عند hover */
  --icon-primary-color: var(--zh-gold);        /* أيقونات SVG العامة */
  --icon-secondary-color: var(--zh-cyan);        /* أيقونات SVG عند hover */
  --icon-footer-color: var(--zh-gold);          /* أيقونات التواصل الاجتماعي */
  --icon-footer-hover-color: var(--zh-cyan);     /* أيقونات الفوتر hover */
  --primary-color: var(--zh-green-dark);             /* الأزرار الرئيسية والروابط */
  --secondary-color: var(--zh-blue-light);             /* hover الأزرار الفرعيه */
  --header-bg-color: var(--zh-indigo);           /* خلفية الترويسه */
  --header-text-color: var(--zh-white);          /* نص الترويسه */
  --sidebar-bg-color: var(--zh-indigo);           /* خلفية القائمة الجانبية للموبايل */
  --sidebar-text-color: var(--zh-white);         /* روابط القائمة الجانبية للموبايل */ 
  --cart-sidebar-bg-color: var(--zh-indigo);    /* خلفية سلة المشتريات في القائمة الجانبية للموبايل */
  --cart-sidebar-text-color: var(--zh-text-color-dark);    /* روابط سلة المشتريات في القائمة الجانبية للموبايل */
  --footer-bg-color: var(--zh-footer-background);           /* خلفية الفوتر */
  --footer-text-color: var(--zh-white);          /* روابط الفوتر */
  --heading-primary-color: var(--zh-lighindigo);     /* <h1> و <h2> */
  --heading-secondary-color: var(--zh-indigo);     /* <h3> */
  --body-text-color: var(--zh-body-color);           /* <p> و <label> */
  --bold-text-color: var(--zh-red);            /* <strong> */
  --muted-text-color: var(--zh-thistle);           /* <small> و <h4>*/
}

/* إعدادات عامة */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  margin: 0;
  padding: 0;
  line-height: 1.6;
  background: url(../images/stars-bg.jpg);
  background-size: cover;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  transition: all 0.6s ease-in-out;
}

body {
  background-color: var(--background-color);
  /* background: repeating-radial-gradient(black, transparent 100px); */
}

/* الأنماط العامة لجميع الاتجاهات */
html[dir="rtl"] textarea,
html[dir="rtl"] button,
html[dir="rtl"] strong,
html[dir="rtl"] small,
html[dir="rtl"] input,
html[dir="rtl"] span,
html[dir="rtl"] div,
html[dir="rtl"] li,
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] h5,
html[dir="rtl"] h6,
html[dir="rtl"] p,
html[dir="rtl"] a,
html[dir="rtl"] body {
  font-family: var(--zh-font-family-ar);
}

html[dir="ltr"] textarea,
html[dir="ltr"] button,
html[dir="ltr"] strong,
html[dir="ltr"] small,
html[dir="ltr"] input,
html[dir="ltr"] span,
html[dir="ltr"] div,
html[dir="ltr"] li,
html[dir="ltr"] h1,
html[dir="ltr"] h2,
html[dir="ltr"] h3,
html[dir="ltr"] h4,
html[dir="ltr"] h5,
html[dir="ltr"] h6,
html[dir="ltr"] p,
html[dir="ltr"] a,
html[dir="ltr"] body {
  font-family: var(--zh-font-family-en);
}

html[dir="rtl"] .icon-direction {
  transform: rotate(90deg);
}

html[dir="ltr"] .icon-direction {
  transform: rotate(-90deg);
}

html[dir="rtl"] .direction {
  direction: rtl;
}

html[dir="ltr"] .direction {
  direction: ltr;
}

html[dir="rtl"] .language-option,
html[dir="rtl"] .flex-direction {
  flex-direction: row;
}

html[dir="ltr"] .language-option,
html[dir="ltr"] .flex-direction {
  flex-direction: row;
}

html[dir="rtl"] .direction-open-nav {
  right: -300px;
  transition: right 0.6s ease-in-out;
}

html[dir="ltr"] .direction-open-nav {
  left: -300px;
  transition: left 0.6s ease-in-out;
}

html[dir="rtl"] .nav-drawer.open {
  right: 0px;
}

html[dir="ltr"] .nav-drawer.open {
  left: 0;
}

html[dir="rtl"] .direction-open-sid {
  left: -350px;
  transition: left 0.6s ease-in-out;
}

html[dir="ltr"] .direction-open-sid {
  right: -350px;
  transition: right 0.6s ease-in-out;
}

html[dir="rtl"] .mini-cart-sidebar.open {
  left: 0;
}

html[dir="ltr"] .mini-cart-sidebar.open {
  right: 0;
}

html[dir="rtl"] .btn-clear-all {
  margin-left: auto;
}

html[dir="ltr"] .btn-clear-all {
  margin-right: auto;
}

html[dir="rtl"] .toggle-password {
  left: 8px;
}

html[dir="ltr"] .toggle-password {
  right: 8px;
}

html[dir="rtl"] .btn-contact {
  direction: ltr;
}

html[dir="ltr"] .btn-contact {
  direction: rtl;
}

h3, h2, h1, h4, h5, h6, a, button, p, li, label, img, span, select, table, .summary-line, .site-footer-wrapper {
    user-select: none;
}

::-webkit-input-placeholder,
input::-webkit-input-placeholder {
    user-select: none;
}

body::-webkit-scrollbar {
  display: none;
}
.mini-cart-items, .nav-drawer-links, .additional-tags-container, .scroll {
    display: block;
    height: 500px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) #f4f4f41c;
}

.mini-cart-items::-webkit-scrollbar-thumb:hover,
.nav-drawer-links::-webkit-scrollbar-thumb:hover,
.additional-tags-container::-webkit-scrollbar-thumb:hover,
.scroll::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--secondary-color), var(--primary-color));
}

h1, h2 {
   color: var(--heading-primary-color) !important;
}

h3,
h3 span.h3 {
   color: var(--heading-secondary-color) !important;
}

small, h4, h5, h6 {
  color: var(--muted-text-color) !important;
}

p, label {
  color: var(--body-text-color) !important;
}

strong {
  color: var(--bold-text-color) !important;
}

.contact-icon a {
  color: var(--primary-color) !important;
}

  h3 {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}
/* ************************************************************************* */
/* ********** buttons ********** */
/* ************************************************************************* */
.btn-sm {
  padding: 4px 8px !important;
  font-size: 11px !important;
  margin-bottom: 0px !important;
}

.btn-lg-3 {
  padding: 5px 8px !important;
  font-size: 11px !important;
  margin-bottom: 0px !important;
}

.place-order-btn,
.btn-contact,
.btn-detail,
.btn-prudact,
.btn-card {
  border: none;
  border-radius: 4px;
  padding: 1px 1px;
  text-transform: math-auto;
}

.btn-prudact {
  width: 50%;
  height: 5vh;
  font-size: 0.7em;
}

.btn-detail,
.btn-prudact,
.offer-btn,
.place-order-btn,
.btn-contact,
.btn-card {
  font-size: 0.9em;
  white-space: nowrap;
}

.store-name-header {
  font-size: 0.4em;
  color: goldenrod;
}

/* ************************************************************************* */
/* ********** Header and Navigation ********** */
/* ************************************************************************* */
.mobile-auth-status {
  display: none;
}

header {
  background-color: var(--header-bg-color);
  color: var(--header-text-color);
  padding: 0;
  height: 10vh;
  box-shadow: var(--zh-box-shadow-lg);
  position: sticky;
  top: 0;
  z-index: 100;
}

header .container {
    height: 10vh;
    display: flex;
    justify-content: space-between;
    position: relative;
    align-items: center;
    flex-direction: row;
    box-shadow: 0px 0px 10px -2px gold;
}

.header-right, .header-left {
    width: 25%;
    height: 10vh;
    display: flex;
    margin: 0 10px;
    align-items: center;
    justify-content: space-between;
}

.hamburger-menu-icon {
    width: 20%;
    height: 10vh;
    display: flex;
    background: none;
    border: none;
    color: var(--zh-light);
    font-size: 1.8em;
    cursor: pointer;
    padding: 5px;
    /* margin: 0 15px; */
    z-index: 1005;
    align-items: center;
}

.hamburger-menu-icon span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--zh-light);
  margin: 5px 0;
  transition: all 0.3s ease-in-out;
}

/* .hamburger-menu-icon svg.icon {
  width: 24px;
  height: 24px;
  fill: var(--icon-header-color, var(--zh-light));
  transition: fill 0.3s ease, transform 0.3s ease;
}

.cart-icon:hover span#cart-count {
  color: var(--icon-header-hover-color, gold) !important;
} */

.logo {
  width: 40%;
  height: 10vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo a {
  display: flex;
  height: 10vh;
  font-size: 1.8em;
  font-weight: bold;
  color: var(--zh-light);
  text-decoration: none;
  align-items: center;
  justify-content: center;
}

.site-footer-logo img,
.logo img {
  width: 4.2rem !important;
  height: 8vh !important;
  /* border-radius: var(--zh-border-radius-r); */
}

.header-search {
    position: relative;
    display: flex;
    align-items: center;
    width: 50%;
    height: 10vh;
    justify-content: center !important;
}

.modal-search input, .header-search input {
    position: relative;
    width: 70%;
    height: 4.6vh;
    padding: 8px 10px;
    border: var(--zh-border);
    border-radius: var(--zh-border-radius-sm);
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: inset 0px 0px 3px rgba(0, 0, 0, 0.25), inset 0px 1px 3px rgba(0, 0, 0, 0.7), 0px 1px 0px rgba(255, 255, 255, 0.03);
}

.header-search input {
    border: var(--header-bg-color) !important;
}


.header-search button {
    /* display: contents; */
    position: relative;
    /* top: 25%; */
    /* transform: translateY(-50%); */
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
    color: #666;
    transition: color 0.2s;
    touch-action: manipulation;
}

html[dir="rtl"] .header-search button {
  left: 30px;
}

html[dir="ltr"] .header-search button {
  right: 30px;
}

/* html[dir="rtl"] .header-search button i.btn-search-before {
  left: 30px;
}

html[dir="ltr"] .header-search button i.btn-search-before {
  right: 30px;
} */

.header-search button i.btn-search-before {
  cursor: pointer;
  transition: color 0.8s;
  position: relative;
  transition: left 0.6s ease-in-out;
}

.header-search .clear-search {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 5px;
  cursor: pointer;
  color: #999;
  font-size: 16px;
  display: none;
  transition: color 0.2s;
}

.header-search .clear-search:hover {
  color: #666;
}

.header-search input:not(:placeholder-shown)+.clear-search {
  display: block;
}

.cart-icon, .wishlist-icon {
    display: flex;
    width: 15%;
    height: 10vh;
    margin: 0 10px;
}

.cart-icon a, .wishlist-icon a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: max-content;
    height: 100%;
    cursor: pointer;
    text-decoration: none;
}

html[dir="rtl"] .cart-icon a i {
  transform: matrix(-1, 0, 0, 1, 0, 0);
}

.cart-icon i {
  /* width: 22px; */
  height: 24px;
  border: none;
  /* fill: var(--icon-header-color, var(--zh-light)); */
  /* cursor: pointer; */
  z-index: 1005;
  transition: fill 0.3s ease, transform 0.3s ease;
}

.cart-icon #cart-count, .wishlist-icon .wishlist-count {
    position: relative;
    top: -18px;
    padding: 2px 6px 0px;
    background-color: var(--zh-red);
    color: var(--header-text-color) !important;
    font-size: 0.7em;
    border-radius: 5px;
    display: inline-flex;
    box-shadow: 0 2px 6px rgba(229, 57, 53, 0.5);
    animation: pop 0.3s ease;
    justify-content: center;
    align-items: center;
}

@keyframes pop {
  0%   { transform: scale(0.5); }
  70%  { transform: scale(1.2); }
  100% { transform: scale(1);   }
}

.search-results-header {
    display: flex;
    font-weight: bold;
    text-align: center;
    padding: 15px;
    background-color: transparent;
    color: var(--primary-color);
    border-radius: 8px;
    font-size: 1.8rem;
    letter-spacing: 1px;
    text-shadow: 0px 0px 30px var(--secondary-color);
    align-items: center;
    justify-content: space-evenly;
}

.search-results-header h2 {
  margin: 0;
  font-size: 1.5em;
}

.search-results-header strong {
  color: var(--primary-color);
}

.no-results-message {
  text-align: center;
  padding: 30px;
  background-color: #f8f9fa;
  border-radius: 8px;
  margin: 20px auto;
  max-width: 600px;
}

.no-results-message p {
  margin: 10px 0;
  color: #666;
}

.no-results-message ul {
  text-align: right;
  list-style: none;
  padding: 0;
  margin: 15px 0;
}

.no-results-message li {
  margin: 5px 0;
  color: #666;
}

.no-results-message li:before {
  content: "•";
  color: var(--primary-color);
  margin-left: 8px;
}

.btn-clear-search {
  display: inline-block;
  padding: 4px 8px;
  background-color: #f8f9fa;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: #666;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-clear-search:hover {
  background-color: #e9ecef;
  color: #333;
  text-decoration: none;
}

/* ************************************************************************* */
/* ********** Main side menu ********** */
/* ************************************************************************* */
.mini-cart-sidebar,
.nav-drawer {
  position: fixed;
  top: 0;
  max-width: 85%;
  height: 100%;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
  z-index: 1004;
  transition: right 0.6s ease-in-out;
  display: flex;
  flex-direction: column;
  padding-top: 0;
}

.nav-drawer {
  width: 280px;
  background-color: var(--sidebar-bg-color);
  color: var(--sidebar-text-color);
}

.mini-cart-sidebar {
  width: 320px;
  background-color: var(--cart-sidebar-bg-color);
  color: var(--cart-sidebar-text-color);
}

.mini-cart-header,
  /* display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 6px 20px;
  background-color: var(--primary-color);
  flex-direction: row-reverse;
} */

.nav-drawer-header {
  display: flex;
  padding: 5px 15px;
 justify-content: flex-end;
  background-color: var(--primary-color);
}

.nav-drawer-header {
  flex-direction: row;
}

.mini-cart-header{
  flex-direction: row-reverse;
}

element.style {
  position: relative;
  top: -50px;
  display: flex;
  flex-direction: row;
  align-items: center;
}

.thumbnail-user {
  width: 86%;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
}

.thumbnail-user a {
  padding: 4px 6px;
  height: 4vh;
}

.thumbnail-user a img {
  width: 22px;
  height: 3.3vh;
  position: relative;
  border-radius: 50vmax;
}

/* .thumbnail-user .content {
    padding: 0 5px;
} */

.thumbnail-user span a {
  text-decoration: none;
  color: inherit;
  background: none;
  border: none;
}

.close-nav-drawer-btn,
.close-mini-cart-btn {
  width: 22px;
  height: 22px;
  border-radius: var(--zh-border-radius-r);
  display: flex;
  cursor: pointer;
  font-size: 25px;
  background-color: transparent;
  border: none;
  color: var(--zh-light);
  align-items: center;
  justify-content: center;
  transition: 0.4s ease-in-out;
  z-index: 99;
}

.close-nav-drawer-btn:hover,
.close-mini-cart-btn:hover {
  background-color: var(--zh-pink);
  border: none;
  color: var(--primary-color);
  box-shadow: var(--zh-box-shadow-lg);
}

.nav-drawer-links {
  list-style: none;
  padding: 0 20px;
  margin: 0;
  flex-grow: 1;
}

.dropdown-toggle,
.nav-drawer-links li .a {
    display: flex;
    padding: 8px 4px;
    text-decoration: none;
    /* font-size: var(--zh-font-size-lg); */
    transition: background-color 0.3s ease;
    align-items: baseline;
}
.dropdown-toggle {
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
}

.nav-drawer-links-li-a .dropdown-title,
.nav-drawer-links li .a span {
  position: relative;
  top: -2px;
  margin: 0 5px;
  font-size: var(--zh-font-size-lg);
  color: var(--sidebar-text-color);
}

.nav-drawer-links-li-a {
    display: flex;
    color: var(--sidebar-text-color);
    align-items: baseline;
}

.nav-drawer-links li .WishlistCount,
.nav-drawer-links li .CartCount {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wishlist-count,
#navDrawerCartCount {
  font-weight: 700;
  color: var(--bold-text-color);
}

.wishlist-num span,
.cart-num span {
  margin: 0 1px !important;
  font-weight: 400;
  color: var(--icon-header-color) !important;
}

.nav-drawer-links li:last-child .a {
  border-bottom: none;
}

.nav-drawer-links li .a:hover {
  background-color: rgb(18 89 160);
}

.nav-drawer-links .dropdown-menu:hover {
  background-color: rgb(18 89 160);
  border-radius: 6px;
}

.active-drawer-link {
    background-color: var(--zh-focus-ring-color);
    color: var(--zh-white) !important;
    border-radius: 6px;
    padding: 8px 12px;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* تنسيق القوائم المنسدلة */
.dropdown-menu {
  position: relative;
}

/* .dropdown-title {
  font-size: 16px;
} */

.dropdown-arrow {
  font-size: 0.8em;
  transition: transform 0.3s ease;
}

.dropdown-content {
    display: none;
    background-color: var(--primary-color);
    padding: 0;
    margin: 0;
    list-style: none;
    border-radius: 4px;
    box-shadow: -1px 1px 6px 2px #7ffffb5e;
}


.dropdown-menu.active .dropdown-content {
  display: block;
}

.dropdown-content li a {
  padding: 8px 25px;
  display: block;
  color: var(--sidebar-text-color);
  text-decoration: none;
  transition: background-color 0.2s;
}


/* ========================================= */

.nav-drawer-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: cell;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1003;
}

.nav-drawer-overlay.open {
  display: block;
}

/* ************************************************************************* */
/* ********** Basket side menu ********** */
/* ************************************************************************* */
.mini-cart-header h3 {
  width: 87%;
  margin: 0;
  font-size: 1em;
  text-align: center;
}

.mini-cart-items {
  flex-grow: 1;
  overflow-y: auto;
  padding: 0 8px;
}

.mini-cart-item {
  display: flex;
  align-items: center;
  padding: 8px 0;
  margin: 5px;
  border: none;
  border-radius: 4px;
  border-bottom: 1px solid #eee;
  background-color: var(--zh-white) !important;
  flex-direction: row-reverse;
  justify-content: space-between;
  box-shadow: 1px 1.5px 3px 0.5px #0c470a80;
}

.mini-cart-item:last-child {
  border-bottom: none;
}

.mini-cart-item img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 4px;
  margin-inline-end: 10px;
}

.mini-cart-item-details {
  display: flex;
  flex-grow: 1;
  flex-direction: column;
  padding: 0 8px;
}

.title-remo {
  width: 100%;
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
}

.mini-cart-item-details h4 {
  width: 86%;
  text-align: center;
  margin: 0 0 3px;
  font-size: var(--zh-font-size-lg);
  color: var(--cart-sidebar-bg-color) !important;
}
.remove-item-btn,
.mini-cart-item-remove {
  background: none;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  padding: 1px;
  font-size: var(--zh-font-size-xl);
  opacity: 0.7;
  transition: opacity 0.3s ease;
}
.remove-item-btn:hover,
.mini-cart-item-remove:hover {
  background-color: #edf2f7b3;
}

.meta-price {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: baseline;
}

.mini-cart-item-details .item-meta {
  font-size: var(--zh-font-size-sm);
  color: var(--cart-sidebar-text-color) !important;
}

.mini-cart-item-details .item-price {
    font-weight: var(--zh-font-weight-xxl);
    color: var(--bold-text-color);
    font-size: var(--zh-font-size-sm);
    white-space: nowrap;
}

.mini-cart-footer {
  padding: 10px 15px;
  border-top: 1px solid #eee;
  flex-direction: column;
}

.mini-cart-total {
  width: 100%;
  height: 7vh;
  padding: 0 14px;
  border-radius: 4px;
  background-color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1em;
  flex-direction: row;
  box-shadow: inset 0px 0px 6px 1px #00000080;
}

.mini-cart-total strong {
  color: var(--bold-text-color);
  font-size: var(--zh-font-size-xxl);
}

.mini-cart-total span {
  font-weight: var(--zh-font-weight-xxl);
  font-size: var(--zh-font-size-3xl);
}

.mini-cart-actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.btn-view-cart {
  text-decoration: none;
  text-align: center;
  font-weight: bold;
  margin-top: 10px;
  width: 100%;
  touch-action: manipulation;
  display: inline-block;
  outline: none;
  font-size: var(--zh-font-size-s);
  box-sizing: border-box;
  border-radius: 0.3em;
  height: 2.75em;
  line-height: 2.5em;
  /* text-transform: uppercase; */
  padding: 0 1em;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(80, 80, 80, 0.4),
    inset 0 -2px 5px 1px rgba(66, 66, 66, 1),
    inset 0 -1px 1px 3px rgba(240, 240, 240, 1);
  background-image: linear-gradient(160deg,
      #6a6a6a,
      #888888,
      #f0f0f0,
      #999999,
      #6a6a6a);
  color: var(--zh-orange-light) !important;
  text-shadow: 0 2px 2px rgba(240, 240, 240, 1);
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  background-size: 100% 100%;
  background-position: center;
}

.btn-view-cart:focus,
.btn-view-cart:hover {
  background-size: 150% 150%;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23),
    inset 0 -2px 5px 1px #777777, inset 0 -1px 1px 3px rgba(240, 240, 240, 1);
  border: 1px solid rgba(112, 112, 112, 0.6);
  color: rgba(50, 50, 50, 0.8);
}
.offer-btn:active,
.btn-checkout-mini:active,
.btn-view-cart:active {
    transform: scale(0.95);
}
.offer-btn span,
.btn-checkout-mini span,
.btn-view-cart span, 
.offer-btn i,
.btn-checkout-mini i,
.btn-view-cart i {
    pointer-events: none;
}
.offer-btn,
.btn-checkout-mini {
  text-decoration: none;
  text-align: center;
  font-weight: bold;
  margin-top: 10px;
  width: 100%;
  touch-action: manipulation;
  display: inline-block;
  outline: none;
  font-size: var(--zh-font-size-s);
  box-sizing: border-box;
  border-radius: 0.3em;
  height: 2.75em;
  line-height: 2.5em;
  /* text-transform: uppercase; */
  padding: 0 1em;
 box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(110, 80, 20, 0.4),
    inset 0 -2px 5px 1px rgba(139, 66, 8, 1),
    inset 0 -1px 1px 3px rgba(250, 227, 133, 1);
  background-image: linear-gradient(160deg,
      #a54e07,
      #b47e11,
      #fef1a2,
      #bc881b,
      #a54e07);
  color: rgb(120, 50, 5);
  text-shadow: 0 2px 2px rgba(250, 227, 133, 1);
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  background-size: 100% 100%;
  background-position: center;
}

.offer-btn:focus,
.offer-btn:hover,
.btn-checkout-mini:focus,
.btn-checkout-mini:hover {
  background-size: 150% 150%;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23),
    inset 0 -2px 5px 1px #b17d10, inset 0 -1px 1px 3px rgba(250, 227, 133, 1);
  border: 1px solid rgba(165, 93, 7, 0.6);
  color: rgba(120, 50, 5, 0.8);
}

.wishlist-btn {
    border: none;
    background-color: transparent;
    margin-top: 10px;
    display: flex;
    font-size: var(--zh-font-size-s);
    border-radius: 0.3em;
    height: 2.75em;
    padding: 0 2px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(80, 80, 80, 0.4), inset 0 -1px 4px -1px rgba(66, 66, 66, 1), inset 0 -1px 1px 3px rgba(240, 240, 240, 1);
    cursor: pointer;
}

.offer-code-badge,
.submit-review-btn,
.btn-primary,
.add-review-btn,
.btn-contact.btn-checkout-mini,
.wishlist-btn,
.btn-card.btn-view-cart,
.btn-prudact.btn-checkout-mini,
.btn-prudact.btn-view-cart,
.btn-detail.btn-view-cart {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-footer .btn-checkout-mini,
.place-order-btn.btn-checkout-mini,
.btn-detail.btn-checkout-mini,
.btn-card.btn-checkout-mini {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-footer .btn-checkout-mini span,
.place-order-btn.btn-checkout-mini span,
.btn-detail.btn-checkout-mini span,
.btn-card.btn-checkout-mini span {
    color: rgb(120, 50, 5) !important;
}

.mini-cart-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: cell;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1003;
}

.mini-cart-overlay.open {
  display: block;
}

.mini-cart-empty-message {
  text-align: center;
  padding: 20px;
  color: #666;
  justify-content: center;
}

.mini-cart-empty-message .content-message {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#bundleNotFound a.btn-detail.btn-checkout-mini,
#wishlistEmpty .content-message a.btn-prudact.btn-checkout-mini,
#empty-cart-message .content-message a.btn-card.btn-checkout-mini,
.mini-cart-empty-message .content-message a {
   width: 150px;
   height: 5vh;
   font-size: 11px;
}

#bundleNotFound .content-message i.icon-offers-sidebar::before,
#wishlistEmpty .content-message i.btn-wishlist-before::before,
#empty-cart-message .content-message i.icon-add-cart::before,
.mini-cart-empty-message i.icon-add-cart::before {
  width: 70px !important;
  height: 70px !important;
  background-color: gold !important;
  opacity: 0.4;
}

/* ********************************************/
/* ********** User Profile Formats ********** */
/* ********************************************/

.user-auth-status {
  width: 40%;
  height: 10vh;
  position: relative;
  display: flex;
  align-items: center;
  cursor: pointer;
  justify-content: center;
  flex-direction: row;
}
i,
.user-auth-status a {
    height: stretch;
    display: flex;
    align-items: center;
}

.user-auth-status a img {
  width: 30px;
  height: 30px;
  border-radius: 50vmax;
}

.user-auth-status .name {
    cursor: pointer;
    display: inline;
    padding: 4px 8px;
    font-size: 12px;
}

/* .user-auth-status a {
    height: 10vh;
    display: flex;
    align-items: center;
} */

.user-auth-status .name a {
  all: unset;
  cursor: pointer;
  display: inline;
}

.user-dropdown {
  position: relative;
  display: inline-block;
  z-index: 1001;
}

.user-dropdown-avatar,
.user-auth-status .user-avatar {
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--icon-header-color, var(--zh-light));
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  width: 35px;
  height: 35px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  box-shadow: inset 0px 2px 4px rgba(var(--cardBase), 0.95),
    inset 0px 2px 40px rgba(var(--cardbg), 0.95);
  justify-content: center;
  cursor: pointer;
  filter: grayscale(3%);

  transition: all 0.3s ease;
  position: relative;
}

.user-dropdown-avatar:hover,
.user-avatar:hover {
  filter: grayscale(75%);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border: 2px solid var(--icon-header-hover-color, gold);
}

.avatar-initials {
  color: white;
  font-weight: bold;
  font-size: 13px;
  /* text-transform: uppercase; */
}

.user-dropdown-menu {
  position: absolute;
  top: 110%;
  right: -68px;
  min-width: 180px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.13);
  z-index: 1000;
  display: none;
  flex-direction: column;
  padding: 0 0.5rem 0;
}

.user-dropdown-menu.show {
  display: flex;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.hide-on-desktop {
  display: none !important;
}

.user-dropdown-header {
  display: flex;
  padding: 15px;
  border-bottom: 1px solid #f0f0f0;
  text-align: center;
  flex-direction: column;
  align-items: center;
}

.user-dropdown-avatar {
  width: 60px;
  height: 60px;
}

.avatar-initials-large {
  color: white;
  font-weight: bold;
  /* text-transform: uppercase; */
  font-size: 28px;
}

.user-avatar-image,
.user-avatar-image-large {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.user-dropdown-header h4 {
  margin: 0 0 5px;
  color: #333;
  font-size: 14px;
}

.user-dropdown-header p {
  margin: 0;
  color: #666;
  font-size: 12px;
}

.user-dropdown-info h4 {
  text-transform: capitalize;
}

.user-dropdown-content {
  padding: 8px 0;
}

.user-dropdown-menu .dropdown-item {
  padding: 2px 10px;
  color: #333;
  cursor: pointer;
  transition: background 0.2s;
  font-weight: 600;
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: background-color 0.2s ease;
  font-size: 14px;
  white-space: nowrap;
}

.currency-switcher {
  width: 40%;
  height: 10vh;
  position: relative;
  display: inline-block;
  z-index: 1000;
}

.currency-switcher-container {
  width: 100%;
  height: 10vh;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logout-item {
  color: #dc3545 !important;
  transition: all 0.3s ease;
}

.logout-item:hover span,
.logout-item:hover {
  background-color: #fff5f5 !important;
  color: red !important;
  transition: all 0.5s ease;

}

.logout-item:hover svg {
  fill: red !important;
  transition: all 0.2s ease;

}

.dropdown-item svg {
    margin: 0 5px;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    fill: var(--icon-header-color, var(--zh-light));
}

.dropdown-item span {
color: var(--primary-color) !important;
}

.user-dropdown-menu .dropdown-divider {
  height: 1px;
  background: #eee;
  margin: 4px 0;
  border: none;
}

/* ===== Modal Styles ===== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  backdrop-filter: blur(4px);
}

.modal-content {
    display: flex;
    position: relative;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9ff 100%);
    border-radius: 20px;
    padding: 10px 20px;
    min-width: 50%;
    width: max-content;
    margin: 0 auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15),
    0 15px 35px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    transform: scale(0.9);
    animation: modalAppear 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

/* تأثير ظهور النافذة المنبثقة */
@keyframes modalAppear {
    from {
    transform: scale(0);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-content::-webkit-scrollbar {
  display: none;
}

.modal-header {
    width: 100%;
    flex-wrap: nowrap;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-radius: 4px;
}

.title-modal-h3 {
  width: 100%;
  text-align: center;
}

.modal-header h2,
.modal-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.close-modal, .modal-close {
    position: absolute;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    align-items: center;
    z-index: 101;
    pointer-events: auto;
}

.modal-close:hover,
.close-modal:hover {
    box-shadow: 0px 0px 7px 3px var(--zh-red);
    background-color: var(--zh-red) !important;
}

.profile-modal .modal-close {
top: 10px;
}


/* ===== Profile Modal Styles ===== */
.profile-modal {
  max-width: 450px;
  width: 90%;
}

.profile-content {
  width: 100%;
  display: flex;
  padding: 20px;
  margin-top: -51px;
  background-color: azure;
  border-radius: 6px;
  border: 1px solid #9cfafa;
  box-shadow: 0px 0px 8px 1px #adff2f4f;
  flex-direction: column;
  align-items: center;
}

.profile-avatar-section {
    position: relative;
    display: inline-block;
    margin-top: 15px;
    z-index: 999;
}

.user-avatar,
.profile-avatar {
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  margin: 0 auto 15px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.change-avatar-btn {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: #333;
  color: white;
  border: 2px solid white;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.change-avatar-btn:hover {
  background-color: #555;
  transform: scale(1.1);
}

.change-avatar-btn svg {
    width: 14px;
    height: 14px;
    fill: var(--zh-white);
}

.profile-tabs {
  width: 100%;
  display: flex;
  border-bottom: 2px solid #f0f0f0;
  margin: 20px 0 5px 0;
  flex-direction: row;
}

.modal-header .profile-modal,
.review-form .modal-header,
.profile-modal .modal-header,
.profile-modal .review-form,
.profile-content .tab-content,
.modal-header .review-form {
  width: 100%;
  padding-top: 0px;
}

.tab-btn {
  flex: 1;
  padding: 12px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  color: var(--muted-text-color);
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
}

.tab-btn.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
  font-weight: 600;
}

.tab-btn:hover {
  color: var(--primary-color);
  background-color: var(--secondary-color);
}

.tab-pane.active {
  display: block;
}

.tab-pane {
  display: none;
}

.profile-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  border-bottom: 1px solid #f0f0f0;
}

.info-item:last-child {
  border-bottom: none;
}

.info-item label {
    font-size: 14px;
    font-weight: 600;
    width: 47%;
}

.info-item span {
  font-size: 14px;
    width: 53%;
    flex: 1;
    text-align: justify;
}

/* ===== Form Styles for Profile Edit ===== */
.form-group {
  margin-bottom: 10px;
}

.form-group label {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
  padding: 0 5px;
}

.ts-control > * {
    vertical-align: baseline;
    display: inline-block;
    margin: 0 10px;
    color: black;
    font-weight: 600;
    font-size: medium;
}

.password-input-container {
  position: relative;
  margin-bottom: 10px;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 8px;
    border: 2px solid var(--zh-border-color);
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.toggle-password {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
}

.toggle-password svg:hover {
  fill: #28cbeb;
}

.form-group select:focus,
.form-group textarea:focus,
.form-group input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(138, 43, 226, 0.2);
    outline: none;
}

.form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 10px;
}

#submit-review,
.add-review-btn,
.btn-primary {
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
}

    #submit-review,
    .language-options .language-option,
    .nested-submenu .currency-option,
    .products-summary-table th,
    .cart-table th,
    .add-review-btn,
    .btn-primary {
         color: var(--secondary-color);
         background-color: var(--primary-color);
         touch-action: manipulation;
     }

     #submit-review:hover,
    .language-options .language-option:hover,
    .nested-submenu .currency-option:hover,
    .products-summary-table th:hover,
    .cart-table th:hover,
    .add-review-btn:hover,
    .btn-primary:hover {
      color: var(--primary-color);
      background: var(--secondary-color);
      border: 1px solid var(--primary-color);
    }

    .currency-option:hover .currency-name {
        color: var(--primary-color) !important;
    }

    .btn-primary svg.bi-reorder path {
    margin: 0 6px;
    stroke: var(--secondary-color);
    }

    /* .add-review-btn svg, */
    .btn-rate-now svg,
    .btn-primary svg.bi-printer {
    width: 18px;
    height: 18px;
    margin: 0 6px;
    fill: var(--secondary-color);
    }

    .add-review-btn:hover svg,
    .btn-rate-now:hover svg,
    .btn-primary:hover svg.bi-printer {
    fill: var(--primary-color);
    }

    .btn-primary:hover svg.bi-reorder path {
    stroke: var(--primary-color);
    }

/* Check password. */
.password-strength-meter {
  height: 2px;
  width: 100%;
  background: #eee;
  border-radius: 3px;
  transition: width 0.3s;
}

/* Orders Modal Styles */
.orders-content {
  width: 100%;
  padding: 0;
  text-align: center;
  color: #666;
}

/* .orders-modal {
    max-width: 550px;
    max-height: 85vh;
} */

.orders-list {
    list-style: none;
    padding: 0;
    margin-top: 15px;
    max-height: 65vh;
    overflow-y: auto;
    padding-left: 4px;
}

.orders-list::-webkit-scrollbar {
  width: 6px;
}

.orders-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.orders-list::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}

.orders-list::-webkit-scrollbar-thumb:hover {
  background: #aaa;
}

.order-list-item-card {
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin: 10px;
    box-shadow: 0px 3px 7px rgb(0 0 0 / 42%);
    transition: box-shadow 0.2s;
    list-style-type: none;
}

.order-list-item-card:hover {
    box-shadow: 0px 3px 7px rgb(90 206 75 / 42%);
}

.order-card-header,
.order-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 10px;
}

.order-card-header {
  background-color: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
  border-radius: 8px 8px 0 0;
}

.order-id {
    font-size: 13px;
    font-weight: bold;
    color: var(--bold-text-color);
}

.order-info-group {
    width: 55%;
    display: flex;
    align-items: center;
    padding: 4px 0;
    justify-content: space-between;
}

.order-date {
  font-size: 11px;
  color: #666;
}

.view-details-link {
    display: flex;
    font-size: 12px;
    color: var(--primary-color);
    font-weight: 600;
    align-items: center;
    gap: 4px;
}

.order-list-item-card:hover .view-details-link {
    color: var(--zh-blue);
}

.order-total-info {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
}

.order-card-body {
  padding: 15px;
}

.order-product-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9em;
}

.order-product-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    padding: 4px 0;
    justify-content: space-between;
}

.order-product-item:not(:last-child) {
  border-bottom: 1px dashed #eee;
}

.order-product-thumbnail {
  width: 40px;
  height: 40px;
  object-fit: contain;
  /* للحفاظ على أبعاد الصورة */
  border-radius: 4px;
  border: 1px solid #f0f0f0;
}

.product-item-link {
    width: 55%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-item-name {
  font-weight: 500;
}

.product-item-subtotal {
  font-size: 0.9em;
  color: var(--body-text-color);
  white-space: nowrap;
  /* لمنع انكسار السطر */
}

.order-card-footer {
  border-top: 1px solid #e9ecef;
  font-weight: bold;
}

.order-total-amount {
  font-size: 1em;
}

.order-list-item {
  background-color: #fff;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  margin-bottom: 10px;
  padding: 15px;
  transition: box-shadow 0.2s;
}

.order-list-item:hover {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.order-list-item:last-child {
  margin-bottom: 0;
}

.order-summary,
.order-details-right {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.order-details-right {
  margin-bottom: 0;
}

.order-list-item span {
  margin-left: 15px;
}

.order-list-item strong {
  color: #495057;
}

.order-status-badge {
    padding: 3px 6px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    min-width: 60px;
    color: white;
}

.order-status-badge.new {
  background-color: #263c5c;
}

.order-status-badge.confirmed {
  background-color: #17a2b8;
}

.order-status-badge.processing {
  background-color: #ffc107;
  color: #333;
}

.order-status-badge.ready_for_pickup {
  background-color: #fd7e14;
}

.order-status-badge.shipped {
  background-color: #fd7e14;
}

.order-status-badge.delivered {
  background-color: #28a745;
}

.order-status-badge.cancelled {
  background-color: #dc3545;
}

.order-status-badge.pending {
  background-color: #ffc107;
  color: #333;
}

.order-status-badge.approved {
  background-color: #28a745;
}

.order-status-badge.rejected {
  background-color: #dc3545;
}

.order-status-badge.picked_up {
  background-color: #17a2b8;
}

.order-status-badge.returned {
  background-color: #28a745;
}

.order-status-badge.refunded {
  background-color: #2ecc71;
}

/* ===== Tracking Section Styles ===== */
.tracking-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.tracking-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

.tracking-header svg {
  width: 28px;
  height: 28px;
  stroke: white;
}

.tracking-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.tracking-info {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 15px;
}

.tracking-info p {
  margin: 8px 0;
  font-size: 14px;
}

.tracking-info strong {
  color: rgba(255, 255, 255, 0.9);
}

.tracking-number {
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 1px;
}

.btn-track {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  color: #667eea;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 15px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn-track:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-track svg {
  width: 16px;
  height: 16px;
  stroke: #667eea;
}


.orders-content .loader-spinner {
  text-align: center;
  margin: 20px 0;
}

.error-msg {
  color: #dc3545;
  text-align: center;
  padding: 20px;
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  border-radius: 5px;
  margin: 10px 0;
}

/* لجعل البطاقة كرابط */
a.order-card-link {
  text-decoration: none;
  display: block;
  color: var(--body-text-color);
  /* لجعل الرابط يملأ المساحة */
}

/* لجعل المنتج كرابط */
a.product-item-link {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-grow: 1;
}

/* ========================================================================= 
   New Premium Back to Top Button
========================================================================= */
#zh-back-to-top {
    position: fixed;
    bottom: 145px;
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0px 15px 4px #30303063;
    z-index: 9990;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#zh-back-to-top.active {
  opacity: 0.5;
  visibility: visible;
  transform: translateY(0) scale(1);
}


#zh-back-to-top:hover {
    background: var(--secondary-color);
    transform: scale(1.05);
    box-shadow: 1px 1px 12px 4px rgb(0 0 0 / 31%);
    opacity: 1;
}

#zh-back-to-top svg {
  width: 24px;
  height: 24px;
  fill: var(--secondary-color);
  transition: transform 0.3s ease;
  opacity: 1 !important;
}

#zh-back-to-top:hover svg {
  transform: translateY(-2px);
  fill: var(--primary-color);
  stroke: var(--primary-color);
  stroke-width: 2;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    display: flex;
    text-decoration: none;
    transition: all 0.3s ease;
    opacity: 0;
    justify-content: center;
    align-items: center;
}

html[dir="rtl"] #zh-back-to-top,
html[dir="rtl"] .whatsapp-float {
    left: 20px;
}
html[dir="ltr"] #zh-back-to-top,
html[dir="ltr"] .whatsapp-float {
    right: 20px;
}

.whatsapp-float.show {
  opacity: 1;
  visibility: visible;
}

.whatsapp-float:hover {
  background-color: var(--header-bg-color);
  transform: scale(1.1);
  color: #25d366;
}

.icon-whatsapp-float {
    height: 35px;
}

    .cart-item-actions,
    .quantity-selector,
    .quantity-input-group {
      background-color: var(--zh-white);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 0px;
      border: 1px solid #ccc;
      border-radius: 5px;
      padding: 0;
    }

    .quantity-selector {
      border: none !important;
    }

    .quantity-increase,
    .quantity-decrease,
    .quantity-btn {
      background-color: #eee;
      border: 1px solid #ccc;
      color: #333;
      width: 30px;
      height: 30px;
      font-size: 1.1em;
      cursor: pointer;
      border-radius: 4px;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background-color 0.2s;
    }

    .quantity-btn:hover {
      background-color: #ddd;
    }

    .quantity-btn:disabled {
      opacity: 0.5;
      cursor: not-allowed;
    }

    .cart-item-quantity,
    #quantity,
    #quantityInput {
    width: 52px;
    min-width: 0;
    text-align: center !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 0px !important;
    margin-bottom: 0 !important;
      appearance: textfield !important;
    }

    #quantityInput::-webkit-outer-spin-button,
    #quantityInput::-webkit-inner-spin-button {
      appearance: none;
      margin: 0;
    }

input::-webkit-textfield-decoration-container {
    flex-direction: column;
}

@media (max-width: 768px) {
.whatsapp-float {
    display: flex;
    width: 70px;
    height: 50px;
    bottom: 30px;
    padding: 6px;
}

html[dir="rtl"] .whatsapp-float {
    left: -20px;
    justify-content: flex-start;
}
html[dir="ltr"] .whatsapp-float {
    right: -20px;
    justify-content: flex-start;
}

  .icon-whatsapp-float::before {
    content: "";
    width: 28px !important;
    height: 28px !important;
  }

  .icon-whatsapp-float {
    height: 38px !important;
  }
  
  /* Responsive adjustment for mobile */
  #zh-back-to-top {
      bottom: 130px;
      width: 35px;
      height: 35px;
  }
  html[dir="rtl"] #zh-back-to-top {
      left: 10px;
  }
  html[dir="ltr"] #zh-back-to-top {
      right: 10px;
  }
}
/* ========================================================================= 
             استجابة الترويسة (Mobile/Tablet)
/* ========================================================================= */
@media (max-width: 640px) {
  .modal-content {
    margin: 20px;
    padding: 30px 25px;
    max-width: none;
    width: calc(100% - 40px);
    border-radius: 15px;
  }

  .modal-title {
    font-size: 24px;
    margin-bottom: 25px;
  }

  .product-rating .star {
    font-size: 16px;
  }

  .product-rating .review-count {
    font-size: 12px;
  }

  .star-rating {
    gap: 5px;
    padding: 15px;
  }

  .review-textarea {
    min-height: 100px;
    padding: 15px;
    font-size: 15px;
  }

.close-modal {
    top: -15px;
    width: 35px;
    height: 35px;
}
}

/* تحسينات للشاشات الصغيرة */
@media (max-width: 768px) {
.modal-content {
    margin: 10% auto;
    width: 95%;
    padding: 0.5rem;
}

  .review-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .star-rating .star {
    font-size: var(--zh-font-size-xxxl);
  }

  .message {
    right: 10px;
    left: 10px;
    text-align: center;
  }

}

@media (max-width: 992px) {

  /* على الأجهزة اللوحية والشاشات الأصغر */
  header .container {
    /* gap: 8px; */
    justify-content: space-between;
    padding: 0 10px;
    height: auto;
    flex-wrap: wrap;
  }

  /* .header-search {
    order: 3;
    width: 100%;
    max-width: none;
    height: auto;
    margin: 5px 0 10px;
    padding: 0 10px;
  } */

  span.name a,
  .currency-switcher,
  .custom-language-dropdown {
    display: none !important;
  }

}

@media (max-width: 768px) {

  /* على شاشات الهاتف (تطبيق الترتيب المطلوب) */
  html {
    width: 100%;
    height: 100%;
    left: 0px;
    margin: 0;
    padding: 0;
    overflow: auto;
    position: fixed;
  }

  body {
    width: 100%;
    height: 100% !important;
    position: relative;
  }

  header {
    /* direction: ltr; */
    height: auto;
    padding-bottom: 5px;
  }

  /* Style for Mobile Profile Icon */
  .mobile-auth-status {
    display: flex; /* Make it visible on mobile */
    align-items: center;
    justify-content: center;
    margin: 0 10px;
    cursor: pointer;
    z-index: 1005;
  }

  .mobile-auth-status .user-avatar,
  .mobile-auth-status .user-initials {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1.5px solid var(--zh-white);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--primary-color);
    color: white;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  }

  header .container {
    height: 8vh;
    flex-wrap: nowrap;
    padding: 0 2px;
  }

  /* 1. الهامبرغر - أقصى اليسار */

  /* 2. حالة المستخدم - بجانب الهامبرغر */
 .header-right {
    /* order: 3; */
    width: auto;
    height: 100%;
    margin: 0 4px;
    justify-content: space-between;
}

  .user-dropdown {
    transform: scale(0.7);
  }

  .user-dropdown-menu .dropdown-item {
    height: 4vh;
}

.hamburger-menu-icon {
    position: relative;
    display: flex;
    width: auto;
    height: 8vh;
    align-items: center;
    padding: 0 5px;
}

  .hide-on-mobile {
    display: none !important;
  }
  
  .hide-on-desktop {
    display: flex !important;
  }

  .user-auth-status {
    width: auto;
    height: 8vh;
  }

  .mobile-auth-status a {
    display: flex;
    align-items: center;
  }

  .user-auth-status .name {
    display: none;
}

.user-auth-status a {
    height: 8vh;
}

  .user-auth-status a img,
  .mobile-auth-status.hide-on-desktop a img {
    width: 20px;
    height: 20px;
    border-radius: 50vmax;
  }

  .profile-content {
    padding: 0 15px 15px;
}
.profile-tabs {
    margin: 5px 0;
}

.profile-tabs .tab-btn {
    white-space: nowrap;
    padding: 6px;
}

  .logo {
    width: auto;
    height: 8vh;
    display: flex;
    align-items: center;
    padding-inline-start: 5px;
  }

  .logo a {
    height: 8vh;
  }

  .logo img {
    position: relative;
    width: 2rem !important;
    height: 3vh !important;
    /* top: -4px; */
  }

  .mobile-auth-status {
    width: auto;
    height: 8vh;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .mobile-auth-status .name {
    display: none !important;
  }

  .mobile-auth-status .user-avatar {
    width: 30px;
    height: 30px;
  }

  .header-search {
    /* order: 2; */
    height: 8vh;
    /* width: auto;
    flex-grow: 1;
    margin: 0 5px;
    padding: 0;
    display: flex;
    align-items: center; */
  }

.header-search input {
    padding: 5px;
    font-size: var(--zh-font-size-sm);
}

html[dir="rtl"] .header-search button {
  left: 30px;
  transition: left 0.6s ease-in-out;
}

html[dir="ltr"] .header-search button {
  right: 30px;
  transition: right 0.6s ease-in-out;
}

.header-left {
    /* order: 1; */
    width: auto;
    height: 8vh;
    margin: 0;
    display: flex;
    align-items: center;
}

.cart-icon a {
    justify-content: center;
}

.cart-icon {
    display: flex;
    position: relative;
    width: auto;
    height: 8vh;
    margin: 0px;
    align-items: center;
}

.header-search button.btn-search-before::before {
    width: 12px !important;
    height: 12px !important;
}


  #customLanguageDropdown #languageOptions > .language-option:not(.has-submenu):hover span,
  #customLanguageDropdown #languageOptions > .language-option:not(.has-submenu):active span {
    color: var(--primary-color) !important;
    background: var(--secondary-color);
}

}

@media (max-width: 768px) {
.nav-drawer-links .dropdown-content {
    background-color: var(--secondary-color);
}

  .nav-drawer-links .dropdown-content li a {
    padding: 6px 20px;
    color: #333;
  }

  .nav-drawer-links {
    padding: 10px;
}
.nav-drawer-links li .a,
.dropdown-toggle {
    padding: 5px;
}

  .nav-drawer-links .dropdown-content li a:hover {
    background-color: #a9e8e2;
  }

  /* إضافة مكونات اللغة والعملة إلى القائمة الجانبية على الهاتف */
.nav-drawer .mobile-header-components {
    display: flex;
    position: relative;
    height: 5.2vh;
    padding: 0;
    order: 0;
    justify-content: center;
    align-items: baseline;
}

  .nav-drawer .mobile-header-components .custom-language-dropdown,
  .nav-drawer .mobile-header-components .currency-switcher {
    display: block !important;
    width: 90%;
    height: 5vh;
  }

  .nav-drawer .mobile-header-components .custom-language-dropdown {
    margin: 0;
  }

  .currency-switcher-container {
    height: 5vh;
  }

  .nav-drawer .mobile-header-components .currency-switcher {
    direction: ltr;
    width: 90%;
    height: 5vh;
    background-color: transparent;
    /* border-radius: 8px; */
    padding: 0;
    margin-left: 0px;
  }

  /* تحسين مظهر مبدل اللغة في القائمة الجانبية */
.nav-drawer .mobile-header-components .custom-language-dropdown .selected-language {
    border: 1px solid #aaa;
    padding: 4px 8px;
    margin: 4px;
    line-height: 25px;
    display: flex;
}

  .nav-drawer .mobile-header-components .custom-language-dropdown .language-options {
    top: 96%;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    margin-top: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
  }

  .nav-drawer .mobile-header-components .custom-language-dropdown .language-option {
    padding: 4px 12px;
    transition: background-color 0.2s ease;
  }

  .mini-cart-sidebar,
  .nav-drawer {
    width: 255px;
  }

  .mini-cart-item-details h4,
  .mini-cart-item-details .item-meta,
  .mini-cart-item-details .item-price {
    font-size: var(--zh-font-size);
  }

  .mini-cart-footer {
    padding: 7px;
    border-top: 1px solid #eee;
    flex-direction: column;
    gap: 0px;
  }

  .mini-cart-total span {
    color: var(--zh-red) !important;
    font-size: var(--zh-font-size-sm);
  }

  .dropdown-divider {
  border: 0;
}

.wishlist-icon {
    display: none;
}

html[dir="rtl"] header {
    direction: rtl;
}

  /* html[dir="rtl"] .nav-drawer.open {
    right: 0px;
  } */

  html[dir="rtl"] .direction-open-nav {
    right: -613px;
    transition: right 0.6s ease-in-out;
  }

  /* html[dir="rtl"] .mini-cart-sidebar.open {
    left: 180px;
  } */
  html[dir="rtl"] .cart-icon #cart-count {
    left: 2px !important;
  }

  /* ========================= */
  /* ========================= */
  /* ========================= */
  /* ========================= */
  html[dir="ltr"] header {
    direction: ltr;
  }

html[dir="ltr"] .cart-icon {
    justify-content: center;
}

  html[dir="ltr"] .nav-drawer.open {
    left: 0px;
  }

  html[dir="ltr"] .header-search {
    left: 0px;
  }

  .no-results-message {
    padding: 20px;
    margin: 10px 0 100% 0;
}
}
/* Regional Settings Dropdown Enhancements */
.language-options .language-option.has-submenu,
.dropdown-section-title {
    display: flex;
    padding: 6px;
    font-size: 0.8em;
    background-color: var(--header-bg-color);
    color: var(--header-text-color);
    font-weight: 700;
    /* text-transform: uppercase; */
    user-select: none;
    pointer-events: all;
    align-items: center;
    justify-content: space-between;
}

.currency-switcher-container:hover .currency-symbol {
  color: var(--icon-header-hover-color) !important;
}

.selected-language:hover {
  border-color: #63b3ed !important;
  box-shadow: 0 2px 4px rgba(99, 179, 237, 0.2);
}

.currency-dropdown,
.language-options {
  display: none;
  position: absolute;
  top: 80%;
  /* left: 0; */
  width: max-content;
  border: 1px solid #aaa;
  border-radius: 6px;
  box-shadow: 0 4px 14px 4px rgb(0 0 0 / 49%);
  z-index: 100;
}


.custom-language-dropdown {
    position: relative;
    width: 70%;
    height: 10vh;
    display: flex;
    font-size: 15px;
    justify-content: center;
    align-items: center;
}


.currency-selector, .selected-language {
    display: flex;
    width: max-content;
    border: 1px solid #aaa;
    border-radius: 6px;
    padding: 4px 6px;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07);
    transition: border 0.2s;
    justify-content: space-between;
    user-select: none;
    flex-wrap: nowrap;
}

.language-option, .currency-option {
    padding: 1px 6px;
    transition: background 0.2s;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9em;
    font-weight: 600;
    transition: background-color 0.2s ease;
    justify-content: space-between;
}

.language-option img {
  width: 20px;
}

.custom-language-dropdown.open .language-options {
  display: block;
}

#regionalBtnText {
    margin: 0 5px;
    font-size: var(--zh-font-size-lg);
    font-weight: 600;
    white-space: nowrap;
}

.globe-icon {
    display: inline-block;
    vertical-align: middle;
}

.custom-language-dropdown.regional-settings .language-options {
    min-width: max-content;
}

#currency-options-container.nested-submenu {
    display: none;
    position: absolute;
    min-width: max-content;
    max-height: 180px;
    overflow-y: auto;
    top: 90%;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    margin-top: 5px;
    box-shadow: 0px 0px 20px 5px rgb(0 0 0 / 44%);
    z-index: 9999;
}

.submenu-title {
    display: flex;
    align-items: center;
    gap: 8px; 
}


/* ========================================= */
/* ===== Nested Submenu Styles (Multi-level Categories) ===== */
/* ========================================= */

/* Container for items that have submenus */
.has-submenu {
  position: relative;
}

.has-submenu  .submenu-toggle {
    display: flex;
    justify-content: space-between;
}

.has-submenu:hover .submenu-toggle,
.has-submenu.active .submenu-toggle,
.has-submenu .submenu-toggle:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color) !important;
}

/* Submenu toggle arrow - rotated to point right/left */
.submenu-arrow {
  display: flex;
  align-items: center;
  margin-inline-start: 8px;
}

.submenu-arrow svg {
  width: 10px;
  height: 10px;
  transition: transform 0.3s ease;
}

/* In RTL, arrow points left; in LTR, arrow points right */
html[dir="rtl"] .submenu-arrow svg {
  transform: rotate(90deg);
}

html[dir="ltr"] .submenu-arrow svg {
  transform: rotate(-90deg);
}

/* Nested submenu content */
li ul li .submenu-content {
    display: none;
    position: absolute; /* Opens OVER the elements below instead of pushing them down */
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 10;
    list-style: none;
    padding: 1px 0;
    background-color: var(--zh-white);
    border-radius: 2px;
    box-shadow: 0px 4px 10px var(--zh-text-color-5); /* Shadow to make it look 'over' */
    border-inline-start: 2px solid var(--primary-color);
}

/* Show submenu when parent has 'active' class */
.has-submenu.active > .submenu-content {
    display: block;
    animation: slideInSubmenu 0.3s ease-out;
}

@keyframes slideInSubmenu {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Rotate arrow when submenu is open */
.has-submenu.active > a .submenu-arrow svg {
    transform: rotate(0deg) !important;
}

/* Submenu item styling */
.submenu-content li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 20px;
    padding-inline-start: 35px;
    color: var(--zh-emphasis-color);
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.4s ease;
    border-radius: 4px;
    margin: 1px 8px;
}

.submenu-content li a:hover {
    padding-inline-start: 60px;
    transition: all 0.7s ease;
}

/* Third level and deeper (Grandchildren) */
.submenu-content .submenu-content {
    background-color: rgba(0, 0, 0, 0.05);
    border-inline-start: 2px solid var(--zh-pink-light);
}

.submenu-content .submenu-content li a {
    padding-inline-start: 45px;
}

.submenu-content .submenu-content li a:hover {
    padding-inline-start: 50px;
}

/* ===== Generic Submenu Arrow Transition ===== */
.has-submenu .submenu-arrow {
    transition: transform 0.3s ease;
}

/* Top-level dropdown arrow reset when active */
.dropdown-menu.active .dropdown-arrow {
    transform: rotate(0deg);
}

/* ===== RTL Direction (Arabic) ===== */

/* RTL: Arrow points RIGHT (closed state) */
html[dir="rtl"] .has-submenu .submenu-arrow {
    transform: rotate(90deg);
}

/* RTL: Arrow points DOWN (open/active state) */
html[dir="rtl"] .has-submenu.active > a .submenu-arrow {
    transform: rotate(0deg);
}

/* RTL: icon-arrow-down-sidebar inside nested submenus (closed) */
html[dir="rtl"] .has-submenu > a .icon-arrow-down-sidebar {
    transform: rotate(90deg);
    transition: transform 0.3s ease;
}

/* RTL: icon-arrow-down-sidebar inside nested submenus (open/active) */
html[dir="rtl"] .has-submenu.active > a .icon-arrow-down-sidebar {
    transform: rotate(0deg);
}

/* RTL: active/open submenu arrow icon color */
html[dir="rtl"] .has-submenu.active > a .submenu-arrow .icon-arrow-down-sidebar::before,
html[dir="rtl"] .has-submenu.open-submenu > a .submenu-arrow .icon-arrow-down-sidebar::before {
    background-color: var(--icon-header-hover-color);
}

/* ===== LTR Direction (English/French/etc.) ===== */

/* LTR: Arrow points LEFT (closed state) */
html[dir="ltr"] .has-submenu .submenu-arrow {
    transform: rotate(-90deg);
}

/* LTR: Arrow points DOWN (open/active state) */
html[dir="ltr"] .has-submenu.active > a .submenu-arrow {
    transform: rotate(0deg);
}

/* LTR: icon-arrow-down-sidebar inside nested submenus (closed) */
html[dir="ltr"] .has-submenu > a .icon-arrow-down-sidebar {
    transform: rotate(-90deg);
    transition: transform 0.3s ease;
}

/* LTR: icon-arrow-down-sidebar inside nested submenus (open/active) */
html[dir="ltr"] .has-submenu.active > a .icon-arrow-down-sidebar {
    transform: rotate(0deg);
}

/* ===== Generic submenu background for all levels ===== */
.submenu-content[class*="submenu-content-"] {
    background-color: var(--zh-white);
}

.has-submenu:hover .nested-submenu {
    display: block;
}

.nested-submenu.show-nested {
    display: block !important;
}

#currency-options-container::-webkit-scrollbar {
    width: 6px;
}

#currency-options-container::-webkit-scrollbar-track {
    background: var(--primary-color);
    /* border-radius: 4px; */
}

#currency-options-container::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 4px;
}

#currency-options-container::-webkit-scrollbar-thumb:hover {
    background: var(--header-bg-color);
}
