/* RESET */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* BODY */
body {
  font-family: Arial, Helvetica, sans-serif;
  background: #f3f3f3;
  color: #111;
}

/* ================= HEADER ================= */
.site-header {
  background: #fff;
  border-bottom: 1px solid #ddd;
}

.nav-container {
  max-width: 1280px;
  margin: auto;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* BRAND */
.brand {
  font-size: 22px;
  font-weight: 800;
}

.brand-c { color: #ff6f00; }
.brand-cy { color: #2b7cff; }
.brand-store { color: #2e7d32; }

/* MENU */
.nav-menu {
  display: flex;
  gap: 32px;
}

.nav-menu a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  border-bottom: 2px solid transparent;
  padding-bottom: 4px;
}

.nav-menu a:hover {
  color: #111;
  border-bottom: 2px solid #111;
}

/* ================= SEARCH ================= */
.search-container {
  max-width: 1280px;
  margin: 16px auto 0;
  padding: 0 16px;
}

.search-container input {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

/* ================= MAIN ================= */
.main-container {
  max-width: 1280px;
  margin: auto;
  padding: 0 16px;
}

.product-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 20px 0;
}

/* ================= CARD ================= */
.product-card {
  background: #fff;
  padding: 14px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.product-card img {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 8px;
}

.product-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 12px;

  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ================= BUTTONS ================= */
.btn-group {
  margin-top: auto;
  display: flex;
  gap: 8px;
}

.btn {
  flex: 1;
  padding: 9px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  color: #000;               /* TEXT COLOR BLACK */
  transition: all 0.2s ease;
}

/* AMAZON BUTTON */
.btn.amazon {
  background: #f1e4a6;
  border: 1px solid #d8c97c;
}

.btn.amazon:hover {
  background: #f0c14b;   /* Amazon hover yellow */
  border-color: #a88734;
  color: #000;
}

/* FLIPKART BUTTON */
.btn.flipkart {
  background: #dbe7fb;
  border: 1px solid #c2d2f3;
}

.btn.flipkart:hover {
  background: #2874f0;   /* Flipkart primary blue */
  border-color: #1b5fd6;
  color: #000;
}

/* ================= FOOTER ================= */
.site-footer {
  background: #fff;
  border-top: 1px solid #ddd;
  padding: 12px;
  text-align: center;
  font-size: 12px;
  color: #555;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1024px) {
  .product-list { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .nav-menu {
    flex-wrap: wrap;
    gap: 20px;
  }

  .product-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .product-list { grid-template-columns: 1fr; }
}

/* ===== MOBILE MENU FIX ===== */
.menu-toggle {
  display: none;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
}

/* MOBILE ONLY */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    left: -260px;
    width: 240px;
    height: 100%;
    background: #fff;
    padding: 70px 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: 2px 0 10px rgba(0,0,0,0.15);
    transition: left 0.3s ease;
    z-index: 999;
  }

  .nav-menu.active {
    left: 0;
  }
}

/* ===== MOBILE HEADER TITLE CENTER ===== */
@media (max-width: 768px) {
  .nav-container {
    position: relative;
  }

  .brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
  }
}

