:root {
  --text: #0b1220;
  --muted: #5b6475;
  --line: rgba(148, 163, 184, 0.22);
  --bg: #f3f5f8;
  --card: #ffffff;
  --accent: #1f3a5f;
  --accent-dark: #0b1220;
  --accent-soft: rgba(31, 58, 95, 0.08);
  --shadow: 0 18px 45px rgba(11, 18, 32, 0.10);
  --radius: 16px;
}

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

body {
  margin: 0;
  font-family: Arial, "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(11, 18, 32, 0.06);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-sub {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  font-weight: 700;
}

.nav a {
  color: #334155;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--accent);
}

.nav a.active {
  border-bottom: 2px solid var(--accent);
  padding-bottom: 4px;
  color: var(--accent-dark);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 14px;
}

.cart-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.34);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
  font-weight: 800;
  font-size: 13px;
  white-space: nowrap;
}

.cart-icon {
  font-size: 16px;
  line-height: 1;
}

.cart-text {
  color: #334155;
}

.cart-badge {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: #111827;
  font-size: 12px;
  font-weight: 900;
}

.lang-btn {
  border: 1px solid rgba(148, 163, 184, 0.34);
  background: rgba(255, 255, 255, 0.95);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  cursor: pointer;
  border-radius: 999px;
}

.lang-btn.active {
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  color: #fff;
  border-color: transparent;
}

.hero-banner {
  height: 500px;
  background:
    linear-gradient(135deg, rgba(11, 18, 32, 0.78), rgba(31, 58, 95, 0.62)),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.14), transparent 30%),
    url("assets/c__Users_75627_AppData_Roaming_Cursor_User_workspaceStorage_052fbd677c2b5ebe343516c76e81150c_images_image-d3f4b822-e474-4bef-98a2-6552bcb947de.png");
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.hero-banner::after {
  content: "";
  position: absolute;
  inset: auto -10% -80px auto;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  filter: blur(10px);
}

.hero-overlay {
  max-width: 1180px;
  margin: 0 auto;
  padding: 110px 20px 30px;
  color: #fff;
}

.hero-kicker {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 8px;
}

.hero-overlay h1 {
  margin: 0;
  font-size: clamp(34px, 7vw, 68px);
  line-height: 1;
  max-width: 760px;
}

.hero-overlay p {
  margin: 14px 0 0;
  font-size: 16px;
  max-width: 560px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
}

.hero-btn {
  margin-top: 26px;
  display: inline-block;
  background: #ffffff;
  color: var(--accent);
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  padding: 14px 24px;
  box-shadow: 0 14px 30px rgba(11, 18, 32, 0.14);
}

.hero-btn:hover {
  transform: translateY(-1px);
}

.category-strip {
  margin-top: -58px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  position: relative;
  z-index: 3;
}

.mini-cat {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(191, 219, 254, 0.8);
  overflow: hidden;
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.mini-cat img {
  height: 118px;
  object-fit: cover;
}

.mini-cat span {
  display: block;
  text-align: center;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
  padding: 10px 8px;
  background: linear-gradient(135deg, #0b1220, #1f3a5f);
  color: #fff;
}

.mini-cat:hover,
.mini-cat.active {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.14);
}

.catalog {
  padding: 54px 20px 78px;
}

.catalog h2 {
  margin: 0 0 18px;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

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

.product-card {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 16px;
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.product-card img {
  height: 170px;
  object-fit: cover;
  background: linear-gradient(180deg, #eff6ff, #f8fafc);
  border-radius: 16px;
}

.product-card h3 {
  margin: 10px 0 6px;
  font-size: 16px;
  line-height: 1.34;
}

.product-card p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.62;
}

.product-price {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-weight: 900;
  color: var(--accent-dark);
  letter-spacing: 0.01em;
}

.product-price small {
  font-weight: 700;
  color: var(--muted);
}

.pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  background: linear-gradient(135deg, #0b1220, #1f3a5f);
  color: #fff;
  padding: 7px 10px;
  border-radius: 999px;
  box-shadow: 0 10px 20px rgba(31, 58, 95, 0.18);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.12);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 18px 0 26px;
  color: #4b5563;
  font-size: 13px;
  background: #fff;
}

.detail {
  padding: 36px 0 70px;
}

.back-link {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 14px;
  color: #475569;
}

.detail-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 28px;
}

.detail-media,
.detail-info {
  background: #fff;
  border: 1px solid var(--line);
  padding: 18px;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.detail-media img {
  height: 420px;
  object-fit: cover;
  border-radius: 18px;
  background: linear-gradient(180deg, #eff6ff, #f8fafc);
}

.thumbs-wrap {
  margin-top: 14px;
}

.thumbs-title {
  font-size: 13px;
  font-weight: 700;
  color: #374151;
  margin-bottom: 8px;
}

.thumbs-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.thumb-btn {
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: #fff;
  padding: 4px;
  cursor: pointer;
  border-radius: 14px;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.thumb-btn img {
  height: 64px;
  object-fit: cover;
  border-radius: 10px;
}

.thumb-btn.active {
  border-color: var(--accent);
  box-shadow: 0 8px 16px rgba(37, 99, 235, 0.16);
}

.thumb-btn:hover {
  transform: translateY(-1px);
}

.detail-info h1 {
  margin: 10px 0 12px;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.15;
}

.detail-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 6px 0 10px;
  padding: 12px 12px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(15, 23, 42, 0.04));
  border: 1px solid rgba(191, 219, 254, 0.75);
}

.detail-price {
  font-size: 22px;
  font-weight: 900;
  color: var(--accent-dark);
}

.detail-qty {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.detail-qty-label {
  font-size: 13px;
  font-weight: 800;
  color: #334155;
}

.qty-input {
  width: 86px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.34);
  padding: 0 10px;
  font-size: 14px;
  font-weight: 800;
  outline: none;
  background: rgba(255, 255, 255, 0.95);
}

.qty-input:focus {
  border-color: rgba(37, 99, 235, 0.6);
  box-shadow: 0 10px 18px rgba(37, 99, 235, 0.14);
}

.detail-info p {
  color: var(--muted);
  line-height: 1.78;
}

.detail-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 8px;
}

.detail-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 700;
  border: 1px solid rgba(191, 219, 254, 0.8);
}

.detail-list {
  margin: 18px 0 0;
  padding-left: 18px;
  color: #1f2937;
  line-height: 1.8;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.detail-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.detail-btn.primary {
  color: #fff;
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.22);
}

.detail-btn.secondary {
  color: var(--accent-dark);
  background: #f8fbff;
  border: 1px solid rgba(148, 163, 184, 0.24);
}

.detail-btn:hover {
  transform: translateY(-1px);
}

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

  .detail-wrap {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 680px) {
  .nav {
    display: none;
  }

  .lang-switch {
    margin-left: 0;
  }

  .hero-banner {
    height: 380px;
  }

  .hero-overlay {
    padding-top: 74px;
  }

  .hero-overlay p {
    font-size: 14px;
  }

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

  .detail-media img {
    height: 280px;
  }

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

.cart-page {
  padding: 36px 0 70px;
}

.cart-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.9fr);
  gap: 22px;
}

.cart-panel,
.checkout-panel {
  background: #fff;
  border: 1px solid rgba(191, 219, 254, 0.75);
  padding: 18px;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.cart-title {
  margin: 0 0 14px;
  font-size: 28px;
}

.cart-empty {
  padding: 22px 0;
  color: var(--muted);
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 14px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: linear-gradient(135deg, rgba(248, 251, 255, 0.9), rgba(239, 246, 255, 0.7));
}

.cart-item-img {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 16px;
  background: linear-gradient(180deg, #eff6ff, #f8fafc);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.cart-item-title {
  font-weight: 900;
  font-size: 15px;
  line-height: 1.35;
}

.cart-item-sku {
  margin-top: 4px;
  color: var(--muted);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cart-item-price {
  margin-top: 10px;
  font-weight: 900;
  color: var(--accent-dark);
}

.cart-item-controls {
  display: grid;
  grid-auto-rows: min-content;
  gap: 10px;
  justify-items: end;
  align-content: start;
}

.cart-item-total {
  font-weight: 900;
  color: #111827;
  text-align: right;
}

.cart-remove {
  border: 1px solid rgba(148, 163, 184, 0.34);
  background: rgba(255, 255, 255, 0.95);
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
}

.cart-actions {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
}

.checkout-title {
  margin: 0 0 12px;
  font-size: 20px;
}

.checkout-row,
.checkout-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  font-weight: 800;
  color: #334155;
}

.checkout-total {
  border-bottom: 0;
  padding-top: 12px;
  margin-top: 4px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  color: #111827;
  font-size: 16px;
}

.paypal-block {
  margin-top: 16px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(191, 219, 254, 0.8);
  background: linear-gradient(135deg, rgba(255, 200, 77, 0.24), rgba(59, 130, 246, 0.12));
}

.paypal-title {
  font-weight: 900;
  margin-bottom: 10px;
}

.paypal-btn {
  width: 100%;
  border: 0;
  cursor: pointer;
  border-radius: 14px;
  padding: 14px 16px;
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, #ffc439, #ffb300);
  color: #0b2b5b;
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.14);
}

.paypal-logo {
  font-style: italic;
  font-weight: 900;
}

.checkout-hint {
  margin-top: 10px;
  color: rgba(15, 23, 42, 0.7);
  font-size: 12px;
  line-height: 1.55;
}

.alt-payments {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.alt-title {
  font-weight: 900;
  font-size: 13px;
  color: #334155;
  margin-bottom: 10px;
}

.pay-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pay-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.92);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: #0f172a;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  appearance: none;
}

.pay-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(31, 58, 95, 0.35);
  box-shadow: 0 10px 20px rgba(11, 18, 32, 0.10);
}

.pay-chip.stripe { color: #635bff; }
.pay-chip.visa { color: #1a1f71; }
.pay-chip.mc { color: #b10713; }
.pay-chip.amex { color: #016fd0; }
.pay-chip.discover { color: #111827; }
.pay-chip.pp { color: #003087; }

.pay-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(11, 18, 32, 0.45);
  z-index: 1000;
  padding: 16px;
}

.pay-modal-dialog {
  width: min(520px, 100%);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 24px 56px rgba(11, 18, 32, 0.18);
  padding: 16px;
}

.pay-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.pay-modal-head h3 {
  margin: 0;
  font-size: 20px;
  color: var(--accent-dark);
}

.pay-modal-close {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #334155;
}

.pay-form {
  display: grid;
  gap: 12px;
}

.pay-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.pay-label {
  display: grid;
  gap: 6px;
}

.pay-label span {
  font-size: 12px;
  font-weight: 800;
  color: #334155;
}

.pay-input {
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  padding: 0 10px;
  font-size: 14px;
  outline: none;
}

.pay-input:focus {
  border-color: rgba(31, 58, 95, 0.5);
  box-shadow: 0 10px 20px rgba(31, 58, 95, 0.10);
}

.pay-error {
  margin: 0;
  color: #b91c1c;
  font-size: 13px;
  font-weight: 700;
}

.pay-submit {
  justify-self: start;
}

.pay-web-dialog {
  width: min(760px, 100%);
  padding-bottom: 12px;
}

.pay-web-loading {
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 18px 14px;
  color: #334155;
  background: #f8fafc;
  font-size: 14px;
  margin-bottom: 10px;
}

.pay-web-frame {
  width: 100%;
  height: min(68vh, 560px);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
}

@media (max-width: 980px) {
  .cart-wrap {
    grid-template-columns: minmax(0, 1fr);
  }
}
