:root {
  --primary-maroon: #6e000c;
  --primary-color: #6e000c;
  --bg-gray: #f5f5f5;
  --bg-light: #f9f9f9;
  --bg-lighter: #f7f7f7;
  --text-dark: #1a1c1c;
  --text-light: #ffffff;
  --text-muted: rgba(26, 28, 28, 0.7);
  --border-color: rgba(110, 0, 12, 0.4);
  --font-heading: 'Gotham', sans-serif;
}

body {
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--bg-light);
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 90px;
  box-sizing: border-box;
}

@media (max-width: 1024px) {
  .container {
    padding: 0 40px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
}

img {
  max-width: 100%;
  display: block;
}

/* Hero Banner Section */
.hero-banner {
  background-color: var(--primary-maroon);
  color: var(--text-light);
  padding: 40px 0;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.breadcrumb a {
  color: var(--text-light);
  transition: opacity 0.2s;
}

.breadcrumb a:hover {
  opacity: 0.8;
}

.breadcrumb .current {
  font-weight: 700;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 36px;
  margin: 0 0 10px 0;
  font-weight: 700;
}

.hero-subtitle {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

/* Main Content Area */
#section-main-content {
  background-color: var(--bg-lighter);
  padding-bottom: 90px;
}

.filter-bar-wrapper {
  border-bottom: 1px solid var(--primary-maroon);
  margin-bottom: 40px;
  background-color: var(--bg-lighter);
}

.filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  padding-bottom: 20px;
}

.filter-left {
  display: flex;
  align-items: center;
  gap: 60px;
}

.btn-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--primary-maroon);
  padding: 10px 20px;
  color: var(--primary-maroon);
  font-weight: 600;
  transition: background-color 0.2s;
}

.btn-filter:hover {
  background-color: rgba(110, 0, 12, 0.05);
}

.product-count {
  color: var(--text-muted);
  font-size: 14px;
}

.filter-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.sort-label {
  color: var(--text-dark);
  font-size: 14px;
}

.sort-dropdown {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border-color);
  padding: 10px 20px;
  color: var(--text-muted);
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.2s;
}

.sort-dropdown:hover {
  border-color: var(--primary-maroon);
}

/* Main Layout & Sidebar */
.main-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.sidebar {
  width: 250px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.sidebar-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-title {
  font-family: var(--font-heading);
  margin: 0;
  font-size: 18px;
  color: var(--primary-maroon);
  border-left: 4px solid var(--primary-maroon);
  padding-left: 20px;
}

.sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-list li {
  display: flex;
  justify-content: space-between;
  padding: 10px;
  font-size: 14px;
  color: var(--text-dark);
  cursor: pointer;
  transition: background-color 0.2s;
}

.sidebar-list li a {
  text-decoration: none;
  color: inherit;
  width: 100%;
  display: flex;
  justify-content: space-between;
}

.sidebar-list li:hover:not(.active) {
  background-color: rgba(0, 0, 0, 0.02);
}

.sidebar-list li.active {
  background-color: var(--primary-maroon);
  color: var(--text-light);
}

.sidebar-list li .count {
  color: var(--text-muted);
}

.sidebar-list li.active .count {
  color: rgba(255, 255, 255, 0.7);
}

.sidebar-list a {
  text-decoration: none;
  color: inherit;
  width: 100%;
  display: flex;
  justify-content: space-between;
}

/* Product Grid */
.product-grid-area {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 40px;
}

.product-card {
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s;
  text-decoration: none;
  color: inherit;
}

.product-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.product-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  background-color: #e0e0e0;
  overflow: hidden;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-tag {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: var(--primary-maroon);
  color: var(--text-light);
  padding: 4px 10px;
  font-size: 12px;
  text-transform: uppercase;
}

.product-tag.tag-sale {
  background-color: var(--text-dark);
}

.product-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
  text-align: center;
}

.product-title {
  font-family: var(--font-heading);
  margin: 0;
  font-size: 16px;
  color: var(--primary-maroon);
  font-weight: 600;
}

.product-desc {
  margin: 0;
  font-size: 12px;
  color: #552329;
}

.product-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-top: 10px;
}

.product-price {
  font-family: var(--font-heading);
  font-size: 14px;
  color: var(--primary-maroon);
  font-weight: 600;
}

.add-to-bag {
  background-color: var(--text-dark);
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 12px;
  transition: opacity 0.2s;
  border: none;
  cursor: pointer;
}

.add-to-bag:hover {
  opacity: 0.8;
}

.add-to-bag:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.add-to-bag img {
  width: 14px;
  height: 14px;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.page-btn {
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--border-color);
  color: var(--primary-maroon);
  font-size: 14px;
  background: none;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s;
}

.page-btn:hover {
  background-color: rgba(110, 0, 12, 0.05);
}

.page-btn.active {
  background-color: var(--primary-maroon);
  color: var(--text-light);
}

.page-btn.prev,
.page-btn.next {
  border: none;
  background: none;
  padding: 0;
}

.page-btn a {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

/* Empty State */
.no-products {
  text-align: center;
  padding: 60px 20px;
}

.no-products p {
  font-size: 16px;
  color: var(--text-muted);
}

/* Category Long Description */
.category-long-description {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid #eee;
}

.category-long-description h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--primary-maroon);
}

.long-desc-content {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .hero-title {
    font-size: 24px;
  }

  .filter-bar {
    flex-wrap: wrap;
    gap: 15px;
  }

  .filter-left {
    gap: 20px;
  }

  .pagination {
    flex-wrap: wrap;
  }

  .main-layout {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .breadcrumb {
    flex-wrap: wrap;
  }
}
