:root {
    --brand-900: #0a1f44;
  --brand-800: #10294f;
  --brand-700: #16406e;
  --brand-600: #0f5cd6;
  --brand-500: #1a6cff;
  --brand-400: #4b8dff;
  --brand-100: #e8f0ff;
  --brand-50: #f3f7ff;

    --ink-900: #14181f;
  --ink-600: #5b6472;
  --ink-400: #8a93a3;
  --ink-200: #d7dbe2;
  --ink-100: #eceef1;
  --ink-50: #f6f7f9;
  --white: #ffffff;

    --accent: #ff6b35;
  --success: #16a34a;
  --danger: #e11d48;
  --star: #ffb400;

    --font-sans:
    'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC',
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: var(--font-sans);

    --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-pill: 999px;

    --shadow-sm:
    0 1px 2px rgba(16, 32, 64, 0.06), 0 4px 12px rgba(16, 32, 64, 0.05);
  --shadow-md: 0 8px 24px rgba(16, 32, 64, 0.1);
  --shadow-lg: 0 20px 48px rgba(16, 32, 64, 0.14);
  --shadow-focus: 0 0 0 3px rgba(26, 108, 255, 0.22);

    --container: 1240px;
  --gutter: 24px;
  --header-h: 76px;
  --radius-card: 16px;

  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 0.5rem);
}
html,
body {
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}
a:hover {
  color: var(--brand-500);
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  line-height: 1.25;
  margin: 0 0 0.6em;
  font-weight: 700;
  color: var(--ink-900);
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
}
h2 {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
}
h3 {
  font-size: 1.15rem;
}

p {
  margin: 0 0 1em;
}

button {
  font-family: inherit;
  cursor: pointer;
}
input,
select,
textarea {
  font-family: inherit;
}

::selection {
  background: var(--brand-500);
  color: #fff;
}

:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
  border-radius: 4px;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-thumb {
  background: var(--ink-200);
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--ink-400);
}
::-webkit-scrollbar-track {
  background: transparent;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(3rem, 7vw, 5.5rem);
}
.section--tight {
  padding-block: clamp(2rem, 4vw, 3rem);
}
.section--tint {
  background: var(--brand-50);
}
.section--dark {
  background: var(--brand-900);
  color: #cfe0ff;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  overflow: hidden;
  white-space: nowrap;
}
.is-hidden {
  display: none !important;
}

.text-center {
  text-align: center;
}
.mx-auto {
  margin-inline: auto;
}
.mt-0 {
  margin-top: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.72em 1.6em;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn--primary {
  background: var(--brand-500);
  color: #fff;
  box-shadow: 0 6px 16px rgba(26, 108, 255, 0.3);
}
.btn--primary:hover {
  background: var(--brand-600);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(26, 108, 255, 0.4);
}
.btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}
.btn--ghost:hover {
  background: #fff;
  color: var(--brand-700);
  border-color: #fff;
}
.btn--outline {
  background: transparent;
  color: var(--brand-600);
  border-color: var(--brand-400);
}
.btn--outline:hover {
  background: var(--brand-500);
  color: #fff;
  border-color: var(--brand-500);
}
.btn--dark {
  background: var(--ink-900);
  color: #fff;
}
.btn--dark:hover {
  background: var(--brand-700);
  color: #fff;
}
.btn--block {
  width: 100%;
}
.btn--lg {
  padding: 0.9em 2.1em;
  font-size: 1.02rem;
}
.btn--sm {
  padding: 0.5em 1.1em;
  font-size: 0.85rem;
}
.btn[disabled] {
  opacity: 0.55;
  pointer-events: none;
}

.tag {
  display: inline-block;
  padding: 0.28em 0.75em;
  border-radius: var(--r-pill);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: var(--brand-100);
  color: var(--brand-600);
}
.tag--hot {
  background: #ffe9e0;
  color: #e0430f;
}
.tag--new {
  background: #e3f7ec;
  color: #0f8a47;
}
.tag--dark {
  background: var(--ink-900);
  color: #fff;
}

.price {
  font-weight: 700;
  color: var(--ink-900);
}
.price .sym {
  font-size: 0.82em;
}
.price--sale {
  color: var(--accent);
}
.price--del {
  color: var(--ink-400);
  text-decoration: line-through;
  font-weight: 500;
  font-size: 0.85em;
  margin-left: 0.5em;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em;
  align-items: center;
  font-size: 0.86rem;
  color: var(--ink-400);
}
.breadcrumb a:hover {
  color: var(--brand-500);
}
.breadcrumb .sep {
  color: var(--ink-200);
}
.breadcrumb [aria-current] {
  color: var(--ink-600);
  font-weight: 500;
}

.page-hero {
  padding-block: clamp(2.4rem, 5vw, 3.6rem) 0;
  background: linear-gradient(180deg, var(--brand-50), #fff);
}
.page-hero h1 {
  margin-bottom: 0.35em;
}
.page-hero .lead {
  color: var(--ink-600);
  max-width: 640px;
}

.empty-state {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--ink-400);
}
.empty-state .empty-ico {
  font-size: 3rem;
  margin-bottom: 0.6rem;
}
.empty-state h3 {
  color: var(--ink-600);
}
.empty-state .btn {
  margin-top: 0.6rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ink-100);
  transition: box-shadow var(--transition);
}
.site-header.is-stuck {
  box-shadow: var(--shadow-sm);
}
.header__inner {
  position: relative;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 2rem;
}

.main-nav {
  flex: 1;
}
.main-nav ul {
  display: flex;
  gap: 0.2rem;
}
.main-nav a.nav-link {
  display: inline-block;
  padding: 0.6rem 0.95rem;
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--ink-900);
  border-radius: var(--r-sm);
  position: relative;
}
.main-nav a.nav-link:hover,
.main-nav a.nav-link.is-active {
  color: var(--brand-500);
  background: var(--brand-50);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  margin-left: auto;
}
.icon-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  border-radius: var(--r-pill);
  color: var(--ink-900);
  transition:
    background var(--transition),
    color var(--transition);
}
.icon-btn:hover {
  background: var(--brand-50);
  color: var(--brand-500);
}
.icon-btn .badge {
  position: absolute;
  top: 4px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  transform: translateX(20%);
}
.header-search {
  display: flex;
  align-items: center;
  background: var(--ink-50);
  border: 1px solid var(--ink-100);
  border-radius: var(--r-pill);
  padding: 0 0.4rem 0 1rem;
  height: 42px;
  width: 240px;
}
.header-search input {
  border: 0;
  outline: 0;
  background: transparent;
  flex: 1;
  font-size: 0.9rem;
  min-width: 0;
}
.header-search button {
  border: 0;
  background: transparent;
  color: var(--ink-600);
  padding: 0;
}

.nav-toggle {
  display: none;
}
.mobile-nav {
  display: none;
}

.hero {
  position: relative;
  overflow: hidden;
  background: var(--brand-900);
}
.hero__slides {
  position: relative;
  display: grid;
}
.hero__slide {
  grid-area: 1 / 1;
  position: relative;
  min-height: clamp(340px, 46vh, 520px);
  color: #fff;
  overflow: hidden;
  visibility: hidden;
    opacity: 0;
}
.hero__slide:not(.is-active),
.hero__slide:not(.is-active) * {
  transition: none;
}
.hero__slide.is-active {
  visibility: visible;
  opacity: 1;
  animation: heroIn 0.6s ease both;
}
@keyframes heroIn {
  from {
    opacity: 0;
    transform: scale(1.02);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(8, 20, 48, 0.78) 0%,
    rgba(8, 20, 48, 0.45) 45%,
    rgba(8, 20, 48, 0.12) 100%
  );
}
.hero__deco {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    radial-gradient(
      58% 68% at 82% 46%,
      rgba(255, 255, 255, 0.12),
      transparent 72%
    ),
    radial-gradient(
      40% 48% at 74% 18%,
      rgba(110, 165, 255, 0.24),
      transparent 72%
    );
}
.hero__deco::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.085) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.085) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(
    62% 72% at 80% 48%,
    #000 8%,
    transparent 70%
  );
  mask-image: radial-gradient(62% 72% at 80% 48%, #000 8%, transparent 70%);
}
.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: clamp(340px, 46vh, 520px);
}
@media (min-width: 921px) {
  .hero__content {
    padding-inline-start: calc(var(--gutter) + 3.5rem);
  }
}
.hero__copy {
  max-width: 560px;
  padding-block: 3rem;
}
.hero__copy .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: #9ec2ff;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.hero__copy h1 {
  color: #fff;
  font-size: clamp(1.9rem, 4.4vw, 3.4rem);
  margin-bottom: 0.5rem;
}
.hero__copy h1 em {
  font-style: normal;
  color: var(--brand-400);
}
.hero__copy p {
  color: #cdd9ec;
  font-size: 1.05rem;
  margin-bottom: 1.9rem;
  max-width: 480px;
}
.hero__actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.hero__dots {
  position: absolute;
  bottom: 28px;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}
.hero__dots button {
  width: 26px;
  height: 5px;
  border-radius: 3px;
  border: 0;
  background: rgba(255, 255, 255, 0.35);
  transition:
    background var(--transition),
    width var(--transition);
}
.hero__dots button.is-active {
  background: #fff;
  width: 38px;
}

.hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.2rem;
  display: grid;
  place-items: center;
  backdrop-filter: blur(4px);
  transition: background var(--transition);
}
.hero__arrow:hover {
  background: #fff;
  color: var(--brand-700);
}
.hero__arrow--prev {
  left: 22px;
}
.hero__arrow--next {
  right: 22px;
}

.feature-strip {
  border-bottom: 1px solid var(--ink-100);
}
.feature-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.feature-item {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  padding: 1.1rem 0.6rem;
}
.feature-item .fico {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: var(--r-md);
  background: var(--brand-50);
  color: var(--brand-500);
  display: grid;
  place-items: center;
}
.feature-item b {
  display: block;
  font-size: 0.95rem;
}
.feature-item span {
  font-size: 0.82rem;
  color: var(--ink-400);
}

.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}
.sec-head h2 {
  margin-bottom: 0.2em;
}
.sec-head .sub {
  color: var(--ink-400);
  font-size: 0.95rem;
  margin: 0;
}
.sec-head--center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.sec-head .kicker {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: var(--brand-500);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.prod-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.prod-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    box-shadow var(--transition),
    transform var(--transition),
    border-color var(--transition);
}
.prod-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: transparent;
}
.prod-card__media {
  position: relative;
  background: var(--brand-50);
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.prod-card__media img {
  width: 100%;
    aspect-ratio: 1 / 1;
  object-fit: contain;
  transition: transform 0.55s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.prod-card:hover .prod-card__media img {
  transform: scale(1.06);
}
.prod-card__flags {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  display: flex;
  gap: 0.35rem;
  z-index: 2;
}
.prod-card__badge-flag {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  z-index: 2;
}
.prod-card__quick {
  position: absolute;
  inset-inline: 0.9rem;
  bottom: 0.9rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45em;
  padding: 0.66em;
  border-radius: var(--r-pill);
  border: 0;
  background: rgba(16, 22, 32, 0.82);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  backdrop-filter: blur(6px);
  opacity: 0;
  transform: translateY(8px);
  transition: all var(--transition);
}
.prod-card:hover .prod-card__quick {
  opacity: 1;
  transform: none;
}
.prod-card__quick:hover {
  background: var(--brand-500);
}
.prod-card__body {
  padding: 1rem 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}
.prod-card__title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
}
.prod-card__title a:hover {
  color: var(--brand-500);
}
.prod-card__desc {
  font-size: 0.82rem;
  color: var(--ink-400);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.prod-card__foot {
  margin-top: auto;
  padding-top: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.rating {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--star);
  font-size: 0.78rem;
}
.rating b {
  color: var(--ink-400);
  font-weight: 500;
  margin-left: 0.1rem;
}

.cta-banner {
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
  color: #fff;
}
.cta-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cta-banner .cta-banner__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(10, 26, 64, 0.85),
    rgba(10, 26, 64, 0.45)
  );
}
.cta-banner__inner {
  position: relative;
  z-index: 1;
  padding: clamp(2rem, 5vw, 3.5rem);
  max-width: 640px;
}
.cta-banner h3 {
  color: #fff;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  margin-bottom: 0.4em;
}
.cta-banner p {
  color: #d6e1f5;
}

.site-footer {
  background: #0b1220;
  color: #aeb9ce;
}
.footer__main {
  padding-block: 3.4rem 2rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: 2.2rem;
}
.footer__col h4 {
  color: #fff;
  font-size: 0.98rem;
  margin-bottom: 1.1rem;
}
.footer__col li {
  margin-bottom: 0.55rem;
}
.footer__col a {
  font-size: 0.9rem;
  color: #aeb9ce;
}
.footer__col a:hover {
  color: #fff;
}
.footer__brand p {
  font-size: 0.9rem;
}
.contact-line {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
}
.contact-line .c-ico {
  color: var(--brand-400);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.footer__pay {
  margin-top: 1rem;
}
.footer__bottom {
  border-top: 1px solid #1b2438;
  padding-block: 1.2rem;
}
.footer__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  align-items: center;
  font-size: 0.84rem;
  color: #7b86a0;
}

.listing-toolbar {
  position: sticky;
  top: var(--header-h);
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ink-100);
  padding-block: 0.7rem;
}
.toolbar__meta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}
.toolbar__count {
  font-size: 0.86rem;
  color: var(--ink-400);
  margin-right: auto;
}
.sort-select {
  border: 1px solid var(--ink-200);
  border-radius: var(--r-pill);
  padding: 0.5em 2em 0.5em 1.1em;
  font-size: 0.88rem;
  color: var(--ink-600);
  appearance: none;
  background: #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%235b6472' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M3 6l5 4.5 5-4.5'/%3E%3C/svg%3E")
    no-repeat right 0.68em center;
  background-size: 0.8em 0.8em;
}

.dropdown {
  position: relative;
}
.dropdown__trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  border: 1px solid var(--ink-200);
  border-radius: var(--r-pill);
  background: #fff;
  padding: 0.5em 0.85em 0.5em 1.05em;
  font-size: 0.88rem;
  line-height: 1.15;
  color: var(--ink-600);
  transition:
    border-color var(--transition),
    color var(--transition),
    background var(--transition);
}
.dropdown__trigger:hover,
.dropdown__trigger[aria-expanded='true'] {
  border-color: var(--brand-400);
  color: var(--brand-600);
}
.dropdown__trigger[aria-expanded='true'] {
  background: var(--brand-50);
}
.dropdown__trigger:focus-visible {
  border-radius: var(--r-pill);
  border-color: var(--brand-400);
}
.dropdown__chevron {
  width: 0.85em;
  height: 0.85em;
  flex: none;
  transition: transform var(--transition);
}
.dropdown__trigger[aria-expanded='true'] .dropdown__chevron {
  transform: rotate(180deg);
}
.dropdown__panel {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  z-index: 2;
  min-width: 100%;
  padding: 0.3rem;
  background: #fff;
  border: 1px solid var(--ink-100);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-0.4rem) scale(0.97);
  transform-origin: top right;
  transition:
    opacity 0.16s ease,
    transform 0.16s ease,
    visibility 0.16s;
}
.dropdown.is-open .dropdown__panel {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.dropdown__option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45em 0.7em;
  border-radius: 0.6rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--ink-600);
  white-space: nowrap;
  cursor: pointer;
  transition:
    background var(--transition),
    color var(--transition);
}
.dropdown__option.is-active {
  background: var(--brand-50);
  color: var(--brand-600);
}
.dropdown__option.is-selected {
  color: var(--brand-600);
  font-weight: 600;
}
.dropdown__check {
  width: 0.95em;
  height: 0.95em;
  flex: none;
  margin-left: auto;
  color: var(--brand-500);
  opacity: 0;
  transition: opacity var(--transition);
}
.dropdown__option.is-selected .dropdown__check {
  opacity: 1;
}
.layout-toggle {
  display: inline-flex;
  border: 1px solid var(--ink-200);
  border-radius: var(--r-pill);
  overflow: hidden;
}
.layout-toggle button {
  border: 0;
  background: #fff;
  padding: 0.5em 0.9em;
  color: var(--ink-400);
  display: grid;
  place-items: center;
}
.layout-toggle button.is-active {
  background: var(--brand-50);
  color: var(--brand-600);
}
.prod-grid.is-list {
  grid-template-columns: 1fr;
}
.prod-grid.is-list .prod-card {
  flex-direction: row;
}
.prod-grid.is-list .prod-card__media {
  width: 240px;
  flex-shrink: 0;
  aspect-ratio: auto;
}
.prod-grid.is-list .prod-card__quick {
  opacity: 1;
  transform: none;
  width: auto;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 2.2rem;
}
.pagination:empty {
  display: none;
}
.pagination__btn {
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  border: 1px solid var(--ink-200);
  background: #fff;
  color: var(--ink-600);
  border-radius: var(--r-pill);
  font-size: 0.9rem;
  line-height: 1;
  transition: all var(--transition);
}
.pagination__btn:hover:not(:disabled):not(.is-active) {
  border-color: var(--brand-400);
  color: var(--brand-600);
}
.pagination__btn.is-active {
  background: var(--brand-500);
  border-color: var(--brand-500);
  color: #fff;
}
.pagination__btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.pagination__ellipsis {
  color: var(--ink-400);
  padding: 0 0.2rem;
}
.pagination__info {
  font-size: 0.85rem;
  color: var(--ink-400);
  margin-left: 0.6rem;
}

.detail-wrap {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 3rem;
}
.gallery {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 1rem;
}
.gallery__thumbs {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.gallery__thumbs button {
  border: 2px solid transparent;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--brand-50);
  padding: 0;
  aspect-ratio: 1/1;
  width: 84px;
  transition: border-color var(--transition);
}
.gallery__thumbs button img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}
.gallery__thumbs button.is-active {
  border-color: var(--brand-500);
}
.gallery__main {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--brand-50);
  aspect-ratio: 1/1;
  position: relative;
}
.gallery__main img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: contain;
}

.detail-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.detail-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-self: flex-start;
}
.detail-info h1 {
  margin-bottom: 0;
}
.detail-info .subtitle {
  color: var(--ink-400);
}
.detail-highlights {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}
.detail-highlights li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.95rem;
  color: var(--ink-600);
}
.detail-highlights li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--brand-500);
  font-weight: 700;
}
.rating-line {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.86rem;
  color: var(--ink-400);
}
.rating-line .divider {
  width: 1px;
  height: 14px;
  background: var(--ink-200);
}
.price-block {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  background: var(--brand-50);
  padding: 1rem 1.2rem;
  border-radius: var(--r-md);
}
.price-block .price {
  font-size: 1.9rem;
  color: var(--accent);
}
.buy-opt h3,
.detail-desc h3,
.qty-row label {
  font-size: 0.9rem;
  color: var(--ink-600);
  margin-bottom: 0.5rem;
  font-weight: 600;
}
.opt-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.opt {
  border: 1px solid var(--ink-200);
  background: #fff;
  padding: 0.5em 1.1em;
  border-radius: var(--r-sm);
  font-size: 0.88rem;
  transition: all var(--transition);
}
.opt:hover {
  border-color: var(--brand-400);
}
.opt.is-active {
  border-color: var(--brand-500);
  color: var(--brand-600);
  background: var(--brand-50);
  box-shadow: inset 0 0 0 1px var(--brand-500);
}
.opt[disabled] {
  opacity: 0.4;
  text-decoration: line-through;
  cursor: not-allowed;
}
.qty-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--ink-200);
  border-radius: var(--r-pill);
  overflow: hidden;
}
.stepper button {
  width: 40px;
  height: 42px;
  border: 0;
  background: #fff;
  font-size: 1.1rem;
  color: var(--ink-600);
}
.stepper button:hover {
  background: var(--brand-50);
  color: var(--brand-600);
}
.stepper input {
  width: 52px;
  height: 42px;
  border: 0;
  border-inline: 1px solid var(--ink-100);
  text-align: center;
  font-size: 1rem;
  outline: 0;
  -moz-appearance: textfield;
}
.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}
.detail-meta {
  border-top: 1px dashed var(--ink-200);
  padding-top: 1rem;
  font-size: 0.86rem;
  color: var(--ink-400);
  display: grid;
  gap: 0.35rem;
}
.detail-meta b {
  color: var(--ink-600);
}

.detail-flow {
  display: flex;
  flex-direction: column;
  gap: 3.4rem;
}
.detail-block {
  min-width: 0;
}
.detail-block .sec-head {
  margin-bottom: 1.4rem;
}
.detail-block .prose {
  max-width: 860px;
}
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.spec-table tr {
  border-bottom: 1px solid var(--ink-100);
}
.spec-table th {
  text-align: left;
  width: 200px;
  color: var(--ink-600);
  font-weight: 500;
  padding: 0.8rem 0.5rem 0.8rem 0;
}
.spec-table td {
  padding: 0.8rem 0.5rem;
  color: var(--ink-900);
}
.spec-table__sub th {
  width: auto;
  padding: 0.55rem 0.8rem;
  background: var(--brand-50);
  color: var(--brand-600);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.spec-table tr.spec-table__sub {
  border-bottom: 0;
}
.spec-note {
  font-size: 0.85rem;
  color: var(--ink-400);
  margin-top: 0.8rem;
}
.spec-group {
  max-width: 860px;
  margin-bottom: 2rem;
}
.spec-group:last-child {
  margin-bottom: 0;
}
.spec-group__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink-900);
  margin: 0 0 0.7rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--ink-100);
}
.spec-image-row {
  margin: 0 auto;
  max-width: 860px;
}
.spec-image-row img {
  display: block;
  width: 100%;
  max-width: 860px;
  height: auto;
  margin: 0 auto;
}
.spec-image-row + .spec-group {
  margin-top: 2rem;
}
.prose {
  color: var(--ink-600);
  font-size: 0.97rem;
}
.prose ul {
  list-style: disc;
  padding-left: 1.2rem;
}
.prose li {
  margin-bottom: 0.45rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.contact-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  border: 1px solid var(--ink-100);
  border-radius: var(--r-md);
  padding: 1.1rem 1.2rem;
  transition: box-shadow var(--transition);
}
.contact-card:hover {
  box-shadow: var(--shadow-sm);
}
.contact-card .cico {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: var(--r-sm);
  background: var(--brand-50);
  color: var(--brand-500);
  display: grid;
  place-items: center;
}
.contact-card .cico svg {
  width: 22px;
  height: 22px;
  display: block;
}
.contact-card b {
  display: block;
  margin-bottom: 0.15rem;
}
.contact-card span {
  font-size: 0.9rem;
  color: var(--ink-400);
}

.faq {
  max-width: 820px;
  margin-inline: auto;
}
.faq-item {
  border: 1px solid var(--ink-100);
  border-radius: var(--r-md);
  margin-bottom: 0.7rem;
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.2rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--brand-500);
  transition: transform var(--transition);
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
}
.faq-item .faq-body {
  padding: 0 1.2rem 1.1rem;
  color: var(--ink-600);
  font-size: 0.93rem;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--transition),
    visibility var(--transition);
}
.modal.is-open {
  opacity: 1;
  visibility: visible;
}
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 16, 32, 0.6);
  backdrop-filter: blur(3px);
}
.modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  background: #fff;
  border-radius: var(--r-lg);
  padding: 2rem 1.8rem;
  transform: translateY(16px) scale(0.98);
  transition: transform var(--transition);
}
.modal.is-open .modal__dialog {
  transform: none;
}
.modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: var(--ink-50);
  color: var(--ink-600);
  font-size: 1.05rem;
}
.modal__close:hover {
  background: var(--ink-100);
}
.modal__ico {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: #e3f7ec;
  color: var(--success);
  display: grid;
  place-items: center;
}
.modal__title {
  text-align: center;
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
}
.modal__text {
  text-align: center;
  color: var(--ink-400);
  font-size: 0.92rem;
}
.modal__actions {
  display: flex;
  gap: 0.7rem;
  margin-top: 1.6rem;
}

.cart-mini {
  position: fixed;
  right: 1rem;
  top: calc(var(--header-h) + 1rem);
  z-index: 90;
  width: min(360px, calc(100vw - 2rem));
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--ink-100);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition);
}
.cart-mini.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.cart-mini__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--ink-100);
  font-weight: 700;
}
.cart-mini__list {
  max-height: 300px;
  overflow: auto;
  padding: 0.4rem 1.2rem;
}
.cart-mini__item {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  padding: 0.7rem 0;
  border-bottom: 1px dashed var(--ink-100);
}
.cart-mini__item img {
  width: 52px;
  height: 52px;
  border-radius: var(--r-sm);
  object-fit: cover;
  background: var(--brand-50);
}
.cart-mini__item .ci-name {
  font-size: 0.86rem;
  font-weight: 600;
}
.cart-mini__item .ci-sub {
  font-size: 0.8rem;
  color: var(--ink-400);
}
.cart-mini__item .ci-sub b {
  color: var(--accent);
}
.cart-mini__foot {
  padding: 1rem 1.2rem;
}
.cart-mini__total {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.8rem;
  font-weight: 700;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 20px);
  z-index: 120;
  background: var(--ink-900);
  color: #fff;
  padding: 0.8rem 1.4rem;
  border-radius: var(--r-pill);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}
.toast.is-show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.toast .t-ok {
  color: #4ade80;
}

.to-top {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 80;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--ink-100);
  background: #fff;
  color: var(--ink-600);
  box-shadow: var(--shadow-md);
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition);
}
.to-top.is-show {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.to-top:hover {
  background: var(--brand-500);
  color: #fff;
  border-color: var(--brand-500);
}

@media (max-width: 1080px) {
  .header-search {
    width: 180px;
  }
  .prod-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer__grid {
    grid-template-columns: 1fr 1fr 1.3fr;
  }
}

@media (max-width: 920px) {
  .header-search {
    display: none;
  }
    .site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    z-index: 80;
  }
  .nav-toggle {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 0;
    background: transparent;
    color: var(--ink-900);
    border-radius: var(--r-pill);
  }
  .nav-toggle:hover {
    background: var(--brand-50);
    color: var(--brand-500);
  }
  .main-nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(320px, 84vw);
    z-index: 70;
    background: #fff;
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform var(--transition);
    padding: 1.2rem;
    overflow-y: auto;
    overscroll-behavior: contain;   }
  .main-nav.is-open {
    transform: none;
  }
  .main-nav ul {
    flex-direction: column;
    gap: 0.2rem;
  }
  .main-nav a.nav-link {
    display: block;
    padding: 0.8rem 0.8rem;
    font-size: 1.02rem;
  }
  .mobile-nav__backdrop {
    position: fixed;
    inset: 0;
    background: rgba(9, 16, 32, 0.5);
    z-index: 69;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
  }
  .mobile-nav__backdrop.is-show {
    opacity: 1;
    visibility: visible;
  }
  .feature-strip__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .detail-wrap {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .contact-cards {
    grid-template-columns: 1fr;
  }
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 64px;
  }
  .prod-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }
  .hero__arrow {
    display: none;
  }
    .hero__deco::before {
    display: none;
  }
    .listing-toolbar {
    position: static;
  }
  .feature-strip__grid {
    grid-template-columns: 1fr;
  }
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }
  .gallery {
    grid-template-columns: 56px 1fr;
    gap: 0.6rem;
  }
  .gallery__thumbs button {
    width: 56px;
  }
  .sec-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .prod-grid.is-list .prod-card {
    flex-direction: column;
  }
  .prod-grid.is-list .prod-card__media {
    width: 100%;
    aspect-ratio: 1/1;
  }
  .cta-banner__inner {
    padding: 1.6rem;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero__slide.is-active {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
}
