html, body {
    overflow-x: hidden; /* hides horizontal scroll */
}

.row {
    margin-left: 10px;  /* left space */
    margin-right: 10px; /* right space */
}

.product-card {
    margin-left: 5px;
    margin-right: 5px;
}

/* ===== Custom Navbar Styles ===== */
.navbar-brand {
  font-weight: bold;
  font-size: 18px;
  color: #000 !important;
}

.navbar-nav .nav-link {
  font-size: 14px;
  padding: 10px 15px;
  color: #000;
  transition: all 0.3s ease-in-out;
}

.navbar-nav .nav-link:hover {
  background: #d9b3a6;
  color: #000 !important;
  font-weight: bold;
}

/* Dropdown styling */
.dropdown-menu {
  border-radius: 0;
  border: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.dropdown-item:hover {
  background: #d9b3a6;
  font-weight: bold;
}
/* Fix multi-level dropdown positioning */
.navbar .dropdown-menu {
    position: absolute; /* Prevent affecting navbar height */
}

.navbar .dropdown-submenu {
    position: relative;
}

.navbar .dropdown-submenu .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: 0;
    display: none; /* Show via hover or click */
}
/* Show submenu on hover for desktop */
@media(min-width:992px){
    .navbar .dropdown-submenu:hover>.dropdown-menu {
        display: block;
    }
}


/* ===== Footer Styles ===== */
footer {
  background: #000;
  color: #fff;
  font-size: 14px;
}

footer h6 {
  font-size: 15px;
  font-weight: bold;
  margin-bottom: 12px;
}

footer a {
  color: #fff;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
  color: #d9b3a6;
}

footer .fa {
  transition: 0.3s;
}

footer .fa:hover {
  color: #d9b3a6;
}


/* Search Bar Styles */
/* Search Bar */
#searchWrapper {
    position: relative;
    z-index: 2000; /* higher than admin & navbar */
}

.search-result {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 300px;
    overflow-y: auto;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 0.25rem;
    display: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 3000; /* important to appear above admin dropdown */
}

#search_id {
    width: 100% !important;   /* Prevent shrinking on load */
    min-width: 200px;         /* Optional: minimum width */
}

.search-wrapper input {
    border-radius: 25px;
    padding: 8px 15px;
    border: 1px solid #ccc;
}

.search-result li {
    padding: 8px 12px;
    cursor: pointer;
}
.search-result li:hover {
    background-color: #f0f0f0;
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -10px;
    background: #ff5722;
    color: white;
    font-size: 12px;
    padding: 3px 7px;
    border-radius: 50%;
}


/* Cart spacing */
.col-md-4.d-flex > a {
    margin-left: 10px; /* push cart slightly right */
}

/* Admin dropdown should not be behind search */
.dropdown-menu-end {
    z-index: 2500 !important;
}


/*Model List*/
body {
      background: #f0f2f5;
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
      min-height: 100vh; /* Ensures page is at least full viewport height */
      display: flex;
      flex-direction: column;
       min-height: 70vh;
  }

  .modelList {
      background: #fff;
      padding: 30px 20px;
      border-radius: 12px;
      box-shadow: 0 6px 25px rgba(0,0,0,0.08);
      margin: 20px auto;
      flex: 1; /* Makes container take remaining space */
      min-height: 70vh; /* Minimum height for inner content */
  }

.cardHover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    border: none;
}

.cardHover:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.anotherCard1 {
    background: #d9b3a6;
    margin: 10px auto 0;
    padding: 10px;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.2);
    border-radius: 8px;
    transition: background 0.3s ease;
}

.anotherCard1:hover {
    background: #c99b8f;
}

.fa-shopping-bag {
    color: #6c5b7b;
    transition: transform 0.3s ease, color 0.3s ease;
}

.cardHover:hover .fa-shopping-bag {
    transform: rotate(10deg) scale(1.1);
    color: #b85c5c;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .col-md-2 {
        flex: 0 0 33.3333%;
        max-width: 33.3333%;
    }
}

@media (max-width: 576px) {
    .col-md-2 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}



