/* ============================= */
/*          ROOT & RESET         */
/* ============================= */

:root {
  --primary: #0a2a66;
  --accent: #00bcd4;
  --bg: #f5f7fb;
  --card: #ffffff;
  --card-bg: #ffffff;
  --text: #222222;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* ============================= */
/*            HEADER             */
/* ============================= */

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}

.logo,
.logo-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.2rem;
}

.logo-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.logo-wrap img {
    height: 40px;
}

.logo img {
    height: 40px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 18px;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.menu-toggle {
  display: none;
  font-size: 1.4rem;
  cursor: pointer;
}

/* Mobile Navigation */
@media (max-width: 768px) {
  nav ul {
    position: absolute;
    top: 56px;
    right: 0;
    background: linear-gradient(180deg, var(--primary), var(--accent));
    flex-direction: column;
    padding: 10px 18px;
    display: none;
    border-radius: 8px;
  }

  nav ul.open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }
}

/* ============================= */
/*            BANNER             */
/* ============================= */

.banner {
  padding: 60px 20px 40px;
  text-align: center;
  background: radial-gradient(circle at top, #00bcd4 0, #0a2a66 45%, #020b1e 100%);
  color: #fff;
}

.banner h1 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.banner p {
  opacity: 0.9;
  margin-bottom: 24px;
  font-size: 0.98rem;
}

/* ============================= */
/*          SEARCH BOX           */
/* ============================= */

.search-box {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.search-box input {
  padding: 10px 14px;
  border-radius: 999px;
  border: none;
  width: min(420px, 90vw);
  font-size: 0.95rem;
  outline: none;
}

.search-box button {
  padding: 10px 18px;
  border-radius: 999px;
  border: none;
  background: #fff;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  font-size: 0.95rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.search-box button:hover {
  opacity: 0.9;
}

/* Search area (Page 4) */
.search-area {
  padding: 20px;
  background: var(--card);
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  margin-bottom: 20px;
}

.search-area .search-box {
  max-width: 700px;
  margin: 0 auto;
  gap: 10px;
}

.search-area .search-box input {
  border: 1px solid #ddd;
  padding: 12px 16px;
}

.search-area .search-box button {
  padding: 12px 20px;
  background: var(--accent);
  color: #fff;
}

/* ============================= */
/*            CONTENT            */
/* ============================= */

.content,
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 16px 40px;
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  gap: 8px;
  flex-wrap: wrap;
}
.page-title {
   font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.section-title h2 {
  font-size: 1.2rem;
}

.section-title span {
  font-size: 0.85rem;
  color: #666;
}

/* ============================= */
/*         PRODUCT CARDS         */
/* ============================= */

.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.product {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 14px 14px 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}

.product:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.product img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 10px;
}

.product-source {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
  font-weight: 600;
}
.product-image img {
    height: 140px;
    width: auto;
}
.product-name {
  font-size: 0.95rem;
  font-weight: 600;
}

.product-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
}

.product-meta {
  font-size: 0.85rem;
  color: #777;
}

.product-actions {
  margin-top: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.product-actions button {
  padding: 7px 12px;
  border-radius: 999px;
  border: none;
  font-size: 0.8rem;
  cursor: pointer;
  font-weight: 600;
}

.btn-detail {
  background: var(--accent);
  color: #fff;
}

.btn-detail:hover {
  opacity: 0.9;
}

.btn-source {
  background: #eef3ff;
  color: var(--primary);
}

/* ============================= */
/*         PRODUCT PAGE          */
/* ============================= */

.product-box {
  background: var(--card);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 24px;
}

.product-box img {
  width: 100%;
  border-radius: 12px;
}

.product-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.product-desc {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 20px;
}

.specs {
  background: var(--bg);
  padding: 14px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.specs h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.specs ul {
  list-style: none;
  font-size: 0.9rem;
  color: #444;
}

.specs li {
  padding: 4px 0;
}

/* ============================= */
/*         PRICE TABLE           */
/* ============================= */

.price-table {
  margin-top: 30px;
}

.price-table h2 {
  margin-bottom: 12px;
  font-size: 1.3rem;
}

.table-wrapper {
  overflow-x: auto;
  border-radius: 10px;
}

table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  background: var(--card);
}

th, td {
  padding: 14px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

th {
  background: var(--primary);
  color: #fff;
  font-size: 0.95rem;
}

td button {
  padding: 8px 14px;
  border: none;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
}

td button:hover {
  opacity: 0.9;
}

/* ============================= */
/*        CATEGORY GRID          */
/* ============================= */

.categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
}

.category {
  background: var(--card);
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.category:hover {
  transform: translateY(-4px);
}

.category-icon {
  font-size: 2rem;
  margin-bottom: 10px;
  color: var(--accent);
}

.category-name {
  font-size: 1rem;
  font-weight: 600;
}

/* ============================= */
/*            FOOTER             */
/* ============================= */

footer {
  text-align: center;
  padding: 18px 10px;
  background: #020b1e;
  color: #9ea7c5;
  font-size: 0.8rem;
}

/* ============================= */
/*          RESPONSIVE           */
/* ============================= */

@media (max-width: 768px) {
  .product-box {
    grid-template-columns: 1fr;
  }
}
