/* =========================
   GLOBAL
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

/* =========================
   NAVBAR
========================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;

  background: linear-gradient(
    135deg,
    #0f0f14 0%,
    #161622 50%,
    #0f0f14 100%
  );

  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}

/* =========================
   NAV CONTAINER
========================= */
.nav-container {
  width: 100%;
  max-width: 1200px;
  margin: auto;
  padding: 18px 28px;

  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
}

/* =========================
   LEFT (LOGO)
========================= */
.nav-left {
  display: flex;
  align-items: center;
}

.logo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;

  border: 2px solid rgba(180, 120, 255, 0.6);
  box-shadow: 0 0 18px rgba(180, 120, 255, 0.45);
}

/* =========================
   CENTER (TITLE)
========================= */
.nav-center {
  text-align: center;
}

.brand-name {
  color: #ffffff;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.8px;
}

.brand-name span {
  color: #b47aff;
}

/* =========================
   RIGHT (SEARCH)
========================= */
.nav-right {
  display: flex;
  justify-content: flex-end;
}

.search-input {
  width: 220px;
  padding: 10px 14px;

  border-radius: 25px;
  border: none;
  outline: none;

  background: #1f1f2e;
  color: #ffffff;
  font-size: 14px;
}

.search-input::placeholder {
  color: #aaa;
}

.search-input:focus {
  box-shadow: 0 0 0 2px rgba(180, 120, 255, 0.4);
}

/* =========================
   TABLET
========================= */
@media (max-width: 768px) {
  .brand-name {
    font-size: 22px;
  }

  .logo {
    width: 52px;
    height: 52px;
  }

  .search-input {
    width: 160px;
  }
}

/* =========================
   MOBILE (SEARCH SHOWN)
========================= */
@media (max-width: 480px) {

  .nav-container {
    grid-template-columns: auto 1fr;
    row-gap: 12px;
  }

  .nav-center {
    text-align: center;
  }

  .nav-right {
    grid-column: 1 / -1; /* full width */
    justify-content: center;
  }

  .search-input {
    width: 90%;
    max-width: 360px;
  }
}




/* =========================
   PRODUCTS SECTION
========================= */

.products-section {
  padding: 32px 24px;
  background: #f4f4f4;
}

/* GRID: 4 → 2 → 1 */
#product-list {
  max-width: 1200px;
  margin: auto;

  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* =========================
   PRODUCT CARD
========================= */

.product-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 18px;

  display: flex;
  flex-direction: column;
  align-items: center; /* 🔥 IMPORTANT */

  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.15);
}

/* =========================
   PRODUCT TITLE
========================= */

.product-card h2 {
  font-size: 17px;
  font-weight: 600;
  color: #222;
  text-align: center;
  margin-bottom: 12px;
}

/* =========================
   IMAGE GRID (CENTERED)
========================= */

.image-grid {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center; /* 🔥 centers images */
  gap: 10px;
}

/* MAIN IMAGE */
.image-grid img:first-child {
  width: 160px;
  height: 160px;
  object-fit: contain;
  border-radius: 10px;
}

/* THUMBNAILS */
.image-grid img:not(:first-child) {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
}

/* Thumbnail row */
.image-grid {
  position: relative;
}

.image-grid::after {
  content: "";
}

/* =========================
   BUY BUTTON
========================= */

.buy-btn {
  width: 100%;
  margin-top: 16px;
  padding: 12px 0;

  text-align: center;
  text-decoration: none;

  background: linear-gradient(
    135deg,
    #1a1a2e,
    #25254a
  ); /* matches navbar tone */

  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.4px;

  border-radius: 10px;
  border: 1px solid rgba(180, 120, 255, 0.4);

  transition: all 0.3s ease;
}

.buy-btn:hover {
  background: linear-gradient(
    135deg,
    #2d2d5a,
    #3b3b7a
  );

  box-shadow: 0 6px 18px rgba(180, 120, 255, 0.4);
  transform: translateY(-2px);
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 992px) {
  #product-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  #product-list {
    grid-template-columns: 1fr;
  }

  .image-grid img:first-child {
    width: 180px;
    height: 180px;
  }
}

/* =========================
   IMAGE HOVER
========================= */

.image-grid img:hover {
  transform: scale(1.05);
  transition: 0.3s ease;
  cursor: pointer;
}
