* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Open Sans, sans-serif;
  background: #f8f9fa;
  padding: 20px;
  color: #333;
}

.hidden {
  display: none;
}

/* Index page styles */
.container {
  max-width: 1200px;
  margin: 0 auto;
}

h1 {
  margin-bottom: 20px;
  text-align: center;
  color: #111;
  font-weight: 700;
}

.search-box {
  background: white;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  display: flex;
  gap: 10px;
}

.search-box input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}

.search-box input:focus {
  border-color: #2d2d2d;
}

.table-wrapper {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid #dee2e6;
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead {
  background: #f1f3f5;
  border-bottom: 2px solid #dee2e6;
}

th {
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  color: #495057;
  font-size: 13px;
  white-space: nowrap;
}

td {
  padding: 12px 16px;
  border-bottom: 1px solid #dee2e6;
  font-size: 14px;
  vertical-align: middle;
}

tbody tr:hover {
  background: #f8f9fa;
}

.details-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: #2d2d2d;
  color: white;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s;
}

.details-btn:hover {
  background: #4a4a4a;
  transform: scale(1.05);
}

.details-btn:active {
  transform: scale(0.95);
}

.details-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}

.no-results {
  text-align: center;
  padding: 40px;
  color: #6c757d;
  font-size: 15px;
}

/* Product details page styles */
.container-detail {
  max-width: 1000px;
  margin: 0 auto;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.header {
  padding-bottom: 20px;
  background: #f9f9f9;
  border-bottom: 1px solid #ddd;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.breadcrumb {
  color: #666;
  font-size: 14px;
}

.breadcrumb a {
  color: #2d2d2d;
  text-decoration: none;
}

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

.content {
  padding: 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.gallery {}

.main-image {
  width: 100%;
  background: #e9e9e9;
  margin-bottom: 15px;
  border-radius: 4px;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

.thumb {
  width: 100%;
  aspect-ratio: 1;
  background: #e9e9e9;
  border: 2px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  overflow: hidden;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb.active {
  border-color: #2d2d2d;
}

.details {}

.product-title {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 15px;
}

.product-meta {
  font-size: 14px;
  color: #666;
  line-height: 1.8;
  margin-bottom: 20px;
}

.meta-row {
  margin-bottom: 10px;
}

.meta-label {
  font-weight: bold;
  color: #333;
}

.description {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 4px;
  margin-top: 20px;
  font-size: 14px;
  line-height: 1.6;
}

.description p {
  margin-bottom: 15px;
}

.description ul,
.description ol {
  margin-left: 20px;
  margin-bottom: 15px;
}

.description li {
  margin-bottom: 8px;
}

.description strong {
  font-weight: bold;
}

.back-button {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  background: #2d2d2d;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
}

.back-button:hover {
  background: #4a4a4a;
}