:root {
  --bg: #f7f8fc;
  --surface: #ffffff;
  --text: #171923;
  --muted: #737888;
  --primary: #6558e8;
  --primary-dark: #4b3fd0;
  --border: #e8e9f0;
  --radius: 18px;
  --shadow: 0 12px 35px rgba(25, 30, 60, .08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

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

.hidden {
  display: none !important;
}

.announcement {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 8px 16px;
  background: #171923;
  color: white;
  font-size: 12px;
  text-align: center;
}

.announcement span {
  color: #c6c8d6;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 17px 5%;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(15px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  font-weight: 850;
  letter-spacing: 1px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border-radius: 13px;
  background: var(--primary);
  color: white;
  font-size: 24px;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0;
}

.search {
  display: flex;
  width: min(420px, 40%);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #f8f8fb;
}

.search input {
  width: 100%;
  min-width: 0;
  padding: 11px 14px;
  border: 0;
  outline: 0;
  background: transparent;
}

.search button {
  padding: 0 16px;
  border: 0;
  background: var(--primary);
  color: white;
  font-size: 23px;
}

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

.icon-button,
.cart-button {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 13px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: white;
}

.icon-button {
  font-size: 20px;
}

.cart-button {
  background: var(--text);
  color: white;
}

.cart-button b {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: var(--primary);
  font-size: 12px;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  min-height: 465px;
  margin: 24px 4% 0;
  padding: 55px 7%;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(125deg, #f0edff, #f8f7ff 55%, #e5e2ff);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.7px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(40px, 5.5vw, 68px);
  line-height: 1.08;
  letter-spacing: -2px;
}

.hero h1 em {
  color: var(--primary);
  font-style: normal;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 430px;
  color: #66697b;
}

.primary-button,
.secondary-button,
.light-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 13px 20px;
  border: 0;
  border-radius: 12px;
  font-weight: 700;
  transition: .2s ease;
}

.primary-button {
  background: var(--primary);
  color: white;
}

.primary-button:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.secondary-button {
  border: 1px solid var(--border);
  background: white;
}

.light-button {
  background: white;
  color: var(--primary);
}

.hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 23px;
  color: #62657a;
  font-size: 12px;
}

.hero-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 330px;
}

.glow {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: #d3ccff;
  filter: blur(3px);
}

.phone {
  position: absolute;
  width: 145px;
  height: 285px;
  border: 6px solid #292b39;
  border-radius: 30px;
  box-shadow: 0 25px 50px #292b3930;
}

.phone-back {
  z-index: 1;
  margin: 35px 0 0 -95px;
  background: linear-gradient(140deg, #e1dfff, #9c8de9);
  transform: rotate(-13deg);
}

.camera-row {
  display: flex;
  gap: 5px;
  padding: 12px;
}

.camera-row i {
  width: 24px;
  height: 24px;
  border: 3px solid #414356;
  border-radius: 50%;
  background: #292b39;
}

.phone-front {
  z-index: 2;
  margin: -10px 0 0 45px;
  overflow: hidden;
  background: linear-gradient(145deg, #24263a, #7665ed 50%, #d4a8ff);
  transform: rotate(9deg);
}

.screen-island {
  position: absolute;
  top: 9px;
  left: 35%;
  width: 30%;
  height: 15px;
  border-radius: 20px;
  background: #151622;
}

.screen-shape {
  position: absolute;
  inset: 70px -25px -50px;
  border: 20px solid #ffffff25;
  border-radius: 50%;
  transform: rotate(-35deg);
}

.screen-caption {
  position: absolute;
  bottom: 30px;
  width: 100%;
  color: white;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 3px;
  text-align: center;
}

.float-card {
  position: absolute;
  z-index: 3;
  right: -15px;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 17px;
  border: 1px solid #ffffffaa;
  border-radius: 15px;
  background: #ffffffeb;
  box-shadow: var(--shadow);
}

.float-card > span {
  color: var(--primary);
  font-size: 25px;
}

.float-card b,
.float-card small {
  display: block;
}

.float-card small {
  color: var(--muted);
  font-size: 11px;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 25px 5%;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: white;
}

.trust-row > div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.trust-row b,
.trust-row small {
  display: block;
}

.trust-row b {
  font-size: 13px;
}

.trust-row small {
  color: var(--muted);
  font-size: 11px;
}

.shop-section {
  padding: 48px 5% 65px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.section-heading h2,
.bottom-banner h2 {
  margin: 0;
  font-size: clamp(25px, 4vw, 36px);
  letter-spacing: -1px;
}

.status {
  color: var(--muted);
  font-size: 12px;
}

.category-list {
  display: flex;
  gap: 10px;
  margin-bottom: 25px;
  padding-bottom: 7px;
  overflow-x: auto;
}

.category {
  flex-shrink: 0;
  padding: 9px 16px;
  border: 1px solid var(--border);
  border-radius: 25px;
  background: white;
  color: #55596a;
  font-size: 13px;
}

.category.active {
  border-color: var(--text);
  background: var(--text);
  color: white;
}

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

.product-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: white;
  transition: .2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.product-image {
  position: relative;
  display: grid;
  place-items: center;
  height: 200px;
  overflow: hidden;
  background: linear-gradient(145deg, #f1f0ff, #f9f9fc);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-emoji {
  font-size: 75px;
}

.product-image .badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 9px;
  border-radius: 20px;
  background: white;
  color: var(--primary);
  font-size: 10px;
  font-weight: 800;
}

.wishlist-button {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: white;
  font-size: 18px;
}

.wishlist-button.selected {
  color: #e14b78;
}

.product-info {
  padding: 15px;
}

.product-category {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.product-info h3 {
  min-height: 45px;
  margin: 5px 0;
  font-size: 15px;
  line-height: 1.45;
}

.product-description {
  min-height: 35px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 11px;
}

.price-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.product-price {
  font-size: 16px;
  font-weight: 850;
}

.old-price {
  color: #999cac;
  font-size: 11px;
  text-decoration: line-through;
}

.add-cart-button {
  width: 100%;
  margin-top: 14px;
  padding: 10px;
  border: 1px solid #dedaff;
  border-radius: 10px;
  background: #f1efff;
  color: var(--primary);
  font-weight: 750;
  font-size: 12px;
}

.add-cart-button:hover {
  background: var(--primary);
  color: white;
}

.empty-state {
  padding: 45px 15px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: white;
  text-align: center;
}

.empty-state > div {
  font-size: 40px;
}

.empty-state h3 {
  margin-bottom: 0;
}

.empty-state p {
  color: var(--muted);
}

.bottom-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin: 0 5% 50px;
  padding: 35px 5%;
  border-radius: 22px;
  background: #1c1d2b;
  color: white;
}

.bottom-banner .eyebrow {
  color: #b8afff;
}

.bottom-banner p:not(.eyebrow) {
  color: #c2c3d0;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 25px 5%;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
}

.footer-brand {
  color: var(--text);
  font-weight: 850;
  letter-spacing: 1px;
}

.overlay {
  position: fixed;
  z-index: 40;
  inset: 0;
  background: #10111c80;
}

.drawer {
  position: fixed;
  z-index: 41;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  width: min(440px, 100%);
  height: 100dvh;
  padding: 24px;
  background: white;
  box-shadow: -10px 0 50px #00000012;
  transform: translateX(105%);
  transition: transform .25s ease;
}

.drawer.open {
  transform: translateX(0);
}

.drawer-header,
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.drawer-header h2,
.modal-header h2 {
  margin: 0;
}

.close-button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: white;
  font-size: 25px;
}

.cart-items {
  flex: 1;
  margin: 20px 0;
  overflow-y: auto;
}

.cart-item {
  display: grid;
  grid-template-columns: 65px 1fr auto;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.cart-item-image {
  display: grid;
  place-items: center;
  height: 65px;
  border-radius: 12px;
  background: #f1efff;
  font-size: 30px;
}

.cart-item h4 {
  margin: 0 0 4px;
  font-size: 13px;
}

.cart-item p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.quantity-control {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.quantity-control button {
  width: 27px;
  height: 27px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: white;
}

.remove-item {
  border: 0;
  background: transparent;
  color: #d64d66;
}

.cart-empty {
  margin: auto 0;
  text-align: center;
}

.cart-empty > span {
  font-size: 45px;
}

.cart-empty p,
.cart-footer p {
  color: var(--muted);
  font-size: 12px;
}

.cart-footer {
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.subtotal,
.checkout-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  font-size: 16px;
}

.subtotal b,
.checkout-total b {
  font-size: 21px;
}

.full-width {
  width: 100%;
}

.modal {
  position: fixed;
  z-index: 50;
  top: 50%;
  left: 50%;
  width: min(560px, calc(100% - 28px));
  max-height: 90dvh;
  padding: 25px;
  overflow-y: auto;
  border-radius: 22px;
  background: white;
  box-shadow: 0 20px 80px #00000025;
  transform: translate(-50%, -50%);
}

.checkout-form {
  display: grid;
  gap: 15px;
  margin-top: 23px;
}

.checkout-form label {
  display: grid;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
}

.checkout-form input,
.checkout-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: 0;
  background: #fafafe;
  font-size: 14px;
}

.checkout-form input:focus,
.checkout-form textarea:focus {
  border-color: var(--primary);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.optional {
  color: var(--muted);
  font-weight: 400;
}

.checkout-total {
  padding: 15px 0;
  border-top: 1px solid var(--border);
}

.privacy-note {
  color: var(--muted);
  font-size: 11px;
}

.form-error {
  color: #c62845;
  font-size: 12px;
}

.success-modal {
  text-align: center;
}

.success-modal h2 {
  margin: 10px 0;
}

.success-modal > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 13px;
}

.success-icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin: 15px auto;
  border-radius: 50%;
  background: #e0f8eb;
  color: #16834c;
  font-size: 30px;
}

.success-close {
  margin-left: auto;
}

.toast {
  position: fixed;
  z-index: 70;
  bottom: 25px;
  left: 50%;
  max-width: calc(100% - 30px);
  padding: 12px 20px;
  border-radius: 12px;
  background: #202131;
  color: white;
  font-size: 13px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 15px);
  transition: .2s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 950px) {
  .site-header {
    flex-wrap: wrap;
    gap: 12px;
  }

  .search {
    order: 3;
    width: 100%;
  }

  .hero {
    padding: 40px 5%;
  }

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

  .product-image {
    height: 175px;
  }
}

@media (max-width: 650px) {
  .announcement {
    font-size: 10px;
  }

  .site-header {
    padding: 12px 4%;
  }

  .brand {
    font-size: 13px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .brand small {
    font-size: 8px;
  }

  .header-actions {
    gap: 5px;
  }

  .icon-button,
  .cart-button {
    padding: 8px 10px;
  }

  .desktop-label {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 0;
    min-height: auto;
    margin: 12px 3% 0;
    padding: 36px 7% 10px;
  }

  .hero h1 {
    font-size: 47px;
  }

  .hero-art {
    min-height: 285px;
  }

  .phone {
    width: 125px;
    height: 245px;
  }

  .glow {
    width: 210px;
    height: 210px;
  }

  .float-card {
    right: -7px;
    bottom: 10px;
  }

  .trust-row {
    gap: 18px;
    margin: 15px 3%;
    padding: 17px 10px;
  }

  .trust-row > div {
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }

  .trust-row b {
    font-size: 10px;
  }

  .trust-row small {
    font-size: 9px;
  }

  .shop-section {
    padding: 32px 4% 45px;
  }

  .section-heading {
    display: block;
  }

  .section-heading h2 {
    font-size: 28px;
  }

  .status {
    margin-top: 7px;
  }

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

  .product-image {
    height: 155px;
  }

  .product-emoji {
    font-size: 57px;
  }

  .product-info {
    padding: 11px;
  }

  .product-info h3 {
    min-height: 42px;
    font-size: 13px;
  }

  .product-description {
    font-size: 10px;
  }

  .product-price {
    font-size: 13px;
  }

  .add-cart-button {
    padding: 9px 5px;
    font-size: 11px;
  }

  .bottom-banner {
    display: block;
    margin: 0 4% 35px;
    padding: 27px 22px;
  }

  .bottom-banner h2 {
    font-size: 27px;
  }

  .bottom-banner .light-button {
    margin-top: 10px;
  }

  footer {
    flex-wrap: wrap;
    font-size: 10px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .modal {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
