:root {
  --ak-bg: #f5f7fa;
  --ak-white: #ffffff;
  --ak-text: #111318;
  --ak-muted: #667081;
  --ak-line: #e4e8ee;
  --ak-max: 1260px;
}

* {
  box-sizing: border-box;
}

body.ak-page {
  margin: 0;
  font-family: "Segoe UI", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  background: var(--ak-bg);
  color: var(--ak-text);
}

.ak-container {
  width: min(calc(100% - 32px), var(--ak-max));
  margin: 0 auto;
}

.ak-flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ak-site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--ak-line);
  backdrop-filter: blur(12px);
}

.ak-topbar {
  background: #eef2f7;
  border-bottom: 1px solid var(--ak-line);
}

.ak-topbar .ak-container {
  min-height: 34px;
  font-size: 12px;
  color: var(--ak-muted);
}

.ak-nav-row {
  min-height: 74px;
  display: grid;
  grid-template-columns: 170px 1fr 270px;
  align-items: center;
  gap: 18px;
}

.ak-brand img {
  max-height: 36px;
  width: auto;
}

.ak-main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
}

.ak-main-nav a {
  color: #5a6572;
  font-size: 15px;
  line-height: 1;
}

.ak-main-nav a.is-active,
.ak-main-nav a:hover {
  color: #111;
}

.ak-search-form {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.ak-search-form input {
  width: 170px;
  height: 40px;
  border: 1px solid var(--ak-line);
  border-radius: 999px;
  padding: 0 14px;
  outline: none;
}

.ak-search-form button {
  height: 40px;
  border: 1px solid #111;
  background: #111;
  color: #fff;
  border-radius: 999px;
  padding: 0 14px;
  cursor: pointer;
}

.ak-hero {
  position: relative;
  background: #fff;
}

.ak-hero-track {
  position: relative;
  height: 640px;
  overflow: hidden;
}

.ak-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.ak-hero-slide.is-active {
  opacity: 1;
}

.ak-hero-slide img {
  width: 100%;
  height: 640px;
  object-fit: cover;
}

.ak-hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.44), rgba(0, 0, 0, 0.1));
  color: #fff;
}

.ak-hero-overlay h1 {
  margin: 0 0 10px;
  font-size: clamp(36px, 6vw, 66px);
  line-height: 1.05;
  max-width: 780px;
}

.ak-hero-overlay p {
  margin: 0 0 22px;
  max-width: 560px;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.7;
}

.ak-btn-dark,
.ak-btn-light {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ak-btn-dark {
  background: #111;
  color: #fff;
  border: 1px solid #111;
}

.ak-btn-light {
  background: #fff;
  color: #111;
  border: 1px solid #111;
}

.ak-hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
}

.ak-hero-arrow.prev {
  left: 18px;
}

.ak-hero-arrow.next {
  right: 18px;
}

.ak-hero-dots {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.ak-hero-dots button {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
}

.ak-hero-dots button.is-active {
  background: #fff;
}

.ak-section {
  padding: 60px 0;
}

.ak-section-alt {
  background: #eef2f6;
  border-top: 1px solid var(--ak-line);
  border-bottom: 1px solid var(--ak-line);
}

.ak-section-head {
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ak-section-head h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.08;
}

.ak-more-link {
  color: var(--ak-muted);
}

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

.ak-category-card {
  position: relative;
  border: 1px solid var(--ak-line);
  border-radius: 18px;
  overflow: hidden;
  min-height: 280px;
}

.ak-category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ak-category-card span {
  position: absolute;
  left: 16px;
  bottom: 16px;
  color: #fff;
  font-size: 26px;
  font-weight: 600;
}

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

.ak-product-card {
  background: var(--ak-white);
  border: 1px solid var(--ak-line);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ak-product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px rgba(15, 20, 25, 0.08);
}

.ak-product-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.ak-product-info {
  padding: 14px;
}

.ak-product-info h3 {
  margin: 0 0 8px;
  line-height: 1.4;
  font-size: 16px;
}

.ak-product-info p {
  margin: 0;
  min-height: 42px;
  color: var(--ak-muted);
  font-size: 13px;
  line-height: 1.6;
}

.ak-price {
  margin-top: 10px;
  font-size: 20px;
  font-weight: 700;
}

.ak-page-hero {
  padding: 42px 0 24px;
  background: #fff;
  border-bottom: 1px solid var(--ak-line);
}

.ak-page-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(34px, 5vw, 54px);
}

.ak-crumbs {
  color: var(--ak-muted);
  font-size: 13px;
}

.ak-filter {
  background: #fff;
  border: 1px solid var(--ak-line);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 22px;
}

.ak-filter-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 10px 0;
}

.ak-filter-row strong {
  width: 100px;
  flex: none;
}

.ak-filter-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ak-filter-items a {
  height: 30px;
  padding: 0 10px;
  border: 1px solid var(--ak-line);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
}

.ak-filter-items a.active {
  background: #111;
  border-color: #111;
  color: #fff;
}

.ak-pager {
  margin-top: 30px;
  display: flex;
  justify-content: center;
}

.ak-pager .pagination li a {
  border-radius: 8px;
}

.ak-product-detail-wrap {
  background: #fff;
  padding: 24px 0 42px;
}

.ak-product-detail-layout {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 26px;
}

.ak-gallery-main {
  border: 1px solid var(--ak-line);
  border-radius: 16px;
  overflow: hidden;
}

.ak-gallery-main img {
  width: 100%;
  height: 600px;
  object-fit: cover;
}

.ak-gallery-thumbs {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.ak-gallery-thumbs img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  border: 1px solid var(--ak-line);
  border-radius: 10px;
  cursor: pointer;
}

.ak-gallery-thumbs img.is-active {
  border-color: #111;
}

.ak-buy-panel h1 {
  margin: 0 0 10px;
  font-size: clamp(32px, 4.5vw, 46px);
  line-height: 1.1;
}

.ak-subtitle {
  margin: 0 0 16px;
  color: var(--ak-muted);
  line-height: 1.7;
}

.ak-price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
}

.ak-price-row strong {
  font-size: 34px;
}

.ak-price-row span {
  color: #a1a8b2;
  text-decoration: line-through;
}

.ak-meta-list {
  border-top: 1px solid var(--ak-line);
  border-bottom: 1px solid var(--ak-line);
  padding: 14px 0;
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.ak-meta-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.ak-meta-list span {
  color: var(--ak-muted);
}

.ak-feature-list {
  margin-bottom: 16px;
}

.ak-feature-list p {
  margin: 0 0 8px;
  line-height: 1.6;
}

.ak-purchase-box {
  margin-top: 14px;
}

.ak-spec-row {
  margin: 14px 0;
}

.ak-spec-row label {
  display: block;
  margin-bottom: 8px;
  color: var(--ak-muted);
}

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

.ak-spec-btn {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--ak-line);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
}

.ak-number-row {
  margin: 14px 0;
}

.ak-number-box {
  display: inline-flex;
  border: 1px solid var(--ak-line);
  border-radius: 8px;
  overflow: hidden;
}

.ak-number-box button,
.ak-number-box input {
  height: 36px;
  border: 0;
}

.ak-number-box button {
  width: 36px;
  cursor: pointer;
  background: #f3f5f8;
}

.ak-number-box input {
  width: 56px;
  text-align: center;
}

.ak-stock {
  margin-bottom: 14px;
  color: var(--ak-muted);
}

.ak-buy-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ak-detail-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.ak-detail-tabs button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--ak-line);
  border-radius: 999px;
  background: #fff;
}

.ak-detail-tabs button.is-active {
  background: #111;
  color: #fff;
  border-color: #111;
}

.ak-detail-panel {
  display: none;
  background: #fff;
  border: 1px solid var(--ak-line);
  border-radius: 14px;
  padding: 20px;
}

.ak-detail-panel.is-active {
  display: block;
}

.ak-spec-box {
  line-height: 1.8;
}

.ak-attr-list {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
}

.ak-attr-list dt {
  color: var(--ak-muted);
}

.ak-attr-list dd {
  margin: 0;
  font-weight: 600;
}

.ak-site-footer {
  margin-top: 48px;
  background: #fff;
  border-top: 1px solid var(--ak-line);
  padding: 40px 0 24px;
}

.ak-footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 20px;
}

.ak-footer-grid h4 {
  margin: 0 0 10px;
}

.ak-footer-grid p,
.ak-footer-grid li,
.ak-footer-grid a {
  color: var(--ak-muted);
  line-height: 1.8;
}

.ak-footer-bottom {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--ak-line);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--ak-muted);
  font-size: 13px;
}

@media (max-width: 1080px) {
  .ak-nav-row {
    grid-template-columns: 1fr;
    padding: 10px 0;
    min-height: auto;
  }

  .ak-main-nav {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .ak-header-tools {
    width: 100%;
  }

  .ak-search-form {
    justify-content: flex-start;
  }

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

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

  .ak-gallery-main img {
    height: 460px;
  }
}

@media (max-width: 700px) {
  .ak-hero-track,
  .ak-hero-slide img {
    height: 500px;
  }

  .ak-category-grid,
  .ak-product-grid,
  .ak-footer-grid {
    grid-template-columns: 1fr;
  }

  .ak-gallery-thumbs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ak-footer-bottom {
    flex-direction: column;
  }
}
