body {
  font-family: Arial, sans-serif;
  background-color: #f2f2f2;
  margin: 0;
  padding: 0;
}

/* Header */
header {
  background: linear-gradient(to right, #000428, #004e92);
  padding: 20px;
  color: white;
  position: relative;
  text-align: center;
}

/* Logo */
.logo-container {
  position: absolute;
  top: 20px;
  left: 20px;
}

.logo {
  width: 120px;
  height: auto;
  display: block;
}

/* Navigation Buttons */
.navbar {
  margin: 15px 0;
  text-align: center;
}

.navbar button {
  margin: 5px 10px;
  padding: 10px 16px;
  font-size: 1rem;
  background-color: #ffffff;
  color: #004e92;
  border: 2px solid #004e92;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.navbar button:hover {
  background-color: #004e92;
  color: white;
}

/* Search Bar */
.search-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px auto;
  gap: 10px;
  max-width: 500px;
}

.search-bar input[type="text"] {
  flex: 1;
  padding: 12px;
  font-size: 1rem;
  border: none;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.search-bar button {
  padding: 12px 16px;
  font-size: 1.2rem;
  border: none;
  background-color: #004e92;
  color: white;
  border-radius: 10px;
  cursor: pointer;
}

.search-bar button:hover {
  background-color: #003974;
}

/* Card Container */
.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  padding: 20px;
  max-width: 1400px;
  margin: auto;
}

/* Individual Card */
.card {
  background-color: #fff;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.card img {
  width: 100%;
  border-radius: 12px;
}

.card h3 {
  margin: 12px 0 8px;
  color: #333;
}

.card p {
  font-size: 14px;
  margin: 4px 0;
  color: #444;
}

.card p strong {
  color: #000;
}

/* Ratings stars */
.card span {
  color: gold;
  font-size: 16px;
}

/* Mobile Specs Image (individual spec page) */
.phone-img {
  width: 180px;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 12px;
}

/* Buy Button */
button,
.buy-btn {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
}

button:hover,
.buy-btn:hover {
  background-color: #0056b3;
}

.stars {
  color: gold;
  font-size: 16px;
}

/* Brand Logos */
.brand-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 20px;
}

.brand-item {
  width: 100px;
  text-align: center;
  cursor: pointer;
}

.brand-item img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.brand-item:hover {
  transform: scale(1.1);
}

/* ========== Attractive Specs Page Styles ========== */
.container {
  max-width: 800px;
  background: #ffffff;
  margin: auto;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.back-link {
  display: inline-block;
  margin-bottom: 15px;
  text-decoration: none;
  color: #007bff;
}

.mobile-image {
  width: 100%;
  max-width: 250px;
  display: block;
  margin: 0 auto;
}

.title {
  font-size: 28px;
  text-align: center;
  margin: 15px 0;
  color: #222;
}

.specs {
  margin-top: 30px;
}

.specs dt {
  font-weight: bold;
  color: #007acc;
  margin-top: 15px;
  display: flex;
  align-items: center;
  font-size: 18px;
}

.specs dt i {
  margin-right: 10px;
  color: #555;
}

.specs dd {
  margin-left: 30px;
  margin-top: 5px;
  color: #444;
  font-size: 16px;
}

.buy-button {
  text-align: center;
  margin-top: 30px;
}

.buy-button a {
  background-color: #ffb400;
  color: white;
  text-decoration: none;
  padding: 12px 25px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 8px;
  transition: background-color 0.3s;
}

.buy-button a:hover {
  background-color: #e39d00;
}

/* Responsive tweaks */
@media (max-width: 600px) {
  .container {
    padding: 20px;
  }

  .title {
    font-size: 24px;
  }

  .specs dt {
    font-size: 16px;
  }

  .specs dd {
    font-size: 14px;
  }
}
.specs dd ul {
  margin-left: 20px;
  padding-left: 15px;
  list-style-type: disc;
  color: #444;
  font-size: 16px;
}

.specs dd ul li {
  margin-bottom: 6px;
}
/* Add at the end of your style.css */
.mobile-card {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.brand-name-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 5px;
}

.brand-logo {
  height: 24px;
  width: auto;
  margin-left: 8px;
}

