:root {
  --lock-ink: #101b24;
  --lock-navy: #0d1922;
  --lock-navy-2: #142832;
  --lock-copper: #c86b31;
  --lock-line: #ded6cd;
  --lock-paper: #fbfaf7;
  --lock-warm: #f4efe8;
  --lock-shadow: 0 18px 38px rgba(16, 27, 36, .11), 0 3px 10px rgba(16, 27, 36, .06);
  --lock-shadow-lift: 0 22px 46px rgba(16, 27, 36, .16), 0 6px 14px rgba(16, 27, 36, .08);
}

.tuya-smart-locks-page {
  background: var(--lock-paper);
  color: var(--lock-ink);
}

.tuya-smart-locks-page .page-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(200, 107, 49, .28);
  background:
    radial-gradient(circle at 82% 15%, rgba(71, 125, 143, .28), transparent 31%),
    linear-gradient(135deg, var(--lock-navy) 0%, #101f29 48%, var(--lock-navy-2) 100%);
  box-shadow: 0 18px 36px rgba(13, 25, 34, .16);
}

.tuya-smart-locks-page .page-hero::before {
  position: absolute;
  inset: 0;
  display: block;
  background-image:
    linear-gradient(rgba(163, 201, 210, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(163, 201, 210, .055) 1px, transparent 1px);
  background-size: 36px 36px;
  content: "";
  pointer-events: none;
}

.tuya-smart-locks-page .page-hero::after {
  position: absolute;
  top: -230px;
  right: -170px;
  width: 670px;
  height: 670px;
  border: 1px solid rgba(196, 219, 222, .14);
  border-radius: 50%;
  box-shadow: 0 0 0 26px rgba(196, 219, 222, .035), 0 0 0 52px rgba(196, 219, 222, .022);
  content: "";
  pointer-events: none;
}

.tuya-smart-locks-page[data-page-kind^="product-"] .page-hero {
  background:
    radial-gradient(circle at 82% 15%, rgba(71, 125, 143, .28), transparent 31%),
    linear-gradient(135deg, var(--lock-navy) 0%, #101f29 48%, var(--lock-navy-2) 100%);
}

.tuya-smart-locks-page[data-page-kind^="product-"] .page-hero::before { display: block; }
.tuya-smart-locks-page[data-page-kind^="product-"] .page-hero h1 { color: #fff; text-shadow: 0 2px 18px rgba(0, 0, 0, .2); }
.tuya-smart-locks-page[data-page-kind^="product-"] .page-hero .hero-sub { color: #c5d3db; }
.tuya-smart-locks-page[data-page-kind^="product-"] .page-hero .hero-badge {
  border-color: rgba(197, 214, 218, .3);
  background: rgba(14, 28, 37, .55);
  color: #e6f0f2;
  box-shadow: 0 5px 15px rgba(0, 0, 0, .12);
}

.tuya-smart-locks-page .page-hero .hero-content { position: relative; z-index: 1; }
.tuya-smart-locks-page .page-hero .btn-primary-jbss,
.tuya-smart-locks-page .page-hero .btn-tg { box-shadow: 0 10px 22px rgba(0, 0, 0, .2); }
.tuya-smart-locks-page[data-page-kind^="product-"] .page-hero .btn-tg {
  border-color: rgba(211, 225, 226, .5);
  background: rgba(12, 24, 31, .26) !important;
  color: #fff !important;
}

.tuya-smart-locks-page .tuya-lock-purchase-section,
.tuya-smart-locks-page .tuya-lock-groups-section,
.tuya-smart-locks-page .tuya-lock-supply-section,
.tuya-smart-locks-page .tuya-lock-faq-section { position: relative; isolation: isolate; overflow: hidden; }

.tuya-smart-locks-page .tuya-lock-purchase-section {
  background:
    radial-gradient(circle at 8% 12%, rgba(200, 107, 49, .09), transparent 26%),
    linear-gradient(180deg, #f7f2eb 0%, #f2ece4 100%);
}

.tuya-smart-locks-page .tuya-lock-purchase-section::before,
.tuya-smart-locks-page .tuya-lock-groups-section::before,
.tuya-smart-locks-page .tuya-lock-supply-section::before,
.tuya-smart-locks-page .tuya-lock-faq-section::before {
  position: absolute;
  right: -90px;
  bottom: -180px;
  width: 390px;
  height: 390px;
  border: 1px solid rgba(200, 107, 49, .12);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.tuya-smart-locks-page .tuya-lock-purchase-section .purchase-matrix-media {
  position: relative;
  overflow: hidden;
  border: 1px solid #cfc6bd;
  border-radius: 13px;
  background: #fff;
  box-shadow: var(--lock-shadow);
}

.tuya-smart-locks-page .tuya-lock-purchase-section .purchase-matrix-media::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, .65);
  border-radius: inherit;
  content: "";
  pointer-events: none;
}

.tuya-smart-locks-page .tuya-lock-purchase-section .purchase-matrix-media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.tuya-smart-locks-page .tuya-lock-purchase-section .hero-media-caption {
  position: relative;
  top: 0;
  bottom: auto;
  z-index: 1;
  margin: 0;
  padding: 12px 15px 14px;
  color: #66727b;
  font-size: .84rem;
  line-height: 1.55;
}

.tuya-smart-locks-page .tuya-lock-purchase-section .table-wrap {
  overflow: hidden;
  border: 1px solid var(--lock-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .78);
  box-shadow: var(--lock-shadow);
}

.tuya-smart-locks-page .tuya-lock-purchase-section .compare-table { margin: 0; }
.tuya-smart-locks-page .tuya-lock-purchase-section .compare-table thead th {
  border-color: rgba(255, 255, 255, .16);
  background: linear-gradient(135deg, #b95e28, var(--lock-copper));
  color: #fff;
}

.tuya-smart-locks-page .tuya-lock-groups-section {
  background: var(--lock-paper);
}

.tuya-smart-locks-page .tuya-lock-groups-section .section-head { position: relative; z-index: 1; }
.tuya-smart-locks-page .tuya-lock-groups-section .card-jbss {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--lock-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .88);
  box-shadow: var(--lock-shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.tuya-smart-locks-page .tuya-lock-groups-section .card-jbss p { flex: 1; }
.tuya-smart-locks-page .tuya-lock-groups-section .card-jbss .btn-primary-jbss { align-self: flex-start; margin-top: auto; }

.tuya-smart-locks-page .tuya-lock-groups-section .card-jbss::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--lock-copper), rgba(200, 107, 49, .12));
  content: "";
}

.tuya-smart-locks-page .tuya-lock-groups-section .card-jbss:hover {
  border-color: rgba(200, 107, 49, .45);
  box-shadow: var(--lock-shadow-lift);
  transform: translateY(-5px);
}

.tuya-smart-locks-page .tuya-lock-supply-section {
  background:
    radial-gradient(circle at 90% 12%, rgba(200, 107, 49, .09), transparent 28%),
    linear-gradient(180deg, #f3ede5 0%, #f8f3ed 100%);
}

.tuya-smart-locks-page .tuya-lock-supply-section > .container > .row { align-items: center; }
.tuya-smart-locks-page .tuya-lock-supply-section .col-lg-5 { display: flex; align-items: center; }
.tuya-smart-locks-page .tuya-lock-supply-section .col-lg-5 .card-jbss {
  position: relative;
  top: 18px;
  width: 100%;
}

.tuya-smart-locks-page .tuya-lock-supply-section .icon-list {
  margin: 0;
  padding: 28px 32px;
  border: 1px solid var(--lock-line);
  border-left: 3px solid var(--lock-copper);
  border-radius: 0 13px 13px 0;
  background: rgba(255, 255, 255, .74);
  box-shadow: var(--lock-shadow);
}

.tuya-smart-locks-page .tuya-lock-supply-section .icon-list li { padding: 9px 0; }

.tuya-smart-locks-page .tuya-lock-faq-section {
  background: linear-gradient(180deg, #fbfaf7 0%, #f2ece4 100%);
}

.tuya-smart-locks-page .tuya-lock-faq-section .faq-list {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--lock-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--lock-shadow);
}

.tuya-smart-locks-page .tuya-lock-faq-section .faq-item {
  margin: 0;
  border: 0;
  border-bottom: 1px solid #e8dfd7;
  border-radius: 0;
  box-shadow: none;
}

.tuya-smart-locks-page .tuya-lock-faq-section .faq-item:last-child { border-bottom: 0; }
.tuya-smart-locks-page .tuya-lock-faq-section .faq-item summary { min-height: 66px; padding: 18px 22px; }

.tuya-smart-locks-page .tuya-lock-cta-section {
  background: linear-gradient(180deg, #f2ece4 0%, #fbfaf7 100%);
}

.tuya-smart-locks-page .tuya-lock-cta-section .cta-section {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(200, 107, 49, .24);
  background: linear-gradient(135deg, #0d1922, #142832);
  box-shadow: 0 24px 55px rgba(16, 27, 36, .2), 0 6px 14px rgba(16, 27, 36, .08);
}

.tuya-smart-locks-page .tuya-lock-cta-section .cta-section::before {
  position: absolute;
  top: -130px;
  right: -80px;
  width: 370px;
  height: 370px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.tuya-smart-locks-page .tuya-lock-cta-section .cta-section h2,
.tuya-smart-locks-page .tuya-lock-cta-section .cta-section p { position: relative; z-index: 1; }
.tuya-smart-locks-page .tuya-lock-cta-section .cta-section h2 { color: #fff; }
.tuya-smart-locks-page .tuya-lock-cta-section .cta-section p { color: #c5d3db; }

.tuya-smart-locks-page a:focus-visible,
.tuya-smart-locks-page button:focus-visible,
.tuya-smart-locks-page summary:focus-visible {
  outline: 3px solid rgba(200, 107, 49, .5);
  outline-offset: 3px;
}

@media (max-width: 991.98px) {
  .tuya-smart-locks-page .tuya-lock-supply-section > .container > .row { align-items: stretch; }
  .tuya-smart-locks-page .tuya-lock-supply-section .col-lg-5 { display: block; }
  .tuya-smart-locks-page .tuya-lock-supply-section .col-lg-5 .card-jbss { top: 0; }
}

@media (max-width: 767.98px) {
  .tuya-smart-locks-page .page-hero::after { top: -250px; right: -330px; width: 520px; height: 520px; }
  .tuya-smart-locks-page .page-hero h1 { letter-spacing: -.025em; }
  .tuya-smart-locks-page .tuya-lock-purchase-section .col-lg-7 { min-width: 0; overflow-x: auto; }
  .tuya-smart-locks-page .tuya-lock-purchase-section .compare-table { display: table; width: 760px; min-width: 760px; }
  .tuya-smart-locks-page .tuya-lock-supply-section .icon-list { padding: 22px 20px; }
  .tuya-smart-locks-page .tuya-lock-faq-section .faq-item summary { min-height: 60px; padding: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .tuya-smart-locks-page .tuya-lock-groups-section .card-jbss { transition: none; }
}
