/* ============================================
   BASE STYLES
   ============================================ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  font-family: Arial, sans-serif;
}

/* ============================================
   GENERAL ELEMENTS
   ============================================ */
h1 {
  background-color: rgb(204, 204, 202);
  position: relative;
  border-bottom: 1px solid;
  border-radius: 50px;
  text-align: center;
  animation: slideIn 0.5s ease-out forwards;
  padding: 0.5rem 1rem;
  margin: 0 auto;
  max-width: 90%;
  min-width: 200px;
}

.helptext {
  display: block;
  color: gray;
  font-size: 0.9em;
  margin-top: 4px;
}

#product-description {
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 600px;
  width: 100%;
}

#nullDiv {
  height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 1rem;
}

#DivCon {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  height: auto;
}

#btn_buttom {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
}


@keyframes slideIn {
  from {
    left: -10%;
    opacity: 0;
  }
  to {
    left: 0;
    opacity: 1;
  }
}

/* ============================================
   NAVBAR STYLES
   ============================================ */
.navbar {
  padding: 0.75rem 1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar .container-fluid {
  max-width: 1400px;
  padding: 0 1rem;
}

/* Brand */
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.brand-logo {
  height: 32px;
  width: auto;
  display: block;
}

.brand-text {
  color: #fff !important;
}

/* Nav Links */
.navbar-nav.mr-auto,
.navbar-nav.ml-auto {
  display: flex;
  gap: 0.5rem;
}

.navbar-nav .nav-link {
  padding: 0.5rem 1rem !important;
  border-radius: 6px;
  transition: all 0.3s ease;
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 500;
}

.navbar-nav .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff !important;
}

/* Icons */
.bi-person-circle,
.cart-icon {
  width: 28px;
  height: 28px;
}

/* Dropdown */
.dropdown-menu {
  border-radius: 8px;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  padding: 0.5rem 0;
  min-width: 200px;
}

.dropdown-item {
  padding: 0.6rem 1.2rem;
  transition: all 0.2s ease;
  color: #212529;
}

.dropdown-item:hover {
  background-color: #f8f9fa;
}

.dropdown-item:active {
  background-color: #e9ecef;
}

.dropdown-divider {
  margin: 0.5rem 0;
}

.dropdown-item form {
  margin: 0;
  padding: 0;
  width: 100%;
}

.dropdown-item button {
  width: 100%;
  text-align: left;
  padding: 0;
  font-size: inherit;
}

/* Toggler */
.navbar-toggler {
  border: none;
  padding: 0.5rem;
  border-radius: 6px;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
  outline: none;
}

/* ============================================
   FOOTER STYLES
   ============================================ */
footer {
  margin-top: 3rem;
}

footer .container {
  padding: 2rem 1rem;
}

footer h5 {
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

footer a {
  text-decoration: none;
  transition: opacity 0.3s ease;
}

footer a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

footer ul li {
  margin-bottom: 0.5rem;
}

/* ============================================
   PRODUCT CARD STYLES
   ============================================ */
.card {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  margin: 0 auto;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.card .card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px;
}

.card .card-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.card .card-text {
  font-size: 0.95rem;
  color: #444;
}

.card .btn {
  border-radius: 8px;
  width: 90%;
  align-self: center;
  padding: 0.5rem 0;
}
  #quantityCon{
    width: 100%;
  }
   #mobile-button{
    width: 80%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
  }
  #mobile-button>a{
    width: 25%;
    
  }
  #cart-buttons{
    display: flex;
    justify-content: center;
    align-items: center;
  }
   #searchBar{
  display: inline;
  margin-left: 100px;
  
 }
  
@media (max-width:992px) {
   #searchBar{
  display: inline;
  
 }
}

@media (max-width:768px) {
  
  footer .col-md-6,
  footer .col-md-3 {
    text-align: center;
    margin-bottom: 2rem;
  }

  footer ul {
    padding-left: 0;
  }

  footer h5 {
    font-size: 1rem;
  }
 #navBar{
  width: 100%;
  gap: 10px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
 }
 #searchBar{
  display: inline;
 }
}

.errorlist{
  color: red;
  list-style: none;
}

#center{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
}