/* ===========================
   MERGED: cart-sidebar.css + extramenu.css + menu.css
   Duplicates removed / properties merged
   =========================== */

/* ---------- Cart sidebar common ---------- */
/* base sidebar layout (merged versions) */
.cart-sidebar,
.cart-overlay {
  position: fixed;
  top: 0;
  height: 100%;
}

.cart-sidebar {
  right: -500px;
  width: 450px;
  height: 100%;
  background-color: #fff;
  box-shadow: -4px 0 15px rgba(0, 0, 0, 0.2);
  z-index: 11000;
  overflow-y: auto;
  transition: right 0.3s ease;
  padding: 25px;
  font-family: 'Poppins', Arial, sans-serif !important;
}

/* header & controls */
.cart-sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.cart-sidebar-header h5 {
  margin: 0;
  font-size: 18px;
}

.close-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

/* cart items */
.cart-item,
.cart-sidebar-header {
  margin-bottom: 15px;
  display: flex;
}

.cart-item {
  align-items: center;
}

.cart-item-img img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 5px;
}

.cart-item-details {
  flex: 1;
  margin-left: 10px;
}

.cart-item-name {
  margin: 0;
  font-weight: 700;
}

.cart-item-qty {
  margin: 5px 0 0;
  font-size: 14px;
  color: #555;
}

.cart-item-remove button {
  background: #ff4d4d;
  border: none;
  color: #fff;
  font-size: 18px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
}

/* subtotal / actions */
.cart-subtotal,
.cart-sidebar p,
.text-center p {
  color: #1b437a;
}

.cart-subtotal {
  font-size: 16px;
  font-weight: 700;
  margin-top: 10px;
}

.cart-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
  gap: 10px;
}

/* merge: extramenu had padding; cart-sidebar had flex:1 - keep both for button layout */
.cart-actions .btn {
  flex: 1;
  padding: 8px 12px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  text-align: center;
}

/* overlay */
.cart-overlay {
  display: none;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10999;
  transition: opacity 0.3s ease;
}

/* remove box bottom action */
.remove-box {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #fff;
  border-top: 1px solid #ddd;
  padding: 20px;
  z-index: 10;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.remove-box-content h6 {
  margin: 0 0 10px;
  font-weight: 600;
}

/* ---------- Extra UI/utilities from extramenu/menu ---------- */
.pro-img-fluid {
  height: 230px;
  overflow: hidden;
}

.prosimoption {
  font-size: 14px;
  font-weight: 500;
}

.gpsProduct-banner .content-wrp-prod {
  padding: 90px 0 20px 0;
}

.floatleft {
  float: left;
}

.bg-EDEFF1 {
  background-color: #EDEFF1 !important;
}

.separator {
  margin: 0 4px;
  color: #888;
}

.more-sims {
  color: #344767;
  cursor: pointer;
  font-size: 13px;
  margin-left: 5px;
  text-decoration: underline;
}

.pro-title-minheight {
  max-height: 45px;
  overflow: hidden;
}

.pro-sim-minheight {
  min-height: 25px;
  max-height: 25px;
  overflow: hidden;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.price-section {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
}

.price {
  font-size: 20px;
  font-weight: 600;
  color: rgba(var(--bs-success-rgb), var(--bs-bg-opacity)) !important;
  line-height: 1.4;
}

.old-price {
  font-size: 14px;
  color: #888;
  margin-left: 5px;
}

.noUi-connect {
  background: #607ca2;
}

/* headings */
.h5,
h5 {
  font-size: 1.15rem;
}

/* ---------- Menu / mega menu styles ---------- */
/* (kept as-is; unrelated to cart but present in menu.css) */
.ancher {
  a {
    text-decoration: none;
  }
}

.meghamenu-heading {
  font-size: clamp(16px, 2vw, 18px);
  font-weight: 700;
  position: relative;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding-bottom: 18px;
  margin-bottom: 18px;
}

.meghamenu-heading::before {
  position: absolute;
  bottom: 0;
  content: "";
  width: 100%;
  height: 1px;
  background-color: #e0e6e8;
}

ul.menu-footerlink {
  display: flex;
  list-style-type: none;
  gap: 20px;
  padding: 0;
}

.megha-menu-bar {
  max-height: calc(90vh - 56px);
  height: 100%;
  overflow-y: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.megha-menu-bar ul li.nav-item {
  position: relative;
}

.subcategory-menu h5.fs-6 {
  font-size: .8rem !important;
  line-height: 22px;
}

.megha-menu-bar ul li.nav-item:hover:before {
  --extra-padding: 0px;
  content: "";
  position: absolute;
  border-radius: 4px;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-color: #1b437a;
  z-index: -1;
  opacity: 1;
  transform: scale(1.1);
  transition: opacity 80ms linear;
}

.menu__right-bg {
  position: absolute;
  background-color: #fafaf9;
  border-left: 1px solid #e0e6e8;
  bottom: 0;
  right: 0;
  height: 100%;
  width: 38%;
  z-index: -1;
}

.navbar .megamenu {
  padding: 1rem 0rem 0rem 0;
}

.subcategory-menu {
  padding-left: 0;
}

@media (min-width: 1200px) {
  .megamenu .nav-item a {
    padding: 12px;
    transition: all 300ms ease;
  }
}

@media (max-width: 1024px) {
  .dropdown-item {
    padding: 5px 5px;
    font-size: 14px;
  }

  ul.menu-footerlink {
    gap: 0;
  }
}

@media (max-width: 768px) {
  .meghamenu-heading {
    padding-bottom: 7px;
    margin-bottom: 8px;
    margin-top: 15px;
  }

  .navbar-nav .megha-menu-bar .nav-link {
    padding: 5px 10px;
  }

  .card-text:last-child {
    font-size: 14px !important;
  }

  .navbar-expand-xl .navbar-nav .nav-link {
    padding-right: 21px;
  }
}

/* Megha menu heading boxes and images */
.subcategory-menu .menuLinks-icon {
  max-width: 32px;
}

.dropdown-img,
.dropdown-img:active,
.dropdown-img.show:active {
  border: none !important;
}

.M-inner-menu .dropdown-menu {
  --bs-dropdown-border-color: none;
}

.meghamenu-box-h {
  font-size: clamp(16px, 2vw, 18px);
  font-weight: 700;
  position: relative;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.MeghaMenu-heading-box p.fs-6 {
  font-size: 0.9rem !important;
  margin: 0;
}

.MeghaMenu-heading-box::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  transition: all 0.2s ease-in-out;
  right: 0;
  bottom: 0;
  background-color: #1a0e0e63;
  z-index: 1;
  opacity: 0;
  width: 0;
}

.MeghaMenu-heading-box.Hbox-1 {
  background-image: url(../media/images/home/menu/megha-menu-1.svg);
}

.MeghaMenu-heading-box.Hbox-2 {
  background-image: url(../media/images/home/menu/megha-menu-1.svg);
}

.MeghaMenu-heading-box.Hbox-3 {
  background-image: url(../media/images/home/menu/megha-menu-1.svg);
}

.MeghaMenu-heading-box.Hbox-wired-gps-tracker {
  background-image: url(../media/images/home/menu/wired-gps-tracker.webp);
}

.MeghaMenu-heading-box.Hbox-wireless-gps-tracker {
  background-image: url(../media/images/home/menu/wireless-gps-tracker.webp);
}

.MeghaMenu-heading-box.Hbox-iot-solutions {
  background-image: url(../media/images/home/menu/industrial-iot.webp);
}

.MeghaMenu-heading-box.Hbox-1::after,
.MeghaMenu-heading-box.Hbox-2::after {
  background-color: #1a0e0e63;
}

.MeghaMenu-heading-box {
  position: relative;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: #fff;
  border-radius: 15px;
  overflow: hidden;
  margin-bottom: 25px;
}

.MeghaMenu-heading-box:hover:after {
  opacity: 1;
  width: 100%;
}

.megha-links {
  padding-left: 20px;
}

/* custom dropdown arrow image */
.dropdown-toggle::after {
  content: '';
  width: 20px;
  height: 20px;
  background-image: url(../media/images/global/dropdown.svg);
  background-size: cover;
  background-position: center;
  border: 0;
}

@media (max-width: 1200px) {
  .navbar-expand-xl .navbar-nav .nav-link {
    border-bottom: 1px solid #cccccc3b;
    padding: 1rem 5px;
  }
}

/* ---------- Responsive cart sidebar rules retained ---------- */
@media (max-width: 992px) {
  .cart-sidebar {
    width: 380px;
    padding: 20px;
  }

  .cart-sidebar-header h5 {
    font-size: 16px;
  }

  .cart-item-img img {
    width: 55px;
    height: 55px;
  }
}

@media (max-width: 768px) {
  .cart-sidebar {
    width: 320px;
    padding: 18px;
  }

  .cart-sidebar-header h5 {
    font-size: 15px;
  }

  .cart-item-img img {
    width: 50px;
    height: 50px;
  }

  .cart-item-name {
    font-size: 14px;
  }

  .cart-item-qty {
    font-size: 12px;
  }

  .cart-actions {
    flex-direction: column;
  }

  .cart-actions .btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 576px) {
  .cart-sidebar {
    width: 100%;
    right: -100%;
    padding: 15px;
  }

  .cart-sidebar-header h5,
  .cart-subtotal {
    font-size: 14px;
  }

  .cart-item-img img {
    width: 45px;
    height: 45px;
  }

  .cart-item-details {
    margin-left: 8px;
  }

  .cart-item-name {
    font-size: 13px;
  }

  .cart-item-qty {
    font-size: 11px;
  }
}
