/* middlebar.css */
.rr-middlebar {
  background-color: #ffffff;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

.rr-middlebar .rr-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.rr-logo img {
  height: 48px;
}

.rr-search-form {
  display: flex;
  flex-grow: 1;
  margin: 0 20px;
  max-width: 500px;
}

.rr-search-form input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 4px 0 0 4px;
  outline: none;
  font-size: 0.95rem;
}

.rr-search-form button {
  padding: 8px 16px;
  background-color: #d41405;
  border: none;
  border-radius: 0 4px 4px 0;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.3s;
}

.rr-search-form button:hover {
  background-color: #a30e04;
}

.rr-cart-wrapper {
  position: relative;
  cursor: pointer;
}

.rr-cart-wrapper i {
  font-size: 1.3rem;
  margin-right: 6px;
}

.rr-cart-wrapper span {
  font-weight: 500;
  color: #212529;
}

.rr-cart-dropdown {
  display: none;
  position: absolute;
  top: 120%;
  right: 0;
  background: #fff;
  border: 1px solid #ddd;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 12px;
  min-width: 220px;
  z-index: 999;
}

.rr-cart-wrapper:hover .rr-cart-dropdown {
  display: block;
}

@media (max-width: 768px) {
  .rr-middlebar .rr-container {
    flex-direction: column;
    gap: 10px;
  }
  .rr-search-form {
    width: 100%;
    max-width: 100%;
    margin: 0;
  }

  .rr-middlebar {
    display: none !important;
    height: 0 !important;
    overflow: hidden;
    visibility: hidden;
  }
}
