* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

body {
  background: #f4f6f9;
  padding-bottom: 70px;
  transition: 0.3s;
}

/* ===== NAVBAR ===== */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #0f172a;
  color: white;
  padding: 15px;
  font-weight: 600;
  position: sticky;
  top: 0;
  width: auto;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.cart-icon {
  font-size: 16px;
}

#cart-count {
  background: red;
  padding: 3px 6px;
  border-radius: 50%;
  font-size: 12px;
}

.dark-btn {
  background: none;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
}

/* ===== SEARCH ===== */
.search-box {
  padding: 15px;
}

.search-box input {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
}

/* ===== CONTAINER ===== */
.container {
  width: 95%;
  max-width: 1100px;
  margin: auto;
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  padding: 15px;
}

.form {
  width: 95%;
  max-width: 1100px;
  margin: auto;
  margin-top: 20px;
  display: grid;
  grid-template-columns: 2fr;
  gap: 15px;
  padding: 15px;
}

/* ===== INPUT FIELDS ===== */
input, select {
  width: 100%;
  padding: 10px;
  margin-top: 8px;
  margin-bottom: 15px;
  border-radius: 6px;
  border: 1px solid #ddd;
}

/* ===== TABLE ===== */
table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 12px;
  border-bottom: 1px solid #eee;
  text-align: left;
}

th {
  background: #fafafa;
}

/* ===== GRID ===== */

.card {
  background: white;
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: 0.3s;
  animation: fadeIn 0.5s ease-in;
}

.card:hover {
  transform: translateY(-5px);
}

.card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
}

.price {
  color: #16a34a;
  font-weight: bold;
  margin: 8px 0;
}

.btn {
  background: #2563eb;
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  display : flex;
  justify-content : center;
}

.btn:hover {
  background: #1e40af;
}

/* ===== BOTTOM NAV ===== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: white;
  display: flex;
  justify-content: space-around;
  padding: 12px 0;
  box-shadow: 0 -3px 10px rgba(0,0,0,0.1);
}

.bottom-nav a {
  text-decoration: none;
  color: #333;
  font-size: 14px;
}

/* ===== DARK MODE ===== */
.dark-mode {
  background: #1e293b;
  color: white;
}

.dark-mode .card {
  background: #334155;
}

.dark-mode .bottom-nav {
  background: #0f172a;
}

/* ===== ANIMATION ===== */
@keyframes fadeIn {
  from {opacity: 0; transform: translateY(10px);}
  to {opacity: 1; transform: translateY(0);}
}

/* ===== RESPONSIVE ===== */
@media(min-width: 600px){
  .container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(min-width: 900px){
  .container {
    grid-template-columns: repeat(3, 1fr);
  }
}
