/* === Base === */
body {
  font-family: 'Poppins', sans-serif;
  background: #f8f9fa;
  color: #333;
  margin: 0;
}
a { color: #0366d6; text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; }

.site-container {
  max-width: 1200px;
  margin: auto;
  padding: 20px;
}
.section-title {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 15px;
}

/* === Header === */
header { background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
}
nav { background: #0056b3; }
nav a { color: #fff; padding: 10px 15px; display: inline-block; }
nav a:hover { background: rgba(255,255,255,0.2); }

/* === Breadcrumb === */
.breadcrumb {
  font-size: 0.85rem;
  margin-bottom: 20px;
}
.breadcrumb a { color: #0366d6; }
.breadcrumb span { color: #666; }

/* === Grid Products & Articles === */
.products-grid, .article-grid {
  display: grid;
  gap: 20px;
}
.products-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.article-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.product-card, .article-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  transition: transform .2s, box-shadow .2s;
  text-align: center;
}

.product-card:hover, .article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.product-card img, .article-card img {
  margin-bottom: 10px;
  height: auto;
}

.product-card img { height: 180px; object-fit: cover; }
.article-card img { height: 160px; object-fit: cover; }

.product-card .price { color: #e53935; font-weight: bold; }
.article-card-content { padding: 15px; }
.article-meta { font-size: 0.85rem; color: #666; }

/* === Layout 2 Columns === */
.layout-2col {
  display: flex;
  gap: 20px;
}
.layout-2col .main {
  flex: 0 0 70%;
  max-width: 70%;
}
.layout-2col .sidebar {
  flex: 0 0 30%;
  max-width: 30%;
}
.sidebar {
  background: #fff;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
.sidebar h3 { margin-top: 0; }

/* Sidebar Articles & Category Tree */
.article-list-sidebar li, .sidebar ul {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.article-list-sidebar img, .sidebar li {
  width: 60px;
  height: 45px;
  object-fit: cover;
  border-radius: 4px;
}
.article-list-sidebar .title, .sidebar a {
  font-size: 0.9rem;
  font-weight: bold;
  color: #0366d6;
}
.sidebar a:hover { color: #0366d6; }

/* Responsive Design */
@media (max-width: 900px) {
  .layout-2col {
    flex-direction: column;
  }
  .layout-2col .main, .layout-2col .sidebar {
    max-width: 100%;
    flex: 0 0 100%;
  }
}

/* ==== Contact Page ==== */
.contact-layout .contact-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.contact-form, .contact-info {
  flex: 1;
  min-width: 280px;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
.contact-form label {
  display: block;
  margin-top: 10px;
  margin-bottom: 5px;
  font-weight: 500;
}
.contact-form input, 
.contact-form textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
}
.contact-form button {
  margin-top: 15px;
  width: 100%;
}
.alert {
  padding: 10px;
  background: #eaf7ea;
  color: #2e7d32;
  border: 1px solid #c8e6c9;
  border-radius: 4px;
  margin-bottom: 15px;
}
.products-grid, .article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
.product-card, .article-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform .3s;
}
.product-card:hover, .article-card:hover {
  transform: translateY(-5px);
}
.price {
  color: #e53935;
  font-weight: bold;
  margin-top: 5px;
}

.breadcrumb a, .breadcrumb span {
  color: #333;
  text-decoration: none;
  font-size: 0.9em;
}
.breadcrumb a:hover {
  text-decoration: underline;
}
.cat-level-0 {
    padding-left: 0;
}

.category-item {
    list-style-type: none;
    margin-bottom: 8px;
}

.category-link {
    color: #0366d6;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: all 0.3s ease;
}

.category-link:hover {
    color: #004a9f;
}

.toggle-btn, .no-toggle {
    display: inline-block;
    width: 16px;
    font-weight: bold;
    background: #0056b3;
    color: #fff;
    text-align: center;
    border-radius: 2px;
    margin-right: 8px;
    cursor: pointer;
}

.no-toggle {
    background: transparent;
}

.sub-cat {
    margin-left: 20px;
    border-left: 2px solid #eee;
    padding-left: 12px;
    transition: max-height 0.3s ease;
}

.count {
    color: #999;
    font-size: 0.85em;
}


@media (max-width: 768px) {
    .layout-2col {
        flex-direction: column;
    }

    .sidebar {
        margin-top: 20px;
    }
}











