/* Shared site header and footer. Scoped so it can sit on any page without touching that page's own styles. */
.ss-header, .ss-footer {
  --ss-navy: #041D3F;
  --ss-cyan: #22C3E6;
  --ss-radius: 14px;
  --ss-font: "Changa", "Cairo", sans-serif;
  --ss-latin: "Quicksand", sans-serif;
  box-sizing: border-box;
  font-family: var(--ss-font);
  line-height: 1.7;
  text-align: start;
}
.ss-header *, .ss-footer *, .ss-header *::before, .ss-footer *::before { box-sizing: border-box; }
.ss-header a, .ss-footer a { color: inherit; }
.ss-header svg, .ss-footer svg { vertical-align: middle; }
.ss-container { width: min(1200px, calc(100% - 2rem)); margin-inline: auto; }
.ss-btn {
  display: inline-flex; justify-content: center; align-items: center; gap: .5rem;
  min-height: 44px; padding: .55rem 1.2rem; border-radius: var(--ss-radius);
  background: var(--ss-cyan); color: var(--ss-navy) !important; font-weight: 600;
  font-size: .9rem; text-decoration: none; white-space: nowrap;
}
.ss-btn:hover { filter: brightness(1.06); }
.ss-cart {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--ss-radius);
  border: 1px solid rgb(255 255 255 / 30%); color: #fff; text-decoration: none; flex: none;
}
.ss-header-panel[hidden] { display: none !important; }
.ss-cart .cart-badge {
  position: absolute; top: -6px; left: -6px; right: auto; min-width: 20px; height: 20px;
  padding: 0 5px; border-radius: 10px; background: var(--ss-cyan); color: var(--ss-navy);
  font: 700 12px/20px var(--ss-latin); text-align: center;
}
.ss-footer h2 { font-family: "Cairo", sans-serif; margin: 0 0 1rem; line-height: 1.5; }
.ss-footer p { margin: 0; }
.ss-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ss-navy);
  color: #fff;
  box-shadow: 0 3px 18px rgb(4 29 63 / 12%);
}
.ss-header-inner { display: flex; align-items: center; gap: 1rem; height: 64px; }
.ss-logo { flex: 0 0 auto; display: inline-flex; align-items: center; }
.ss-logo img { height: 46px; width: auto; max-width: 160px; object-fit: contain; }
.ss-header-panel { display: flex; align-items: center; gap: 1rem; flex: 1; }
.ss-nav { display: flex; align-items: center; gap: 1rem; margin-inline: auto; }
.ss-nav a { text-decoration: none; font-size: .9rem; white-space: nowrap; padding-block: .4rem; }
.ss-nav a:hover, .ss-nav a[aria-current] { color: var(--ss-cyan); }
.ss-nav a[aria-current] { text-decoration: underline; }
.ss-header-slot:empty { display: none; }
.ss-menu-button {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgb(255 255 255 / 30%);
  border-radius: var(--ss-radius);
  background: transparent;
  color: #fff;
  margin-inline-start: auto;
}
.ss-header :focus-visible, .ss-footer :focus-visible { outline-color: var(--ss-cyan); }
.ss-footer { background: var(--ss-navy); color: #fff; padding-top: 3rem; }
.ss-footer-grid { display: grid; gap: 2rem; padding-bottom: 2rem; }
.ss-footer-about p { max-width: 390px; margin-top: 1rem; color: #CCD9E8; }
.ss-footer h2 { font-size: 1.1rem; }
.ss-footer-links, .ss-footer-contact { display: flex; flex-direction: column; align-items: flex-start; gap: .4rem; }
.ss-footer-links a, .ss-footer-contact a { text-decoration: none; min-height: 40px; display: inline-flex; align-items: center; padding-block: .25rem; }
.ss-footer a:hover { color: var(--ss-cyan); }
.ss-footer-contact a { display: inline-flex; align-items: center; gap: .6rem; }
.ss-footer-contact svg { width: 20px; height: 20px; flex: none; }
.ss-footer-bottom {
  padding-block: 1.25rem;
  border-top: 1px solid rgb(255 255 255 / 16%);
  color: #CCD9E8;
  font-family: var(--ss-latin);
  font-size: .85rem;
}
@media (min-width: 600px) {
  .ss-footer-grid { grid-template-columns: 1fr 1fr; }
  .ss-footer-about { grid-column: 1 / -1; }
}
@media (min-width: 860px) {
  .ss-footer-grid { grid-template-columns: 1.5fr 1fr 1fr; gap: 3rem; }
  .ss-footer-about { grid-column: auto; }
}
@media (max-width: 859px) {
  .ss-menu-button { display: inline-flex; }
  .ss-header-panel {
    position: absolute;
    top: 64px;
    inset-inline: 0;
    max-height: calc(100dvh - 64px);
    overflow-y: auto;
    padding: 1.25rem;
    background: var(--ss-navy);
    border-top: 1px solid rgb(255 255 255 / 15%);
    border-radius: 0 0 20px 20px;
    box-shadow: 0 18px 60px rgb(4 29 63 / 12%);
    flex-direction: column;
    align-items: stretch;
    animation: ss-menu-enter .18s ease-out;
  }
  .ss-nav { flex-direction: column; align-items: stretch; width: 100%; gap: .25rem; }
  .ss-nav a { padding: .65rem 1rem; border-radius: var(--ss-radius); }
  .ss-nav a:hover { background: rgb(255 255 255 / 5%); }
}
@media (min-width: 860px) { .ss-cart { order: 3; } }
@media (max-width: 859px) { .ss-cart { margin-inline-start: auto; } .ss-cart + .ss-menu-button { margin-inline-start: 0; } }
@keyframes ss-menu-enter {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) { .ss-header-panel { animation: none !important; } }
.ss-lang { font: 600 .85rem var(--ss-latin); text-decoration: none; padding: .35rem .7rem; border: 1px solid rgb(255 255 255 / 30%); border-radius: 999px; white-space: nowrap; }
.ss-lang:hover { color: var(--ss-cyan); border-color: var(--ss-cyan); }
.ss-lang[lang="ar"] { font-family: var(--ss-font); }


/* ---- site settings: announcement bar, floating WhatsApp, footer info ---- */
.ss-announce {
  position: relative;
  z-index: 101;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 44px;
  background: #22C3E6;
  color: #041D3F;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
}
.ss-announce-text a,
.ss-announce-text span {
  color: #041D3F;
}
.ss-announce-text a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ss-announce-text a:focus-visible,
.ss-announce-close:focus-visible {
  outline: 2px solid #041D3F;
  outline-offset: 2px;
}
.ss-announce-close {
  position: absolute;
  top: 50%;
  inset-inline-end: 10px;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #041D3F;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.ss-announce-close:hover {
  background: rgba(4, 29, 63, 0.12);
}
.ss-float-wa {
  position: fixed;
  bottom: 20px;
  bottom: max(20px, calc(16px + env(safe-area-inset-bottom, 0px)));
  left: 20px;
  left: max(20px, calc(16px + env(safe-area-inset-left, 0px)));
  right: auto;
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.42), 0 2px 6px rgba(0, 0, 0, 0.16);
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}
.ss-float-wa svg {
  width: 34px;
  height: 34px;
  fill: currentColor;
}
.ss-float-wa:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.55), 0 3px 8px rgba(0, 0, 0, 0.22);
}
.ss-float-wa:active {
  transform: scale(0.95);
}
.ss-float-wa:focus-visible {
  outline: 3px solid #fff;
  box-shadow: 0 0 0 6px #041D3F;
}
.ss-info-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: inherit;
  opacity: 0.85;
  font-size: 0.9em;
  line-height: 1.6;
}
.ss-info-line svg {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
}
@media print {
  .ss-announce,
  .ss-float-wa {
    display: none;
  }
}
