/* Breadcrumb Styles */
.breadcrumb {
  padding: 15px 24px;
  display: flex;
  align-items: center;
}
.breadcrumb .container {
  display: flex;
  align-items: center;
  font-size: 14px;
  padding: 0;
}
.breadcrumb a {
  color: var(--text-light);
  text-decoration: none;
}
.breadcrumb a:hover {
  text-decoration: underline;
}
.breadcrumb span {
  margin: 0 10px;
  color: var(--text-muted);
}
.breadcrumb .current {
  color: var(--text-light);
  font-weight: 500;
}

/* --- NEW OVERLAY LAYOUT --- */

/* Title Bar Container */
.title-bar {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 24px;
    margin-top: 20px;
    margin-bottom: 20px;
}

/* Sidebar Trigger Button */
.sidebar-trigger {
  background-color: var(--bg-interactive);
  border: none;
  color: var(--text-light);
  padding: 8px 12px;
  border-radius: 5px;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0; /* Prevent button from shrinking */
}
.sidebar-trigger:hover {
  background-color: #4d4d4d;
}

/* Sidebar Overlay Background */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1099;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Sidebar Styles */
.sidebar {
  width: 300px;
  background-color: var(--bg-dark-secondary);
  padding: 20px;
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  z-index: 1100;
  box-sizing: border-box;
  transform: translateX(-100%);
  transition: transform 0.3s ease-in-out;
}
.sidebar.open {
  transform: translateX(0);
}

/* Main Content Area - now takes full width */
.main-content-area {
  width: 100%;
  padding-top: 80px; /* Reduced padding to bring breadcrumb closer to the header */
}

/* Wrapper for Centering Content */
.shop-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* --- Sidebar Nav Styles --- */
.sidebar-nav .nav-title {
  font-size: 24px;
  font-weight: 700;
  margin-top: 40px; /* Space for close button */
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-light);
}
.sidebar-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar-nav li {
  margin-bottom: 5px;
}
.sidebar-nav a {
  color: var(--text-muted);
  text-decoration: none;
  display: block;
  padding: 12px 15px;
  border-radius: 4px;
  transition: color 0.3s ease;
  font-weight: 500;
  font-size: 18px;
}
.sidebar-nav a:hover,
.sidebar-nav a.active {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Collapsible Menu */
.collapsible .submenu {
  list-style: none;
  padding-left: 20px;
  margin-top: 8px;
  display: none;
}
.collapsible.open .submenu {
  display: block;
}
.collapsible > .category-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 12px 15px;
  border-radius: 4px;
  background-color: var(--bg-interactive);
  color: var(--text-light);
  transition: background-color 0.3s ease;
  font-size: 18px;
}
.collapsible > .category-toggle:hover {
    background-color: #4d4d4d;
}
.collapsible .arrow {
  transition: transform 0.3s;
  font-family: monospace;
  font-weight: bold;
}
.collapsible.open .arrow {
  transform: rotate(90deg);
}

/* Close button inside sidebar */
.sidebar-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 30px;
    cursor: pointer;
}
.sidebar-close-btn:hover {
    color: var(--text-light);
}
