/* Exact Utopya Clone Styling matched to ODIVELAS TEL Logo */
:root {
  /* Logo Derived Colors */
  --logo-dark-blue: #0b3c5d;
  --logo-deep-purple: #4a3e75;
  --logo-gold: #c49b38;
  --logo-accent-blue: #00a8a8;

  /* Layout Colors from Screenshot */
  --bg-page: #f3f5f8;
  --bg-navbar: #0b3c5d;
  --bg-white: #ffffff;

  --text-light: #f8fafc;
  --text-dark: #1f2937;
  --text-muted: #64748b;

  --nav-height: 65px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

body {
  background-color: var(--bg-page);
  color: var(--text-dark);
  overflow-x: hidden;
  /* Necessary for full-width breakouts */
}

/* =======================================
   NAVBAR (Exactly matching screenshot)
   ======================================= */
header.navbar {
  background-color: var(--bg-navbar);
  min-height: 80px; 
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
}

header.navbar .nav-container {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav-left {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.menu-icon {
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 24px;
  cursor: pointer;
  display: none;
  /* Hidden on large screen when categories navbar is shown */
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 12px;
}

.logo-wrapper {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 6px;
  background: #fff;
  /* White background to make the logo pop against dark blue */
}

.brand-logo {
  max-height: 35px;
  width: auto;
  object-fit: contain;
}

.brand-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: 0.5px;
}

@media (max-width: 480px) {
  .brand-text {
    font-size: 16px;
  }
}

.brand-text.dark {
  color: #1a2a44;
}

/* Country Selector */
.country-selector {
  display: flex;
  align-items: center;

  padding-left: 20px;
}

.country-btn {
  background: #2b3458;
  /* Matching the blue in screenshot */
  border: none;
  border-radius: 4px;
  width: 38px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}

.country-btn:hover {
  background: #00a8a8;
}

.nav-flag {
  width: 22px;
  height: auto;
  display: block;
}

/* Middle: Search Bar */
.nav-middle {
  flex: 1; 
  padding: 0 40px;
  display: flex;
  justify-content: center;
}

@media (max-width: 1200px) {
  .nav-middle {
    padding: 0 20px;
  }
}

.search-bar {
  width: 100%;
  max-width: 700px;
  height: 44px;
  background: var(--bg-white);
  border-radius: 8px; /* Live server has slightly rounded corners, not full pill */
  display: flex;
  align-items: center;
  padding: 0 10px 0 20px;
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 14px;
  color: var(--text-dark);
}

.search-btn {
  background: none;
  border: none;
  color: var(--logo-accent-blue);
  font-size: 18px;
  cursor: pointer;
  padding: 0 10px;
}

/* Right: Actions */
.nav-right {
  display: flex;
  align-items: center;
  gap: 25px;
  flex: 0 0 auto;
}

.nav-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--text-light);
  gap: 4px;
  transition: opacity 0.2s;
}

.nav-action:hover {
  opacity: 0.8;
}

.nav-action i {
  font-size: 20px;
}

.nav-action span {
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}

@media (min-width: 1200px) {
  .nav-right {
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .nav-action span {
    display: none;
  }
  .nav-right {
    gap: 15px;
  }
}

/* =======================================
   CATEGORIES NAV (Below main navbar)
   ======================================= */
.categories-nav {
  background-color: var(--bg-white);
  border-bottom: 1px solid #e5e7eb;
  height: 50px;
  width: 100%;
  z-index: 900;
}

.categories-nav .nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0px;
  height: 100%;
}

.categories-list {
  display: flex;
  align-items: center;
  justify-content: space-between; /* Spread across full width */
  list-style: none;
  height: 100%;
  position: relative;
  padding-left: 0px !important;
  /* Anchor for mega menu */
}

.cat-item {
  height: 100%;
  display: flex;
  align-items: center;
}

.cat-item a {
  text-decoration: none;
  color: #1e354e;
  font-size: 15px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
  transition: color 0.2s;
  display: flex;
  /* Ensure it is flex */
}

.cat-item a i {
  color: #00a8a8;
  font-size: 15px;
}

.cat-item a:hover {
  color: var(--logo-accent-blue);
}

.cat-sep {
  color: #e5e7eb;
  font-size: 20px;
  user-select: none;
}

/* Mega Menu Styles */

.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border-radius: 0 0 12px 12px;
  padding: 30px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.has-dropdown:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-menu-container {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.mega-column {
  flex: 1;
  min-width: 150px;
  padding-right: 20px;
  max-height: 650px; /* Limit individual column height */
  overflow-y: auto; /* Scroll only if column is too long */
}

/* Custom scrollbar for mega-columns */
.mega-column::-webkit-scrollbar {
  width: 4px;
}
.mega-column::-webkit-scrollbar-track {
  background: transparent;
}
.mega-column::-webkit-scrollbar-thumb {
  background: #e2e8f0;
  border-radius: 10px;
}
.mega-column::-webkit-scrollbar-thumb:hover {
  background: #cbd5e1;
}

.mega-column:not(:last-child) {
  border-right: 1px solid #f1f5f9;
}

.mega-header {
  background: #f1f5f9;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 15px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 15px;
  text-transform: none;
}

.has-dropdown:hover > a {
  color: var(--logo-accent-blue);
}

.mega-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mega-links li {
  margin-bottom: 8px;
}

.mega-links li a {
  color: #64748b;
  font-size: 13px;
  font-weight: 400;
  text-decoration: none;
  transition: color 0.2s;
  display: block;
  gap: 0;
  /* Override default gap if any */
}

.mega-links li a:hover {
  color: #00a8a8;
}

.mt-20 {
  margin-top: 25px;
}

.main-cat i {
  font-size: 18px !important;
}

@media (max-width: 1200px) {
  .categories-nav {
    display: none;
  }

  .menu-toggle-btn {
    display: block !important;
  }
}

/* =======================================
   MOBILE SIDEBAR
   ======================================= */
.mobile-sidebar {
  position: fixed;
  top: 0;
  left: -300px;
  /* Initially hidden off-screen */
  width: 300px;
  height: 100%;
  background: var(--bg-white);
  z-index: 5000; /* Increased to be above everything */
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.menu-toggle-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
}

.mobile-sidebar.open {
  left: 0;
}

.sidebar-header {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f1f5f9;
}

.close-sidebar {
  background: none;
  border: none;
  font-size: 20px;
  color: var(--logo-dark-blue);
  cursor: pointer;
}

.sidebar-content {
  flex: 1;
  overflow: hidden; /* Prevent extra scroll from inactive menus */
  padding: 0; /* Padding moved to inner wrappers */
  position: relative;
}

/* Apple Submenu Container */
.submenu-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  z-index: 10;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.submenu-inner-scroll {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 20px;
}

.menu-section {
  padding: 10px 0;
  border-bottom: 4px solid #f8faff;
}

.menu-section:last-child {
  border-bottom: none;
}

.section-title {
  padding: 15px 20px 8px;
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.submenu-container.show {
  transform: translateX(0);
}

.submenu-header-nav {
  padding: 10px 20px;
  background: #f8fbff;
  border-bottom: 1px solid #edf4ff;
}

.back-btn {
  background: none;
  border: none;
  color: #00a8a8;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
}

.submenu-title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
}

.title-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.title-left i {
  color: #00a8a8;
  font-size: 20px;
}

.title-left span {
  font-size: 20px;
  font-weight: 700;
  color: #1a2a44;
}

.voir-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border: 1.5px solid #00a8a8;
  border-radius: 20px;
  color: #00a8a8;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.submenu-links {
  list-style: none;
}

.submenu-links li a {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  color: #334155;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  border-bottom: 1px solid #f1f5f9;
}

.sidebar-links {
  list-style: none;
}

.sidebar-links li a {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 14px 24px;
  text-decoration: none;
  color: #1a2a44;
  font-weight: 500;
  font-size: 16px;
  transition: background 0.2s;
}

.sidebar-category-main a {
  font-size: 18px;
  font-weight: 700;
}

.cat-icon-wrap {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00a8a8;
  font-size: 18px;
}

.sidebar-links li a i.fa-chevron-right {
  margin-left: auto;
  color: #9ca3af;
  font-size: 14px;
}

.ms-auto {
  margin-left: auto !important;
}

.sidebar-links li a:hover {
  background-color: #f8fafc;
}

.sidebar-main-wrapper {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px 0;
}

.sidebar-sep {
  height: 1px;
  background: #e5e7eb;
  margin: 8px 10px;
}

/* Sidebar Auth Buttons Styling */
.sidebar-auth-links {
    margin-top: 10px;
}

.sidebar-auth-links .Authe-btn {
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 30px; /* Elegant Pill Shape */
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    padding: 0 25px;
    white-space: nowrap;
    flex: 1; /* Fill the available space equally */
}

.sidebar-auth-links .sign-in-btn {
    background-color: var(--logo-dark-blue);
    color: #fff;
    border: none;
    box-shadow: 0 4px 12px rgba(11, 60, 93, 0.15);
}

.sidebar-auth-links .sign-in-btn:hover {
    background-color: #1a2a44;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(11, 60, 93, 0.25);
}

.sidebar-auth-links .register-btn {
    background-color: #fff;
    color: var(--logo-dark-blue);
    border: 1.5px solid var(--logo-dark-blue);
}

.sidebar-auth-links .register-btn:hover {
    background-color: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05);
}

.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.sidebar-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* =======================================
   MAIN CONTENT AREA
   ======================================= */
.main-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 20px !important; /* Perfect Vertical Alignment */
}

/* Base structural layout for the banner mimicking the Samsung Galaxy slide */
.main-content .banner-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 5;
  border-radius: 16px;
  overflow: hidden;
  isolation: isolate;
  /* Force clipping fix for WebKit browsers */
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  mask-image: radial-gradient(white, black);
}

@media (max-width: 768px) {
  .main-content .banner-wrapper {
    aspect-ratio: 16 / 6;
  }
}

.banner-track {
  display: flex;
  height: 100%;
  /* Width is handled by JS based on number of slides */
  transition: transform 0.5s ease-in-out;
  will-change: transform;
}

.banner-slide {
  flex: 0 0 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: contrast;
  transform: translateZ(0);
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-white);
  border: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
}

@media (max-width: 768px) {
  .slider-btn {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
  .slider-btn.left {
    left: 10px;
  }
  .slider-btn.right {
    right: 10px;
  }
}

.slider-btn.left {
  left: 24px;
}

.slider-btn.right {
  right: 24px;
}

.banner-content {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  color: var(--text-light);
}

.banner-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.brand-badge {
  font-weight: 800;
  font-size: 28px;
  letter-spacing: 2px;
}

.badge-pill {
  background: var(--bg-white);
  color: var(--text-dark);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
  display: inline-block;
  margin-bottom: 8px;
}

.btn-shop-now {
  display: inline-block;
  background: #00a8a8;
  color: white;
  padding: 12px 28px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 10px;
  transition: all 0.3s;
}

.btn-shop-now:hover {
  background: #047b7b;
  transform: translateY(-2px);
}

.banner-subtitle {
  font-size: 24px;
  font-weight: 600;
}

.banner-mockup {
  display: flex;
  gap: 10px;
  transform: perspective(600px) rotateY(-20deg) scale(1.5);
  opacity: 0.8;
}

.mockup-phone {
  font-size: 150px;
  color: rgba(255, 255, 255, 0.8);
  filter: drop-shadow(-10px 10px 10px rgba(0, 0, 0, 0.5));
}

.phone-1 {
  transform: translateY(40px);
}

.phone-2 {
  transform: translateY(0);
  color: var(--logo-gold);
}

.phone-3 {
  transform: translateY(-40px);
}

/* =======================================
   NEW ARRIVALS SECTION
   ======================================= */
.section-container {
  margin-top: 40px;
  width: 100% !important; /* Content ko center mein rakhne ke liye */
}

.section-header {
  padding: 0 !important; /* Header edges se touch hoga */
  margin-bottom: 24px;
  display: flex;
}

.section-title-wrap {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.section-title {
  font-size: 26px;
  font-weight: 700;
  color: #111a2c;
}

.section-subtitle {
  font-size: 14px;
  color: #707b8e;
  font-weight: 400;
}

/* See All Button logic */
.section-controls {
  margin-left: auto; /* Right side mein push karne ke liye */
  display: flex;
  align-items: center;
}

.page-count {
  color: #707b8e;
}

.separator {
  color: #d1d5db;
}

.see-all {
  color: #00a8a8;
  text-decoration: none;
  font-weight: 600;
}

.see-all:hover {
  text-decoration: underline;
}

/* =======================================
   PRODUCT CARDS GRID
   ======================================= */
.carousel-wrapper {
  position: relative;
  width: 100%;
  /* Allow buttons to overflow the wrapper without being cut */
  overflow: visible;
}

.carousel-wrapper .slider-btn {
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
  transition: all 0.2s ease;
  z-index: 15; /* Higher than cards */
}

.carousel-wrapper .slider-btn:hover {
  background: var(--logo-accent-blue);
  color: white;
  box-shadow: 0 6px 15px rgba(37, 99, 235, 0.3);
}

.carousel-wrapper .slider-btn.left {
  left: -20px; /* Moved inward to prevent clipping */
}

.carousel-wrapper .slider-btn.right {
  right: -20px; /* Moved inward to prevent clipping */
}
.slider-btn-left {
  left: 2px !important; /* Moved inward to prevent clipping */
}
.slider-btn-right {
  right: 2px !important; /* Moved inward to prevent clipping */
}

.product-grid {
  display: flex;
  /* Change to flex for single row */
  overflow-x: auto;
  /* Enable horizontal scroll */
  scroll-behavior: smooth;
  /* Smooth scroll transition */
  gap: 0 !important;
  padding: 0px 0;
  scrollbar-width: none;
  /* Firefox: hide scrollbar */
}

.product-grid::-webkit-scrollbar {
  display: none;
  /* Chrome/Safari: hide scrollbar */
}

.product-card {
  flex: 0 0 calc((100% - 64px) / 5) !important;
  min-width: calc((100% - 64px) / 5) !important;
  margin-right: 16px !important;
  background: var(--bg-white);
  border-radius: 16px;
  padding: 15px;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
  cursor: pointer;
  min-height: 100%;
  border: 1px solid #f1f5f9;
  display: flex;
  flex-direction: column;
}

.product-card:last-child {
  margin-right: 0 !important;
}

@media (max-width: 1200px) {
  .product-card {
    flex: 0 0 calc((100% - 40px) / 3.5) !important;
  }
}

@media (max-width: 768px) {
  .product-card {
    flex: 0 0 calc((100% - 16px) / 2);
  }
}

@media (max-width: 480px) {
  .product-card {
    flex: 0 0 calc((100% - 16px) / 2);
  }
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.card-top {
  display: flex;
  justify-content: end;
  align-items: center;
  margin-top: 5px;
}
.card-new-arrivals {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 5px;
}
.card-new-arrivals img {
  width: 20px;
}

.product-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  height: 180px;
  /* Standardize height */
}

.product-image-placeholder img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  /* Ensure images fit inside without cutting */
}

.card-badge {
  background-color: #e0f2fe;
  color: white !important;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.brand-mini {
  font-size: 18px;
  color: #000;
}

.font-logo {
  font-family: "Inter", sans-serif;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: -0.5px;
}

.product-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-login-small {
  background: #00a8a8;
  color: white;
  text-align: center;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
}

.product-name {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.4;
  margin: 0;
}

.product-desc {
  font-size: 12px;
  color: #64748b;
  margin: 0;
}

/* Favorite Products Blur Overlay */
.blur-container {
  position: relative;
  overflow: hidden;
  min-height: 480px;
  /* Slight increase for full-width presence */
  background-image: url("https://www.utopya.com/static/version1774427152/frontend/Mikii/utopya-ux/en_US/assets/front/images/bg-favorite-products.png");
  background-size: cover;
  background-position: center;
  border-radius: 0;
  /* Full Width Breakout */
  position: relative;
  left: 0;
}

.blur-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #f3f5f8e3;
  /* More white frosted effect as in image */
  backdrop-filter: blur(8px);
  /* Increased blur */
  -webkit-backdrop-filter: blur(8px);
}

.product-grid.blurred {
  display: none;
  /* Hide the placeholder cards since we are using an actual background image now */
}

.btn-login-large,
.btn-signup-large {
  background: #00a8a8;
  /* Correct vibrant blue */
  color: white;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s;
  border: none;
}

.btn-login-large:hover,
.btn-signup-large:hover {
  background: #00a8a8;
  transform: translateY(-2px);
}

.brands-row {
  margin-top: 40px;
  position: relative;
  width: 100% !important; /* Container ke andar rehne ke liye */
  display: flex;
  justify-content: center;
  margin-left: 0 !important; /* Full-width hack hataya */
}
.brands-grid {
  display: flex;
  gap: 20px;
  width: 100%;
}

.brand-box {
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;

  transition: transform 0.3s;
  cursor: pointer;
}

.brand-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.9) contrast(1.1);
}

.brand-box:hover {
  transform: translateY(-5px);
}

/* Featured Products Section Grid */
.featured-main-grid {
  display: grid;
  grid-template-columns: 410px 1fr;
  gap: 20px;
  align-items: flex-start;
}

@media (max-width: 1024px) {
  .featured-main-grid {
    grid-template-columns: 1fr;
  }
  .featured-promo {
    display: none;
  }
}

.featured-promo {
  width: 100%;
  height: 100%;
}

.featured-promo img {
  width: 100%;

  /* Adjust to match card grid height */
  object-fit: cover;
  border-radius: 16px;
}

.featured-carousel {
  position: relative;
  width: 100%;
  min-width: 0; /* Prevents flex children from pushing grid width */
  overflow: hidden;
}

.mini-grid {
  display: flex;
  overflow-x: auto;
}

.mini-grid .product-card {
  flex: 0 0 calc((100% - 16px) / 2);
}

@media (min-width: 1200px) {
  .mini-grid .product-card {
    flex: 0 0 calc(25% - 12px);
  }
}

@media (max-width: 1024px) {
  .mini-grid .product-card {
    flex: 0 0 calc((100% - 16px) / 2);
  }
}

/* Main Site Footer */
.site-footer {
  background: #0b3c5d;
  /* Deep navy matching screenshot */
  color: #ffffff;
  padding: 0;
  margin-top: 80px;
  position: relative;
  font-family: "Inter", sans-serif;
}

.footer-top-accent {
  height: 4px;
  background: #00a8a8;
  /* Bright blue line */
  width: 100%;
}

.footer-container {
  padding: 60px 40px 40px 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.footer-main {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 80px;
  flex-wrap: wrap;
}

.footer-col {
  flex: 1;
  min-width: 200px;
}

.col-logo {
  max-width: 150px;
}

.footer-brand-logo {
  width: 100px;
}

.footer-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 24px;
  color: #ffffff;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-icon {
  font-size: 16px;
  display: inline-flex;
  width: 20px;
  justify-content: center;
}

.footer-links a {
  color: #94a3b8;
  /* Muted text */
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #ffffff;
}

.col-certs {
  max-width: 250px;
}

.certs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.cert-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #64748b;
  padding: 12px;
  text-align: center;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cert-box.span-2 {
  grid-column: span 2;
}

/* Footer Bottom Section */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom-left {
  display: flex;
  align-items: center;
  gap: 32px;
}

.copyright {
  color: #64748b;
  font-size: 14px;
}

.flags-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.flags-row img {
  height: 14px;
  border-radius: 2px;
}

.footer-bottom-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-bottom-right a {
  color: #6b6a6a;
  font-size: 12px;
  text-decoration: none;
}

.show-prices-label {
  color: #94a3b8;
  font-size: 14px;
}

/* Toggle Switch Styling */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #334155;
  transition: 0.4s;
  border-radius: 24px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .toggle-slider {
  background-color: #3b82f6;
}

input:checked + .toggle-slider:before {
  transform: translateX(20px);
}

/* Custom Country Modal (avoiding Bootstrap conflicts) */
.country-modal {
  position: fixed;
  top: 50%;
  left: 35%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 320px;
  max-width: 95%;
  height: 80vh;
  /* Controlled height for scrolling */
  max-height: 90vh;
  background: #fff;
  border-radius: 12px;
  z-index: 3000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
}

.country-modal.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.country-modal-dialog {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.country-modal-header {
  padding: 20px 20px 10px 20px;
  /* Moved padding here */
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f1f5f9;
}

.country-modal-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
}

.country-modal .close-modal {
  background: none;
  border: none;
  font-size: 24px;
  color: #94a3b8;
  cursor: pointer;
}

.country-modal-body {
  padding: 20px;
  /* Moved padding here */
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
  min-height: 0;
}

/* Custom Visible Scrollbar for Country List */
.country-modal-body::-webkit-scrollbar {
  width: 6px;
}

.country-modal-body::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 10px;
}

.country-modal-body::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

.country-modal-body::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.country-modal-body p {
  font-size: 14px;
  line-height: 1.6;
  color: #4f5964;
  margin-bottom: 24px;
}

.country-modal .country-search {
  position: relative;
  margin-bottom: 32px;
}

.country-modal .country-search input {
  width: 100%;
  height: 48px;
  padding: 10px 15px;
  padding-right: 48px;
  font-size: 15px;
  background: #f1f5f9;
  border: 1px solid transparent;
  border-radius: 8px;
  outline: none;
}

.country-modal .country-search i {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #3b82f6;
  font-size: 18px;
}

.current-location h4,
.countries-list-container h4 {
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 16px;
}

.country-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  margin: 0 -16px;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.2s;
}

.country-item:hover {
  background: #f8fafc;
}

.country-item.active {
  background: #f1f5f9;
}

.country-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.country-info img {
  width: 24px;
  height: auto;
  border-radius: 2px;
}

.country-info span {
  font-size: 15px;
  font-weight: 500;
  color: #1e293b;
}

.currency {
  font-size: 14px;
  color: #64748b;
}

.countries-list {
  display: flex;
  flex-direction: column;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.loading-countries {
  text-align: center;
  padding: 20px;
  color: #64748b;
}
.breadcrumb-nav {
  padding: 15px 0px;
}
.breadcrumb-nav-h1 {
  font-size: 32px;
  font-weight: 700 !important;
  color: #1a1a1b;
}
/* Responsive */
@media (max-width: 1230px) {
  .categories-list {
    gap: 10px;
  }
  .cat-item a {
    gap: 10px;
  }
}
@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 768px) {
  header.navbar {
    min-height: auto;
    padding: 8px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  }

  .nav-container {
    display: flex !important;
    flex-wrap: wrap !important;
    row-gap: 10px;
    padding: 0 12px;
    align-items: center;
    justify-content: space-between;
  }

  .nav-left {
    order: 1;
    flex: 0 0 auto;
  }

  .nav-right {
    order: 2;
    flex: 0 0 auto;
    gap: 15px;
    display: flex;
    align-items: center;
  }

  .nav-middle {
    order: 3;
    flex: 1 1 calc(100% - 60px); 
    padding: 0;
    display: flex !important;
    align-items: center;
  }

  .search-bar {
    width: 100%;
    height: 42px;
    padding: 0 10px 0 15px;
    border-radius: 6px;
  }

  .menu-toggle-btn {
    display: block !important;
    order: 4; 
    color: white;
    font-size: 26px;
    flex: 0 0 auto;
    margin-left: auto;
  }
  .nav-action span {
    display: none;
  }

  .nav-action i {
    font-size: 20px;
    color: var(--text-light);
  }

  .section-header {
    margin-bottom: 16px !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0 !important;
    width: 100% !important;
  }

  .main-content {
    padding: 12px !important;
  }

  .section-title-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .section-subtitle {
    display: block;
    margin-top: 4px;
  }

  .carousel-wrapper .slider-btn {
    display: none;
  }

  .banner-title {
    font-size: 28px;
  }

  .banner-mockup {
    display: none;
  }
}

@media (min-width: 769px) and (max-width: 1200px) {
  .menu-toggle-btn {
    display: block !important;
    order: 5;
    margin-left: 15px;
  }
}

.justify-content-end {
  justify-content: end !important;
}

@media (max-width: 767px) {
  .favorite-products {
    display: none;
  }
  .brands-row {
      margin-top: 10px;
      overflow-x: auto;
      scrollbar-width: none;
  }
  .brands-row::-webkit-scrollbar {
      display: none;
  }
  .brands-grid {
      display: flex !important;
      gap: 15px;
      padding-bottom: 10px;
  }
  .brand-box {
      flex: 0 0 280px;
      height: 140px !important;
      border-radius: 10px;
      overflow: hidden;
  }
  .brand-box img {
      width: 100%;
      height: 100%;
      object-fit: cover;
  }
}
/* Product Listing Page Grid */
.listing-product-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 7px !important;
  width: 100% !important;
  margin-top: 20px;
}

.listing-product-grid .product-card {
  flex: 0 0 calc(20% - 16px) !important; 
  margin: 0 !important;
  box-sizing: border-box;
}

/* Inner Page Listing Grid: Responsive Hierarchy */
@media (max-width: 1420px) and (min-width: 1221px) {
  .listing-product-grid .product-card {
    flex: 0 0 calc(25% - 15px) !important;
    max-width: calc(25% - 15px);
  }
}

@media (max-width: 1220px) and (min-width: 769px) {
  .listing-product-grid .product-card {
    flex: 0 0 calc(33.33% - 14px) !important;
    max-width: calc(33.33% - 14px);
  }
}

@media (max-width: 768px) and (min-width: 520px) {
  .listing-product-grid {
    gap: 8px !important;
  }
  .listing-product-grid .product-card {
    flex: 0 0 calc(50% - 4px) !important;
    max-width: calc(50% - 4px);
    padding: 10px;
    min-height: auto;
  }
  .listing-product-grid .product-image-placeholder {
      height: 160px;
      width: 100%;
  }
  .listing-product-grid .product-image-placeholder img {
      height: 160px;
  }
}

@media (max-width: 519px) {
  .listing-product-grid .product-card {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    padding: 20px;
  }
  .listing-product-grid .product-image-placeholder {
      height: 250px;
      width: 100%;
  }
  .listing-product-grid .product-image-placeholder img {
      height: 250px;
  }
}

/* =======================================
   PRODUCT DETAILS PAGE
   ======================================= */
.product-card {
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.product-image-box {
  background-color: var(--bg-page);
  border-radius: 12px;
  height: 380px;
}
.product-slider-btn {
  width: 36px;
  height: 36px;
  background: white;
  border: none;
  color: #a1a1aa;
}
.product-main-image {
  max-height: 280px;
  max-width: 80%;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.thumbnail-item {
  width: 65px;
  height: 65px;
  border-radius: 8px;
  border: 1px solid #dee2e6;
  padding: 4px;
  cursor: pointer;
  transition: border-color 0.2s;
}
.thumbnail-item.active {
  border: 2px solid var(--logo-accent-blue);
}
.thumbnail-img-box {
  background-color: var(--bg-page);
  display: flex;
  align-items: center;
  justify-content: center;
}
.thumbnail-img-box.bg-gray {
  background-color: #ececec;
}
.thumbnail-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.thumbnail-img-alt {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  border-radius: 4px;
}
.product-title-large {
  font-size: 24px;
  color: var(--logo-dark-blue);
  line-height: 1.3;
}
.product-badge-new {
  background-color: #e6f0ff;
  color: var(--logo-accent-blue);
  font-weight: 500;
  font-size: 11px;
  padding: 5px 8px;
  letter-spacing: 0.5px;
}
.product-spec-table {
  margin-bottom: 0;
}
.product-spec-table tr {
  border-bottom: 1px solid #f1f5f9;
}
.product-spec-table tr:last-child {
  border-bottom: none;
}
.product-spec-label {
  width: 45%;
  font-weight: 600;
  color: var(--logo-dark-blue);
  font-size: 13.5px;
}
.product-spec-value {
  color: #475569;
  font-size: 13.5px;
}
.product-spec-link {
  color: #64748b;
  font-size: 13.5px;
  border-bottom: 1px solid #cbd5e1;
  padding-bottom: 1px;
  text-decoration: none;
}
.product-spec-link:hover {
  color: var(--logo-accent-blue);
  border-color: var(--logo-accent-blue);
}
.sidebar-logo-text {
  font-family: "Inter", sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: var(--logo-dark-blue);
  letter-spacing: 1px;
  gap: 10px;
}
.sidebar-heading {
  color: #1a2a44;
  font-size: 15px;
  line-height: 1.4;
}
.sidebar-desc {
  font-size: 13px;
  line-height: 1.6;
  padding: 0 10px;
}
.btn-sidebar-login {
  border-radius: 6px;
  font-size: 14px;
  background-color: var(--logo-accent-blue);
  border-color: var(--logo-accent-blue);
  transition: background 0.2s;
  color: white;
}
.btn-sidebar-login:hover {
  background-color: #047b7b;
  border-color: #047b7b;
  color: white;
}
.btn-sidebar-register {
  border-radius: 6px;
  font-size: 14px;
  border: 1px solid #94a3b8;
  color: var(--logo-accent-blue);
  transition: all 0.2s;
  background: transparent;
}
.btn-sidebar-register:hover {
  background-color: #f8f9fa;
  color: var(--logo-accent-blue);
}
.desc-card-title {
  color: var(--logo-dark-blue);
  font-size: 20px;
  border-bottom: 1px solid #f1f5f9;
}
.desc-product-name {
  color: var(--logo-dark-blue);
  font-size: 16px;
}
.desc-section-heading {
  color: #1a2a44;
  font-size: 14px;
}
.desc-text {
  color: #64748b;
  font-size: 13.5px;
  line-height: 1.8;
  max-width: 900px;
}
.desc-list {
  color: #64748b;
  font-size: 13.5px;
  line-height: 1.8;
  padding-left: 20px;
}
.modified-btn{
    
  border-color: #047b7b;
  color: #047b7b;
}
.modified-btn:hover{
     background-color: #047b7b;
  border-color: #047b7b;
  color: white;
}

/* Premium Product Card Logic */
.product-card {
  background: var(--bg-white);
  border: 1px solid #f1f5f9;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
  min-height: 420px; 
  height: auto;
  width: 100%;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.card-top {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
}

.card-badge {
  background-color: #e6f7f7;
  color: white !important;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
}

.product-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  height: 220px; 
  width: 220px;
  min-width: 220px;
  margin: 0 auto;
  background: #fff;
  border-radius: 8px;
  margin-bottom: 5px;
  overflow: hidden;
}

.product-image-placeholder img {
  width: 100%; 
  height: 220px;
  object-fit: cover;
}

.product-info {
  margin-top: auto; /* Push info and buttons to the bottom of the card */
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 10px;
}

.btn-login-small {
  background-color: var(--logo-accent-blue);
  color: white;
  text-align: center;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  padding: 10px;
  border-radius: 8px;
  transition: background 0.2s;
}

.btn-login-small:hover {
  background-color: #047b7b;
  color: white;
}

.product-name {
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
  text-align: center;
}

.product-name a {
  color: var(--logo-dark-blue);
  text-decoration: none;
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-name a:hover {
  color: var(--logo-accent-blue);
}

/* Product Sections */
.carousel-wrapper {
  position: relative;
  min-width: 0;
}

.product-grid {
  display: flex !important;
  gap: 20px;
  overflow-x: auto;
  padding: 10px 0 20px;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

.product-grid::-webkit-scrollbar {
  display: none; /* Chrome/Safari/Webkit */
}

.product-grid .product-card {
  flex: 0 0 250px; /* Adjusted for 220px image width */
}

@media (max-width: 1024px) {
  .product-grid .product-card {
    flex: 0 0 250px;
  }
}

/* Large Screens: 4 Cards in slider */
@media (max-width: 1420px) and (min-width: 1221px) {
  .product-grid .product-card {
    flex: 0 0 calc(25% - 15px) !important;
    max-width: calc(25% - 15px);
    min-height: auto;
    padding: 12px;
  }
}

/* Medium Screens: 3 Cards in slider */
@media (max-width: 1220px) and (min-width: 769px) {
  .product-grid .product-card {
    flex: 0 0 calc(33.33% - 14px) !important;
    max-width: calc(33.33% - 14px);
    min-height: auto;
    padding: 12px;
  }
}

/* Tablet/Large Mobile: 2 Cards in slider */
@media (max-width: 768px) and (min-width: 520px) {
  .product-grid {
    display: flex !important;
    gap: 15px !important;
    padding: 10px 12px;
  }

  .product-grid .product-card {
    flex: 0 0 calc(50% - 8px) !important;
    max-width: calc(50% - 8px);
    min-height: auto;
    padding: 12px;
  }

  .product-image-placeholder {
    height: 180px;
    width: 100%;
    min-width: unset;
    margin-bottom: 8px;
  }

  .product-image-placeholder img {
      height: 180px;
  }

  .product-name {
    font-size: 14px;
  }

  .price-and-cart .selling-price {
    font-size: 16px;
  }
}

/* Small Mobile: 1 Card in slider */
@media (max-width: 519px) {
  .product-grid {
    display: flex !important;
    scroll-snap-type: x mandatory;
    gap: 0 !important;
    padding: 10px 0;
  }

  .product-grid .product-card {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    min-height: auto;
    padding: 20px;
    scroll-snap-align: center;
    border: none;
    box-shadow: none;
  }

  .product-image-placeholder {
    height: 250px;
    width: 100%;
    min-width: unset;
    margin-bottom: 15px;
  }

  .product-image-placeholder img {
      height: 250px;
      width: auto;
      max-width: 100%;
  }

  .product-info {
    padding-top: 15px;
    gap: 10px;
  }

  .product-name {
    font-size: 18px;
    font-weight: 800;
  }

  .btn-login-small {
    padding: 14px;
    font-size: 15px;
  }

  .add-to-cart-btn-home {
      width: 44px;
      height: 44px;
  }
  
  .add-to-cart-btn-home i {
      font-size: 20px;
  }

  .price-and-cart .selling-price {
    font-size: 20px;
    font-weight: 800;
  }
}

/* Dynamic Product Card Enhancements */
.price-and-cart {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.price-wrapper {
    display: flex;
    flex-direction: column;
}

.price-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.selling-price {
    color: #ef4444;
    font-weight: 700;
    font-size: 16px;
}

.original-price {
    color: #94a3b8;
    text-decoration: line-through;
    font-size: 12px;
}

.add-to-cart-btn-home {
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.add-to-cart-btn-home:hover {
    background: #2563eb;
    transform: scale(1.1);
}

.add-to-cart-btn-home i {
    font-size: 16px;
}

/* Search Suggestions */
.search-bar {
    position: relative;
}

.search-suggestions-container {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    max-height: 400px;
    overflow-y: auto;
    margin-top: 2px;
}

.suggestion-item {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.2s;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: #f8fafc;
    color: #00a8a8;
}

.suggestion-item i {
    color: #94a3b8;
    font-size: 14px;
}

.suggestion-name {
    font-size: 14px;
    font-weight: 500;
}

/* =======================================
   MOBILE BOTTOM NAVIGATION (Max-width 520px)
   ======================================= */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 65px;
    background: #ffffff;
    box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    align-items: center;
    justify-content: space-around;
    padding: 0 10px;
    border-top: 1px solid #f1f5f9;
}

@media (max-width: 520px) {
    .mobile-bottom-nav {
        display: flex;
    }
    
    /* Add padding to body to prevent content from being hidden behind nav */
    body {
        padding-bottom: 75px;
    }

    .main-content {
        padding-bottom: 80px !important;
    }
}

.mobile-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #64748b;
    gap: 4px;
    transition: all 0.3s ease;
    flex: 1;
}

.mobile-bottom-nav .nav-item i {
    font-size: 20px;
}

.mobile-bottom-nav .nav-item span {
    font-size: 11px;
    font-weight: 600;
}

.mobile-bottom-nav .nav-item.active {
    color: var(--logo-dark-blue);
}

.mobile-bottom-nav .nav-item:active {
    transform: scale(0.9);
}

/* =======================================
   CUSTOM PWA INSTALL PROMPT
   ======================================= */
.pwa-install-prompt {
    position: fixed;
    bottom: 80px; /* Above the mobile nav */
    left: 20px;
    right: 20px;
    background: #ffffff;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 3000;
    display: none;
    align-items: center;
    gap: 15px;
    animation: slideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #f1f5f9;
}

@keyframes slideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.pwa-icon-wrapper {
    width: 60px;
    height: 60px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.pwa-icon-wrapper img {
    width: 80%;
    height: auto;
}

.pwa-text {
    flex: 1;
}

.pwa-text h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--logo-dark-blue);
}

.pwa-text p {
    margin: 2px 0 0;
    font-size: 12px;
    color: #64748b;
}

.pwa-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn-pwa-install {
    background: var(--logo-dark-blue);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.btn-pwa-close {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 11px;
    cursor: pointer;
    text-decoration: underline;
}

@media (min-width: 521px) {
    .pwa-install-prompt {
        display: none !important;
    }
}


