
/* Breadcrumbs */
.breadcrumbs {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: var(--space-md);
}

.breadcrumbs a {
  color: #666;
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.breadcrumbs span {
  margin: 0 8px;
  color: #ccc;
}

/* Sidebar Layout */
.product-page-container {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--space-xl);
  padding-top: var(--space-lg);
  padding-bottom: var(--space-xl);
  align-items: start;
}

.product-sidebar {
  padding-right: var(--space-md);
  position: sticky;
  top: 100px;
}

.sidebar-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
  color: #000;
  border-bottom: 2px solid #eee;
  padding-bottom: 8px;
}

.sidebar-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-item {
  margin-bottom: 4px;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  cursor: pointer;
  color: #333;
  font-weight: 500;
  transition: color 0.2s;
}

.sidebar-header:hover, .sidebar-header.active {
  color: #00A0E9;
}

.sidebar-toggle {
  font-size: 1.2rem;
  line-height: 1;
  color: #999;
}

.sidebar-submenu {
  list-style: none;
  padding-left: 16px;
  display: none; /* Hidden by default */
}

.sidebar-submenu.open {
  display: block;
}

.sidebar-subitem a {
  display: block;
  padding: 6px 0;
  font-size: 0.95rem;
  color: #666;
  text-decoration: none;
}

.sidebar-subitem a:hover, .sidebar-subitem a.active {
  color: #00A0E9;
}

/* Main Content */
.category-header {
  margin-bottom: var(--space-lg);
  border-bottom: 1px solid #eee;
  padding-bottom: var(--space-sm);
}

.category-header h1 {
  font-size: 1.5rem;
  color: #000;
  margin: 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-lg);
}

/* Detail Page */
.product-detail-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.main-image {
  width: 100%;
  background: #f9f9f9;
  border-radius: 8px;
  overflow: hidden;
}

.main-image img {
  width: 100%;
  height: auto;
  display: block;
}

.thumbnail-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.thumbnail {
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 4px;
  overflow: hidden;
  opacity: 0.7;
  transition: all 0.2s;
}

.thumbnail:hover, .thumbnail.active {
  border-color: #00A0E9;
  opacity: 1;
}

.product-info h1 {
  font-size: 1.8rem;
  margin-bottom: var(--space-md);
  color: #000;
}

.product-desc {
  color: #666;
  line-height: 1.8;
  margin-bottom: var(--space-xl);
}

/* Responsive */
@media (max-width: 768px) {
  .product-page-container {
    grid-template-columns: 1fr;
  }
  
  .product-detail-container {
    grid-template-columns: 1fr;
  }
}

/* Inherited Card Styles */
.card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.image-wrapper {
  width: 100%;
  padding-top: 100%;
  position: relative;
  background: #f9f9f9;
}

.image-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
}

.card h3 {
  padding: 15px;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #333;
  text-align: center;
  border-top: 1px solid #f0f0f0;
}
