/* CSS مفصول من header.html */
:root {
  --black-pearl: #08151E;
  --hazel-brown: #AE8768;
  --hazel-soft: rgba(174, 135, 104, 0.14);
  --hazel-border: rgba(174, 135, 104, 0.24);
  --white: #ffffff;
  --white-soft: rgba(255, 255, 255, 0.82);
  --transition: all 0.35s ease;
  --shadow-soft: -18px 0 50px rgba(0, 0, 0, 0.34);
  --topbar-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
  --topbar-radius: 22px;
}

.assc-header-shell,
.assc-header-shell *,
.assc-overlay,
.assc-drawer,
.assc-drawer * {
  box-sizing: border-box;
}

.assc-header-shell {
  position: relative;
  z-index: 9999;
  direction: rtl;
  font-family: 'Cairo', sans-serif;
}

.assc-header-shell a,
.assc-drawer a {
  text-decoration: none;
  color: inherit;
}

.assc-header-shell button,
.assc-drawer button {
  font: inherit;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

.jasara-header-fixed {
  position: fixed;
  inset: 0 0 auto 0;
  height: 0;
  z-index: 1200;
  pointer-events: none;
  transition: opacity .3s ease, visibility .3s ease, transform .3s ease;
}

.corner-group {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: auto;
  transition: var(--transition);
}

.right-side {
  top: 45px;
  right: 50px;
  gap: 20px;
}

.left-side {
  top: 50px;
  left: 50px;
  gap: 24px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.jasara-logo-img,
.drawer-logo,
.assc-topbar-logo {
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}

.jasara-logo-img {
  height: 48px;
}

.assc-topbar-logo {
  height: 54px;
}

.drawer-logo {
  height: 42px;
}

.jasara-lang-link {
  color: var(--white);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 1px;
  opacity: .9;
  transition: var(--transition);
}

.jasara-lang-link:hover {
  color: var(--hazel-brown);
  opacity: 1;
}

.jasara-burger-btn {
  display: inline-flex;
  flex-direction: column;
  gap: 9px;
  padding: 4px;
  align-items: flex-start;
  justify-content: center;
}

.j-line {
  display: block;
  width: 32px;
  height: 1.5px;
  border-radius: 999px;
  background-color: var(--white);
  transition: var(--transition);
}

.jasara-burger-btn:hover .j-line {
  background-color: var(--hazel-brown);
}

.jasara-vertical-label {
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  letter-spacing: 4px;
  opacity: .68;
  user-select: none;
}

.assc-topbar {
  position: fixed;
  top: 10px;
  right: 0;
  left: 0;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-20px);
  transition: opacity .3s ease, visibility .3s ease, transform .3s ease;
}

.assc-header-shell:not(.is-scrolled) .assc-topbar {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(-20px) !important;
}

.assc-topbar-inner {
  width: min(1180px, calc(100% - 24px));
  margin: 0 auto;
  min-height: 76px;
  padding: 10px 18px;
  border-radius: var(--topbar-radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(8, 21, 30, 0.82), rgba(8, 21, 30, 0.94)),
    radial-gradient(circle at 12% 20%, var(--hazel-soft), transparent 28%);
  border: 1px solid var(--hazel-border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--topbar-shadow);
}

.assc-topbar-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.05), transparent 30%, transparent 75%, rgba(174,135,104,.1));
}

.assc-topbar-group {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.assc-topbar-brand,
.drawer-brand {
  display: inline-flex;
  align-items: center;
}

.assc-topbar-lang,
.assc-topbar-toggle,
.close-btn,
.drawer-lang {
  transition: var(--transition);
}

.assc-topbar-lang {
  min-height: 46px;
  padding: 0 14px;
  border-radius: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--white);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  font-weight: 800;
}

.assc-topbar-lang i,
.drawer-item i {
  color: var(--hazel-brown);
}

.assc-topbar-lang:hover,
.assc-topbar-toggle:hover,
.close-btn:hover {
  background: var(--hazel-soft);
  border-color: var(--hazel-brown);
  transform: translateY(-1px);
}

.assc-topbar-toggle,
.close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
}

.assc-topbar-toggle {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
}

.assc-topbar-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--white);
}

.assc-header-shell.is-scrolled .jasara-header-fixed {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-12px);
}

.assc-header-shell.is-scrolled .assc-topbar {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateY(0) !important;
}

.assc-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 21, 30, 0.54);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .3s ease, visibility .3s ease;
  z-index: 1390;
}

.assc-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.assc-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 92vw);
  height: 100vh;
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  color: var(--white);
  background: linear-gradient(180deg, rgba(8,21,30,.98) 0%, rgba(12,28,41,.98) 58%, rgba(8,21,30,.99) 100%);
  border-left: 1px solid rgba(174,135,104,.34);
  box-shadow: var(--shadow-soft);
  transform: translateX(100%);
  transition: transform .35s ease;
  z-index: 2100;
  overflow-y: auto;
}

.assc-drawer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 85% 12%, rgba(174,135,104,.15), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,.04), transparent 24%);
}

.assc-drawer.open {
  transform: translateX(0);
}

.drawer-header,
.drawer-nav,
.drawer-footer {
  position: relative;
  z-index: 1;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.close-btn {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: var(--white);
  flex-shrink: 0;
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 6px;
}

.drawer-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  min-height: 58px;
  border-radius: 18px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  color: var(--white);
  font-size: 18px;
  font-weight: 700;
  transition: var(--transition);
}

.drawer-item i {
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}

.drawer-item:hover,
.drawer-item.active {
  background: rgba(174,135,104,.14);
  border-color: rgba(174,135,104,.55);
  transform: translateX(-6px);
}

.drawer-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 8px;
}

.drawer-lang {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid var(--hazel-brown);
  background: rgba(255,255,255,.06);
  color: var(--white);
  font-weight: 800;
}

.drawer-lang:hover {
  background: var(--hazel-brown);
  transform: translateY(-1px);
}

.drawer-note {
  color: rgba(255,255,255,.55);
  text-align: center;
  font-size: 12px;
}

@media (max-width: 992px) {
  .right-side {
    top: 24px;
    right: 24px;
    gap: 14px;
  }

  .left-side {
    top: 28px;
    left: 24px;
    gap: 18px;
  }

  .jasara-logo-img {
    height: 38px;
  }

  .jasara-vertical-label {
    display: none;
  }

  .assc-drawer {
    width: 100%;
    padding: 24px 18px 20px;
  }

  .drawer-item {
    font-size: 17px;
    padding: 15px 16px;
  }

  .assc-header-shell .jasara-header-fixed {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-12px);
  }

  .assc-header-shell .assc-topbar {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
    top: 8px;
  }

  .assc-topbar-inner {
    width: calc(100% - 16px);
    min-height: 68px;
    padding: 8px 12px;
  }

  .assc-topbar-logo {
    height: 44px;
  }
}

@media (max-width: 576px) {
  .assc-topbar-inner {
    border-radius: 18px;
  }

  .assc-topbar-lang {
    min-height: 42px;
    padding: 0 12px;
    font-size: 13px;
  }

  .assc-topbar-toggle {
    width: 42px;
    height: 42px;
    border-radius: 13px;
  }

  .drawer-logo {
    height: 38px;
  }

  .close-btn {
    width: 40px;
    height: 40px;
  }
}
.assc-topbar-store,
.jasara-store-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 38px;
  padding: 9px 15px;
  border-radius: 999px;
  background: #b88b4a;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  line-height: 1;
  transition: transform 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
}

.jasara-store-link {
  width: 38px;
  padding: 0;
}

.assc-topbar-store:hover,
.jasara-store-link:hover {
  background: #9f7438;
  color: #fff;
  transform: translateY(-1px);
}

.assc-topbar-store:focus-visible,
.jasara-store-link:focus-visible {
  outline: 3px solid rgba(184, 139, 74, 0.35);
  outline-offset: 3px;
}

.assc-topbar-store i,
.jasara-store-link i {
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .assc-topbar-store span {
    display: none;
  }

  .assc-topbar-store {
    width: 38px;
    padding: 0;
  }
}