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

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center;
  background: #e8f4fc;
  color: #1a365d;
  text-align: center;
}

a { color: inherit; }

.banner {
  width: 100%;
  max-width: 1000px;
  height: auto;
  display: block;
}

.content {
  display: flex; flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 2rem;
  margin-top: 0;
  width: 100%;
  max-width: 1000px;
  position: relative;
}

.icon {
  width: 80px; height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #b8d9f0;
  background: #fff;
  flex-shrink: 0;
  display: block;
}

.brought-by {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1a365d;
}
.brought-text { white-space: nowrap; }
.brought-name { white-space: nowrap; font-weight: 700; }
@media (max-width: 768px) {
  .brought-by { gap: 0.5rem; font-size: 0.78rem; }
  .brought-text, .brought-name { white-space: normal; }
}

.btn {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  background: #1a365d;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.25s;
  position: absolute;
  right: 2rem;
}
.btn:hover {
  background: #2b4c7e;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(26,54,93,0.3);
}

.btn-primary {
  display: inline-block;
  padding: 0.75rem 1.6rem;
  background: #1a365d;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.25s;
  margin: 0.5rem 0;
}
.btn-primary:hover {
  background: #2b4c7e;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(26,54,93,0.3);
}

/* ---- SEARCH ---- */
.search-wrapper {
  width: 100%;
  max-width: 1000px;
  padding: 0.3rem 1rem 0.6rem;
}

.search-input {
  width: 100%;
  padding: 0.55rem 0.9rem;
  font-size: 0.9rem;
  font-family: inherit;
  color: #1a365d;
  background: #fff;
  border: 2px solid #b8d9f0;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-input::placeholder { color: #7a9cbf; }
.search-input:focus {
  border-color: #1a365d;
  box-shadow: 0 0 0 3px rgba(26,54,93,0.12);
}

.no-results {
  display: none;
  font-style: italic;
  color: #7a9cbf;
  padding: 2rem 0;
}

/* ---- TABS ---- */
.tabs-wrapper {
  width: 100%;
  max-width: 1000px;
  margin-top: 0;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  border-bottom: 2px solid #b8d9f0;
  column-gap: 0.3rem;
  row-gap: 0;
}

.tab-separator {
  color: #3a5a7c;
  font-size: 16px;
  line-height: 0;
  display: inline-flex;
  align-items: center;
  padding: 0 0.2rem;
  user-select: none;
}

.tab {
  padding: 0.35rem 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.25;
  color: #3a5a7c;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: -2px;
  text-decoration: none;
}
.tab:hover {
  color: #1a365d;
  background: rgba(184,217,240,0.3);
}
.tab.active {
  color: #1a365d;
  border-bottom-color: #1a365d;
}

/* ---- TAB CONTENT ---- */
.tab-content {
  width: 100%;
  max-width: 1000px;
  min-height: 200px;
  padding: 1.5rem 1rem;
  overflow: hidden;
}

.page-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #1a365d;
  margin-bottom: 1rem;
}

/* ---- PRODUCT CARDS ---- */
.products {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  text-align: left;
  width: 100%;
}

.product-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  transition: all 0.2s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0.5rem;
  width: calc(33.333% - 0.54rem);
  height: 100px;
  max-height: 100px;
  min-height: 100px;
  overflow: hidden;
}
.product-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.product-card img {
  width: 65px;
  height: 65px;
  object-fit: contain;
  flex-shrink: 0;
  margin-right: 0.5rem;
  border-radius: 6px;
}

.product-card .info {
  flex: 1;
  overflow: hidden;
}

.product-card .title {
  font-size: 0.72rem;
  font-weight: 600;
  color: #1a365d;
  margin-bottom: 0.2rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card .meta {
  font-size: 0.65rem;
  color: #7a9cbf;
  margin-bottom: 0.1rem;
}

.product-card .price {
  font-size: 0.85rem;
  font-weight: 700;
  color: #1a365d;
}

.product-card .price.free {
  color: #28a745;
}

/* ---- BREADCRUMBS ---- */
.breadcrumbs {
  width: 100%;
  max-width: 1000px;
  padding: 0.6rem 1rem 0;
  font-size: 0.8rem;
  color: #7a9cbf;
  text-align: left;
}
.breadcrumbs a {
  color: #3a5a7c;
  text-decoration: none;
}
.breadcrumbs a:hover { text-decoration: underline; }

/* ---- PRODUCT DETAIL ---- */
.product-detail {
  width: 100%;
  max-width: 1000px;
  padding: 1rem 1rem 2rem;
  text-align: left;
}

.product-hero {
  display: flex;
  gap: 1.5rem;
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  align-items: flex-start;
}

.hero-img {
  width: 260px;
  max-width: 40%;
  max-height: 260px;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  flex-shrink: 0;
  background: #f5fafe;
  align-self: flex-start;
}

.hero-info { flex: 1; }

.hero-info h1 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #1a365d;
  margin-bottom: 0.5rem;
  line-height: 1.25;
}

.hero-info .meta {
  font-size: 0.9rem;
  color: #7a9cbf;
  margin-bottom: 0.5rem;
}

.hero-info .price {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a365d;
  margin-bottom: 1rem;
}
.hero-info .price.free { color: #28a745; }

.categories-tags {
  font-size: 0.85rem;
  color: #3a5a7c;
  margin-top: 1rem;
}
.categories-tags a {
  color: #1a365d;
  font-weight: 600;
  text-decoration: none;
  padding: 0.1rem 0.4rem;
  background: #dceaf5;
  border-radius: 4px;
  margin: 0 0.1rem;
  display: inline-block;
}
.categories-tags a:hover { background: #b8d9f0; }

/* ---- DESCRIPTION (inside hero, right of image) ---- */
.related h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a365d;
  margin-bottom: 1rem;
}

.hero-description {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #dceaf5;
  font-size: 0.92rem;
  line-height: 1.6;
  color: #2b4c6a;
}
.hero-description p {
  margin-bottom: 0.75rem;
}
.hero-description p:last-child { margin-bottom: 0; }

.read-more-link {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #1a365d;
  background: #dceaf5;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s;
}
.read-more-link:hover {
  background: #b8d9f0;
  transform: translateY(-1px);
}

/* ---- RELATED ---- */
.related {
  margin-top: 2rem;
}

footer {
  margin-top: auto;
  padding: 1.5rem;
  font-size: 0.8rem; color: #7a9cbf;
}

@media (max-width: 768px) {
  .banner { max-height: none; }
  .content { padding: 0.3rem 1rem; }
  .icon { width: 50px; height: 50px; margin: 0 1rem; }
  .btn { font-size: 0.75rem; padding: 0.4rem 0.8rem; right: 1rem; }
  .tabs { column-gap: 0.1rem; }
  .tab { font-size: 0.7rem; padding: 0.3rem 0.3rem; }
  .tab-separator { font-size: 10px; }
  .product-card { width: 100%; }
  .product-card img { width: 45px; height: 45px; margin: 0.3rem; }
  .product-card .title { font-size: 0.7rem; }
  .product-card .meta { font-size: 0.6rem; }
  .product-card .price { font-size: 0.8rem; }
  .product-card .info { padding: 0.4rem; }
  .product-hero { flex-direction: column; align-items: center; text-align: center; }
  .hero-img { width: 80%; max-width: 100%; }
  .hero-info h1 { font-size: 1.25rem; }
}
