body {
  margin: 0;
  font-family: "Cairo", sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main {
  flex: 1;
}

@media (max-width: 767px) {
  body {
    padding-bottom: 60px;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: auto;
  }
}
* {
  -webkit-tap-highlight-color: transparent;
}
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fef8f7;
  color: #000;
  padding: 0 4px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 55px;
  z-index: 9999;
  box-shadow: 0 2px 6px rgb(0, 255, 162);
  border-bottom: 3px solid #00ff00;
}
.logo {
  font-size: 25px;
  font-weight: bold;
  white-space: nowrap;
  text-align: right;
  flex: 0;
    user-select: none;     
  -webkit-user-select: none;
  -ms-user-select: none;

  pointer-events: none;     
}

@media (max-width: 768px) {
  .logo {
    text-align: center;
    flex: 100%;
  }
}

.nav-links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);

  display: flex;
  gap: 30px;
}

.nav-links a {
  color: #000000;
  text-decoration: none;
  font-size: 18px;
  transition: 0.3s;
}

.nav-links a:hover {
  color: #2563eb;
}

.menu-btn {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}
.menu-btn span {
  display: block;
  width: 26px;
  height: 3px;
  background: #000;
  border-radius: 3px;
  transition: transform 0.3s ease, opacity 0.2s ease;
  transform-origin: center;
}

.menu-btn.active span:nth-child(1) {
  transform: translateY(8px) rotate(40deg);
}

.menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.menu-btn.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-40deg);
}

@media (max-width: 768px) {
  body.nav-open {
    position: fixed;
    width: 100%;
    overflow: hidden;
  }

  .nav-links {
    position: fixed;
    top: 60px;
    right: 0;
    left: auto;

    width: 280px;
    height: calc(100vh - 55px);

    background: #ffffff;
    padding: 12px 0;

    display: flex;
    flex-direction: column;
    gap: 0;

    transform: translateX(100%);
    transition: transform 0.3s ease;

    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.15);
    z-index: 1000;
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .nav-links a {
    text-decoration: none;
    color: #111827;
    font-size: 16px;
    font-weight: 500;

    padding: 14px 20px;
    text-align: right;

    border-bottom: 1px solid #f1f1f1;
    background: transparent;

    transition: color 0.25s ease;
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  .nav-links a:hover {
    color: #2563eb;
    background: transparent;
  }

  .nav-links a.active {
    color: #2563eb;
    font-weight: 600;
    background: transparent;
    border-right: 6px solid #2563eb;
  }

  .menu-btn {
    display: flex;
    z-index: 99999;
  }
  .nav-links p {
    width: 100%;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;

    padding: 15px 0;
    margin: 0 0 10px 0;

    background: #f7f7f7;
    color: #222;

    border-bottom: 3px solid #1a4fff;
  }
  .nav-links p {
    text-transform: uppercase;
    border-bottom: 2px solid #1a4fff;
  }
  .navbar {
    padding-top: 0;
  }
  .nav-links {
    padding-top: 0;
    margin-top: 0;
  }

  .back22-to-top {
    position: fixed;
    bottom: 80px !important;
    left: 12px !important;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(120, 120, 120, 0.6);
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 9999;
  }
}

.mobile-only {
  display: none;
}

@media (max-width: 768px) {
  .mobile-only {
    display: block;
  }
}

.site-footer {
  width: 100vw;
  max-width: 100%;
  margin: 0;
  padding: 48px 10px 10px;
  box-sizing: border-box;
}

:root {
  --ft-bg: #122539;
  --ft-muted: #1b263b;
  --ft-text: #f8f9fa;
  --ft-sub: #aebacb;
  --ft-accent: #ffd60a;
  --ft-border: #415a77;
  --ft-link: #ffd60a;
  --ft-link-hover: #ff4d4d;
}

.site-footer {
  background: var(--ft-bg);
  color: var(--ft-text);
  padding: 48px 10px 10px;
  border-top: 1px solid var(--ft-border);
  font-family: "Cairo", system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  width: 100%;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--ft-accent);
}

.site-footer__top {
  max-width: 1200px;
  margin: 0 auto 28px;
  display: grid;
  gap: 28px;
  grid-template-columns: 1.2fr 1fr 1fr 1.2fr;
}

.site-footer__brand .site-footer__logo {
  display: inline-block;
  font-weight: 800;
  font-size: 28px;
  letter-spacing: 0.5px;
  padding: 8px 14px;
  background: linear-gradient(135deg, var(--ft-accent), #ff2a55);
  -webkit-background-clip: text;
  background-clip: text;
  color: #ffffff;
        user-select: none;        /* يمنع التحديد */
  -webkit-user-select: none;
  -ms-user-select: none;

}

.site-footer__desc {
  color: var(--ft-sub);
  margin: 10px 0 16px;
  line-height: 1.8;
}

.site-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: var(--ft-muted);
  border: 1px solid var(--ft-border);
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
  margin-inline-end: 8px;
}
.site-footer__social a:hover {
  transform: translateY(-2px);
  border-color: var(--ft-accent);
}
.site-footer__social svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.site-footer__links h3,
.site-footer__contact h3,
.site-footer__newsletter h3 {
  font-size: 16px;
  margin-bottom: 12px;
  color: var(--ft-text);
}

.site-footer__links ul,
.site-footer__contact ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer__links li,
.site-footer__contact li {
  margin: 10px 0;
  color: var(--ft-sub);
}

.site-footer__newsletter p {
  color: var(--ft-sub);
  margin: 6px 0 12px;
}

.site-footer__form {
  display: flex;
  gap: 8px;
  align-items: center;
  background: var(--ft-muted);
  border: 1px solid var(--ft-border);
  padding: 8px;
  border-radius: 14px;
}
.site-footer__form input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--ft-text);
  padding: 10px 8px;
  font-family: inherit;
}
.site-footer__form input::placeholder {
  color: #7f86a6;
}
.site-footer__form button {
  padding: 10px 14px;
  border: 0;
  border-radius: 10px;
  background: var(--ft-accent);
  color: white;
  font-weight: 700;
  cursor: pointer;
}
.site-footer__form button:hover {
  filter: brightness(1.05);
}

.site-footer__bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 16px;
  border-top: 1px dashed var(--ft-border);
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.site-footer__bottom p {
  margin: 0;
  color: var(--ft-sub);
}

.site-footer__legal {
  list-style: none;
  display: flex;
  gap: 14px;
  margin: 0;
  padding: 0;
}
.site-footer__legal a {
  color: var(--ft-sub);
}
.site-footer__legal a:hover {
  color: var(--ft-accent);
}

@media (max-width: 992px) {
  .site-footer__top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .site-footer__top {
    grid-template-columns: 1fr;
  }
  .site-footer {
    padding: 40px 16px 16px;
  }
}

@media (max-width: 768px) {
  .site-footer {
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    text-align: center;
    box-sizing: border-box;
  }

  .site-footer__top {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
    align-items: center;
  }

  .site-footer__top > div {
    width: 100%;
  }

  .site-footer__social {
    display: flex;
    justify-content: center;
  }

  .site-footer__bottom {
    margin-top: 40px;
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }

  .site-footer__legal {
    flex-direction: column;
    gap: 8px;
  }
}
.site-footer__social {
  display: flex;
  gap: 12px;
  align-items: center;
}

.site-footer__social a img {
  width: 40px;
  height: 40px;
}

.bottom-navbar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #fff;
  border-top: 1px solid #ddd;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 8px 0;
  z-index: 99999;
}

.bottom-navbar .nav-item {
  text-decoration: none;
  color: #333;
  font-size: 14px;
  text-align: center;
  flex: 1;
  position: relative;
}

.bottom-navbar .nav-item i {
  font-size: 20px;
  display: block;
  margin-bottom: 4px;
}

.bottom-navbar .nav-item .cart-badge {
  position: absolute;
  top: 2px!important;
  right: 25%!important;
  background: #002244!important;
  color: #fff!important;
  font-size: 12px!important;
  padding: 2px 6px!important;
  border-radius: 50%!important;
}
.bottom-navbar .nav-item.active {
  color: #ffffff;
  background-color: #2563eb;

  border-radius: 8px;
  padding: 6px 0;
}

.bottom-navbar .nav-item.active i {
  color: #ffffff;
}
@media (min-width: 768px) {
  .bottom-navbar {
    display: none;
  }
}

.back22-to-top {
  position: fixed;
  bottom: 25px;
  left: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(120, 120, 120, 0.6);
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 9999;
}

.back22-to-top-text {
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
}

.back22-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back22-to-top:hover {
  background: rgba(100, 100, 100, 0.8);
}
.cart-icon {
  font-size: 20px;
  text-decoration: none;
  color: #000;
  position: absolute;
  top: 12px;
      user-select: none;        /* يمنع التحديد */
  -webkit-user-select: none;
  -ms-user-select: none;

 
}

.cart-icon span {
  background: red;
  color: white;
  font-size: 12px;
  border-radius: 50%;
  padding: 2px 6px;
  margin-right: 4px;
        user-select: none;        /* يمنع التحديد */
  -webkit-user-select: none;
  -ms-user-select: none;

  pointer-events: none;     /* يمنع أي تفاعل */
}

@media (min-width: 769px) {
  .cart-icon {
    left: 20px;
    right: auto;
  }
}
@media (max-width: 768px) {
  .cart-icon {
    right: 20px;
    left: auto;
  }
}
