/* ------------------------------
   GLOBAL RESET
--------------------------------*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Arial", sans-serif;
}

body {
  background: #f2f3f7;
  color: #111;
  line-height: 1.5;
}

/* ------------------------------
   HEADER (Amazon-like layout)
--------------------------------*/
#site-header {
  background: #0d1117;
  color: #fff;
  padding: 15px 20px;
  border-bottom: 2px solid #272c33;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand h1 {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 1px;
}

.brand .tagline {
  font-size: 12px;
  opacity: 0.7;
}

/* Search Section */
.search-area {
  width: 45%;
}

.search-area form {
  display: flex;
  width: 100%;
}

.search-area input {
  flex: 1;
  padding: 10px;
  border: none;
  font-size: 15px;
  border-radius: 4px 0 0 4px;
  outline: none;
}

.search-area button {
  padding: 10px 15px;
  background: #ff9900;
  border: none;
  color: #000;
  font-weight: bold;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
}

.quick-cats ul {
  display: flex;
  gap: 15px;
  font-size: 13px;
  margin-top: 5px;
}

.quick-cats a {
  color: #ddd;
  text-decoration: none;
}

.quick-cats a:hover {
  color: #ff9900;
}

/* Account + Cart */
.account-cart a {
  color: #fff;
  margin-left: 20px;
  text-decoration: none;
  font-size: 14px;
}

.account-cart a:hover {
  color: #ff9900;
}

/* ------------------------------
   MAIN LAYOUT (Sidebar + Products)
--------------------------------*/
.page-container {
  display: flex;
  padding: 20px;
  gap: 20px;
}

/* ------------------------------
   SIDEBAR FILTERS
--------------------------------*/
#filters {
  width: 250px;
  background: #fff;
  padding: 15px;
  border-radius: 6px;
  height: max-content;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

#filters h2 {
  margin: 15px 0 5px;
  font-size: 18px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 5px;
}

#filters ul {
  list-style: none;
  margin-bottom: 10px;
}

#filters li {
  margin: 5px 0;
}

#filters a {
  color: #222;
  text-decoration: none;
  font-size: 14px;
}

#filters a:hover {
  color: #ff9900;
}

/* Dropdown Sort */
#sortSelect {
  width: 100%;
  padding: 8px;
}

/* ------------------------------
   PRODUCT GRID
--------------------------------*/
#shop {
  flex: 1;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  padding: 10px 5px;
  font-size: 14px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
  margin-top: 15px;
}

/* Product Card */
.product-card {
  background: #fff;
  padding: 12px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: 0.2s;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.product-title {
  font-size: 16px;
  font-weight: bold;
}

.short-desc {
  font-size: 12px;
  color: #666;
}

.product-media {
  height: 160px;
  background: #e4e4e4;
  margin: 10px 0;
  border-radius: 5px;
}

.price {
  color: #b12704;
  font-size: 18px;
  font-weight: bold;
}

.rating {
  font-size: 13px;
  margin-top: 4px;
}

.product-actions {
  margin-top: 10px;
  display: flex;
  gap: 10px;
}

.product-actions .btn {
  flex: 1;
  text-align: center;
  padding: 8px 0;
  border-radius: 4px;
  background: #ff9900;
  text-decoration: none;
  color: #000;
  font-size: 14px;
  font-weight: bold;
  transition: 0.2s;
}

.product-actions .btn:hover {
  background: #ffae30;
}

/* ------------------------------
   PAGINATION
--------------------------------*/
.pagination {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}

.pagination button {
  padding: 8px 12px;
  border: none;
  background: #ddd;
  border-radius: 4px;
}

.pagination button:hover {
  background: #bbb;
}

/* ------------------------------
   FOOTER
--------------------------------*/
#site-footer {
  margin-top: 40px;
  background: #111;
  color: white;
  padding: 25px 20px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

#site-footer a {
  color: #ff9900;
  text-decoration: none;
}

#site-footer a:hover {
  text-decoration: underline;
}

/* COPYRIGHT */
#site-footer .copyright {
  margin-top: 20px;
  text-align: center;
  font-size: 13px;
  opacity: 0.6;
}

/* ------------------------------
   RESPONSIVE
--------------------------------*/
@media (max-width: 900px) {
  .header-inner {
    flex-direction: column;
    gap: 10px;
  }

  .search-area {
    width: 100%;
  }

  .page-container {
    flex-direction: column;
  }

  #filters {
    width: 100%;
  }
}