/* ==== GLOBAL RESET ==== */
:root {
  --primary-blue: #003366;       /* Dark blue text / accents */
  --accent-gray: #666666;
  --background-main: #ffffff;    /* Main white background */
  --background-cream: #ECECEC;   /* Cream white for footer & nav */
  --white: #ffffff;
  --sale-color: #d32f2f;
  --card-shadow: 0 6px 18px rgba(0, 0, 0, 0.05); /* premium soft shadow */
  --radius-md: 12px;
  --radius-pill: 40px;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  transition: color 0.3s, background-color 0.3s;
}
body {
  background-color: var(--background-gray);
  color: #000;
  direction: ltr;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  line-height: 1.6;
}
html {
  scroll-behavior: smooth;
}
img {
  max-width: 100%;
  height: auto;
}
h2 {
  font-weight: 700;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  letter-spacing: -0.5px;
}

/* ==== RTL MODE ==== */
body.rtl {
  direction: rtl;
  text-align: right;
}
body.rtl .header,
body.rtl .nav-bar,
body.rtl .footer-container,
body.rtl .header-right {
  flex-direction: row-reverse;
}
body.rtl input,
body.rtl textarea {
  direction: rtl;
}

/* ==== NEWS BAR ==== */
.news-bar {
  background-color: var(--primary-blue);
  color: var(--white);
  padding: 10px 20px;
  text-align: center;
  font-size: 14px;
  position: relative;
}
.news-bar .close-btn {
  position: absolute;
  right: 20px;
  top: 10px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 18px;
  cursor: pointer;
}

/* ==== HEADER ==== */


.header-right a {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 600;
}

/* ==== SEARCH BOX ==== */
.search-box {
  position: relative;
  flex: 1;
  margin: 0 40px;
  width: 100%;
}
.search-box input {
  width: 100%;
  padding: 12px 20px;
  font-size: 16px;
  border: none;
  border-radius: 12px;
  background-color: #f1f3f5;
  box-shadow: inset 0 0 0 1px #d0d5db;
}
.search-box input:focus {
  background-color: #fff;
  box-shadow: 0 0 0 2px var(--primary-blue);
}
.brand-preview {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  width: 100%;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  border-radius: 8px;
  margin-top: 8px;
  display: none;
  z-index: 1100;
  padding: 12px 10px;
}
.brand-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
}
.brand-item:hover {
  background-color: #f4f4f4;
}
.brand-item img {
  height: 30px;
}
.brand-item span {
  font-size: 14px;
  font-weight: 500;
  color: #333;
}
	


		/* ==== NAVIGATION BAR ==== */

		/* Light blue background for navigation bar */



.nav-links a {
  text-decoration: none;
  color: var(--primary-blue);
  font-weight: 600;
  font-size: 16px;
  padding: 6px 12px;
  border-radius: 6px;
}
/* Hover effect: dark blue background, white text */
  .nav-links a:hover {
    background-color: var(--primary-blue);
    color: var(--white);
  }
.sale-btn {
  background-color: transparent;
  color: var(--sale-color);
  border: 2px solid var(--sale-color);
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 600;
}
.sale-btn:hover {
  background-color: var(--sale-color);
  color: white;
}

/* ==== CAROUSEL ==== */
.carousel {
  position: relative;
  overflow: hidden;
  border-radius: 5px;
  margin: 40px auto;
  max-width: 2400px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
.carousel-slides {
  display: flex;
  transition: transform 0.8s ease-in-out;
  width: 100%;
}
.carousel-slide {
  min-width: 100%;
  height: 50vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-overlay {
  background: linear-gradient(to right, rgba(0,0,0,0.6), rgba(0,0,0,0.25));
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.carousel-text {
  color: #fff;
  text-align: center;
  max-width: 800px;
  animation: fadeUp 1s ease forwards;
  opacity: 0;
}
.carousel-text h2 {
  font-size: 42px;
  margin-bottom: 15px;
  font-weight: bold;
}
.carousel-text p {
  font-size: 18px;
  margin-bottom: 25px;
}
.carousel-text .btn {
  background-color: var(--primary-blue);
  color: white;
  padding: 12px 30px;
  border-radius: 25px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
}
.carousel-text .btn:hover {
  background-color: #01477c;
}
.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0,0,0,0.5);
  border: none;
  color: white;
  font-size: 24px;
  padding: 10px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 1;
}
.carousel-prev { left: 20px; }
.carousel-next { right: 20px; }
.carousel-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.carousel-dots button {
  width: 12px;
  height: 12px;
  background-color: white;
  border-radius: 50%;
  border: none;
  opacity: 0.5;
  cursor: pointer;
}
.carousel-dots button.active {
  opacity: 1;
  background-color: var(--primary-blue);
}
@keyframes fadeUp {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ==== BEST SELLER TABS ==== */
.best-seller-tabs {
  background-color: var(--white);
  padding: 50px 30px;
}
.best-seller-tabs h2 {
  text-align: center;
  font-size: 30px;
  margin-bottom: 30px;
  color: var(--primary-blue);
  font-weight: 700;
}
.tab-buttons {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.tab-btn {
  padding: 12px 30px;
  border: 2px solid var(--primary-blue);
  background-color: #fff;
  color: var(--primary-blue);
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
}
.tab-btn.active,
.tab-btn:hover {
  background-color: var(--primary-blue);
  color: #fff;
}
.tab-panel {
  display: none;
}
.tab-panel.active {
  display: block;
}
.product-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}
.product-card {
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 16px;
  width: 180px;
  text-align: center;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  position: relative;
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-blue);
  box-shadow: 0 6px 18px rgba(0, 51, 102, 0.08);
}
.product-card img {
  width: 100%;
  height: 140px;
  object-fit: contain;
  margin-bottom: 12px;
  transition: transform 0.3s ease;
}
.product-card:hover img {
  transform: scale(1.05);
}
.product-card h4 {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}
.product-card p {
  color: var(--primary-blue);
  font-size: 14px;
  font-weight: 700;
}
.badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: var(--sale-color);
  color: white;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 20px;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  z-index: 1;
}
	


		/* ==== CATEGORY SECTION ==== */
.category-section {
  background: #f4f7fa;
  padding: 50px 30px;
  text-align: center;
}
.category-section h2 {
  font-size: 28px;
  color: var(--primary-blue);
  margin-bottom: 30px;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 25px;
  justify-items: center;
  align-items: center;
}
.category-card {
  background: white;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  width: 100%;
  max-width: 180px;
}
.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}
.icon-wrapper {
  width: 80px;
  height: 80px;
  margin: 0 auto 15px auto;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffffff, #e6e6e6);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  border: 2px solid #dcdcdc;
}
.icon-wrapper img {
  width: 40px;
  height: 40px;
  filter: grayscale(20%);
  transition: transform 0.3s ease;
}
.category-card:hover .icon-wrapper img {
  transform: scale(1.1);
}
.category-card p {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  color: #333;
}

/* ==== SERVICES SECTION ==== */
.services {
  display: flex;
  justify-content: space-around;
  padding: 45px 20px;
  background-color: var(--white);
  text-align: center;
}
.service-item {
  max-width: 140px;
}
.service-item span {
  display: block;
  font-size: 48px;
  color: var(--primary-blue);
  margin-bottom: 12px;
}
.service-item p {
  font-size: 15px;
  color: #222;
  font-weight: 600;
}
.service-desc {
  font-size: 12px;
  color: #666;
  margin-top: 4px;
}

/* ==== FOOTER ==== */
.footer {
  background: var(--background-cream);
	color: var(--primary-blue);
  padding: 60px 30px 30px;
  color: #000000;
}
.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
}
.footer-column {
  flex: 1;
  min-width: 250px;
}
.footer-column h4 {
  font-size: 18px;
  margin-bottom: 15px;
  color: var(--primary-blue);
  font-weight: 700;
}
.footer-column p,
.footer-column ul {
  font-size: 14px;
  line-height: 1.6;
}
.footer-column ul {
  list-style: none;
  padding-left: 0;
}
.footer-column ul li {
  margin-bottom: 8px;
}
.logo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: start;
  align-items: center;
  margin-top: 10px;
}
.logo-grid img {
  height: 40px;
  width: auto;
  filter: grayscale(100%) brightness(0.7);
  transition: filter 0.3s ease, transform 0.3s ease;
  opacity: 0.7;
}
.logo-grid img:hover {
  filter: none;
  opacity: 1;
  transform: scale(1.05);
}
.newsletter-form {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
.newsletter-form input[type="email"] {
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
  flex: 1;
  font-size: 14px;
}
.newsletter-form button {
  background-color: var(--primary-blue);
  color: #fff;
  border: none;
  padding: 12px 18px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
}
.newsletter-form button:hover {
  background-color: #002244;
}
.footer-bottom {
  text-align: center;
  margin-top: 40px;
  font-size: 13px;
  color: #777;
}

/* ==== SCROLL TO TOP BUTTON ==== */
#scrollTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 100;
  background-color: var(--primary-blue);
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
#scrollTopBtn:hover {
  background-color: #01477c;
}
	


		/* ==== RESPONSIVE MEDIA QUERIES ==== */

/* Tablets & Below (<= 900px) */
@media (max-width: 900px) {
  
  .search-box {
    order: 3;
    width: 100%;
    margin: 0;
  }
  
  
  
  .services {
    flex-wrap: wrap;
    gap: 30px;
  }
  .category-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
  .product-card {
    width: 140px;
    padding: 12px;
  }
  .best-seller-tabs {
    padding: 30px 15px;
  }
  .tab-buttons {
    gap: 15px;
  }
  .tab-btn {
    padding: 10px 18px;
    font-size: 14px;
  }
}

/* Phones (<= 500px) */
@media (max-width: 500px) {
  
  .category-card {
    padding: 15px 10px;
  }
  .tab-btn, .sale-btn, .btn, .lang-toggle {
    padding: 10px 16px;
    font-size: 14px;
  }
  .product-card {
    width: 100%;
    margin-bottom: 16px;
  }
  .product-grid {
    flex-direction: column;
    align-items: center;
  }
  .footer-column {
    padding: 10px 0;
  }
}

/* Small Phones (<= 430px) */
@media (max-width: 430px) {
  .services, .category-grid, .product-grid {
    justify-content: center;
    text-align: center;
  }
  .product-card {
    width: 45%;
  }
}

/* Small Tablets (<= 834px) */
@media (max-width: 834px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
  }
}

/* Super Small Devices */
@media (max-width: 480px) {
  
  .search-box input {
    width: 100%;
    margin-top: 10px;
    font-size: 15px;
  }
  .services {
    padding: 30px 10px;
  }
  .category-card {
    max-width: 140px;
  }
}
		
/* ==== NAVIGATION VISIBILITY CONTROL ==== */

/* Show collapsible mobile menu, hide ribbon nav */

	/* Used only for mobile toggle */
@media (max-width: 600px) {
  
  .nav-links.show {
    display: flex !important;
    flex-direction: column;
    max-height: 500px;
    opacity: 1;
  }
}

  .menu-toggle {
  display: block !important;
  font-size: 26px;
  border: none;
  background: transparent;
  color: var(--primary-blue);
  padding: 8px 12px;
  cursor: pointer;
}

  .mobile-nav {
    box-shadow: 4px 0 14px rgba(0, 0, 0, 0.15);
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
    overflow-y: auto;
    background: linear-gradient(to bottom, #ffffff, #f4f4f4);
    padding-top: 20px;
  }

  .mobile-nav a {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-blue);
    text-decoration: none;
    padding: 12px 0;
    display: block;
    border-bottom: 1px solid #ddd;
  }

  .mobile-nav .sale-btn {
    color: var(--sale-color);
    font-weight: 700;
    background-color: transparent;
    border: none;
  }

  .mobile-nav .mobile-nav-close {
    font-size: 24px;
    margin-left: auto;
    margin-bottom: 15px;
    color: var(--primary-blue);
    cursor: pointer;
  }
}

/* ==== MOBILE NAV (Drawer Style) ==== */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2000; /* ✅ Increased */
  display: none;
}

.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background: #fff;
  box-shadow: 2px 0 12px rgba(0,0,0,0.2);
  padding: 30px 20px;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 2100; /* ✅ Add this line */
}

.mobile-nav.show {
  transform: translateX(0);
}
.mobile-nav-close {
  font-size: 24px;
  margin-left: auto;
  cursor: pointer;
}

/* ==== DESKTOP RIBBON NAV DEFAULT ==== */

		
		/* Collapsible Nav Animations */

body.menu-open::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 99;
}

/* ==== DARK MODE SUPPORT ==== */
@media (prefers-color-scheme: dark) {
  body {
    background-color: #fff;
    color: #e0e0e0;
  }
}
/* ==== NAVIGATION VISIBILITY CONTROL ==== */

@media (min-width: 601px) {
  .menu-toggle {
    display: none !important;
  }

  .mobile-nav-overlay {
    display: none !important;
  }

  
}
		/* 1️⃣ Product Categories – 2 cards per line on mobile */
@media (max-width: 500px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* 2️⃣ Newsletter Subscribe Button – go to next line on mobile */
@media (max-width: 500px) {
  .newsletter-form {
    flex-direction: column;
    align-items: stretch;
  }
  .newsletter-form button {
    width: 100%;
  }
}

/* 3️⃣ Our Suppliers & Top Customers – 8 logos per row on mobile */
@media (max-width: 500px) {
  .logo-grid {
    display: grid !important;
    grid-template-columns: repeat(8, 1fr);
    gap: 10px;
  }
}

/* 4️⃣ About Rich World International – text wraps naturally */
@media (max-width: 500px) {
  .footer-column p {
    word-wrap: break-word;
    white-space: normal;
  }
}
/* 5️⃣ Best Sellers – 2 products per row on mobile */
@media (max-width: 500px) {
  .product-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  .product-card {
    width: 100% !important;
  }
}
	


		/* --- Navigation Bar Layout --- */




/* --- Compact Search Box --- */
.nav-search {
  max-width: 300px; /* Change this to adjust size easily */
}

.nav-search input {
  width: 100%;
  padding: 10px 14px; /* Search box size */
  font-size: 14px;
  border: 0px solid #ccc;
  border-radius: 10px; /* Search box edgs */
  background-color: #f1f3f5;
  transition: all 0.2s ease-in-out;
}

.nav-search input:focus {
  outline: none;
  background-color: #fff;
  box-shadow: 0 0 0 2px var(--primary-blue);
}

.nav-search .brand-preview {
  width: 100%;
}

	


		

/* Hover effect */
.delivery-content:hover {
  background-color: #004b99; /* Brighter blue */
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

@media (max-width: 600px) {
  
 
  
}
		@media (max-width: 500px) {
  /* Keep header elements in one line */
  
    
  .delivery-title::after {
    content: "🚚 Delivery Available through our Qatar"; /* Override text for mobile */
    display: inline;
  }
  
  .delivery-title::after {
    visibility: visible;
    position: absolute;
    left: 50%;                /* Move the left edge to 50% */
    transform: translateX(-50%); /* Shift it back by half its width */
  }
  
}
	


		/* ------------ DESKTOP HEADER: grid with center delivery banner ------------ */
@media (min-width: 601px) {
  
    /* Desktop: hide mobile-only icons */
  .menu-toggle { display: none !important; }

    /* Desktop nav bar: nav-links right aligned, search box after it */
      .nav-search {
    display: block !important; /* Always visible on desktop */
    margin-left: 12px;
    width: 350px;
    max-width: 40%;
  }
}
		.nav-bar {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start; /* keep items flowing left */
    gap: 20px;
    flex-wrap: wrap;
    background-color: var(--white);
    padding: 12px 20px;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 1000;
  }

/* Optional alternate background */
.nav-bar--light {
  background-color: #F4F9FF;
}


/* ------------ MOBILE HEADER: flex, specific order + delivery-banner second line ------------ */
@media (max-width: 600px) {
  /* Header becomes a compact flex row */
  

  /* Mobile order: menu toggle -> logo -> header-right (search/account/cart) */
  .menu-toggle {
    order: 2;
    display: inline-flex !important;
    font-size: 22px; /* slightly smaller for mobile */
    padding: 6px;
    margin-right: 8px; /* space between toggle and logo */
  }
}

  /* show mobile icons, hide desktop-only lang toggle */
  .search-icon,
  .cart-icon { display: inline-flex; }
  
  .nav-search {
    display: none; /* Hidden until icon clicked */
    width: 100%;
    margin-top: 10px;
  }

  .nav-search.active {
    display: block; /* Show when toggled */
  }

  .search-icon {
    display: inline-flex !important;
    cursor: pointer;
    align-items: center;
  }

  .search-icon img {
    height: 25px;
    width: auto;
    display: block;
  }
		
/* small safety: ensure .menu-toggle hidden for large screens if any conflicting rule */
@media (min-width: 601px) {
  .menu-toggle, 
	.search-icon{ display: none !important; }
}
@media (max-width: 600px) {
  
 
}
		@media (max-width: 600px) {
  
 }
@media (max-width: 600px) {
  

}
.mobile-lang-toggle {
  padding: 15px;
  border-top: 1px solid #ccc;
  text-align: center;
}
.mobile-lang-toggle button {
  padding: 8px 15px;
  border: none;
  background: #222;
  color: #fff;
  border-radius: 5px;
  cursor: pointer;
}
@media (max-width: 600px) {
  .nav-bar {
    flex-direction: column;
    gap: 10px;
    padding: 10px 20px;
  }
}
		/* main desktop/default */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;

  background-color: var(--white);
  padding: 12px 20px;
  border-bottom: 1px solid #ddd;
  gap: 15px;
}
		 @media (max-width: 600px) {
  /* Wrap header + nav-bar together in one fixed container */
  .header,
  .nav-bar {
    position: fixed;
    left: 0;
    width: 100%;
    background-color: var(--white);
    z-index: 2000;
  }

  /* Header stays at the very top */
  .header {
    top: 0;
    border-bottom: 1px solid #e0e0e0;
  }

  /* Nav bar sticks right under the header */
  .nav-bar {
    top: 60px; /* Adjust to match your .header height */
    border-bottom: 1px solid #e0e0e0;
  }

  /* Push page content down so it's not hidden under fixed bars */
  body {
    padding-top: 110px; /* header height + nav height */
  }
}


/* mobile adjustments */
@media (max-width: 600px) {
  .header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    gap: 10px;
    flex-wrap: wrap; /* ✅ allow items to move to next line */
  }
}
@media (min-width: 900px) {
  .header {
    display: grid;
    grid-template-columns: auto 1fr auto; /* left / center / right */
    align-items: center;
    gap: 12px;
  }
}
		/* ===== merged: .logo ===== */
.logo {
  font-weight: 700;
  font-size: 26px;
  color: var(--primary-blue);
  user-select: none;
}

/* Desktop tweak */
@media (min-width: 601px) {
  .logo {
    justify-self: start;
  }
}

/* Mobile tweak */
@media (max-width: 600px) {
  .logo {
    order: 1;
    display: flex;
    align-items: center;
  }
}
/* ===== merged: .header-right ===== */
.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    order: 3;           /* Moves icons to the far right */
    margin-left: auto;  /* Push them all the way right */
  }
}

/* Desktop / large screens */
@media (min-width: 601px) {
  .header-right {
    justify-self: end;
    gap: 12px; /* slightly smaller spacing if desired */
  }
}

/* Tablet & mobile adjustments */
@media (max-width: 900px) {
  .header-right {
    order: 2; /* adjust placement */
    gap: 15px;
  }
}

/* Extra-small phone tweaks */
@media (max-width: 500px) {
  .header-right {
    width: 100%;
    justify-content: flex-end; /* push icons/links to right */
    gap: 10px;
  }
}
/* ===== merged: .lang-toggle ===== */
.lang-toggle {
  border: 1px solid var(--primary-blue);
  padding: 5px 14px;
  border-radius: 20px;
  font-weight: 600;
  background: transparent;
  color: var(--primary-blue);
  cursor: pointer;
}
@media (max-width: 600px) {
  .account-icon,
  .cart-icon {
    display: none !important;
  }
}

/* Desktop (show language toggle) */
@media (min-width: 601px) {
  .lang-toggle {
    display: inline-flex;
  }
}

/* Mobile (hide language toggle) */
@media (max-width: 600px) {
  .lang-toggle {
    display: none !important;
  }
}

/* Extra small phone tweaks */
@media (max-width: 500px) {
  .lang-toggle {
    padding: 5px 10px; /* smaller padding */
  }
}
/* ==== DELIVERY BANNER & CONTENT (max-width: 600px) ==== */
@media (max-width: 600px) {
  .delivery-banner {
    background-color: #e0e0e0;   /* light gray outer pill */
    border-radius: 70px;         /* pill shape */
    padding: 4px;                /* small gap around inner pill */
	max-width: 450px; /* or whatever fits your design */
    display: flex;
    justify-content: center;
    align-items: center;
    width: auto;                 
    margin: 6px auto 0 auto;     /* auto margins center it in flex/flow */

    flex-basis: 100%;            
    order: 4;                    /* right after header row */
    margin-top: 8px;   
	   justify-content: center;
  }
}
  .delivery-content {
    background-color: #003366;   /* dark blue inner pill */
    border-radius: 40px;         /* pill shape */
    padding: 2px;                /* small gap around inner pill */
	max-width: 440px; /* or whatever fits your design */
    display: flex;
    justify-content: center;
    align-items: center;
    width: auto;                 
    margin: 6px auto 0 auto;     /* auto margins center it in flex/flow */

    flex-basis: 100%;            
    order: 4;                    /* right after header row */
    margin-top: 1px;   
	   justify-content: center;
}
/* ==== DELIVERY BANNER (min-width: 601px) ==== */
@media (min-width: 601px) {
  .delivery-banner {
    position: absolute;           /* float in header */
    left: 50%;                     /* horizontal center */
    transform: translateX(-50%);   /* perfect centering */
    background-color: #e0e0e0;
    border-radius: 40px;
    padding: 6px 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    white-space: nowrap;           /* keep it in one line */
    margin: 0;                     /* remove margins */
    order: unset;                  /* ignore flex order */
    width: auto;
  }
}
/* ==== DELIVERY CONTENT BASE ==== */
.delivery-content {
  background-color: #003366; /* Dark blue pill */
  color: white;
  border-radius: 40px;
  padding: 12px 30px;
  display: inline-block;
  transition: all 0.3s ease;
  cursor: pointer;
}

/* ==== DELIVERY CONTENT (<= 500px) ==== */
@media (max-width: 500px) {
  .delivery-content {
    padding: 6px 6px; /* Make banner smaller */
  }
}
/* ==== DELIVERY TITLE BASE ==== */
.delivery-title {
  font-size: 16px;
  font-weight: bold;
}

/* ==== DELIVERY TITLE (<= 600px) ==== */
@media (max-width: 600px) {
  .delivery-title {
    font-size: 14px;
  }

  /* later overrides inside the same breakpoint */
  .delivery-title {
    font-size: 13px;
    font-weight: bold;
    color: white;
    white-space: nowrap;
  }
}

/* ==== DELIVERY TITLE (<= 500px) ==== */
@media (max-width: 500px) {
  /* Compact delivery banner text on smaller mobile */
  .delivery-title {
    font-size: 13px;
    white-space: nowrap; /* Prevent breaking into two lines */
  }

  /* Hide original text on extra small devices */
  .delivery-title {
    visibility: hidden;
    position: relative;
  }
}
/* ==== DELIVERY SUBTITLE BASE ==== */
.delivery-subtitle {
  font-size: 13px;
  opacity: 0.85;
}

/* ==== DELIVERY SUBTITLE (<= 600px) ==== */
@media (max-width: 600px) {
  .delivery-subtitle {
    font-size: 12px;
  }
}
/* ==== NAV LINKS BASE ==== */
.nav-links {
  display: flex;
  gap: 40px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 10px;
  transition: max-height 0.4s ease, opacity 0.4s ease;
  overflow: hidden;
}

/* ==== TABLETS & BELOW (<= 900px) ==== */
@media (max-width: 900px) {
  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }
}

/* ==== SMALL DEVICES (<= 600px) ==== */
@media (max-width: 600px) {
  .nav-links {
    display: none !important;
    max-height: 0;
    opacity: 0;
  }
}

/* ==== SMALLER PHONES (<= 500px) ==== */
@media (max-width: 500px) {
  .nav-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
  }
}

/* ==== DESKTOP (>= 601px) ==== */
@media (min-width: 601px) {
  .nav-links {
    display: flex !important;
    margin-left: 0; /* remove auto push */
    justify-content: flex-start; /* align to left */
    gap: 20px;
    align-items: center;
  }
}