body {
  margin: 0;
  font-family: 'Montserrat', Arial, sans-serif;
  background: #fff;
  color: #e30613;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 48px 0 40px;
  border-bottom: 1px solid #eee;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}

.main-logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #e30613;
  letter-spacing: 1px;
}

.predictor {
  font-family: 'Permanent Marker', cursive;
  font-size: 0.9rem;
  color: #e30613;
  margin-top: 2px;
  margin-bottom: 18px;
}

nav a {
  margin: 0 18px;
  text-decoration: none;
  color: #222;
  font-weight: bold;
  font-size: 1rem;
}

.search-bar {
  display: flex;
  align-items: center;
  background: #f5f5f5;
  border-radius: 20px;
  padding: 4px 12px;
  margin-top: -10px;
  position: relative;
}

.search-bar input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 1rem;
  padding: 6px 8px;
}

.search-icon {
  font-size: 1.1rem;
  color: #888;
  margin-left: 4px;
}

.search-dropdown {
  position: absolute;
  top: 44px;
  left: 0;
  width: 100%;
  background: #fff;
  border: 1px solid #d3d3d3;
  border-radius: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  z-index: 100;
  max-height: 320px;
  overflow-y: auto;
  font-size: 1.05rem;
  min-width: 220px;
  padding: 0;
}

.search-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  cursor: pointer;
  color: #222;
  border-bottom: 1px solid #f4f4f4;
  background: #fff;
  font-family: inherit;
  font-weight: 400;
  transition: background 0.15s;
  line-height: 1.4;
}

.search-dropdown-item:last-child {
  border-bottom: none;
}

.search-dropdown-item:hover {
  background: #f4f4f4;
}

.search-dropdown-title {
  font-weight: bold;
  font-size: 1.05rem;
  color: #222;
}

.search-dropdown-desc {
  font-size: 0.97rem;
  color: #888;
  margin-top: 2px;
}

.search-dropdown-arrow {
  margin-left: 16px;
  color: #bbb;
  display: flex;
  align-items: center;
}

main {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 85vh;
  flex: 1;
}

.hero {
  text-align: center;
  position: relative;
}

.predictor-handwritten {
  position: absolute;
  left: 70%;
  top: 10px;
  font-family: 'Permanent Marker', cursive;
  color: #e30613;
  font-size: 1.5rem;
  transform: rotate(20deg);
  font-weight: bold;
}

.hero h1 {
  font-size: 4rem;
  font-weight: bold;
  color: #e30613;
  margin: 0.5em 0 0.2em 0;
}

.hero h2 {
  font-size: 2.5rem;
  font-weight: bold;
  color: #e30613;
  margin: 0 0 1.5em 0;
}

.hero button {
  background: #111;
  color: #fff;
  border: none;
  padding: 14px 36px;
  font-size: 1.1rem;
  border-radius: 0;
  cursor: pointer;
  transition: background 0.2s;
}

.hero button:hover {
  background: #e30613;
  color: #fff;
}

.header-left {
  display: flex;
  align-items: center;
}

.header-nav {
  display: flex;
  margin-left: 36.02px;
  /* space after logo */
  margin-top: -20px;
  /* move links higher, adjust as needed */
}

.header-nav a {
  margin-left: 0;
  margin-right: 0;
  text-decoration: none;
  color: #222;
  font-weight: bold;
  font-size: 1rem;
}

.header-nav a+a {
  margin-left: 36.02px;
  /* space between links */
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px 32px;
  padding: 48px 0 48px 0;
  justify-items: center;
  max-width: 1190px;
  margin: 0 auto;
  width: 100%;
}

.product-card,
.product-top-block,
.product-img-wrap,
.product-detail-container {
  border-radius: 0 !important;
}

.product-card {
  background: #FFFFFF;
  padding: 0;
  width: 100%;
  max-width: 252.42px;
  height: auto;
  aspect-ratio: 252.42/426.37;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: none;
}

.product-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  /* No style change on hover */
}

.product-top-block {
  width: 100%;
  max-width: 252.42px;
  height: 13.72%;
  /* 58.54/426.37 */
  min-height: 40px;
  background: #F7F7F7;
}

.product-img-wrap {
  width: 100%;
  max-width: 252.42px;
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F7F7F7;
  margin-bottom: 18px;
  overflow: hidden;
}

.product-card img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.product-title {
  font-weight: bold;
  color: #bfa13a;
  margin-bottom: 4px;
  font-size: 1.05rem;
  text-align: left;
  width: calc(100% - 12px);
  margin-left: 6px;
  margin-right: 6px;
}

.product-name {
  color: #111;
  font-size: 1rem;
  text-align: left;
  width: calc(100% - 12px);
  margin-left: 6px;
  margin-right: 6px;
  word-break: break-word;
  margin-top: 12px;
}

.product-title+.product-name {
  margin-top: 18px;
  /* extra space between title and name */
}

.product-main {
  display: block;
  height: auto;
  padding: 0;
}

/* Product Detail Page Styles */
.product-detail-main {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  padding: 2rem 4rem;
  max-width: 1600px;
  height: auto;
  flex: 1;
}

.product-detail-left {
  width: 1000px;
  min-width: 712px;
  margin-left: 130px;
}

.product-detail-container {
  flex: 0 0 400px;
  background: white;
  padding: 0 1rem 2rem 1rem;
  margin-left: 0;
  max-width: 300px;
  min-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.product-detail-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.product-detail-image {
  width: 100%;
  max-width: 320px;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fafafa;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.product-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.product-detail-title {
  font-size: 1.1rem;
  font-weight: bold;
  color: #bfa13a;
  margin: 0 0 0.5rem 0;
  text-align: left;
  width: 100%;
}

.product-detail-name {
  font-size: 1rem;
  color: #111;
  margin: 0;
  text-align: left;
  width: 100%;
}

.loading {
  text-align: center;
  padding: 2rem;
  color: #666;
}

.error {
  text-align: center;
  padding: 2rem;
  color: #e30613;
}

@media (max-width: 768px) {
  .product-detail-card {
    flex-direction: column;
  }

  .product-detail-image {
    flex: 0 0 auto;
    width: 100%;
  }
}

.box-buttons-group {
  display: grid;
  grid-template-columns: repeat(4, 76px);
  /* 4 per row, each 76px wide */
  gap: 18px 18px;
  max-width: 420px;
}

.box-btn {
  width: 76px;
  height: 36px;
  min-width: 76px;
  min-height: 36px;
  max-width: 76px;
  max-height: 36px;
  background: #f4f4f4;
  border: 1px solid #f4f4f4;
  color: #222;
  font-size: 0.8rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border 0.15s;
  box-shadow: none;
  outline: none;
  padding: 0;
  border-radius: 0;
}

.box-btn:hover {
  background: #ffd338;
  color: #222;
  border: 1px solid #ffd338;
}

.box-btn.active {
  background: #ffd338;
  color: #222;
  border: 1px solid #ffd338;
}

.box-btn:not(.active) {
  background: #f4f4f4;
  border: 1px solid #f4f4f4;
}

.product-detail-right-col {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
}

.box-status-btn-container {
  display: flex;
  align-items: flex-start;
  margin-right: 0px;
}

.box-status-btn {
  background: #111;
  color: #fff;
  border: none;
  width: 128px;
  height: 38px;
  font-size: 0.8rem;
  font-weight: bold;
  cursor: pointer;
  margin-bottom: 0;
  margin-left: 0;
  margin-top: 0;
  transition: background 0.2s, color 0.2s;
  letter-spacing: 1px;
  align-self: center;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 0;
}

.box-status-btn:hover {
  background: #e30613;
  color: #fff;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
  background-color: #fff;
  margin: 5% auto;
  padding: 20px;
  width: 810px;
  height: 453px;
  max-width: 95vw;
  max-height: 95vh;
  position: relative;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
}

.close-modal {
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
}

.close-modal:hover,
.close-modal:focus {
  color: #e30613;
  text-decoration: none;
  cursor: pointer;
}

.modal-content h3 {
  color: #111;
}

/* How To Use Page Styles */
.how-to-use-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: auto;
  font-family: 'Inter', 'Montserrat', Arial, sans-serif;
  color: #000;
  overflow-y: scroll;
}

.how-to-use-main h1 {
  color: #000;
  font-size: 24px;
  font-weight: bold;
  text-align: center;
  margin-top: 39px;
  margin-bottom: 19px;
}

.how-to-use-body {
  display: flex;
  flex-direction: column;
  align-items: left;
  justify-content: left;
  height: auto;
  width: 70vw;
  padding: 20px 40px;
}

.how-to-use-body p {
  color: #000;
  line-height: 1.4;
  margin-bottom: 20px;
  margin-top: 0px;
}

.how-to-use-body h2 {
  color: #000;
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 15px;
  margin-top: 25px;
}

/* Dropdown Product Card Hover Effects */
.dropdown-product-card {
  transition: all 0.2s ease-in-out;
}

.dropdown-product-card:hover {
  background: #e0e0e0 !important;
}

.dropdown-product-card:hover>div:first-child {
  background: #e0e0e0 !important;
}

.dropdown-product-card:hover>div:last-child {
  background: #e0e0e0 !important;
}

footer {
  margin-top: auto;
  text-align: center;
  padding: 16px 0;
  background: #fafafa;
  color: #666;
  font-size: 0.95em;
}

/* Modernized dropdown styles for select elements */
#pareto-figurine-select,
#figurine-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: #fff url('data:image/svg+xml;utf8,<svg fill="%23111" height="16" viewBox="0 0 24 24" width="16" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>') no-repeat right 12px center/18px 18px;
  border: 1.5px solid #f4f4f4;
  border-radius: 8px;
  padding: 10px 38px 10px 14px;
  font-size: 1.05em;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #222;
  box-shadow: 0 2px 8px rgba(17, 17, 17, 0.04);
  transition: border 0.2s, box-shadow 0.2s;
  outline: none;
  margin-bottom: 8px;
  cursor: pointer;
}

#pareto-figurine-select option,
#figurine-select option {
  color: #222;
  background: #fff;
}