* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

.login-page {
    background: url('login_bg.png') no-repeat center center/cover;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    position: relative;
}

.overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
}

.login-container {
    text-align: center;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

.login-container h1 {
    font-size: 3rem;
    color: #ffcc70;
}

.login-container span {
    color: #ff7e5f;
}

.button-group {
    margin-top: 30px;
}

.btn {
    text-decoration: none;
    background: #ff7e5f;
    color: #fff;
    padding: 12px 25px;
    border-radius: 30px;
    margin: 0 10px;
    transition: background 0.3s;
}

.btn:hover {
    background: #feb47b;
}

form {
    background: rgba(255, 255, 255, 0.1);
    padding: 25px 30px;
    border-radius: 15px;
    display: inline-block;
    text-align: left;
    width: 300px;
    margin-top: 25px;
    backdrop-filter: blur(6px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

form h3 {
    color: #ffcc70;
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

form input {
    width: 100%;
    padding: 10px 12px;
    border: none;
    border-radius: 10px;
    margin-bottom: 15px;
    font-size: 1rem;
    outline: none;
    background-color: rgba(255, 255, 255, 0.85);
    color: #333;
    transition: all 0.3s ease;
}

form input:focus {
    background-color: #fff;
    box-shadow: 0 0 6px #ffcc70;
}

form .btn {
    width: 100%;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: bold;
}

#message {
    margin-top: 15px;
    font-size: 1.1rem;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.4);
}

#loginForm, #registerForm {
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: #ff7e5f;
    color: white;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.search-bar {
    display: flex;
    gap: 10px;
}

.search-bar input {
    padding: 8px;
    border-radius: 5px;
    border: none;
    width: 250px;
}

.search-bar button {
    background: #fff;
    color: #ff7e5f;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
}

.nav-icons button {
    background: none;
    border: none;
    color: white;
    font-size: 1.3rem;
    margin: 0 8px;
    cursor: pointer;
}

.main-content {
    display: flex;
    min-height: 90vh;
}

.filter-panel {
    width: 250px;
    background: #f5f5f5;
    padding: 20px;
    border-right: 1px solid #ddd;
}

.filter-panel h3, .filter-panel h4 {
    color: #333;
    margin-bottom: 10px;
}

.filter-panel label {
    display: block;
    margin: 5px 0;
}

.filter-panel ul {
    list-style: none;
    padding-left: 0;
}

.scan-btn {
    background: #ff7e5f;
    color: white;
    padding: 10px;
    width: 100%;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.product-section {
    flex-grow: 1;
    padding: 20px 40px;
    background: #fff;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.product-card {
    width: 200px;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 10px;
    text-align: center;
    padding: 15px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.product-card img {
    width: 100px;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.product-card button {
    background: #ff7e5f;
    color: white;
    border: none;
    padding: 8px 15px;
    margin-top: 10px;
    border-radius: 5px;
    cursor: pointer;
}

.slider-container {
  position: relative;
  width: 180px;
  height: 40px;
}

.slider-container input[type="range"] {
  position: absolute;
  width: 100%;
  top: 0;
  height: 8px;
  border-radius: 4px;
  background: none;
  appearance: none;
  pointer-events: none;
}

.slider-container input[type="range"]::-webkit-slider-thumb {
  pointer-events: auto;
  -webkit-appearance: none;
  height: 16px;
  width: 16px;
  border-radius: 50%;
  background: blue;
  cursor: pointer;
  position: relative;
  z-index: 3;
}

.clear_filter {
  display: inline-block;
  padding: 5px 10px;
  background-color: #f8cbc1;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  user-select: none;
  font-family: sans-serif;
}

.clear_filter:hover {
  background-color: #ff7e5f;
  transform: scale(1.05);
}

.popup {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.popup-content {
  background: white;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  position: relative;
  width: 380px;
  box-shadow: 0 0 15px rgba(0,0,0,0.4);
}

#close_popup {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #ff7e7e;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  padding: 4px 8px;
}

#close_popup:hover {
  background: #e05656;
}

#video {
  margin-top: 10px;
  border-radius: 8px;
  border: 2px solid #ff7e5f;
}