/* OUTDOORS PAGE STYLES */

/* ROOT & BODY */
html, body { height: 100%; background-color: #fff; }

/* MAIN LAYOUT */
main { display: flex; gap: 2rem; max-width: 1400px; margin: 0 auto; padding: 3rem 2rem; }

/* SIDEBAR FILTERS */
#filters-sidebar { flex: 0 0 300px; position: sticky; top: 180px; height: fit-content; background: #fff; border: 1px solid #e0e0e0; border-radius: 8px; padding: 0; overflow-y: auto; max-height: calc(100vh - 200px); margin-top: 180px; }

/* FILTER HEADER */
.filter-header { display: flex; justify-content: space-between; align-items: center; padding: 1.2rem; border-bottom: 1px solid #e0e0e0; background: #f9f9f9; }
.filter-header h3 { font-size: 0.95rem; color: #333; margin: 0; font-weight: 700; text-transform: uppercase; }
.filter-header button { padding: 0.3rem 0.6rem; background: transparent; color: var(--color-primary); border: none; cursor: pointer; font-weight: 600; font-size: 0.75rem; text-transform: uppercase; transition: all 0.2s; }

/* FILTER SECTIONS */
.filter-section { border-bottom: 1px solid #e0e0e0; }
.filter-toggle { width: 100%; padding: 1rem 1.2rem; background: #fff; border: none; border-bottom: 1px solid #e0e0e0; text-align: left; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 700; color: #333; font-size: 0.95rem; transition: all 0.2s; }
.filter-toggle:hover { background: #f9f9f9; }
.filter-toggle i { font-size: 0.8rem; transition: transform 0.3s; }
.filter-content { display: none; padding: 1rem 1.2rem; border-bottom: 1px solid #e0e0e0; }

/* FILTER INPUTS */
.filter-search { width: 100%; padding: 0.6rem; margin-bottom: 0.8rem; border: 1px solid #ddd; border-radius: 4px; font-size: 0.85rem; }

/* FILTER LISTS */
#type-list, #brand-list { display: flex; flex-direction: column; gap: 0.6rem; max-height: 250px; overflow-y: auto; }
#type-list label, #brand-list label { display: flex; align-items: center; cursor: pointer; font-weight: 500; color: #333; gap: 0.6rem; font-size: 0.9rem; }
#type-list input, #brand-list input { width: 18px; height: 18px; cursor: pointer; accent-color: var(--color-primary); }

/* CHECKBOX LABELS */
.filter-content label { display: flex; align-items: center; cursor: pointer; font-weight: 500; color: #333; gap: 0.6rem; }
.filter-content input[type="checkbox"] { width: 18px; height: 18px; cursor: pointer; accent-color: var(--color-primary); }

/* SELECT FILTER */
#sort-filter { width: 100%; padding: 0.6rem; border: 1px solid #ddd; border-radius: 4px; font-size: 0.85rem; background: #fff; }

/* SHOW MORE BUTTON */
.show-more-btn { width: 100%; padding: 0.6rem; margin-top: 0.8rem; background: transparent; border: 1px solid #e0e0e0; border-radius: 4px; color: var(--color-primary); font-weight: 600; cursor: pointer; font-size: 0.85rem; display: none; }
.show-more-btn:hover { background: #f9f9f9; }

/* PRICE RANGE */
#price-min, #price-max { flex: 1; padding: 0.6rem; border: 1px solid #ddd; border-radius: 4px; font-size: 0.85rem; }
.price-flex { display: flex; gap: 0.4rem; }

/* CONTENT AREA */
main > div { flex: 1; min-width: 0; }
.page-title { font-size: 2rem; color: var(--color-bg-dark); margin-bottom: 2rem; }
main > div > p { color: #666; margin-bottom: 2rem; }

/* CONTROLS */
.controls-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; flex-wrap: wrap; gap: 1rem; }
.product-count { color: #666; font-weight: 500; }

/* VIEW TOGGLE */
.view-toggle { display: flex; gap: 0.5rem; align-items: center; }
.view-toggle label { font-weight: 600; color: #333; font-size: 0.9rem; margin-right: 0.5rem; }
.view-toggle button { padding: 0.6rem 1rem; background: #ddd; color: #333; border: none; cursor: pointer; font-weight: 600; transition: all 0.3s; }
.view-toggle button:first-of-type { border-radius: 4px 0 0 4px; }
.view-toggle button:last-of-type { border-radius: 0 4px 4px 0; }
.view-toggle button.active { background: var(--color-primary); color: #fff; }

/* PRODUCT GRID */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 2rem; margin-bottom: 4rem; }
.products-grid .loading { grid-column: 1 / -1; text-align: center; padding: 2rem; }
.products-grid .loading i { font-size: 2rem; color: var(--color-primary); }

/* PRODUCT CARDS */
.product-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #e0e0e0; border-radius: 8px; overflow: hidden; transition: all 0.3s; }
.product-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.product-image { width: 100%; aspect-ratio: 1; overflow: hidden; background: #f5f5f5; }
.product-image img { width: 100%; height: 100%; object-fit: cover; }
.product-info { padding: 1rem; flex: 1; display: flex; flex-direction: column; }
.product-name { font-size: 0.95rem; margin: 0 0 0.5rem 0; color: #333; font-weight: 600; line-height: 1.3; }
.product-brand { color: #666; font-size: 0.85rem; margin: 0 0 0.5rem 0; }
.product-price { color: var(--color-primary); font-weight: 700; font-size: 1.1rem; margin: 0.5rem 0; }
.product-stock { font-size: 0.85rem; margin: 0.5rem 0; font-weight: 600; }
.product-btn { margin-top: auto; padding: 0.6rem; background: var(--color-primary); color: #fff; border: none; border-radius: 4px; cursor: pointer; font-weight: 600; transition: background 0.3s; }
.product-btn:hover { background: #8b1a1a; }

/* LIST VIEW */
#list-view { display: none; margin-bottom: 4rem; overflow-x: auto; }
#list-view table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #e0e0e0; border-radius: 8px; }
#list-view thead { background: #f9f9f9; border-bottom: 2px solid #e0e0e0; }
#list-view th { padding: 1rem; text-align: left; font-weight: 600; color: #333; }
#list-view tbody tr { border-bottom: 1px solid #e0e0e0; transition: background 0.2s; }
#list-view tbody tr:hover { background: #f9f9f9; }
#list-view td { padding: 1rem; }
#list-view .empty { padding: 2rem; text-align: center; color: #999; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  main { flex-direction: column; }
  #filters-sidebar { flex: 1; position: static; max-height: none; }
}

@media (max-width: 768px) {
  main { gap: 1rem; padding: 2rem 1rem; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; }
  .page-title { font-size: 1.5rem; }
}

@media (max-width: 480px) {
  main { gap: 0.5rem; padding: 1rem; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .view-toggle { flex-direction: column; width: 100%; }
}
