/* Floating Bottom Navbar - Glassmorphism Version */
.floating-navbar {
  position: fixed;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  max-width: 500px;
  width: calc(100% - 24px);
  padding: 0 0 8px 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 1;
  visibility: visible;
  display: flex;
  flex-direction: column;
  font-family: "cairo", sans-serif;
}

.floating-navbar.hide {
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(100%);
}

.floating-navbar-content {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
}

.floating-nav {
  display: flex;
  flex: 1;
  justify-content: space-evenly;
  align-items: center;
  gap: 2px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.floating-nav::-webkit-scrollbar {
  display: none;
}

.floating-nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #333;
  text-decoration: none;
  font-size: 0.95rem;
  padding: 10px 6px;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 50px;
  position: relative;
  flex-shrink: 0;
}

.floating-nav-link i {
  font-size: 1.3em;
  margin-bottom: 4px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-nav-link span {
  font-size: 0.7em;
  font-weight: 500;
  opacity: 0.8;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-nav-link:hover {
  background: rgba(230, 0, 18, 0.08);
  color: #e60012;
  transform: translateY(-2px);
}

.floating-nav-link:hover i {
  transform: scale(1.1);
}

.floating-nav-link:hover span {
  opacity: 1;
  font-weight: 600;
}

.floating-nav-link.active {
  background: rgba(230, 0, 18, 0.1);
  color: #e60012;
  font-weight: 600;
}

.floating-nav-link.active::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: #e60012;
  border-radius: 50%;
}

.floating-navbar-toggle {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #666;
  font-size: 1rem;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-right: 20px;
}

.floating-navbar-toggle:hover {
  background: rgba(255, 255, 255, 0.3);
  color: #e60012;
  transform: scale(1.05);
}

.floating-navbar-toggle i {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-navbar-toggle:hover i {
  transform: translateY(1px);
}

/* Show Navbar Button - Fixed */
.show-navbar-btn {
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 2001;
  background: #e60012;
  color: white;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  visibility: hidden;
  transform: scale(0.8);
}

.show-navbar-btn.show {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.show-navbar-btn:hover {
  background: #cc0010;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(230, 0, 18, 0.3);
}

.show-navbar-btn:active {
  transform: scale(0.95);
}

/* Demo Note - Fixed */
.floating-navbar-demo-note {
  background: linear-gradient(
    135deg,
    rgba(255, 243, 205, 0.3),
    rgba(255, 234, 167, 0.3)
  ); /* توافق مع الـ Glassmorphism */
  color: #856404;
  border-top: 1px solid rgba(133, 100, 4, 0.2);
  padding: 8px 12px;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 500;
  border-radius: 0 0 18px 18px;
  width: 100%;
  text-align: center;
  line-height: 1.4;
  box-sizing: border-box;
  position: relative;
  bottom: -8px;
  backdrop-filter: blur(8px);
}

.floating-navbar-demo-note i {
  font-size: 1em;
  color: #b8860b;
  flex-shrink: 0;
}

.floating-navbar-demo-note span {
  flex: 1;
  text-align: right;
  word-wrap: break-word;
}

/* Responsive Design */
@media (max-width: 600px) {
  .floating-navbar {
    width: calc(100% - 16px);
    bottom: 8px;
    border-radius: 16px;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
  }

  .floating-navbar-content {
    padding: 8px 8px;
  }

  .floating-nav-link {
    font-size: 0.9rem;
    min-width: 45px;
    padding: 8px 4px;
  }

  .floating-nav-link i {
    font-size: 1.2em;
  }

  .floating-nav-link span {
    font-size: 0.65em;
  }
}

@media (max-width: 480px) {
  .floating-nav {
    gap: 0;
    padding: 0 4px;
  }

  .floating-nav-link {
    min-width: 40px;
    padding: 8px 3px;
  }

  .floating-nav-link i {
    font-size: 1.2em;
    margin-bottom: 0;
  }

  .floating-nav-link span {
    font-size: 0.6em;
  }

  .floating-navbar-demo-note {
    font-size: 0.75rem;
    padding: 6px 8px;
    line-height: 1.3;
  }
}

@media (max-width: 360px) {
  .floating-nav-link {
    min-width: 35px;
    padding: 6px 2px;
  }

  .floating-nav-link i {
    font-size: 1.1em;
  }

  .floating-nav-link span {
    font-size: 0.55em;
  }
}

/* Animation for smooth transitions */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(100%);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  to {
    opacity: 0;
    transform: translateX(-50%) translateY(100%);
  }
}

.floating-navbar.show-animation {
  animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.floating-navbar.hide-animation {
  animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Ripple effect animation */
@keyframes ripple {
  to {
    transform: scale(2);
    opacity: 0;
  }
}

/* === General Container Utility === */

body {
  font-family: "Inria Sans", sans-serif;
}

/* === Container === */
.header-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* === Stars === */
.stars > span {
  color: #ffcf2a;
  display: inline-block;
  font-size: 25px;
}

.site-header {
  background: #fff;
  font-weight: 900;
  font-size: 10px;
  text-transform: uppercase;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease; /* Add transition for smooth movement */
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  border-bottom: 1px solid #eee;
  background: #fff;
  padding: 0 10px;
  position: relative;
}

.top-info {
  z-index: 998;
  padding: 6px 0;
  font-size: 9.5px;
  text-align: center;
  background: #fff;
  border-bottom: 1px solid #eee;
  overflow: hidden;
  height: 24px;
  position: relative;
  transition: height 0.3s ease, opacity 0.3s ease; /* Add transition for smooth height change */
}

/* Add class for when announcement is hidden */
.announcement-hidden .top-info {
  height: 0;
  padding: 0;
  opacity: 0;
  border-bottom: none;
}

/* Adjust main content positioning */
main {
  transition: margin-top 0.3s ease;
}

.announcement-hidden main {
  margin-top: 56px; /* Height of header-bar only */
}

/* Announcement Slider Styles */
.announcement-slider {
  position: relative;
  height: 100%;
}

.announcement-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(100%);
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.announcement-slide.active {
  opacity: 1;
  transform: translateY(0);
}

.announcement-slide.previous {
  transform: translateY(-100%);
  opacity: 0;
}

/* Left and right sections absolutely positioned */
.left-icons,
.right-icons {
  display: flex;
  gap: 8px;
  min-width: 60px; /* Prevent collapse */
}

.logo-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  pointer-events: none; /* Prevent interaction */
}

.logo {
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.icon-btn {
  background: none;
  border: none;
  padding: 0 6px;
}

.icon-svg {
  width: 20px;
  height: 20px;
  display: block;
}

.cart-icon {
  position: relative;
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 16px;
  height: 16px;
  background: #000;
  color: #fff;
  font-size: 10px;
  border-radius: 50%;
  text-align: center;
  line-height: 16px;
  font-weight: 700;
}

/* === MAIN NAVIGATION (Hidden in Mobile) === */
.main-nav {
  display: none; /* hidden by default */
}

.nav-list {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list li a {
  text-decoration: none;
  color: #121212;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  transition: color 0.2s ease;
}

.nav-list li a:hover {
  color: #888;
}

/* Hide desktop search by default (shown only on desktop) */
.search {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.search .icon-svg {
  width: 23px;
  height: 23px;
  filter: brightness(0) saturate(100%) contrast(150%);
}

/* === Mobile Menu Panel === */
.mobile-menu {
  position: fixed;
  top: 80px; /* below fixed header */
  left: 0;
  width: 100%;
  max-width: 360px;
  height: calc(100vh - 80px);
  background: #fff;
  z-index: 9998;
  overflow-y: auto;
  border-top: 1px solid #eee;

  transform: translateX(-100%);
  transition: transform 0.35s ease;
}

/* When burger toggles open */
.mobile-menu.show {
  transform: translateX(0);
}

.mobile-menu-inner {
  padding: 20px;
}

.mobile-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav-list li {
  margin-bottom: 16px;
}

.mobile-nav-list a,
.dropdown-toggle {
  font-size: 18px;
  font-weight: 700;
  color: #121212;
  text-transform: uppercase;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  padding: 8px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.submenu {
  margin-top: 6px;
  padding-left: 12px;
  display: none;
}

.submenu li a {
  font-size: 15px;
  font-weight: 400;
  color: #444;
  text-transform: none;
}

.has-submenu.open .submenu {
  display: block;
}

.plus {
  font-size: 20px;
  font-weight: 400;
  transform: rotate(0deg);
  transition: transform 0.3s;
}

.has-submenu.open .plus {
  transform: rotate(45deg); /* + becomes × */
}

/* Utility visibility */
.desktop-only {
  display: none;
}
.mobile-only {
  display: block;
}

/* Footer Layout */
/* === Footer Base Mobile Layout === */
.footer-columns {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 100%;
  overflow: hidden;
}

.footer-column {
  width: 100%;
}

/* Copyright centered at bottom above payments */
.footer-copyright {
  font-size: 12px;
  font-weight: 600;
  color: #121212;
  text-align: center;
  margin-top: -10px;
}
.site-footer {
  padding: 40px;
  background: #fff;
  font-size: 13px;
  color: #121212;
  max-width: 1300px;
  margin: 0 auto;
  padding-inline: 64px;
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.footer-nav {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
}

.footer-nav li {
  margin-bottom: 10px;
  font-size: 13px;
  color: #121212;
}

/* Newsletter */
.footer-newsletter h3 {
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.newsletter-form {
  display: flex;
  border: 1px solid #ccc;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 12px;
  height: 48px;
}

.newsletter-form input {
  flex: 1;
  border: none;
  padding: 0 12px;
  font-size: 13px;
  height: 48px;
}

.newsletter-form input::placeholder {
  font-weight: 600;
  font-size: 12px;
  font-family: inherit;
}

.newsletter-form button {
  background: #fff;
  border: none;
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.footer-note {
  font-size: 10px;
  color: #666;
  line-height: 1.4;
  margin-bottom: 20px;
}

.social-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 16px;
  margin-bottom: 32px;
}

.social-icons img {
  width: 20px;
  height: 20px;
}

/* Bottom Row */
.footer-bottom {
  border-top: 1px solid #eee;
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.payments img {
  height: 24px;
  margin: 0 4px;
}

@media (min-width: 576px) {
  /* === HEADER (Tablet) === */
  .logo {
    font-size: 30px;
  }

  .top-info {
    font-size: 12px;
    text-align: left;
    margin: 0 69px;
  }

  .icon-svg {
    width: 24px;
    height: 24px;
  }

  .cart-count {
    width: 18px;
    height: 18px;
    font-size: 11px;
    line-height: 18px;
  }

  .icon-btn {
    padding: 0 8px;
  }

  .header-bar {
    padding: 0 48px;
    margin: 0;
  }

  .search {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .search .icon-svg {
    width: 27px;
    height: 27px;
    filter: brightness(0) saturate(100%) contrast(150%);
  }

  .mobile-menu-inner {
    padding-left: 70px;
    padding-right: 24px;
  }

  /* === FOOTER LAYOUT: 3 Columns === */
  .footer-columns {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    padding: 0 40px;
  }

  .footer-column {
    flex: 1 1 0%;
  }

  .footer-logo {
    display: flex;
    flex-direction: column;
    flex: 0 0 20%;
    gap: 8px;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 14px;
    align-items: flex-start; /* aligns logo right in column */
    text-align: left;
    order: 0;
  }

  .footer-logo .logo {
    font-size: 18px;
  }

  .footer-logo .copyright {
    font-size: 12px;
    font-weight: 600;
    margin-top: 6px;
  }

  .footer-nav {
    display: flex;
    flex: 0 0 45%;
    justify-content: space-around; /* ✅ fix: align nav to the left */
    gap: 40px;
    order: 1;
    margin-right: 40px;
  }

  .footer-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .footer-nav li {
    margin-bottom: 10px;
    font-size: 13px;
    color: #121212;
  }

  .footer-newsletter {
    text-align: left;
    flex: 0 0 30%;
    order: 2;
    justify-content: flex-end;
    transform: translate(-71px, -19px); /* ✅ shift left */
  }

  .footer-newsletter h3 {
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 16px;
  }

  .newsletter-form {
    margin-bottom: 12px;
  }

  .newsletter-form input {
    font-size: 13px;
  }

  .newsletter-form button {
    padding: 0 16px;
  }

  .footer-note {
    font-size: 10px;
    color: #666;
    line-height: 1.4;
    margin-bottom: 20px;
  }

  .social-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 16px;
    margin-top: 8px;
  }

  .social-icons img {
    width: 20px;
    height: 20px;
  }

  /* Payments stays under all */
  .footer-bottom {
    border-top: 1px solid #eee;
    padding-top: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 16px;
  }

  .footer-bottom .payments {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
  }
}

@media (min-width: 959px) {
  .site-header {
    width: 100%;
    padding: 0 20px;
    position: relative;
    z-index: 1000;
    background-color: #fff; /* ✅ Prevents transparency issues */
    box-sizing: border-box; /* ✅ Ensures padding/borders don’t break layout */
  }

  .header-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    height: 64px;
    background: #fff;
    padding: 0 32px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
  }

  .top-info {
    font-size: 14px;
    padding: 8px 43px; /* ✅ match header-bar's horizontal padding */
    text-align: left;
    background: #fff;
    border-bottom: 1px solid #eee;
    box-sizing: border-box;
    margin: 0 auto;
  }

  .left-icons .icon-btn:first-child {
    display: none;
  }

  .logo-wrapper {
    flex: 0 0 auto;
    display: flex;
    justify-content: flex-start;
    margin-left: -60px;
  }

  .logo {
    font-size: 30px;
    font-weight: bold;
    letter-spacing: 1px;
  }

  .main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
    min-width: 0; /* ✅ Prevents overflow from nav items */
  }

  .nav-list {
    display: flex;
    gap: 32px;
    list-style: none;
    margin: 0 auto;
    padding: 0;
  }

  .nav-list li {
    position: relative;
  }

  .nav-list li a {
    text-decoration: none;
    color: #121212;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
  }

  .right-icons {
    flex: 0 0 auto;
    display: flex;
    gap: 4px;
    align-items: center;
  }

  /* ✅ Show and emphasize search icon */
  .search {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .search .icon-svg {
    width: 29px;
    height: 29px;
    filter: brightness(0) saturate(100%) contrast(150%);
  }

  /* === Mega Menu (fixed + full width) === */
  .mega-menu {
    display: none;
    position: fixed;
    top: 64px; /* height of header (64px + top-info) */
    left: 0;
    width: 100vw;
    background: #fff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding-top: 0;
    padding-bottom: 40px;
    z-index: 9999;
  }

  .mega-menu .container {
    display: flex;
    justify-content: space-between;
    gap: 40px;
  }

  .mega-column {
    display: flex;
    flex-direction: column;
    min-width: 150px;
  }

  .mega-column h4 {
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 12px;
  }

  .mega-column a {
    font-size: 13px;
    margin-bottom: 6px;
    text-decoration: none;
    color: #121212;
    font-weight: 400;
  }

  .mega-column a.shop-all {
    font-weight: 700;
    text-decoration: underline;
    margin-top: 8px;
  }

  .image-column {
    max-width: 220px;
    text-align: center;
  }

  .image-column img {
    width: 100%;
    height: auto;
    border-radius: 6px;
  }

  .image-column .caption {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    display: block;
    margin-top: 8px;
  }

  body {
    overflow-x: hidden;
  }
}

/* === Container === */
.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
}
