* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #f8f7f5;
  color: #0f172a;
  line-height: 1.5;
}

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

a {
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 18px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #0f172a;
}

.brand-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #0f172a;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.brand-title {
  font-size: 18px;
  font-weight: 700;
}

.brand-subtitle {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #64748b;
}

.search-box {
  width: 100%;
  max-width: 320px;
}

.search-box input {
  width: 100%;
  height: 46px;
  border: 1px solid #dbe1ea;
  border-radius: 14px;
  background: #f8fafc;
  padding: 0 14px;
  outline: none;
}

.site-main {
  padding: 32px 0 48px;
}

.hero {
  margin-bottom: 28px;
}

.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
}

.hero p {
  margin: 0;
  color: #64748b;
  font-size: 16px;
}

.placeholder-box {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.site-footer {
  border-top: 1px solid #e5e7eb;
  background: #ffffff;
  padding: 18px 0;
  color: #64748b;
  font-size: 14px;
}

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    padding: 14px 0;
  }

  .search-box {
    max-width: none;
  }

  .site-main {
    padding-top: 24px;
  }
}

.empty-state {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.empty-state h2 {
  margin-top: 0;
  margin-bottom: 10px;
}

.empty-state p {
  margin-bottom: 0;
  color: #64748b;
}

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

.product-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
}

.product-image-wrap {
  display: block;
  background: #f8fafc;
}

.product-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.product-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-topline {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.range-badge,
.promo-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.range-badge {
  background: #eef2ff;
  color: #3730a3;
}

.promo-badge {
  background: #fff7ed;
  color: #c2410c;
}

.product-title {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
}

.product-title a {
  color: #0f172a;
}

.product-desc {
  margin: 0;
  color: #64748b;
  font-size: 15px;
}

.product-prices {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.old-price {
  color: #94a3b8;
  text-decoration: line-through;
  font-size: 15px;
}

.promo-price,
.normal-price {
  color: #0f172a;
  font-size: 26px;
  font-weight: 800;
}

.product-actions {
  margin-top: 4px;
}

.product-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 14px;
  background: #0f172a;
  color: #ffffff;
  font-weight: 700;
}

.product-btn:hover {
  opacity: 0.92;
}

@media (max-width: 1100px) {
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .products-grid {
    grid-template-columns: 1fr;
  }

  .product-title {
    font-size: 20px;
  }

  .promo-price,
  .normal-price {
    font-size: 22px;
  }
}

.product-page {
  padding-top: 8px;
}

.product-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 28px;
  align-items: start;
}

.product-gallery,
.product-infos {
  min-width: 0;
}

.product-main-image-box,
.product-page-box {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.product-main-image-box {
  overflow: hidden;
}

.product-main-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.product-thumbs {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.product-thumb {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
}

.product-thumb img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.product-page-topline {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.product-page-title {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.08;
}

.product-page-desc {
  margin: 0 0 20px;
  color: #64748b;
  font-size: 16px;
}

.product-page-prices {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.product-page-section {
  margin-top: 22px;
}

.product-page-section h2 {
  margin: 0 0 12px;
  font-size: 20px;
}

.product-page-box {
  padding: 18px;
  color: #475569;
}

.product-page-actions {
  margin-top: 24px;
}

@media (max-width: 980px) {
  .product-page-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .product-thumbs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-page-title {
    font-size: 28px;
  }
}

.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  color: #0f172a;
  font-weight: 600;
}

.filter-pill.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

.product-thumb-btn {
  display: block;
  width: 100%;
  padding: 0;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
}

.product-thumb-btn.active {
  border-color: #0f172a;
}

.product-thumb-btn img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

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

.info-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #e5e7eb;
}

.info-list li:last-child {
  border-bottom: none;
}

.info-list span {
  color: #64748b;
}

.info-list strong {
  color: #0f172a;
  text-align: right;
}

.muted-text {
  margin: 0;
  color: #64748b;
}

@media (max-width: 700px) {
  .info-list li {
    flex-direction: column;
    gap: 6px;
  }

  .info-list strong {
    text-align: left;
  }
}

.upgrade-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.upgrade-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.upgrade-icon {
  width: 58px;
  height: 58px;
  min-width: 58px;
  border-radius: 16px;
  background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.upgrade-card-content {
  min-width: 0;
}

.upgrade-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
}

.upgrade-card-text {
  font-size: 14px;
  color: #64748b;
  line-height: 1.45;
}

@media (max-width: 700px) {
  .upgrade-grid {
    grid-template-columns: 1fr;
  }
}

.product-quick-specs{
  display:grid;
  gap:8px;
  margin:14px 0 16px;
}

.quick-spec{
  padding:10px 12px;
  border-radius:12px;
  background:#f8fafc;
  border:1px solid #e2e8f0;
  color:#0f172a;
  font-size:14px;
  line-height:1.4;
}

.quick-spec strong{
  color:#334155;
}