* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #101a33;
  font-family: "Segoe UI", "PingFang TC", "Microsoft JhengHei", sans-serif;
  background: #f5f7fb;
}

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

button,
input,
select {
  font: inherit;
}

.produce-main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 48px;
}

.produce-hero {
  position: relative;
  width: 100%;
  margin-bottom: 26px;
  background: #e8edf8;
  overflow: hidden;
}

.produce-banner {
  position: relative;
  width: 100%;
  aspect-ratio: 3648 / 1120;
}

.produce-banner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.produce-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-top: 26px;
  padding: 0 2px;
}

.toolbar-left h2 {
  margin: 0 0 14px;
  font-size: 30px;
}

.size-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.size-tab {
  padding: 11px 18px;
  border: 1px solid #d6def5;
  border-radius: 999px;
  background: #ffffff;
  color: #2c3653;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.size-tab.is-active,
.size-tab:hover {
  border-color: #2d5bdb;
  background: #2d5bdb;
  color: #ffffff;
}

.sort-box {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #48536f;
  font-weight: 700;
}

.sort-box select {
  min-width: 150px;
  padding: 10px 14px;
  border: 1px solid #d6def5;
  border-radius: 12px;
  background: #ffffff;
  color: #101a33;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 22px;
  margin-top: 22px;
}

.filter-sidebar {
  display: grid;
  gap: 16px;
}

.filter-card {
  padding: 22px;
  border: 1px solid #e6ebf6;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(17, 26, 51, 0.04);
}

.filter-card h3 {
  margin: 0 0 16px;
  font-size: 24px;
}

.filter-group {
  display: grid;
  gap: 12px;
}

.filter-check {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #28334f;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
}

.filter-check input {
  width: 18px;
  height: 18px;
  accent-color: #2d5bdb;
}

.price-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.price-header h3 {
  margin-bottom: 0;
}

.price-header span {
  color: #2d5bdb;
  font-size: 14px;
  font-weight: 700;
}

.range-wrap {
  display: grid;
  gap: 12px;
}

.range-wrap input[type="range"] {
  width: 100%;
  accent-color: #2d5bdb;
}

.reset-btn {
  width: 100%;
  margin-top: 18px;
  padding: 13px 18px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #2d5bdb 0%, #1f4dbd 100%);
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}

.product-panel {
  min-width: 0;
}

.result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.result-label {
  margin: 0 0 8px;
  color: #5e6a86;
  font-size: 14px;
  font-weight: 700;
}

.result-head h2 {
  margin: 0;
  font-size: 36px;
}

.result-head strong {
  color: #2d5bdb;
  font-size: 22px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.tv-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  border: 1px solid #e6ebf6;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(17, 26, 51, 0.05);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tv-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px rgba(17, 26, 51, 0.1);
}

.tv-card:focus-visible {
  outline: 3px solid rgba(45, 91, 219, 0.3);
  outline-offset: 2px;
}

.tv-media {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #f5f8ff;
}

.tv-media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.wish-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #dce5fb;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #5f78d6;
  font-size: 18px;
}

.tv-card h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: 2.8em;
}

.tv-subtitle {
  margin: -4px 0 0;
  color: #4f5a76;
  font-size: 15px;
  font-weight: 600;
}

.spec-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.spec-list span {
  padding: 6px 10px;
  border-radius: 999px;
  background: #f3f6fd;
  color: #50607f;
  font-size: 12px;
  font-weight: 700;
}

.tv-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
}

.price-box {
  display: grid;
  gap: 4px;
}

.price-box strong {
  color: #255de0;
  font-size: 20px;
  line-height: 1;
}

.price-box span {
  color: #2fa356;
  font-size: 13px;
  font-weight: 800;
}

.cart-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid #dbe5ff;
  border-radius: 14px;
  background: #ffffff;
  color: #2d5bdb;
  font-size: 20px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.cart-btn:hover {
  background: #eaf0ff;
  border-color: #2d5bdb;
}

.cart-btn.is-added {
  background: linear-gradient(135deg, #2dc45f 0%, #1ea54d 100%);
  border-color: #1ea54d;
  color: #ffffff;
  transform: scale(1.08);
}

.empty-state {
  padding: 44px 24px;
  border: 1px dashed #ccd8f6;
  border-radius: 22px;
  background: #ffffff;
  color: #66728f;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
}

@media (max-width: 1100px) {
  .catalog-layout {
    grid-template-columns: 1fr;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .produce-main {
    width: calc(100% - 20px);
  }

  .produce-toolbar,
  .result-head,
  .tv-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .sort-box,
  .sort-box select,
  .reset-btn {
    width: 100%;
  }

  .result-head h2 {
    font-size: 28px;
  }

  .price-box strong {
    font-size: 20px;
  }
}
