:root {
  --color-primary:        #ffbd20;
  --color-primary-hover:  #e6a800;
  --color-primary-light:  rgba(255, 189, 32, 0.12);
  --color-primary-dark:   #cc9700;

  --color-bg:             #14141a;
  --color-bg-secondary:   #18181f;
  --color-block:          #1e1e26;
  --color-block-hover:    #252530;
  --color-block-alt:      #22222c;
  --color-overlay:        rgba(20, 20, 26, 0.85);

  --color-text:           #e8e8f0;
  --color-text-muted:     #9999b0;
  --color-text-subtle:    #6b6b80;
  --color-text-inverse:   #14141a;
  --color-heading:        #f0f0f8;

  --color-border:         #2a2a38;
  --color-border-hover:   #ffbd20;
  --color-border-focus:   rgba(255, 189, 32, 0.6);
  --color-divider:        #22222e;

  --color-link:           #ffbd20;
  --color-link-hover:     #e6a800;
  --color-link-visited:   #cc9700;

  --btn-bg:               #ffbd20;
  --btn-text:             #14141a;
  --btn-hover-bg:         #e6a800;
  --btn-hover-text:       #14141a;
  --btn-active-bg:        #cc9700;
  --btn-border-radius:    6px;
  --btn-padding:          10px 22px;
  --btn-font-size:        0.875rem;
  --btn-font-weight:      600;
  --btn-transition:       background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;

  --btn-outline-bg:       transparent;
  --btn-outline-text:     #ffbd20;
  --btn-outline-border:   #ffbd20;
  --btn-outline-hover-bg: rgba(255, 189, 32, 0.12);

  --input-bg:             #1e1e26;
  --input-text:           #e8e8f0;
  --input-border:         #2a2a38;
  --input-focus-border:   #ffbd20;
  --input-focus-shadow:   0 0 0 3px rgba(255, 189, 32, 0.18);
  --input-placeholder:    #6b6b80;
  --input-border-radius:  5px;
  --input-padding:        10px 14px;
  --input-font-size:      0.9rem;

  --card-bg:              #1e1e26;
  --card-border:          #2a2a38;
  --card-hover-border:    #ffbd20;
  --card-hover-shadow:    0 4px 20px rgba(255, 189, 32, 0.1);
  --card-border-radius:   10px;
  --card-padding:         24px;
  --card-transition:      border-color 0.25s ease, box-shadow 0.25s ease;

  --badge-bg:             rgba(255, 189, 32, 0.15);
  --badge-text:           #ffbd20;
  --badge-border:         rgba(255, 189, 32, 0.3);
  --badge-border-radius:  4px;

  --alert-success-bg:     rgba(34, 197, 94, 0.12);
  --alert-success-text:   #4ade80;
  --alert-success-border: rgba(34, 197, 94, 0.3);
  --alert-error-bg:       rgba(239, 68, 68, 0.12);
  --alert-error-text:     #f87171;
  --alert-error-border:   rgba(239, 68, 68, 0.3);
  --alert-warning-bg:     rgba(255, 189, 32, 0.12);
  --alert-warning-text:   #ffbd20;
  --alert-warning-border: rgba(255, 189, 32, 0.3);
  --alert-info-bg:        rgba(59, 130, 246, 0.12);
  --alert-info-text:      #93c5fd;
  --alert-info-border:    rgba(59, 130, 246, 0.3);

  --shadow-sm:            0 1px 4px rgba(0, 0, 0, 0.4);
  --shadow-md:            0 4px 16px rgba(0, 0, 0, 0.5);
  --shadow-lg:            0 8px 32px rgba(0, 0, 0, 0.6);
  --shadow-primary:       0 4px 20px rgba(255, 189, 32, 0.2);

  --font-family:          'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-family-heading:  'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-size-xs:         0.75rem;
  --font-size-sm:         0.8125rem;
  --font-size-base:       0.9rem;
  --font-size-md:         1rem;
  --font-size-lg:         1.125rem;
  --font-size-xl:         1.25rem;
  --font-size-2xl:        1.5rem;
  --font-size-3xl:        1.875rem;
  --font-size-4xl:        2.25rem;
  --font-weight-normal:   400;
  --font-weight-medium:   500;
  --font-weight-semi:     600;
  --font-weight-bold:     700;
  --line-height-base:     1.65;
  --line-height-heading:  1.25;
  --letter-spacing-base:  0.01em;

  --space-xs:   4px;
  --space-sm:   8px;
  --space-md:   16px;
  --space-lg:   24px;
  --space-xl:   32px;
  --space-2xl:  48px;
  --space-3xl:  64px;

  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   16px;
  --radius-full: 9999px;

  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
  --transition-slow: 0.4s ease;

  --z-dropdown: 100;
  --z-sticky:   200;
  --z-modal:    1000;
  --z-overlay:  999;
  --z-tooltip:  1100;

  --scrollbar-track:       #14141a;
  --scrollbar-thumb:       #2a2a38;
  --scrollbar-thumb-hover: #ffbd20;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-base);
  letter-spacing: var(--letter-spacing-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--color-heading);
  font-family: var(--font-family-heading);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-heading);
  margin-bottom: var(--space-md);
}

h1 { font-size: var(--font-size-3xl); }
h2 { font-size: var(--font-size-2xl); }
h3 { font-size: var(--font-size-xl); }
h4 { font-size: var(--font-size-lg); }
h5 { font-size: var(--font-size-md); }
h6 { font-size: var(--font-size-sm); }

a {
  color: var(--color-link);
  text-decoration: none;
  transition: color var(--transition-base);
}
a:hover  { color: var(--color-link-hover); }
a:visited { color: var(--color-link-visited); }

p {
  font-size: var(--font-size-base);
  color: var(--color-text);
  margin-bottom: var(--space-md);
}

button,
.button,
input[type="submit"],
input[type="button"],
.wp-block-button__link {
  background-color: var(--btn-bg);
  color: var(--btn-text);
  border: none;
  border-radius: var(--btn-border-radius);
  padding: var(--btn-padding);
  font-size: var(--btn-font-size);
  font-weight: var(--btn-font-weight);
  cursor: pointer;
  transition: var(--btn-transition);
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
}
button:hover,
.button:hover,
input[type="submit"]:hover,
.wp-block-button__link:hover {
  background-color: var(--btn-hover-bg);
  color: var(--btn-hover-text);
  box-shadow: var(--shadow-primary);
}
button:active,
.button:active {
  background-color: var(--btn-active-bg);
  transform: translateY(1px);
}

input,
textarea,
select {
  background-color: var(--input-bg);
  color: var(--input-text);
  border: 1px solid var(--input-border);
  border-radius: var(--input-border-radius);
  padding: var(--input-padding);
  font-size: var(--input-font-size);
  font-family: var(--font-family);
  width: 100%;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
  outline: none;
}
input::placeholder,
textarea::placeholder {
  color: var(--input-placeholder);
}
input:focus,
textarea:focus,
select:focus {
  border-color: var(--input-focus-border);
  box-shadow: var(--input-focus-shadow);
}

hr {
  border: none;
  border-top: 1px solid var(--color-divider);
  margin: var(--space-xl) 0;
}

::-webkit-scrollbar        { width: 6px; height: 6px; }
::-webkit-scrollbar-track  { background: var(--scrollbar-track); }
::-webkit-scrollbar-thumb  { background: var(--scrollbar-thumb); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--scrollbar-thumb-hover); }

::selection {
  background-color: rgba(255, 189, 32, 0.25);
  color: var(--color-heading);
}































/* ===========================
   Mobile Bottom Navigation
   =========================== */

.mobile-bottom-nav {
  display: none; /* مخفي على الديسكتوب */
}

@media (max-width: 768px) {

  /* نضيف padding للـ body حتى لا يُغطى المحتوى */
  body {
    padding-bottom: 70px;
  }

  .mobile-bottom-nav {
    display: flex;
    align-items: center;
    justify-content: space-around;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background-color: var(--color-block);
    border-top: 1px solid var(--color-border);
    z-index: var(--z-sticky);
    padding: 0 var(--space-xs);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
  }

  /* كل عنصر */
  .mbn-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    flex: 1;
    height: 100%;
    color: var(--color-text-subtle);
    text-decoration: none;
    transition: color var(--transition-fast);
    position: relative;
    padding: var(--space-xs) 0;
  }

  .mbn-item:hover,
  .mbn-item:visited {
    color: var(--color-text-muted);
  }

  /* الأيقونة النشطة */
  .mbn-item--active {
    color: var(--color-primary) !important;
  }

  .mbn-item--active .mbn-icon::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background-color: var(--color-primary);
    border-radius: var(--radius-full);
  }

  /* حجم الأيقونة */
  .mbn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 24px;
    height: 24px;
  }

  .mbn-icon svg {
    width: 22px;
    height: 22px;
    display: block;
    transition: transform var(--transition-fast);
  }

  .mbn-item:active .mbn-icon svg {
    transform: scale(0.88);
  }

  /* نص الأيقونة */
  .mbn-label {
    font-size: 10px;
    font-weight: var(--font-weight-medium);
    line-height: 1;
    letter-spacing: 0.01em;
    white-space: nowrap;
  }

  /* Badge عدد عناصر السلة */
  .mbn-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background-color: var(--color-primary);
    color: var(--color-text-inverse);
    font-size: 9px;
    font-weight: var(--font-weight-bold);
    min-width: 16px;
    height: 16px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    line-height: 1;
  }

  /* أيقونة السلة البارزة (اختياري — تجعلها أكبر قليلًا) */
  .mbn-item--cart .mbn-icon svg {
    width: 26px;
    height: 26px;
  }

  /* دعم RTL */
  [dir="rtl"] .mbn-badge {
    right: auto;
    left: -8px;
  }

}

