:root {
  --bg: #090a0c;
  --panel: #141619;
  --panel2: #1a1c20;
  --line: #2b2e33;
  --text: #f4f4f2;
  --muted: #8e9299;
  --accent: #f1f1ec;
  --green: #9ee39b;
  --blue: #438cf6;
  --radius: 20px;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
body {
  min-height: 100vh;
}
button,
input,
textarea {
  font: inherit;
}
button {
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}
#app {
  max-width: 1500px;
  margin: auto;
  padding: 10px 10px 90px;
}
.topbar {
  height: 52px;
  border: 1px solid #34373b;
  background: #17191c;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 6px 12px 6px 16px;
  position: sticky;
  top: 8px;
  z-index: 20;
  backdrop-filter: blur(14px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: max-content;
}
.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f0f0ea;
  color: #111;
  font-size: 12px;
  font-weight: 800;
}
.brand-name {
  font-weight: 700;
}
.topnav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: center;
  overflow: auto;
}
.topnav button {
  padding: 8px 12px;
  color: #9a9da2;
  font-size: 13px;
  white-space: nowrap;
}
.topnav .active {
  color: #fff;
}
.print-pill {
  background: #f0f0ea !important;
  color: #111 !important;
  border-radius: 18px !important;
}
.lang {
  display: flex;
  align-items: center;
  background: #222428;
  border-radius: 18px;
  padding: 2px;
}
.lang button {
  font-size: 10px;
  color: #777b82;
  padding: 6px;
}
.lang .active {
  background: #eee;
  color: #111;
  border-radius: 50%;
}
.cart-top {
  position: relative;
  font-size: 18px;
  width: 40px;
  height: 40px;
  background: #171c21;
  border: 1px solid #2c3947;
  border-radius: 13px;
}
.cart-top i {
  position: absolute;
  right: -4px;
  top: -5px;
  background: #f24d62;
  color: #fff;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-style: normal;
  font-size: 11px;
  display: grid;
  place-items: center;
}
.screen {
  display: none;
  padding: 22px 0;
}
.screen.active {
  display: block;
}
.hero-home {
  margin-top: 4px;
  min-height: 390px;
  border: 1px solid #2d3946;
  border-radius: 30px;
  background: radial-gradient(
    circle at 78% 50%,
    #202d38 0,
    #15202a 28%,
    #11181f 68%
  );
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  padding: 54px 70px;
  overflow: hidden;
}
.eyebrow {
  letter-spacing: 4px;
  color: #aeb5bc;
  font-size: 12px;
}
.hero-home h1 {
  font-size: clamp(44px, 6vw, 76px);
  line-height: 0.98;
  margin: 22px 0 18px;
  letter-spacing: -3px;
}
.hero-home p {
  font-size: 20px;
  color: #aeb3b9;
  max-width: 560px;
  line-height: 1.45;
}
.primary {
  background: #3e8af4;
  color: white;
  border-radius: 13px;
  padding: 15px 24px;
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 8px 25px #0005;
}
.hero-home .primary {
  margin-top: 15px;
}
.hero-spool {
  display: grid;
  place-items: center;
}
.spool {
  width: 230px;
  height: 230px;
  border-radius: 50%;
  position: relative;
  background:
    radial-gradient(circle, #8e9398 0 18%, #202428 19% 27%, transparent 28%),
    repeating-radial-gradient(
      circle at 50% 50%,
      #d9dadd 0 2px,
      #73787e 3px 5px,
      #2a2e32 6px 9px
    );
  box-shadow:
    0 25px 45px #0008,
    inset 0 0 30px #fff2;
}
.spool:before,
.spool:after {
  content: "";
  position: absolute;
  inset: 24px;
  border-radius: 50%;
  border: 9px solid #555b61;
}
.spool:after {
  inset: 52px;
  border: 7px solid #15181b;
}
.home-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 35px 4px 18px;
}
.home-title span {
  font-size: 30px;
  font-weight: 750;
}
.home-title button {
  color: #92969b;
}
.categories {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.cat {
  background: #15181c;
  border: 1px solid #2b3137;
  border-radius: 18px;
  padding: 22px 18px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: 0.2s;
}
.cat:hover {
  border-color: #56616b;
  transform: translateY(-2px);
}
.cat .emoji {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #2b2e32;
  font-size: 21px;
}
.catalog-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin: 8px 2px 20px;
}
.catalog-head h1 {
  font-size: 40px;
  margin: 8px 0 0;
}
.stock-info {
  color: #8e9299;
  font-size: 12px;
}
.stock-info b {
  color: #ddd;
  margin-left: 8px;
}
.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border: 1px solid #999;
  margin-right: 6px;
}
.toolbar {
  background: #191b1e;
  border: 1px solid #303338;
  border-radius: 18px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.filters {
  display: flex;
  gap: 4px;
  overflow: auto;
  flex: 1;
}
.filter {
  padding: 8px 14px;
  border-radius: 18px;
  color: #92969c;
  font-size: 12px;
  white-space: nowrap;
}
.filter.active {
  background: #edede8;
  color: #111;
}
.search {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #777;
  background: #111316;
  border: 1px solid #2d3034;
  border-radius: 14px;
  padding: 7px 10px;
  width: 190px;
}
.search input {
  width: 100%;
  background: none;
  border: 0;
  outline: 0;
  color: #fff;
  font-size: 12px;
}
.products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.product {
  background: #17191c;
  border: 1px solid #2a2d31;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: 0.2s;
}
.product:hover {
  border-color: #52565c;
  transform: translateY(-2px);
}
.product-img {
  height: 210px;
  background: radial-gradient(circle at 50% 45%, #24282d, #15171a 60%);
  display: grid;
  place-items: center;
}
.product-img .spool {
  width: 150px;
  height: 150px;
}
.product-info {
  padding: 14px;
}
.product-info h3 {
  font-size: 14px;
  margin: 0 0 8px;
}
.meta {
  font-size: 11px;
  color: #858a90;
  line-height: 1.6;
}
.price {
  font-weight: 800;
  font-size: 15px;
  margin-top: 12px;
}
.availability {
  position: absolute;
  right: 13px;
  bottom: 16px;
  color: #91dc93;
  font-size: 10px;
}
.color-dots {
  display: flex;
  gap: 4px;
  margin-top: 10px;
}
.color-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1px solid #777;
}
.add {
  position: absolute;
  right: 12px;
  bottom: 11px;
  width: 30px;
  height: 30px;
  border: 1px solid #444;
  border-radius: 50%;
  background: #202327;
}
.section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.section-head h1 {
  margin: 0;
  font-size: 30px;
}
.back {
  width: 38px;
  height: 38px;
  border: 1px solid #30343a;
  border-radius: 12px;
}
.text-btn {
  color: #888;
  font-size: 13px;
}
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  background: #15181b;
  border: 1px solid #2a2e32;
  border-radius: 24px;
  padding: 25px;
}
.big-img {
  min-height: 360px;
  display: grid;
  place-items: center;
  background: #101214;
  border-radius: 18px;
}
.big-img .spool {
  width: 280px;
  height: 280px;
}
.detail h1 {
  font-size: 38px;
  margin: 5px 0;
}
.specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 25px 0;
}
.spec {
  padding: 14px;
  background: #1d2024;
  border-radius: 12px;
}
.spec span {
  display: block;
  color: #858990;
  font-size: 11px;
  margin-bottom: 5px;
}
.notice {
  display: flex;
  gap: 12px;
  background: #1b2421;
  border: 1px solid #30483e;
  border-radius: 14px;
  padding: 15px;
  margin-bottom: 20px;
}
.notice span {
  color: #a4aaa9;
  font-size: 13px;
}
.input {
  width: 100%;
  background: #14171a;
  color: #fff;
  border: 1px solid #30343a;
  border-radius: 12px;
  padding: 13px 14px;
  margin: 7px 0 15px;
  outline: 0;
}
.screen > label {
  display: block;
  font-size: 13px;
  color: #b9bdc2;
}
.location {
  width: 100%;
  padding: 13px;
  border: 1px dashed #46505a;
  border-radius: 12px;
  text-align: left;
  margin: 7px 0 8px;
  color: #b8bdc2;
}
.total-box {
  background: #171a1d;
  border: 1px solid #2c3035;
  border-radius: 15px;
  padding: 16px;
  margin: 15px 0;
}
.total-row {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  color: #9ca0a5;
  font-size: 13px;
  padding: 4px 0;
}
.total-row.big {
  font-size: 18px;
  color: #fff;
  padding-top: 12px;
}
.full {
  width: 100%;
}
.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #15181b;
  border: 1px solid #292d31;
  border-radius: 16px;
  padding: 10px;
  margin-bottom: 9px;
}
.cart-item .product-img {
  width: 70px;
  height: 70px;
  border-radius: 12px;
  flex: none;
}
.cart-item .product-img .spool {
  width: 55px;
  height: 55px;
}
.qty {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 8px;
}
.qty button {
  width: 28px;
  height: 28px;
  border: 1px solid #3b3f44;
  border-radius: 9px;
}
.profile-card {
  max-width: 600px;
  margin: 40px auto;
  background: #15181b;
  border: 1px solid #2d3136;
  border-radius: 24px;
  padding: 35px;
}
.profile-avatar {
  width: 70px;
  height: 70px;
  border-radius: 20px;
  background: #f0f0ea;
  color: #111;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 22px;
}
.profile-card h1 {
  margin-bottom: 5px;
}
.profile-card p {
  color: #888;
}
.profile-row {
  display: flex;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid #2b2f33;
  font-size: 13px;
}
.profile-row span {
  color: #888;
}
.center {
  text-align: center;
  max-width: 520px;
  margin: 80px auto;
}
.success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #18321d;
  color: #9de69e;
  display: grid;
  place-items: center;
  font-size: 40px;
  margin: auto;
}
.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  width: min(600px, calc(100% - 20px));
  background: #15181cdd;
  border: 1px solid #30343a;
  border-radius: 25px;
  padding: 7px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  backdrop-filter: blur(18px);
  z-index: 30;
}
.nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px;
  color: #777c83;
  font-size: 10px;
  border-radius: 18px;
}
.nav span {
  font-size: 18px;
}
.nav.active {
  color: #f2f2ee;
  background: #23262a;
}
@media (max-width: 900px) {
  .topnav {
    display: none;
  }
  .hero-home {
    grid-template-columns: 1fr;
    padding: 35px 25px;
    min-height: 430px;
  }
  .hero-spool {
    position: absolute;
    right: 20px;
    top: 110px;
    opacity: 0.25;
  }
  .hero-home h1 {
    font-size: 48px;
  }
  .categories {
    grid-template-columns: repeat(2, 1fr);
  }
  .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .product-img {
    height: 160px;
  }
  .toolbar {
    display: block;
  }
  .search {
    width: 100%;
    margin-top: 8px;
  }
  .catalog-head h1 {
    font-size: 32px;
  }
  .product-detail {
    grid-template-columns: 1fr;
  }
  .big-img {
    min-height: 280px;
  }
  .big-img .spool {
    width: 220px;
    height: 220px;
  }
  .availability {
    position: static;
    margin-top: 5px;
  }
  .add {
    right: 10px;
    bottom: 10px;
  }
}
@media (max-width: 520px) {
  #app {
    padding: 6px 7px 90px;
  }
  .topbar {
    top: 5px;
  }
  .lang {
    display: none;
  }
  .brand-name {
    font-size: 14px;
  }
  .hero-home {
    border-radius: 24px;
    padding: 30px 20px;
  }
  .hero-home h1 {
    font-size: 42px;
    letter-spacing: -2px;
  }
  .hero-home p {
    font-size: 15px;
  }
  .home-title span {
    font-size: 25px;
  }
  .categories {
    gap: 9px;
  }
  .cat {
    padding: 15px 12px;
  }
  .catalog-head {
    align-items: start;
  }
  .stock-info {
    display: none;
  }
  .products {
    gap: 9px;
  }
  .product {
    border-radius: 16px;
  }
  .product-img {
    height: 130px;
  }
  .product-img .spool {
    width: 95px;
    height: 95px;
  }
  .product-info {
    padding: 11px;
  }
  .product-info h3 {
    font-size: 12px;
  }
  .price {
    font-size: 13px;
  }
  .availability {
    font-size: 9px;
  }
  .toolbar {
    padding: 7px;
  }
  .filter {
    padding: 7px 11px;
  }
  .bottom-nav {
    bottom: 6px;
  }
  .spool {
    width: 180px;
    height: 180px;
  }
}
.card-qty {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px;
  background: #202327;
  border: 1px solid #4a4f55;
  border-radius: 12px;
  z-index: 5;
  box-shadow: 0 5px 15px #0008;
}
.card-qty b {
  min-width: 18px;
  text-align: center;
  font-size: 12px;
}
.qty-btn {
  width: 30px;
  height: 30px;
  border: 1px solid #4b5056;
  border-radius: 9px;
  background: #292d31;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 18px;
  line-height: 1;
  touch-action: manipulation;
}
.add {
  z-index: 5;
  touch-action: manipulation;
  font-size: 20px;
  line-height: 1;
}
.product {
  touch-action: manipulation;
}
.product .add:active,
.qty-btn:active {
  transform: scale(0.94);
}

/* Product photos uploaded in the admin page */
.product-img,
.big-img {
  overflow: hidden;
}
.photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.big-img .photo {
  max-height: 480px;
}
.description {
  white-space: pre-line;
}
.primary:disabled {
  opacity: 0.6;
}
